/* =========================================================
   steventandrean.dev — Home
   Reference: russellnumo.nl typography hero
   ========================================================= */

:root {
  --bg: #ffffff;
  --ink: #000000;
  --ink-soft: #111111;
  --muted: #3a3a3a;
  --status: #22c55e;
  --pad-x: clamp(1.1rem, 3vw, 2.5rem);
  --pad-y: clamp(1rem, 2.2vw, 1.75rem);
  --font-display: "Humane", "Arial Narrow", Impact, sans-serif;
  --font-ui: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
  height: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  overflow-x: hidden;
  overflow-y: auto;
}

body.is-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

/* ---------- Shell ---------- */

.page {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--pad-y) var(--pad-x);
  pointer-events: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.28s ease,
    border-color 0.28s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header > * {
  pointer-events: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  z-index: 2;
  line-height: 0;
  color: var(--ink);
  transition: opacity 0.25s ease;
}

.logo:hover {
  opacity: 0.65;
}

.logo__img {
  display: block;
  width: auto;
  height: clamp(4rem, 6.5vw, 5.5rem);
}

.menu-toggle {
  display: none;
  z-index: 2;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  min-height: 2rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--ink);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: var(--bg);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  padding-top: 0.2rem;
}

.nav a {
  font-family: var(--font-ui);
  font-size: clamp(0.78rem, 1.05vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-soft);
  transition: opacity 0.25s ease;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.nav a:hover {
  opacity: 0.45;
}

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

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.marquees {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  pointer-events: none;
  user-select: none;
}

.marquees--back {
  z-index: 1;
}

.marquees--front {
  z-index: 3;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  line-height: 0.9;
}

.marquee[data-marquee] {
  pointer-events: auto;
  cursor: default;
}

.marquee[data-marquee].is-slowing .marquee__item,
.marquee[data-marquee].is-paused .marquee__item {
  opacity: 0.72;
}

.marquee--spacer {
  visibility: hidden;
  pointer-events: none;
}

.marquee--spacer .marquee__track {
  animation: none !important;
}

.marquee__track {
  display: inline-flex;
  width: max-content;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.marquee[data-direction="left"] .marquee__track {
  animation-name: marquee-left;
}

.marquee[data-direction="right"] .marquee__track {
  animation-name: marquee-right;
}

.marquee__chunk {
  display: inline-flex;
  flex-shrink: 0;
}

.marquee__item {
  display: inline-block;
  padding-right: 0.28em;
  font-family: var(--font-display);
  /* barely shrinks on small screens (≈9rem → 12.8rem) */
  font-size: clamp(9rem, 8.5rem + 1.2vw, 12.8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9;
  color: var(--ink);
  text-transform: uppercase;
}

@keyframes marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee-right {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* ---------- Hover project shot ---------- */

.hover-shot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 25;
  max-width: min(48vw, 420px);
  max-height: min(56vh, 380px);
  overflow: visible;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) scale(0.9);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.hover-shot.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.hover-shot__stage {
  position: relative;
  display: grid;
  place-items: center;
}

.hover-shot__img {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  height: auto;
  max-width: min(48vw, 420px);
  max-height: min(56vh, 380px);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.96) translate3d(0, 6px, 0);
  transition:
    opacity 0.2s ease,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-shot__img.is-active {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
  z-index: 2;
}

.hover-shot__img.is-exit {
  opacity: 0;
  transform: scale(1.02) translate3d(0, -4px, 0);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hover-shot,
  .hover-shot__img {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Portrait ---------- */

.portrait {
  display: none;
  position: relative;
  z-index: 2;
  width: min(28vw, 300px);
  aspect-ratio: 1 / 1.15;
  margin-top: 0.5rem;
}

.portrait__backdrop {
  position: absolute;
  inset: -6% -10% 18%;
  z-index: 0;
  background: rgba(210, 210, 210, 0.55);
  pointer-events: none;
}

.portrait__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #c8c8c8;
}

.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: multiply;
  opacity: 0.92;
  transform: scale(1.02);
}

.portrait__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 20%, transparent 75%, rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.12));
  pointer-events: none;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  text-decoration: none;
  transform: translateX(-50%);
  transition: opacity 0.2s ease;
}

.hero-scroll:hover {
  opacity: 0.55;
}

.hero-scroll__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-scroll__mouse {
  position: relative;
  width: 1.4rem;
  height: 2.15rem;
  border: 1px solid rgba(0, 0, 0, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-scroll__wheel {
  position: absolute;
  top: 0.35rem;
  left: 50%;
  width: 0.2rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
  animation: hero-scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes hero-scroll-wheel {
  0% {
    opacity: 0;
    transform: translate(-50%, -0.1rem);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, 0.45rem);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 0.7rem);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem var(--pad-x) calc(0.95rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.site-footer > * {
  pointer-events: auto;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-self: start;
}

.site-footer__links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer__links a:hover {
  opacity: 0.5;
}

.status {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: clamp(0.62rem, 0.95vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.status:hover {
  background: var(--ink);
  color: var(--bg);
}

.status:hover .status__dot {
  background: #4ade80;
}

.status__dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  70% {
    box-shadow: 0 0 0 0.55rem rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* ---------- Motion entry ---------- */

.logo,
.nav,
.menu-toggle,
.status,
.portrait {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nav,
.menu-toggle {
  animation-delay: 0.08s;
}

.portrait {
  animation-delay: 0.18s;
}

.status {
  animation-delay: 0.28s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none !important;
    transform: none !important;
  }

  .hero-scroll__wheel {
    animation: none !important;
  }

  .logo,
  .nav,
  .menu-toggle,
  .status,
  .portrait,
  .status__dot {
    animation: none !important;
  }
}

/* ---------- Tablet + Mobile (≤1024) ---------- */

@media (max-width: 1024px) {
  .site-header {
    align-items: center;
  }

  .marks-tip--stevent,
  .marks-cursor {
    display: none;
  }

  .logo__img {
    height: clamp(3.5rem, 5vw, 4.5rem);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 5rem var(--pad-x);
    background: rgba(255, 255, 255, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
  }

  .marquees {
    gap: clamp(-0.45rem, -0.9vw, -0.2rem);
  }

  .marquee__item {
    font-size: clamp(7rem, 10.8vw, 9.6rem);
    padding-right: 0.22em;
  }

  .hero-scroll {
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .portrait {
    width: min(42vw, 320px);
    aspect-ratio: 1 / 1.2;
  }

  .portrait__backdrop {
    inset: -4% -8% 22%;
    background: rgba(200, 200, 200, 0.5);
  }

  .status {
    font-size: 0.68rem;
  }

  .hover-shot {
    max-width: min(56vw, 360px);
    max-height: min(50vh, 320px);
  }

  .hover-shot__img {
    max-width: min(56vw, 360px);
    max-height: min(50vh, 320px);
  }
}

/* ---------- Mobile (≤768) ---------- */

@media (max-width: 768px) {
  :root {
    --pad-x: 1rem;
    --pad-y: 1rem;
  }

  .marquees {
    gap: clamp(-0.8rem, -2vw, -0.35rem);
  }

  .marquee__item {
    font-size: clamp(4.9rem, 14vw, 7.1rem);
    padding-right: 0.18em;
  }

  .hero-scroll {
    bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px));
    gap: 0.4rem;
  }

  .hero-scroll__label {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  .hero-scroll__mouse {
    width: 1.2rem;
    height: 1.9rem;
  }

  .logo__img {
    height: 3.2rem;
  }

  .menu-toggle {
    min-width: 4.4rem;
    min-height: 1.85rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.68rem;
  }

  .portrait {
    width: min(58vw, 250px);
    aspect-ratio: 1 / 1.25;
  }

  .site-footer {
    padding-inline: 0.85rem;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-footer__links {
    justify-self: center;
  }

  .status {
    grid-column: auto;
    font-size: 0.62rem;
    padding: 0.5rem 1rem;
  }

  .status__dot {
    width: 0.45rem;
    height: 0.45rem;
  }
}

/* ---------- Small phones (≤390) ---------- */

@media (max-width: 390px) {
  .marquees {
    gap: -0.95rem;
  }

  .marquee__item {
    font-size: clamp(4rem, 16vw, 5.4rem);
    padding-right: 0.15em;
  }

  .hero-scroll {
    bottom: calc(5.85rem + env(safe-area-inset-bottom, 0px));
  }

  .portrait {
    width: 62vw;
  }

  .status {
    font-size: 0.58rem;
  }

  .hover-shot {
    max-width: min(72vw, 300px);
    max-height: min(46vh, 280px);
  }

  .hover-shot__img {
    max-width: min(72vw, 300px);
    max-height: min(46vh, 280px);
  }
}

/* ---------- Studio section (after hero) ---------- */

.studio {
  position: relative;
  z-index: 5;
  min-height: 100dvh;
  padding:
    clamp(5.5rem, 10vh, 7rem)
    var(--pad-x)
    calc(5.5rem + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent 18%),
    linear-gradient(135deg, #f7f7f7 0%, #ffffff 48%, #f2f2f2 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.studio-tabs {
  display: none;
  max-width: 1200px;
  margin: 0 auto 1rem;
}

.studio-tabs__btn {
  min-height: 2.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.studio-tabs__btn.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  max-width: 1200px;
  margin: 0 auto;
  min-height: min(72vh, 640px);
}

.studio-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.studio-panel--chat {
  background: #fff;
}

.studio-panel--guide,
.studio-panel--more {
  justify-content: space-between;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 245, 0.9));
}

.studio-panel__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.studio-panel__title {
  margin: 0;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.studio-panel__text {
  margin: 1rem 0 0;
  max-width: 28ch;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.studio-panel__cases {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.studio-panel__cases a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}

.studio-panel__cases a:hover {
  opacity: 0.45;
}

.studio-panel__extra {
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.studio-panel__extra a {
  color: inherit;
  text-decoration: none;
}

.studio-panel__extra a:hover {
  opacity: 0.5;
}


.studio-panel__mark {
  margin-top: auto;
  padding-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.06);
  user-select: none;
}

.chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.9rem;
  margin-top: 1.5rem;
  min-height: 0;
}

.chat__step {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.chat__thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-height: 10rem;
  max-height: 22rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.chat-bubble {
  max-width: 92%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  line-height: 1.4;
}

.chat-bubble--bot {
  align-self: flex-start;
  border-radius: 1.15rem 1.15rem 1.15rem 0.35rem;
  background: #f3f3f3;
}

.chat-bubble--user {
  align-self: flex-end;
  border-radius: 1.15rem 1.15rem 0.35rem 1.15rem;
  border-color: transparent;
  background: #111;
  color: #fff;
}

.chat-bubble--typing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 3.4rem;
  padding: 0.95rem 1.05rem;
}

.chat-bubble--typing span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #6b6b6b;
  animation: chat-typing 1.05s ease-in-out infinite;
}

.chat-bubble--typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-bubble--typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.chat-bubble--bot.is-typing-text::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 1em;
  margin-left: 0.08em;
  vertical-align: -0.1em;
  background: currentColor;
  animation: chat-caret 0.85s steps(1) infinite;
}

@keyframes chat-caret {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-bubble--bot.is-typing-text::after,
  .chat-bubble--typing span {
    animation: none;
  }
}

.chat__composer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chat__field-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.chat__field {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat__field:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.chat__field--select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #111 50%),
    linear-gradient(135deg, #111 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) calc(50% - 0.15rem),
    calc(100% - 0.85rem) calc(50% - 0.15rem);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.chat__field--textarea {
  display: block;
  width: 100%;
  min-height: 5.5rem;
  height: auto;
  padding: 0.85rem 1rem;
  border-radius: 1.1rem;
  resize: vertical;
  line-height: 1.4;
}

.chat__composer-fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chat__field-block {
  width: 100%;
}

.chat-fade {
  animation: chat-fade-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes chat-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-fade {
    animation: none;
  }
}

.chat__send {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--status);
  color: #04140a;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.chat__send:hover:not(:disabled) {
  transform: scale(1.04);
  filter: brightness(0.97);
}

.chat__send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chat__send svg {
  width: 1rem;
  height: 1rem;
}

.chat__error {
  margin: 0;
  min-height: 1.1em;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #b42318;
}

.chat__error[hidden] {
  display: none;
}

.chat-end__note {
  margin: 0;
  max-width: 34ch;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}

.chat-end__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.chat__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chat-btn--ghost {
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  color: var(--ink);
}

.chat-btn--ghost:hover:not(:disabled) {
  border-color: var(--ink);
}

.chat-btn--solid {
  border: 1px solid var(--status);
  background: var(--status);
  color: #04140a;
}

.chat-btn--solid:hover:not(:disabled) {
  transform: translateY(-1px);
}

.chat-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-end {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.25rem 0 0.5rem;
}

.chat-end__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-end__link:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .studio-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .studio__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .studio-panel {
    display: none;
  }

  .studio-panel.is-active {
    display: flex;
  }

  .studio-panel--guide,
  .studio-panel--more {
    min-height: 16rem;
  }

  .studio-panel__title {
    max-width: 14ch;
  }

  .studio-tabs {
    align-items: center;
  }

  .studio-tabs__btn {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
  }

  .studio-tabs__btn.is-active {
    border-color: rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  }
}

@media (max-width: 768px) {
  .studio {
    padding-top: 4.75rem;
  }

  .studio-tabs__btn {
    min-height: 2.35rem;
    padding-inline: 0.7rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .chat__thread {
    max-height: 16rem;
  }
}

/* ---------- Marks / logos section ---------- */

.marks {
  --marks-cursor: #111111;
  --marks-tip-stevent-bg: rgba(26, 26, 26, 0.85);
  --marks-tip-stevent-fg: #f5f5f5;
  --marks-tip-stevent-meta: rgba(255, 255, 255, 0.5);
  --marks-tip-user-bg: rgba(244, 247, 251, 0.85);
  --marks-tip-user-fg: #121417;
  --marks-tip-user-meta: rgba(18, 20, 23, 0.52);
  --marks-tip-user-border: rgba(18, 40, 70, 0.14);
  position: relative;
  z-index: 4;
  padding:
    clamp(4.5rem, 9vh, 6.5rem)
    clamp(1.25rem, 4vw, 2.75rem)
    clamp(3.5rem, 7vh, 5rem);
  background:
    linear-gradient(180deg, #fff 0%, #f6f6f6 55%, #f0f0f0 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.marks__head {
  margin: 0 0 1.25rem;
}

.marks__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.marks__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.marks__text {
  margin: 0.9rem 0 0;
  max-width: 40ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.marks__stage {
  position: relative;
  width: 100%;
  min-height: 0;
  padding: clamp(0.75rem, 1.8vw, 1.25rem);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.marks__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.4vw, 1rem);
  align-items: stretch;
  justify-items: stretch;
  min-height: 0;
}

.marks__item {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(88px, 12vw, 112px);
  aspect-ratio: auto;
  padding: clamp(0.85rem, 1.8vw, 1.15rem) clamp(0.75rem, 1.6vw, 1.1rem);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  touch-action: manipulation;
}

.marks__item img {
  width: auto;
  max-width: 86%;
  height: auto;
  max-height: clamp(52px, 7.5vw, 68px);
  object-fit: contain;
  object-position: center;
  opacity: 0.88;
  transform: scale(var(--logo-scale, 1));
  transform-origin: center;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
  filter: grayscale(0.55);
  pointer-events: none;
}

.marks__item:hover img,
.marks__item.is-active img {
  opacity: 1;
  filter: grayscale(0);
}

.marks__item.is-active {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.marks-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  pointer-events: none;
  will-change: transform;
}

.marks-cursor.is-tip-open .marks-cursor__pill {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  transform: translateY(-2px) scale(0.96);
  pointer-events: none;
}

.marks-cursor__img {
  display: block;
  width: 28px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.22));
  pointer-events: none;
  user-select: none;
}

.marks-cursor__pill {
  margin-left: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--marks-cursor, #111111);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.marks-tip {
  position: absolute;
  top: 0;
  left: 0;
  width: min(78vw, 280px);
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.marks-tip.is-visible {
  opacity: 1;
  visibility: visible;
}

.marks-tip--stevent {
  z-index: 8;
  background: var(--marks-tip-stevent-bg);
  color: var(--marks-tip-stevent-fg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.marks-tip--stevent .marks-tip__meta {
  color: var(--marks-tip-stevent-meta);
}

.marks-tip--stevent .marks-tip__body {
  color: var(--marks-tip-stevent-fg);
}

.marks-tip--user {
  z-index: 8;
  width: min(82vw, 320px);
  padding: 1rem 1.1rem;
  background: var(--marks-tip-user-bg);
  color: var(--marks-tip-user-fg);
  border: 1px solid var(--marks-tip-user-border);
  box-shadow:
    0 18px 44px rgba(20, 36, 64, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
}

.marks-tip--user .marks-tip__meta {
  color: var(--marks-tip-user-meta);
}

.marks-tip--user .marks-tip__body {
  color: var(--marks-tip-user-fg);
  font-size: 0.98rem;
}

.marks-tip__meta {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.marks-tip__body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ---------- Marks variant B: logo strip + marquee ---------- */

.marks--strip {
  padding-top: clamp(2.5rem, 5vh, 3.75rem);
  background:
    linear-gradient(180deg, #f0f0f0 0%, #f7f7f7 40%, #fafafa 100%);
  border-top: none;
}

.marks--strip .marks__stage {
  position: relative;
  padding: clamp(1.35rem, 3vw, 2rem) 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  overflow: visible;
}

.marks--strip .marks-marquee {
  display: block;
  width: 100%;
  overflow: hidden;
}

.marks--strip .marks-marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marks-marquee-left 42s linear infinite;
}

.marks--strip .marks-marquee.is-frozen .marks-marquee__track {
  animation-play-state: paused;
}

.marks--strip .marks-marquee__chunk {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-right: clamp(2rem, 5vw, 4.5rem);
}

.marks--strip .marks__item {
  flex: 0 0 auto;
  width: clamp(118px, 14vw, 168px);
  min-height: clamp(64px, 8vw, 84px);
  padding: 0.35rem 0.25rem;
  border: none;
  background: transparent;
  transform: none;
}

.marks--strip .marks__item.is-active {
  border-color: transparent;
  background: transparent;
  transform: none;
}

.marks--strip .marks__item img {
  max-width: 100%;
  max-height: clamp(42px, 5.5vw, 58px);
  opacity: 0.92;
  filter: none;
}

.marks--strip .marks__item:hover img,
.marks--strip .marks__item.is-active img {
  opacity: 1;
  filter: none;
}

@keyframes marks-marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (hover: none) {
  .marks__item {
    cursor: pointer;
  }
}

@media (max-width: 768px) {
  .marks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 240px;
  }

  .marks--strip {
    padding-top: 2rem;
  }

  .marks--strip .marks__stage {
    padding: 1rem 0;
  }

  .marks--strip .marks__grid {
    min-height: 0;
  }

  .marks--strip .marks-marquee__track {
    animation-duration: 28s;
  }

  .marks--strip .marks__item {
    width: clamp(100px, 28vw, 140px);
    min-height: clamp(52px, 12vw, 68px);
    padding: 0.2rem 0.15rem;
  }

  .marks--strip .marks__item img {
    max-height: clamp(34px, 8vw, 46px);
  }

  .marks-cursor {
    display: none;
  }
}

@media (max-width: 420px) {
  .marks__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .marks--strip {
    padding-top: 1.6rem;
  }

  .marks--strip .marks__stage {
    padding: 0.8rem 0;
  }

  .marks--strip .marks-marquee__chunk {
    gap: 1.35rem;
    padding-right: 1.35rem;
  }

  .marks--strip .marks__item {
    width: clamp(88px, 26vw, 112px);
    min-height: 50px;
  }

  .marks--strip .marks__item img {
    max-height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marks-cursor {
    display: none;
  }

  .marks--strip .marks-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .marks--strip .marks-marquee__chunk[aria-hidden="true"] {
    display: none;
  }
}


/* ---------- Portfolio index ---------- */

.page-portfolio .page,
.page-work .page {
  min-height: 100dvh;
}

.work-index {
  --marks-cursor: #111111;
  --marks-tip-stevent-bg: #1a1a1a;
  --marks-tip-stevent-fg: #f5f5f5;
  --marks-tip-stevent-meta: rgba(255, 255, 255, 0.5);
  --marks-tip-user-bg: #f4f7fb;
  --marks-tip-user-fg: #121417;
  --marks-tip-user-meta: rgba(18, 20, 23, 0.52);
  --marks-tip-user-border: rgba(18, 40, 70, 0.14);
  position: relative;
  z-index: 4;
  padding:
    clamp(6.5rem, 14vh, 8.5rem)
    clamp(1.25rem, 4vw, 2.75rem)
    clamp(4rem, 8vh, 6rem);
  background:
    linear-gradient(180deg, #fff 0%, #f7f7f7 55%, #f0f0f0 100%);
}

.work-index__head {
  margin: 0 0 clamp(3rem, 6vh, 4.5rem);
  max-width: 40rem;
}

.work-index__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-index__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.work-index__text {
  margin: 0.9rem 0 0;
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.work-index__stage {
  position: relative;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.8vw, 2.25rem);
}

.work-row {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(16rem, 38vw, 26rem);
  color: #fff;
  text-decoration: none;
  background: #111;
}

.work-row--lead {
  min-height: clamp(20rem, 52vw, 34rem);
}

.work-list:has(.work-row:hover) .work-row:not(:hover) {
  opacity: 0.38;
}

.work-row__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a1a1a;
}

.work-row__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-row:hover .work-row__media img {
  transform: scale(1.08);
}

.work-row__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding: clamp(1.1rem, 2.4vw, 1.85rem);
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.12) 42%,
      rgba(0, 0, 0, 0.72) 100%
    );
}

.work-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: auto;
  padding-bottom: 2rem;
}

.work-row__index,
.work-row__year,
.work-row__roles {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.work-row__title {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 0.82;
  text-transform: uppercase;
  color: #fff;
}

.work-row--lead .work-row__title {
  font-size: clamp(3.2rem, 9vw, 6.4rem);
}

.work-row__summary {
  margin: 0.7rem 0 0;
  max-width: 36ch;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
}

.work-row__roles {
  display: block;
  margin-top: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.work-cursor {
  z-index: 42;
}

.work-tip.marks-tip--user {
  z-index: 43;
}

.work-tip.marks-tip--stevent {
  z-index: 41;
}

/* ---------- Work detail ---------- */

.work-detail {
  --marks-cursor: #111111;
  --marks-tip-stevent-bg: #1a1a1a;
  --marks-tip-stevent-fg: #f5f5f5;
  --marks-tip-stevent-meta: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 4;
  padding:
    clamp(6.5rem, 14vh, 8.5rem)
    clamp(1.25rem, 4vw, 2.75rem)
    clamp(4rem, 8vh, 6rem);
  background:
    linear-gradient(180deg, #fff 0%, #f8f8f8 60%, #f2f2f2 100%);
}

.work-detail__head {
  max-width: 46rem;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
}

.work-detail__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-detail__eyebrow a {
  color: inherit;
  text-decoration: none;
}

.work-detail__eyebrow a:hover {
  opacity: 0.55;
}

.work-detail__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.work-detail__summary {
  margin: 1rem 0 0;
  max-width: 48ch;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.work-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.work-tag {
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: #fff;
}

.work-tag--muted {
  color: var(--muted);
  background: transparent;
}

.work-detail__cover {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

.work-detail__cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 640px);
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.work-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.15rem);
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}

.work-brief__item {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.86);
}

.work-brief__item--problem {
  background: #141414;
  border-color: #141414;
  color: #f5f5f5;
}

.work-brief__item--problem .work-brief__label {
  color: rgba(255, 255, 255, 0.5);
}

.work-brief__label {
  margin: 0 0 0.45rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-brief__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.work-gallery__stage {
  position: relative;
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.work-frame {
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-frame.is-active {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.work-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.work-detail__footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  align-items: end;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.work-detail__cta-text {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.4;
}

.work-related__label {
  margin: 0 0 0.55rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-related__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-related__list a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.work-related__list a:hover {
  opacity: 0.5;
}

.work-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

@media (max-width: 820px) {
  .work-brief {
    grid-template-columns: 1fr;
  }

  .work-detail__footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .work-cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-cursor {
    display: none;
  }

  .work-row:hover .work-row__media img {
    transform: none;
  }
}

/* =========================================================
   Lab hub + WebP tool
   ========================================================= */

.lab-index,
.webp-tool {
  position: relative;
  z-index: 4;
  padding:
    clamp(6.5rem, 14vh, 8.5rem)
    clamp(1.25rem, 4vw, 2.75rem)
    clamp(4rem, 8vh, 6rem);
  background:
    linear-gradient(180deg, #fff 0%, #f7f7f7 55%, #f0f0f0 100%);
  min-height: 70vh;
}

.lab-index__head,
.webp-tool__head {
  margin: 0 0 clamp(2.5rem, 5vh, 4rem);
  max-width: 40rem;
}

.lab-index__eyebrow,
.webp-tool__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.webp-tool__eyebrow a {
  color: inherit;
  text-decoration: none;
}

.webp-tool__eyebrow a:hover {
  opacity: 0.55;
}

.lab-index__title,
.webp-tool__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.lab-index__text,
.webp-tool__text {
  margin: 0.9rem 0 0;
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.lab-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.lab-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(1rem, 3vw, 2.25rem);
  row-gap: 0.35rem;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  color: inherit;
  text-decoration: none;
}

.lab-row:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.lab-list:has(.lab-row:hover) .lab-row:not(:hover):not(.lab-row--soon) {
  opacity: 0.32;
}

.lab-row--soon {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.lab-row__index {
  grid-row: 1 / span 3;
  align-self: start;
  padding-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.lab-row__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 0.82;
  text-transform: uppercase;
}

.lab-row--lead .lab-row__title {
  font-size: clamp(3rem, 8vw, 6rem);
}

.lab-row__summary {
  margin: 0;
  max-width: 42ch;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
}

.lab-row__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: baseline;
}

.lab-row__status {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-row:not(.lab-row--soon) .lab-row__status {
  color: #15803d;
}

.lab-row--soon .lab-row__status {
  color: var(--muted);
}

.lab-row__kind {
  font-size: 0.72rem;
  color: var(--muted);
}

.webp-tool__unsupported {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.45;
}

.webp-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 11rem;
  padding: 2rem 1.25rem;
  border: 1px dashed rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.webp-drop:hover,
.webp-drop.is-dragover {
  border-color: var(--ink);
  background: #fff;
}

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

.webp-drop {
  position: relative;
}

.webp-drop__title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.webp-drop__hint {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.webp-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.webp-format {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 0 1 11rem;
}

.webp-format__label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.webp-format__select {
  min-height: 2.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.webp-format__select:focus {
  outline: 1px solid var(--ink);
  outline-offset: 1px;
}

.webp-naming {
  flex: 1 1 100%;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.webp-naming__legend {
  padding: 0;
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.webp-naming__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.webp-naming__mode {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.webp-naming__mode input {
  accent-color: var(--ink);
}

.webp-naming__prefix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: 0.85rem;
}

.webp-naming__prefix-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.webp-naming__prefix-input {
  flex: 1 1 10rem;
  max-width: 16rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.webp-naming__prefix-input:focus {
  outline: 1px solid var(--ink);
  outline-offset: 1px;
}

.webp-naming__prefix-hint {
  flex: 1 1 100%;
  font-size: 0.78rem;
  color: var(--muted);
}

.webp-quality {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1 1 14rem;
  max-width: 22rem;
}

.webp-quality__label {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.webp-quality__label strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.webp-quality__range {
  width: 100%;
  accent-color: var(--ink);
}

.webp-controls__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.webp-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.webp-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.webp-item__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  word-break: break-word;
}

.webp-item__meta {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.webp-item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.webp-item__dl {
  min-height: 2.2rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  text-decoration: none;
}

.webp-item__remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.webp-item__remove:hover {
  color: var(--ink);
}

.about-index {
  position: relative;
  z-index: 4;
  padding:
    clamp(6.5rem, 14vh, 8.5rem)
    clamp(1.25rem, 4vw, 2.75rem)
    clamp(4rem, 8vh, 6rem);
  background:
    linear-gradient(180deg, #fff 0%, #f7f7f7 55%, #f0f0f0 100%);
  min-height: 70vh;
}

.about-index__head {
  max-width: 40rem;
  margin: 0 0 clamp(2.5rem, 5vh, 4rem);
}

.about-index__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-index__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.about-index__lead {
  margin: 1rem 0 0;
  max-width: 44ch;
  font-size: 1.02rem;
  line-height: 1.45;
}

.about-index__text {
  margin: 0.75rem 0 0;
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.about-lanes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.5rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.about-lane__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.about-lane__text {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
}

.about-index__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: clamp(2rem, 4vh, 3rem) 0 0;
}

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

.page-contact .contact-page {
  position: relative;
  z-index: 4;
  background:
    linear-gradient(180deg, #fff 0%, #f7f7f7 35%, #f2f2f2 100%);
}

.contact-hero {
  padding:
    clamp(6.5rem, 14vh, 9rem)
    var(--pad-x)
    clamp(2.5rem, 5vh, 3.5rem);
  max-width: 1100px;
  margin: 0 auto;
}

.contact-hero__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 10rem);
  font-weight: 700;
  line-height: 0.82;
  text-transform: uppercase;
}

.contact-hero__lead {
  margin: 1.25rem 0 0;
  max-width: 42ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.45;
  color: var(--muted);
}

.contact-hero__meta {
  margin: 1.5rem 0 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.contact-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 500;
}

.contact-runway {
  padding-bottom: clamp(2rem, 4vh, 3rem);
}

.cx-runway {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.cx-runway__track {
  display: flex;
  gap: 0;
  min-width: max-content;
  padding: 0 var(--pad-x) 0.5rem;
}

.cx-runway__panel {
  flex: 0 0 min(82vw, 30rem);
  scroll-snap-align: start;
  min-height: min(72vh, 620px);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(160deg, #fff 0%, #f4f4f4 100%);
}

.cx-runway__panel:last-child {
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  margin-right: var(--pad-x);
}

.cx-runway__index {
  margin: 0 auto 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.cx-runway__kicker {
  margin: auto 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-runway__title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-ui);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: none;
}

.cx-runway__title a,
.cx-runway__title span[data-scramble] {
  color: inherit;
  text-decoration: none;
}

.cx-runway__title a:hover {
  opacity: 0.75;
}

.cx-runway__mail {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  word-break: break-word;
  transition: transform 0.2s ease;
}

.cx-runway__mail:hover {
  opacity: 0.75;
}

.cx-runway__text {
  margin: 1rem 0 0;
  max-width: 32ch;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
}

.cx-runway__panel--end {
  background: #111;
  color: #fff;
  border-color: #111;
}

.cx-runway__panel--end .cx-runway__index,
.cx-runway__panel--end .cx-runway__kicker,
.cx-runway__panel--end .cx-runway__text {
  color: rgba(255, 255, 255, 0.55);
}

.cx-runway__panel--end .cx-runway__title a:hover {
  opacity: 0.65;
}

.contact-block {
  padding:
    clamp(4rem, 10vh, 6.5rem)
    var(--pad-x);
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-block__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-block__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.contact-block__text {
  margin: 1rem 0 0;
  max-width: 42ch;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--muted);
}

.contact-brief__list {
  list-style: none;
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.contact-brief__list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem 1.5rem;
  padding: clamp(1.25rem, 2.5vh, 1.75rem) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-brief__list li:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-brief__num {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 0.35rem;
}

.contact-brief__list h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-brief__list p {
  margin: 0.4rem 0 0;
  max-width: 46ch;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
}

.contact-lanes__grid {
  list-style: none;
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.contact-lanes__num {
  margin: 0 0 0.75rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.contact-lanes__name {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: none;
}

.contact-lanes__text {
  margin: 0.75rem 0 0;
  max-width: 34ch;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--muted);
}

.contact-facts__list {
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.contact-facts__list > div {
  padding: clamp(1.25rem, 2.5vh, 1.75rem);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-facts__list > div:nth-child(2n) {
  border-right: 0;
}

.contact-facts__list > div:nth-last-child(-n + 2) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-facts__list dt {
  margin: 0 0 0.45rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-facts__list dd {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-transform: none;
}

.contact-cases__list {
  list-style: none;
  margin: clamp(1.75rem, 4vh, 2.5rem) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-cases__list a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}

.contact-cases__list a:hover {
  opacity: 0.4;
}

.contact-cases__more {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-cases__more a {
  color: inherit;
}

.contact-close {
  padding:
    clamp(5rem, 12vh, 8rem)
    var(--pad-x)
    clamp(4rem, 8vh, 6rem);
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
}

.contact-close__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-close__title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-ui);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-align: left;
  text-transform: none;
  word-break: break-word;
}

.contact-close__text {
  margin: 1.15rem 0 0;
  max-width: 40ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.contact-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.75rem 0 0;
}

.contact-lab__foot {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  margin: 0;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-50%);
  pointer-events: none;
}

.contact-lab__foot[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .contact-hero {
    padding-top: clamp(5rem, 11vh, 6.5rem);
    padding-bottom: 2.25rem;
  }

  .contact-hero__title {
    font-size: clamp(3.25rem, 12vw, 6rem);
    line-height: 0.88;
  }

  .contact-hero__lead {
    max-width: 34ch;
    font-size: 1rem;
  }

  .contact-runway {
    padding-bottom: 1.5rem;
  }

  .cx-runway__panel {
    flex-basis: min(88vw, 24rem);
    min-height: min(58vh, 420px);
    padding: 1.35rem;
  }

  .cx-runway__title {
    max-width: 14ch;
    font-size: clamp(1.35rem, 4.8vw, 2rem);
  }

  .cx-runway__text {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .contact-block {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .contact-block__title {
    font-size: clamp(2.35rem, 9vw, 4rem);
  }

  .contact-brief__list li {
    grid-template-columns: 2.8rem 1fr;
    gap: 0.9rem 1rem;
  }

  .contact-brief__list h3 {
    font-size: 1rem;
    line-height: 1.25;
  }

  .contact-brief__list p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .contact-lanes__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .contact-facts__list {
    grid-template-columns: 1fr;
  }

  .contact-facts__list > div {
    border-right: 0;
  }

  .contact-facts__list > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .contact-facts__list > div:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .contact-cases__list a {
    font-size: clamp(2.3rem, 10vw, 4rem);
  }

  .contact-close {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .contact-close__title {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }
}

@media (max-width: 640px) {
  .cx-runway__track {
    padding-bottom: 0.35rem;
  }

  .cx-runway__panel {
    flex-basis: calc(100vw - (var(--pad-x) * 2));
    min-height: 18rem;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .cx-runway__index {
    margin-bottom: 1.25rem;
  }

  .cx-runway__kicker {
    margin: 0 0 0.3rem;
  }

  .contact-block__eyebrow,
  .contact-close__eyebrow,
  .contact-brief__num,
  .contact-lanes__num,
  .contact-facts__list dt {
    letter-spacing: 0.12em;
  }

  .contact-lanes__name {
    font-size: 1.05rem;
  }

  .contact-facts__list dd {
    font-size: 1rem;
  }

  .contact-close__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-close__actions .chat-btn {
    width: 100%;
  }
}

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

/* ---------- 404 / missing ---------- */

.page-missing {
  background: #fff;
}

.page-missing .page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-missing .site-footer {
  margin-top: auto;
}

.missing {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  align-items: stretch;
  padding:
    clamp(6.5rem, 12vh, 8rem)
    var(--pad-x)
    clamp(2rem, 5vh, 3.5rem);
  overflow: hidden;
}

.missing__frame {
  position: relative;
  width: min(100%, 72rem);
  margin-inline: auto;
  display: grid;
  align-content: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  min-height: min(70dvh, 40rem);
}

.missing__giant {
  position: absolute;
  inset: auto 0 8%;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(11rem, 38vw, 28rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  animation: missing-float 7s ease-in-out infinite;
}

.missing__content {
  position: relative;
  z-index: 1;
  max-width: 22rem;
  animation: missing-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.missing__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.missing__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 8.5rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.missing__lead {
  margin: 1.15rem 0 0;
  max-width: 28ch;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.missing__path {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f6f6f6;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
}

.missing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.6rem;
  animation: missing-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.missing__rail {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  animation: missing-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.missing__rail a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.missing__rail a:hover {
  color: var(--ink);
}

@keyframes missing-float {
  0%,
  100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -1.2%, 0); }
}

@keyframes missing-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (min-width: 900px) {
  .missing__frame {
    grid-template-columns: 1fr;
    align-content: end;
    padding-bottom: 1rem;
  }

  .missing__content {
    max-width: 28rem;
  }

  .missing__giant {
    inset: 12% 0 auto;
    text-align: right;
    font-size: clamp(14rem, 28vw, 26rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .missing__giant,
  .missing__content,
  .missing__actions,
  .missing__rail {
    animation: none;
  }
}
