*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.relative{position:relative}.mb-2{margin-bottom:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.w-full{width:100%}.flex-1{flex:1 1 0%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\[2px\]{gap:2px}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.rounded-xl{border-radius:.75rem}.bg-\[var\(--ios-blue\)\]{background-color:var(--ios-blue)}.p-5{padding:1.25rem}.px-4{padding-left:1rem;padding-right:1rem}.px-\[2px\]{padding-left:2px;padding-right:2px}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pt-12{padding-top:3rem}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[17px\]{font-size:17px}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.text-\[22px\]{font-size:22px}.font-bold{font-weight:700}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.text-\[var\(--ios-blue\)\]{color:var(--ios-blue)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-white\/50{color:hsla(0,0%,100%,.5)}.text-white\/85{color:hsla(0,0%,100%,.85)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}/* =========================================================================
   Design tokens
   ========================================================================= */
:root {
  --ios-blue: #0a84ff;
  --ios-gray: #8e8e93;
  --ios-bg: #000;
  --ios-surface: #1c1c1e;
  --ios-surface-2: #2c2c2e;
  --ios-text: #ffffff;
  --ios-text-2: #ebebf5b3;
  --ios-text-3: #ebebf580;
  --tiltX: 0deg;
  --tiltY: 0deg;
  /* shared device wallpaper */
  --wallpaper:
    radial-gradient(120% 90% at 12% 8%, #3a2a6b 0%, transparent 55%),
    radial-gradient(120% 90% at 88% 18%, #1d4ed8 0%, transparent 50%),
    radial-gradient(130% 100% at 50% 110%, #0b2a4a 0%, transparent 55%),
    linear-gradient(160deg, #1a1336 0%, #0a0a18 60%, #05060d 100%);
}

/* =========================================================================
   Base
   ========================================================================= */
html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Inter', sans-serif;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  background: radial-gradient(90% 70% at 50% 0%, #ffffff 0%, #eef0f3 100%);
  color: #1d1d1f;
  min-height: 100vh;
  margin: 0;
}
.no-select { -webkit-user-select: none; user-select: none; }

.ti {
  width: 1em; height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* =========================================================================
   Stage: phone + (desktop only) identity rail
   ========================================================================= */
.stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
  perspective: 1600px;
}

/* Faint giant wordmark behind the phone (desktop only), à la rohil.dev */
.wordmark { display: none; }
@media (min-width: 900px) {
  .wordmark {
    display: flex; position: absolute; inset: 0; z-index: 0;
    align-items: center; justify-content: space-between;
    padding: 0 clamp(24px, 7vw, 120px);
    pointer-events: none;
    font-weight: 800; letter-spacing: -0.03em; line-height: 1;
    font-size: clamp(46px, 8.5vw, 128px);
    color: #e7e8ec;
  }
}

.phone {
  z-index: 1;
  width: min(420px, 100vw);
  height: min(880px, 100dvh);
  background: #000;
  color: var(--ios-text);
  border-radius: 52px;
  box-shadow:
    0 0 0 2px #2a2a2e, 0 0 0 13px #0e0e10, 0 0 0 14px #303034,
    0 40px 90px -20px rgba(0,0,0,0.75);
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transform: rotateX(var(--tiltX)) rotateY(var(--tiltY));
  transition: transform .25s cubic-bezier(0.22,0.61,0.36,1);
}
/* Only the desktop tilt actually animates .phone while idle, so promote it to its
   own layer only there (on mobile the transform is none — see below). */
@media (min-width: 900px) and (hover: hover) {
  .phone { will-change: transform; }
}

/* Desktop ring "cursor": the OS cursor is hidden over the device and a JS-driven
   ring (see attachRingCursor in app.js) follows the pointer instead. We do this in
   JS rather than `cursor: url()` because the phone's 3D tilt promotes it to a
   composited layer, where Chrome won't repaint a raster image cursor until a click
   — so a CSS cursor only appears on click, not on hover. Scoped to a real desktop
   pointer so touch/trackpad gestures are never affected. */
@media (hover: hover) and (pointer: fine) {
  .phone, .phone * { cursor: none !important; }

  .ring-cursor {
    position: fixed; left: 0; top: 0; z-index: 99999;
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.95);
    background: rgba(150,150,150,0.18);
    box-shadow: 0 0 0 1.5px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.4);
    pointer-events: none; opacity: 0; will-change: transform;
    transform: translate3d(-100px,-100px,0) translate(-50%,-50%);
    transition: opacity .18s ease, width .12s ease, height .12s ease, border-width .12s ease;
  }
  .ring-cursor.show { opacity: 1; }
  .ring-cursor.press { width: 20px; height: 20px; border-width: 2.5px; background: rgba(150,150,150,0.30); }
}
@media (prefers-reduced-motion: reduce) {
  .ring-cursor { transition: opacity .12s ease; }
}

.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 112px; height: 32px; background: #000; border-radius: 100px; z-index: 90;
  pointer-events: none; box-shadow: inset 0 0 1px rgba(255,255,255,0.12);
}
.home-indicator {
  position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 100px;
  background: rgba(255,255,255,0.55); z-index: 85;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
/* Tap the bar to go Home (mirrors the iOS swipe-up). The visible pill stays 5px;
   this invisible ::before gives a comfortable hit area that stays below the dock
   icons above it. */
.home-indicator::before {
  content: ''; position: absolute; top: -12px; bottom: -7px; left: -28px; right: -28px;
}
/* Desktop hover affordance: hovering the bar (or its hit area) magnifies and
   brightens it — a cue that it's clickable (tap = go Home). */
@media (hover: hover) and (pointer: fine) {
  .home-indicator:hover {
    transform: translateX(-50%) scale(1.12, 1.6);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 0 9px rgba(255,255,255,0.45);
  }
}
@media (prefers-reduced-motion: reduce) { .home-indicator { transition: none; } }

@media (max-width: 899px) { .stage { padding: 0; } }
@media (max-width: 480px), (display-mode: standalone) {
  .stage { padding: 0; }
  .phone { width: 100vw; height: 100dvh; border-radius: 0; box-shadow: none; transform: none; }
}
@media (display-mode: standalone) { .island, .home-indicator { display: none; } }

/* Status bar */
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; padding: 0 22px; font-size: 17px; font-weight: 600; color: #fff;
  pointer-events: none;
}

/* =========================================================================
   Screen layers (lock / home / app) — stacked, full device
   ========================================================================= */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: inherit; overflow: hidden; }

.wallpaper {
  position: absolute; inset: 0;
  background: var(--wallpaper) center/cover;          /* fallback */
  background-image: url(wallpaper.jpg);
  background-size: cover; background-position: center;
}

/* ---- Welcome screen: Apple-style "hello" handwriting intro ---- */
.welcome {
  z-index: 70; background: #000; color: #fff;
  align-items: center; justify-content: center;
}
.lock.hidden-screen { display: none; }
.welcome-tap { background: none; border: 0; cursor: pointer; padding: 24px; }
/* "hey!" written out by animating the stroke along each path (pathLength=1). */
.hey { width: clamp(190px, 56vw, 250px); height: auto; overflow: visible; }
.hey path {
  fill: none; stroke: #fff; stroke-width: 6;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.5s ease 0.3s forwards;
}
.hey path.bang { animation: draw 0.45s ease 1.55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---- Home screen ---- */
.home { z-index: 40; }
.home.hidden-screen { display: none; }
#home { outline: none; }   /* focus target for the unlock transition — never ringed */
.home-scroll { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; padding: 66px 22px 0; }

.app-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 10px;
  align-content: start;
}
.app-launch { display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0; padding: 0; cursor: pointer; }
/* iOS squircle (superellipse) app icon — clip-path + filter drop-shadow so the
   shadow follows the squircle, with a top gloss like Apple's icons. */
.app-icon {
  width: 60px; height: 60px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-radius: 23%;                                 /* fallback if clip-path unsupported */
  -webkit-clip-path: url(#squircle); clip-path: url(#squircle);
  filter: drop-shadow(0 8px 12px -2px rgba(0,0,0,0.34));
  transition: transform .18s ease, filter .18s ease;
}
/* Desktop hover affordance for app icons (home grid + dock): magnify + a little
   extra lift, matching the home-indicator hover. */
@media (hover: hover) and (pointer: fine) {
  .app-launch:hover .app-icon { transform: scale(1.1); filter: drop-shadow(0 12px 17px -3px rgba(0,0,0,0.46)); }
}
@media (prefers-reduced-motion: reduce) { .app-icon { transition: none; } }
.appstore-glyph { width: 60%; height: 60%; position: relative; z-index: 2; }
.app-icon > .ti, .app-icon > .brand { position: relative; z-index: 2; }
/* Real Apple iOS artwork: full-bleed image, no synthetic gloss/shade (it has its own). */
.app-icon.real { background-size: cover; background-position: center; background-repeat: no-repeat; }
.app-icon.real::before, .app-icon.real::after { display: none; }
/* very soft bottom shade for depth (painted behind the glyph) */
.app-icon::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 36%);
}
/* subtle top gloss (over the glyph, like Apple icons) */
.app-icon::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 42%);
}
.app-icon .ti { width: 60%; height: 60%; color: #fff; stroke-width: 2.3; }
.app-icon .ti.solid { width: 66%; height: 66%; fill: currentColor; stroke: none; }
.app-icon .brand { width: 60%; height: 60%; fill: #fff; stroke: none; }
.app-label { font-size: 12px; font-weight: 500; color: #fff; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.app-launch:focus-visible .app-icon { outline: 3px solid #fff; outline-offset: 3px; }

/* Dock */
.dock {
  position: relative; z-index: 1; margin: auto 12px 18px; padding: 12px 14px;
  background: rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border-radius: 30px; display: flex; justify-content: center; gap: 18px;
}
.dock .app-icon { width: 56px; height: 56px; }

/* ---- App panels (open with icon-zoom) ---- */
.app-panel {
  position: absolute; inset: 0; z-index: 60; background: var(--ios-bg);
  display: none; flex-direction: column; border-radius: inherit; overflow: hidden;
}
.app-panel.open { display: flex; }
.app-header {
  display: flex; align-items: center; gap: 8px;
  padding: 52px 16px 8px; flex: none;
}
.app-title { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.app-back {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px;
  color: var(--ios-blue); font-size: 15px; font-weight: 500; background: none; border: 0; cursor: pointer;
}
/* Icon-only / text header controls need a 44px tap target (WCAG 2.5.5). */
#sheet-back, #sheet-link, #sheet-share { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
#sheet-link, #sheet-share { min-width: 44px; }

/* =========================================================================
   Scroll
   ========================================================================= */
.scrollable { overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior: contain; }
.scrollable::-webkit-scrollbar { display: none; }

/* =========================================================================
   Projects app — tiles + timeline
   ========================================================================= */
.filter-row { display: flex; gap: 8px; padding: 0 16px 8px; }
.filter {
  padding: 6px 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
  min-height: 34px; display: inline-flex; align-items: center;
  color: rgba(255,255,255,0.7); background: transparent; border: 0; cursor: pointer;
}
.filter.active { background: #fff; color: #000; }
.filter.tag-pill { background: var(--ios-blue); color: #fff; gap: 4px; }
.filter.tag-pill .tag-x { display: inline-flex; align-items: center; }
.filter.tag-pill .tag-x .ti { font-size: 14px; }

/* Labelled, album-art style project tiles: a rounded square cover with the
   project name + colour-coded album beneath (matches the home-screen app style). */
.grid-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px;
  padding: 8px 18px 8px; align-content: start;
}
.grid-empty { padding: 48px 16px; text-align: center; color: var(--ios-text-3); font-size: 14px; }
.tile {
  display: flex; flex-direction: column; gap: 7px; min-width: 0;   /* let 1fr columns shrink instead of overflowing on a long label */
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  transition: transform .12s ease, opacity .12s ease;
}
.tile.pressing { transform: scale(0.95); opacity: 0.88; }
.tile-cover {
  position: relative; aspect-ratio: 1; width: 100%; overflow: hidden;
  border-radius: 16px; background: var(--ios-surface-2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile.is-featured .tile-cover { box-shadow: 0 0 0 2.5px var(--accent, var(--ios-blue)); }
.tile-badge {
  position: absolute; top: 6px; right: 6px; z-index: 4;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.tile-badge .ti { font-size: 13px; color: #fde047; }
.tile:focus-visible { outline: none; }
.tile:focus-visible .tile-cover { outline: 3px solid var(--ios-blue); outline-offset: 2px; }
.tile-meta { display: flex; flex-direction: column; gap: 1px; padding: 0 2px; min-width: 0; }
.tile-name {
  font-size: 12px; font-weight: 600; color: #fff; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-album { font-size: 9px; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.cover-glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cover-glyph svg { width: 38%; height: 38%; opacity: 0.92; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background: #0b0b14; }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile-cover { transform: scale(1.03); } }

.section-header {
  position: sticky; top: 0; z-index: 10;
  padding: 14px 18px 6px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  background: linear-gradient(180deg, rgba(0,0,0,0.92) 60%, rgba(0,0,0,0));
  backdrop-filter: blur(6px);
}

/* =========================================================================
   Detail sheet (project) — FLIP morph
   ========================================================================= */
.sheet {
  position: absolute; inset: 0; background: var(--ios-bg); z-index: 75;
  display: none; flex-direction: column; border-radius: inherit; overflow: hidden;
}
.sheet.open { display: flex; }
.sheet.dragging { transition: none !important; }
.sheet:focus { outline: none; }
[inert] { pointer-events: none; cursor: default; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--ios-surface-2); font-size: 11px; font-weight: 500; color: var(--ios-text); }
/* Tags are tappable → filter the grid by that tag (P2). */
.chip-tag { cursor: pointer; border: 0; font: inherit; transition: background .15s ease; }
.chip-tag:focus-visible { outline: 2px solid var(--ios-blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chip-tag:hover { background: rgba(255,255,255,0.16); } }

/* Detail meta row — language dot · date · album, plus Featured / award badges. */
.sheet-meta { margin-top: 2px; }
.meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,0.62); }
.meta-item { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.lang-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.meta-sep { opacity: 0.4; }
.meta-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.meta-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.meta-badge .ti { font-size: 13px; }
.meta-badge.featured { background: rgba(192,132,252,0.16); color: #d8b4fe; }
.meta-badge.award { background: rgba(251,191,36,0.16); color: #fcd34d; }

/* Detail action area — GitHub button, lab button, or a static coursework chip. */
#sheet-action { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.action-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 12px; background: var(--ios-blue); color: #fff; font-weight: 600; }
.action-btn .ti { font-size: 18px; }
.action-btn-secondary { background: transparent; border: 1.5px solid rgba(10,132,255,0.55); color: var(--ios-blue); padding: 10.5px 12px; }
.action-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--ios-surface-2); color: rgba(255,255,255,0.72); font-weight: 600; font-size: 13px; }
.action-chip .ti { font-size: 16px; color: var(--ios-text-3); }

/* "Built at <Company>" cross-link chip on a project detail → Work role. */
.chip-builtat { cursor: pointer; border: 0; font: inherit; gap: 5px; color: var(--ios-blue); background: rgba(10,132,255,0.14); }
.chip-builtat .ti { font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .chip-builtat:hover { background: rgba(10,132,255,0.22); } }

/* =========================================================================
   Work app — experience timeline + role detail
   ========================================================================= */
.timeline { padding: 8px 16px 16px; }
.work-row {
  display: grid; grid-template-columns: 22px 1fr 18px; gap: 12px; align-items: start;
  width: 100%; text-align: left; background: none; border: 0; padding: 8px 0; cursor: pointer;
  transition: opacity .12s ease;
}
.work-row.pressing, .work-row:active { opacity: 0.7; }
.work-rail { position: relative; align-self: stretch; display: flex; justify-content: center; }
.work-rail::before {
  content: ''; position: absolute; left: 50%; top: 16px; bottom: -16px; width: 2px;
  transform: translateX(-50%); background: rgba(255,255,255,0.15);
}
.work-row:last-child .work-rail::before { display: none; }
.work-dot {
  position: relative; z-index: 1; margin-top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ios-blue); box-shadow: 0 0 0 4px var(--ios-bg);
}
.work-dot.current { background: var(--ios-bg); border: 2.5px solid var(--ios-blue); }
.work-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.work-row-head { display: flex; align-items: center; gap: 8px; }
.work-logo {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  background-size: cover; background-position: center; background-color: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.work-monogram { color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; }
.work-img { background-color: #fff; background-size: contain; background-repeat: no-repeat; background-position: center; }
.work-company { font-style: italic; font-weight: 700; font-size: 15px; color: #fff; line-height: 1.2; }
.work-dates { font-size: 12px; color: var(--ios-text-3); margin-top: 3px; }
.work-role { font-size: 14px; font-weight: 600; color: #fff; margin-top: 3px; }
.work-blurb { font-size: 13px; color: rgba(255,255,255,0.62); line-height: 1.4; margin-top: 3px; }
.work-chev { font-size: 18px; color: var(--ios-text-3); align-self: center; }

/* Role detail header */
.work-detail-head { display: flex; align-items: center; gap: 12px; }
.work-detail-head .work-logo { width: 46px; height: 46px; border-radius: 12px; }
.work-detail-head .work-monogram { font-size: 17px; }
.work-detail-company { font-style: italic; font-weight: 700; font-size: 18px; color: #fff; line-height: 1.2; }
.work-detail-dates { font-size: 13px; color: var(--ios-text-3); margin-top: 3px; }

/* =========================================================================
   Notes app
   ========================================================================= */
.note-body { padding: 4px 20px 32px; }
.note-title { font-size: 24px; font-weight: 700; }
.note-date { font-size: 12px; color: var(--ios-text-3); text-align: center; margin: 2px 0 16px; }
.note-body p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.9); margin: 0 0 14px; }
.note-body p:first-of-type { font-size: 17px; }
/* Notes app list (Apple-Notes-style rows). Each opens a full note (note-sheet). */
.note-list { padding: 4px 0 28px; }
.note-row {
  display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer; padding: 12px 20px;
  border-bottom: 0.5px solid rgba(255,255,255,0.10);
  transition: background-color .12s ease;
}
.note-row:active { background: rgba(255,255,255,0.06); }
@media (hover: hover) and (pointer: fine) { .note-row:hover { background: rgba(255,255,255,0.05); } }
.note-row-title { font-size: 16px; font-weight: 600; color: #fff; }
.note-row-sub { display: flex; gap: 6px; font-size: 13px; color: var(--ios-text-3); min-width: 0; }
.note-row-date { color: var(--ios-text-2); flex: none; }
.note-row-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Photo gallery on note / project detail pages — a 2-up grid of square thumbnails,
   collapsed to the first 4 with a "view all" button. Tap a photo to open it full. */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 4px; }
.gallery-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; background: rgba(255,255,255,0.05); }
.gallery.collapsed .gallery-img:nth-child(n+5) { display: none; }
.gallery-more { display: block; width: 100%; margin-top: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.08); color: var(--ios-blue); font-weight: 600; font-size: 14px; border: 0; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .gallery-more:hover { background: rgba(255,255,255,0.12); } }

/* Notes photo collage — first image is a tall feature beside two stacked halves.
   These never open a new page; press-and-hold magnifies them in place. */
.note-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 4px; }
.note-collage .note-photo { width: 100%; object-fit: cover; border-radius: 14px; display: block; background: rgba(255,255,255,0.06); }
.note-collage .np-tall  { grid-area: 1 / 2 / 3 / 3; height: 100%; }
.note-collage .np-half1 { grid-area: 1 / 1 / 2 / 2; aspect-ratio: 1; }
.note-collage .np-half2 { grid-area: 2 / 1 / 3 / 2; aspect-ratio: 1; }
.note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 4px; }
.note-grid .note-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; background: rgba(255,255,255,0.06); }
.note-photo { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; transition: transform .18s ease, box-shadow .18s ease; }
.note-photo.peeking { transform: scale(1.08); z-index: 5; box-shadow: 0 12px 32px rgba(0,0,0,0.55); }
@media (prefers-reduced-motion: reduce) { .note-photo { transition: none; } .note-photo.peeking { transform: scale(1.03); } }

/* Travel photo viewer — a 2-up rounded photo grid opened from a globe pin. */
.travel-viewer { background: #000; }
.travel-viewer-bar { display: flex; align-items: center; gap: 10px; padding: 44px 12px 10px; }
.travel-viewer-bar > button:first-child { min-width: 64px; }
.travel-viewer-titles { flex: 1; min-width: 0; text-align: center; }
.travel-viewer-title { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.travel-viewer-sub { font-size: 12px; color: var(--ios-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.travel-viewer-spacer { min-width: 64px; }
.travel-grid { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; padding: 4px 12px 22px; }
.travel-grid::-webkit-scrollbar { display: none; }
.travel-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; background: rgba(255,255,255,0.06); cursor: pointer; }

/* Hover gallery "cloud" floating above a globe pin (globe.gl pointLabel). */
.scene-tooltip { padding: 0 !important; background: transparent !important; border: 0 !important; pointer-events: none; }
.pin-cloud { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px; border-radius: 14px; background: rgba(22,22,24,0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 10px 26px rgba(0,0,0,0.5); }
.pin-cloud.home { border-color: rgba(255,214,10,0.5); }
.pin-cloud-imgs { display: flex; gap: 4px; }
.pin-cloud-imgs img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; display: block; }
.pin-cloud-name { font-size: 12px; font-weight: 700; color: #fff; line-height: 1.1; letter-spacing: -0.01em; }
.pin-cloud-sub { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.55); line-height: 1; }

/* =========================================================================
   Travels (globe) app
   ========================================================================= */
.globe-wrap { position: relative; flex: 1; min-height: 0; }
#globe-mount { position: absolute; inset: 0; }
#globe-mount canvas { display: block; }
.globe-loading, .globe-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ios-text-2); padding: 24px; text-align: center; }
.globe-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.18); border-top-color: var(--ios-blue); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.globe-card {
  position: absolute; left: 14px; right: 14px; bottom: 18px; z-index: 5;
  background: rgba(28,28,30,0.82); backdrop-filter: blur(20px);
  border-radius: 18px; padding: 14px 16px; display: none;
}
.globe-card.show { display: block; }
.globe-card .c-city { font-size: 17px; font-weight: 700; }
.globe-card .c-country { font-size: 13px; color: var(--ios-text-3); }
.globe-card .c-note { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 6px; }
.globe-legend { position: absolute; top: 8px; left: 14px; right: 14px; z-index: 5; font-size: 12px; color: var(--ios-text-3); }
.place-list { padding: 4px 16px 24px; }
.place-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-top: 0.5px solid var(--ios-surface-2); }
.place-item .ti { color: var(--ios-blue); font-size: 18px; margin-top: 1px; }

/* =========================================================================
   Buttons / links / focus / motion
   ========================================================================= */
a { color: var(--ios-blue); text-decoration: none; }
.btn-press { transition: transform .1s ease; }
.btn-press:active { transform: scale(0.94); }
button { cursor: pointer; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--ios-blue); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  .phone { transition: none; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
