:root{--side:clamp(16px,3vw,32px);--m-in:16px;--page:#ededed;--ink:#171717;--mute:#6f6f6f;--faint:#9a9a9a;--card:#fcfcfc;--line:#e2e2e2;--accent:#ff5a36;
--sans:"Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;--mono:"Bitcount Grid Single",ui-monospace,Menlo,monospace;--ease:cubic-bezier(.2,.7,.2,1);
--h:min(68vh,640px);--gap:clamp(12px,1.6vw,24px)}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body.home{background:var(--page);color:var(--ink);font:var(--t-body-home);-webkit-font-smoothing:antialiased;display:flex;flex-direction:column;min-height:100vh;overflow-x:hidden}
a{color:inherit}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip{position:absolute;left:-999px;top:8px;z-index:99;background:var(--ink);color:#fff;padding:8px 14px;border-radius:8px}.skip:focus{left:12px}
.top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:22px var(--side)}
.brand{font:var(--t-brand);letter-spacing:var(--t-label-ls);word-spacing:var(--t-label-ws);text-decoration:none}
.top nav{justify-self:end;display:flex;gap:20px;font-size:14px}
.top nav a{color:var(--mute);text-decoration:none;transition:color .2s}.top nav a:hover{color:var(--ink)}
/* tick indicator */
/* rail — virtual horizontal scroll; JS drives one transform on .strip */
main{flex:1;display:flex;min-height:0;position:relative}
.rail{flex:1;width:100%;position:relative;overflow:hidden;touch-action:pan-y;user-select:none}
.strip{list-style:none;display:flex;align-items:flex-start;gap:var(--gap);position:absolute;left:0;top:50%;
  --cw:clamp(300px,44vw,820px);--ch:calc(var(--cw)*.569444);margin-top:calc(var(--ch)/-2 + var(--oy,0px));margin-left:var(--ox,0px); /* --ox/--oy (js/home.js measure): put the strip's layout box on whole px, so every engine paints its scaled content exactly where getBoundingClientRect says (Chrome rounds a transformed box's offset to css px, WebKit to device px) */
  transform-origin:0 50%}
.strip.mv{will-change:transform;backface-visibility:hidden} /* GPU layer only while it moves: at rest the strip is painted straight to the page (2D transform, no backface/will-change), so Safari never shows the scaled cards from a layer sitting between device pixels and the grid hairlines stay even (Hang, 2026-10-24) */
.card{flex:none;width:var(--cw);position:relative}
.hit{display:block;text-decoration:none;color:inherit}
.lbl{display:flex;align-items:baseline;gap:10px;height:28px;padding:0 2px;font:400 12px/1 var(--sans);color:var(--faint);white-space:nowrap}
.lbl .lt{color:var(--mute)}
.lbl .lm{font-family:var(--mono);font-size:11px;overflow:hidden;text-overflow:ellipsis}
.lbl .st{margin-left:auto;font:400 11px/1 var(--mono)}
.lbl .go{color:var(--ink);opacity:.55;transition:opacity .25s}.live .hit:hover .go{opacity:1}
.lbl .soon{color:var(--faint)}
/* every card shares one surface: same size, radius, outline */
.media-wrap{display:block;width:100%;aspect-ratio:1440/820;border-radius:round(calc(var(--cw) / 30), 2px); /* circular: 1/30 of the card width (= old 3.3333% horizontal), so tall intro/About cards match project cards */overflow:hidden;isolation:isolate;
  box-shadow:0 0 0 1px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.04)}
/* photo cards get their own GPU layer (translateZ, corner fringe) only while the strip moves, and on mobile where the strip is not scaled. At rest on desktop
   nothing inside the strip may be composited: WebKit then composites the scaled strip too ("transform with composited descendants") and rasterises it at the
   device scale, not the strip's ~1.66x, so Safari magnified it on the GPU and the intro's 1px grid lines came out 1.66 or 3.3 device px (Hang, 2026-10-26) */
.strip.mv .card:not(.intro) .media-wrap{transform:translateZ(0)}
@media (max-width:640px),(orientation:portrait) and (max-width:1024px){.card:not(.intro) .media-wrap{transform:translateZ(0)}}
.media-wrap.surface{background:var(--c-paper)}
.media-wrap img{display:block;width:100%;height:100%;object-fit:cover;-webkit-user-drag:none}
.intro-in{display:flex;flex-direction:column;justify-content:flex-end;height:100%;padding:6% 6.5%}
.line{font:400 calc(var(--cw)*.042)/1.18 var(--sans);letter-spacing:-.02em;max-width:18ch}
.hint{margin-top:7%;font:400 11px/1 var(--mono);color:var(--faint);text-transform:none;letter-spacing:.06em}
.hint .arr{display:inline-block;animation:nudge 1.8s var(--ease) infinite}
.hint-touch{display:none}@media (hover:none){.hint-desk{display:none}.hint-touch{display:inline}}
@keyframes nudge{0%,100%{transform:none}50%{transform:translateX(4px)}}

.about .media-wrap{container-type:inline-size}
.about-in{padding:5% 6%;min-height:100%;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box}
.statement{margin:0;font-family:var(--sans);font-weight:400;font-size:clamp(7px,min(3.3cqi,3.5cqi - 1.2px),46px);line-height:1.15;letter-spacing:-.02em;color:var(--c-strong);text-wrap:pretty}
.statement b{font-weight:700}
.k{font:400 11px/1.5 var(--mono);color:var(--faint);text-transform:none;letter-spacing:.05em;margin:18px 0 8px}
.bio{font-size:var(--t-s14);line-height:1.55;color:var(--c-label)}
.skills{list-style:none;display:flex;flex-wrap:wrap;gap:5px}
.skills li{font-size:12px;padding:5px 9px;border:1px solid var(--line);border-radius:999px;background:var(--c-paper)}
.links{display:flex;gap:16px;flex-wrap:wrap}
.links a{text-decoration:none;font-size:14px;background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .3s var(--ease)}
.links a:hover{background-size:100% 1px}
.bot{display:flex;justify-content:space-between;gap:16px;padding:0 var(--side) var(--side);font:400 12px/1 var(--mono);color:var(--faint)}
/* load-in: fade only (transform belongs to the scale effect) */
.strip{opacity:0;animation:fade .8s var(--ease) .05s forwards}
.strip.in{opacity:1;animation:none} /* once faded in, drop the filled animation (js/home.js): Chrome keeps a finished-but-filling opacity animation on its own GPU layer at a sub-pixel offset, which blurred the poster grid lines */
@keyframes fade{to{opacity:1}}
@media (prefers-reduced-motion:reduce){.strip{opacity:1;animation:none}.hint .arr{animation:none}}
@media (max-height:560px) and (min-width:641px){.strip{--cw:clamp(260px,38vw,700px)}}
@media (max-width:900px){:root{--m-in:clamp(20px,5vw,72px)}.top{padding-inline:var(--m-in)}} /* mobile inset = case.css .wrap/.bar inset */
@media (max-width:640px),(orientation:portrait) and (max-width:1024px){
 .top{grid-template-columns:1fr auto;padding:18px var(--m-in)}.dots{display:none}
 html,body{height:auto}body.home{display:block;min-height:0;overflow:auto}
 main{display:block}
 .rail{overflow:visible;user-select:auto;touch-action:auto}
 .strip{position:static;margin:0;transform:none!important;flex-direction:column;gap:var(--m-in);padding:4px var(--m-in) 48px;--cw:calc(100vw - 2 * var(--m-in))} /* +24px below last card so LinkedIn and the footer aren't mis-tapped (Hang 2026-10-28) */
 .intro .media-wrap{aspect-ratio:auto;height:auto}
 .intro-in{height:auto;justify-content:flex-start;padding:22px 22px 20px}
 .hint{display:none}
 .line{font-size:22px}
 .media-wrap.scroll{aspect-ratio:auto;height:auto;overflow:visible}
 .bio{font-size:15px}
 .bot{flex-direction:column;gap:4px}
}

.contact{margin-top:auto;padding-top:3%;display:flex;justify-content:space-between;align-items:baseline;gap:4px 14px;width:100%}
.statement{margin-top:auto}
.contact a{color:inherit;text-decoration:none;transition:color .2s}.contact a .t{background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .3s var(--ease)}
.contact a:hover,.contact a:focus-visible{color:var(--ink)}.contact a:hover .t,.contact a:focus-visible .t{background-size:100% 1px}
.contact .arr{animation-play-state:paused}.contact a:hover .arr{animation-play-state:running}
@media (max-width:640px),(orientation:portrait) and (max-width:1024px){.about .hint.contact{display:flex;margin-top:22px;padding-top:0}}

/* shared mono style (Bitcount Grid Single, logo styling) — one definition for every mono element (reference: SWIPE hint) */
:root{--mono-size:12px;--mono-ls:.04em;--mono-color:var(--faint);--mono-tt:uppercase}
.mono,.hint,.hint a,.lbl .lm,.lbl .st,.k,.bot,.top nav a{font-family:var(--mono)!important;font-size:var(--mono-size)!important;letter-spacing:var(--mono-ls)!important;word-spacing:-.32em!important;color:var(--mono-color)!important;text-transform:var(--mono-tt)!important;font-weight:400!important;font-style:normal!important}
.hint a:hover,.hint a:focus-visible,.top nav a:hover,.live .hit:hover .lbl .go{color:var(--ink)!important}
/* home card captions stay in Title Case as written */
.lbl .lm{text-transform:none!important}
/* card gauge: one circle dot per card; active = ring-and-dot measured from the intro card element at 1440 */
:root{--ring-d:24.2px;--ring-w:1px;--gauge-ring-w:2px;--ring-c:var(--c-strong);--ring-dot:6.63px;--ring-dot-k:.947;--dot-d:5px;--dot-c:var(--c-dot)}
.dots{position:relative;display:flex;align-items:center;gap:12px;height:26px}
.dots-cur{position:absolute;top:calc((26px - var(--ring-d))/2);left:0;width:var(--ring-d);height:var(--ring-d);border:var(--gauge-ring-w,var(--ring-w)) solid #a8a8a8;border-radius:999px;box-sizing:border-box;pointer-events:none;will-change:transform;transition:border-color .2s ease}
.dots button{appearance:none;border:0;background:none;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;width:13px;height:26px}
.dots button i{display:block;flex:none;width:var(--dot-d);height:var(--dot-d);border-radius:50%;background:var(--dot-c);transition:background-color .2s ease}
.dots button:hover i{background:#a8a8a8}
.dots[data-settled] button[aria-current="true"] i{background:var(--ring-c);width:7px;height:7px;transform:scale(var(--ring-dot-k))}
.dots[data-settled] .dots-cur{border-color:var(--ring-c)}
@media (prefers-reduced-motion:reduce){.dots button i,.dots-cur{transition:none}}
@media (max-width:640px),(orientation:portrait) and (max-width:1024px){.dots{display:none}}
/* About card: never scrolls; text sized to the card (card width derives from viewport w/h) */
.about .media-wrap{overflow:hidden;user-select:text}
.about .contact{font-size:var(--mono-size)!important}
@media (max-width:640px),(orientation:portrait) and (max-width:1024px){.about .media-wrap{aspect-ratio:auto;height:auto}.statement{font-size:clamp(14px,min(4.6vw,2.2vh),19px)}.about .contact{font-size:var(--mono-size)!important}}
/* CTA below each card: 40px under the card, left edge on the cover title inset (≈5.6% of card width); out of flow so card centring is unchanged */
.card .lbl{position:absolute;left:0;right:0;top:100%;height:auto;margin-top:40px;padding:0 0 0 5.6%}
.card .lbl .st{margin-left:0;line-height:1!important}
.card .lbl .go{opacity:1}
.live .hit:hover .lbl .st,.live .hit:focus-visible .lbl .st{color:var(--ink)!important}
@media (max-width:640px),(orientation:portrait) and (max-width:1024px){.hit{display:flex;flex-direction:column}.card .lbl{position:static;order:2;margin-top:40px;height:auto}}

/* ── Intro card v3: Swiss construction poster (SVG built in js/home.js; revert = this block + intro markup + poster JS) ── */
/* desktop: the poster SVG is drawn in .poster-ov (js/home.js), a sibling of the strip inside the rail, so it is never inside the strip's scale().
   Every frame, moving or at rest, it is laid out at the card's on-screen size with a whole-device-px translate and no scale, so it is always drawn at
   the screen's resolution and no engine stretches it as a bitmap. */
.poster-ov{position:absolute;left:0;top:0;z-index:1;pointer-events:none;transform-origin:0 0;contain:strict;opacity:0;animation:fade .8s var(--ease) .05s forwards}
.poster-ov.in{opacity:1;animation:none}
html.ret .poster-ov{animation:none!important;opacity:1!important}
@media (prefers-reduced-motion:reduce){.poster-ov{opacity:1;animation:none}}
@media (max-width:640px),(orientation:portrait) and (max-width:1024px){.poster-ov{display:none!important}}
.intro .media-wrap{container-type:inline-size;transform:none} /* never a GPU layer: composited, the scaled poster is resampled and its 1px grid lines blur unevenly */
.intro-in.poster{position:relative;display:block;height:100%;padding:0}
.poster-svg{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:hidden}
.poster-ws{transform-origin:0 0} /* letters + keywords: desktop sizes it to the card at rest and scales it (js/home.js ovSet) */
.poster-svg .h{stroke:#111;stroke-width:1;vector-effect:non-scaling-stroke;fill:none}
.poster-svg .hl{stroke:#9a9a9a;stroke-width:1;vector-effect:non-scaling-stroke;fill:none}
.poster-svg .w{font-family:var(--sans);fill:var(--c-strong);letter-spacing:-.035em}
.poster-svg .m{font-family:var(--sans);font-weight:500;fill:var(--c-strong);letter-spacing:-.01em;word-spacing:0} /* keywords: Instrument Sans 500 (one weight above the CTA), title case (size + place: js/home.js wc/wb) */
/* Second-language (Traditional Chinese) swap (js/home.js): labels and CTA in Noto Sans TC (OFL; labels 500, CTA 400), self-hosted subsets of only the
   used glyphs (500: 策略遠見系統創意匠心; 400 CTA: 瀏覽作品選輯), preloaded (index.html). The labels take the CTA's type (.cta-zh below): family, weight, .02em tracking, --c-strong, the body's antialiased
   smoothing; size and place set in js/home.js (wj) */
@font-face{font-family:"Noto Sans TC Sub";src:url(../assets/fonts/noto-sans-tc-400-sub.woff2?v=525) format("woff2");font-weight:400;font-display:block}@font-face{font-family:"Noto Sans TC Sub";src:url(../assets/fonts/noto-sans-tc-500-sub.woff2?v=525) format("woff2");font-weight:500;font-display:block}
.poster-svg .m.zh{font-family:"Noto Sans TC Sub",var(--sans);font-weight:500;letter-spacing:.02em;word-spacing:0;fill:var(--c-strong)}
/* language loop (js/home.js): every word runs the same infinite 8960ms cycle from its --s (ms; 160ms apart, CTA last). Every time below is a multiple of 8ms.
   A swap, from its start t: the old text rises --ty (16 screen px) and leaves, transform 560ms ease-in (.32,0,.67,0), opacity a little ahead of it,
   480ms (.33,0,.67,1); at t+400 the new text rises from --ty below, transform 720ms ease-out (.16,1,.3,1), opacity leading, 480ms (.25,1,.5,1); settled
   at t+1120. The two overlap 160ms (80ms of shared opacity, so the box is never empty). EN->ZH at 0, ZH->EN at 4480 (half the cycle), each language
   settled 3360ms. Opacity (with visibility) and transform are separate animations on the same clock, so each has its own curve; both state every step
   from and to explicitly. visibility:hidden on the hidden side so the outgoing text can never stay painted at a near-zero opacity (the faint CTA residue
   Hang saw, 2026-11-02). No blur: a filter would promote a layer and resample the 1px grid. Before --s (fill both) it is English, the Chinese waiting
   below, hidden. Labels clip to their band, the CTA to its row.
   keyframe % = ms / 8960: 400 4.464286, 480 5.357143, 560 6.25, 880 9.821429, 1120 12.5, 4480 50, 4880 54.464286, 4960 55.357143, 5040 56.25,
   5360 59.821429, 5600 62.5 */
@keyframes swEo{0%{opacity:1;visibility:visible;animation-timing-function:cubic-bezier(.33,0,.67,1)}5.357143%{opacity:0;visibility:hidden;animation-timing-function:step-end}
  54.464286%{opacity:0;visibility:hidden;animation-timing-function:cubic-bezier(.25,1,.5,1)}59.821429%{opacity:1;visibility:visible}100%{opacity:1;visibility:visible}}
@keyframes swEt{0%{transform:none;animation-timing-function:cubic-bezier(.32,0,.67,0)}6.25%{transform:translateY(calc(-1*var(--ty,16px)));animation-timing-function:step-end}
  54.464286%{transform:translateY(var(--ty,16px));animation-timing-function:cubic-bezier(.16,1,.3,1)}62.5%{transform:none}100%{transform:none}}
@keyframes swZo{0%{opacity:0;visibility:hidden}4.464286%{opacity:0;visibility:hidden;animation-timing-function:cubic-bezier(.25,1,.5,1)}9.821429%{opacity:1;visibility:visible}
  50%{opacity:1;visibility:visible;animation-timing-function:cubic-bezier(.33,0,.67,1)}55.357143%{opacity:0;visibility:hidden;animation-timing-function:step-end}100%{opacity:0;visibility:hidden}}
@keyframes swZt{0%{transform:translateY(var(--ty,16px))}4.464286%{transform:translateY(var(--ty,16px));animation-timing-function:cubic-bezier(.16,1,.3,1)}12.5%{transform:none}
  50%{transform:none;animation-timing-function:cubic-bezier(.32,0,.67,0)}56.25%{transform:translateY(calc(-1*var(--ty,16px)));animation-timing-function:step-end}100%{transform:translateY(calc(-1*var(--ty,16px)))}}
:is(.poster-svg,.poster-cta) .sw{animation:swEo 8960ms linear calc(var(--s,0)*1ms) infinite both,swEt 8960ms linear calc(var(--s,0)*1ms) infinite both}
:is(.poster-svg,.poster-cta) :is(.sw-z,.cta-zh){animation-name:swZo,swZt}
html.swp :is(.poster-svg,.poster-cta) .sw{animation-play-state:paused} /* tab hidden */
/* CTA: both texts share one grid cell on the baseline (the cap's box is their union) */
.poster-cta:has(.cta-zh){display:inline-grid;align-items:last baseline;justify-items:start}
.poster-cta .cta-en,.poster-cta .cta-zh{grid-area:1/1;white-space:nowrap}
.poster-cta .cta-zh{font-family:"Noto Sans TC Sub",var(--sans);letter-spacing:.02em}.poster-cta .cta-zh .cta-t{font-size:.912em} /* only the Chinese text is .912em (its ink .925em: 1.16x the English cap, as the labels): the arrow keeps the English size and baseline, so it sits at the same Y in both languages */
@media (prefers-reduced-motion:reduce){:is(.poster-svg,.poster-cta) .sw{animation:none!important;opacity:1;transform:none;visibility:visible}.sw-z,.cta-zh{display:none!important}}
.poster-svg .mk{font-family:var(--mono);fill:#6f6f6f}
.poster-svg .s{font-family:var(--sans);fill:#111;letter-spacing:-.01em}
.poster-svg .bg{font-family:var(--sans);fill:#efefef;letter-spacing:-.04em}
.poster-svg .nd{stroke:#111;stroke-opacity:.55}

.poster-svg .ko{fill:var(--ko,var(--c-paper))}
.poster-title,.poster-hint{background:var(--ko,var(--c-paper));box-shadow:-2px 0 0 var(--ko,var(--c-paper)),2px 0 0 var(--ko,var(--c-paper))}
.poster-title{box-shadow:-2px -6px 0 var(--ko,var(--c-paper)),-2px 0px 0 var(--ko,var(--c-paper)),-2px 6px 0 var(--ko,var(--c-paper)),0px -6px 0 var(--ko,var(--c-paper)),0px 6px 0 var(--ko,var(--c-paper)),7px -6px 0 var(--ko,var(--c-paper)),7px 0px 0 var(--ko,var(--c-paper)),7px 6px 0 var(--ko,var(--c-paper))} /* knockout: +6px above and below */
.intro-in.poster{container-type:inline-size}
.poster-cap{--pi:6.5cqi;position:absolute;left:var(--pi);bottom:var(--pi);display:flex;flex-direction:column;align-items:flex-start;gap:1.1cqi}
/* CTA entry (--cd: js/home.js): fades in with the keywords, the same .7s cubic-bezier(.4,0,.2,1) fade (.wf), its knockout (the cap's ::before) with it */
.poster-cap{isolation:isolate}
/* the reveal is declared only once build() has timed it after the lines ([data-t] with --cd, js/home.js): untimed, it ran at 0ms and could finish
   (and settle, [data-set]) before the poster was drawn */
.poster-cap:not([data-t]){visibility:hidden}
.poster-cap::before{content:"";position:absolute;inset:-6px -7px -6px -2px;z-index:-1;background:var(--ko,var(--c-paper));opacity:0}
.poster-cap[data-t]::before{animation:pIn .7s cubic-bezier(.4,0,.2,1) var(--cd) forwards}
.poster-cap .poster-title{background:none;box-shadow:none}
.poster-cap[data-t] .poster-title{animation:pCtaIn .7s cubic-bezier(.4,0,.2,1) var(--cd) both}
.poster-title{font-family:var(--sans);font-size:3.33cqi;line-height:1;letter-spacing:-.025em;color:var(--c-strong)}
.poster-hint{display:block;margin:0!important;line-height:1!important;font-size:clamp(7px,1.6cqi,var(--mono-size))!important}
/* draw-in */
.poster-svg .a{opacity:0;animation:pIn .9s cubic-bezier(.2,.7,.2,1) forwards;animation-delay:calc(var(--d,0)*1ms)}
/* grid lines (js/home.js build): filled rects in the outer SVG, whose user units are the box's css px. --c is the line's position across, --a/--b its
   ends along, as percentages of the box; each is rounded to the device pixel grid (--dp = 1 device px, --ox/--oy = the box's offset from the page's
   grid, --rm = nearest, or down for odd widths, whose centres sit on half device px via --lc). Width --lw = round(dpr) device px. The browser resolves
   this at every box size, so the lines are --lw wide on whole device px in every frame, with no script and no fitting */
.poster-svg .lv{x:calc(round(var(--rm),var(--c) + var(--ox),var(--dp)) - var(--ox) + var(--lc) - var(--lw)/2);width:var(--lw);
  --A:calc(round(var(--rm),var(--a) + var(--oy),var(--dp)) - var(--oy) + var(--lc));--B:calc(round(var(--rm),var(--b) + var(--oy),var(--dp)) - var(--oy) + var(--lc));y:var(--A);height:calc(var(--B) - var(--A))}
.poster-svg .ln{y:calc(round(var(--rm),var(--c) + var(--oy),var(--dp)) - var(--oy) + var(--lc) - var(--lw)/2);height:var(--lw);
  --A:calc(round(var(--rm),var(--a) + var(--ox),var(--dp)) - var(--ox) + var(--lc));--B:calc(round(var(--rm),var(--b) + var(--ox),var(--dp)) - var(--ox) + var(--lc));x:var(--A);width:calc(var(--B) - var(--A))}
.poster-svg .pd{cx:calc(round(var(--rm),var(--x) + var(--ox),var(--dp)) - var(--ox) + var(--lc));cy:calc(round(var(--rm),var(--y) + var(--oy),var(--dp)) - var(--oy) + var(--lc))} /* start dots: on the lines' rounded centres */
.poster-svg .g{shape-rendering:crispEdges}
/* draw-in: alternating, odd lines (.rv) grow from their far end; 1.7s cubic-bezier(.65,0,.35,1) from --d (js/home.js), hidden before it (fill-mode both).
   The rect's length grows from 0 (painted in place, like the dots' fill-opacity): a transform or opacity animation, even once finished, gives every line
   its own layer and its own sub-pixel offset, so lines smeared over 2-3 device px, each differently */
.poster-svg .g.a.ln,.poster-svg .g.a.lv{opacity:1;--g0:var(--A);animation:pDrawV 1.7s cubic-bezier(.65,0,.35,1) calc(var(--d,0)*1ms) both}
.poster-svg .g.a.ln{animation-name:pDrawH}.poster-svg .g.a.rv{--g0:var(--B)}
.poster-svg .pd{opacity:1;animation-name:pdIn;animation-duration:.9s;animation-timing-function:cubic-bezier(.2,.7,.2,1);animation-delay:calc(var(--d,0)*1ms);animation-fill-mode:both} /* dots fade fill-opacity, not opacity: an opacity animation puts each dot on its own GPU layer, rasterised differently from the painted card (a visible AA change when it lands and drops back); fill-opacity paints in place like the lines' dash draw. Hidden before its delay by fill-mode both */
/* grid lines and dots stay solid ink, no fade to grey (Hang, 2026-10-24) */
.poster-svg .g,.poster-svg .pd{fill:var(--c-strong)}
@media (prefers-reduced-motion:reduce){.poster-svg .g.a.ln,.poster-svg .g.a.lv,.poster-svg .pd{animation:none;opacity:1}}
.poster-svg .wd{transform-box:fill-box;transform-origin:0 100%;animation-name:pUp}
.poster-svg .lt{animation-name:pSlide;animation-duration:1.1s}
.poster-svg .wf{animation-duration:.7s;animation-timing-function:cubic-bezier(.4,0,.2,1)} /* keywords (+ knockouts): one soft fade together, after the letters (js/home.js) */
.poster-svg .tt{font-family:var(--sans);fill:#111;letter-spacing:-.025em;font-weight:400}
.poster-svg .dk{stroke:#111;stroke-width:1;vector-effect:non-scaling-stroke;fill:none}
@keyframes pSlide{from{opacity:1;transform:translateY(55%)}to{opacity:1;transform:none}}
@keyframes pCtaIn{from{opacity:0}to{opacity:1}}
@keyframes pIn{to{opacity:1}}
@keyframes pdIn{from{fill-opacity:0}to{fill-opacity:1}}
@keyframes pDrawV{from{y:var(--g0);height:0}}@keyframes pDrawH{from{x:var(--g0);width:0}}
@keyframes pUp{from{opacity:0;transform:translateY(6%)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.poster-svg .a,.poster-cap[data-t]::before,.poster-cap[data-t] .poster-title{animation:none;opacity:1}}
/* settled (js/home.js sets data-set on animationend): the end state without the animation, so nothing stays on a GPU layer once it has landed */
.poster-svg .a[data-set],.poster-svg .g.a.ln[data-set],.poster-svg .g.a.lv[data-set]{animation:none;opacity:1}
.poster-cap[data-set]::before{animation:none;opacity:1}.poster-cap[data-set] .poster-title{animation:none}
html.ret .poster-cap::before,html.ret .poster-cap .poster-title{animation:none!important;opacity:1!important}
@media (max-width:640px),(orientation:portrait) and (max-width:1024px){.intro .media-wrap{aspect-ratio:1;height:auto}.poster-cap{display:none}.intro-in.poster{height:100%}}

/* intro card only: mono in all caps */
.poster-svg .mk{text-transform:uppercase} /* not .intro-scoped: on desktop the svg lives in .poster-ov */
.intro .hint,.intro .hint *{text-transform:uppercase!important}
.intro .hint.poster-hint{display:block}

/* intro caption hint: initial cap only */
.intro .hint.poster-hint,.intro .hint.poster-hint *{text-transform:none!important}
.poster-title .arr{display:inline-block;margin-left:.22em;color:var(--c-strong);font-family:var(--mono);font-weight:400;letter-spacing:0;animation:nudge 1.8s var(--ease) infinite}
@media (prefers-reduced-motion:reduce){.poster-title .arr{animation:none}}
.poster-title .arr svg{display:block;width:.86em;height:.6em;overflow:visible}.poster-title .arr path{stroke:var(--c-strong);stroke-width:1.5px;vector-effect:non-scaling-stroke;stroke-linejoin:miter;stroke-linecap:butt}
.poster-title .arr{vertical-align:.02em}
/* Hang, Oct 23 22:03: phone landscape (CTA text ~10-17px): 1.5px read too heavy next to the text, so 1px there */
@media (orientation:landscape) and (max-height:500px){.poster-title .arr path{stroke-width:1px}}
button.poster-cta{appearance:none;border:0;border-radius:0;padding:0;margin:0;font-family:var(--sans);font-weight:400;color:var(--c-strong);text-align:left;cursor:pointer;line-height:1}
/* gauge: 40px below the (scaled) cards, centred on the page; JS sets --gy */
.top nav{grid-column:3}
/* gauge in the header: centred on the page, vertically centred on the logo/ABOUT row, fixed while swiping */
.top{position:relative}
.top>.dots{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2}
@media (max-width:640px),(orientation:portrait) and (max-width:1024px){.top>.dots{display:none!important}} /* mobile / vertical scroll: no dot nav or gauge */
/* home: all mono text in caps */
.home .poster-cta .arr{text-transform:none}
/* home chrome: logo, nav, footer share the logo style (14px Bitcount, ink) */
.home .brand,.home .top nav a,.home .bot,.home .bot *{font:var(--t-label)!important;letter-spacing:var(--t-label-ls)!important;word-spacing:var(--t-label-ws)!important;color:var(--ink)!important;text-transform:uppercase!important}
.home .top nav a,.home .bot a{position:relative;display:inline-block;width:fit-content;text-decoration:none;background:none!important}
.home .top nav a::after,.home .bot a::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
.home .top nav a:hover::after,.home .top nav a:focus-visible::after,.home .bot a:hover::after,.home .bot a:focus-visible::after{transform:scaleX(1)}
@media (prefers-reduced-motion:reduce){.home .top nav a::after,.home .bot a::after{transition:none}}
.poster-cta .cta-t{position:relative}
/* underline thickness = the arrow's stroke (.poster-title .arr path: 1.5px, 1px on phone landscape), in the same local px, so the strip's scale() thickens both alike.
   Drawn as a 1px box stretched by scaleY (from its bottom edge, so the offset is unchanged): a 1.5px box is pixel-snapped to 1 or 2px before the scale (Chrome), a transform is not */
.poster-cta{--ul:1.5}@media (orientation:landscape) and (max-height:500px){.poster-cta{--ul:1}}
.poster-cta .cta-t::after{content:"";position:absolute;left:0;right:0;bottom:-.12em;height:1px;background:currentColor;transform:scale(0,var(--ul));transform-origin:0 100%;transition:transform .25s ease}
.poster-cta:hover .cta-t::after,.poster-cta:focus-visible .cta-t::after{transform:scale(1,var(--ul))}
@media (prefers-reduced-motion:reduce){.poster-cta .cta-t::after{transition:none}}
.home .brand{justify-self:start;width:fit-content}.home .brand:hover,.home .brand:focus-visible{color:var(--ink)!important;text-decoration:none}
/* links: underline the text only, never the arrow */
.contact a{background:none!important}
.contact a .t{background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .3s var(--ease)}
.contact a:hover .t,.contact a:focus-visible .t{background-size:100% 1px}
@media (prefers-reduced-motion:reduce){.contact a .t{transition:none}}

.home .top nav a.is-active::after{transform:scaleX(1)}

/* mobile / vertical: cards are not all 1440/820 here (intro, About are taller), so the % radius went elliptical.
   Use a circular radius of 1/20 of the card width, rounded to an even px, on every card. Desktop keeps the % radius (all cards 1440/820, scaled strip). */
@media (max-width:640px),(orientation:portrait) and (max-width:1024px){.card{container-type:inline-size}.media-wrap{border-radius:round(calc(100cqi / 20), 2px)}}

/* logo hover underline, same as BACK / nav links */
.brand{position:relative;display:inline-block}
.brand::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
.brand:hover::after,.brand:focus-visible::after{transform:scaleX(1)}
@media (prefers-reduced-motion:reduce){.brand::after{transition:none}}

html{background:var(--page)}
@media (max-width:640px),(orientation:portrait) and (max-width:1024px){.top .brand{display:none}.top nav{grid-column:1/-1;justify-self:stretch;justify-content:space-between}} /* mobile portrait: no logo, nav takes its spot */
@media (max-width:900px){.home .bot{padding-right:var(--m-in)}} /* copyright right inset = project pages */
/* USPS card's hero GIF: css/card.css (shared with the case pages' NEXT CASE STUDY card) */
