/* Portfolio. Two looks on one page, picked by <html data-look>:
   report = the finance side: dark ink, editorial type, smooth glides, a dot field that answers the cursor
   matrix = the builder side: a monochrome LED dot matrix. The brand on a dot display, pictures as halftones of dots,
            dot tickers, Geist Pixel Circle headings and one small red recording dot
   Colours per profile come from the content (renderTheme writes --bg, --text, --accent, --accent-ink). */
@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-VF.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/GeistMono-VF.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
:root {
  --accent: #FF4D2E; --accent-ink: #140806;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1); --ease-s: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.28, .64, 1);
  --pad: clamp(1.25rem, 7vw, 7.5rem);
  --text-morph-dur: 180ms; --text-morph-resize-dur: 240ms; --text-morph-blur: 2px; --text-morph-ease: cubic-bezier(.22, 1, .36, 1);
}
html[data-look="report"] {
  --bg: #0F0F10; --text: #F4F1EA;
  --display: var(--sans); --display-track: -.04em; --display-weight: 500; --radius: 62.4375rem; --card-radius: 0.25rem;
  --grain-opacity: .07; color-scheme: dark;
}
/* every other colour is mixed from the three content colours, so the admin can change them safely */
html[data-look] {
  --bg-2: color-mix(in srgb, var(--bg) 94%, var(--text)); --surface: color-mix(in srgb, var(--bg) 88%, var(--text)); --surface-2: color-mix(in srgb, var(--bg) 80%, var(--text));
  --muted: color-mix(in srgb, var(--text) 66%, var(--bg)); --faint: color-mix(in srgb, var(--text) 52%, var(--bg));
  --line: color-mix(in srgb, var(--text) 12%, transparent); --line-2: color-mix(in srgb, var(--text) 24%, transparent);
  --pattern: radial-gradient(color-mix(in srgb, var(--text) 13%, transparent) 1px, transparent 1.4px) 0 0 / 26px 26px;
}

/* 16 px up to a 1440 laptop, then the root grows with the screen: about 18 at 1080p, 22 at 1440p, 26 on 4K.
   Sizes are in rem, so type, spacing and the dot displays all grow together and the page fills the width. */
html { font-size: clamp(16px, calc(.5vw + 8.8px), 26px); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 0.25rem; border-radius: 0.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 0.875rem; border-radius: 0.625rem; }
.skip:focus { top: 1rem; }
.eyebrow { display: inline-block; font-size: 0.7812rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 560; }
.demo { display: inline-block; justify-self: start; font-size: 0.7188rem; letter-spacing: .08em; padding: 3px 0.5625rem; border: 1px dashed var(--line-2); border-radius: 62.4375rem; color: var(--muted); }
.sep { display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--accent); margin: 0 .55em; vertical-align: middle; flex: none; }

/* film grain over everything, very light */
.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); } }

/* ---------- nav and the profile switch ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1.625rem clamp(1.25rem, 3.4vw, 3rem);
  transition: transform 360ms var(--ease-s), background-color 240ms ease, box-shadow 240ms ease, padding 240ms var(--ease-s); }
/* after the top of the page the nav gets a surface, hides while you scroll down and returns when you scroll up */
.nav.solid { padding-block: 0.875rem; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(1rem) saturate(150%); backdrop-filter: blur(1rem) saturate(150%); box-shadow: 0 1px 0 var(--line); }
.nav.hide { transform: translateY(-105%); }
main section[id] { scroll-margin-top: 6rem; }
.nav-side { justify-self: start; }
.nav nav { justify-self: end; display: flex; gap: 2px; }
.nav-link { position: relative; display: inline-block; padding: 0.625rem 0.875rem; font-size: 1rem; }
.nav-link::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 0.3125rem; height: 0.3125rem; border-radius: 50%; background: var(--text); translate: -50% 0; scale: 0; transition: scale 300ms var(--ease); }
.nav-link:hover::after { scale: 1; }
/* equal option widths in both looks, so the thumb never changes size when the type changes */
.switch { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 0.25rem; border-radius: 62.4375rem; isolation: isolate; view-transition-name: profile-switch;
  font-family: var(--sans); font-size: 0.9062rem; }
html[data-look="report"] .switch {
  /* liquid glass: frosted body, bright top edge, soft inner shadow */
  background: color-mix(in srgb, var(--surface) 42%, transparent); border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 45%, transparent), inset 0 -1px 0 color-mix(in srgb, #000 20%, transparent), 0 0.625rem 1.875rem rgba(0, 0, 0, .18);
  backdrop-filter: blur(0.875rem) saturate(170%); -webkit-backdrop-filter: blur(0.875rem) saturate(170%); }
.sw-opt { position: relative; z-index: 1; border: 0; background: none; padding: 0.5rem 1.125rem; min-width: 6.5rem; border-radius: inherit; cursor: pointer; color: var(--muted); font: inherit; transition: color 200ms ease; }
.sw-opt:hover { color: var(--text); }
.sw-opt[aria-pressed="true"] { color: var(--accent-ink); }
.sw-thumb { position: absolute; z-index: 0; top: 0.25rem; bottom: 0.25rem; left: 0; width: var(--sw-w, 50%); border-radius: 62.4375rem; background: var(--accent); transform: translateX(var(--sw-x, 0.25rem)); transition: transform 420ms var(--spring); }

/* ---------- hero, shared ---------- */
.hero { position: relative; }
.hero-v { position: relative; }

/* ---------- hero: report (finance) ---------- */
.hero-report { height: 100svh; min-height: 41.25rem; overflow: hidden; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--pattern);
  mask-image: radial-gradient(75% 75% at 50% 55%, #000 34%, transparent 84%); -webkit-mask-image: radial-gradient(75% 75% at 50% 55%, #000 34%, transparent 84%); }
.hero-bg::after { content: ""; position: absolute; left: 50%; top: 52%; width: 70vmin; height: 70vmin; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%); filter: blur(1.875rem); animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.15) translate(4%, -3%); opacity: .7; } }
.hero-photo { position: absolute; left: 50%; bottom: 0; height: min(94svh, 61.25rem); width: auto; translate: -50% 0; object-fit: contain; object-position: bottom; z-index: 1; user-select: none; }
.hero-badge { position: absolute; left: 0; top: 46%; z-index: 3; display: flex; align-items: center; gap: 1.375rem; padding: 1.375rem 1.375rem 1.375rem clamp(1.25rem, 3.4vw, 3rem); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1rem; line-height: 1.25; }
.globe { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--surface-2); }
.globe svg { width: 2.125rem; height: 2.125rem; fill: none; stroke: var(--text); stroke-width: 1.4; }
.globe-spin { transform-origin: 1.25rem 1.25rem; animation: globe 9s linear infinite; }
@keyframes globe { to { transform: rotate(360deg); } }
.hero-role { position: absolute; right: clamp(1.25rem, 6vw, 6.875rem); top: 40%; z-index: 3; display: grid; gap: 1rem; max-width: 20rem; }
.hero-role .arrow { font-size: 1.625rem; line-height: 1; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
/* pause motion */
.motion-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.6875rem 0.25rem 0.5625rem; border: 1px solid var(--line-2); border-radius: 62.4375rem; background: none; color: var(--muted); font-size: 0.7188rem; letter-spacing: .06em; cursor: pointer; transition: color 150ms ease, border-color 150ms ease; }
.motion-btn:hover { color: var(--text); border-color: var(--text); }
html.still .grain, html.still .hero-bg::after, html.still .globe-spin { animation-play-state: paused; }
/* the page holds still while the profile switch moves it, and the look changes in one step (the switch thumb still slides) */
html.swap *:not(.sw-thumb), html.swap *::before, html.swap *::after { transition: none !important; }
html.vt-portal .grain, html.vt-portal .hero-bg::after, html.vt-portal .globe-spin, html.vt-portal .rec i { animation-play-state: paused; }
.mb-i { width: 0.5rem; height: 0.5625rem; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 0.3125rem, currentColor 0.3125rem 0.5rem); }
.motion-btn[aria-pressed="true"] .mb-i { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hero-role p { font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.2; }
.hero-role em { font-family: var(--serif); font-style: italic; color: var(--muted); font-weight: 400; }
.hero-name { position: absolute; left: 0; right: 0; bottom: clamp(1.5rem, 5svh, 3.5rem); z-index: 2; overflow: hidden; pointer-events: none; }
.hero-name .track { display: flex; width: max-content; will-change: transform; }
.hero-name .half { display: flex; align-items: center; padding-right: .3em; font-family: var(--display); font-size: clamp(6rem, 15vw, 15rem); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: 1; white-space: nowrap; }


/* ---------- intro ---------- */
.intro { display: grid; gap: 1.75rem; padding: clamp(6.25rem, 12vw, 10rem) var(--pad) clamp(5rem, 9vw, 8.125rem); }
.intro-big { font-size: clamp(1.75rem, 3.1vw, 2.875rem); line-height: 1.24; letter-spacing: -.02em; max-width: 65.625rem; }

/* ---------- work ---------- */
.work { position: relative; padding: 0 var(--pad) clamp(5.625rem, 10vw, 8.75rem); }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.625rem; }
.work-head h2 { font-size: 0.8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 560; }
.work-tools { display: flex; gap: 0.625rem; flex-wrap: wrap; align-items: center; }
.filters, .toggle { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.chip, .tg { border: 1px solid var(--line-2); background: transparent; border-radius: var(--radius); padding: 0.5rem 0.9375rem; cursor: pointer; font-size: 0.875rem; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.chip sup { font-size: 0.5938rem; color: var(--muted); margin-left: 2px; }
.chip.on, .tg.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.on sup { color: inherit; opacity: .6; }
.tg { width: 2.375rem; height: 2.375rem; padding: 0; display: grid; place-items: center; }
.tg svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.w-labels { display: grid; grid-template-columns: 4ch 2.4fr 1fr .5fr; gap: 0 0.75rem; padding: 0 1.125rem 0.75rem; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; }
.w-labels span:last-child { text-align: right; }
.work-list { list-style: none; margin: 0; padding: 0; }
.w-row a { display: grid; grid-template-columns: 4ch 2.4fr 1fr .5fr; gap: 0 0.75rem; align-items: center; padding: clamp(1.125rem, 2.2vw, 1.75rem) 1.125rem; border-bottom: 1px solid var(--line); transition: opacity 400ms ease; }
.w-no { font-family: var(--mono); font-size: 0.7812rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.w-title { font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.625rem); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: 1.05; transition: transform 500ms var(--ease); }
.w-type, .w-year { color: var(--muted); font-size: 0.9375rem; transition: transform 500ms var(--ease); }
.w-year { text-align: right; font-variant-numeric: tabular-nums; }
.w-thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  html[data-look="report"] .work-list:hover .w-row a { opacity: .35; }
  html[data-look="report"] .work-list:hover .w-row a:hover { opacity: 1; }
  html[data-look="report"] .w-row a:hover .w-title { transform: translateX(-0.5rem); }
  html[data-look="report"] .w-row a:hover .w-type, html[data-look="report"] .w-row a:hover .w-year { transform: translateX(0.5rem); }
}
.w-float { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(13.75rem, 19vw, 18.75rem); aspect-ratio: 4 / 3.2; pointer-events: none; scale: 0; transition: scale 450ms var(--ease); }
.w-float.on { scale: 1; }
.w-float-mat { width: 100%; height: 100%; display: grid; place-items: center; background: var(--mat, #2A2A2D); border-radius: var(--card-radius); overflow: hidden; }
.w-float-mat img { width: 84%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; box-shadow: 0 1rem 2rem rgba(0, 0, 0, .35); }
.w-view { position: fixed; left: 0; top: 0; z-index: 31; width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 0.8125rem; font-weight: 560; pointer-events: none; scale: 0; transition: scale 380ms var(--ease); }
.w-view.on { scale: 1; }
.work-grid { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.375rem, 3vw, 2.5rem) clamp(1.125rem, 2.4vw, 2rem); padding-top: 1.625rem; }
.work[data-view="grid"] .work-grid { display: grid; }
.work[data-view="grid"] .work-list, .work[data-view="grid"] .w-labels { display: none; }
.w-card { display: grid; gap: 0.625rem; align-content: start; }
.w-strip { display: none; }
.w-mat { background: var(--mat, #2A2A2D); aspect-ratio: 5 / 4; display: grid; place-items: center; border-radius: var(--card-radius); overflow: hidden; }
.w-mat img { width: 84%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; box-shadow: 0 1rem 2rem rgba(0, 0, 0, .35); transition: transform 800ms var(--ease); }
.w-card:hover .w-mat img { transform: scale(1.04); }
.w-card-meta { display: flex; justify-content: space-between; gap: 0.625rem; padding-top: 0.375rem; border-top: 1px solid var(--line); font-family: var(--display); font-size: clamp(1.125rem, 1.6vw, 1.375rem); letter-spacing: -.02em; }
.w-card-meta b { font-weight: var(--display-weight); }
.w-card-meta span { color: var(--muted); font-size: 0.8438rem; align-self: center; letter-spacing: 0; font-family: var(--sans); }
.w-card p { color: var(--muted); font-size: 0.9062rem; }
[data-type][hidden] { display: none !important; }
.pill-btn { position: relative; display: inline-flex; align-items: center; padding: 1.125rem 2rem; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; isolation: isolate; cursor: pointer; background: transparent; font-size: 1rem; }
.pill-btn::before { content: ""; position: absolute; inset: 0; background: var(--accent); translate: 0 101%; transition: translate 600ms var(--ease); z-index: -1; }
.pill-btn:hover::before, .pill-btn:focus-visible::before { translate: 0 0; }
.pill-btn:hover, .pill-btn:focus-visible { color: var(--accent-ink); border-color: var(--accent); }

/* ---------- experience ---------- */
.exp { padding: 0 0 clamp(5.625rem, 11vw, 9.375rem); }
.exp .eyebrow { margin: 0 var(--pad) 1.25rem; }
.exp-marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 1.625rem 0; }
.exp-marquee .track { display: flex; width: max-content; will-change: transform; }
.exp-marquee .half { display: flex; align-items: center; }
.exp-marquee .x { display: inline-flex; align-items: baseline; gap: 0.875rem; font-family: var(--display); font-size: clamp(1.375rem, 2.4vw, 2.125rem); letter-spacing: -.02em; white-space: nowrap; }
.exp-marquee .x span { color: var(--muted); font-size: .6em; letter-spacing: 0; }
.exp-marquee .x em { font-family: var(--serif); font-style: italic; color: var(--faint); font-size: .62em; }
.exp-marquee .sep { margin: 0 1.2em; width: .3em; height: .3em; }

/* ---------- about: the ID card ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6.25rem); align-items: center; padding: 0 var(--pad) clamp(6.25rem, 12vw, 10.625rem); overflow-x: clip; }   /* the swinging card never widens the page on a phone */
.about-text { position: relative; display: grid; gap: 1.25rem; }
.about-text h2 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(2.5rem, 5vw, 4.75rem); }
.about-text p { color: var(--muted); max-width: 35rem; }
.about-text .hi { color: var(--text); font-size: 1.25rem; }
.say { background: none; border: 0; padding: 0; cursor: help; border-bottom: 2px solid var(--accent); font-weight: 560; }
.bubble { position: absolute; left: 7.5rem; top: 4.375rem; background: var(--text); color: var(--bg); font-size: 0.9375rem; font-weight: 560; padding: 0.625rem 1rem; border-radius: 1rem; box-shadow: 0 0.75rem 1.875rem rgba(0, 0, 0, .3); animation: pop 380ms var(--ease); }
.bubble::after { content: ""; position: absolute; left: 1.375rem; bottom: -0.4375rem; width: 0.875rem; height: 0.875rem; background: var(--text); transform: rotate(45deg); border-radius: 2px; }
@keyframes pop { from { opacity: 0; transform: translateY(0.5rem) scale(.94); } }
.contact-card { position: relative; height: 37.5rem; touch-action: none; }
.strap { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.strap path { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; }
.strap-anchor { position: absolute; left: 50%; top: 0; width: 1.125rem; height: 1.125rem; border-radius: 50%; translate: -50% -50%; background: var(--surface-2); border: 3px solid var(--accent); }
.idcard { position: absolute; left: 0; top: 0; width: 15.625rem; height: 22.5rem; cursor: grab; transform-style: preserve-3d; perspective: 62.5rem; user-select: none; -webkit-user-select: none; }
.idcard:active { cursor: grabbing; }
.id-face { position: absolute; inset: 0; border-radius: 1rem; padding: 1rem; backface-visibility: hidden; background: linear-gradient(160deg, #222225, #141416); color: #F4F1EA; border: 1px solid rgba(244, 241, 234, .22); box-shadow: 0 1.875rem 3.75rem rgba(0, 0, 0, .4); display: flex; flex-direction: column; gap: 0.625rem; transition: transform 700ms var(--ease); }
.id-face::before { content: ""; position: absolute; left: 50%; top: 0.625rem; width: 2.875rem; height: 0.5rem; translate: -50% 0; border-radius: 0.25rem; background: rgba(0, 0, 0, .55); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.id-top { display: flex; justify-content: space-between; font-size: 0.8125rem; opacity: .7; padding-top: 0.75rem; }
.id-top b { font-weight: 650; }
.id-front img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 0.625rem; filter: grayscale(1) contrast(1.05); background: #1C1C1F; }
.id-name b { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.id-name span { opacity: .65; font-size: 0.8125rem; }
.id-bar { display: flex; gap: 0.5rem; align-items: center; font-size: 0.6875rem; letter-spacing: .14em; opacity: .75; }
.id-bar i { flex: 1; height: 0.375rem; border-radius: 3px; background: var(--accent); }
.id-back { transform: rotateY(180deg); justify-content: center; gap: 0.5rem; text-align: center; align-items: center; }
.id-back b { font-size: 1.375rem; }
.id-back span { opacity: .7; font-size: 0.8438rem; }
.id-back em { font-family: var(--serif); opacity: .55; font-size: 0.875rem; margin-top: 0.5rem; }
.id-qr { width: 7.5rem; height: 7.5rem; margin-top: 0.75rem; border-radius: 0.5rem; background: conic-gradient(from 90deg at 25% 25%, currentColor 25%, transparent 0) 0 0 / 1.25rem 1.25rem, conic-gradient(from 0deg at 75% 75%, currentColor 25%, transparent 0) 0.625rem 0.625rem / 1.25rem 1.25rem; opacity: .85; }
.idcard.flipped .id-front { transform: rotateY(180deg); }
.idcard.flipped .id-back { transform: rotateY(360deg); }
.card-hint { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; color: var(--faint); font-size: 0.8125rem; }

/* ---------- contact, shared ---------- */
.contact { padding: clamp(6.25rem, 11vw, 9.375rem) var(--pad) 4.375rem; background: var(--bg-2); border-radius: 2.25rem 2.25rem 0 0; }
.ct-dots::after { left: 72%; top: 62%; opacity: .8; }
.contact-left { display: grid; gap: 1.125rem; }
.contact-left h2 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(3.375rem, 7.4vw, 7.375rem); }
.contact-left h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--muted); }
.ct-line { position: relative; height: 1px; background: var(--line-2); margin: 5rem 0 4rem; }
.ct-line .circle { position: absolute; right: 8%; top: 50%; translate: 0 -50%; }
.ct-pills { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.circle { position: relative; display: grid; place-items: center; width: clamp(8.75rem, 12vw, 11.25rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; font-size: 1rem; isolation: isolate; background: var(--accent); color: var(--accent-ink); }
.circle::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--text); translate: 0 101%; transition: translate 700ms var(--ease); z-index: -1; }
.circle:hover::before, .circle:focus-visible::before { translate: 0 0; }
.circle:hover, .circle:focus-visible { color: var(--bg); }
.magnetic > span { display: inline-block; pointer-events: none; }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; gap: 1.75rem 3.75rem; padding: 1.875rem var(--pad) 2.625rem; background: var(--bg-2); font-size: 0.9062rem; }
.foot div { display: grid; gap: 0.375rem; }
.foot .lbl { color: var(--faint); font-size: 0.7188rem; letter-spacing: .14em; text-transform: uppercase; }
.foot-links { margin-left: auto; }
.foot .fl { display: flex; gap: 1.125rem; }
.foot a:hover { color: var(--accent); }
.foot .wm { flex-basis: 100%; margin-top: 0.75rem; font: 400 0.6562rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text); opacity: .2; user-select: none; }
/* a word left blank in the admin hides its line */
.wm:empty, .mx-by:empty, .mx-hint:empty, .card-hint:empty, .eyebrow:empty, .offer-label:empty, .demo:empty { display: none; }


/* ---------- the profile switch: a portal from the click (View Transitions) ---------- */
.switch-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1000; pointer-events: none; visibility: hidden; view-transition-name: switch-fx; }   /* hidden, never display none: the canvas keeps its GPU buffer between switches */
.switch-fx.on { visibility: visible; }
html.vt-portal::view-transition-old(root), html.vt-portal::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-portal::view-transition-old(profile-switch) { display: none; }
html.vt-portal::view-transition-group(profile-switch), html.vt-portal::view-transition-new(profile-switch) { animation: none; }
html.vt-portal::view-transition-group(switch-fx), html.vt-portal::view-transition-new(switch-fx), html.vt-portal::view-transition-old(switch-fx) { animation: none; }
html.vt-fade::view-transition-group(*), html.vt-fade::view-transition-old(*), html.vt-fade::view-transition-new(*) { animation-duration: 180ms; }

/* ---------- not found page ---------- */
.nf { min-height: 100svh; display: grid; align-content: center; gap: 1.375rem; padding: 8.75rem var(--pad) 5.625rem; }
.nf-report h1 { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(3.5rem, 9vw, 8.75rem); letter-spacing: -.05em; }
.nf-report h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--muted); }
.nf-report .pill-btn { justify-self: start; margin-top: 0.625rem; }

/* ---------- text morph (transitions.dev 33) ---------- */
.t-morph { white-space: nowrap; }
.t-morph-swap { display: inline-grid; vertical-align: bottom; justify-items: start; transition: width var(--text-morph-resize-dur) var(--text-morph-ease); }
.t-morph-swap > span { grid-area: 1 / 1; white-space: pre; transition: opacity var(--text-morph-dur) var(--text-morph-ease), filter var(--text-morph-dur) var(--text-morph-ease); }
.t-morph-new { opacity: 0; filter: blur(var(--text-morph-blur)); }
.t-morph-swap.is-morphing .t-morph-old { opacity: 0; filter: blur(var(--text-morph-blur)); }
.t-morph-swap.is-morphing .t-morph-new { opacity: 1; filter: blur(0); }

/* ---------- reveals: a soft rise in both looks ---------- */
html.js[data-look="report"] .rv { opacity: 0; transform: translateY(1.5rem); filter: blur(0.25rem); transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 700ms var(--ease); }
html.js[data-look="report"] .rv.in { opacity: 1; transform: none; filter: none; }

/* ---------- case pages ---------- */
.case-hero { padding: clamp(8.125rem, 14vw, 11.875rem) var(--pad) 3.125rem; display: grid; gap: 1.25rem; }
.back { justify-self: start; display: inline-block; padding: 0.625rem 1.125rem; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 0.9062rem; margin-bottom: 1.25rem; }
.back:hover { border-color: var(--accent); }
.case-hero h1 { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(3.5rem, 9vw, 8.75rem); letter-spacing: -.05em; }
.case-lede { color: var(--muted); font-size: clamp(1.1875rem, 1.7vw, 1.4375rem); max-width: 45rem; }
.case-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 1.625rem 0 0; }
.case-facts div { border-top: 1px solid var(--line); padding-top: 0.875rem; }
.case-facts dt { font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.case-facts dd { margin: 0.375rem 0 0; }
.case-facts a { border-bottom: 1px solid var(--accent); }
.case-cover { margin: 0 var(--pad); background: var(--mat, #2A2A2D); border-radius: var(--card-radius); display: grid; place-items: center; padding: clamp(1.75rem, 6vw, 5.625rem); }
.case-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; box-shadow: 0 1.875rem 3.75rem rgba(0, 0, 0, .4); }
.case-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.75rem); padding: clamp(4.375rem, 8vw, 6.875rem) var(--pad); }
.case-body h2 { font-size: 0.875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 0.75rem; }
.case-body p { color: var(--muted); font-size: 1.125rem; }
.case-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 1.125rem; padding: 0 var(--pad); }
.case-gallery .g-item:first-child { grid-row: span 2; }
.g-item { padding: 0; border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; background: none; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 800ms var(--ease); }
.g-item:hover img { transform: scale(1.03); }
.case-next { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0.625rem 1.5rem; margin: clamp(5rem, 10vw, 8.75rem) var(--pad) 0; padding: 2.5rem 0 clamp(5rem, 9vw, 7.5rem); border-top: 1px solid var(--line); }
.case-next span { grid-column: 1 / -1; color: var(--faint); font-size: 0.8125rem; letter-spacing: .14em; text-transform: uppercase; }
.case-next b { font-family: var(--display); font-size: clamp(2.5rem, 6vw, 6rem); font-weight: var(--display-weight); letter-spacing: -.045em; line-height: 1; transition: color 300ms ease; }
.case-next i { font-style: normal; font-size: clamp(2.25rem, 4.5vw, 4.5rem); color: var(--accent); transition: transform 500ms var(--ease); }
.case-next:hover b { color: var(--accent); }
.case-next:hover i { transform: translateX(0.75rem); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(87.5rem, 94vw); }
.lightbox::backdrop { background: rgba(10, 10, 11, .88); backdrop-filter: blur(0.25rem); }
.lightbox img { border-radius: 0.5rem; max-height: 88vh; width: auto; }
.lb-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(244, 241, 234, .3); background: rgba(15, 15, 16, .85); color: #F4F1EA; font-size: 1.375rem; cursor: pointer; }

/* ---------- the matrix look (builder): a monochrome LED dot matrix ---------- */
@font-face { font-family: "Geist Pixel Circle"; src: url("../assets/fonts/GeistPixel-Circle.woff2") format("woff2"); font-weight: 400; font-display: swap; }
html[data-look="matrix"] {
  --bg: #0A0A0A; --text: #EDEDED; --accent: #F2F2F2; --accent-ink: #0A0A0A; --rec: #E5212B;
  --display: "Geist Pixel Circle", var(--mono); --display-track: .01em; --display-weight: 400; --radius: 62.4375rem; --card-radius: 0.625rem;
  --grain-opacity: .03; color-scheme: dark;
  --mx-x: clamp(1.25rem, 4vw, 8.75rem);
}
html[data-look="matrix"] .eyebrow { font-family: var(--mono); font-weight: 400; font-size: 0.7188rem; }
html[data-look="matrix"] .switch { background: #111111; border: 1px solid #262626; }
html[data-look="matrix"] .nav.solid { background: color-mix(in srgb, var(--bg) 86%, transparent); }
html[data-look="matrix"] .nav-link::after { box-shadow: 0 0 0.375rem rgba(255, 255, 255, .6); }
html[data-look="matrix"] .sep { background: var(--text); }
.rec i { display: inline-block; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--rec, #E5212B); box-shadow: 0 0 0.625rem var(--rec, #E5212B); animation: rec 2.4s steps(1) infinite; }
@keyframes rec { 50% { opacity: .25; } }
html.still .rec i { animation-play-state: paused; }

/* hero: the dot display and the halftone are drawn on .mx-field; everything you read is real text */
.hero-matrix { position: relative; overflow: hidden; min-height: 100svh; }
.mx-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mx-src { display: none; }
.mx-top { position: absolute; z-index: 2; left: var(--mx-x); right: var(--mx-x); top: 6rem; display: flex; flex-wrap: wrap; gap: 0.625rem 1.375rem; align-items: center; font: 400 0.7188rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mx-top .rec { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); }
.mx-top .r { margin-left: auto; } .mx-top b { color: var(--text); font-weight: 400; }
/* the script sets --below under the dot display; until then the same formula in CSS (no jump when it runs) */
.mx-copy { position: absolute; z-index: 2; left: var(--mx-x); top: var(--below, calc(max(25svh, 8.125rem) + 9.2 * min(1.1875rem, 0.9836vw))); width: min(56%, 60rem); display: grid; gap: 1.125rem; }
@media (max-width: 900px) { .mx-copy { top: var(--below, calc(max(20svh, 8.125rem) + 9.2 * min(0.6875rem, 1.4754vw))); } }
.mx-by { font: 400 0.7188rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mx-role { font: 400 clamp(1.125rem, 1.5vw, 2rem)/1.35 var(--sans); letter-spacing: -.01em; }
.mx-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mx-tags span { font: 400 0.75rem/1 var(--mono); padding: 0.5rem 0.6875rem; border-radius: 62.4375rem; border: 1px dotted color-mix(in srgb, var(--text) 45%, transparent); color: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.mx-cta { display: flex; gap: 0.75rem; margin-top: 0.375rem; flex-wrap: wrap; align-items: center; }
.mx-btn { display: inline-flex; padding: 0.8125rem 1.25rem; border-radius: 62.4375rem; font: 500 0.875rem/1 var(--sans); border: 1px solid color-mix(in srgb, var(--text) 30%, transparent); transition: border-color 160ms ease, background-color 160ms ease; }
.mx-btn.solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.mx-btn.solid:hover { background: #FFFFFF; }
.mx-btn:not(.solid):hover { border-color: var(--text); }
.mx-spec { position: absolute; z-index: 2; left: var(--mx-x); right: var(--mx-x); bottom: 2.625rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font: 400 0.7188rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mx-spec b { color: var(--text); font-weight: 400; }
@media (hover: none), (pointer: coarse) { .mx-hint { display: none; } }

/* what I build: dot icons, sans headings */
.o-ico { display: grid; grid-template-columns: repeat(9, 0.5rem); gap: 0.25rem; width: max-content; margin-bottom: 0.5rem; }
.o-ico i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: color-mix(in srgb, var(--text) 10%, transparent); }
.o-ico i.on { background: var(--text); box-shadow: 0 0 0.375rem rgba(255, 255, 255, .25); }
html[data-look="matrix"] .o-link { grid-template-rows: auto auto auto 1fr auto; }
html[data-look="matrix"] .o-link h3 { font-weight: 600; }
html[data-look="matrix"] .intro-big { max-width: 24ch; font-size: clamp(1.75rem, 3.2vw, 4.375rem); line-height: 1.15; }

/* work: a dot heading, LED chips, sans titles, the floating preview is a halftone */
html[data-look="matrix"] .work-head h2 { font: 400 clamp(2.25rem, 3.6vw, 4.625rem)/1 var(--display); letter-spacing: .01em; text-transform: none; color: var(--text); }
html[data-look="matrix"] .chip { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.75rem; }
html[data-look="matrix"] .chip::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--faint); }
html[data-look="matrix"] .chip.on { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 40%, transparent); }
html[data-look="matrix"] .chip.on::before { background: var(--text); box-shadow: 0 0 0.375rem rgba(255, 255, 255, .6); }
html[data-look="matrix"] .w-title, html[data-look="matrix"] .w-card-meta, html[data-look="matrix"] .w-card-meta b { font-family: var(--sans); font-weight: 500; letter-spacing: -.015em; }
html[data-look="matrix"] .w-no, html[data-look="matrix"] .w-type, html[data-look="matrix"] .w-year { font-family: var(--mono); font-size: 0.7812rem; }
html[data-look="matrix"] .w-row a { transition: padding 220ms var(--ease-s), background-color 220ms ease; }
@media (hover: hover) and (pointer: fine) {
  html[data-look="matrix"] .w-row a:hover { padding-left: 1.875rem; background: rgba(255, 255, 255, .025); }
}
.w-float-dots { display: none; }
html[data-look="matrix"] .w-float { width: clamp(16.25rem, 24vw, 30rem); aspect-ratio: 16 / 10; }
html[data-look="matrix"] .w-float-mat { position: relative; display: block; background: #000000; border: 1px solid #2A2A2A; box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .55); }
html[data-look="matrix"] .w-float-mat img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top; box-shadow: none; }
html[data-look="matrix"] .w-float-dots { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
html[data-look="matrix"] .w-float-mat.pre img { opacity: 0; }
html[data-look="matrix"] .w-float-mat.dev img { animation: mx-develop 620ms var(--ease-s) 90ms both; }
html[data-look="matrix"] .w-float-mat.dev .w-float-dots { animation: mx-dots-out 620ms var(--ease-s) both; }
@keyframes mx-develop { from { opacity: 0; filter: grayscale(1) contrast(1.25) brightness(.8); } 55% { opacity: 1; } to { opacity: 1; filter: none; } }
@keyframes mx-dots-out { 0%, 18% { opacity: 1; } to { opacity: 0; } }
html[data-look="matrix"] .w-view { background: var(--text); color: var(--bg); }
html[data-look="matrix"] .w-mat { position: relative; background: #111111; }
html[data-look="matrix"] .w-mat img { box-shadow: 0 1rem 2rem rgba(0, 0, 0, .45); }

/* about: the ID card turns into an operator card, a dot marquee on top and the real black and white photo */
.id-mq { display: none; }
html[data-look="matrix"] .id-face { background: #111111; border-color: #262626; }
html[data-look="matrix"] .id-top { position: relative; height: 2.125rem; padding: 0; margin-top: 1rem; border-radius: 0.375rem; background: #050505; border: 1px solid #1C1C1C; overflow: hidden; opacity: 1; }
html[data-look="matrix"] .id-top b, html[data-look="matrix"] .id-top span { display: none; }
html[data-look="matrix"] .id-mq { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
html[data-look="matrix"] .id-front img { background: #050505; filter: contrast(1.04); }
html[data-look="matrix"] .id-bar i { background: radial-gradient(circle, var(--text) 1.6px, transparent 2px) 0 50% / 0.375rem 0.375rem repeat-x; }
html[data-look="matrix"] .id-name b { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
html[data-look="matrix"] .about-text h2 { font-size: clamp(2.25rem, 4.2vw, 5rem); letter-spacing: .01em; line-height: 1.04; }

/* contact: a dot ticker across the page, then the contact sheet */
html[data-look="matrix"] .contact { background: var(--bg); border-radius: 0; padding-top: clamp(3.125rem, 6vw, 6.25rem); }
.ct-matrix { display: block; }
.mx-ticker { height: 7.5rem; margin: 0 calc(-1 * var(--pad)) clamp(3rem, 6vw, 5.625rem); border-block: 1px solid var(--line); }
.mx-tick { display: block; width: 100%; height: 100%; }
.ct-m { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6.875rem); align-items: center; }
.ct-matrix .ct-left h2 { font-size: clamp(2.5rem, 4.6vw, 5.5rem); line-height: 1.02; letter-spacing: .01em; }
.mx-sheet { margin: 0; border: 1px solid #262626; border-radius: 0.875rem; background: #111111; overflow: hidden; }
.mx-row { display: grid; grid-template-columns: 8.125rem 1fr; gap: 1rem; padding: 0.9375rem 1.25rem; border-bottom: 1px solid #1C1C1C; align-items: baseline; }
.mx-row dt { font: 400 0.6562rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mx-row dd { margin: 0; text-align: right; font: 400 0.9062rem/1.35 var(--mono); }
.mx-row a, .mx-row .lg-copy { color: var(--text); }
.mx-row a:hover, .mx-row .lg-copy:hover { color: var(--text); text-decoration: underline dotted; text-underline-offset: .25em; }
.mx-act dd { margin: 0; }
.mx-send { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 1.1875rem 1.25rem; background: var(--text); color: var(--bg); font: 600 0.9375rem/1 var(--sans); overflow: hidden; isolation: isolate; }
/* hover lights a dot pattern across the strip, left to right */
.mx-send::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle, rgba(10, 10, 10, .22) 2px, transparent 2.3px) 0 0 / 0.5625rem 0.5625rem, #FFFFFF; transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-s); }
.mx-send:hover::before, .mx-send:focus-visible::before { transform: scaleX(1); }
.mx-send i { font-style: normal; transition: translate 200ms var(--ease-s); }
.mx-send:hover i { translate: 0.25rem 0; }
html[data-look="matrix"] .foot { background: var(--bg); border-top: 1px solid var(--line); }

/* case pages and the not found page */
html[data-look="matrix"] .case-hero h1 { font-size: clamp(2.5rem, 6.4vw, 7.5rem); letter-spacing: .01em; line-height: 1.02; }
html[data-look="matrix"] .case-body h2 { color: var(--text); font-family: var(--mono); font-weight: 400; }
html[data-look="matrix"] .case-cover { background: #111111; }
html[data-look="matrix"] .case-next b { letter-spacing: .01em; }
html[data-look="matrix"] .case-next i { color: var(--text); }
html[data-look="matrix"] .repo-btn:hover, html[data-look="matrix"] .repo-btn:focus-visible { background: #FFFFFF; color: var(--bg); }
.nf-matrix { justify-items: start; }
.nf-matrix .mx-404 { display: block; width: min(35rem, 80vw); aspect-ratio: 25 / 9; height: auto; }
.nf-matrix h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 6vw, 6rem); letter-spacing: .01em; }
.nf-matrix .mx-btn { margin-top: 0.625rem; }
html.js[data-look="matrix"] .rv { opacity: 0; transform: translateY(1rem); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.js[data-look="matrix"] .rv.in { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .mx-top { font-size: 0.6562rem; }
  .mx-copy { width: auto; right: var(--mx-x); }
  .mx-spec { display: grid; grid-template-columns: 1fr 1fr; }
  .ct-m { grid-template-columns: 1fr; }
  .mx-ticker { height: 5.25rem; }
  .mx-row { grid-template-columns: 1fr; gap: 0.375rem; } .mx-row dd { text-align: left; }
}

/* ---------- template files on GitHub ---------- */
.gh { display: inline-block; width: .5em; height: .5em; min-width: 0.8125rem; min-height: 0.8125rem; margin-left: .35em; vertical-align: .25em; fill: currentColor; opacity: .45; }
.w-card-meta .gh { width: 0.875rem; height: 0.875rem; vertical-align: -1px; }
.repo-btn { justify-self: start; display: inline-flex; margin-top: 0.375rem; padding: 0.875rem 1.375rem; border-radius: var(--radius); background: var(--text); color: var(--bg); font-size: 0.9688rem; font-weight: 560; transition: background-color 250ms ease, color 250ms ease; }
.repo-btn > span { display: inline-flex; align-items: center; gap: 0.625rem; }
.repo-btn .gh { margin: 0; width: 1.125rem; height: 1.125rem; opacity: 1; vertical-align: 0; }
.repo-btn i { font-style: normal; transition: transform 400ms var(--ease); }
.repo-btn:hover, .repo-btn:focus-visible { background: var(--accent); color: var(--accent-ink); }
.repo-btn:hover i { transform: translate(3px, -3px); }

/* ---------- the disclaimer (both looks) ---------- */
.disclaimer { display: flex; gap: 0.75rem; align-items: flex-start; max-width: 47.5rem; margin-top: clamp(1.625rem, 3vw, 2.5rem); color: var(--muted); font-size: 0.8438rem; line-height: 1.55; }
.case-hero .disclaimer { margin-top: 0.375rem; }
.d-i { flex: none; display: grid; place-items: center; width: 1.1875rem; height: 1.1875rem; margin-top: 1px; border-radius: 50%; border: 1px solid var(--line-2); font: 600 0.6875rem/1 var(--mono); color: var(--muted); }

/* ---------- report: the dot field ---------- */
.js .hero-bg { background: none; }
.dot-field { position: absolute; inset: 0; width: 100%; height: 100%; }


/* ---------- what I do: the statement lights up as you scroll, then the work at a glance ---------- */
.intro-head { display: flex; align-items: baseline; gap: 0.75rem; }
.intro-count { font: 500 0.75rem/1 var(--mono); letter-spacing: .08em; color: var(--faint); }
.intro-big .w { transition: opacity 90ms linear; }
.offer-wrap { margin-top: clamp(3rem, 7vw, 6rem); display: grid; gap: 1.125rem; }
.offer-label { font: 500 0.7188rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.offer { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: clamp(1.125rem, 2.4vw, 2rem); }
.o-item { display: grid; }
.o-link { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.75rem; padding: 1.375rem 0 0.25rem; color: inherit; }
.o-link::before, .o-link::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-2); }
.o-link::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease); }
a.o-link:hover::after, a.o-link:focus-visible::after { transform: scaleX(1); }
.o-cat { font: 500 0.7188rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.o-link h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
.o-link p { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; max-width: 34ch; }
.o-go { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.375rem; font-size: 0.875rem; color: var(--text); }
.o-go i { font-style: normal; display: inline-block; transition: transform 400ms var(--ease); }
a.o-link:hover .o-go { color: var(--accent); }
a.o-link:hover .o-go i { transform: translateX(0.3125rem); }

/* ---------- contact: report gets a close with a ledger; the matrix look has a dot ticker and a contact sheet ---------- */
.contact { position: relative; overflow: hidden; }
.ct-v { position: relative; display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ct-report { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2.25rem, 6vw, 6.25rem); }
.ct-report > :not(.ct-dots) { position: relative; z-index: 1; }
.ct-dots { position: absolute; inset: calc(-1 * clamp(6.25rem, 11vw, 9.375rem)) calc(-1 * var(--pad)) -4.375rem; z-index: 0; }
.ct-left { display: grid; gap: 1.375rem; justify-items: start; }
.ct-left h2 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(3.375rem, 7.2vw, 7.25rem); line-height: .98; }
.ct-left h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--muted); }
.ct-sub { color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); max-width: 27.5rem; }
.ct-left .circle { margin-top: 1.125rem; }
.ledger { margin: 0; padding: 1.5rem 1.75rem 1.375rem; background: color-mix(in srgb, var(--bg-2) 78%, transparent); border: 1px solid var(--line-2); border-radius: 1.25rem;
  -webkit-backdrop-filter: blur(0.5rem); backdrop-filter: blur(0.5rem); font-variant-numeric: tabular-nums; box-shadow: 0 1.875rem 3.75rem rgba(0, 0, 0, .25); }
.lg-head { display: flex; justify-content: space-between; gap: 0.75rem; padding-bottom: 0.875rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--line-2); font: 500 0.7188rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.lg-row { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.875rem 0; }
.lg-row dt { flex: 1; display: flex; align-items: baseline; gap: 0.75rem; color: var(--muted); font-size: 0.9062rem; white-space: nowrap; transition: color 200ms ease; }
.lg-row dt::after { content: ""; flex: 1; min-width: 1.5rem; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); transition: border-color 200ms ease; }
.lg-row dd { margin: 0; text-align: right; font-size: 0.9688rem; }
.lg-row a, .lg-copy { color: var(--text); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; transition: color 160ms ease; }
.lg-row a:hover, .lg-copy:hover { color: var(--accent); }
.lg-row:not(.lg-total):hover dt { color: var(--text); }
.lg-row:not(.lg-total):hover dt::after { border-bottom-color: var(--accent); }
.lg-total { margin-top: 0.5rem; padding-top: 1.125rem; border-top: 1px solid var(--line-2); }
.lg-total dt { color: var(--text); font-weight: 560; }
.lg-total dd { font-family: var(--serif); font-style: italic; font-size: 1.3125rem; padding-bottom: 3px; border-bottom: 3px double var(--accent); }
.lg-act { margin: 1.375rem -28px -22px; }
.lg-act dd { margin: 0; }
/* the action: a solid strip across the foot of the sheet, like the pay line on an invoice */
.lg-action { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1.25rem 1.75rem; overflow: hidden; isolation: isolate;
  background: var(--accent); color: var(--accent-ink); border-radius: 0 0 1.1875rem 1.1875rem; font-size: 1.0625rem; font-weight: 560; letter-spacing: -.01em; }
.lg-action::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); transform: translateY(101%); transition: transform 520ms var(--ease); }
.lg-action i { display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: 50%; background: var(--accent-ink); color: var(--accent); font-style: normal; font-size: 1rem; transition: transform 420ms var(--ease), background-color 300ms ease, color 300ms ease; }
.lg-action:hover::before, .lg-action:focus-visible::before { transform: none; }
.lg-action:hover, .lg-action:focus-visible { color: var(--bg); }
.lg-action:hover i, .lg-action:focus-visible i { transform: translateX(0.25rem) rotate(-45deg); background: var(--accent); color: var(--accent-ink); }
.lg-action:active { transform: scale(.99); }

/* ---------- welcome: once per visit, in the look of the profile you arrive on ---------- */
.welcome { display: none; }
html.welcoming .welcome { display: block; position: fixed; inset: 0; z-index: 2000; cursor: pointer; animation: wl-failsafe 0s linear 6.5s forwards; }
html.welcoming body { overflow: hidden; }
@keyframes wl-failsafe { to { visibility: hidden; pointer-events: none; } }
.wl { position: absolute; inset: 0; display: none; }
html[data-look="report"] .wl-report, html[data-look="matrix"] .wl-matrix { display: block; }
.wl-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 1.5rem; }
/* report: grid ignition. Until the canvas draws, the cover is the page's own dot pattern on the same grid */
.wl-report { background: radial-gradient(color-mix(in srgb, var(--text) 17%, transparent) 1.15px, transparent 1.5px) 0 0 / 26px 26px, var(--bg); }
.wl-report.live { background: none; }
.wl-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
/* matrix: scattered dots settle into the brand on a dot display, then the page */
.wl-matrix { background: var(--bg); }
.wl-dots { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 900px) {
  .offer { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .ct-report { grid-template-columns: 1fr; }
  .ledger { padding: 1.25rem 1.25rem 1.125rem; }
  .lg-act { margin: 1.125rem -20px -18px; } .lg-action { padding: 1rem 1.25rem; }
}
@media (max-width: 600px) {
  .offer { grid-template-columns: 1fr; }
  .lg-row { flex-wrap: wrap; } .lg-row dt { white-space: normal; }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr; padding: 1rem 1.125rem; column-gap: 0.75rem; }
  .nav.solid { padding-block: 0.625rem; }
  main section[id] { scroll-margin-top: 5.5rem; }
  .nav-side { display: none; }
  .nav .switch { grid-column: 1; grid-row: 1; justify-self: start; }
  .nav nav { grid-column: 2; grid-row: 1; } .nav-link { padding: 0.5rem 0.4375rem; font-size: 0.875rem; }
  .sw-opt { min-width: 5.25rem; padding: 0.4375rem 0.75rem; }
  .hero-photo { height: 72svh; }
  .hero-badge { top: auto; bottom: calc(clamp(1.5rem, 5svh, 3.5rem) + 26vw); padding: 0.875rem 1rem 0.875rem 1.25rem; font-size: 0.875rem; gap: 0.875rem; }
  .globe { width: 3rem; height: 3rem; } .globe svg { width: 1.625rem; height: 1.625rem; }
  .hero-role { top: 8.125rem; right: 1.25rem; max-width: 12.5rem; } .hero-role p { font-size: 1.125rem; }
  .about, .contact { grid-template-columns: 1fr; }
  .w-labels { display: none; }
  .w-row a { grid-template-columns: auto 1fr auto; gap: 0.375rem 0.75rem; padding: 1.375rem 0.25rem; }
  .w-no { grid-row: 1; grid-column: 1; } .w-title { grid-row: 1; grid-column: 2; } .w-year { grid-row: 1; grid-column: 3; }
  .w-type { grid-row: 2; grid-column: 2; }
  .w-thumb { display: block; grid-column: 1 / -1; grid-row: 3; margin-top: 0.625rem; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 0.25rem; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { height: 37.5rem; }
  .case-facts { grid-template-columns: 1fr 1fr; } .case-body { grid-template-columns: 1fr; } .case-gallery { grid-template-columns: 1fr; } .case-gallery .g-item:first-child { grid-row: auto; }
  .foot-links { margin-left: 0; }
}
@media (hover: none) { .w-float, .w-view { display: none; } }
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; } .w-thumb { max-height: 15rem; }
}
@media (max-width: 400px) {
  .nav { padding-inline: 0.75rem; column-gap: 0.375rem; }
  .sw-opt { min-width: 0; padding-inline: 0.625rem; font-size: 0.8125rem; }
  .nav-link { padding-inline: 0.3125rem; font-size: 0.8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .globe-spin, .grain, .hero-bg::after, .rec i { animation: none; }
  html[data-look="matrix"] .w-float-mat.dev img, html[data-look="matrix"] .w-float-mat.dev .w-float-dots { animation: none; }
  .nav, .rv, .w-title, .w-type, .w-year, .circle::before, .pill-btn::before, .w-float, .w-view, .id-face, .g-item img, .w-mat img, .w-card, .sw-thumb, .t-morph-swap, .t-morph-swap > span, .nav-link::after { transition: none !important; }
  html.js .rv { opacity: 1; transform: none; filter: none; clip-path: none; }
}

/* ---------- footer: the legal row ---------- */
.foot-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.8438rem; }
.foot-legal a, .foot-legal button { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; transition: color 150ms ease; }
.foot-legal a:hover, .foot-legal button:hover { color: var(--text); }
html[data-look="matrix"] .foot-legal { font: 400 0.7188rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- the privacy banner: a small card in the corner, never in the way ---------- */
.consent { position: fixed; left: clamp(0.75rem, 2vw, 1.5rem); bottom: clamp(0.75rem, 2vw, 1.5rem); z-index: 900; width: min(27rem, calc(100vw - 1.5rem)); gap: 0.875rem; padding: 1.125rem 1.25rem; border-radius: 1rem;
  background: color-mix(in srgb, var(--bg) 88%, var(--text)); border: 1px solid var(--line-2); box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .45); font-size: 0.9062rem; line-height: 1.5; }
/* the first script adds html.ask when no choice is stored, so the banner is there from the first paint */
.consent[hidden] { display: none; }
html.ask .consent[hidden] { display: grid; }
.cs-acts { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
.cs-btn { padding: 0.5625rem 0.9375rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: none; color: var(--text); cursor: pointer; font-size: 0.8438rem; transition: border-color 150ms ease, background-color 150ms ease, transform 120ms var(--ease-s); }
.cs-btn:hover { border-color: var(--text); }
.cs-btn:active { transform: scale(.97); }
.cs-all { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 560; }
.cs-acts a { color: var(--muted); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: .2em; }
html[data-look="matrix"] .consent { background: #111111; border-color: #262626; border-radius: 0.875rem; }
html[data-look="matrix"] .cs-all { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- the contact form, both looks ---------- */
.cform { position: relative; z-index: 1; display: grid; gap: 1.125rem; max-width: 52rem; margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line-2); }
.cf-title { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(1.625rem, 2.6vw, 2.5rem); line-height: 1.05; }
.cf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem; }
.cf-field { display: grid; gap: 0.5rem; align-content: start; }
.cf-l { font-size: 0.8125rem; color: var(--muted); }
.cf-field input, .cf-field textarea { width: 100%; padding: 0.875rem 1rem; border-radius: 0.75rem; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 92%, var(--text)); color: var(--text); font: inherit; font-size: 1rem; line-height: 1.5; transition: border-color 150ms ease, box-shadow 150ms ease; }
.cf-field textarea { resize: vertical; min-height: 8.5rem; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.cf-field [aria-invalid="true"] { border-color: #FF6B5A; }
.cf-err { font-size: 0.8125rem; color: #FF8A7A; }
.cf-err:empty { display: none; }
.cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-foot { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.cf-send { display: inline-flex; align-items: center; padding: 0.9375rem 1.625rem; border-radius: var(--radius); border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 560; cursor: pointer; transition: transform 120ms var(--ease-s), background-color 160ms ease, color 160ms ease, opacity 160ms ease; }
.cf-send:hover { background: var(--text); color: var(--bg); }
.cf-send:active { transform: scale(.97); }
.cf-send:disabled { opacity: .6; cursor: progress; }
.cf-note { color: var(--faint); font-size: 0.8125rem; }
.cf-note a { color: var(--muted); text-decoration: underline; text-underline-offset: .2em; }
.cf-status { min-height: 1.4em; font-size: 0.9375rem; color: var(--muted); }
.cf-status[data-state="ok"] { color: var(--text); }
.cf-status[data-state="err"] { color: #FF8A7A; }
html[data-look="matrix"] .cform { border-top-color: var(--line); }
html[data-look="matrix"] .cf-l { font: 400 0.6875rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
html[data-look="matrix"] .cf-field input, html[data-look="matrix"] .cf-field textarea { background: #050505; border-color: #262626; border-radius: 0.625rem; }
html[data-look="matrix"] .cf-field input:focus, html[data-look="matrix"] .cf-field textarea:focus { border-color: rgba(237, 237, 237, .6); box-shadow: 0 0 0 3px rgba(255, 255, 255, .07); }
html[data-look="matrix"] .cf-send { background: var(--text); color: var(--bg); }
html[data-look="matrix"] .cf-send:hover { background: #FFFFFF; }
@media (max-width: 700px) { .cf-row { grid-template-columns: 1fr; } }

/* ---------- privacy and terms pages ---------- */
.legal { display: grid; gap: 1.25rem; max-width: 48rem; padding: clamp(8.5rem, 14vw, 11.5rem) var(--pad) clamp(5rem, 9vw, 8rem); }
.legal h1 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 1; }
.legal-date { color: var(--faint); font-size: 0.875rem; }
.legal-intro { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.5; }
.lg-sec { display: grid; gap: 0.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.lg-sec h2 { font-size: 1.1875rem; letter-spacing: -.01em; font-weight: 560; line-height: 1.3; }
.lg-sec p { color: var(--muted); font-size: 1.0313rem; line-height: 1.65; }
html[data-look="matrix"] .legal h1 { font-size: clamp(2.5rem, 5.4vw, 5rem); letter-spacing: .01em; }
html[data-look="matrix"] .legal-date { font-family: var(--mono); font-size: 0.8125rem; }
html[data-look="matrix"] .lg-sec h2 { font: 400 0.8125rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .consent, .cs-btn, .cf-send { transition: none !important; } }

/* ---------- phones and touch screens: labels 12px or more, links at least 44px tall to tap (the look stays the same) ---------- */
@media (max-width: 900px) {
  .demo, .foot .lbl, .foot .wm, .mb-t, .offer-label, .o-cat, .id-bar, .mx-by, .mx-top, .mx-spec, .mx-row dt, html[data-look="matrix"] .eyebrow, html[data-look="matrix"] .foot-legal, html[data-look="matrix"] .cf-l { font-size: 0.75rem; }
  .chip sup { font-size: 0.6875rem; }
  .hero-matrix { min-height: max(100svh, 52rem); }   /* short phones: room for the dot portrait between the words and the spec line */
}
@media (pointer: coarse) {
  .foot .fl a, .foot-legal a, .foot-legal button, .lg-row dd a, .lg-copy, .mx-row dd a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; }
}
