/* omar-hussein.com — design system
   Graphite ink, ivory type, one champagne accent. Instrument Serif for voice,
   Inter for reading, JetBrains Mono for data. Edit tokens here, not in components. */

:root {
  --bg: #0d0f13;
  --bg-2: #111419;
  --surface: #161a20;
  --surface-2: #1c2128;
  --line: rgba(236, 231, 220, 0.09);
  --line-2: rgba(236, 231, 220, 0.16);
  --text: #ece7dc;
  --text-2: #b0ada4;
  --text-3: #8b8981;
  --accent: #cdae74;
  --accent-ink: #15120b;
  --accent-soft: rgba(205, 174, 116, 0.14);
  --accent-2: #86aba6;
  --danger: #e08a7a;
  --ok: #8fc2a0;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-2: #ece8df;
  --surface: #fbf9f5;
  --surface-2: #ffffff;
  --line: rgba(22, 24, 29, 0.1);
  --line-2: rgba(22, 24, 29, 0.18);
  --text: #16181d;
  --text-2: #45464b;
  --text-3: #66655f;
  --accent: #8a6a2c;
  --accent-ink: #fbf9f5;
  --accent-soft: rgba(138, 106, 44, 0.1);
  --accent-2: #3f6f69;
  --danger: #a3402f;
  --ok: #2f6f48;
  --shadow: 0 30px 80px -40px rgba(30, 25, 15, 0.35);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f1ea;
    --bg-2: #ece8df;
    --surface: #fbf9f5;
    --surface-2: #ffffff;
    --line: rgba(22, 24, 29, 0.1);
    --line-2: rgba(22, 24, 29, 0.18);
    --text: #16181d;
    --text-2: #45464b;
    --text-3: #66655f;
    --accent: #8a6a2c;
    --accent-ink: #fbf9f5;
    --accent-soft: rgba(138, 106, 44, 0.1);
    --accent-2: #3f6f69;
    --danger: #a3402f;
    --ok: #2f6f48;
    --shadow: 0 30px 80px -40px rgba(30, 25, 15, 0.35);
    color-scheme: light;
  }
}

/* ── base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }

.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 20px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow__n { color: var(--accent); }

/* ── buttons & links ─────────────────────────────────────────────────── */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { background: var(--accent); color: var(--accent-ink); }
.btn--line { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { color: var(--text-2); padding: 0 14px; }
.btn--ghost:hover { color: var(--text); }
.btn--ghost:hover svg { transform: translateY(2px); }
.btn--small { --h: 40px; padding: 0 16px; font-size: 14px; }
button.btn { font-family: var(--sans); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 14px/1 var(--sans); color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  transition: color .25s var(--ease), border-color .25s var(--ease), gap .3s var(--ease);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text-2);
  cursor: pointer; transition: color .2s, border-color .2s, transform .4s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); transform: rotate(180deg); }

/* ── navigation ──────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__mark { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__mono {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); font: 400 16px/1 var(--serif); letter-spacing: 0.02em;
  transition: border-color .3s, color .3s;
}
.nav__mark:hover .nav__mono { border-color: var(--accent); color: var(--accent); }
.nav__name { font: 400 20px/1 var(--serif); letter-spacing: 0.01em; }
.nav__links ul { display: flex; gap: 4px; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; color: var(--text-2); transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.nav__tools { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; }

@media (max-width: 860px) {
  .nav__name { display: none; }
  .nav__cv { display: none; }
  .nav__burger {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--text);
  }
  .nav__burger span, .nav__burger span::before, .nav__burger span::after {
    display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), background-color .2s;
  }
  .nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; }
  .nav__burger span::before { top: -5px; }
  .nav__burger span::after { top: 5px; }
  .nav.is-open .nav__burger span { background: transparent; }
  .nav.is-open .nav__burger span::before { transform: translateY(5px) rotate(45deg); }
  .nav.is-open .nav__burger span::after { transform: translateY(-5px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .35s var(--ease);
  }
  .nav.is-open { background: var(--bg); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links ul { flex-direction: column; gap: 0; }
  .nav__links a { font: 400 30px/1 var(--serif); color: var(--text); min-height: 60px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav__links a[aria-current="page"] { background: none; color: var(--accent); }
}

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 8vw, 96px)) 0 0; overflow: hidden; isolation: isolate; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__title {
  font: 400 clamp(46px, 7.4vw, 104px)/0.98 var(--serif);
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero__title em, .sec-head__title em, .cta__title em, .about__title em, .project-hero__title em { color: var(--accent); }
.hero__lede { max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-size: 13px; color: var(--text-2);
  padding: 8px 14px 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero__media {
  position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media--portrait img { filter: grayscale(1) contrast(1.05); transform: scale(1.02); transition: transform 1.6s var(--ease); }
.hero__media:hover img { transform: scale(1.05); }
.hero__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between;
  padding: 16px 20px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: #ece7dc; background: linear-gradient(to top, rgba(10, 11, 14, .7), transparent);
  pointer-events: none; transition: opacity .3s;
}
.hero__media--video.is-playing figcaption { opacity: 0; }
.play {
  position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 14px; padding: 24px;
  border: 0; cursor: pointer; color: #ece7dc; text-align: left;
  background: linear-gradient(to top, rgba(10, 11, 14, .65) 0%, rgba(10, 11, 14, .05) 55%);
  transition: opacity .35s var(--ease);
}
.play__disc {
  width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: #ece7dc; color: #15120b; transition: transform .4s var(--ease), background-color .3s;
  box-shadow: 0 0 0 10px rgba(236, 231, 220, .14);
}
.play:hover .play__disc { transform: scale(1.08); background: #cdae74; }
.play__text { display: flex; flex-direction: column; gap: 4px; padding-bottom: 44px; }
.play__text strong { font: 400 22px/1.1 var(--serif); }
.play__text span { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.hero__media--video .play ~ figcaption { display: none; }
.hero__media--video.is-playing .play { opacity: 0; pointer-events: none; }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line);
}
.facts li { padding: 28px 24px 40px 0; display: flex; flex-direction: column; gap: 8px; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.fact__v { font: 400 clamp(34px, 4vw, 52px)/1 var(--serif); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.fact__l { font-size: 14px; color: var(--text-3); max-width: 22ch; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 440px; aspect-ratio: 4 / 4.4; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 20px 0; flex-direction: row; align-items: baseline; gap: 16px; }
  .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .fact__v { min-width: 4.6em; }
}

/* ── sections ────────────────────────────────────────────────────────── */
.sec { padding: clamp(80px, 11vw, 148px) 0; position: relative; }
.sec--tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec--flush { padding-top: 0; }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 32px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
.sec-head__title { font: 400 clamp(36px, 4.8vw, 64px)/1.04 var(--serif); letter-spacing: -0.02em; max-width: 16ch; text-wrap: balance; }
.sec-head__more { align-self: end; }
@media (max-width: 640px) { .sec-head { grid-template-columns: 1fr; } .sec-head__more { justify-self: start; } }

/* ── case studies (home) ─────────────────────────────────────────────── */
.cases { display: grid; gap: clamp(64px, 9vw, 120px); }
.case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.case--flip .case__visual { order: 2; }
.case__visual {
  display: block; position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 14 / 9; background: var(--surface); border: 1px solid var(--line);
}
.case__visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, transparent 50%, color-mix(in srgb, var(--bg) 50%, transparent)); pointer-events: none; }
.case__visual > svg, .case__visual > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.case:hover .case__visual > svg, .case:hover .case__visual > img { transform: scale(1.035); }
.case__kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); display: flex; gap: 14px; margin-bottom: 16px; }
.case__kicker span { color: var(--accent); }
.case__name { font: 400 clamp(40px, 5vw, 64px)/1 var(--serif); letter-spacing: -0.02em; margin-bottom: 18px; }
.case__name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.case__name a:hover { background-size: 100% 1px; }
.case__summary { color: var(--text-2); font-size: 17px; margin-bottom: 28px; max-width: 36em; }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case--flip .case__visual { order: 0; }
}

/* motifs: colours follow the theme */
.motif { background: var(--surface); }
.motif .m-line { fill: none; stroke: var(--text); stroke-width: 1; }
.motif .m-dot { fill: var(--text-2); }
.motif .m-ink { stroke: var(--text-2); stroke-width: 1.4; }
.motif .m-accent { stroke: var(--accent); stroke-width: 1.4; }
.motif .m-accent2 { stroke: var(--accent-2); stroke-width: 1.4; }
.motif .m-thick { stroke-width: 2.4; stroke-linecap: round; }
.motif .m-core { fill: var(--accent); }
.motif .m-sector { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.motif .m-band { fill: var(--accent-soft); }
.motif .m-band2 { fill: color-mix(in srgb, var(--accent-2) 16%, transparent); }
.motif .m-dd { fill: color-mix(in srgb, var(--danger) 9%, transparent); }

/* metrics */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 28px; border-top: 1px solid var(--line); }
.metrics > div { padding: 18px 16px 4px 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.metrics > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.metrics dt { font-size: 13px; color: var(--text-3); line-height: 1.4; }
.metrics dd { margin: 0; font: 400 26px/1.05 var(--serif); color: var(--text); }
.metrics--wide { margin: 48px 0; }
.metrics--wide dd { font-size: clamp(30px, 3.6vw, 44px); }
.metrics--wide > div { padding: 28px 24px 8px 0; }
.metrics--wide > div + div { padding-left: 24px; }
@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr; }
  .metrics > div { padding: 14px 0; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 14px; }
  .metrics > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .metrics dd { min-width: 4.2em; font-size: 24px; }
}

/* ── principles ──────────────────────────────────────────────────────── */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: p; }
.principle { padding: 36px 32px 8px 0; border-top: 1px solid var(--line-2); }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle__n { font: 500 12px/1 var(--mono); color: var(--accent); letter-spacing: .12em; display: block; margin-bottom: 40px; }
.principle h3 { font: 400 32px/1.1 var(--serif); margin-bottom: 14px; }
.principle p { color: var(--text-2); }
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0 12px; border-left: 0; }
  .principle__n { margin-bottom: 20px; }
}

/* ── experience ──────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > div:first-child { position: sticky; top: calc(var(--nav-h) + 32px); }
.xp li { display: grid; grid-template-columns: 9.5em 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.xp li:last-child { border-bottom: 1px solid var(--line); }
.xp__period { font: 500 12px/1.9 var(--mono); letter-spacing: .06em; color: var(--text-3); text-transform: uppercase; }
.xp h3 { font: 400 26px/1.15 var(--serif); }
.xp__org { color: var(--accent); font-size: 14px; margin: 4px 0 10px; }
.xp p:last-child { color: var(--text-2); margin: 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split > div:first-child { position: static; }
}
@media (max-width: 520px) { .xp li { grid-template-columns: 1fr; gap: 6px; } }

.langs { margin-top: 48px; }
.langs ul { border-top: 1px solid var(--line); }
.langs li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.langs li span:last-child { color: var(--text-3); }

/* ── capabilities ────────────────────────────────────────────────────── */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cap { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.cap:hover { border-color: var(--line-2); transform: translateY(-3px); }
.cap h3 { font: 400 24px/1.15 var(--serif); margin-bottom: 18px; }
.cap li { padding: 8px 0; font-size: 14.5px; color: var(--text-2); border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

.issuers { margin: 40px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--text-2); font-size: 15px; }
.issuers > span:first-child { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.issuers .link-arrow { margin-left: auto; }

/* ── call to action ──────────────────────────────────────────────────── */
.cta { padding: clamp(96px, 13vw, 180px) 0; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 50% 100%, var(--accent-soft), transparent 70%);
}
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title { font: 400 clamp(44px, 7vw, 96px)/1 var(--serif); letter-spacing: -0.025em; margin-bottom: 24px; text-wrap: balance; }
.cta__body { color: var(--text-2); max-width: 34em; font-size: 17px; margin-bottom: 36px; }
.cta .hero__cta { justify-content: center; }

/* ── footer ──────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14px; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-end; }
.foot__name { font: 400 28px/1 var(--serif); margin-bottom: 10px; }
.foot__meta { color: var(--text-3); margin: 0; }
.foot__meta a:hover, .foot__links a:hover { color: var(--accent); }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot__links a { color: var(--text-2); min-height: 44px; display: inline-flex; align-items: center; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font: 400 12px/1.5 var(--mono); letter-spacing: .04em; }

/* ── inner pages ─────────────────────────────────────────────────────── */
.project-hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 112px)) 0 clamp(40px, 6vw, 72px); }
.crumbs { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); display: flex; gap: 10px; margin-bottom: 40px; }
.crumbs a:hover { color: var(--accent); }
.project-hero__title { font: 400 clamp(52px, 9vw, 128px)/0.95 var(--serif); letter-spacing: -0.03em; margin-bottom: 28px; text-wrap: balance; }
.project-hero__lede { font-size: clamp(18px, 1.8vw, 22px); color: var(--text-2); max-width: 38em; line-height: 1.55; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 36px 0 0; }
.facts-inline dt { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.facts-inline dd { margin: 0; font-size: 15px; }
.facts-inline a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }

.project__visual { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 9; }
.project__visual svg { width: 100%; height: 100%; }
@media (max-width: 640px) { .project__visual { aspect-ratio: 4 / 3; } }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 48px 0; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 13px; color: var(--text-3); padding-top: 10px; }
.zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.zoom img { width: 100%; transition: transform .8s var(--ease); }
.zoom:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

.project-body { max-width: 860px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) 0 0; }
.prose-block { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.prose-block h2 { font: 500 12px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.prose { font-size: 17px; color: var(--text-2); }
.prose p:last-child { margin-bottom: 0; }
.prose--lead { font-size: clamp(17px, 1.5vw, 19px); }
.prose--lead p:first-child { color: var(--text); }
.points li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); }
.points li:first-child { padding-top: 0; }
.points li:first-child::before { top: 9px; }
.points li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 1px; background: var(--accent); }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { font: 500 12px/1 var(--mono); letter-spacing: .04em; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); }
@media (max-width: 640px) { .prose-block { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 72px 0 clamp(72px, 10vw, 128px); }
.pager a { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); font: 400 clamp(24px, 3vw, 36px)/1.1 var(--serif); transition: border-color .3s, background-color .3s; }
.pager a:last-child { text-align: right; }
.pager a:hover { border-color: var(--accent); background: var(--accent-soft); }
.pager span { display: block; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }

/* projects index */
.rows { border-top: 1px solid var(--line-2); }
.row {
  display: grid; grid-template-columns: 3em minmax(0, 1fr) minmax(0, 1.4fr) 5em 24px; gap: 24px; align-items: center;
  padding: 32px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), background-color .3s;
}
.row:hover { padding-left: 12px; padding-right: 12px; background: var(--accent-soft); }
.row__n { font: 500 12px/1 var(--mono); color: var(--accent); }
.row__name { font: 400 clamp(30px, 3.4vw, 44px)/1 var(--serif); display: flex; flex-direction: column; gap: 10px; }
.row__name small { font: 400 14px/1.3 var(--sans); color: var(--text-3); }
.row__sum { color: var(--text-2); font-size: 15px; }
.row__year { font: 500 12px/1 var(--mono); color: var(--text-3); text-align: right; }
.row__go { color: var(--text-3); transition: transform .3s var(--ease), color .3s; }
.row:hover .row__go { transform: translateX(4px); color: var(--accent); }
@media (max-width: 860px) {
  .row { grid-template-columns: 2.4em 1fr 24px; }
  .row__sum, .row__year { display: none; }
}
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card__top { display: flex; justify-content: space-between; gap: 12px; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.card__name { font: 400 30px/1.05 var(--serif); }
.card__sum { color: var(--text-2); font-size: 15px; flex: 1; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__title { font: 400 clamp(40px, 5.6vw, 76px)/1.02 var(--serif); letter-spacing: -0.02em; margin-bottom: 36px; text-wrap: balance; }
.about .prose { margin-bottom: 36px; max-width: 38em; }
.about__portrait { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); position: sticky; top: calc(var(--nav-h) + 32px); }
.about__portrait img { filter: grayscale(1) contrast(1.05); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__portrait { position: static; max-width: 380px; order: -1; } }

/* credentials */
.creds { display: grid; gap: 56px; padding-bottom: clamp(80px, 10vw, 140px); }
.cred-group h2 { display: flex; align-items: baseline; justify-content: space-between; font: 400 36px/1 var(--serif); padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.cred-group h2 small { font: 500 12px/1 var(--mono); color: var(--text-3); }
.cred { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cred__thumb { width: 96px; aspect-ratio: 4 / 3; border-radius: 8px; }
.cred__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cred__thumb--none { display: block; background: repeating-linear-gradient(135deg, var(--surface) 0 6px, var(--bg-2) 6px 12px); border: 1px solid var(--line); }
.cred__name { font-size: 16px; }
.cred__year { font: 500 12px/1 var(--mono); color: var(--text-3); }
@media (max-width: 520px) { .cred { grid-template-columns: 64px 1fr auto; gap: 14px; } .cred__thumb { width: 64px; } }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 9, 12, .86); backdrop-filter: blur(6px); }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(236, 231, 220, .3); background: rgba(13, 15, 19, .7); color: #ece7dc; font-size: 26px; line-height: 1; cursor: pointer; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__links { margin-top: 40px; border-top: 1px solid var(--line); }
.contact__links a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--line); font: 400 24px/1 var(--serif); transition: color .2s, padding .3s var(--ease); }
.contact__links a:hover { color: var(--accent); padding-left: 8px; }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.form input, .form textarea {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--text); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; background: var(--accent-soft); border: 1px solid var(--line-2); }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--danger); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ── legacy classes used by contact/send.php ─────────────────────────── */
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding: calc(var(--nav-h) + 64px) 0 24px; }
.page h1 { font: 400 clamp(48px, 7vw, 88px)/1 var(--serif); letter-spacing: -0.02em; margin: 16px 0; }
.page p { color: var(--text-2); font-size: 18px; }
.breadcrumb { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); display: flex; gap: 10px; align-items: center; }
.dotsep::before { content: "/"; }
.section { padding: 24px 0 96px; }
.block { max-width: 720px; }
.status-panel { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.status-panel--error { border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.status-panel__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.status-panel__title { font: 400 32px/1 var(--serif); }
.status-panel__desc { color: var(--text-2); }
.status-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pill { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.btn:not([class*="btn--"]) { background: var(--text); color: var(--bg); }

/* ── motion ──────────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__field { display: none; }
}

@media print {
  .nav, .hero__field, .cta, .foot__links, .play { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── proof quote & extra groups ──────────────────────────────────────── */
.proof { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); background: var(--bg); }
.proof__quote { margin: 0 0 28px; font: 400 clamp(38px, 5.6vw, 76px)/1.04 var(--serif); letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; }
.proof__quote em { color: var(--accent); }
.proof__body { color: var(--text-2); font-size: 18px; max-width: 36em; margin: 0; }
.also { margin-top: clamp(72px, 9vw, 112px); }
.sec--compact { padding: clamp(56px, 7vw, 96px) 0 0; }
.sec--compact + .cta { margin-top: clamp(40px, 6vw, 80px); }

/* ── minimal pass ───────────────────────────────────────────────────── */
.nav__logo { color: var(--text); flex: none; transition: transform .5s var(--ease); }
.nav__mark:hover .nav__logo { transform: rotate(90deg); }
.nav__mark { gap: 12px; }
.hero { padding-bottom: 0; }
.hero::after { display: none; }
.hero__title { font-size: clamp(48px, 7vw, 96px); }
.case__summary { font-size: 18px; }
.case__visual > img { object-position: left top; }
.project__cover { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); position: relative; }
.project__cover img { width: 100%; }
.project__cover figcaption { position: absolute; right: 14px; bottom: 12px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(236, 231, 220, .55); }
.proof { text-align: left; }
.proof__quote { max-width: 20ch; }
.facts--flat { margin-top: 0; }
.card__sum { font-size: 15px; }
.case__visual:has(> img)::after { display: none; }
.case__visual > img { object-fit: cover; }
.card__img { display: block; margin: -28px -28px 6px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.card__img img, .card__img svg { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s var(--ease); }
.card:hover .card__img img, .card:hover .card__img svg { transform: scale(1.03); }
.card { overflow: hidden; }

/* ═════════════════════════════════════════════════════════════════════
   v5 — Geist type, chaptered journey
   ═════════════════════════════════════════════════════════════════════ */
:root {
  --serif: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
body { font-feature-settings: "ss01", "tnum" 0; letter-spacing: -0.005em; }
em { font-style: normal; }
.hero__title, .sec-head__title, .project-hero__title, .about__title, .cta__title, .case__name,
.card__name, .row__name, .xp h3, .cap h3, .principle h3, .cred-group h2, .pager a, .metrics dd, .fact__v,
.nav__name, .foot__name, .contact__links a, .status-panel__title, .page h1 {
  font-weight: 500; letter-spacing: -0.035em;
}
.project-hero__title { font-size: clamp(44px, 7vw, 96px); line-height: 1; }
.sec-head__title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; }
.metrics dd { font-size: 22px; letter-spacing: -0.02em; }
.metrics--wide dd { font-size: clamp(24px, 2.6vw, 34px); }
.nav__name { font-size: 16px; letter-spacing: -0.01em; }
.card__name { font-size: 22px; }
.row__name { font-size: clamp(24px, 2.6vw, 34px); }
.xp h3 { font-size: 20px; letter-spacing: -0.02em; }
.cred-group h2 { font-size: 28px; }

/* progress + chapter rail */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.rail { position: fixed; left: max(16px, calc((100vw - var(--wrap)) / 2 - 120px)); top: 50%; transform: translateY(-50%); z-index: 40; display: none; }
.rail ol { display: grid; gap: 4px; }
.rail a { display: flex; align-items: center; gap: 10px; min-height: 28px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.rail a span { width: 22px; color: var(--text-3); transition: color .3s; }
.rail a::before { content: ""; width: 14px; height: 1px; background: var(--line-2); transition: width .4s var(--ease), background-color .3s; order: 1; }
.rail a { flex-direction: row; }
.rail a { clip-path: inset(0 calc(100% - 52px) 0 0); transition: clip-path .5s var(--ease), color .3s; }
.rail:hover a, .rail a.is-on { clip-path: inset(0 0 0 0); }
.rail a.is-on { color: var(--text); }
.rail a.is-on span { color: var(--accent); }
.rail a.is-on::before { width: 24px; background: var(--accent); }
@media (min-width: 1460px) { .rail { display: block; } }

/* chapters */
.chapter { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter__head { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: baseline; margin-bottom: clamp(40px, 6vw, 72px); }
.chapter__n { font: 500 13px/1 var(--mono); color: var(--accent); letter-spacing: .06em; }
.chapter__head h2 { font: 500 clamp(32px, 4vw, 52px)/1.05 var(--sans); letter-spacing: -0.04em; }
.chapter__head p { grid-column: 2; margin: 0; color: var(--text-2); font-size: 17px; max-width: 40em; }
.chapter__head .link-arrow { grid-column: 2; justify-self: start; margin-top: 24px; }

/* intro */
.intro { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(64px, 8vw, 112px); }
.intro__title { font: 500 clamp(44px, 6.6vw, 96px)/1 var(--sans); letter-spacing: -0.05em; max-width: 14ch; margin-bottom: 24px; }
.intro__lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 40em; margin-bottom: clamp(36px, 5vw, 56px); }
.reel { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0d0f13; border: 1px solid var(--line); box-shadow: var(--shadow); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__play {
  position: absolute; left: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 1px solid rgba(236, 231, 220, .25);
  background: rgba(13, 15, 19, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #ece7dc; font: 500 14px/1 var(--sans); cursor: pointer; transition: background-color .25s, transform .25s var(--ease);
}
.reel__play:hover { background: rgba(13, 15, 19, .8); transform: translateY(-1px); }
.reel__disc { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #ece7dc; color: #15120b; }
.reel__disc svg { width: 16px; height: 16px; }
.reel.is-playing .reel__play { opacity: 0; pointer-events: none; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 40px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* scale */
.facts--big { margin-top: 0; }
.facts--big .fact__v { font-size: clamp(48px, 7vw, 104px); letter-spacing: -0.05em; font-weight: 500; }
.facts--big .fact__l { font-size: 15px; max-width: 26ch; }

/* story: sticky stage + steps */
.story__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 80px); }
.story__stage { position: sticky; top: calc(var(--nav-h) + 6vh); height: min(62vh, 560px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.story__frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.story__frame.is-on { opacity: 1; transform: none; }
.story__frame > img, .story__frame > svg { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: .35; transition: opacity .5s var(--ease); }
.step.is-on { opacity: 1; }
.step__visual { display: none; }
.step__kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.step__name { font: 500 clamp(30px, 3.4vw, 44px)/1.05 var(--sans); letter-spacing: -0.04em; margin-bottom: 14px; }
.step__line { color: var(--text-2); font-size: 17px; margin-bottom: 24px; max-width: 30em; }
.step .metrics { margin-bottom: 20px; }
@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 0 0 56px; }
  .step__visual { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 20px; background: var(--surface); }
  .step__visual > img, .step__visual > svg { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
}

/* side projects carousel */
.side__nav { grid-column: 2; display: flex; gap: 8px; margin-top: 20px; }
.side__nav .icon-btn { width: 44px; height: 44px; }
.side__nav .icon-btn:hover { transform: none; }
.side__nav [data-scroll="-1"] svg { transform: rotate(180deg); }
.side__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(360px, 82vw); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; cursor: grab;
}
.side__rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.side__rail .card { scroll-snap-align: start; }
.side__rail:focus-visible { outline-offset: -4px; }

/* finale */
.finale { text-align: left; padding-bottom: clamp(96px, 12vw, 160px); }
.finale__title { font: 500 clamp(40px, 6vw, 84px)/1 var(--sans); letter-spacing: -0.05em; margin: 18px 0 28px; }
.finale__mail { display: inline-block; font: 500 clamp(22px, 3.2vw, 40px)/1.1 var(--sans); letter-spacing: -0.03em; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; transition: color .25s, border-color .25s; word-break: break-all; }
.finale__mail:hover { color: var(--accent); border-color: var(--accent); }
.finale__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; }
.finale__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text-2); font-size: 15px; }
.finale__links a:hover { color: var(--accent); }

/* smaller phone screenshots */
.gallery--phone { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: 880px; gap: 20px; }
.gallery--phone .zoom { background: transparent; border: 0; }
.gallery--phone img { max-height: 380px; width: auto; margin: 0 auto; object-fit: contain; }
.gallery--phone figcaption { text-align: center; }
.card__img img[src*="iphone"] { object-fit: contain; background: var(--surface-2); }
.rail a { clip-path: inset(0 calc(100% - 24px) 0 0); }
.rail:hover a, .rail a.is-on { clip-path: inset(0 0 0 0); }
@media (max-width: 600px) {
  .reel__play { padding: 4px; min-height: 0; }
  .reel__play > span:last-child { display: none; }
}
.gallery--phone { grid-template-columns: repeat(auto-fill, minmax(140px, 180px)); justify-content: start; }
.gallery--phone img { width: 100%; height: auto; max-height: none; }
