/* Lettermark - style.css
   Layout: two thin side rails (contact on the left, menu and name on the right), one content column between them.
   One idea: WEIGHT. Type is a variable font; things arrive as a hairline and gain their weight.
   Fonts and colours are only set here in :root. Radius is one token (--radius). */

@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  /* fonts: the heading font must be variable (wght; wdth optional) */
  --f-head: "Mona Sans", system-ui, sans-serif;
  --f-text: "Rethink Sans", system-ui, sans-serif;
  --f-mono: "Fira Code", ui-monospace, monospace;
  --wmin: 200;   /* hairline */
  --wmax: 900;   /* black */
  --wrest: 200;  /* the footer initials at rest */
  --w-h: 720;    /* headings */
  --w-q: 640;    /* quotes and long headings */
  --wd0: 75;     /* width axis: narrow (fonts without wdth ignore it) */
  --wd1: 125;    /* width axis: wide */
  /* colours */
  --bg: #121012;
  --surface: #1d1a1d;
  --ink: #efe9e6;
  --dim: #8d8589;
  --acc: #f0a3bf;
  --on-acc: #121012;
  --name: #f0a3bf;   /* the big name in the hero */
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --radius: 0;
  --rail: 56px;
  --gut: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--f-text); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--acc); color: var(--on-acc); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dim { color: var(--dim); }
main, .foot { padding-left: calc(var(--rail) + var(--gut)); padding-right: calc(var(--rail) + var(--gut)); }
main > section { max-width: 1680px; margin-left: auto; margin-right: auto; }

/* type */
h1, h2, h3, .hero-name, .foot-mark, .statement-text, .proj-name, .note-title, .xp-role, .quote p, .svc-glyph, .mark-tile b, .logo-mark, .reel-tile b {
  font-family: var(--f-head); font-weight: normal; font-variation-settings: "wght" var(--w-h); letter-spacing: -.025em; }
h2 { font-size: clamp(34px, 3.4vw, 54px); line-height: 1.04; }
.label { font: 12px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.go { font-weight: 600; color: var(--name); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; transition: text-decoration-thickness .3s var(--ease); }
.go:hover { text-decoration-thickness: 4px; }
.go.dim { color: var(--dim); }

/* WEIGHT: [data-weigh] text is split into letters (main.js); letters come in as a hairline and gain weight, one after another */
[data-weigh] .wd { display: inline-block; white-space: nowrap; }
[data-weigh] .ch { display: inline-block; font-variation-settings: "wght" var(--w, var(--wt, var(--w-h))), "wdth" var(--d, 100);
  transition: font-variation-settings .9s steps(5, end) calc(var(--i) * 18ms); }   /* in steps: every weight change re-lays out the text, 5 steps keep scrolling smooth */
.js [data-weigh]:not(.is-in) .ch { --w: var(--wmin); --d: var(--wd0); }
a:hover [data-hot] .ch, a:focus-visible [data-hot] .ch { --w: var(--wmax); transition-duration: .5s; }
/* main.js measures every word at its final weight and fixes its width (a hover title may grow a hair past it), so weight never moves the layout */
.is-measuring [data-weigh] .ch { --w: var(--wt, var(--w-h)) !important; --d: 100 !important; transition: none !important; }

/* LENS: the big name is set twice; a round lens that follows the cursor shows the other weight (main.js 6).
   Without JavaScript only the base weight shows. */
[data-press] { position: relative; user-select: none; white-space: nowrap; --wa: var(--wrest); --wb: var(--wmax); --lens-bg: var(--bg); }
[data-press="lift"] { --wa: var(--wmax); --wb: calc(var(--wmin) + 100); }
.foot-mark { --lens-bg: var(--surface); }
[data-press] .ch { display: inline-block; text-align: center; }
.lens-base .ch, [data-press]:not(.is-lens) { font-variation-settings: "wght" var(--wa); }
.lens { position: absolute; left: 0; top: 0; width: 1.05em; height: 1.05em; border-radius: 50%; overflow: hidden; background: var(--lens-bg);
  -webkit-mask: radial-gradient(circle closest-side, #000 calc(100% - 10px), transparent) center / var(--ms, 0%) var(--ms, 0%) no-repeat;
  mask: radial-gradient(circle closest-side, #000 calc(100% - 10px), transparent) center / var(--ms, 0%) var(--ms, 0%) no-repeat;
  pointer-events: none; will-change: transform; transform: translate3d(-9999px, 0, 0); }
.lens-in { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.lens-in .ch { font-variation-settings: "wght" var(--wb); }

/* BANDS: photos open as horizontal lines that thicken until they meet (main.js adds .is-in, then .is-done drops the mask) */
.bands { --band: 22px; display: block; overflow: hidden; background: var(--surface); }
.bands img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.js .bands:not(.is-done) { transition: --p 1.5s cubic-bezier(.65, 0, .35, 1);
  -webkit-mask: repeating-linear-gradient(transparent 0 calc((1 - var(--p)) * var(--band) / 2), #000 0 calc((1 + var(--p)) * var(--band) / 2), transparent 0 var(--band));
  mask: repeating-linear-gradient(transparent 0 calc((1 - var(--p)) * var(--band) / 2), #000 0 calc((1 + var(--p)) * var(--band) / 2), transparent 0 var(--band)); }
.js .bands.is-in { --p: 1.06; }
.js .bands:not(.is-in) img { transform: scale(1.08); }

/* button: the small square spreads over the whole button */
.btn { position: relative; display: inline-flex; align-items: center; padding: 15px 22px 15px 38px; background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 600; line-height: 1.2; border-radius: var(--radius); overflow: hidden; isolation: isolate; transition: color .45s var(--ease); }
.btn i { position: absolute; left: 18px; top: calc(50% - 4px); width: 8px; height: 8px; background: var(--acc); z-index: -1;
  transition: left .5s var(--ease), top .5s var(--ease), width .5s var(--ease), height .5s var(--ease); }
.btn:hover, .btn:focus-visible { color: var(--on-acc); }
.btn:hover i, .btn:focus-visible i { left: 0; top: 0; width: 100%; height: 100%; }

/* RAILS (desktop): left = contact, right = menu + name, both written upwards */
.rail { position: fixed; top: 0; bottom: 0; width: var(--rail); z-index: 50; display: flex; flex-direction: column; align-items: center; padding: 22px 0; background: var(--bg); }
.rail-l { left: 0; justify-content: flex-end; border-right: 1px solid var(--line); }
.rail-r { right: 0; gap: 24px; }
.rail-link, .rail-name { writing-mode: vertical-rl; transform: rotate(180deg); text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; }
.rail-link { padding: 4px 0; background: linear-gradient(var(--acc), var(--acc)) no-repeat 0 100% / 0 100%; transition: background-size .45s var(--ease); }
.rail-link:hover { background-size: 100% 100%; }
.rail-name { font-size: 18px; letter-spacing: -.01em; }
.rail-plus { position: relative; width: 32px; height: 32px; }
.rail-plus::before, .rail-plus::after { content: ""; position: absolute; left: 6px; right: 6px; top: 15px; height: 2px; background: var(--ink); transition: transform .45s var(--ease); }
.rail-plus::after { transform: rotate(90deg); }
.rail-plus[aria-expanded="true"]::before { transform: rotate(45deg); }
.rail-plus[aria-expanded="true"]::after { transform: rotate(135deg); }

/* header: only below 1100px, where the rails go */
.head { display: none; position: fixed; inset: 0 0 auto; z-index: 50; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gut); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.head.is-solid { box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--ink); color: var(--bg); font-size: 16px; letter-spacing: -.04em; font-variation-settings: "wght" var(--wmax); border-radius: var(--radius); }
.logo-name { font-weight: 600; }
.menu-btn { padding: 9px 16px; border: 1px solid var(--ink); border-radius: var(--radius); font-size: 14px; font-weight: 600; }

/* menu (opens from the + or the Menu button) */
.menu { position: fixed; inset: 0 var(--rail) 0 var(--rail); z-index: 45; background: var(--bg); padding: 96px var(--gut) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); }
.menu.is-open { clip-path: inset(0); }
.menu nav { display: grid; gap: 2px; }
.menu nav a { font: clamp(48px, 9vw, 150px)/.98 var(--f-head); font-variation-settings: "wght" var(--wmin); text-decoration: none; letter-spacing: -.04em; width: max-content; transition: font-variation-settings .5s var(--ease); }
.menu nav a:hover, .menu nav a[aria-current] { font-variation-settings: "wght" var(--wmax); }
.menu-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); }

/* HERO: small headline, the name in black weight across the page, the portrait standing in front of it */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto auto 1fr auto; padding: 24px 0 36px; }
.hero-tag { font-size: 14px; white-space: pre; }
.hero-title { grid-row: 2; margin-top: clamp(28px, 6vh, 64px); font-size: clamp(28px, 2.6vw, 42px); line-height: 1.04; max-width: 11em; position: relative; z-index: 3; }
.hero-name { grid-row: 3; align-self: center; position: relative; z-index: 1; font-size: clamp(120px, 29vw, 520px); line-height: .78; letter-spacing: -.055em; color: var(--name); margin-left: -.04em; }
.hero-photo { position: absolute; right: 0; bottom: 0; z-index: 2; width: min(27vw, 500px); aspect-ratio: 4 / 5; max-height: 84svh; }
.hero-photo img { object-position: 50% 25%; }
.hero-foot { grid-row: 4; display: grid; gap: 14px; max-width: 300px; font-size: 15px; position: relative; z-index: 3; }

/* STATEMENT */
.statement { padding: clamp(96px, 11vw, 170px) 0 clamp(64px, 7vw, 110px); }
.statement-text { font-size: clamp(28px, 2.9vw, 46px); line-height: 1.1; max-width: 19em; }

/* SERVICES: a narrow list; the glyph on the right is the service's own lettermark and gains weight on hover */
.services { padding-bottom: clamp(96px, 11vw, 170px); }
.svc { max-width: 860px; }
.svc-row { display: grid; grid-template-columns: 1fr 76px; gap: 32px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); }
.svc-body { display: grid; gap: 8px; max-width: 380px; }
.svc-body h3 { font-size: 22px; line-height: 1.1; }
.svc-body p { font-size: 15px; color: color-mix(in srgb, var(--ink) 75%, var(--bg)); }
.svc-items { font: 12px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--dim) !important; }
.svc-glyph { display: grid; place-items: center; width: 76px; height: 76px; font-size: 54px; line-height: 1; border: 1px solid var(--line); border-radius: var(--radius);
  font-variation-settings: "wght" var(--wmin), "wdth" var(--wd0); transition: font-variation-settings .8s var(--ease), background .5s var(--ease), border-color .5s; }
.svc-row:hover .svc-glyph, .svc-row.is-on .svc-glyph { font-variation-settings: "wght" var(--wmax), "wdth" var(--wd1); background: var(--acc); color: var(--on-acc); border-color: var(--acc); }

/* SHOWREEL photo with the year tile */
.reel { position: relative; }
.reel-ph { aspect-ratio: 16 / 8; }
.reel-ph img { object-position: 50% 35%; }
.reel-tile { position: absolute; left: 18px; top: 18px; display: grid; gap: 8px; padding: 10px 12px; background: var(--bg); border-radius: var(--radius); }
.reel-tile b { font-size: 26px; line-height: .86; letter-spacing: -.04em; font-variation-settings: "wght" var(--wmax); }
.reel-tile span { font-size: 11px; font-weight: 600; }
.reel-label { margin-top: 12px; text-align: right; font-weight: 600; color: var(--name); }

/* CLIENTS: lettermarks drawn for them, in a 3 x 2 grid */
.clients { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding: clamp(96px, 11vw, 170px) 0; }
.clients-text { font-size: clamp(26px, 2.3vw, 38px); line-height: 1.1; max-width: 14em; }
.marks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mark-tile { aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.mark-tile b { font-size: clamp(34px, 3.6vw, 58px); line-height: 1; font-variation-settings: "wght" var(--wmin), "wdth" var(--wd0); transition: font-variation-settings .7s var(--ease); }
.mark-tile span { font-size: 12px; color: var(--dim); }
.mark-tile:hover b { font-variation-settings: "wght" var(--wmax), "wdth" var(--wd1); }

/* WORK */
.work { padding-bottom: clamp(96px, 11vw, 170px); }
.work-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 32px; }
.work-years { flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--dim); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 16px; align-items: start; }
.proj { display: grid; gap: 12px; text-decoration: none; }
.proj-ph { position: relative; aspect-ratio: 1 / 1; }
.proj:nth-child(4n+2) .proj-ph, .proj:nth-child(4n+3) .proj-ph { aspect-ratio: 4 / 3; }
.proj:hover .proj-ph img { transform: scale(1.035); }
.proj-mark { position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; background: var(--bg); color: var(--ink);
  font: 16px/1 var(--f-head); letter-spacing: -.03em; font-variation-settings: "wght" var(--wmax); border-radius: var(--radius); transition: background .4s, color .4s; }
.proj:hover .proj-mark { background: var(--acc); color: var(--on-acc); }
.proj-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 4px; }
.proj-name { font-size: 20px; line-height: 1.1; }
.proj-meta { color: var(--dim); font-size: 14px; max-width: 34em; padding: 0 4px; }
.swatches { display: flex; gap: 3px; }
.swatches i { width: 12px; height: 12px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); transform: scaleY(.3); transform-origin: bottom; transition: transform .45s var(--ease); }
.swatches i:nth-child(2) { transition-delay: .05s; } .swatches i:nth-child(3) { transition-delay: .1s; } .swatches i:nth-child(4) { transition-delay: .15s; }
.proj:hover .swatches i, .proj:focus-visible .swatches i { transform: none; }

/* EXPERIENCE: the role you are scrolling past is in full weight, past roles go back to a hairline */
.xp { padding-bottom: clamp(96px, 11vw, 170px); }
.xp h2 { max-width: 17em; margin-bottom: 48px; }
.xp-list { position: relative; max-width: 980px; padding-left: 22px; }
.xp-list::before, .xp-list::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; background: var(--line); height: 100%; }
.xp-list::after { width: 3px; left: -1px; background: var(--ink); height: var(--fill, 0px); transition: height .5s var(--ease); }
.xp-row { border-bottom: 1px solid var(--line); }
.xp-btn { width: 100%; display: grid; grid-template-columns: 1fr 180px 26px; grid-template-areas: "role years plus" "place years plus"; column-gap: 24px; row-gap: 2px; text-align: left; padding: 24px 0; align-items: center; }
.xp-role { grid-area: role; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; font-variation-settings: "wght" calc((var(--wmin) + var(--wmax)) / 2), "wdth" 100;
  transition: font-variation-settings .8s steps(5, end); }
.xp-row.is-past .xp-role { font-variation-settings: "wght" var(--wmin), "wdth" var(--wd0); }
.xp-row.is-now .xp-role { font-variation-settings: "wght" var(--wmax), "wdth" var(--wd1); }
.xp-place { grid-area: place; color: var(--dim); font-size: 15px; }
.xp-years { grid-area: years; color: var(--dim); font-size: 14px; }
.xp-plus { grid-area: plus; position: relative; width: 20px; height: 20px; }
.xp-plus::before, .xp-plus::after { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 2px; background: var(--name); transition: transform .4s var(--ease); }
.xp-plus::after { transform: rotate(90deg); }
.xp-btn[aria-expanded="true"] .xp-plus::after { transform: rotate(0); }
.xp-text { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.xp-text p { overflow: hidden; min-height: 0; color: var(--dim); max-width: 36em; }
.xp-btn[aria-expanded="true"] + .xp-text { grid-template-rows: 1fr; }
.xp-btn[aria-expanded="true"] + .xp-text p { padding-bottom: 24px; }
.xp-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; }

/* KIND WORDS */
.words { padding-bottom: clamp(96px, 11vw, 170px); display: grid; gap: 32px; }
.words-stage { display: grid; grid-template-columns: 1fr minmax(240px, 30%); gap: 48px; align-items: start; }
.words-quotes { display: grid; }
.quote { grid-area: 1 / 1; display: grid; gap: 40px; align-content: start; }
.quote figcaption { display: grid; gap: 2px; font-size: 14px; }
.quote figcaption span { color: var(--dim); }
.quote p { font-size: clamp(30px, 3.3vw, 56px); line-height: 1.08; --wt: var(--w-q); }
.js .quote:not(.is-on) { visibility: hidden; }
.quote.is-leaving { visibility: visible !important; }
.quote.is-leaving p { clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease) .25s; }
.quote.is-leaving .ch { --w: var(--wmin); --d: var(--wd0); transition-delay: 0s; transition-duration: .3s; }
.words-photos { display: grid; }
.words-ph { grid-area: 1 / 1; aspect-ratio: 4 / 5; }
.js .words-ph:not(.is-on) { visibility: hidden; }
.words-nav { display: flex; align-items: center; gap: 6px; }
.arrow { display: grid; place-items: center; width: 40px; height: 40px; background: var(--acc); color: var(--on-acc); border-radius: var(--radius); transition: background .3s, color .3s; }
.arrow:hover { background: var(--ink); color: var(--bg); }
.words-count { margin-left: 14px; font-size: 13px; font-weight: 600; color: var(--dim); }

/* JOURNAL */
.journal { padding-bottom: clamp(96px, 11vw, 170px); }
.notes { display: grid; gap: 12px; max-width: 980px; }
.note { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; text-decoration: none; }
.note-ph { aspect-ratio: 1; }
.note:hover .note-ph img { transform: scale(1.05); }
.note-body { display: grid; gap: 6px; }
.note-cat { font-size: 13px; font-weight: 600; color: var(--dim); }
.note-title { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.15; max-width: 22em; }

/* CTA */
.cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 48px; padding: clamp(80px, 9vw, 140px) 0; border-top: 1px solid var(--line); align-items: end; }
.cta h2 { font-size: clamp(40px, 5vw, 84px); line-height: 1; }
.cta-side { display: grid; gap: 22px; max-width: 420px; }
.cta-side > p:first-child { color: var(--dim); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.status { display: flex; align-items: center; gap: 8px; font: 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }
.status i { width: 8px; height: 8px; background: var(--acc); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.mail { position: relative; }
.copied { position: absolute; left: 0; bottom: calc(100% + 8px); background: var(--ink); color: var(--bg); font: 11px/1 var(--f-mono); text-transform: uppercase; padding: 6px 8px; pointer-events: none; text-decoration: none; }

/* FOOTER */
.foot { background: var(--surface); overflow: hidden; }
.foot-top { padding-top: 64px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-links { display: grid; gap: 4px; margin-top: 14px; }
.foot-links a { text-decoration: none; width: max-content; }
.foot-links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .25em; }
.foot-links span { color: var(--dim); }
.foot-mark { font-size: 36vw; line-height: .74; letter-spacing: -.05em; margin: 40px 0 0 -.04em; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }

.to-top { position: fixed; right: calc(var(--rail) + 14px); bottom: 18px; z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; background: var(--ink); color: var(--bg);
  border-radius: var(--radius); clip-path: inset(100% 0 0 0); transition: clip-path .45s var(--ease); }
.to-top.on { clip-path: inset(0); }

/* tablet and phone: the rails become a top bar */
@media (max-width: 1100px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  .head { display: flex; }
  .hero { padding-top: 92px; }
  .clients { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .hero { display: flex; flex-direction: column; gap: 22px; min-height: 0; }
  .hero-title { margin-top: 8px; }
  .hero-name { font-size: 36vw; margin-top: 12px; }
  .hero-photo { position: relative; right: auto; width: 72%; margin: -7vw 0 0 auto; max-height: none; }
  .hero-foot { max-width: none; }
  .svc-row { grid-template-columns: 1fr 60px; gap: 18px; }
  .svc-glyph { width: 60px; height: 60px; font-size: 42px; }
  .reel-ph { aspect-ratio: 4 / 3; }
  .work-grid { grid-template-columns: 1fr; }
  .proj .proj-ph { aspect-ratio: 4 / 3 !important; }
  .swatches i { transform: none; }
  .xp-btn { grid-template-columns: 1fr 20px; grid-template-areas: "role plus" "place plus" "years plus"; }
  .words-stage { grid-template-columns: 1fr; gap: 28px; }
  .words-photos { grid-row: 1; width: 56%; }
  .note { grid-template-columns: 96px 1fr; gap: 16px; }
  .cta { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-mark { font-size: 54vw; }
}
/* ===== INNER PAGES ===== */
.page-head { padding: 24px 0 clamp(56px, 7vw, 100px); display: grid; gap: clamp(24px, 4vh, 48px); }
.page-head h1 { font-size: clamp(44px, 6.4vw, 112px); line-height: .98; max-width: 13em; }
.page-text { color: var(--dim); max-width: 34em; font-size: 17px; }
.back { display: inline-flex; align-items: center; gap: 10px; width: max-content; text-decoration: none; font-weight: 600; font-size: 14px; }
.back:hover { color: var(--name); }

/* work filter */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.filters button { padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.proj.is-hidden { display: none; }
.work-page .proj .proj-ph { aspect-ratio: 4 / 3; }

/* project pages */
.proj-head h1 { max-width: none; }
.proj-cover { position: relative; aspect-ratio: 16 / 9; }
.proj-cover .proj-mark { width: 56px; height: 56px; font-size: 20px; }
.meta { display: grid; margin: 0; }
.meta div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.meta dt { font: 12px/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }
.meta dd { margin: 0; font-weight: 600; }
.palette { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.palette li { display: flex; align-items: center; gap: 6px; font: 12px var(--f-mono); color: var(--dim); text-transform: uppercase; }
.palette i { width: 22px; height: 22px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent); }
.proj-text { display: grid; gap: 18px; max-width: 36em; font-size: 17px; }
.proj-text .label { margin-top: 12px; }
.deliv { display: flex; flex-wrap: wrap; gap: 6px; }
.deliv li { padding: 6px 10px; border: 1px solid var(--line); font-size: 14px; }
.gallery { display: grid; gap: 16px; }
.g-row { display: grid; gap: 16px; }
.g-row.c2 { grid-template-columns: 1fr 1fr; }
.g-row.c3 { grid-template-columns: repeat(3, 1fr); }
.g-ph { aspect-ratio: 3 / 2; }
.g-row.c2 .g-ph { aspect-ratio: 4 / 5; }
.proj-a { display: grid; gap: clamp(48px, 6vw, 96px); padding-bottom: clamp(96px, 11vw, 170px); }
.proj-info { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.proj-b { display: grid; grid-template-columns: minmax(300px, 1fr) 1.5fr; gap: 48px; align-items: start; padding-bottom: clamp(96px, 11vw, 170px); }
.proj-side { position: sticky; top: 32px; display: grid; gap: 40px; }
.proj-stack { display: grid; gap: 16px; }
.proj-b .proj-cover { aspect-ratio: 4 / 3; }
.next { border-top: 1px solid var(--line); }
.next-link { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "tag ph" "name ph"; gap: 12px 32px; align-items: end; padding: clamp(56px, 7vw, 110px) 0; text-decoration: none; }
.next-link .hero-tag { grid-area: tag; color: var(--dim); }
.next-name { grid-area: name; font-size: clamp(40px, 6vw, 100px); line-height: 1; color: var(--name); }
.next-ph { grid-area: ph; width: clamp(140px, 20vw, 320px); aspect-ratio: 4 / 3; }
.next-link:hover .next-ph img { transform: scale(1.05); }

/* about */
.bio { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: clamp(96px, 11vw, 170px); }
.bio-ph { aspect-ratio: 4 / 5; }
.bio-text { display: grid; gap: 20px; font-size: 18px; max-width: 34em; }
.bio-text p:first-child { font: clamp(24px, 2vw, 32px)/1.2 var(--f-head); font-variation-settings: "wght" var(--w-h); letter-spacing: -.02em; }
.steps { padding-bottom: clamp(96px, 11vw, 170px); }
.steps h2 { margin-bottom: 24px; }
.steps .svc-glyph { font-size: 30px; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: clamp(48px, 6vw, 96px); }
.tools, .recog { margin-top: 18px; border-top: 1px solid var(--line); }
.tools li, .recog li { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.recog li { display: grid; grid-template-columns: 80px 1fr; }
.recog span { color: var(--dim); font-weight: 400; }

/* journal */
.notes-big { gap: 20px; max-width: 1180px; }
.notes-big .note { grid-template-columns: 260px 1fr; gap: 32px; }
.notes-big .note-ph { aspect-ratio: 4 / 3; }
.notes-big .note-title { font-size: clamp(24px, 2.6vw, 40px); }
.note-ex { color: var(--dim); max-width: 36em; }
.post .page-head h1 { max-width: 16em; font-size: clamp(40px, 5vw, 84px); }
.post-ph { aspect-ratio: 16 / 8; }
.post-body { max-width: 680px; margin: clamp(48px, 6vw, 96px) auto clamp(96px, 11vw, 170px); display: grid; gap: 22px; font-size: 18px; line-height: 1.7; }
.post-body h2 { font-size: clamp(24px, 2.2vw, 32px); margin-top: 24px; }
.post-body p:first-child { font-size: 22px; line-height: 1.5; }

/* contact */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; padding-bottom: clamp(96px, 11vw, 170px); }
.form { display: grid; gap: 26px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend, .field label { display: block; font: 12px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--dim); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips legend { width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: block; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.field input, .field textarea { width: 100%; padding: 10px 0 12px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); font: 18px/1.4 var(--f-text); outline: 0; transition: border-color .3s; resize: none; }
.field input::placeholder { color: color-mix(in srgb, var(--dim) 60%, transparent); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--name); }
.field.is-bad input, .field.is-bad textarea { border-bottom-color: var(--name); }
.form-note { min-height: 1.5em; font-weight: 600; color: var(--name); }
.form .btn { width: max-content; }
.contact-side { display: grid; gap: 32px; }
.contact-side .label { margin-bottom: 10px; }

/* 404 */
.nf { min-height: 100svh; display: grid; align-content: center; gap: 24px; padding: 40px 0; }
.nf-title { font-size: clamp(160px, 32vw, 560px); line-height: .8; letter-spacing: -.05em; color: var(--name); }

@media (max-width: 1100px) {
  .page-head, .nf { padding-top: 96px; }
  .proj-b { grid-template-columns: 1fr; }
  .proj-side { position: static; }
}
@media (max-width: 800px) {
  .proj-info, .bio, .lists, .contact { grid-template-columns: 1fr; }
  .g-row.c2, .g-row.c3 { grid-template-columns: 1fr; }
  .g-row.c2 .g-ph { aspect-ratio: 4 / 3; }
  .meta div { grid-template-columns: 96px 1fr; }
  .next-link { grid-template-columns: 1fr; grid-template-areas: "tag" "name" "ph"; }
  .next-ph { width: 60%; }
  .notes-big .note { grid-template-columns: 110px 1fr; gap: 16px; }
  .note-ex { display: none; }
  .post-ph { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}
