@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Folio Bk BT";
  src: url("assets/fonts/FolioBkBT-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Book is the named cut (style "Book"), not a generic Regular 400 axis. */
@font-face {
  font-family: "Folio Bk BT Book";
  src: url("assets/fonts/FolioBkBT-Book.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Folio Bk BT";
  src: url("assets/fonts/FolioBkBT-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Garrigos Ornamentos";
  src: url("assets/fonts/Garrigos-Ornamentos.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "Folio Bk BT", "Century Gothic", "Futura", Avenir, Helvetica, Arial, sans-serif;
  --font-book: "Folio Bk BT Book", var(--font-body);
  --font-ornament: "Garrigos Ornamentos", var(--font-body);
  --bg: #f3f3f3;
  --color-bg: var(--bg);
  --gradient-horizontal: repeating-linear-gradient(
    to right,
    #86cd8b,
    #4dccf9,
    #e8a7ed,
    #f6aa81,
    #86cd8b 12em
  );
  --fg: #000;
  --fg-muted: rgba(0, 0, 0, 0.3);
  --fg-faded: rgba(0, 0, 0, 0.4);
  --gutter: 20px;
  --radius-image: 4px;
  --radius-card: 6px;
  --card-media-h: 35dvh;
  --card-media-h-hover: 45dvh;
  --card-hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
}

/* Selection can't paint a gradient, so the highlight uses the rose from the menu palette. */
::selection {
  background-color: #e8a7ed;
  color: #171615;
}

@supports (background-image: linear-gradient(in oklch to right, red, blue)) {
  :root {
    --gradient-horizontal: repeating-linear-gradient(
      in oklch to right,
      #86cd8b,
      #4dccf9,
      #e8a7ed,
      #f6aa81,
      #86cd8b 12em
    );
  }
}

@keyframes link-bg-anim {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 2000px 0;
  }
}

.menu-overlay__contact-link:is(:hover, :active, :focus-visible, .is-hot),
.action-btn:focus-visible {
  background-color: transparent;
  background-image: var(--gradient-horizontal);
  background-repeat: repeat-x;
  background-attachment: fixed;
  background-position: 0 0;
  background-size: auto 100%;
  color: var(--color-bg);
  text-decoration: none;
  animation: link-bg-anim 8s linear infinite;
  border-radius: 0.2em;
  outline: none;
}

@media (hover: hover) {
  .action-btn:hover {
    background-color: transparent;
    background-image: var(--gradient-horizontal);
    background-repeat: repeat-x;
    background-attachment: fixed;
    background-position: 0 0;
    background-size: auto 100%;
    color: var(--color-bg);
    text-decoration: none;
    animation: link-bg-anim 8s linear infinite;
    border-radius: 0.2em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-overlay__link:is(:hover, :active, :focus-visible, .is-hot) span,
  .menu-overlay__contact-link:is(:hover, :active, :focus-visible, .is-hot),
  .action-btn:hover,
  .action-btn:focus-visible {
    animation: none;
  }
}

.squish-cursor {
  --cursor-size: 16px;
  --soon-width: var(--cursor-size);
  --soon-duration: 240ms;
  --cursor-ease: cubic-bezier(0.23, 1, 0.32, 1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: var(--cursor-size);
  height: var(--cursor-size);
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #4DCCF9;
  color: #000;
  pointer-events: none;
  container-type: inline-size;
  transform-origin: calc(var(--cursor-size) / 2) calc(var(--cursor-size) / 2);
  will-change: transform;
  opacity: 0;
  transition: width var(--soon-duration) var(--cursor-ease);
}

.squish-cursor.is-visible {
  opacity: 1;
}

.squish-cursor.is-coming-soon {
  width: var(--soon-width);
}

.squish-cursor.is-gradient {
  background-color: transparent;
  background-image: var(--gradient-horizontal);
  background-repeat: repeat-x;
  background-attachment: fixed;
  background-position: 0 0;
  background-size: auto 100%;
  animation: link-bg-anim 8s linear infinite;
}

.squish-cursor__label {
  flex: 0 0 auto;
  padding-left: 6px;
  padding-right: 7px;
  color: #000;
  font-family: "Folio Bk BT", var(--font-body);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
  text-wrap-style: balance;
  white-space: nowrap;
}

@container (width <= 16px) {
  .squish-cursor__label {
    opacity: 0;
  }
}

img {
  display: block;
  max-width: 100%;
}

.page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Header */
.header {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 34px var(--gutter) 0;
  min-height: 34px; /* logo is fixed-positioned (out of flow) — keep the space reserved */
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 24px;
  text-transform: uppercase;
  overflow: visible;
}

.nav__link {
  --nav-mark-w: 63px;
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
}

.nav__link--about {
  --nav-mark-w: 70px;
}

.nav__link--work,
.nav__link--talks {
  --nav-mark-w: 63px;
}

.nav__link--writings {
  --nav-mark-w: 99px;
}

.nav__label {
  position: relative;
  z-index: 0;
}

.nav__mark {
  display: none;
}

.nav__link--muted {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .nav__mark {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--nav-mark-w);
    height: 28px;
    overflow: visible;
    pointer-events: none;
    transform: translate(-50%, -50%);
  }

  .nav__mark-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
    opacity: 0;
    transition: opacity 140ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  .nav__link--about .nav__mark-img {
    content: url("assets/icons/about-hover.svg");
  }

  .nav__link--work .nav__mark-img {
    content: url("assets/icons/work-hover.svg");
  }

  .nav__link--talks .nav__mark-img {
    content: url("assets/icons/talks-hover.svg");
  }

  .nav__link--writings .nav__mark-img {
    content: url("assets/icons/writings-hover.svg");
  }

  .nav__label {
    transition: opacity 140ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  .nav__link:has(.nav__mark):is(:hover, :focus-visible) .nav__label,
  .nav__link:has(.nav__mark)[aria-current="page"] .nav__label {
    opacity: 0;
  }

  .nav__link:is(:hover, :focus-visible) .nav__mark-img--hover {
    opacity: 1;
  }

  .nav__link[aria-current="page"] .nav__mark-img--hover {
    opacity: 0;
  }

  .nav__link[aria-current="page"] .nav__mark-img--selected {
    opacity: 1;
  }

  .nav__link--muted:is(:hover, :focus-visible) {
    opacity: 1;
  }

  .nav__link:focus-visible {
    outline: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__mark-img,
  .nav__label {
    transition: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Fixed to the viewport (not the header) so it never moves and always
   renders above the menu overlay, instead of a second logo living inside
   the overlay at a slightly different offset. */
.logo {
  position: fixed;
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 200;
}

.logo__mark {
  height: 34px;
  width: auto;
}

.sound-toggle {
  --sound-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --sound-arrive: cubic-bezier(0.19, 1, 0.22, 1);
  --sound-leave: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--fg);
  cursor: pointer;
  transition: transform 140ms var(--sound-ease);
}

.sound-toggle:active {
  transform: scale(0.97);
}

.sound-toggle__swap {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.sound-toggle__icon {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
}

/* The cone stays put. Only the waves and the slash move, so the mark
   reads as one speaker changing state rather than two icons swapping. */
.sound-toggle__waves,
.sound-toggle__slash {
  transform-box: fill-box;
  transform-origin: center;
}

.sound-toggle__waves {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 120ms var(--sound-leave),
    transform 120ms var(--sound-leave);
}

.sound-toggle.is-muted .sound-toggle__waves {
  opacity: 0;
  transform: scale(0.92);
}

.sound-toggle__slash {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 120ms var(--sound-leave),
    transform 120ms var(--sound-leave);
}

.sound-toggle.is-muted .sound-toggle__slash {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 180ms var(--sound-arrive),
    transform 180ms var(--sound-arrive);
}

/* Restoring a muted preference on load must not replay the swap. */
.sound-toggle.is-instant .sound-toggle__waves,
.sound-toggle.is-instant .sound-toggle__slash {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .sound-toggle {
    transition: none;
  }

  .sound-toggle__waves,
  .sound-toggle__slash,
  .sound-toggle.is-muted .sound-toggle__waves,
  .sound-toggle.is-muted .sound-toggle__slash {
    transform: none;
    transition: opacity 160ms linear;
  }
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 8dvh, 98px) var(--gutter) 0;
  flex: 0 0 auto;
}

.hero__heading {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(28px, calc(2.4vw + 1.6dvh), 42px);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fg);
}

.hero__doodle-target {
  position: relative;
  display: inline-block;
}

.hero__doodle {
  position: absolute;
  left: 0.262em;
  top: -0.381em;
  width: 6.238em;
  height: 2em;
  pointer-events: none;
}

.hero__word {
  display: inline-block;
  height: 0.762em;
  width: auto;
  vertical-align: middle;
  margin: 0 0.048em;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.action-btn {
  background: #fff;
  border: none;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.16px;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.2em;
}

.action-btn--copy {
  display: inline-grid;
  vertical-align: top;
}

.action-btn--copy > span {
  grid-area: 1 / 1;
}

.action-btn__width {
  visibility: hidden;
  pointer-events: none;
}

.spacer {
  flex: 1 1 auto;
  min-height: 0;
}

/* Bottom marquee */
.marquee {
  width: 100%;
  overflow: hidden;
  padding-bottom: var(--gutter);
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.marquee__track {
  display: flex;
  align-items: flex-end;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee__row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-right: 16px;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation-duration: 120s;
  }
}

.marquee:has(.card:hover) .marquee__track,
.marquee:has(.card:active) .marquee__track {
  animation-play-state: paused;
}

.card {
  display: block;
  flex: 0 0 auto;
  align-self: flex-end;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow:
    0 1px 1px -0.5px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.card__media {
  background: var(--card-fill, #fff);
  overflow: hidden;
  position: relative;
  height: var(--card-media-h);
  width: auto;
  transition:
    height 350ms var(--card-hover-ease),
    background-color 0.25s ease;
}

.card__media img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

@media (hover: hover) and (pointer: fine) {
  .marquee {
    height: calc(var(--card-media-h-hover) + var(--gutter));
  }

  a.card:hover .card__media,
  a.card:focus-visible .card__media {
    height: var(--card-media-h-hover);
  }
}

html.figma-hover .marquee {
  height: calc(var(--card-media-h-hover) + var(--gutter));
}

html.figma-hover a.card.figma-hover-target .card__media {
  height: var(--card-media-h-hover);
}

@media (prefers-reduced-motion: reduce) {
  .card__media {
    transition: background-color 0.2s ease;
  }
}

/* Mobile menu trigger / close bar (shared look) */
.menu-bar {
  display: none;
  width: 100%;
  flex: 0 0 auto;
  min-height: 44px;
  background: #fff;
  border: none;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 24px;
  text-transform: uppercase;
  color: #171615;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.menu-bar:active {
  background: #f3f3f3;
}

/* Full-screen mobile menu overlay: concentric-ring reveal.
   Every ring shares one center and every length is a multiple of --u
   (px in an 863px-tall frame, scaled to the viewport height), so labels
   and links stay inside their bands at any screen height. */
.menu-overlay {
  --menu-fill: var(--bg);
  --u: clamp(0.6px, calc(100dvh / 863), 1.25px);
  --cy: calc(762 * var(--u));
  --r-about: calc(576 * var(--u));
  --r-works: calc(502 * var(--u));
  --r-writings: calc(425 * var(--u));
  --r-talks: calc(343 * var(--u));
  --r-core: calc(277.5 * var(--u));
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  /* The lead ring is the entrance. A fill here would paint the whole
     screen on the first frame — the same color as that ring — so the
     scale never reads and the menu cuts in. */
  background: transparent;
}

/* After the rings have landed, fill any gap the circle doesn't cover. */
.menu-overlay.is-open:not(.is-animating) {
  background: var(--menu-fill);
}

@media (prefers-reduced-motion: reduce) {
  .menu-overlay.is-open {
    background: var(--menu-fill);
  }
}

.menu-overlay[hidden] {
  display: none;
}

.menu-overlay.is-animating .ring,
.menu-overlay.is-animating .menu-overlay__logo,
.menu-overlay.is-animating .sound-toggle,
.menu-overlay.is-animating .menu-overlay__link,
.menu-overlay.is-animating .menu-overlay__contact-link,
.menu-overlay.is-animating .menu-overlay__close {
  will-change: transform, scale, opacity;
}

.menu-overlay__logo {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 10;
  display: block;
  width: max-content;
  translate: -50% 0;
  scale: 0.92;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
}

.menu-overlay__logo img {
  display: block;
  width: 230px;
  height: auto;
}

.ring-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ring {
  --d: 0px;
  position: absolute;
  left: 50%;
  top: calc(var(--cy) - var(--d) / 2);
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  translate: -50% 0;
  scale: 0.32;
  /* Every ring grows out of the bottom center of the screen. */
  transform-origin: 50% calc(100dvh - var(--cy) + var(--d) / 2);
  backface-visibility: hidden;
}

/* Reaches every corner, so nothing on the page shows once it lands. */
.ring--cover { --d: calc(2 * (50vw + var(--cy))); background: var(--bg); }
.ring--about { --d: calc(2 * var(--r-about)); background: #e8a7ed; }
.ring--works { --d: calc(2 * var(--r-works)); background: #4dccf9; }
.ring--writings { --d: calc(2 * var(--r-writings)); background: #f6aa81; }
.ring--talks { --d: calc(2 * var(--r-talks)); background: #86cd8b; }
.ring--core { --d: calc(2 * var(--r-core)); background: var(--bg); }

.menu-overlay__nav {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* Each strip spans its band at the center line: from its ring's outer
   radius down to the next ring's outer radius. */
.menu-overlay__link {
  --r-outer: 0px;
  --r-inner: 0px;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--cy) - var(--r-outer));
  height: calc(var(--r-outer) - var(--r-inner));
  display: flex;
  align-items: center;
  justify-content: center;
  scale: 0.92;
  opacity: 0;
  font-family: var(--font-body);
  font-size: 20px;
  letter-spacing: 0.2px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-overlay__link--about {
  --r-outer: var(--r-about);
  --r-inner: var(--r-works);
}

.menu-overlay__link--work {
  --r-outer: var(--r-works);
  --r-inner: var(--r-writings);
}

.menu-overlay__link--writings {
  --r-outer: var(--r-writings);
  --r-inner: var(--r-talks);
}

.menu-overlay__link--talks {
  --r-outer: var(--r-talks);
  --r-inner: var(--r-core);
}

.menu-overlay__link:is(:hover, :active, :focus-visible, .is-hot) span {
  background-color: transparent;
  background-image: var(--gradient-horizontal);
  background-repeat: repeat-x;
  background-attachment: fixed;
  background-position: 0 0;
  background-size: auto 100%;
  color: var(--color-bg);
  animation: link-bg-anim 8s linear infinite;
  border-radius: 0.2em;
}

.menu-overlay__contact {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--cy) - 133 * var(--u));
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(32 * var(--u));
}

.menu-overlay__contact-row {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.menu-overlay__contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  scale: 0.92;
  opacity: 0;
  background: none;
  border: none;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.16px;
  line-height: normal;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-overlay__contact-link--email {
  display: inline-grid;
}

.menu-overlay__contact-link--email > span {
  grid-area: 1 / 1;
}

.menu-overlay__contact-width {
  visibility: hidden;
  pointer-events: none;
}

.menu-overlay__contact-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.menu-overlay__contact-link:is(:hover, :active, :focus-visible, .is-hot) .menu-overlay__contact-arrow {
  filter: brightness(0) invert(1);
}

.nav__link {
  padding-inline: 0.12em;
  margin-inline: -0.12em;
}

.menu-overlay__link span {
  padding-inline: 0.12em;
  margin-inline: -0.12em;
}

.menu-overlay__close {
  position: absolute;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 10;
  width: auto;
  min-height: 0;
  padding: 8px 12px;
  translate: -50% 0;
  font-size: 16px;
  letter-spacing: 0.16px;
  line-height: normal;
  opacity: 0;
  scale: 0.92;
}

/* Compact / tablet: mobile chrome before nav overlaps the centered logo */
@media (max-width: 1024px) {
  :root {
    --mobile-logo-mark-h: 40px;
  }

  .header {
    justify-content: center;
    padding: 26px var(--gutter) 0;
  }

  .nav,
  .header .sound-toggle {
    display: none;
  }

  .menu-bar {
    display: flex;
  }

  body.work .header,
  body.case .header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    background: var(--bg);
    padding: 26px var(--gutter) 20px;
    min-height: 0;
    overflow: visible;
  }

  body.work .header__back,
  body.case .header__back {
    display: flex;
    grid-column: 1;
    align-items: center;
    width: 38px;
    height: 26px;
    color: var(--fg);
  }

  body.work .header__back {
    justify-self: start;
  }

  body.work .logo,
  body.case .logo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    grid-column: 2;
    justify-self: center;
    z-index: 1;
  }

  body.work .logo__mark,
  body.case .logo__mark {
    display: block;
    height: var(--mobile-logo-mark-h);
    width: auto;
    max-height: none;
    object-fit: contain;
  }

  body.work .work-main {
    padding-top: 0;
    gap: 45px;
  }
}

.header__back {
  display: none;
}

.header__back img {
  width: 38px;
  height: 26px;
  object-fit: contain;
}

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

/* Phone type and gutters */
@media (max-width: 640px) {
  :root {
    --gutter: 12px;
    --mobile-logo-mark-h: 40px;
  }

  .hero {
    padding: calc(34px + var(--mobile-logo-mark-h) + 32px) var(--gutter) 0;
  }

  .hero__heading {
    font-size: 28px;
    line-height: 1.35;
  }

  .hero__doodle {
    width: 6.55em;
    height: 2.15em;
    top: -0.4em;
  }

  .hero__word {
    height: 0.82em;
  }

  .hero .actions {
    margin-top: 16px;
  }
}

@media (max-height: 750px) {
  .hero {
    padding-top: clamp(24px, 5dvh, 56px);
  }
}

@media (max-width: 640px) and (max-height: 750px) {
  .hero {
    padding-top: calc(34px + var(--mobile-logo-mark-h, 40px) + 32px);
  }
}

/* Case study / project template
   Homepage keeps overflow:hidden. Case pages restore document scroll. */
html:has(body.case),
html:has(body.work),
html:has(body.about),
html:has(body.talks) {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body.case {
  --case-rail: 274px;
  --case-main: 1175px;
  --case-copy: 900px;
  --case-gap: 20px;
  --case-pad: 24px;
  --case-accent: #00a5df;
  --fg: #171615;
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-float: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.645, 0.045, 0.355, 1);
  --toc-row: 24px;
  height: auto;
  min-height: 100%;
  overflow: visible;
  scroll-padding-top: 32px;
}

body.work {
  --fg: #171615;
  height: auto;
  min-height: 100%;
  overflow: visible;
}

body.about {
  --fg: #171615;
  height: auto;
  min-height: 100%;
  overflow: visible;
  scroll-padding-top: 32px;
}

body.talks {
  --fg: #171615;
  height: auto;
  min-height: 100%;
  overflow: visible;
  scroll-padding-top: 32px;
}

@media (min-width: 1025px) {
  body.case .logo,
  body.work .logo {
    position: absolute;
    z-index: 5;
  }
}

.case__layout {
  display: grid;
  grid-template-columns: var(--case-rail) minmax(0, var(--case-main));
  column-gap: var(--case-gap);
  align-items: stretch;
  max-width: 1512px;
  margin: 0 auto;
  padding: 40px var(--case-pad) 120px;
}

.case__rail {
  min-height: 100%;
}

.case__rail-inner {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-top: 40px;
}

.case__back {
  display: flex;
  width: 38px;
  height: 26px;
  color: var(--fg);
}

.case__back img {
  width: 38px;
  height: 26px;
  object-fit: contain;
}

.case__back:focus-visible,
.case__toc button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.case__toc {
  --toc-index: 0;
  --toc-color: #dca8e8;
}

.case__toc-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 24px;
  color: #9ca3af;
  text-transform: none;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 160ms var(--ease-snap),
    transform 160ms var(--ease-snap);
}

.case__toc-rail {
  position: relative;
  padding-left: 12px;
}

.case__toc-dot {
  position: absolute;
  top: 10px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--toc-color);
  transform: translateY(calc(var(--toc-index) * var(--toc-row)));
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition:
    transform 200ms var(--ease-move),
    background-color 200ms ease,
    opacity 160ms var(--ease-snap);
}

.case__toc.is-visible .case__toc-dot {
  opacity: 1;
  transition-duration: 360ms;
  transition-timing-function: var(--ease-float);
  transition-delay: 45ms;
}

.case__toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.case__toc-item {
  height: var(--toc-row);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 160ms var(--ease-snap),
    transform 160ms var(--ease-snap);
}

.case__toc.is-visible .case__toc-title {
  opacity: 1;
  transform: none;
  transition-duration: 360ms;
  transition-timing-function: var(--ease-float);
  transition-delay: 0ms;
}

.case__toc.is-visible .case__toc-item {
  opacity: 1;
  transform: none;
  transition-duration: 360ms;
  transition-timing-function: var(--ease-float);
}

.case__toc.is-visible .case__toc-item:nth-child(1) { transition-delay: 45ms; }
.case__toc.is-visible .case__toc-item:nth-child(2) { transition-delay: 90ms; }
.case__toc.is-visible .case__toc-item:nth-child(3) { transition-delay: 135ms; }
.case__toc.is-visible .case__toc-item:nth-child(4) { transition-delay: 180ms; }
.case__toc.is-visible .case__toc-item:nth-child(5) { transition-delay: 225ms; }
.case__toc.is-visible .case__toc-item:nth-child(6) { transition-delay: 270ms; }

.case__toc-item button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1;
  color: #6b7280;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease;
}

.case__toc-item button:hover,
.case__toc-item button:focus-visible {
  color: #111827;
}

.case__toc-item.is-active button {
  color: #111827;
}

.case__toc-spacer {
  display: block;
  flex: 0 0 auto;
  width: 0;
  height: 4px;
  transition: width 200ms var(--ease-move);
}

.case__toc-item.is-active .case__toc-spacer {
  width: 8px;
}

.case__toc-label {
  white-space: nowrap;
}

@media (hover: hover) {
  .case__toc-rail:has(.case__toc-item.is-active button:hover) .case__toc-dot,
  .case__toc-rail:has(.case__toc-item.is-active button:focus-visible) .case__toc-dot {
    transform: translateY(calc(var(--toc-index) * var(--toc-row))) scale(1.5);
    opacity: 0.72;
  }
}

.case__toc-mobile {
  display: none;
  position: relative;
  width: max-content;
  max-width: 100%;
  background: var(--bg);
  padding-right: 12px;
}

.case__toc-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  color: #111827;
  cursor: pointer;
}

.case__toc-trigger-label {
  display: inline-block;
  transition: opacity 180ms var(--ease-float);
}

.case__toc-trigger-label.is-fading {
  opacity: 0;
  transition-duration: 130ms;
  transition-timing-function: ease-in;
}

.case__toc-chevron {
  display: block;
  flex: 0 0 auto;
  transition: transform 160ms var(--ease-snap);
}

.case__toc-trigger[aria-expanded="true"] .case__toc-chevron {
  transform: rotate(180deg);
}

.case__toc-menu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 30;
  margin: 4px 0 0;
  padding: 8px 0;
  min-width: 260px;
  list-style: none;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.1);
  transform-origin: top left;
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition:
    opacity 160ms var(--ease-snap),
    transform 160ms var(--ease-snap);
}

.case__toc-menu.is-entered {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.case__toc-menu[hidden] {
  display: none;
}

.case__toc-menu button {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 4px 16px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  color: #9ca3af;
  text-align: left;
  cursor: pointer;
}

.case__toc-menu-dot {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--item-color, currentColor);
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms var(--ease-snap);
}

.case__toc-menu-label {
  transform: translateX(0);
  transition: transform 160ms var(--ease-move);
}

.case__toc-menu button.is-active {
  color: #111827;
}

.case__toc-menu button.is-active .case__toc-menu-dot {
  opacity: 1;
}

.case__toc-menu button.is-active .case__toc-menu-label {
  transform: translateX(8px);
}

@media (hover: hover) {
  .case__toc-menu button:hover,
  .case__toc-menu button:focus-visible {
    color: #111827;
  }

  .case__toc-menu button.is-active:hover .case__toc-menu-dot,
  .case__toc-menu button.is-active:focus-visible .case__toc-menu-dot {
    transform: scale(1.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .case__toc-title,
  .case__toc-item,
  .case__toc-dot,
  .case__toc-spacer,
  .case__toc-trigger-label,
  .case__toc-chevron,
  .case__toc-menu,
  .case__toc-menu-dot,
  .case__toc-menu-label {
    transition: none;
  }
}

.case__main {
  display: flex;
  flex-direction: column;
  gap: 100px;
  min-width: 0;
  padding-top: 20px;
}

.case__hero-block {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.case__hero {
  --hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-dur: 340ms;
  position: relative;
  isolation: isolate;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-image);
  border: 1px solid #fff;
  overflow: hidden;
  background: #eee;
  transition:
    border-radius var(--hero-dur) var(--hero-ease),
    box-shadow var(--hero-dur) var(--hero-ease);
}

.case__hero--frame {
  aspect-ratio: 2400 / 1551;
}

.case__hero img,
.case__hero-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.case__hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-fit: cover;
  transition:
    opacity var(--hero-dur) var(--hero-ease),
    transform var(--hero-dur) var(--hero-ease);
}

.case__hero-hover {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #eee;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hero-dur) var(--hero-ease);
}

.case__hero img.case__hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 6%;
  box-sizing: border-box;
  background: #eee;
  --zoom-x: 50%;
  --zoom-y: 50%;
  object-fit: contain;
  transform: scale(1);
  transform-origin: var(--zoom-x) var(--zoom-y);
  transition: transform var(--hero-dur) var(--hero-ease);
}

@media (hover: hover) {
  .case__hero:hover {
    border-radius: var(--radius-image);
    box-shadow:
      0 76px 80px rgba(216, 216, 216, 0.1),
      0 26px 114px rgba(0, 0, 0, 0.1);
  }

  .case__hero:hover .case__hero-media {
    opacity: 0;
  }

  .case__hero:hover .case__hero-hover {
    opacity: 1;
  }

  .case__hero:hover .case__hero-still {
    transform: scale(2);
  }

  .case__hero--static:hover .case__hero-media {
    opacity: 1;
  }

  .case__hero--static:hover {
    border-radius: var(--radius-image);
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case__hero,
  .case__hero-hover,
  .case__hero-still {
    transition: none;
  }

  .case__hero-media {
    transition: opacity 180ms ease;
  }

  .case__hero:hover .case__hero-still {
    transform: none;
  }
}

.case__heading {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.case__title {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  text-wrap: pretty;
}

.case__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.case__meta-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.case__meta dt {
  font-size: 24px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--case-accent);
}

.case__meta dd {
  margin: 0;
  font-family: var(--font-book);
  font-size: 20px;
  font-weight: normal;
  line-height: 1.5;
}

.case__lede {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 32px;
}

.case__intro {
  margin: 0;
  max-width: var(--case-copy);
  font-family: var(--font-book);
  font-size: 24px;
  font-weight: normal;
  line-height: 1.5;
  scroll-margin-top: 32px;
}

.case__body {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: var(--case-copy);
  width: 100%;
}

.case__body > .case-section:last-child {
  min-height: calc(100dvh - 140px);
}

.case-section,
.case-step,
.case-step__block {
  display: flex;
  flex-direction: column;
  gap: 32px;
  scroll-margin-top: 32px;
}

.case-section--process {
  gap: 60px;
}

.case-section__title {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
}

.case-section__copy,
.case-section__list {
  margin: 0;
  font-family: var(--font-book);
  font-size: 20px;
  font-weight: normal;
  line-height: 1.5;
  opacity: 0.7;
}

.case-section__copy p {
  margin: 0 0 1em;
}

.case-section__copy p:last-child {
  margin-bottom: 0;
}

.case-section__copy ul,
.case-section__copy ol,
.case-section__list {
  padding-left: 1.4em;
}

.case-section__copy li + li,
.case-section__list li + li {
  margin-top: 0;
}

.case-step {
  gap: 40px;
  padding-bottom: 32px;
}

.case-step__title,
.case-step__subtitle {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.24px;
  text-transform: uppercase;
}

.case-step__num {
  font-variant-numeric: tabular-nums;
}

.case-figure {
  margin: 0;
  width: 100%;
}

.case-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-image);
}

.case-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.case-gallery__viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-image);
  touch-action: pan-y;
  user-select: none;
}

.case-gallery__track {
  display: flex;
  width: 100%;
}

.case-gallery__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.case-gallery__slide img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

.case-gallery__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-gallery__nav button {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  margin: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  color: var(--fg);
  cursor: pointer;
  touch-action: manipulation;
}

.case-gallery__nav button[aria-pressed="true"] {
  background: #86cd8b;
}

.case-gallery__nav button:focus {
  outline: none;
}

.case-gallery__nav button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.case-gallery__nav button:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .case-gallery__viewport {
    cursor: grab;
  }

  .case-gallery__viewport.is-dragging {
    cursor: grabbing;
  }

  .case-gallery__nav button:not([aria-pressed="true"]):hover {
    background: #f4f4f4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-gallery__nav button:active {
    transform: none;
  }
}

.case__body:empty {
  display: none;
}

a.card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 1299px) {
  .case__layout {
    grid-template-columns: 1fr;
    row-gap: 40px;
    padding-top: 24px;
  }

  .case__rail {
    min-height: 0;
  }

  .case__rail {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
  }

  .case__rail-inner {
    position: static;
    padding-top: 0;
    padding-bottom: 8px;
    gap: 16px;
  }

  body.case .case__rail-inner > .case__back {
    position: fixed;
    top: calc(26px + (var(--mobile-logo-mark-h, 40px) - 26px) / 2);
    left: var(--gutter);
    z-index: 35;
    width: 38px;
    height: 26px;
  }

  body.case .case__rail {
    top: calc(26px + var(--mobile-logo-mark-h, 40px) + 20px);
  }

  .case__toc-title,
  .case__toc-rail {
    display: none;
  }

  .case__toc-mobile {
    display: block;
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    z-index: 30;
  }

  .case__main {
    padding-top: 0;
    gap: 64px;
  }

  .case__hero-block {
    gap: 48px;
  }

  .case__heading {
    gap: 32px;
  }

  .case__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .case__intro {
    font-size: 20px;
  }

  .case__body {
    gap: 56px;
  }
}

@media (max-width: 1024px) {
  body.case .menu-bar:not(.menu-overlay__close),
  body.work .menu-bar:not(.menu-overlay__close),
  body.about .menu-bar:not(.menu-overlay__close),
  body.talks .menu-bar:not(.menu-overlay__close) {
    right: auto;
    bottom: 0;
    left: 50%;
    width: auto;
    min-height: 32px;
    padding: 6px 10px;
    transform: translateX(-50%);
    font-size: 16px;
    letter-spacing: 0.16px;
  }

  body.case .menu-bar:not(.menu-overlay__close),
  body.work .menu-bar:not(.menu-overlay__close),
  body.about .menu-bar:not(.menu-overlay__close),
  body.talks .menu-bar:not(.menu-overlay__close) {
    position: fixed;
    z-index: 40;
  }

  body.case .case__layout {
    padding-bottom: 64px;
  }
}

@media (max-width: 640px) {
  body.case {
    --case-pad: 12px;
  }

  .case__title {
    font-size: 28px;
  }

  .case-section__title {
    font-size: 24px;
  }

  .case__meta dt,
  .case-step__title,
  .case-step__subtitle,
  .case-section__copy,
  .case-section__list {
    font-size: 16px;
  }

  .case__meta {
    grid-template-columns: 1fr;
  }
}

/* Work listing page */
.work-main {
  display: flex;
  flex-direction: column;
  gap: 45px;
  padding: 92px 37px 120px;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.work-filter {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  font: inherit;
  font-family: var(--font-body);
  line-height: 1.3;
  color: var(--fg);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

.work-filter.is-active {
  background: #86cd8b;
  background-image: none;
  color: var(--fg);
  animation: none;
}

.work-filter:focus {
  outline: none;
}

.work-filter:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.work-filter.is-active:focus-visible {
  outline-color: var(--fg);
}

.work-filter__label {
  font-size: 14px;
}

.work-filter__count {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  opacity: 0.4;
}

@media (hover: hover) and (pointer: fine) {
  .work-filter:not(.is-active):hover {
    background-color: transparent;
    background-image: var(--gradient-horizontal);
    background-repeat: repeat-x;
    background-attachment: fixed;
    background-position: 0 0;
    background-size: auto 100%;
    color: var(--color-bg);
    animation: link-bg-anim 8s linear infinite;
  }

  .work-filter:not(.is-active):hover .work-filter__count {
    opacity: 0.75;
  }
}

.work-filter:not(.is-active):focus-visible {
  background-color: transparent;
  background-image: var(--gradient-horizontal);
  background-repeat: repeat-x;
  background-attachment: fixed;
  background-position: 0 0;
  background-size: auto 100%;
  color: var(--color-bg);
  animation: link-bg-anim 8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .work-filter:not(.is-active):hover,
  .work-filter:not(.is-active):focus-visible {
    animation: none;
  }
}

.work-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 32px;
  align-items: start;
  width: 100%;
}

.work-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.work-col:not(:has(.work-item:not([hidden]))) {
  display: none;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: inherit;
  text-decoration: none;
}

.work-filter[hidden],
.work-item[hidden] {
  display: none;
}

.work-item__media {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-image);
  background: #e6e6e6;
  transform: scale(1);
  transform-origin: center;
  transition: transform 150ms var(--card-hover-ease);
}

a.work-item:active .work-item__media {
  transform: scale(0.98);
}

.work-item__media img,
.work-item__media video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.work-item__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.work-item__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-item__title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  text-transform: uppercase;
  color: #171615;
}

.work-item__copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: #171615;
  opacity: 0.7;
}

.work-item__tags {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.work-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 2px;
  background: #fff;
  font-size: 12px;
  line-height: 1.3;
  color: #000;
  opacity: 0.5;
  white-space: nowrap;
}

a.work-item:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  a.work-item:hover .work-item__media img,
  a.work-item:hover .work-item__media video {
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-item__media,
  a.work-item:active .work-item__media {
    transform: none;
    transition: none;
  }

  .work-item__media img,
  .work-item__media video {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .work-main {
    padding: 40px var(--gutter) 120px;
  }

  .work-columns,
  .work-col {
    display: contents;
  }
}

html.has-squish-cursor,
html.has-squish-cursor * {
  cursor: none;
}

@view-transition {
  navigation: auto;
}

::view-transition-group(root) {
  animation: none;
}

::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
  animation-duration: 0.35s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
}

::view-transition-old(root) {
  z-index: 2;
  animation-name: page-crossfade-out;
}

::view-transition-new(root) {
  z-index: 1;
  animation-name: page-crossfade-in;
}

@keyframes page-crossfade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes page-crossfade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.is-page-enter body,
html.is-page-enter .page {
  animation: page-crossfade-in 0.35s ease-in-out both;
}

html.is-restoring-scroll {
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0s;
  }

  html.is-page-enter body,
  html.is-page-enter .page {
    animation: none;
  }
}

/* Homepage: fixed split-screen layout */
body.home {
  --home-edge: 16px;
  --home-gap: 16px;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

.home .home-page {
  position: relative;
  display: block;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.home .header {
  position: absolute;
  z-index: 20;
  top: 26px;
  left: var(--home-edge);
  right: var(--home-edge);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 32px;
  padding: 0;
}

.home .logo {
  position: static;
  grid-column: 1;
  justify-self: start;
  transform: none;
  z-index: auto;
}

.home .logo__mark {
  width: 261px;
  height: 34px;
  max-height: none;
}

.home .nav {
  grid-column: 2;
  justify-self: center;
  gap: 12px;
  font-size: 20px;
  line-height: 1.4;
}

.home .nav__link--about {
  --nav-mark-w: 70px;
}

.home .nav__link--work,
.home .nav__link--talks {
  --nav-mark-w: 63px;
}

.home .nav__link--writings {
  --nav-mark-w: 99px;
}

.home .nav__mark {
  height: 28px;
}

.home .sound-toggle {
  grid-column: 3;
  justify-self: end;
  width: 32px;
  height: 32px;
}

.home .sound-toggle__swap,
.home .sound-toggle__icon {
  width: 32px;
  height: 32px;
}

.home .home-main {
  position: relative;
  display: grid;
  grid-template-columns: 50% 50%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home .home-main__content {
  display: contents;
}

.home .hero {
  position: absolute;
  z-index: 2;
  top: clamp(96px, calc(10dvh + 24px), 124px);
  left: 20px;
  display: flex;
  width: calc(50% - 30px);
  max-width: 726px;
  padding: 0;
  gap: 32px;
}

.home .hero__heading {
  font-size: clamp(26px, 2.12vw, 32px);
  line-height: 1.4;
  text-wrap: pretty;
}

.home .hero__accent {
  color: #00a5df;
}

.home .actions {
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: calc(50% - 26px);
  max-width: 726px;
  gap: 14px;
  margin: 0;
}

.home .action-btn {
  min-width: 0;
  gap: 6px;
  border-radius: 0;
  line-height: normal;
  white-space: nowrap;
}

.home .action-btn__arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  transition: filter 160ms ease;
}

.home .action-btn:focus-visible .action-btn__arrow {
  filter: brightness(0) invert(1);
}

@media (hover: hover) {
  .home .action-btn:hover .action-btn__arrow {
    filter: brightness(0) invert(1);
  }
}

.home .showcase {
  position: absolute;
  z-index: 1;
  top: 0;
  right: var(--home-gap);
  bottom: 0;
  width: calc(50% - 10px - var(--home-gap));
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.home .showcase.is-dragging {
  cursor: grabbing;
}

.home .showcase__track {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: 78px;
  will-change: transform;
}

.home .showcase__group {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: var(--home-gap);
  width: 100%;
  padding: 0 0 var(--home-gap);
}

.home .showcase__row {
  display: flex;
  flex: 0 0 auto;
  gap: var(--home-gap);
  width: 100%;
}

.home .showcase__row--narrow {
  width: 54%;
  align-self: center;
}

.home .showcase__item {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-image);
  background: #e6e6e6;
}

.home a.showcase__item {
  color: inherit;
  text-decoration: none;
}

.home .showcase__row:nth-child(2n) .showcase__item:first-child {
  background: #dedede;
}

.home .showcase__row:nth-child(3n) .showcase__item {
  background: #eaeaea;
}

.home .showcase__item--landscape {
  aspect-ratio: 4096 / 2648;
}

.home .showcase__item--portrait {
  aspect-ratio: 2 / 3;
}

.home .showcase__item--square {
  aspect-ratio: 1;
}

.home .showcase__item--four-three {
  aspect-ratio: 4 / 3;
}

.home .showcase__item--ha {
  aspect-ratio: 6912 / 4468;
}

.home .showcase__item--mft {
  aspect-ratio: 1798 / 1346;
}

.home .showcase__item > img,
.home .showcase__item > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.home .showcase:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: -4px;
}

@media (max-width: 1024px) {
  body.home {
    --home-edge: 16px;
  }

  .home .header {
    top: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 0;
  }

  .home .logo {
    grid-column: 1;
  }

  .home .logo__mark {
    width: 230px;
    height: auto;
  }

  .home .nav {
    display: none;
  }

  .home .home-main {
    display: block;
  }

  .home .hero {
    top: clamp(84px, 11dvh, 97px);
    left: var(--home-edge);
    width: calc(100% - 2 * var(--home-edge));
    max-width: none;
    gap: 22px;
  }

  .home .hero__heading {
    font-size: 22px;
    line-height: 1.4;
  }

  .home .actions {
    top: clamp(288px, 35.7dvh, 312px);
    right: var(--home-edge);
    bottom: auto;
    left: var(--home-edge);
    width: auto;
    max-width: none;
    gap: 10px;
  }

  .home .action-btn {
    padding: 6px 10px;
    font-size: clamp(12px, 4vw, 16px);
  }

  .home .showcase {
    top: clamp(335px, 41dvh, 359px);
    right: 0;
    bottom: 32px;
    left: 0;
    width: auto;
    cursor: grab;
  }

  .home .showcase__track {
    flex-direction: row;
    width: max-content;
    height: 100%;
    padding-top: 0;
  }

  .home .showcase__group {
    flex-direction: row;
    align-items: stretch;
    width: max-content;
    height: 100%;
    padding: 0 var(--home-gap) 0 0;
  }

  .home .showcase__row {
    display: contents;
  }

  .home .showcase__item {
    flex: 0 0 auto;
    height: 100%;
  }

  .home .showcase__item--landscape {
    width: auto;
    aspect-ratio: 4096 / 2648;
  }

  .home .showcase__item--portrait {
    width: auto;
    aspect-ratio: 2 / 3;
  }

  .home .showcase__item--square {
    width: auto;
    aspect-ratio: 1;
  }

  .home .showcase__item--four-three {
    width: auto;
    aspect-ratio: 4 / 3;
  }

  .home .showcase__item--ha {
    width: auto;
    aspect-ratio: 6912 / 4468;
  }

  .home .showcase__item--mft {
    width: auto;
    aspect-ratio: 1798 / 1346;
  }

  .home .home-page > .menu-bar {
    position: absolute;
    z-index: 30;
    right: auto;
    bottom: 0;
    left: 50%;
    display: flex;
    width: auto;
    min-height: 32px;
    padding: 6px 10px;
    transform: translateX(-50%);
    font-size: 16px;
    letter-spacing: 0.16px;
  }
}

@media (max-width: 360px) {
  .home .logo__mark {
    width: 205px;
  }

  .home .hero__heading {
    font-size: 20px;
  }

  .home .actions {
    top: 308px;
    gap: 6px;
  }

  .home .action-btn {
    gap: 3px;
    padding-inline: 6px;
  }

  .home .action-btn__arrow {
    width: 14px;
    height: 14px;
  }

  .home .showcase {
    top: 345px;
  }
}

@media (max-height: 700px) and (min-width: 1025px) {
  .home .hero {
    top: 92px;
  }

  .home .hero__heading {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .showcase__track {
    will-change: auto;
  }

  .home .action-btn__arrow {
    transition: none;
  }
}

/* Lettering-led homepage introduction. */
.home .hero {
  top: clamp(112px, 13.5dvh, 144px);
  font-family: var(--font-book);
  font-size: 26px;
  line-height: 1.4;
  gap: 0.5em;
}

.home .hero__heading {
  display: flow-root;
  font-family: var(--font-book);
  font-size: inherit;
  line-height: inherit;
  text-transform: none;
  text-wrap: initial;
}

.home .hero__mark {
  --cap-lines: 3;
  /* Folio Book fallback; hero-drop-cap.js refines these after fonts load. */
  --cap-height: 0.713em;
  --cap-top: 0.354em;
  --cap-leading: 1.4em;
  --cap-art-height: calc((var(--cap-lines) - 1) * var(--cap-leading) + var(--cap-height));
  float: left;
  width: calc(var(--cap-art-height) * 1.055107);
  /* The float controls wrapping; the artwork ends at the last baseline.
     Half a pixel prevents subpixel rounding from catching a fourth line. */
  height: calc(var(--cap-lines) * var(--cap-leading) - 0.5px);
  margin: 0 0.5em 0 0;
}

.home .hero__heading[data-cap-lines="2"] .hero__mark {
  --cap-lines: 2;
}

.home .hero__heading--measure {
  position: fixed;
  top: 0;
  left: -10000px;
  visibility: hidden;
  pointer-events: none;
}

.home .hero__opening {
  text-transform: uppercase;
}

.home .hero__community {
  color: #00a5df;
  text-decoration: none;
  background: url("assets/icons/ai-community-underline.svg") left bottom / 100% 0.15em no-repeat;
  padding-bottom: 0.045em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.home .hero__community:hover,
.home .hero__community:focus-visible {
  color: #007eab;
}

.home .hero__community:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .home .home-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  .home .home-main__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    width: 100%;
  }

  .home .hero {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 auto;
    width: auto;
    margin: 94px var(--home-edge) 0;
  }

  .home .actions {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 0 0 auto;
    width: auto;
    margin: 32px var(--home-edge) 0;
  }

  .home .showcase {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 1 1 auto;
    min-height: 0;
    width: calc(100% - 2 * var(--home-gap));
    margin-inline: var(--home-gap);
    margin-top: 16px;
    margin-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .home .header {
    grid-template-columns: 1fr;
  }

  .home .logo {
    grid-column: 1;
    justify-self: center;
  }

  .home .sound-toggle {
    display: none;
  }

  .home .hero {
    margin-top: 78px;
    font-size: 20px;
  }

  .home .actions {
    margin-top: 30px;
  }
}

@media (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .home .hero {
    margin-top: 62px;
    font-size: clamp(16px, 2.2vw, 20px);
  }

  .home .actions {
    margin-top: 14px;
  }

  .home .showcase {
    margin-top: 8px;
    margin-bottom: 40px;
  }
}

/* Shared desktop header across home, work, and case-study pages */
@media (min-width: 1025px) {
  body.work .header,
  body.case .header,
  body.about .header,
  body.talks .header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    height: 58px;
    min-height: 58px;
    padding: 26px 16px 0;
  }

  body.work .logo,
  body.case .logo,
  body.about .logo,
  body.talks .logo {
    position: static;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    transform: none;
    z-index: auto;
  }

  body.work .logo__mark,
  body.case .logo__mark,
  body.about .logo__mark,
  body.talks .logo__mark {
    content: url("assets/images/sm-logo.svg");
    width: 261px;
    height: 34px;
    max-height: none;
  }

  body.work .nav,
  body.case .nav,
  body.about .nav,
  body.talks .nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    gap: 12px;
    font-size: 20px;
    line-height: 1.4;
  }

  body.work .sound-toggle,
  body.case .sound-toggle,
  body.about .sound-toggle,
  body.talks .sound-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: 32px;
    height: 32px;
  }

  body.work .sound-toggle__swap,
  body.work .sound-toggle__icon,
  body.case .sound-toggle__swap,
  body.case .sound-toggle__icon,
  body.about .sound-toggle__swap,
  body.about .sound-toggle__icon,
  body.talks .sound-toggle__swap,
  body.talks .sound-toggle__icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 1024px) {
  body.work .header,
  body.case .header,
  body.about .header,
  body.talks .header {
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    min-height: 60px;
    padding: 16px 16px 14px;
  }

  body.work .header__back,
  body.case .header__back,
  body.about .header__back,
  body.talks .header__back {
    display: none;
  }

  body.work .logo,
  body.case .logo,
  body.about .logo,
  body.talks .logo {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    transform: none;
    z-index: 1;
  }

  body.work .logo__mark,
  body.case .logo__mark,
  body.about .logo__mark,
  body.talks .logo__mark {
    content: url("assets/images/sm-logo.svg");
    width: 230px;
    height: auto;
    max-height: none;
  }

  body.case .case__rail {
    top: 60px;
  }

  body.case .case__rail-inner > .case__back {
    display: none;
  }
}

@media (max-width: 360px) {
  body.work .logo__mark,
  body.case .logo__mark,
  body.about .logo__mark,
  body.talks .logo__mark {
    width: 205px;
  }
}

/* Media arrives into a frame that is already there. A plate covers it
   while it loads, then fades. Work and case images also settle from a
   near-full scale. Showcase tiles skip that scale: their row is already moving. */
.media-slot {
  position: relative;
  overflow: hidden;
}

.media-slot:not(.case__hero):not(.showcase__item) > img {
  transition:
    opacity 180ms ease,
    transform 260ms var(--ease-out-expo);
}

.work-item__media > video {
  transition: opacity 180ms ease;
}

.media-slot.is-pending:not(.showcase__item) > img {
  transform: scale(0.98);
  transition: none;
}

/* The plate covers the frame. Media stays painted underneath so mobile
   browsers still fetch and play video; opacity: 0 would stall it. */
.media-slot::before,
.media-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.media-slot::before {
  z-index: 1;
  background: #e6e6e6;
}

.media-slot.is-pending::before {
  opacity: 1;
}

.media-slot.is-ready::before {
  opacity: 0;
  transition: opacity 220ms var(--ease-out-expo);
}

.media-slot::after {
  z-index: 2;
  background: linear-gradient(
    105deg,
    transparent 32%,
    rgba(255, 255, 255, 0.96) 50%,
    transparent 68%
  );
  transform: translate3d(-100%, 0, 0);
}

.media-slot.is-pending::after,
.media-slot.is-ready::after {
  animation: media-shimmer 1.4s linear infinite;
}

.media-slot.is-pending::after {
  opacity: 1;
}

.case-figure.is-pending,
.case-gallery__slide.is-pending,
.case__hero.is-pending {
  background: #e6e6e6;
}

.media-slot.is-ready::after {
  animation-play-state: paused;
  opacity: 0;
  transition: opacity 220ms var(--ease-out-expo);
}

.media-slot.is-settled::before,
.media-slot.is-settled::after {
  content: none;
  animation: none;
}

@keyframes media-shimmer {
  from { transform: translate3d(-100%, 0, 0); }
  to { transform: translate3d(100%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .media-slot.is-pending > img,
  .media-slot > img {
    transform: none;
  }

  .media-slot.is-ready::before {
    transition: opacity 180ms ease;
  }

  .media-slot.is-pending::after,
  .media-slot.is-ready::after {
    animation: none;
    transform: none;
  }

  .media-slot.is-pending::after {
    background: rgba(255, 255, 255, 0.38);
  }
}

/* Mobile: one centered logo, in the same spot the open menu uses.
   The sound control lives in the open menu, under that logo. */
@media (max-width: 1024px) {
  :root {
    --mobile-logo-top: 16px;
    --mobile-logo-w: 230px;
    --mobile-logo-h: calc(var(--mobile-logo-w) * 34 / 266);
    --mobile-sound-gap: 20px;
  }

  .logo,
  .home .logo,
  body.work .logo,
  body.case .logo {
    position: fixed;
    top: var(--mobile-logo-top);
    left: 50%;
    right: auto;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    width: max-content;
    transform: none;
    translate: -50% 0;
    z-index: 220;
  }

  .logo__mark,
  .home .logo__mark,
  body.work .logo__mark,
  body.case .logo__mark {
    width: var(--mobile-logo-w);
    height: auto;
    max-height: none;
  }

  .menu-overlay__logo {
    visibility: hidden;
    pointer-events: none;
  }

  .menu-overlay .sound-toggle {
    position: absolute;
    top: calc(var(--mobile-logo-top) + var(--mobile-logo-h) + var(--mobile-sound-gap));
    left: 50%;
    z-index: 10;
    width: 32px;
    height: 32px;
    translate: -50% 0;
    scale: 0.92;
    opacity: 0;
  }

  .menu-overlay .sound-toggle__swap,
  .menu-overlay .sound-toggle__icon {
    width: 32px;
    height: 32px;
  }

  .menu-soon {
    position: absolute;
    left: 50%;
    z-index: 6;
    top: max(
      calc(var(--mobile-logo-top) + var(--mobile-logo-h) + var(--mobile-sound-gap) + 32px + 28px),
      calc(var(--cy) - var(--r-about) - 14px)
    );
    margin: 0;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    opacity: 0;
    translate: -50% calc(-100% + 8px);
    transition:
      opacity 120ms cubic-bezier(0.16, 1, 0.3, 1),
      translate 120ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .menu-soon.is-visible {
    opacity: 1;
    translate: -50% -100%;
    transition:
      opacity 150ms cubic-bezier(0.16, 1, 0.3, 1),
      translate 150ms cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .menu-soon,
  .menu-soon.is-visible {
    translate: -50% -100%;
    transition: opacity 150ms linear;
  }
}

/* About page: the same loose grid, uppercase type, white surfaces, and
   gradient link language as the work listing, with room for longer-form copy. */
.about-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 104px 37px 128px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(40px, 8vw, 150px);
  align-items: end;
  padding-bottom: 112px;
}

.about-kicker,
.about-section__eyebrow {
  margin: 0 0 16px;
  color: var(--fg-muted);
  font-size: 14px;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.about-title,
.about-section h2 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
}

.about-title {
  max-width: 780px;
  font-size: clamp(40px, 5.2vw, 76px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.about-lede,
.about-section__body > p,
.about-section__body > .about-support-copy {
  max-width: 700px;
  margin: 0;
  font-size: 20px;
  line-height: 1.42;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 112px;
}

.about-quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.45fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
}

.about-quote p {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.06;
  text-transform: uppercase;
}

.about-quote .about-quote__author {
  align-self: end;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.35;
  text-transform: uppercase;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(28px, 7vw, 120px);
  padding-top: 28px;
  border-top: 1px solid var(--fg);
}

.about-section--featured {
  padding: 28px 24px 32px;
  border-top: 0;
  background: #fff;
}

.about-section h2 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1;
}

.about-section__body {
  min-width: 0;
}

.about-section__body p + p {
  margin-top: 22px;
}

.about-section a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.about-section a:hover,
.about-section a:focus-visible {
  color: var(--color-bg);
  background-image: var(--gradient-horizontal);
  background-repeat: repeat-x;
  background-attachment: fixed;
  background-size: auto 100%;
  border-radius: 0.2em;
  outline: none;
  text-decoration: none;
}

.about-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 36px;
}

.about-photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border-radius: var(--radius-image);
  background: #e6e6e6;
}

.about-support-copy {
  margin-top: 34px !important;
  color: var(--fg-muted);
  font-size: 16px !important;
}

.about-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 20px;
}

.about-logo-row img {
  display: block;
  width: auto;
  max-width: 130px;
  height: 28px;
  object-fit: contain;
}

.about-logo-row span {
  color: var(--fg-muted);
  font-size: 14px;
  text-transform: uppercase;
}

.about-cv-list {
  margin: -12px 0 0;
  padding: 0;
  list-style: none;
}

.about-cv-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(23, 22, 21, 0.22);
  font-size: 18px;
  line-height: 1.3;
}

.about-cv-list em {
  color: var(--fg-muted);
  font-style: normal;
}

.about-cv-list time {
  color: var(--fg-muted);
  font-size: 14px;
  white-space: nowrap;
}

.about-section--hobbies .about-section__body {
  max-width: 850px;
}

@media (max-width: 1024px) {
  .about-main {
    padding: 64px var(--gutter) 104px;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 80px;
  }

  .about-title {
    max-width: 700px;
  }

  .about-section {
    grid-template-columns: minmax(150px, 0.3fr) minmax(0, 0.7fr);
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .about-main {
    padding: 54px var(--gutter) 88px;
  }

  .about-hero {
    gap: 28px;
    padding-bottom: 64px;
  }

  .about-title {
    font-size: clamp(36px, 12vw, 58px);
  }

  .about-lede,
  .about-section__body > p,
  .about-section__body > .about-support-copy {
    font-size: 18px;
  }

  .about-content {
    gap: 72px;
  }

  .about-quote {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-quote p {
    font-size: 28px;
  }

  .about-section,
  .about-section--featured {
    display: block;
    padding: 20px 0 0;
  }

  .about-section--featured {
    padding: 20px 12px 24px;
  }

  .about-section__heading {
    margin-bottom: 28px;
  }

  .about-section h2 {
    font-size: 32px;
  }

  .about-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
  }

  .about-logo-row {
    gap: 14px 20px;
  }

  .about-logo-row img {
    max-width: 108px;
    height: 24px;
  }

  .about-cv-list li {
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 16px;
  }

  .about-cv-list time {
    font-size: 12px;
  }
}

/* Figma About composition. The page is intentionally a narrow editorial
   column inside the same full-bleed canvas used by the rest of the site. */
.about-main {
  max-width: none;
  margin: 0;
  padding: 89px 0 64px;
}

.about-column,
.talks-column {
  width: min(736px, calc(75% - 24px));
  margin-left: calc(25% + 4px);
}

.about-intro,
.about-experience,
.about-hobbies {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-intro__lead {
  --about-cap-lines: 3;
}

.about-intro__lead p {
  display: flow-root;
}

.about-intro__mark {
  /* Size from the type, never from wrapping text (which creates a feedback
     loop). The ink aligns with the first cap and the final occupied baseline;
     the float's outer height stays just below the chosen number of lines. */
  --about-cap-size: calc(var(--about-cap-lines) * 1.4em - 0.65em);
  float: left;
  position: relative;
  width: var(--about-cap-size);
  height: var(--about-cap-size);
  /* Keep the exclusion box comfortably below the next line boundary.
     Mobile Safari rounds near-exact line-height floats up by one line. */
  margin: 0.22em 0.6em 0 0;
  background: url("assets/icons/about-exclude.svg") center / contain no-repeat;
}

.about-intro p,
.about-role__dates,
.about-role__title,
.about-role__highlights,
.about-hobbies p {
  font-family: var(--font-book);
  font-size: 20px;
  line-height: 1.4;
}

.about-intro p,
.about-hobbies p {
  margin: 0;
}

.about-intro__copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-intro__copy strong {
  font-weight: 400;
}

.about-accent--green { color: #6ecf84; }
.about-accent--pink { color: #f4a4f2; }

.about-role__highlights .about-accent--pink {
  color: var(--fg-faded);
}

.about-role--flatfy .about-accent--green {
  color: var(--fg);
}

.about-experience {
  margin-top: 88px;
  gap: 40px;
}

.about-section-heading {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.about-section-heading h1,
.about-hobbies h2 {
  margin: 0;
  font-family: var(--font-book);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
}

.about-section-heading h1 {
  white-space: nowrap;
}

.about-cv-link {
  flex: 0 0 auto;
  gap: 6px;
  padding: 6px 10px;
}

.about-cv-link img,
.about-links img {
  width: 16px;
  height: 16px;
}

.about-roles {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.about-role {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-role__dates {
  margin: 0;
  color: #707070;
}

.about-metric {
  display: inline-block;
  padding: 0 4px;
  color: var(--fg);
  background: #fff;
  border-radius: 0.15em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.about-metric:hover,
.about-metric:focus-visible {
  color: var(--color-bg);
  background-color: transparent;
  background-image: var(--gradient-horizontal);
  background-repeat: repeat-x;
  background-attachment: fixed;
  background-position: 0 0;
  background-size: auto 100%;
  text-decoration: none;
  animation: link-bg-anim 8s linear infinite;
  outline: none;
}

.about-role__title {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.about-company {
  position: relative;
  display: inline-grid;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
}

.about-company__underline {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  display: block;
  width: 100%;
  height: 8px;
  background-color: currentColor;
  -webkit-mask-image: var(--underline-image);
  mask-image: var(--underline-image);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
}

.about-company__underline[data-generated="true"] {
  background: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.about-company__underline svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: currentColor;
}

.action-btn:is(:hover, :focus-visible) .action-btn__arrow {
  filter: brightness(0) invert(1);
}

.about-company:hover,
.about-company:focus-visible {
  color: #4dccf9;
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .squish-cursor.is-gradient {
    animation: none;
  }

  .about-metric:hover,
  .about-metric:focus-visible {
    animation: none;
  }
}

.about-role__highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #707070;
}

.about-role__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-role__highlights img {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-top: calc((1.4em - 12px) / 2);
}

.about-hobbies {
  margin-top: 88px;
  gap: 40px;
}

.about-hobbies__copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-accordion-wrap {
  width: 100%;
}

.about-community-gallery {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Parent contributes 12px; 28px completes the hobbies' 40px gap. */
  margin-top: 28px;
}

.about-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.about-links .action-btn {
  width: 100%;
}

/* ImageAccordion, translated from the supplied React component. The JS
   keeps the strip fixed to this page column and lets each cell negotiate
   its share through the spring values. */
.acc {
  --acc-radius: var(--radius-image);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 319px;
  gap: 2px;
  overflow: hidden;
  border-radius: var(--acc-radius);
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}

.acc-cell {
  position: relative;
  flex-grow: 1;
  flex-basis: 0;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--acc-radius);
  outline: none;
}

.acc-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.acc-cell:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .about-main {
    padding: 44px var(--gutter) 64px;
  }

  .about-intro__lead {
    --about-cap-lines: 4;
  }

  body.about .header,
  body.talks .header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: block;
    background: transparent;
    height: 86px;
    min-height: 86px;
    padding: 0;
    overflow: visible;
  }

  body.about .logo,
  body.talks .logo {
    position: fixed;
    top: var(--mobile-logo-top, 16px);
    left: 50%;
    right: auto;
    width: max-content;
    transform: none;
    translate: -50% 0;
    z-index: 220;
    background: transparent;
  }

  body.about .logo__mark,
  body.talks .logo__mark {
    display: block;
    width: min(230px, calc(100vw - (2 * var(--gutter))));
    height: auto;
    max-height: none;
    object-fit: contain;
    filter:
      drop-shadow(1px 0 0 var(--bg))
      drop-shadow(-1px 0 0 var(--bg))
      drop-shadow(0 1px 0 var(--bg))
      drop-shadow(0 -1px 0 var(--bg));
  }

  .about-column,
  .talks-column {
    width: min(600px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .about-intro__lead {
    --about-cap-lines: 3;
  }

  .about-intro {
    --about-intro-size: clamp(18px, 3.6vw, 20px);
  }

  .about-intro p,
  .about-role__dates,
  .about-role__title,
  .about-role__highlights,
  .about-hobbies p {
    font-size: var(--about-intro-size, 18px);
    line-height: 1.4;
  }

  .about-role__title {
    gap: 12px;
  }

  .about-intro__copy,
  .about-hobbies__copy {
    gap: 24px;
  }

  .about-section-heading h1,
  .about-hobbies h2 {
    font-size: var(--about-intro-size, 18px);
  }

  .about-section-heading {
    flex-wrap: wrap;
    gap: 12px;
  }

  .about-cv-link {
    font-size: 14px;
  }

  .about-experience,
  .about-hobbies {
    margin-top: 64px;
    gap: 28px;
  }

  .about-roles {
    gap: 44px;
  }

  .about-role {
    gap: 12px;
  }

  .about-role__title {
    align-items: flex-start;
    flex-direction: column;
    white-space: normal;
  }

  .about-role__highlights {
    gap: 12px;
  }

  .about-community-gallery {
    /* Parent contributes 12px; 16px completes the mobile 28px gap. */
    margin-top: 16px;
  }

  .acc {
    height: 220px;
  }

  .about-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acc-cell {
    transition: none;
  }
}

/* Talks page: an offset editorial column, photo-led white cards, and the
   same Folio typography and contact language as About. */
.talks-main {
  padding: 89px 0 80px;
}

.talks-intro {
  max-width: 760px;
}

.talks-intro h1,
.talks-section-title,
.talk-card__title,
.talks-intro p,
.talk-card__desc,
.talks-quote,
.talks-contact p {
  font-family: var(--font-book);
  font-weight: 400;
}

.talks-intro__copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.talks-intro__lead {
  display: flow-root;
}

.talks-intro__mark {
  /* Like About, reserve just under three lines so the next line clears
     the float reliably, including on mobile Safari. Keep the SVG ratio. */
  --talks-cap-size: calc(3 * 1.4em - 0.65em);
  float: left;
  width: calc(var(--talks-cap-size) * 81 / 93);
  height: var(--talks-cap-size);
  margin: 0.22em 0.6em 0 0;
  background: url("assets/icons/talks-initial-h.svg") center / contain no-repeat;
}

.talks-intro__accent {
  color: #6ecf84;
  text-transform: uppercase;
}

.talks-intro p,
.talks-contact p {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.talks-feature,
.talks-past,
.talks-reviews,
.talks-contact {
  margin-top: 96px;
}

.talks-section-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  text-transform: uppercase;
}

.talk-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 22, 21, 0.04);
  color: var(--fg);
  text-decoration: none;
}

.talk-card--linked {
  cursor: pointer;
  transition:
    transform 180ms var(--ease-out-expo),
    box-shadow 180ms ease;
}

.talk-card--linked:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

@media (hover: hover) {
  .talk-card--linked:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(23, 22, 21, 0.08);
  }
}

.talk-card__media {
  width: 100%;
  overflow: hidden;
  background: #e8e8e8;
}

.talk-card__media img {
  display: block;
  width: 100%;
  height: auto;
}

.talk-card__media--magazine img {
  object-fit: contain;
}

.talk-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 24px;
}

.talk-card--text {
  min-height: 236px;
}

.talk-card--feature .talk-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  align-items: start;
  gap: 48px;
}

.talk-card__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  font-size: clamp(23px, 2vw, 30px);
  letter-spacing: -0.018em;
  line-height: 1.1;
}

.talk-card__title img {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 0.08em;
}

.talk-card__desc {
  margin: 0;
  color: #707070;
  font-size: 18px;
  line-height: 1.4;
}

.talks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.talks-reviews__board {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 28px;
  margin-top: 24px;
  padding: 32px 0;
  isolation: isolate;
}

.talks-reviews__board.is-ready {
  display: block;
  padding: 0;
}

.review-note {
  --note-angle: 3deg;
  --tape-color: #86cd8b;
  position: relative;
  min-width: 0;
  z-index: 1;
}

.is-ready .review-note {
  position: absolute;
  top: 0;
  left: 0;
  width: 47%;
}

.review-note__paper {
  position: relative;
  padding: 28px 28px 30px;
  transform: rotate(var(--note-angle));
  transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* A thin cut edge plus an uneven shadow keeps the sheets feeling like paper. */
.review-note__paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  box-shadow: 0.8px 1.5px 0 #bcbcb8, 1px 3px 3px #17161508;
}

.review-note__paper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  box-shadow: 3px 17px 23px #17161520;
  opacity: 0;
  transition: opacity 220ms ease;
}

.review-note--orange { --tape-color: #f6aa81; --note-angle: -6deg; }
.review-note--pink { --tape-color: #e8a7ed; --note-angle: 3deg; }
.review-note--blue { --tape-color: #4dccf9; --note-angle: -4deg; }

.review-note__tape {
  position: absolute;
  top: -24px;
  left: 47%;
  width: 29px;
  height: 56px;
  background: var(--tape-color);
  opacity: 0.86;
  mix-blend-mode: multiply;
  clip-path: polygon(2% 0, 96% 2%, 100% 18%, 97% 51%, 100% 98%, 4% 100%, 0 77%, 3% 42%);
  transform: rotate(-4deg);
  transform-origin: center 75%;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: auto;
  cursor: grab;
}

.review-note__tape--left {
  top: -9px;
  left: -5px;
  width: 82px;
  height: 19px;
  transform: rotate(-13deg);
}

.review-note__tape--right {
  top: 1px;
  left: auto;
  right: -8px;
  width: 53px;
  height: 18px;
  transform: rotate(20deg);
}

.review-note--pink .review-note__tape { left: 61%; }
.review-note--blue .review-note__tape { left: 68%; transform: rotate(12deg); }

.review-note--punched .review-note__paper {
  padding-top: 74px;
}

.review-note__holes {
  position: absolute;
  top: 20px;
  right: 24px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.review-note__holes i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 1.5px 0 #bcbcb8;
}

.review-note--torn .review-note__paper::before {
  /* Small, irregular tears across the bottom of a notebook scrap. */
  clip-path: polygon(0 0, 100% 0, 100% 98%, 97% 99%, 93% 98%, 89% 100%, 85% 98.5%, 81% 99%, 76% 98%, 72% 100%, 68% 99%, 63% 99.5%, 59% 98%, 55% 99%, 50% 98.5%, 46% 100%, 41% 98%, 37% 99%, 32% 98.5%, 28% 100%, 23% 98%, 18% 99.5%, 14% 98.5%, 9% 100%, 5% 98%, 0 99%);
}

.review-note__pick {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  transform: rotate(var(--note-angle));
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}

.review-note__pick:focus-visible {
  outline: 2px dashed var(--fg);
  outline-offset: 8px;
}

.review-note.is-picked .review-note__paper {
  transform: translateY(-9px) rotate(var(--note-angle)) scale(1.025);
}

.review-note.is-picked .review-note__paper::after { opacity: 1; }
.review-note.is-picked .review-note__tape { transform: rotate(-9deg) translateY(-3px); }
.review-note.is-picked .review-note__tape--left { transform: rotate(-19deg) translateY(-3px); }
.review-note.is-picked .review-note__tape--right { transform: rotate(28deg) translateY(-3px); }
body.is-holding-review,
.is-holding-review * { cursor: grabbing !important; }
.is-holding-review .review-note { user-select: none; }

@media (hover: hover) and (pointer: fine) {
  .review-note:not(.is-picked):hover .review-note__paper {
    transform: translateY(-4px) rotate(var(--note-angle));
  }
  .review-note:not(.is-picked):hover .review-note__paper::after { opacity: 0.35; }
}

.review-note.is-keyboard .review-note__paper,
.review-note.is-keyboard .review-note__tape { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .review-note__paper,
  .review-note__tape { transition: none; }
  .review-note.is-picked .review-note__paper,
  .review-note:not(.is-picked):hover .review-note__paper { transform: rotate(var(--note-angle)); }
  .review-note.is-picked .review-note__tape { transform: none; }
}

.talks-quote {
  margin: 0;
}

.talks-quote p {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
  line-height: 1.38;
  letter-spacing: -0.035em;
}

.talks-quote cite {
  display: block;
  margin-top: 32px;
  color: var(--fg);
  font-size: 18px;
  font-style: normal;
  line-height: 1.4;
}

.talks-contact {
  padding-top: 28px;
  border-top: 1px solid var(--fg);
}

.talks-contact > p {
  max-width: 760px;
  margin-top: 32px;
}

.talks-contact > p a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.talks-contact > p a:hover,
.talks-contact > p a:focus-visible {
  border-radius: 1px;
  background-image: var(--gradient-horizontal);
  background-repeat: repeat-x;
  background-attachment: fixed;
  background-size: auto 100%;
  color: var(--color-bg);
  outline: none;
  text-decoration: none;
}

.talks-contact__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.talks-contact__buttons .action-btn {
  width: 100%;
}

.talks-contact__buttons .action-btn__arrow {
  width: 16px;
  height: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .talks .nav__link--talks .nav__mark-img--selected {
    content: url("assets/icons/nav-talks-selected.svg");
  }
}

@media (max-width: 1024px) {
  .talks-main {
    padding: 44px var(--gutter) 72px;
  }

  .talks-feature,
  .talks-past,
  .talks-reviews,
  .talks-contact {
    margin-top: 80px;
  }
}

@media (max-width: 640px) {
  .talks-main {
    padding-bottom: 64px;
  }

  .talks-intro__copy {
    gap: 24px;
  }

  .talks-intro p,
  .talks-contact p {
    font-size: 18px;
  }

  .talks-feature,
  .talks-past,
  .talks-reviews,
  .talks-contact {
    margin-top: 64px;
  }

  .talks-grid,
  .talks-reviews__board,
  .talks-contact__buttons {
    grid-template-columns: 1fr;
  }

  .talks-grid,
  .talks-reviews__board {
    margin-top: 28px;
  }

  .talk-card--feature .talk-card__body {
    display: flex;
  }

  .talk-card__body {
    gap: 20px;
    padding: 18px 16px 20px;
  }

  .talk-card--text {
    min-height: 190px;
  }

  .talk-card__title {
    font-size: 24px;
  }

  .talk-card__desc,
  .talks-quote p {
    font-size: 18px;
  }

  .talks-reviews__board {
    gap: 48px;
  }

  .is-ready .review-note { width: 88%; }
  .review-note__paper { padding: 24px; }
  .talks-quote cite { font-size: 16px; margin-top: 26px; }
  .review-note--punched .review-note__paper { padding-top: 66px; }
  .review-note__holes i { width: 20px; height: 20px; }

  .talks-contact__buttons {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .talk-card--linked {
    transition: none;
  }
}

/* One consistent corner treatment for every interactive button/control. */
button,
[role="button"],
.action-btn,
.menu-overlay__contact-link,
.case-gallery__nav button,
.work-filter,
.about-metric {
  border-radius: var(--radius-card) !important;
}

/* 404: each supplied illustration is shown intact. The frame changes in
   JavaScript, using the same quick random rhythm as the animated initials. */
body.not-found {
  --fg: #171615;
  height: auto;
  min-height: 100%;
  overflow: hidden;
}

.not-found .header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 58px;
  min-height: 58px;
  padding: 26px 16px 0;
}

.not-found .logo {
  position: static;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  transform: none;
}

.not-found .logo__mark {
  width: 261px;
  height: 34px;
  max-height: none;
}

.not-found .nav {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  gap: 12px;
  font-size: 20px;
  line-height: 1.4;
}

.not-found__header-home {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  padding-inline: 0.12em;
  color: var(--fg);
  font-size: 20px;
  line-height: 1.4;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-transform: uppercase;
}

.not-found__main {
  min-height: calc(100dvh - 58px);
}

.not-found__content {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  min-height: calc(100dvh - 58px);
  padding: 30px 20px 20px;
}

.not-found__artwork {
  display: grid;
  align-self: center;
  justify-self: center;
  width: min(1080px, calc(100vw - 40px), calc((100dvh - 190px) * 2));
  min-width: 280px;
  aspect-ratio: 2 / 1;
}

.not-found__artwork img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.not-found__artwork img[hidden] {
  display: none;
}

.not-found__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.not-found__message {
  grid-column: 2;
  margin: 0;
  font-family: var(--font-book);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.not-found__return {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 1024px) {
  .not-found .header {
    display: block;
    height: 72px;
    min-height: 72px;
    padding: 0;
  }

  .not-found .logo {
    position: fixed;
    top: var(--mobile-logo-top, 16px);
    left: 50%;
    width: max-content;
    translate: -50% 0;
    z-index: 2;
  }

  .not-found .logo__mark {
    width: min(230px, calc(100vw - 32px));
    height: auto;
  }

  .not-found .nav,
  .not-found__header-home {
    display: none;
  }

  .not-found__main,
  .not-found__content {
    min-height: calc(100dvh - 72px);
  }

  .not-found__content {
    padding: 16px 16px 20px;
  }

  .not-found__artwork {
    width: min(calc(100vw - 24px), calc((100dvh - 260px) * 2));
    min-width: 260px;
  }

  .not-found__footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .not-found__message,
  .not-found__return {
    grid-column: 1;
    justify-self: center;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .not-found__content {
    padding-top: 8px;
  }

  .not-found__artwork {
    min-width: 0;
  }

}
