/* 07 · My Contribution to Beth Ward Studios. Warm ivory ground; burgundy / espresso only for the closing statement.
   Type (2026-11-21, luxury fashion editorial): Bodoni Moda 400 for the display and section headings, DM Sans 500 for
   item titles and labels (uppercase, tracked), DM Sans 400 for body copy. No bold display type. Fallbacks keep the
   same roles when Google Fonts is unreachable: Bodoni 72 / Didot / Bodoni MT / Times, and Helvetica Neue / Arial. */
:root {
  --ink: #141110;
  --paper: #faf7f2;          /* warm ivory page */
  --card: #ffffff;
  --muted: #6e6762;
  --faint: #9a928b;
  --rule: #e4ddd3;
  --rule-strong: #cfc6ba;
  --burgundy: #4b1824;
  --espresso: #2a1d1a;
  --ivory: #f4ede3;
  --gutter: clamp(16px, 4.2vw, 60px);
  --font: "DM Sans", "Helvetica Neue", Helvetica, Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  /* 2026-11-23: content headings use Newsreader (option A; sturdier hairlines than Bodoni); the hero keeps Bodoni */
  --serif-text: "Newsreader", "Georgia", "Times New Roman", Times, serif;
  --serif: "Bodoni Moda", "Bodoni 72", "Didot", "Bodoni MT", "Libre Bodoni", "Times New Roman", Times, serif;
  --label: 12px;             /* uppercase labels and navigation */
  --track: 0.18em;           /* their letter spacing */
  --ease: cubic-bezier(0.22, 0.61, 0.25, 1);
  --dur: 320ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* the serif roles: display, row headings, section headings, name, numerals */
.person, .panel-title, .role, .metric-num, .statement-title, .statement-sub {
  font-family: var(--serif-text); font-weight: 500; font-optical-sizing: auto; font-kerning: normal; }
/* Bodoni Moda's optical-size axis turns large sizes into ultra-high contrast, where hairlines (the "/" of BW/S, the
   "+" of 40+) fade to nothing on screen. Large headings use a lower optical size so the hairlines stay visible. */
.person, .metric-num, .statement-title { font-variation-settings: "opsz" 28; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---------------------------------------------------------------- MAIN: fixed at the bottom right, on every scroll position */
.main-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px 0 18px; border: 1px solid rgba(244, 237, 227, 0.28); border-radius: 999px;
  background: rgba(36, 27, 24, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #f4ede3;
  font-size: var(--label); font-weight: 500; letter-spacing: var(--track); text-decoration: none;
  box-shadow: 0 14px 30px -18px rgba(20, 14, 12, 0.6); transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease); }
.main-float:hover, .main-float:focus-visible { background: #f4ede3; color: var(--ink); transform: translateY(-2px); }
.main-float svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------------------------------------------------------------- page heading */
.page { max-width: 1440px; margin: 0 auto; padding: clamp(8px, 2vw, 28px) var(--gutter) clamp(96px, 11vw, 160px); }
.eyebrow, .label { font-size: var(--label); font-weight: 500; letter-spacing: 0.2em; line-height: 1.6; color: var(--muted); }

/* ---------------------------------------------------------------- HERO (DMA mockup) */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #f4ede3;
  min-height: clamp(600px, min(100svh, 60vw), 1040px); display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 78% 30%, rgba(120, 96, 86, 0.32), transparent 60%),
    radial-gradient(90% 70% at 12% 100%, rgba(10, 6, 5, 0.55), transparent 60%),
    linear-gradient(120deg, #2a201d 0%, #241b19 40%, #332723 70%, #2b201d 100%); }
/* the satin sheen: soft diagonal folds of light drifting slowly (transform only, composited) */
.hero-sheen { position: absolute; inset: -30% -20%; z-index: -1; pointer-events: none; opacity: 0.9; filter: blur(28px);
  background:
    linear-gradient(118deg, transparent 38%, rgba(222, 196, 182, 0.13) 46%, transparent 54%),
    linear-gradient(118deg, transparent 58%, rgba(222, 196, 182, 0.10) 64%, transparent 71%),
    linear-gradient(118deg, transparent 74%, rgba(240, 214, 198, 0.08) 79%, transparent 85%);
  animation: sheen-drift 22s ease-in-out infinite alternate; }
@keyframes sheen-drift { from { transform: translate3d(-4%, -2%, 0) rotate(0.001deg); } to { transform: translate3d(5%, 3%, 0) rotate(0.001deg); } }
.hero-bar { display: flex; justify-content: space-between; gap: 16px; padding: clamp(22px, 2.6vw, 38px) var(--gutter) 0; }
.hero-mark { font-size: 13px; font-weight: 500; letter-spacing: 0.22em; color: rgba(244, 237, 227, 0.86); }
.hero-inner { flex: 1; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 46fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  width: 100%; max-width: 1640px; margin: 0 auto; padding: clamp(24px, 3vw, 48px) var(--gutter) clamp(40px, 4.5vw, 72px); }

/* monogram: all positions in % of its own box (from the mockup), type in container units so it scales as one piece */
.mono { position: relative; container-type: inline-size; width: 100%; max-width: 760px; aspect-ratio: 550 / 575; justify-self: start; will-change: transform; transition: transform 0.9s var(--ease); }
.mono-line { position: absolute; width: 1px; background: rgba(244, 237, 227, 0.62); transform-origin: top; }
.mono-line--1 { left: 36.7%; top: 0; height: 99%; }
.mono-line--2 { left: 77.3%; top: 0; height: 41.7%; }
.mono-line--3 { left: 65.1%; top: 83.5%; height: 21.5%; } /* runs down beside the AI label (moved lower, 2026-11-21) */
/* a low optical size keeps the hairlines of M and A strong, as in the mockup (high sizes make them vanish) */
.mono-letter { position: absolute; font-family: var(--serif); font-weight: 400; font-size: 57cqw; line-height: 0.74; font-variation-settings: "opsz" 11; overflow: hidden; padding: 0.04em 0.02em 0; }
/* letter gradation (2026-11-21, matched to the DMA mockup): three layers clipped to the glyph —
   1. the light sweep (a narrow band, 260 % wide, parked off the letter until sheen-sweep moves it across),
   2. a shade layer, 3. the base tone. As in the mockup, the letters in front stay light ivory and the shadow falls
   on the letter behind: D and A are light all over; M is light on its left stem and diagonals and darkens only on
   its right stem, where A stands in front of it (A's shadow). */
.mono-letter > span { display: block; -webkit-background-clip: text; background-clip: text; color: transparent;
  --sweep: linear-gradient(100deg, transparent 0%, transparent 42%, rgba(255, 250, 244, 0.6) 50%, transparent 58%, transparent 100%);
  background-image: var(--sweep),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(70, 54, 48, 0.16) 100%),
    linear-gradient(100deg, #f1e8e0 0%, #f8f2eb 38%, #ede3da 70%, #cdbfb5 100%);
  background-size: 260% 100%, 100% 100%, 100% 100%; background-position: 100% 0, 0 0, 0 0; background-repeat: no-repeat; }
.mono-letter--d { left: 1%; top: 11.2%; }
.mono-letter--m { left: 35.8%; top: 24.3%; filter: drop-shadow(-0.008em 0 0.025em rgba(14, 9, 8, 0.32)); }
.mono-letter--m > span { background-image: var(--sweep),
    radial-gradient(34% 72% at 87% 58%, rgba(24, 17, 15, 0.86) 0%, rgba(24, 17, 15, 0.55) 38%, rgba(24, 17, 15, 0) 100%),
    radial-gradient(30% 48% at 16% 30%, rgba(40, 30, 27, 0.4) 0%, rgba(40, 30, 27, 0) 100%),
    linear-gradient(97deg, #ebe1d8 0%, #f7f0e9 22%, #f5ede5 58%, #e2d6cc 78%, #cfc2b8 100%);
  background-size: 260% 100%, 100% 100%, 100% 100%, 100% 100%; background-position: 100% 0, 0 0, 0 0, 0 0; }
.mono-letter--a { left: 55%; top: 43.4%; filter: drop-shadow(-0.03em 0.01em 0.06em rgba(14, 9, 8, 0.55)); }
.mono-letter--a > span { background-image: var(--sweep),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(70, 54, 48, 0.12) 100%),
    linear-gradient(97deg, #ebe2d9 0%, #f8f2eb 40%, #f4ece4 70%, #e2d6cd 100%); }
.mono-label { position: absolute; display: flex; flex-direction: column; gap: 0; margin: 0; }
.mono-key { font-size: max(11px, 2.75cqw); font-weight: 500; letter-spacing: 0.12em; color: #f4ede3; padding-bottom: 0.7em; }
.mono-key::after { content: ""; display: block; width: 4.2em; height: 1px; margin-top: 0.7em; background: rgba(244, 237, 227, 0.6); transform-origin: left; }
.mono-note { font-size: max(11px, 2.75cqw); font-style: italic; line-height: 1.35; color: rgba(244, 237, 227, 0.8); letter-spacing: 0.02em; }
.mono-label--m { left: 44.9%; top: 5.4%; } .mono-label--m .mono-note { max-width: 9em; }
.mono-label--d { left: 2.7%; top: 56.6%; } .mono-label--d .mono-note { max-width: 11em; }
/* AI sits clear of A's foot (it touched it): about 1.5 label heights of air at every size */
.mono-label--a { left: 70.2%; top: 89.6%; } .mono-label--a .mono-note { max-width: 7em; }
.mono-label--a .mono-key::after { width: 2.2em; }

.hero-copy { justify-self: start; max-width: 780px; will-change: transform; transition: transform 0.9s var(--ease); }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.9vw, 92px); line-height: 1.02; letter-spacing: -0.012em; font-variation-settings: "opsz" 30; }
/* each line is its own mask; it is as wide as its text, so nothing is clipped sideways */
.hero-line { display: block; width: fit-content; max-width: none; overflow: hidden; padding: 0 0.06em 0.08em 0; margin-bottom: -0.08em; white-space: nowrap; }
.hero-line > span { display: block; background: linear-gradient(180deg, #f6efe8 0%, #e9dcd2 60%, #d9c9bf 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-rule { display: block; height: 1px; margin: clamp(28px, 3.2vw, 52px) 0 clamp(26px, 2.6vw, 40px); background: rgba(244, 237, 227, 0.4); transform-origin: left; }
.hero-eyebrow { font-size: clamp(12px, 1vw, 15px); font-weight: 500; letter-spacing: 0.24em; color: rgba(244, 237, 227, 0.86); }
.hero-lede { margin-top: 14px; font-size: clamp(15px, 1.25vw, 19px); font-style: italic; letter-spacing: 0.02em; color: rgba(244, 237, 227, 0.86); }

/* ---- scroll cue (bottom right of the hero, above the fixed MAIN button): mouse with a rolling wheel, SCROLL DOWN,
        and a hairline arrow whose head keeps travelling down. It comes in after the intro and fades out on scroll. */
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(100px, 11vh, 132px); z-index: 2; display: inline-flex; align-items: center; gap: 16px;
  color: rgba(244, 237, 227, 0.86); text-decoration: none; transition: opacity 0.5s ease, transform 0.5s var(--ease), color 0.25s; }
.scroll-cue:hover, .scroll-cue:focus-visible { color: #fff8f1; }
.scroll-cue.is-gone { opacity: 0 !important; transform: translateY(10px); pointer-events: none; }
.cue-mouse { position: relative; width: 20px; height: 32px; border: 1.2px solid currentColor; border-radius: 10px; opacity: 0.9; }
.cue-wheel { position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; border-radius: 1px; background: currentColor; }
.cue-text { font-size: 12px; font-weight: 500; letter-spacing: 0.26em; }
/* a 56 px hairline with a fixed chevron at its foot; a brighter segment keeps running down it */
.cue-arrow { position: relative; width: 1px; height: 56px; background: rgba(244, 237, 227, 0.28); }
.cue-head { position: absolute; left: 0; top: 0; width: 1px; height: 22px; background: linear-gradient(180deg, rgba(244, 237, 227, 0), #f4ede3); }
.cue-arrow::after { content: ""; position: absolute; left: -4px; bottom: 1px; width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
@keyframes cue-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes cue-run { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }
@keyframes cue-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes cue-run-short { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(11px); opacity: 0; } }
.cue-wheel { animation: cue-wheel 1.8s ease-in-out infinite; }
.cue-head { animation: cue-run 1.8s cubic-bezier(0.45, 0, 0.3, 1) infinite; }
.cue-arrow { animation: cue-nudge 1.8s ease-in-out infinite; }

/* ---- hero motion (runs once on load; html.motion is set by contribution.js, so without script nothing is hidden) */
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise-mask { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheen-sweep { 0%, 62% { background-position: 100% 0, 0 0, 0 0, 0 0; } 100% { background-position: 0% 0, 0 0, 0 0, 0 0; } }
html.motion .hero-sheen { animation: fade-in 2.4s ease both, sheen-drift 22s ease-in-out 0s infinite alternate; }
html.motion .mono-line { animation: draw-y 1.4s var(--ease) both; }
html.motion .mono-line--1 { animation-delay: 0.15s; } html.motion .mono-line--2 { animation-delay: 0.35s; } html.motion .mono-line--3 { animation-delay: 1.15s; }
html.motion .mono-letter > span { animation: rise-mask 1.25s cubic-bezier(0.2, 0.7, 0.1, 1) both, sheen-sweep 9s ease-in-out 3s infinite; }
html.motion .mono-letter--d > span { animation-delay: 0.3s, 3s; } html.motion .mono-letter--m > span { animation-delay: 0.5s, 3.25s; } html.motion .mono-letter--a > span { animation-delay: 0.7s, 3.5s; }
html.motion .mono-key, html.motion .mono-note { animation: fade-up 0.9s var(--ease) both; }
html.motion .mono-key::after { animation: draw-x 0.9s var(--ease) both; }
html.motion .mono-label--m > * , html.motion .mono-label--m .mono-key::after { animation-delay: 1.25s; }
html.motion .mono-label--d > * , html.motion .mono-label--d .mono-key::after { animation-delay: 1.4s; }
html.motion .mono-label--a > * , html.motion .mono-label--a .mono-key::after { animation-delay: 1.55s; }
html.motion .mono-note { animation-delay: 1.5s !important; }
html.motion .hero-line > span { animation: rise-mask 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
html.motion .hero-line:nth-child(1) > span { animation-delay: 0.55s; } html.motion .hero-line:nth-child(2) > span { animation-delay: 0.68s; } html.motion .hero-line:nth-child(3) > span { animation-delay: 0.81s; }
html.motion .hero-rule { animation: draw-x 1.2s var(--ease) 1.25s both; }
html.motion .hero-eyebrow { animation: fade-up 0.9s var(--ease) 1.5s both; }
html.motion .hero-lede { animation: fade-up 0.9s var(--ease) 1.68s both; }
html.motion .hero-bar { animation: fade-in 1.2s ease 0.2s both; }
html.motion .main-float { animation: fade-up 0.8s var(--ease) 1.9s both; }
/* the scroll cue arrives together with the right-side type (the headline starts rising at 0.55 s), so it is in place
   at once and can be clicked without waiting for the rest of the intro (2026-11-23, was 2.8 s); its loops start with it */
html.motion .scroll-cue { animation: fade-up 0.9s var(--ease) 0.55s both; }
html.motion .cue-wheel, html.motion .cue-head, html.motion .cue-arrow { animation-delay: 1.15s; }
/* rows rise in as they scroll into view (contribution.js adds .is-in) */
html.motion .acc-item { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.motion .acc-item.is-in { opacity: 1; transform: none; }
html.motion .acc-item:nth-child(2) { transition-delay: 0.08s; } html.motion .acc-item:nth-child(3) { transition-delay: 0.16s; }

/* ---------------------------------------------------------------- accordion rows */
/* rows as in the DMA mockup: rose-brown number, a short hairline, a large sans title, a tracked subline, a circle + */
.accordion { overflow-anchor: none; }
.acc-item { border-bottom: 1px solid var(--rule-strong); }
.acc-item:last-child { border-bottom-color: var(--rule); }
.acc-heading { font: inherit; }
.acc-trigger { display: grid; grid-template-columns: clamp(52px, 7.4vw, 124px) 1fr auto; align-items: center; gap: clamp(12px, 2vw, 28px);
  width: 100%; padding: clamp(26px, 3.4vw, 48px) 0; border: 0; background: none; text-align: left; cursor: pointer; }
.acc-num { align-self: center; font-size: clamp(15px, 1.35vw, 21px); font-weight: 400; letter-spacing: 0.16em; color: #8c7068; }
.acc-text { display: flex; flex-direction: column; gap: clamp(8px, 0.8vw, 14px); min-width: 0; padding-left: clamp(20px, 3.6vw, 52px); border-left: 1px solid var(--rule-strong); }
.acc-title { font-family: var(--font); font-weight: 400; font-size: clamp(32px, 4.3vw, 64px); line-height: 1.05; letter-spacing: -0.004em; overflow-wrap: anywhere; transition: color 0.3s; }
.acc-sub { font-size: clamp(14px, 1.25vw, 19px); letter-spacing: 0.04em; color: var(--muted); }
.acc-trigger:hover .acc-title { color: #3b2a25; }
.acc-icon { position: relative; flex: none; width: clamp(44px, 4vw, 56px); height: clamp(44px, 4vw, 56px); border: 1px solid var(--rule-strong); border-radius: 50%;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
.acc-icon span { position: absolute; top: 50%; left: 50%; width: 16px; height: 1.4px; margin: -0.7px 0 0 -8px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur); }
.acc-icon span + span { transform: rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon span + span { transform: rotate(0deg); opacity: 0; } /* + becomes − */
.acc-trigger:hover .acc-icon, .acc-trigger[aria-expanded="true"] .acc-icon { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.acc-trigger:focus-visible { outline-offset: -2px; }

/* height animates from 0 to the content's measured height (contribution.js), then is released to auto */
.acc-panel { overflow: hidden; height: 0; transition: height var(--dur) var(--ease); }
.acc-panel.is-open { height: auto; }
.acc-inner { padding: 4px 0 clamp(48px, 6vw, 88px) calc(clamp(52px, 7.4vw, 124px) + clamp(12px, 2vw, 28px) + clamp(20px, 3.6vw, 52px) + 1px); max-width: 1240px; }

/* ---------------------------------------------------------------- shared panel parts */
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.panel-head-text { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.person { font-size: clamp(40px, 4.2vw, 60px); letter-spacing: 0.035em; line-height: 1; margin-top: 2px; }
/* section headings inside a card stay well below the row heading (62 px) */
.panel-title { font-size: clamp(26px, 2.3vw, 34px); letter-spacing: 0; line-height: 1.15; }
.role { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.3; }
.lede { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 60ch; }
/* 2026-11-23: the three panel headings (WHO I AM, Four Areas, Creative Technology Stack) 10 % larger */
.panel-head .label { font-size: calc(var(--label) * 1.1); }
.panel-head .person { font-size: clamp(44px, 4.62vw, 66px); }
.panel-head .panel-title { font-size: clamp(28.6px, 2.53vw, 37.4px); }
.panel-head .role { font-size: clamp(23.1px, 2.09vw, 29.7px); }
.panel-head .lede { font-size: 17.6px; }
.cta { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 20px; border: 1px solid var(--ink); background: transparent;
  font-size: var(--label); font-weight: 500; letter-spacing: var(--track); cursor: pointer; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.cta:hover { background: var(--ink); color: var(--paper); }

.block { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 12px 40px; padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--rule); }
.block-title { font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -0.005em; margin-bottom: 10px; }
.body { font-size: 16px; line-height: 1.7; color: #2b2522; max-width: 68ch; }
.body--lead { font-size: 19px; line-height: 1.6; color: var(--ink); }
.body--strong { font-weight: 500; color: var(--ink); }
.sub-label { margin: 20px 0 6px; font-size: var(--label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.plain li { font-size: 16px; line-height: 1.7; }
.plain li + li { margin-top: 6px; }

/* career metrics: three columns, numbers large */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: clamp(16px, 2vw, 24px); border-top: 1px solid var(--rule); }
.metrics > div { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.6vw, 32px) clamp(12px, 2vw, 28px) clamp(20px, 2.6vw, 32px) 0; }
.metrics > div + div { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--rule); }
.metric-num { font-size: clamp(52px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.metric-label { font-size: var(--label); font-weight: 500; letter-spacing: var(--track); line-height: 1.5; color: var(--muted); }

/* languages: two aligned columns */
.languages > div { display: grid; grid-template-columns: minmax(150px, 200px) 1fr; gap: 4px 24px; padding: 12px 0; }
.languages > div + div { border-top: 1px dashed var(--rule); }
.languages dt { font-size: 16px; font-weight: 500; }
.languages dd { display: flex; flex-direction: column; gap: 4px; }
.level { font-size: 16px; }
.note { font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
/* 2026-11-23: WHO I AM - Education, Professional Expertise and Languages text 10 % larger */
/* (later the same day) matched to the four areas list: labels = area number / labels, titles = area titles,
   text = area body, notes = area sub-line */
.block--x11 .label, .block--x11 .sub-label { font-size: calc(var(--label) * 1.2); }
.block--x11 .plain li, .block--x11 .body, .block--x11 .languages dt, .block--x11 .level { font-size: 19.2px; }
.block--x11 .block-title { font-size: clamp(24px, 1.86vw, 27.6px); }
.block--x11 .note { font-size: 18px; }
/* the two blocks below too (user, later): the lead line 19 -> 20.9 px (18 -> 19.8 px on phones, set below) */
.block--x11 .body--lead { font-size: 19.2px; }

/* Selected Chinese-Language Work: own small box, button bottom right */
.work-box { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; padding: clamp(20px, 2.4vw, 28px); background: var(--card); border: 1px solid var(--rule); }

/* ---------------------------------------------------------------- 02 · four areas */
.areas { border-top: 1px solid var(--rule-strong); }
.area { display: grid; grid-template-columns: clamp(44px, 5vw, 72px) 1fr; gap: 8px 24px; padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--rule); }
.area-num { font-size: var(--label); font-weight: 500; letter-spacing: var(--track); color: var(--faint); padding-top: 7px; }
/* the four contribution titles: readable sans, medium */
.area-title { font-size: clamp(20px, 1.55vw, 23px); font-weight: 500; line-height: 1.35; letter-spacing: -0.008em; }
.area-caps { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; border: 0; border-bottom: 1px solid var(--ink); background: none;
  font-size: var(--label); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: opacity 0.2s; }
.text-link:hover { opacity: 0.6; }
/* 2026-11-23: the four areas (01-04): every text size 20 % larger */
.areas .area-num { font-size: calc(var(--label) * 1.2); }
.areas .area-title { font-size: clamp(24px, 1.86vw, 27.6px); }
.areas .area-caps { font-size: 18px; }
.areas .sub-label { font-size: calc(var(--label) * 1.2); }
.areas .body { font-size: 19.2px; }
.areas .text-link { font-size: calc(var(--label) * 1.2); }

/* ---------------------------------------------------------------- 03 · stack */
.stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.tech { position: relative; display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 30px); background: var(--card); border: 1px solid var(--rule); }
.tech-num { position: absolute; top: clamp(20px, 2.4vw, 30px); right: clamp(20px, 2.4vw, 30px); font-size: var(--label); font-weight: 500; letter-spacing: var(--track); color: var(--faint); }
.tech-icon { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.tech-title { margin-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); font-size: 18px; font-weight: 500; letter-spacing: -0.005em; }
.tech-tools { margin-top: 14px; font-size: 15px; line-height: 1.7; color: #2b2522; }
.tech-support { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.tech-support span { font-weight: 500; color: var(--ink); }

/* 2026-11-23: cards in the reference layout (icon tile | thin divider | title over tools, number pill top right),
   in the page's own colours: white card, --rule border, ivory --paper tiles, ink text, burgundy number */
.tech {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: clamp(18px, 2vw, 28px); align-content: center;
  padding: clamp(22px, 2.4vw, 32px) clamp(64px, 6vw, 84px) clamp(22px, 2.4vw, 32px) clamp(22px, 2.2vw, 30px);
  border-radius: 16px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 14px 32px -26px rgba(42, 29, 26, 0.38);
}
.tech-icon {
  grid-row: 1 / span 2; align-self: center; box-sizing: content-box; width: 28px; height: 28px; padding: clamp(14px, 1.3vw, 18px);
  background: var(--paper); border-radius: 14px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 6px 14px -10px rgba(42, 29, 26, 0.35);
}
.tech-title, .tech-tools { grid-column: 2; padding-left: clamp(18px, 2vw, 28px); border-left: 1px solid var(--rule); }
.tech-title { margin: 0; padding-top: 2px; padding-bottom: 0; border-bottom: 0; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.3; }
.tech-title::after { display: none; }
.tech-tools { margin: 0; padding-top: 10px; padding-bottom: 2px; }
.tech-num {
  top: clamp(18px, 2vw, 26px); right: clamp(18px, 2vw, 26px); padding: 4px 12px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper); color: var(--burgundy); letter-spacing: 0.08em;
}

/* card motion (2026-11-21): no click, no link: only a staggered reveal and a quiet hover.
   1. Reveal: each time row 03 opens, the eight cards rise 18 px and fade in, 60 ms apart (the animation restarts
      because the panel goes from display:none to shown).
   2. Hover (pointer devices only): the card lifts 4 px with a soft shadow, a line draws under the title from the
      left, and the icon and number turn burgundy. */
@keyframes tech-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.acc-panel:not([hidden]) .tech { animation: tech-in 0.62s var(--ease) backwards; } /* backwards: once done, the hover lift is free to apply */
.stack .tech:nth-child(1) { animation-delay: 0.10s; } .stack .tech:nth-child(2) { animation-delay: 0.16s; }
.stack .tech:nth-child(3) { animation-delay: 0.22s; } .stack .tech:nth-child(4) { animation-delay: 0.28s; }
.stack .tech:nth-child(5) { animation-delay: 0.34s; } .stack .tech:nth-child(6) { animation-delay: 0.40s; }
.stack .tech:nth-child(7) { animation-delay: 0.46s; } .stack .tech:nth-child(8) { animation-delay: 0.52s; }
.tech { transition: transform 0.45s var(--ease), border-color 0.3s ease, box-shadow 0.45s var(--ease); }
.tech-title { position: relative; }
.tech-title::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.55s var(--ease); }
.tech-icon, .tech-num { transition: transform 0.45s var(--ease), stroke 0.3s ease, color 0.3s ease; }
@media (hover: hover) and (pointer: fine) {
  .tech:hover { transform: translateY(-4px); border-color: var(--rule-strong); box-shadow: 0 22px 44px -32px rgba(42, 29, 26, 0.42); }
  .tech:hover .tech-title::after { transform: scaleX(1); }
  .tech:hover .tech-icon { transform: translateY(-2px); stroke: var(--burgundy); }
  .tech:hover .tech-num { color: var(--burgundy); border-color: var(--rule-strong); }
}

/* the closing statement, inside 03 only */
.statement { margin-top: clamp(28px, 3vw, 40px); padding: clamp(32px, 5vw, 72px); background: linear-gradient(135deg, var(--burgundy), var(--espresso)); color: var(--ivory); }
.statement-eyebrow { font-size: var(--label); font-weight: 500; letter-spacing: 0.2em; opacity: 0.75; }
.statement-title { margin-top: 20px; font-size: clamp(32px, 3.7vw, 54px); line-height: 1.1; letter-spacing: 0.012em; text-wrap: balance; }
.statement-sub { margin-top: 16px; font-style: italic; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.25; }
.statement-body { margin-top: 24px; max-width: 62ch; font-size: 16px; line-height: 1.75; opacity: 0.88; }
.statement-caps { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 14px 48px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(244, 237, 227, 0.22); }
.statement-caps li { display: flex; align-items: center; gap: 12px; font-size: var(--label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.statement-caps svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }

/* ---------------------------------------------------------------- document viewers */
html.viewer-open { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: rgba(14, 11, 10, 0.985); color: #f4ede3;
  opacity: 0; transition: opacity 0.28s ease; }
.viewer[hidden] { display: none; }
.viewer.is-open { opacity: 1; }
.viewer-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px var(--gutter); }
.viewer-title { font-size: var(--label); font-weight: 500; letter-spacing: var(--track); }
.viewer-intro { margin-top: 6px; font-size: 14px; color: rgba(244, 237, 227, 0.66); }
.viewer-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.tool { width: 44px; height: 44px; border: 1px solid rgba(244, 237, 227, 0.28); border-radius: 50%; background: none; font-size: 20px; line-height: 1; cursor: pointer; transition: background-color 0.2s; }
.tool:hover { background: rgba(244, 237, 227, 0.12); }
.tool:disabled { opacity: 0.35; cursor: default; }
.tool--close { margin-left: 8px; font-size: 24px; }
.zoom-value { min-width: 52px; text-align: center; font-size: 12px; letter-spacing: 0.1em; }

.resume-scroll { flex: 1; overflow: auto; padding: 0 var(--gutter) 32px; text-align: center; overscroll-behavior: contain; }
.resume-img { display: inline-block; width: auto; max-width: none; height: auto; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); vertical-align: top; }

.deck-tabs { display: flex; gap: 8px; padding: 0 var(--gutter) 14px; overflow-x: auto; }
.deck-tab { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; min-width: 0; padding: 10px 16px; border: 1px solid rgba(244, 237, 227, 0.22); background: none; text-align: left; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
/* 2026-11-23: the chosen document reads as a faint airbrushed ivory haze, not a solid ivory block */
.deck-tab[aria-selected="true"] {
  color: #f4ede3; border-color: rgba(244, 237, 227, 0.34);
  background:
    radial-gradient(90% 120% at 22% 30%, rgba(244, 237, 227, 0.16) 0%, rgba(244, 237, 227, 0.07) 45%, rgba(244, 237, 227, 0) 80%),
    radial-gradient(70% 110% at 85% 80%, rgba(244, 237, 227, 0.09) 0%, rgba(244, 237, 227, 0) 70%),
    rgba(244, 237, 227, 0.04);
  box-shadow: inset 0 0 22px rgba(244, 237, 227, 0.06);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.deck-tab-num { grid-row: span 2; font-size: var(--label); font-weight: 500; letter-spacing: 0.16em; padding-top: 1px; opacity: 0.7; }
.deck-tab-name { font-size: 14px; font-weight: 500; white-space: nowrap; }
.deck-tab-meta { font-size: 12px; letter-spacing: 0.06em; opacity: 0.7; }
.deck-stage { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 var(--gutter); }
.deck-figure { min-width: 0; min-height: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.deck-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.deck-arrow { width: 52px; height: 52px; border: 1px solid rgba(244, 237, 227, 0.28); border-radius: 50%; background: none; cursor: pointer; transition: background-color 0.2s; }
.deck-arrow:hover { background: rgba(244, 237, 227, 0.12); }
.deck-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.deck-meta { display: flex; justify-content: center; align-items: baseline; gap: 20px; padding: 16px var(--gutter) 22px; }
.deck-count { font-size: var(--label); font-weight: 500; letter-spacing: var(--track); }
.deck-caption { font-size: 14px; color: rgba(244, 237, 227, 0.72); }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1024px) {
  .acc-inner { padding-left: 0; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 48px); padding-top: clamp(28px, 6vw, 48px); }
  .mono { max-width: min(520px, 100%); justify-self: center; margin-bottom: clamp(26px, 5vw, 36px); } /* room for the lowered AI label */
  .hero-inner { gap: clamp(16px, 3vw, 28px); } /* with the margin above: the SCROLL DOWN pill stays on the first screen */
  .hero-copy { max-width: 640px; }
  /* stacked hero: the cue is a pill placed by contribution.js right under the lede, on the copy's left edge
     (pinning it to the screen bottom covered the lede on tablets) */
  .hero-inner { padding-bottom: calc(clamp(40px, 4.5vw, 72px) + 56px); } /* room for the cue under the lede */
  .scroll-cue { position: absolute; right: auto; bottom: auto; width: max-content; margin: 0; z-index: 2;
    gap: 10px; height: 42px; padding: 0 20px; border: 1px solid rgba(244, 237, 227, 0.28); border-radius: 999px;
    background: rgba(36, 27, 24, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 30px -18px rgba(20, 14, 12, 0.6); }
  .cue-text { font-size: 11px; letter-spacing: 0.2em; }
  .cue-arrow { height: 20px; }
  .cue-head { height: 9px; animation-name: cue-run-short; }
  .cue-arrow::after { width: 6px; height: 6px; left: -3px; }
  .block { grid-template-columns: 1fr; gap: 10px; }
  .block--work .label { display: none; }
}
@media (max-width: 860px) {
  .stack { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* phones: tighter card so the text column keeps its width; only the title steps aside for the number pill */
  .tech { padding: 18px 16px; column-gap: 14px; }
  .tech-icon { padding: 11px; border-radius: 12px; }
  .tech-title, .tech-tools { padding-left: 14px; }
  .tech-title { padding-right: 48px; }
  .tech-num { top: 14px; right: 14px; padding: 3px 9px; }
}
/* tablets and phones: the slide takes the full width, the arrows sit over its edges */
@media (max-width: 1024px) {
  .deck-stage { grid-template-columns: 1fr; padding: 0 12px; }
  .deck-arrow { position: absolute; top: 50%; z-index: 1; width: 44px; height: 44px; margin-top: -22px; background: rgba(14, 11, 10, 0.55); }
  .deck-arrow--prev { left: 18px; } .deck-arrow--next { right: 18px; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 640px) {
  .hero-bar { padding-top: 18px; }
  .hero-mark { font-size: 11px; letter-spacing: 0.16em; }
  .hero-title { font-size: clamp(40px, 11.5vw, 56px); }
  .acc-trigger { grid-template-columns: 30px 1fr auto; gap: 12px; }
  .acc-num { font-size: 13px; letter-spacing: 0.1em; }
  .acc-text { padding-left: 14px; }
  .main-float { height: 42px; padding: 0 18px 0 14px; }
  .scroll-cue { height: 42px; padding: 0 16px; }
  .panel-head { flex-direction: column; }
  .metrics { grid-template-columns: 1fr; }
  .metrics > div, .metrics > div + div { flex-direction: row; align-items: baseline; gap: 16px; padding: 16px 0; border-left: 0; }
  .metrics > div + div { border-top: 1px solid var(--rule); }
  .metric-num { min-width: 2.6ch; font-size: 48px; }
  .body--lead { font-size: 18px; }
  .block--x11 .body--lead { font-size: 19.2px; }
  .languages > div { grid-template-columns: 1fr; }
  .work-box { flex-direction: column; align-items: flex-start; }
  .cta { white-space: normal; }
  .area { grid-template-columns: 1fr; }
  .statement-caps { grid-template-columns: 1fr; }
  .viewer-bar { padding: 12px 16px; }
  .deck-meta { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .deck-tab-name { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
  .viewer { transition: none; }
  .acc-panel:not([hidden]) .tech { animation: none; }
  .tech, .tech-title::after, .tech-icon, .tech-num { transition: none; }
  .tech:hover { transform: none; }
  .hero-sheen { animation: none; }
  .mono, .hero-copy { transition: none; transform: none !important; }
  .cue-wheel, .cue-head, .cue-arrow { animation: none; }
}
/* touch screens: no wheel, so no mouse; the arrow says it */
@media (hover: none) {
  .cue-mouse { display: none; }
}
