/* Self-hosted fonts (latin only), from Google Fonts. OFL licence. */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/bodoni-moda-italic-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/dm-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/dm-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/familjen-grotesk-400-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Vladyslav — portfolio. Palette and type: docs/design.md */

:root {
  --dusk: #2A120C;
  --sienna: #6E2A1A;
  --ember: #C4552E;
  --apricot: #F19A62;
  --peach: #F6C9A8;
  --clay: #EBD5C5;
  --ink-soft: #6B4A3E;
  --glow: #FBEDE2;
  --glow-soft: #C9A898;

  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Familjen Grotesk', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;

  /* serif weight and optical size: thicker hairlines than the display cut, so they stay crisp on screen */
  --serif-weight: 500;
  --serif-vary: 'opsz' 28;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

/* Pages hand over to each other: the screenshot of a work grows into its case page (Chrome, Edge, Safari 18.2+). */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 0.6s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--dusk);
  color: var(--glow);
  font-family: var(--sans);
  font-size: clamp(17px, 0.3vw + 16px, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--apricot);
  color: var(--dusk);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--apricot);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Nav pill ---------- */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  translate: -50% 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgb(42 18 12 / 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgb(251 237 226 / 0.12);
  font-size: 14px;
}
.nav a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--glow);
  transition: background-color 0.3s var(--ease-out);
}
.nav a:hover { background: rgb(251 237 226 / 0.1); }
.nav { transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out); }
.nav a { transition: background-color 0.3s var(--ease-out), color 0.4s var(--ease-out); }
.nav.is-light {
  background: rgb(246 230 218 / 0.7);
  border-color: rgb(42 18 12 / 0.14);
}
.nav.is-light a { color: var(--dusk); }
.nav.is-light a:hover { background: rgb(42 18 12 / 0.07); }
.nav.is-light .nav__mark { border-color: rgb(42 18 12 / 0.3); }
.nav__mark {
  width: 36px;
  justify-content: center;
  padding: 0 !important;
  border: 1px solid rgb(251 237 226 / 0.35);
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--serif-weight);
  font-variation-settings: var(--serif-vary);
  font-size: 18px;
}
.nav__cta .arrow { margin-left: 6px; transition: translate 0.3s var(--ease-out); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  /* the first screen is a picture, not text to copy: no blue selection box over the name */
  -webkit-user-select: none;
  user-select: none;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  /* still fallback when WebGL is missing: a soft sunset, no loud gradient */
  background:
    radial-gradient(120% 90% at 88% 8%, #C4552E 0%, transparent 60%),
    radial-gradient(90% 80% at 10% 100%, #170805 0%, transparent 70%),
    #4A1A10;
}
.hero[data-variant='afterglow'] {
  background:
    radial-gradient(120% 90% at 88% 8%, #FFF0E2 0%, transparent 60%),
    radial-gradient(90% 80% at 10% 100%, #B44F2B 0%, transparent 70%),
    #E3824F;
}

.hero__silk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px var(--pad) 72px;
  text-align: center;
  color: var(--glow);
  --soft: var(--glow-soft);
  transition: color 0.8s var(--ease-out);
}
.hero__content--copy { display: none; pointer-events: none; }

.hero[data-variant='afterglow'] .hero__content {
  color: var(--dusk);
  --soft: #5A2B1D;
}

/* Split: same line as SPLIT_LINE in js/silk.js (60% at the top, 40% at the bottom). */
.hero[data-variant='split'] .hero__content--main {
  clip-path: polygon(0 0, 60% 0, 40% 100%, 0 100%);
}
.hero[data-variant='split'] .hero__content--copy {
  display: flex;
  color: var(--dusk);
  --soft: #5A2B1D;
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%);
}

.hero__kicker {
  margin: 0 0 clamp(16px, 2.5vh, 28px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.hero__name {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--serif-weight);
  font-variation-settings: var(--serif-vary);
  font-size: clamp(64px, 16vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  /* keep the descender of y inside the mask */
  padding-bottom: 0.22em;
  margin-bottom: -0.14em;
  overflow: hidden;
}
.hero__name .ch {
  display: inline-block;
  translate: 0 105%;
  animation: rise 1.1s var(--ease-out) forwards;
  animation-delay: calc(0.15s + var(--i) * 45ms);
}

.hero__role {
  margin: clamp(14px, 2.4vh, 26px) 0 0;
  font-size: clamp(19px, 1.2vw + 14px, 28px);
  line-height: 1.3;
  opacity: 0;
  animation: fade 0.9s var(--ease-out) 0.7s forwards;
}
.hero__role em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--serif-weight);
  font-variation-settings: var(--serif-vary);
  font-size: 1.12em;
}

/* rotating word: wrapper animates its width, letters slide in from below */
.word {
  display: inline-block;
  position: relative;
  /* clip-path instead of overflow:hidden keeps the word on the text baseline */
  vertical-align: baseline;
  clip-path: inset(-0.1em -0.15em -0.3em -0.15em);
  white-space: nowrap;
  transition: width 0.6s var(--ease-out);
}
.word__item {
  display: inline-block;
}
.word__item .ch {
  display: inline-block;
  white-space: pre;
}
.word__item.is-in .ch {
  animation: rise 0.7s var(--ease-out) both;
  animation-delay: calc(var(--i) * 20ms);
}
.word__item.is-out {
  position: absolute;
  left: 0;
  top: 0;
}
.word__item.is-out .ch {
  animation: leave 0.5s var(--ease-out) both;
  animation-delay: calc(var(--i) * 15ms);
}

.hero__lede {
  max-width: 34ch;
  margin: clamp(14px, 2vh, 22px) auto 0;
  color: var(--soft);
  font-size: clamp(16px, 0.3vw + 15px, 18px);
  line-height: 1.55;
  opacity: 0;
  animation: fade 0.9s var(--ease-out) 0.9s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(22px, 3.4vh, 36px);
  opacity: 0;
  animation: fade 0.9s var(--ease-out) 1.05s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), background-color 0.3s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: translate 0.3s var(--ease-out); }

.btn--sun {
  background: var(--apricot);
  color: var(--dusk);
}
.btn--sun:hover { background: #F5AC7B; }

.hero[data-variant='afterglow'] .btn--sun,
.hero__content--copy .btn--sun {
  background: var(--dusk);
  color: var(--glow);
}

.hero__meta {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  opacity: 0;
  animation: fade 0.9s var(--ease-out) 1.2s forwards;
}

.btn--line {
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
}
.btn--line:hover { background: rgb(251 237 226 / 0.08); }

/* ---------- Loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #160705;
  color: var(--glow);
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
/* no JavaScript (or it failed to start): no loading screen, and no empty 3D section; the work cards below list everything */
html:not(.is-loading) .loader:not(.is-done) { display: none; }
html:not(.js) .flight { display: none; }
.loader__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--serif-weight);
  font-variation-settings: var(--serif-vary);
  font-size: 28px;
}
.loader__count {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--glow-soft);
}
.is-loading .hero *,
.is-loading .hero { animation-play-state: paused !important; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- Flight: tunnel → sphere ---------- */

.flight {
  position: relative;
  height: 800vh;
  background: #160705;
  color: var(--glow);
}
.flight__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.flight__stage::after {
  /* quiet shade under the captions so they stay readable over bright screenshots */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgb(22 7 5 / 0.82), rgb(22 7 5 / 0));
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
}
.flight.is-exploding .flight__stage::after,
.flight.is-exploding .flight__title,
.flight.is-exploding .flight__index:not(:focus-within) {
  opacity: 0;
}
.flight__title, .flight__index { transition: opacity 0.6s var(--ease-out); }
.flight__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}
.flight.is-sphere .flight__canvas { cursor: grab; }

.flight__title {
  position: absolute;
  z-index: 1;
  top: 26px;
  left: var(--pad);
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow-soft);
}
.flight__title span { margin-left: 8px; opacity: 0.6; }

.flight__caption {
  position: absolute;
  z-index: 1;
  left: var(--pad);
  bottom: clamp(24px, 6vh, 56px);
  display: grid;
  gap: 6px;
  max-width: min(80vw, 640px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), translate 0.5s var(--ease-out);
}
.flight__caption.is-hidden { opacity: 0; translate: 0 10px; }
.cap-num, .cap-niche {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow-soft);
}
.cap-num { color: var(--apricot); }
.cap-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--serif-weight);
  font-variation-settings: var(--serif-vary);
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1;
  text-shadow: 0 2px 24px rgb(22 7 5 / 0.6);
}

.flight__index {
  position: absolute;
  z-index: 1;
  right: var(--pad);
  bottom: clamp(24px, 6vh, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.flight__index a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  justify-content: flex-end;
  color: var(--glow-soft);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}
.flight__index a::after {
  content: '';
  /* a fixed 36px line, scaled from its right end: no layout work when the active work changes */
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  transform: scaleX(0.39);
  transform-origin: 100% 50%;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.flight__index a:hover,
.flight__index a:focus-visible,
.flight__index a.is-active { color: var(--glow); }
.flight__index a.is-active::after { transform: none; opacity: 1; background: var(--apricot); }
.idx-num { opacity: 0.55; }

.flight__hint {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 76px;
  translate: -50% 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out);
}
.flight__hint.is-on { opacity: 1; translate: -50% 0; }

/* Skip the flight: a quiet pill that also shows how far through the tunnel and sphere you are */
.flight__skip {
  position: absolute;
  z-index: 2;
  /* bottom centre, between the caption (left) and the 01–08 list (right) */
  bottom: clamp(20px, 3.6vh, 34px);
  left: 50%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid rgb(251 237 226 / 0.2);
  border-radius: 999px;
  /* solid enough to read without a backdrop blur, which would be redone every frame over the 3D */
  background: rgb(42 18 12 / 0.78);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--glow);
  transition: opacity 0.5s var(--ease-out), background-color 0.3s var(--ease-out);
}
.flight__skip:hover { background: rgb(42 18 12 / 0.92); }
.flight__skip .arrow { transition: translate 0.3s var(--ease-out); }
.flight__skip-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--apricot);
  transform: scaleX(0);
  transform-origin: left;
}
.flight.is-exploding .flight__skip:not(:focus-visible),
.flight.is-static .flight__skip { opacity: 0; pointer-events: none; }
.flight.is-static .flight__skip { display: none; }

.flight__grid { display: none; }
.hint-touch { display: none; }
@media (hover: none) {
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}

@media (max-width: 699px) {
  /* the pill nav sits where the title would be; the caption names each work instead */
  .flight:not(.is-static) .flight__title {
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .flight__index .idx-name { display: none; }
  .flight__index { gap: 0; }
  .flight__hint { white-space: nowrap; font-size: 11px; }
  .flight__caption { max-width: 70vw; bottom: 78px; }
  .flight__index { bottom: 78px; }
}

/* still version */
.flight.is-static { height: auto; padding: 96px var(--pad); }
.flight.is-static .flight__stage { position: relative; height: auto; overflow: visible; }
.flight.is-static .flight__canvas,
.flight.is-static .flight__caption,
.flight.is-static .flight__index,
.flight.is-static .flight__hint { display: none; }
.flight.is-static .flight__title { position: static; margin-bottom: 28px; }
.flight.is-static .flight__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 28px 20px;
}
.gcard {
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: var(--glow);
}
.gcard img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 8px;
}
.gcard__num, .gcard__niche {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow-soft);
}
.gcard__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--serif-weight);
  font-size: 28px;
  line-height: 1.1;
}

/* ---------- Shared ---------- */

.kicker {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.serif-em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--serif-weight);
  font-variation-settings: var(--serif-vary);
}
.btn--ink { background: var(--dusk); color: var(--glow); }
.btn--ink:hover { background: var(--sienna); }

/* ---------- Works: stacked cards on clay ---------- */

.works {
  position: relative;
  background: var(--clay);
  color: var(--dusk);
  padding: clamp(96px, 14vh, 160px) var(--pad) clamp(64px, 10vh, 120px);
  /* the dark flight above melts into clay */
  box-shadow: 0 -1px 0 var(--clay);
}
.works__head {
  max-width: 1200px;
  margin: 0 auto clamp(48px, 8vh, 96px);
}
.works__title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.works__title em { letter-spacing: -0.01em; color: var(--sienna); }
.works__lede {
  max-width: 52ch;
  margin: 22px 0 0;
  color: var(--ink-soft);
}

.works__stack {
  max-width: 1280px;
  margin: 0 auto;
}
.wcard {
  position: sticky;
  top: calc(84px + var(--i) * 10px);
  margin-bottom: 10vh;
  /* each card wears its site's colours (docs/design.md: works stack) */
  --card: #F3E2D4;
  --card-ink: var(--dusk);
  --card-soft: var(--ink-soft);
  --card-accent: var(--ember);
  --frame: #2A120C;
}
.wcard:last-child { margin-bottom: 0; }
[data-work='fieldnote'] { --card: #DCE4EF; --card-ink: #1C1B19; --card-soft: #4A5568; --card-accent: #2B4C7E; --frame: #1C1B19; }
[data-work='cassia'] { --card: #BFE3E8; --card-ink: #13323A; --card-soft: #2F5560; --card-accent: #0F6A7A; --frame: #13323A; }
[data-work='porchside'] { --card: #1E1A17; --card-ink: #F3EDE4; --card-soft: #A79C90; --card-accent: #E8783A; --frame: #0B0908; }
[data-work='false-summit'] { --card: #2F4034; --card-ink: #F8F7F4; --card-soft: #C2C9BC; --card-accent: #F29A75; --frame: #151C17; }
[data-work='feuille'] { --card: #DCC59E; --card-ink: #2B2521; --card-soft: #4A3F35; --card-accent: #6B3A12; --frame: #2B2521; }
[data-work='raking-light'] { --card: #CFE2D4; --card-ink: #1D2626; --card-soft: #3F4A48; --card-accent: #8E3A26; --frame: #121515; }
[data-work='gnomon'] { --card: #EAD9BF; --card-ink: #1B1A17; --card-soft: #5A5247; --card-accent: #7E3A20; --frame: #2B2622; }
[data-work='hartwell'] { --card: #2F4A3A; --card-ink: #EDE4D0; --card-soft: #C5CDBE; --card-accent: #E9B970; --frame: #18211C; }

.wcard__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
  padding: clamp(22px, 3.2vw, 52px);
  border-radius: 22px;
  background: var(--card);
  color: var(--card-ink);
  box-shadow: 0 30px 60px -30px rgb(42 18 12 / 0.5);
  transform-origin: 50% 0;
  will-change: transform;
  position: relative;
}
/* the card underneath darkens under a shade layer (only its opacity changes: cheaper than filter) */
.wcard__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.wcard__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.wcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-soft);
}
.wcard__meta span:first-child { color: var(--card-accent); }
.wcard__name {
  margin: 0;
  padding-top: clamp(18px, 4vh, 48px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--serif-weight);
  font-variation-settings: var(--serif-vary);
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.wcard__line {
  max-width: 36ch;
  margin: 18px 0 0;
  color: var(--card-soft);
}
.wcard__tag {
  margin: 14px 0 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-soft);
}
.wcard .btn--ink { background: var(--card-ink); color: var(--card); }
.wcard .btn--ink:hover { background: var(--card-accent); color: var(--card); }
.wcard__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--card-line { border: 1px solid color-mix(in srgb, var(--card-ink) 40%, transparent); color: var(--card-ink); }
.btn--card-line:hover { background: color-mix(in srgb, var(--card-ink) 8%, transparent); }
.wcard :focus-visible { outline-color: var(--card-ink); }

/* Screens are shown whole, never cropped: the frames keep the screenshot proportions. */
.wcard__shots {
  position: relative;
  min-width: 0;
  padding: 0 10% 9% 0;
}
.frame {
  margin: 0;
  overflow: hidden;
  background: var(--frame);
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.55);
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
}
.frame--desk {
  position: relative;
  border-radius: 12px;
  padding-top: 22px;
}
.frame--desk::before {
  /* three dots of a browser bar */
  content: '';
  position: absolute;
  top: 8px;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.4);
  box-shadow: 11px 0 0 rgb(255 255 255 / 0.4), 22px 0 0 rgb(255 255 255 / 0.4);
}
.frame--phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22%;
  border-radius: 22px;
  padding: 5px;
}
.frame--phone img { border-radius: 17px; }

@media (max-width: 799px) {
  .wcard { top: calc(72px + var(--i) * 6px); }
  .wcard__inner { grid-template-columns: 1fr; }
  .wcard__name { padding-top: 14px; }
  .frame--phone { width: 24%; border-radius: 16px; padding: 4px; }
  .frame--phone img { border-radius: 12px; }
}

/* ---------- Services ---------- */

.services {
  background: var(--clay);
  color: var(--dusk);
  padding: clamp(64px, 12vh, 140px) var(--pad);
}
.services__title {
  max-width: 1280px;
  margin: 0 auto clamp(32px, 6vh, 64px);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.services__title em { color: var(--sienna); }
.services__list {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(42 18 12 / 0.2);
}
.services__list li {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 8px 24px;
  align-items: baseline;
  padding: clamp(20px, 3.4vh, 36px) 0;
  border-bottom: 1px solid rgb(42 18 12 / 0.2);
}
.services__list li > * { transition: translate 0.25s var(--ease-out); }
.services__num {
  /* sans numerals: Bodoni's hairlines (the diagonal of 4) vanish at this size */
  font-family: var(--sans);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #963A1A;
}
.services__list h3 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.services__list p { margin: 0; max-width: 46ch; color: var(--ink-soft); }
@media (max-width: 699px) {
  .services__list li { grid-template-columns: 3.4rem 1fr; }
  .services__list p { grid-column: 2; }
}

/* ---------- About ---------- */

.about {
  background: var(--glow);
  color: var(--dusk);
  padding: clamp(72px, 14vh, 160px) var(--pad);
}
.about__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 5vw, 56px);
}
.about__title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--serif-weight);
  font-variation-settings: var(--serif-vary);
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.about__title em { color: #963A1A; }
.about__body { max-width: 60ch; }
.about__body p {
  margin: 0 0 1.1em;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
}
.about__body p:first-child { color: var(--dusk); }
.about__sub {
  margin: clamp(36px, 6vh, 56px) 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(42 18 12 / 0.2);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.about__terms { margin: 0; }
.about__terms > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 4px 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgb(42 18 12 / 0.2);
}
.about__terms dt {
  font-weight: 600;
  font-size: 17px;
}
.about__terms dd { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.about__steps { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.about__steps li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 4px 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgb(42 18 12 / 0.2);
}
.about__num {
  font-weight: 500;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #963A1A;
}
.about__steps h4 { margin: 0 0 4px; font-weight: 600; font-size: 17px; }
.about__steps p { margin: 0; font-size: inherit; line-height: 1.5; color: var(--ink-soft); }
@media (min-width: 900px) {
  .about__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .about__title { position: sticky; top: 120px; }
  .about__body { justify-self: end; }
}
@media (max-width: 479px) {
  .about__terms > div { grid-template-columns: 1fr; }
  .about__steps li { grid-template-columns: 3rem 1fr; }
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px var(--pad);
  overflow: hidden;
  background: #2A120C;
  color: var(--glow);
  text-align: center;
}
.contact__silk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}
.contact .kicker { color: var(--glow-soft); }
.contact__title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--serif-weight);
  font-variation-settings: var(--serif-vary);
  font-size: clamp(34px, 8.4vw, 150px);
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.contact__title a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(28px, 5vh, 48px);
}
.contact__actions .btn--sun { border: 0; cursor: pointer; font-family: inherit; }
.contact__status {
  min-height: 1.6em;
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--apricot);
}

/* other channels: small round logo buttons under the email buttons */
.social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(251 237 226 / 0.3);
  border-radius: 50%;
  color: var(--glow);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.social svg { fill: currentColor; }
.social a:hover,
.social a:focus-visible { background: var(--apricot); border-color: var(--apricot); color: var(--dusk); }
.social a:active { transform: scale(0.96); }
.footer__links { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; }
.footer__links a { color: var(--glow); text-underline-offset: 4px; }
.footer__links a:hover { color: var(--apricot); }
.works__all { margin: clamp(40px, 6vw, 72px) 0 0; text-align: center; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px var(--pad);
  background: #160705;
  color: var(--glow-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: reduce) {
  .wcard__inner { transform: none !important; }
  .wcard__shade { display: none; }
  .services__list li > * { transition: none; }
}

@keyframes rise { from { translate: 0 105%; } to { translate: 0 0; } }
@keyframes leave { from { translate: 0 0; } to { translate: 0 -110%; } }
@keyframes fade { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 599px) {
  .hero__meta span:last-child { display: none; }
  .hero__meta { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__name .ch,
  .word__item.is-in .ch,
  .word__item.is-out .ch {
    animation: none;
    translate: 0 0;
  }
  .word__item.is-out { display: none; }
  .hero__role,
  .hero__lede,
  .hero__actions,
  .hero__meta {
    animation: fadeOnly 0.6s linear forwards;
  }
  .word { transition: none; }
  @keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
}

/* Hover motion only where there is a real mouse: a tap on a phone would leave it stuck */
@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover .arrow { translate: 2px 2px; }
  .btn:hover .arrow { translate: 3px -3px; }
  .btn:hover .arrow--down { translate: 0 3px; }
  .flight__skip:hover .arrow { translate: 0 2px; }
  .btn:hover .arrow--right { translate: 3px 0; }
  .services__list li:hover > * { translate: 10px 0; }
  .contact__title a:hover { background-size: 100% 2px; }
}
