/* card.css: generated by tools/build_pages.py. Do not edit by hand.
   DESIGN.md "Ice Glass". S9: no inline style anywhere (this is the only stylesheet of a card).
   D9: no data-URIs; fonts and images are self-hosted files (CSP font-src/img-src 'self'). */

/* ---------- Fonts: OFL-1.1, self-hosted WOFF2 (2 files) ---------- */
@font-face{font-family:"Instrument Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/instrument-serif.woff2) format("woff2")}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/instrument-sans.woff2) format("woff2")}

/* ---------- Tokens ---------- */
:root{
  --black:#000;
  --ice:#f3f6f9;
  --ice-soft:rgba(243,246,249,.82);
  --ink:#0b0c0e;
  --gold:#ddb872;
  --line:rgba(255,255,255,.16);
  --serif:"Instrument Serif","Iowan Old Style","Times New Roman",serif;
  --sans:"Instrument Sans",ui-sans-serif,system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --gutter:24px;
  --ease:cubic-bezier(.2,.7,.2,1);
  --dock-h:64px;
  --dock-clear:calc(var(--dock-h) + 30px + env(safe-area-inset-bottom,0px));
  /* T28 (Igor 2026-11-23 21:51, "clearly lower"): the identity panel's bottom edge sits --id-gap above
     the bottom of the visible screen (above the safe area). It overlaps the dock's place, so card.js keeps
     the dock hidden while the panel is at the dock's level (first screen). Replaces T26's capped
     --id-drop (panel 84-86px above the screen bottom). Also read by intro.css (--hero-h). */
  --id-gap:20px;
}
*,*::before,*::after{box-sizing:border-box}
html{background:var(--black);color-scheme:dark;-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-bottom:var(--dock-clear)}
body{margin:0;font-family:var(--sans);font-size:16px;line-height:1.5;color:var(--ice);background:var(--black);-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,p,ul,ol,figure{margin:0;padding:0}
ul,ol{list-style:none}
img,svg{display:block}
a{color:inherit;text-decoration:none;touch-action:manipulation} /* T35: no tap highlight only on the pressed controls (Touch) */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ico-gap{width:22px;height:22px;flex:none}

/* Two-tone focus ring: 2px white + 5px black halo (reads on photo, glass, black and ice) */
:focus-visible{outline:2px solid #fff;outline-offset:3px;box-shadow:0 0 0 5px #000}

/* ---------- Ambient backdrop: the hero, pre-blurred at build time (no CSS blur) ---------- */
.ambient{position:fixed;inset:0;height:100lvh;z-index:0;background:#000;pointer-events:none;overflow:hidden}
.ambient img{width:100%;height:100%;object-fit:cover}
.ambient::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.5)}

.page{position:relative;z-index:1;max-width:480px;margin:0 auto;padding-bottom:var(--dock-clear)}

/* ---------- Glass (DESIGN.md 7.1): solid first, real glass only where supported.
   Never animated, never inside a transformed ancestor, -webkit- first, literal values. ---------- */
.glass{position:relative;background:rgba(17,18,22,.94);border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 24px 48px -24px rgba(0,0,0,.8)}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .glass{background:rgba(12,13,17,.46);-webkit-backdrop-filter:blur(26px) saturate(170%) brightness(.72);backdrop-filter:blur(26px) saturate(170%) brightness(.72)}
  .id.glass{background:rgba(14,16,20,.8)} /* T22 lit edge: darker tint, same literal filter values */
  /* T35 (Brain ruling C): dock tint .4 -> .55, the smallest value where every dock icon is >= 3:1 with the
     press halo held over a pure-white photo (measured 3.01:1; .4 gave 2.07:1, and 2.44:1 even at rest) */
  .dock.glass{background:rgba(12,13,17,.55);-webkit-backdrop-filter:blur(22px) saturate(180%) brightness(.6);backdrop-filter:blur(22px) saturate(180%) brightness(.6)}
}
.glass::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(140deg,rgba(255,255,255,.06),rgba(255,255,255,0) 38%)}

/* ---------- Hero ---------- */
.hero{position:relative;display:flex;flex-direction:column;min-height:100vh;min-height:min(100svh,960px);padding-bottom:calc(var(--id-gap) + env(safe-area-inset-bottom,0px))}
.hero-photo{position:relative;flex:1 1 0;width:100%;min-height:300px;overflow:hidden;
  -webkit-mask-image:linear-gradient(#000 58%,transparent);mask-image:linear-gradient(#000 58%,transparent)}
.hero-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 18%}
/* T19 (Igor 2026-11-23): dark base under the name panel, so bright or colourful photos don't glow
   through the glass. Transparent at 45% of the hero's height to black .85 at the bottom, inside the mask.
   White-photo test (DESIGN.md 9; hero pure white, ambient <= .333, glass brightness .72 + tint .46,
   blur approximated by the pixel 26px above): worst case 375x667 panel top, ice 6.51 -> 9.94:1,
   ice-soft 5.02 -> 7.31:1; 390x844 panel top ice 8.08 -> 12.17:1. It only darkens. */
.hero-photo::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.85))}
/* Per-client focal points, generated from the client files (Brain ruling 2026-11-23 #4;
   research 03 decides the final per-client method). No style="" (S9). */
.hero-photo img.focal-0-28,.ib-hero img.focal-0-28{object-position:0% 28%}
.hero-photo img.focal-50-30,.ib-hero img.focal-50-30{object-position:50% 30%}
.top{position:absolute;inset:0 0 auto 0;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:calc(14px + env(safe-area-inset-top,0px)) 14px 0}
.tag{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:4px 14px 4px 4px;border-radius:999px;background:rgba(0,0,0,.68);border:1px solid var(--line);font-size:14px;font-weight:500;letter-spacing:.01em;white-space:nowrap}
.tag{min-width:0}
.tag>span:not(.mono):not(.sr){min-width:0;overflow:hidden;text-overflow:ellipsis} /* long studio names shrink, never overflow */
.tag.place{flex:none;padding-left:11px;gap:6px}
.tag .ico{width:16px;height:16px;color:var(--gold)}
.mono{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;border:1.5px solid var(--gold);color:var(--gold);font-family:var(--serif);font-size:17px;line-height:1}
.mono.lg{width:40px;height:40px;font-size:24px}

/* ---------- Rotating hero (T39, 2026-11-24; only when the client file has hero_rotation) ----------
   A second <img> stacked over the main hero inside .hero-photo; ONLY it animates (opacity), never .hero,
   .hero-photo or the identity panel (a sibling of .hero-photo, never inside it). .hero-photo::after (the bottom
   scrim) paints after both images, so it stays above both. Hidden by default: it shows and rotates only inside the
   no-preference block (Motion, below), so under Reduce Motion it is display:none (lazy, never fetched) and nothing
   moves. color:transparent: no alt text can fade in if the file fails to load. T42 (Igor 2026-11-24 17:53): no pause
   control; an accepted WCAG 2.2.2 (Level A) exception, logged in _shared/decisions.md; Reduce Motion is the mitigation. */
.hero-photo .hero-2{display:none;opacity:0;color:transparent}

/* ---------- Identity panel (glass 1) ---------- */
.id{flex:none;margin:-116px 12px 0;padding:20px 12px 12px;border-radius:34px}
.id>*{position:relative}
.id h1,.id .role,.id .kinds{padding-inline:10px}
/* T22 (Igor's idea-board pick, 2026-11-23 20:20): larger, tighter name; gold 32x1 hairline; small
   uppercase role; "lit edge" panel. Role contrast (rgba(232,240,248,.72) on the .8 tint over a backdrop
   pixel of pure white after brightness .72 = .188 sRGB): 6.65:1 worst case (white-photo test at the
   375x667 panel top: 8.39:1; solid fallback over white: 7.92:1). Name (ice) worst case 11.92:1. */
.id h1{font-family:var(--serif);font-weight:400;font-size:clamp(2.75rem,12vw,3.5rem);line-height:.95;letter-spacing:-.01em;text-wrap:balance;overflow-wrap:anywhere}
.id-rule{display:block;width:32px;height:1px;margin:12px 0 0 10px;background:var(--gold);transform-origin:left center} /* T33: draws from the left (the panel is left-aligned) */
.role{margin-top:10px;font-size:12px;line-height:1.4;font-weight:500;text-transform:uppercase;letter-spacing:.22em;color:rgba(232,240,248,.72)}
.id.glass{border:1px solid rgba(255,255,255,.12)} /* T32: its T22 shadow (0 24px 48px .45) is replaced by the depth shadow below */
.kinds{display:flex;flex-wrap:wrap;gap:4px;margin-top:14px}
.kinds li{padding:4px 8px;border:1px solid rgba(255,255,255,.26);border-radius:999px;font-size:14px;font-weight:500;line-height:1.4}

/* ---------- Save contact: the main action (6.3) ---------- */
.save{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;height:64px;min-height:64px;margin-top:18px;border-radius:22px;overflow:hidden;isolation:isolate;
  background:linear-gradient(180deg,#fff,#e3e9ef);color:var(--ink);font-size:18px;font-weight:600;letter-spacing:-.005em;
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(11,12,14,.14),0 10px 28px -10px rgba(0,0,0,.7)}
.save .ico{width:26px;height:26px;stroke-width:1.9}
/* T23: Check your date. "Filled glass" = translucent fill + border, NO backdrop-filter (a blur would be
   a 4th glass element, nested inside glass 1; DESIGN.md 7.1). 52px tall. T26: no helper line under it
   (aria-label "Check your date on WhatsApp" instead), so it is the panel's last item. */
.book{position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center;justify-content:center;min-height:52px;margin-top:10px;border-radius:18px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:var(--ice);font-size:16px;font-weight:600}
/* T34: the press scale only without Reduce Motion. T35: it moved to the no-preference block (Motion, below). */

/* ---------- Recent work: centre-stage carousel (6.4) ---------- */
.work{margin-top:20px}
.work .lede{margin-top:4px;padding-inline:var(--gutter);font-family:var(--serif);font-style:italic;font-size:22px;line-height:1.25;color:var(--ice-soft);text-wrap:pretty}
.work h2,.reach h2{font-family:var(--serif);font-weight:400;font-size:36px;line-height:1.1;letter-spacing:-.01em;padding-inline:var(--gutter);text-wrap:balance}
.stage{--w:66vw;--lap:0px;display:flex;gap:12px;margin-top:10px;padding:22px calc(50% - var(--w)/2) 30px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.stage::-webkit-scrollbar{display:none}
/* full-bleed strip: the same two-tone ring, drawn inset */
.stage:focus-visible{outline:2px solid #fff;outline-offset:-7px;box-shadow:inset 0 0 0 5px #000}
.stage li{position:relative;flex:0 0 var(--w);scroll-snap-align:center;scroll-snap-stop:always;border-radius:26px;overflow:hidden;background:#111;box-shadow:0 22px 40px -18px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.1)}
.stage li.start{scroll-initial-target:nearest}
/* T29: card.js centres the start photo with offsetLeft, measured from this box (no effect on stacking: no z-index).
   scroll-initial-target above is a hint only: CSS.supports() is false in the tested WebKit. */
.stage{position:relative}
.stage img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
@media (min-width:480px){.stage{--w:316px}}
/* Carousel dots (Igor 2026-11-23 15:10, replaces the line rail; overrides DESIGN.md 6.4 "no page dots",
   logged for a supervised edit). Decorative (aria-hidden); driven by the same CSS scroll-timeline as the
   rail was. One 6px dot per photo; a white 18x6 pill moves to the active dot with translateX only.
   T21 (Igor's iPhone, 2026-11-23): Safari passed the scroll-timeline test (the dots showed) but the pill
   stepped from dot to dot, so card.js (behaviour 1) now drives it wherever it runs: it adds .js and sets
   --x = scroll progress 0..1 (style.setProperty, rAF-throttled passive scroll listener). No transition, so
   reduced motion gets direct tracking with no easing. The CSS scroll-timeline pill stays as the no-JS
   fallback; with neither, the dots stay hidden (a pill that can't move would lie). */
.dots{display:none;position:relative;gap:8px;width:max-content;margin:0 auto;padding:2px 0}
.dots.js{display:flex}
.dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.35)}
.dots b{position:absolute;left:-6px;top:2px;width:18px;height:6px;border-radius:3px;background:#fff}
.dots.js b{transform:translateX(calc(clamp(0,var(--x,0),1) * var(--travel)))} /* T28: the 0..1 clamp moved here from card.js (bytes) */
.dots.n4{--travel:42px}.dots.n5{--travel:56px}.dots.n6{--travel:70px}.dots.n7{--travel:84px}.dots.n8{--travel:98px}.dots.n9{--travel:112px}

/* ---------- Photo viewer (T40, 2026-11-24; only when every photo has `large`). CSS only, :target. ----------
   Slide links (.ph, id pN) open #vN; the viewers are direct children of <body> before .page (never inside the
   carousel, a .rv, glass or anything transformed), so position:fixed is the full screen. Close goes to #pN: the
   carousel lands on that photo, centred by scroll-margin-top (half the screen minus half the 4:5 photo, which
   is 66vw wide, 316px from 480px up), and focus returns to its link. Pinch zoom is the browser's page zoom
   (viewport zoom stays enabled; Brain ruling Q1 A). Save deterrents only, not protection: no download link,
   no link to the raw file, no callout, no selection, draggable=false and a transparent shield over the image.
   touch-action stays auto (manipulation on the links), so pinch and pan keep working. */
.ph{position:relative;display:block;min-height:44px;border-radius:inherit;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;scroll-margin-top:calc(50svh - min(41.25vw,197.5px))}
.ph:focus-visible{outline:none;box-shadow:none}
.ph:focus-visible::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 5px #000,inset 0 0 0 7px #fff} /* the two-tone ring, inset (the slide clips outside rings) */
/* T43 (Igor's iPhone, 2026-11-24: a white border stayed on the photo after Close). Cause, measured in WebKit: Close
   goes to #pN, the fragment navigation focuses that link and WebKit counts it as :focus-visible even after a touch,
   so the ring above shows. Suppressed for touch screens only, and only on the targeted link; keyboards keep the ring
   (WCAG 2.4.7). Leftover: a touch screen with a hardware keyboard (iPad) doesn't see it on the targeted photo
   until the hash changes. */
@media (hover:none) and (pointer:coarse){.ph:target:focus-visible::after{box-shadow:none}}
/* T43 (Igor 2026-11-24 18:00): ONE viewer with a swipe track. It shows while any slide is the :target
   (.viewer:has(.vslide:target); :has() needs Safari 15.4+, older browsers just change the hash and stay on the card).
   The track jumps to the targeted slide (scroll-behavior:auto, never a sweep); slides are a full track wide and snap
   one at a time. Each slide's Close goes back to its own #pN, so after swiping to photo M, Close lands on photo M.
   The viewer and the slides are non-interactive containers (the slide takes the fragment focus, tabindex=-1): no
   outline at all. */
.viewer{display:none}
.viewer:has(.vslide:target){position:fixed;inset:0;z-index:20;display:block;background:rgba(0,0,0,.96);-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.viewer,.vslide,.viewer:focus-visible,.vslide:focus-visible{outline:none;box-shadow:none}
.vtrack{display:flex;height:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:auto;scrollbar-width:none}
.vtrack::-webkit-scrollbar{display:none}
/* content-visibility:auto (Brain ruling, 2026-11-24): WebKit then fetches only the opened slide's large photo and its
   two neighbours (measured; without it, the opened slide and two on each side), and each swipe fetches the next one
   before it arrives. Containment sits on the slides only, never on .page or the dock's ancestors. */
.vslide{position:relative;flex:0 0 100%;height:100%;display:grid;place-items:center;scroll-snap-align:center;scroll-snap-stop:always;content-visibility:auto;contain-intrinsic-size:auto 100vw auto 100vh}
/* the large photo's own contained box (per-ratio .ar-W-H rules below); the cached small slide image waits under the
   large one in the same box while it loads, so it never peeks out around it */
.vbox{position:relative}
.vbox img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.vshield{position:absolute;inset:0}
/* Close: 44px, a solid dark disc like the top tags (not glass), safe-area aware, inside its own slide (absolute, so
   the slides' Close links never stack on one spot) */
.vbtn{position:absolute;z-index:1;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--ice);background:rgba(0,0,0,.68);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),inset 0 1px 0 rgba(255,255,255,.16),0 6px 18px rgba(0,0,0,.35)}
.vclose{top:calc(14px + env(safe-area-inset-top,0px));right:14px}
.ar-1067-1600{aspect-ratio:1067/1600;width:min(100%,calc(100vh * 1067 / 1600));width:min(100%,calc(100dvh * 1067 / 1600))}
.ar-1280-1600{aspect-ratio:1280/1600;width:min(100%,calc(100vh * 1280 / 1600));width:min(100%,calc(100dvh * 1280 / 1600))}
/* background hidden while the viewer is open: out of sight, out of the tab order and out of the accessibility tree.
   !important beats the intro's visibility hold; descendants too, because the intro's "done" rules set
   visibility:visible on .page *. visibility is not on the .page forbidden list (no transform/filter/contain). */
.viewer:has(.vslide:target)~.page,.viewer:has(.vslide:target)~.page *,.viewer:has(.vslide:target)~.dock,.viewer:has(.vslide:target)~.dock *{visibility:hidden!important}

/* ---------- Get in touch (glass 2, 6.5) ---------- */
.reach{margin-top:38px}
.rows{margin:18px 12px 0;padding:6px 0;border-radius:28px}
.rows a{position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center;gap:14px;min-height:58px;padding:8px 20px}
.rows li+li a::before{content:"";position:absolute;left:56px;right:20px;top:0;border-top:1px solid var(--line)}
.rows .ico{color:var(--gold)} /* every row icon incl. Instagram (Igor 2026-11-23 16:15; DESIGN.md 3/6.8 to be edited) */
/* Meta logos (variant A): 29px glyphs (T14); our 22px row icons sit centred in the same 29px slot */
.rows .logo{width:29px;height:29px;flex:none}
.rows.logos li:not(.phone) .ico{margin-inline:3.5px}
.rows.logos li+li a::before{left:63px}
.rows b{flex:none;font-weight:500;font-size:17px}
.rows span:not(.ico-gap):not(.wash):not(.beam){min-width:0;overflow-wrap:anywhere;margin-left:auto;font-size:15px;color:var(--ice-soft);text-align:right;font-variant-numeric:tabular-nums}
.rows .phone{padding:12px}
/* T23: about line at the top of Get in touch: round vCard photo (56px) + one short plain-text line */
.rows .about{position:relative;display:flex;align-items:center;gap:14px;padding:14px 20px}
.rows .about::after{content:"";position:absolute;left:20px;right:20px;bottom:0;border-top:1px solid var(--line)}
.rows .about img{width:56px;height:56px;flex:none;border-radius:50%;object-fit:cover;background:#111}
.rows .about p{min-width:0;font-size:15px;line-height:1.45;color:var(--ice);text-wrap:pretty}
.rows .acts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rows .acts.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.rows .acts a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;min-height:84px;padding:10px 4px;border-radius:20px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);font-size:16px;font-weight:500;white-space:nowrap}
.rows .acts .ico{width:26px;height:26px;color:var(--ice)}
.rows .acts .ico-gap{width:26px;height:26px}
.rows .acts .logo{width:29px;height:29px;margin:-1.5px 0} /* 29px glyph in a 26px line: labels stay aligned */
@media (max-width:360px){.rows .acts a{font-size:15px}}
/* T41 closing line (optional; one short sentence): Instrument Serif italic like the "Recent work" tagline, ice-soft,
   centred, revealed like the other blocks (.rv). "reach": inside glass 2 right under the buttons (the panel never
   moves, only the line); "end": its own line above the footer, on the ambient backdrop like the tagline. */
.closing{font-family:var(--serif);font-style:italic;font-size:22px;line-height:1.25;color:var(--ice-soft);text-align:center;text-wrap:balance}
.rows .closing{padding:6px 20px 16px}
p.closing{margin-top:44px;padding-inline:var(--gutter)}

/* ---------- Footer (6.7) ---------- */
footer{margin-top:40px;padding:0 var(--gutter) 8px;font-size:14px;line-height:1.45;color:var(--ice-soft)}
.foot-id{display:flex;align-items:center;gap:14px}
.foot-id p{text-wrap:pretty;min-width:0;overflow-wrap:anywhere}
footer strong{display:block;font-weight:600;color:var(--ice);font-size:15px}
.legal{display:flex;flex-wrap:wrap;gap:0 24px;margin-top:2px;padding-left:54px}
.legal a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;font-size:14px;color:var(--ice-soft);text-decoration:underline;text-underline-offset:3px}

/* ---------- Depth (T32, Igor 2026-11-24 polish ask): static light and shadow, no motion ----------
   Glass (all three panels): a soft inner top line, a dark inner bottom line and a softer, tighter drop shadow,
   plus a 1px masked edge on the free ::after (::before keeps the DESIGN.md 7.1 sheen: a ring mask there
   would cut away the sheen's interior). The edge sits at inset:-1px, ON the existing border (Brain answer
   3A: no double line, the corner radius matches exactly). Light from the top left, a faint gold trace at
   the bottom right. Build switch DEPTH_EDGE in tools/build_pages.py: "mask" (default) or "border" (the
   fallback: brighter top border, no ::after). Nothing here animates or transforms a glass element. */
.glass{box-shadow:inset 0 1px 0 rgba(255,255,255,.10),inset 0 -1px 0 rgba(0,0,0,.28),0 18px 40px -20px rgba(0,0,0,.6)}
.glass::after{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;pointer-events:none;background:linear-gradient(160deg,rgba(255,255,255,.38),rgba(255,255,255,.08) 36%,transparent 60%,rgba(221,184,114,.20));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
/* Top pills (solid, not glass): an inset ring replaces the border (border transparent, same 1px size; 3A) */
.tag{border-color:transparent;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),inset 0 1px 0 rgba(255,255,255,.16),0 6px 18px rgba(0,0,0,.35)}
/* Carousel: dark wrapper, inset hairline on the free li::before (li::after is the centre-stage dim layer, so
   the hairline dims with its photo), a softer outer shadow. The track gets 10px more bottom padding for the
   shadow and gives it back with a negative margin: layout, centring and the dots don't move. */
.stage{padding-bottom:40px;margin-bottom:-10px}
.stage li{background:#101114;box-shadow:0 18px 40px -18px rgba(0,0,0,.7)}
.stage li::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.10),inset 0 1px 0 rgba(255,255,255,.18)}

/* ---------- Dock (glass 3, fixed, never animated; 6.6) ---------- */
.dock{position:fixed;z-index:5;left:0;right:0;margin:0 auto;bottom:calc(14px + env(safe-area-inset-bottom,0px));width:max-content;height:var(--dock-h);padding:8px;border-radius:32px;display:flex;align-items:center;gap:8px}
.dock a{position:relative;display:grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;border-radius:50%}
.dock .d{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;transition:transform .16s var(--ease)} /* 7.2: transform/opacity only */
.dock .main .d{background:linear-gradient(180deg,#fff,#e3e9ef);color:var(--ink);box-shadow:inset 0 1px 0 #fff,0 4px 12px -4px rgba(0,0,0,.6)}
.dock .sep{width:1px;height:26px;background:rgba(255,255,255,.22)}
.dock .logo{width:29px;height:29px}
.dock.off{visibility:hidden;pointer-events:none} /* instant; fading glass breaks its blur on iPhone */
/* T28: intro.css's #intro-done:target~.dock (and ~.dock *) set visibility:visible at specificity (1,2,0), which
   beat .dock.off, so after Skip the dock never hid. !important keeps .off in charge (still a discrete switch). */
.dock.off,.dock.off *{visibility:hidden!important}

/* ---------- Touch (T35, Igor 2026-11-24 01:17: the T31 Polish test effects on the real card) ----------
   Exactly the T31 values and timings. Slots (T31 survey, re-checked): Call/Text/WhatsApp and Check your date:
   ::before = held shade, ::after = release sweep (on the buttons ::before also matches the row-divider rule,
   so its geometry is reset here); Save: ::after = the load sheen, so ::before = held shade and the .glint span
   = sweep; rows: ::before = the divider, so the wash is the .wash span, and the .chev leans; dock links:
   ::after = halo, the Save disc a dark shade instead. Layers sit at z-index:-1 inside an isolation:isolate
   control, so the icon and label paint above them. Only children of glass move: no glass element and nothing
   containing one transforms or animates (the dock never does). Reduce Motion: scale, sweep and lean are only
   in the no-preference block (Motion, below); shade, wash and halo switch instantly (the global reset). */
.rows a,.save,.book,.dock a{-webkit-tap-highlight-color:transparent}
.dock a{isolation:isolate}
/* held shade: 0 s in, 420 ms out (ice .08 on the dark buttons, black .07 on the ice Save) */
.rows .acts a::before,.book::before,.save::before{content:"";display:block;position:absolute;inset:0;z-index:-1;border:0;border-radius:inherit;background:rgba(243,246,249,.08);opacity:0;pointer-events:none;transition:opacity 420ms var(--ease)}
.save::before{background:rgba(0,0,0,.07)}
.rows .acts a:active::before,.book:active::before,.save:active::before{opacity:1;transition-duration:0s}
/* release sweep: at rest off to the right and transparent; the gold trace only on dark surfaces, the ice Save
   gets a dark band with no gold stop (DESIGN.md 3) */
.rows .acts a::after,.book::after,.save .glint{content:"";position:absolute;top:-20%;bottom:-20%;left:0;width:60%;z-index:-1;pointer-events:none;background:linear-gradient(105deg,transparent,rgba(243,246,249,.14) 45%,rgba(221,184,114,.10) 58%,transparent);opacity:0;transform:translateX(172%)}
.save .glint{background:linear-gradient(105deg,transparent,rgba(10,12,16,.10) 50%,transparent)}
/* T36 button light (T31 values, Brain 5B peak .08): one band per button, scroll-linked to the button row (Motion,
   below). At rest and without scroll timelines it waits off to the left, clipped by the button. Hidden while
   its button is pressed, so shade + sweep + beam never stack (resolves T31-T33 question (a)). */
.rows .acts .beam{position:absolute;top:-20%;bottom:-20%;left:0;width:60%;z-index:-1;pointer-events:none;background:linear-gradient(105deg,transparent,rgba(243,246,249,.08) 45%,rgba(221,184,114,.057) 58%,transparent);transform:translateX(-105%)}
.rows .acts a:active .beam{opacity:0}
/* rows: press wash 60 ms in, 500 ms out; the last row's wash follows the panel's corner (28 - 6px padding) */
.rows .wash{position:absolute;inset:0;z-index:-1;background:rgba(243,246,249,.07);opacity:0;pointer-events:none;transition:opacity 500ms var(--ease)}
.rows a:active .wash{opacity:1;transition-duration:60ms}
.rows li:not(.phone):last-child>a{border-radius:0 0 22px 22px}
/* the chevron: 16px, 8px after the value (Brain answer 1A) */
.rows .chev{width:16px;height:16px;margin-left:-6px;color:var(--ice-soft)}
/* dock: a round halo 60 ms in, 500 ms out; the Save disc gets the dark shade instead */
.dock a::after{content:"";position:absolute;inset:-4px;z-index:-1;border-radius:50%;background:rgba(255,255,255,.14);opacity:0;pointer-events:none;transition:opacity 500ms var(--ease)}
.dock a:active::after{opacity:1;transition-duration:60ms}
.dock .main::after{content:none}
.dock .main .d{position:relative;isolation:isolate}
.dock .main .d::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:rgba(0,0,0,.07);opacity:0;pointer-events:none;transition:opacity 420ms var(--ease)}
.dock .main:active .d::before{opacity:1;transition-duration:0s}
@media (hover:hover){.save:hover{background:#fff}.book:hover{background:rgba(255,255,255,.18)}.dock a:not(.main):hover .d{background:rgba(255,255,255,.12)}.rows a:hover b{text-decoration:underline;text-underline-offset:4px}}

/* ---------- Motion (7.2): transform + opacity only, never on glass ----------
   Timing model (T10): base styles are the FINAL visible state; hidden starting states live only in a
   keyframe `from` with fill-mode backwards, so animation:none always shows the finished card.
   delay = calc(<start> + var(--load-offset) - var(--t)): --load-offset is set by intro.css (the load
   sequence plays as the intro overlay fades), --t only by the frozen-frame test stylesheets. */
@media (prefers-reduced-motion:no-preference){
  /* T35 touch (T31 values): press 90 ms in, 420 ms back (the dock keeps its .16 s); the sweep jumps left on
     press and runs right on release, fading late; the chevron leans 3px */
  .rows .acts a,.save,.book{transition:transform 420ms var(--ease)}
  .rows .acts a:active,.book:active{transform:scale(.96);transition-duration:90ms}
  .save:active{transform:scale(.985);transition-duration:90ms}
  .dock a:active .d{transform:scale(.96)}
  .dock .main:active .d{transform:scale(.94)}
  .rows .acts a::after,.book::after,.save .glint{transition:transform 650ms var(--ease),opacity 650ms ease-in}
  .rows .acts a:active::after,.book:active::after,.save:active .glint{transform:translateX(-105%);opacity:1;transition-duration:0s}
  .rows .chev{transition:transform 420ms var(--ease)}
  .rows a:active .chev{transform:translateX(3px);transition-duration:90ms}
  /* T22: no-intro pages: the hero eases 1.06 -> 1 over 2.4 s once (intro pages: intro.css owns it) */
  .hero-photo img{animation:settle 2.4s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(0s + var(--load-offset,0s) - var(--t,0s))}
  .id h1,.id .role,.id .kinds,.id .save,.id .book{animation:rise .7s var(--ease) backwards;animation-delay:calc(0s + var(--load-offset,0s) - var(--t,0s))}
  .id .role{animation-delay:calc(.07s + var(--load-offset,0s) - var(--t,0s))}
  /* T33 (Igor 2026-11-24 polish ask): the gold hairline draws itself (scaleX from the left), name + .1 s; the top
     pills settle (6px drop + fade, .5 s) at .25 / .33 s. On intro pages --load-offset = T, so the pills land at
     T + .25 / .33 s; intro.css moves the panel's entrance later there. Solid pills, not glass. */
  .id .id-rule{animation:draw .7s var(--ease) backwards;animation-delay:calc(.1s + var(--load-offset,0s) - var(--t,0s))}
  .top .tag{animation:drop .5s var(--ease) backwards;animation-delay:calc(.25s + var(--load-offset,0s) - var(--t,0s))}
  .top .tag.place{animation-delay:calc(.33s + var(--load-offset,0s) - var(--t,0s))}
  .id .kinds{animation-delay:calc(.14s + var(--load-offset,0s) - var(--t,0s))}
  .id .save{animation-delay:calc(.21s + var(--load-offset,0s) - var(--t,0s))}
  .id .book{animation-delay:calc(.28s + var(--load-offset,0s) - var(--t,0s))}
  .save::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.95) 50%,transparent 65%);transform:translateX(100%);animation:sheen 1s var(--ease) backwards;animation-delay:calc(.9s + var(--load-offset,0s) - var(--t,0s))}
  /* T39 rotating hero, 9 s loop (T45), opacity only: main hero 3 s, 1.5 s crossfade, hero 2 3 s, 1.5 s back. Easing only
     inside the two fades (the holds don't change). Hero 2 has no settle (this rule beats .hero-photo img); the main
     hero keeps its own. On intro pages --load-offset = T starts the clock there. */
  .hero-photo .hero-2{display:block;animation:hero-swap 9s linear infinite;animation-delay:calc(0s + var(--load-offset,0s) - var(--t,0s))}
  /* T40: the viewer opens with a 200 ms opacity fade (not glass); Close is instant. T43: one viewer; swiping
     between slides doesn't change the target, so it fades only on open */
  .viewer:has(.vslide:target){animation:vfade .2s ease-out}
  @keyframes vfade{from{opacity:0}}
  @keyframes hero-swap{0%,33.33%{opacity:0;animation-timing-function:ease-in-out}50%{opacity:1}83.33%{opacity:1;animation-timing-function:ease-in-out}100%{opacity:0}}
  @keyframes settle{from{transform:scale(1.06)}}
  @keyframes rise{from{opacity:0;transform:translateY(12px)}}
  @keyframes draw{from{transform:scaleX(0)}}
  @keyframes drop{from{opacity:0;transform:translateY(-6px)}}
  @keyframes sheen{from{transform:translateX(-100%)}}

  @supports (animation-timeline:view()){
    .stage{--lap:4vw;gap:0}
    .stage li{margin-inline:calc(var(--lap) * -1);view-timeline:--shot inline;animation:depth linear both;animation-timeline:--shot}
    .stage li::after{content:"";position:absolute;inset:0;background:#000;pointer-events:none;animation:dim linear both;animation-timeline:--shot}
    .stage li:first-child{margin-left:0}.stage li:last-child{margin-right:0}
    @keyframes depth{0%,15%{transform:scale(.82);z-index:1}50%{transform:scale(1);z-index:3}85%,100%{transform:scale(.82);z-index:1}}
    @keyframes dim{0%,15%{opacity:.42}50%{opacity:0}85%,100%{opacity:.42}}
    @media (min-width:480px){.stage{--lap:24px}}
    /* T36 scroll reveal (T31 values): on wrappers only, never on a glass panel, .page, the carousel, the button
       row or a control that scales on press: the "Recent work" title + tagline, the about block and each link
       row (inside glass 2; the panel itself never moves) and the footer's monogram + name */
    .rv{animation:rv linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
    @keyframes rv{from{opacity:0;transform:translateY(12px)}}
    /* T36 button light: staggered, linked to the button row's place in the viewport */
    .rows .acts{view-timeline-name:--touch;view-timeline-axis:block}
    .rows .acts .beam{animation:beam-1 linear both;animation-timeline:--touch;animation-range:cover 18% cover 55%}
    .rows .acts a:nth-child(2) .beam{animation-name:beam-2}
    .rows .acts a:nth-child(3) .beam{animation-name:beam-3}
    @keyframes beam-1{0%{transform:translateX(-105%)}34%,100%{transform:translateX(172%)}}
    @keyframes beam-2{0%,33%{transform:translateX(-105%)}67%,100%{transform:translateX(172%)}}
    @keyframes beam-3{0%,66%{transform:translateX(-105%)}100%{transform:translateX(172%)}}
  }
  @supports (animation-timeline:scroll()) and (timeline-scope:--stage){
    .work{timeline-scope:--stage}
    .stage{scroll-timeline:--stage inline}
    .dots:not(.js){display:flex}
    .dots:not(.js) b{animation:pill linear both;animation-timeline:--stage}
    @keyframes pill{to{transform:translateX(var(--travel))}}
  }
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media (forced-colors:active){.glass,.tag,.save{border:1px solid CanvasText}}
