/* =========================================================
   Ayokunle Oriolowo — portfolio
   One colour system (two modes), one type system, one motion language.
   ========================================================= */

@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("/fonts/big-shoulders-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- colour roles ----------
   Layers step up by small amounts. Raised layers are lighter in BOTH modes,
   so the layout reads the same when you switch. */
:root, :root[data-theme="light"] {
  --page: rgb(243 243 241);
  --panel: rgb(236 236 233);
  --card: rgb(250 250 248);
  --card-hover: rgb(255 255 255);
  --tile: rgb(228 228 225);
  --line: rgba(20 20 20 / .10);
  --line-strong: rgba(20 20 20 / .22);
  --ink: rgb(20 20 20);
  --ink-2: rgb(94 94 94);
  --ink-3: rgb(106 106 103);
  --ink-hover: rgb(52 52 50);
  --deep: rgb(22 22 21);          /* closing section + footer: always dark */
  --on-deep: rgb(237 237 234);
  --on-deep-2: rgb(160 160 156);
  --deep-line: rgba(255 255 255 / .10);
  --highlight: rgb(255 255 255);  /* one step from the panel it sits on */
  --shadow: 0 1px 2px rgba(0 0 0 / .06), 0 10px 28px rgba(0 0 0 / .06);
  --header: rgba(243 243 241 / .86);
  --accent: rgb(237 112 84);
  --accent-hover: rgb(226 97 68);
  --on-accent: rgb(20 20 20);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: rgb(8 8 8);
  --panel: rgb(15 15 15);
  --card: rgb(22 22 22);
  --card-hover: rgb(30 30 30);
  --tile: rgb(36 36 36);
  --line: rgba(255 255 255 / .08);
  --line-strong: rgba(255 255 255 / .18);
  --ink: rgb(237 237 234);
  --ink-2: rgb(160 160 156);
  --ink-3: rgb(140 140 136);
  --ink-hover: rgb(255 255 255);
  --deep: rgb(18 18 18);
  --on-deep: rgb(237 237 234);
  --on-deep-2: rgb(160 160 156);
  --deep-line: rgba(255 255 255 / .09);
  --highlight: rgb(44 44 44);
  --shadow: none;
  --header: rgba(8 8 8 / .82);
  color-scheme: dark;
}

:root {
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --display: "Big Shoulders", "Geist", sans-serif;
  --gutter: clamp(18px, 3.6vw, 56px);
  --max: 1520px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 14px;
  --S: clamp(64px, 8vw, 120px);   /* visible gap between sections */
  --s2: clamp(32px, 4vw, 56px);   /* gap between parts of one section */
}

*, *::before, *::after { box-sizing: border-box; }
/* no grey/blue flash on tap (Android Chrome); buttons and rows have their own pressed states */
html { -webkit-tap-highlight-color: transparent; }
a, button, label, [role="tab"] { -webkit-tap-highlight-color: transparent; }
.row-wrap:active .row, .post:active, .svc-row:active, .ct-mail a:active { opacity: .7; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

html.theme-anim, html.theme-anim *, html.theme-anim *::before {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease !important;
}

/* ---------- type ---------- */
.mono, .label, .nav a, .theme, .clock, .meta, .foot-strip, .row-meta, .p-facts dt { font-family: var(--mono); }
.label { font-size: 13px; letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; }
.h-section { font-weight: 600; letter-spacing: -.03em; line-height: 1; font-size: clamp(28px, 3.4vw, 50px); margin: 0; text-transform: uppercase; }
.h-title { font-weight: 600; letter-spacing: -.035em; line-height: .95; font-size: clamp(38px, 5.4vw, 80px); margin: 0; text-transform: uppercase; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.35; letter-spacing: -.015em; color: var(--ink); margin: 0; }
.body { color: var(--ink-2); max-width: 58ch; }
.num { font-weight: 200; letter-spacing: -.06em; line-height: .8; font-variant-numeric: tabular-nums; }

/* ---------- buttons (one system) ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 22px 0 24px;
  border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 500; letter-spacing: .01em;
  font-family: var(--sans); font-size: 14px; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .15s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--page); }
.btn-primary:hover { background: var(--ink-hover); }
.on-deep .btn-primary { background: var(--on-deep); color: var(--deep); }
.on-deep .btn-primary:hover { background: #fff; }
.btn-secondary { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--card-hover); }
.on-deep .btn-secondary { border-color: var(--deep-line); color: var(--on-deep); }
.on-deep .btn-secondary:hover { background: rgba(255 255 255 / .06); }
.btn-text { padding: 0; height: auto; color: var(--ink); }
.btn-text span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.btn-text:hover span { background-size: 100% 1px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--header); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); transition: transform .5s var(--ease); }
.site-header.hide { transform: translateY(calc(-100% - 1px)); }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -.04em; justify-self: start; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav a { position: relative; font-size: 14px; color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.tools-r { justify-self: end; display: flex; align-items: center; gap: 22px; }
.clock { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.clock b { color: var(--ink); font-weight: 500; }
.theme { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.theme button { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink-3); transition: color .3s; }
.theme button[aria-pressed="true"] { color: var(--ink); }
.theme .sl { opacity: .6; }

/* ---------- loader (first visit only) ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--page); display: none; }
html.loading .loader { display: block; }
.loader .bar { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line); }
.loader .fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .25s linear; }
.loader .ld-row { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(50% + 16px); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--ink-2); }
.loader.out { transform: translateY(-100%); transition: transform .9s cubic-bezier(.77, 0, .18, 1); }

/* ---------- motion language ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.lines .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lines .ln > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.lines.in .ln > span { transform: none; }
.lines.in .ln:nth-child(2) > span { transition-delay: .08s; }
.lines.in .ln:nth-child(3) > span { transition-delay: .16s; }
.lines.in .ln:nth-child(4) > span { transition-delay: .24s; }
html:not(.js) .reveal, html:not(.js) .lines .ln > span { opacity: 1; transform: none; }
html.loading .reveal, html.loading .lines .ln > span { transition: none; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding-block: var(--S); }
/* two neighbours on the same background share one gap, not two */
.sec:not(.panel) + .sec:not(.panel) { padding-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 3.6vw, 52px); flex-wrap: wrap; }
.panel { background: var(--panel); }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; overflow: hidden; }
.hero-in { position: relative; display: grid; justify-items: center; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(64px, min(12vw, 17vh), 180px); line-height: .88; letter-spacing: -.005em; }
.hero h1 .ln { white-space: nowrap; }
.hero-in a { pointer-events: auto; }
.hero h1 { text-shadow: 0 0 40px var(--page), 0 0 12px var(--page); }
.hero p { margin: 0; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.45; max-width: 36ch; }
/* hero: images arrive scattered, then settle into one ordered row */
.hero { height: calc(100svh - 72px); min-height: 620px; display: flex; flex-direction: column; justify-content: flex-end; gap: 0; padding-block: clamp(40px, 7vh, 96px) 0; }
.hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: clamp(16px, 2.6vh, 28px); padding-inline: var(--gutter); }
.strip { --h: clamp(120px, min(15vw, 22vh), 290px); position: relative; z-index: 1; width: 100%; height: var(--h); margin-top: calc(-1 * var(--lift, 0px)); margin-bottom: var(--dip, 120px); }
.track { display: flex; gap: clamp(10px, 1.2vw, 18px); width: max-content; height: 100%; }
.sc { height: 100%; aspect-ratio: var(--ar); flex: none; border-radius: 12px; overflow: hidden; background: var(--tile); }
.sc img { width: 100%; height: 100%; object-fit: cover; }
.strip { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.strip.grabbing { cursor: grabbing; }
.track { will-change: transform; }
.sc { transform-origin: 50% 50%; transition: transform .6s var(--ease), opacity .5s ease, box-shadow .6s var(--ease); }
.sc img { pointer-events: none; -webkit-user-drag: none; }
@media (hover: hover) {
  .strip:not(.grabbing) .track:hover .sc { opacity: .45; }
  .strip:not(.grabbing) .track .sc:hover { opacity: 1; transform: translateY(-10px) scale(1.06); box-shadow: 0 18px 40px rgba(0 0 0 / .18); z-index: 2; position: relative; }
}
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; }
.trail { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.trail img { position: absolute; width: clamp(150px, 15vw, 240px); aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: opacity .5s ease, transform .7s var(--ease); }
.trail img.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.trail img.off { opacity: 0; transform: translate(-50%, -50%) scale(.85); }

/* ---------- statement ---------- */
.statement { padding-block: var(--S); text-align: center; overflow: clip; }
.drift { margin: 0; font-weight: 600; text-transform: uppercase; letter-spacing: -.045em; line-height: .9; font-size: clamp(28px, 4.2vw, 60px); }
.drift .w { display: inline-block; filter: blur(calc((1 - var(--p, 0)) * 10px)); opacity: calc(.15 + .85 * var(--p, 0)); transform: translate(calc(var(--dx) * (1 - var(--p, 0))), calc(var(--dy) * (1 - var(--p, 0)))); will-change: transform; }
.statement-sub { margin: clamp(22px, 2.6vw, 34px) auto 0; opacity: var(--p, 0); }
.statement .actions { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 40px); opacity: var(--p, 0); }

/* ---------- work list (home featured + work page) ---------- */
.featured { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.featured-side { padding: var(--S) var(--gutter); }
.featured-side .stick { position: sticky; top: 120px; display: grid; gap: 22px; justify-items: start; }
.featured-list { background: var(--panel); padding: var(--S) var(--gutter); }
.rows { display: grid; gap: 14px; }
.row-wrap { display: grid; grid-template-columns: clamp(52px, 5vw, 84px) 1fr; align-items: center; gap: clamp(8px, 1.4vw, 22px); }
.row-num { font-size: clamp(34px, 3.6vw, 56px); overflow: hidden; padding-bottom: .04em; }
.row-num span { display: block; transition: transform .6s var(--ease); }
.row { display: grid; grid-template-columns: clamp(84px, 7.6vw, 128px) 1fr auto; align-items: center; gap: clamp(16px, 2vw, 30px); padding: clamp(12px, 1vw, 16px); padding-right: clamp(16px, 1.8vw, 28px); border-radius: var(--radius); background: var(--card); transition: background-color .5s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--tile); }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s ease; }
.thumb video { opacity: 0; }
.row-title { margin: 0 0 6px; font-weight: 600; text-transform: uppercase; letter-spacing: -.035em; line-height: .95; font-size: clamp(17px, 1.5vw, 23px); overflow-wrap: normal; word-break: normal; hyphens: none; }
.row-meta { font-size: 13px; color: var(--ink-3); }
.row-meta .dot { display: inline-block; width: 7px; height: 7px; border-radius: 7px; background: var(--c); margin-right: 8px; vertical-align: 1px; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; overflow: hidden; }
.arrow svg { width: 17px; height: 17px; }
.row-wrap:hover .row { background: var(--card-hover); transform: translateX(8px); box-shadow: var(--shadow); }
.row-wrap:hover .row-num span { transform: translateY(-6%); }
.row-wrap:hover .thumb img { transform: scale(1.06); }
.row-wrap:hover .thumb video { opacity: 1; }
.row-wrap:hover .arrow { background: var(--ink); color: var(--page); border-color: var(--ink); }
.row-wrap:hover .arrow svg { animation: pass .55s var(--ease); }
@keyframes pass { 0% { transform: none; } 45% { transform: translateX(160%); } 46% { transform: translateX(-160%); } 100% { transform: none; } }
.row-wrap.hide { display: none; }

/* masked number reveal */
.rows .row-num span { transform: translateY(105%); transition: transform 1s var(--ease); }
.rows .row-wrap.in .row-num span { transform: none; }
.rows .row { opacity: 0; transform: translateY(16px); transition: opacity .8s ease .08s, transform 1s var(--ease) .08s, background-color .5s var(--ease), box-shadow .6s var(--ease); }
.rows .row-wrap.in .row { opacity: 1; transform: none; }
.rows .row-wrap.in:hover .row { transform: translateX(8px); }
html:not(.js) .rows .row, html:not(.js) .rows .row-num span { opacity: 1; transform: none; }

/* ---------- work page ---------- */
.work-head { padding-top: var(--S); display: grid; gap: 28px; }
.reel { margin-top: var(--s2); }
.reel-box { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--tile); transform-origin: 50% 0; transform: scale(var(--s, 1)); }
.reel-box video, .reel-box img, .reel-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; color-scheme: light; }
.reel-box iframe { pointer-events: none; }
.reel-box { cursor: default; }
.filter-bar { display: grid; justify-items: center; gap: 14px; margin-bottom: clamp(28px, 3vw, 44px); }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--tile); min-width: min(380px, 100%); }
.seg button { position: relative; z-index: 1; border: 0; background: none; height: 42px; padding: 0 22px; border-radius: 999px; font-family: var(--mono); font-size: 13px; cursor: pointer; color: var(--ink-2); transition: color .45s var(--ease); }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg .thumb-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--highlight); box-shadow: var(--shadow); transition: transform .55s var(--ease), width .55s var(--ease); }
.work-list { padding-block: var(--s2) var(--S); }
.work-list .rows { gap: 12px; }
.count { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }

/* ---------- about teaser / about page ---------- */
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 100px); align-items: stretch; }
.about-grid .copy { display: grid; gap: clamp(20px, 2.4vw, 32px); align-content: start; }
.about-grid .copy .h-title { margin-top: -10px; }
.copy-text { display: grid; gap: 22px; }
.about-grid .copy .btn-row { margin-top: 6px; }
.about-grid .copy p { margin: 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; letter-spacing: -.01em; }
.about-grid .copy p + p { color: var(--ink-2); }
.about-photo { border-radius: var(--radius); overflow: hidden; background: var(--tile); min-height: 420px; position: relative; }
.about-photo img { position: absolute; inset: 0; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.exp { border-top: 1px solid var(--line); }
.exp a { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.exp ul { list-style: none; margin: 0; padding: 0; }
.exp .co { font-weight: 500; font-size: clamp(16px, 1.2vw, 18px); letter-spacing: -.015em; }
.exp .ro { color: var(--ink-2); }
.exp .yr { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.exp a:hover .co { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.writing { display: grid; border-top: 1px solid var(--line); }
.post { position: relative; display: grid; grid-template-columns: 120px 1fr 200px; gap: clamp(16px, 3vw, 40px); padding: 28px 0; border-bottom: 1px solid var(--line); align-items: center; isolation: isolate; }
.post::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -.5); z-index: -1; border-radius: var(--radius); background: var(--card); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.post:hover::before { transform: scaleY(1); }
.post .when { transition: transform .6s var(--ease); }
.post h3 { margin: 0 0 12px; font-weight: 500; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.025em; line-height: 1.1; transition: transform .6s var(--ease); }
.post:hover h3, .post:hover .when { transform: translateX(10px); }
.post .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--tile); color: var(--ink-2); }
.post .pic { position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--tile); transform: rotate(0); transition: transform .7s var(--ease); }
.post .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s ease; filter: grayscale(.6); }
.post:hover .pic { transform: rotate(-2deg) scale(1.03); }
.post:hover .pic img { transform: scale(1.08); filter: none; }
.post .pic .arrow { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; background: var(--page); border-color: transparent; opacity: 0; transform: translate(-6px, 6px); transition: opacity .4s ease, transform .5s var(--ease); }
.post:hover .pic .arrow { opacity: 1; transform: none; }

/* services: a typographic list, a small preview peeks in on hover (desktop) */
.svc-list { border-top: 1px solid var(--line); }
.svc-row { position: relative; display: grid; grid-template-columns: clamp(40px, 4vw, 64px) minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: clamp(16px, 2.4vw, 40px); align-items: start; padding: clamp(24px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.svc-row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -.5); z-index: -1; border-radius: var(--radius); background: var(--card); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.svc-row:hover::before { transform: scaleY(1); }
.svc-row .label { padding-top: 6px; }
.svc-row h3 { margin: 0; font-weight: 600; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.05; transition: transform .6s var(--ease); }
.svc-row:hover h3 { transform: translateX(8px); }
.svc-row p { margin: 0 0 14px; color: var(--ink-2); max-width: 46ch; }
.svc-row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.svc-row ul li::before { content: "— "; color: var(--ink-3); }
.svc-peek { position: absolute; right: 0; top: 50%; width: clamp(150px, 13vw, 210px); aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(10%, -50%) rotate(4deg) scale(.9); transition: opacity .4s ease, transform .6s var(--ease); box-shadow: var(--shadow); z-index: 3; }
.svc-peek img, .svc-peek video { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (min-width: 1025px) { .svc-row:hover .svc-peek { opacity: 1; transform: translate(-6%, -50%) rotate(-2deg) scale(1); } .svc-row:hover ul { opacity: .25; } .svc-row ul { transition: opacity .4s ease; } }
@media (max-width: 1024px) { .svc-row { grid-template-columns: 40px 1fr; } .svc-row > div, .svc-row ul { grid-column: 2; } .svc-peek { display: none; } }

/* steps */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: clamp(8px, 1.2vw, 18px); align-items: stretch; }
.step { background: var(--card); border-radius: 16px; padding: clamp(20px, 2vw, 30px); min-height: clamp(220px, 19vw, 280px); display: flex; flex-direction: column; transition: background-color .6s ease, transform .6s var(--ease), box-shadow .6s ease; }
.step-top { display: flex; justify-content: space-between; align-items: start; }
.art { width: clamp(64px, 5.6vw, 88px); height: auto; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.art-listen circle:first-child { fill: var(--ink); stroke: none; }
.art-listen .rp { transform-origin: 60px 60px; animation: ripple 2.8s var(--ease) infinite; opacity: 0; }
.art-listen .rp2 { animation-delay: .93s; } .art-listen .rp3 { animation-delay: 1.86s; }
@keyframes ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }
.art-shape .sq { transform-origin: 60px 60px; animation: morph 4.8s var(--ease) infinite; }
.art-shape .dots circle { fill: var(--ink); stroke: none; transform-box: fill-box; transform-origin: center; animation: dotin 4.8s var(--ease) infinite; }
@keyframes morph { 0%, 100% { rx: 0; transform: rotate(0) scale(1); } 33% { rx: 30; transform: rotate(90deg) scale(.82); } 66% { rx: 12; transform: rotate(180deg) scale(1); } }
@keyframes dotin { 0%, 100% { transform: scale(1); opacity: 1; } 33% { transform: scale(0); opacity: 0; } 66% { transform: scale(1.4); opacity: 1; } }
.art-move .track { stroke-dasharray: 3 5; stroke: var(--ink-3); }
.art-move .ball { fill: var(--ink); stroke: none; offset-path: path("M14 96 C 40 96, 44 24, 106 24"); animation: travel 2.6s cubic-bezier(.65, 0, .35, 1) infinite alternate; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.step h3 { margin: auto 0 14px; font-weight: 600; text-transform: uppercase; letter-spacing: -.045em; font-size: clamp(24px, 2.2vw, 34px); line-height: 1; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }
.step.active { background: var(--card-hover); transform: translateY(-6px); box-shadow: var(--shadow); }
.step-arrow { display: grid; place-items: center; width: clamp(28px, 4vw, 64px); color: var(--ink-3); }
.step-arrow svg { width: 100%; height: 16px; }

/* tools */
.tools-line { font-weight: 600; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(28px, 3.2vw, 48px); line-height: 1; margin: 0; }
.caret { display: inline-block; width: .06em; height: .8em; margin-left: .04em; background: var(--accent); vertical-align: -.04em; animation: blink 1s steps(1) infinite; }
.caret.typing { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 48px); padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.pill { font-weight: 500; text-transform: uppercase; letter-spacing: 0; font-size: clamp(12px, .9vw, 14px); font-family: var(--mono); padding: clamp(10px, 1vw, 14px) clamp(18px, 2vw, 30px); border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); transition: transform .5s var(--ease), background-color .3s, color .3s; }
.pill.on { background: var(--ink); color: var(--page); border-color: var(--ink); transform: translateY(-8px) rotate(-2deg); }

/* ---------- project page ---------- */
.p-head { padding-top: var(--S); }
.back { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.back:hover { color: var(--ink); }
.p-num { font-size: clamp(64px, 9vw, 140px); margin: clamp(24px, 4vw, 48px) 0 0 -.06em; overflow: hidden; }
.p-num span { display: block; }
.p-title { margin-top: clamp(8px, 1.4vw, 20px); }
.p-intro { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 6vw, 100px); margin-top: clamp(32px, 4vw, 60px); align-items: start; }
.p-intro .sub { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.25; letter-spacing: -.02em; margin: 0 0 22px; }
.p-intro .desc p { margin: 0 0 1em; color: var(--ink-2); max-width: 62ch; }
.p-facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.p-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.p-facts dt { font-size: 12px; color: var(--ink-3); text-transform: uppercase; padding-top: 3px; }
.p-facts dd { margin: 0; }
.p-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 18px); margin-top: var(--S); }
.m { grid-column: 1 / -1; border-radius: var(--radius); overflow: hidden; background: var(--tile); position: relative; }
.m.half { grid-column: span 1; }
.m img, .m video { width: 100%; height: auto; }
.m.film video { width: 100%; height: auto; aspect-ratio: 16/9; background: #000; }
.m.vimeo { aspect-ratio: 16/9; }
.m.vimeo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; color-scheme: light; }
.m.vimeo .poster { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; background: var(--tile); }
.m.vimeo .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m.vimeo .poster .btn { position: relative; }
.m img { cursor: zoom-in; }
/* projects with several media files: pinned text column + scrolling media column */
.p-split { display: grid; grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); gap: clamp(32px, 4vw, 72px); padding-top: var(--S); align-items: start; }
.p-side { align-self: stretch; }
.p-stick { position: sticky; top: 104px; display: grid; gap: clamp(18px, 2vw, 26px); justify-items: start; }
.site-header.hide ~ main .p-stick { top: 32px; }
.p-stick .p-title { margin: 0; }
.p-stick .sub { margin: 0 0 14px; }
.p-stick .desc p { margin: 0 0 1em; color: var(--ink-2); }
.p-stick .p-facts { width: 100%; }
.p-link { margin-top: 4px; }
.p-media-col { grid-template-columns: 1fr; margin-top: 0; }
.p-media-col .m.half { grid-column: 1 / -1; }
@media (max-width: 1024px) { .p-split { grid-template-columns: 1fr; } .p-stick { position: static; } .p-media-col { margin-top: 8px; } }
.next-proj { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-block: var(--S); border-top: 1px solid var(--line); margin-top: var(--S); }
.next-proj .h-section { transition: transform .6s var(--ease); }
.next-proj:hover .h-section { transform: translateX(10px); }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(16px, 4vw, 60px); background: rgba(8 8 8 / .94); opacity: 0; transition: opacity .3s; cursor: zoom-out; }
.lightbox.on { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 8px; transform: scale(.96); transition: transform .45s var(--ease); }
.lightbox.on img { transform: none; }
.lightbox .lb-frame { width: min(1200px, 100%); aspect-ratio: 16/9; }
.lightbox iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; color-scheme: light; }
.lightbox .close { position: absolute; top: 18px; right: 18px; color: #eee; font-family: var(--mono); font-size: 13px; background: none; border: 1px solid rgba(255 255 255 / .2); border-radius: 999px; padding: 8px 14px; cursor: pointer; }

/* ---------- fun ---------- */
.fun-grid { columns: 3 300px; column-gap: clamp(12px, 1.6vw, 24px); }
.fun-card { break-inside: avoid; margin-bottom: clamp(20px, 2.6vw, 40px); display: block; }
.fun-card .media { border-radius: 12px; overflow: hidden; background: var(--tile); }
.fun-card img, .fun-card video { width: 100%; height: auto; transition: transform .9s var(--ease); }
.fun-card:hover img, .fun-card:hover video { transform: scale(1.03); }
.fun-card .cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 15px; color: var(--ink-2); }

/* ---------- contact ---------- */
.ct { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 100px); padding-block: var(--S); align-items: start; }
.ct-intro { position: sticky; top: 110px; display: grid; gap: clamp(20px, 2.4vw, 30px); justify-items: start; }
.ct-intro .lead { max-width: 30ch; }
.ct-mail { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); width: 100%; }
.ct-mail a { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.ct-mail a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy-btn { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-strong); background: none; border-radius: 999px; padding: 5px 12px; cursor: pointer; color: var(--ink-2); }
.copy-btn:hover { color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.form { background: var(--card); border-radius: 18px; padding: clamp(22px, 3vw, 44px); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field > span, .field legend { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--page); border: 1px solid var(--line-strong); border-radius: 10px; padding: 13px 14px; width: 100%; transition: border-color .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.checks label { position: relative; }
.checks input { position: absolute; opacity: 0; }
.checks span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.checks input:checked + span { background: var(--ink); color: var(--page); border-color: var(--ink); }
.checks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: 14px; color: var(--ink-2); min-height: 1.4em; margin: 0; }

/* ---------- closing + footer (always dark) ---------- */
.closing { background: var(--deep); color: var(--on-deep); text-align: center; padding-block: var(--S) max(16px, calc(var(--S) - 56px)); }
.closing h2 { margin: 0 auto clamp(24px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.035em; line-height: .95; font-size: clamp(36px, 5.2vw, 80px); }
.closing p { margin: 26px auto 0; color: var(--on-deep-2); max-width: 46ch; }
.site-footer { background: var(--deep); color: var(--on-deep); overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: 5fr 2fr 2fr 2fr; gap: 28px; padding-block: 56px 48px; border-top: 1px solid var(--deep-line); }
.foot-cols h2 { margin: 0 0 14px; font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; color: var(--on-deep-2); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.foot-cols .pos { font-size: 17px; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 14px; max-width: 26ch; }
.foot-cols .mail { font-family: var(--mono); font-size: 14px; border-bottom: 1px solid var(--deep-line); padding-bottom: 2px; }
.foot-strip { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; text-transform: uppercase; color: var(--on-deep-2); padding-bottom: 24px; }
.foot-strip a:hover { color: var(--on-deep); }
.wordmark { font-family: var(--display); font-weight: 800; text-transform: uppercase; white-space: nowrap; text-align: center; line-height: .78; letter-spacing: -.01em; margin: 8px 0 -.12em; font-size: 15vw; color: var(--on-deep); }
.wordmark span { display: inline-block; transform: translateY(40%); transition: transform 1.2s var(--ease); }
.wordmark.in span { transform: none; }

/* ---------- 404 ---------- */
.nf { min-height: 70svh; display: grid; place-items: center; text-align: center; }
.nf .h-title { font-family: var(--display); font-weight: 800; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .featured { grid-template-columns: 1fr; }
  .featured-side { padding-bottom: 24px; }
  .featured-side .stick { position: static; }
  .featured-list { padding-top: 24px; }
  .about-grid, .p-intro, .ct { grid-template-columns: 1fr; }
  .ct-intro { position: static; }
  .about-photo { min-height: 0; aspect-ratio: 4/5; }
  .about-photo { max-width: 520px; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { width: auto; height: 40px; transform: rotate(90deg); }
  .step { min-height: 0; }
  .step h3 { margin-top: 48px; }
  .foot-cols { grid-template-columns: 1fr 1fr 1fr; }
  .foot-cols > div:first-child { grid-column: 1 / -1; }
  .post { grid-template-columns: 1fr 180px; }
  .post .when { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header .bar { grid-template-columns: auto 1fr auto; height: 62px; gap: 12px; }
  .nav { justify-content: center; gap: 14px; }
  .nav a { font-size: 13px; }
  .clock { display: none; }
  .theme .sl, .theme button[aria-pressed="true"] { display: none; }
  .theme button { color: var(--ink); }
  .row-wrap { grid-template-columns: 1fr; gap: 0; }
  .row-num { display: none; }
  .row { grid-template-columns: 92px 1fr; padding-right: 12px; }
  .row .arrow { display: none; }
  .row-title { font-size: 17px; }
  .post { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .hero { height: auto; min-height: 76svh; max-height: none; padding-top: 48px; justify-content: center; }
  .hero h1 { font-size: clamp(60px, 18.5vw, 96px); }
  .strip { --h: 118px; }
  .post::before { inset: 0 -10px; }
  .post .pic { order: -1; }
  .exp a { grid-template-columns: 1fr auto; }
  .exp .ro { grid-column: 1; grid-row: 2; font-size: 15px; }
  .exp .yr { grid-row: 1 / span 2; align-self: center; }
  .ct-row { grid-template-columns: 1fr; gap: 4px; }
  .p-media { grid-template-columns: 1fr; }
  .m.half { grid-column: 1 / -1; }
  .p-facts div { grid-template-columns: 90px 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-strip { justify-content: center; text-align: center; }
  .seg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .lines .ln > span, .rows .row, .rows .row-num span, .wordmark span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .drift .w { transform: none !important; opacity: 1 !important; }
  .art * { animation: none !important; }
  html { scroll-behavior: auto; }
  .caret { animation: none; }
}

main + .site-footer .foot-cols { padding-top: var(--S); border-top: 0; }
.page-top { padding-top: var(--S); }
.page-top:has(.fun-grid) { padding-bottom: var(--S); }
@media (max-width: 640px) { .fun-grid { margin-bottom: calc(-1 * clamp(20px, 2.6vw, 40px)); } }

/* listen: tangled lines settle into straight ones */
.art-listen path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }

/* ---------- video player ---------- */
.vp { position: relative; background: #000; cursor: pointer; }
.vp video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.vp-big { position: absolute; left: 50%; top: 50%; width: clamp(68px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; transform: translate(-50%, -50%);
  background: rgba(255 255 255 / .16); border: 1px solid rgba(255 255 255 / .38); color: #fff; backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
  cursor: pointer; transition: opacity .4s ease, transform .5s var(--ease), background-color .3s ease; }
.vp-big svg { width: 38%; height: 38%; margin-left: 6%; }
.vp:hover .vp-big { background: rgba(255 255 255 / .26); transform: translate(-50%, -50%) scale(1.06); }
.vp[data-state="playing"] .vp-big { opacity: 0; transform: translate(-50%, -50%) scale(.8); pointer-events: none; }
.vp-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(10 10 10 / .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-family: var(--mono); font-size: 12px;
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .45s var(--ease); cursor: default; }
.vp[data-state="playing"].show-ui .vp-bar, .vp[data-state="paused"] .vp-bar, .vp:focus-within .vp-bar { opacity: 1; transform: none; }
.vp-btn { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .25s; }
.vp-btn:hover { background: rgba(255 255 255 / .14); }
.vp-btn svg { width: 18px; height: 18px; }
.vp .i-pause, .vp .i-mute { display: none; }
.vp[data-state="playing"] .i-play { display: none; } .vp[data-state="playing"] .i-pause { display: block; }
.vp.muted .i-sound { display: none; } .vp.muted .i-mute { display: block; }
.vp-time { white-space: nowrap; opacity: .85; font-variant-numeric: tabular-nums; }
.vp-track { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(255 255 255 / .22); }
.vp-buf, .vp-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; width: 0; }
.vp-buf { background: rgba(255 255 255 / .3); }
.vp-fill { background: #fff; }
.vp-seek { position: absolute; inset: -10px 0; width: 100%; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.vp:fullscreen { display: grid; place-items: center; } .vp:fullscreen video { height: 100%; aspect-ratio: auto; object-fit: contain; }
@media (max-width: 760px) { .vp-time { display: none; } .vp-bar { left: 8px; right: 8px; bottom: 8px; } }

/* ---------- previous / next project ---------- */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); margin-top: var(--S); padding-bottom: var(--S); }
.pn-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(16px, 2vw, 28px); padding: clamp(10px, 1vw, 14px); border-radius: var(--radius); background: var(--card); transition: background-color .5s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease); }
.pn-next { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.pn-next .pn-media { order: 2; } .pn-next .pn-text { text-align: right; justify-items: end; }
.pn-media { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--tile); }
.pn-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1s var(--ease), filter .6s ease; filter: saturate(.85); }
.pn-text { display: grid; gap: 10px; }
.pn-title { font-weight: 600; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(20px, 2vw, 30px); line-height: 1; transition: transform .6s var(--ease); }
.pn-card:hover { background: var(--card-hover); box-shadow: var(--shadow); }
.pn-card:hover .pn-media img { transform: scale(1.08); filter: none; }
.pn-prev:hover .pn-title { transform: translateX(8px); } .pn-next:hover .pn-title { transform: translateX(-8px); }
.pn-card .label { transition: color .3s; } .pn-card:hover .label { color: var(--ink); }
@media (max-width: 760px) { .pn { grid-template-columns: 1fr; } .pn-card, .pn-next { grid-template-columns: 110px 1fr; } .pn-next .pn-media { order: 0; } .pn-next .pn-text { text-align: left; justify-items: start; } }

/* ---------- CV: a document on a desk ---------- */
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
.viewer { background: var(--panel); }
.viewer-bar { position: sticky; top: 72px; z-index: 5; background: var(--header); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: top .5s var(--ease); }
.site-header.hide ~ main .viewer-bar { top: 0; }
.viewer-bar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 64px; }
.vb-file { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; min-width: 0; }
.vb-file svg { width: 16px; height: 16px; flex: none; }
.vb-file span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-meta { color: var(--ink-3); white-space: nowrap; }
.vb-actions { display: flex; gap: 8px; }
.vb-actions .btn { --h: 38px; padding: 0 16px; font-size: 13px; }
.desk { display: grid; justify-items: center; gap: clamp(16px, 2.4vw, 32px); padding: clamp(24px, 4vw, 56px) clamp(12px, 3vw, 40px) var(--S); }
.sheet { position: relative; width: min(820px, 100%); aspect-ratio: 210 / 297; container-type: inline-size; background: #fff; color: #111;
  box-shadow: 0 1px 2px rgba(0 0 0 / .06), 0 8px 30px rgba(0 0 0 / .08); border-radius: 2px; overflow: hidden; }
:root[data-theme="dark"] .sheet { box-shadow: 0 10px 40px rgba(0 0 0 / .6); }
.sheet-in { position: absolute; inset: 0; padding: 6.2cqw 7cqw; font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif; font-size: 1.62cqw; line-height: 1.55; }
.sheet h1 { margin: 0; font-size: 3.4cqw; font-weight: 700; letter-spacing: -.005em; line-height: 1.2; }
.d-title { margin: .4cqw 0 0; font-size: 2.3cqw; }
.d-links { margin: 1.8cqw 0 0; font-size: 1.5cqw; }
.d-links a, .sheet a { color: inherit; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.d-links span, .d-skills span { margin: 0 .6em; color: #444; }
.sheet h2 { margin: 3.6cqw 0 1.6cqw; padding-bottom: .5cqw; border-bottom: .17cqw solid #111; font-size: 1.85cqw; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.sheet-in > p { margin: 0; }
.d-job { margin-bottom: 2.2cqw; }
.d-line { display: flex; justify-content: space-between; gap: 2cqw; }
.d-line > span:last-child { white-space: nowrap; }
.d-sub { border-left: .17cqw solid #ccc; padding-left: 1.8cqw; margin-top: .6cqw; }
.d-sub .d-line { margin-top: 1.2cqw; }
.sheet ul { margin: .3cqw 0 0; padding-left: 2.6cqw; }
.sheet li { padding-left: .4cqw; }
.sheet .ext { width: .75em; height: .75em; margin-left: .3em; vertical-align: .05em; }
.d-skills { line-height: 2.2; margin: 0; }
.d-skills .sk { white-space: nowrap; }
.pg { position: absolute; right: 7cqw; bottom: 3cqw; font-family: var(--mono); font-size: 1.2cqw; color: #999; }
@media (max-width: 760px) { .viewer-bar { top: 62px; } .vb-meta, .vb-print { display: none; } }
@media print {
  @page { size: A4; margin: 0; }
  .site-header, .site-footer, .closing, .viewer-bar, .loader { display: none !important; }
  html, body, .viewer, .desk { background: #fff !important; padding: 0 !important; margin: 0 !important; gap: 0 !important; }
  .sheet { width: 210mm; box-shadow: none; border-radius: 0; break-after: page; }
  .pg { display: none; }
}

/* ---------- articles ---------- */
.article { max-width: calc(760px + 2 * var(--gutter)); }
.art-head { display: grid; gap: 16px; justify-items: start; padding-bottom: clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.art-meta { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.art-title { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(32px, 4.2vw, 56px); text-wrap: balance; }
.art-sub { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 40ch; }
.prose { padding-top: clamp(28px, 3vw, 44px); font-size: 18px; line-height: 1.72; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { margin: 2em 0 .6em; font-weight: 600; font-size: clamp(22px, 1.8vw, 26px); letter-spacing: -.02em; line-height: 1.2; }
.prose h3 { margin: 1.6em 0 .5em; font-weight: 600; font-size: 20px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose figure { margin: 2em 0; }
.prose figure img, .prose figure video { width: 100%; height: auto; border-radius: 10px; background: var(--tile); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); text-align: center; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose pre { margin: 1.6em 0; padding: 20px 22px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose code { font-family: var(--mono); }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--ink); font-size: 20px; }
.art-foot { margin-top: clamp(32px, 4vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.art-foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.art-pn-title { font-size: clamp(16px, 1.4vw, 20px); text-transform: none; letter-spacing: -.01em; line-height: 1.2; }
@media (max-width: 760px) { .prose { font-size: 17px; } }
