:root {
  --bg: #111111;
  --surface: #212121;
  --text: #e7e7e7;
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.45);
  --accent: #ff004f;
  --font-body: "Figtree", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

/* Body copy — Figtree for paragraphs, descriptions, and denser reading text */
.case-current-description,
.case-card-description,
.work-list-desc,
.detail-summary,
.detail-section p,
.detail-section ul li,
.detail-lead,
.detail-vision,
.detail-statement p,
.detail-split-body p,
.detail-split-body ul li,
.detail-metric-label,
.footer-copyright {
  font-family: var(--font-body);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  line-height: 1.35;
  opacity: 0;
  animation: pageFadeIn 520ms ease-out forwards;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

@media (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor * {
    cursor: none !important;
  }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  pointer-events: none;
  opacity: 0;
}

.custom-cursor-dot {
  width: 40px;
  height: 40px;
  color: #ffffff;
  opacity: 1;
  overflow: visible;
  will-change: transform, opacity;
}

.custom-cursor-core {
  fill: #ffffff;
}

.custom-cursor-ring {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.05;
  opacity: 0;
}

.custom-cursor-case {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1501;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.54rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 0;
  background: rgba(17, 17, 17, 0.88);
  color: #ffffff;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.section {
  width: min(1440px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 98px;
  width: 100%;
  z-index: 20;
  display: grid;
  align-items: start;
  justify-items: center;
  padding-top: 0;
}

.site-header-inner {
  position: relative;
  width: 100%;
  margin: 0 auto;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 calc(1.3rem + 16px);
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  box-shadow: none;
}

.site-header.scrolled {
  padding-top: calc(0.78rem + 8px);
}

.site-header.scrolled .site-header-inner {
  width: min(720px, 92vw);
  border-radius: 999px;
  border-color: transparent;
  background: rgba(26, 26, 26, 0.75);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
}

.site-header .brand-name {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: calc(0.56rem + 8px);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  max-width: min(66vw, 760px);
  min-height: 44px;
  padding: 0.42rem 0.2rem 0.42rem 0;
  transition: color 180ms ease;
}

.site-header .brand-logo {
  width: 1.55rem;
  height: auto;
  flex: 0 0 auto;
  display: block;
  transform: scale(1);
  transform-origin: center;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .brand-text {
  display: block;
  font-weight: 200;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
  opacity: 0;
  transform: translateX(0);
  transition:
    max-width 500ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 400ms ease,
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
    font-weight 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.hero-past .brand-text {
  max-width: 20rem;
  opacity: 1;
}

.site-header .brand-name:hover .brand-text,
.site-header .brand-name:focus-visible .brand-text {
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1);
  transform: translateX(-4px);
  font-weight: 500;
}

.site-header .brand-name:hover .brand-logo,
.site-header .brand-name:focus-visible .brand-logo {
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1);
  transform: scale(1.1);
}

.site-header nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.34rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 220ms ease;
}

.nav-cta-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  padding-right: 0;
  transition:
    max-width 400ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-right 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}

.nav-cta-icon svg {
  width: 0.82rem;
  height: 0.82rem;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: var(--line-strong);
  outline: none;
}

.nav-cta:hover .nav-cta-label,
.nav-cta:focus-visible .nav-cta-label {
  max-width: 8rem;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0;
}

.menu-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.site-header.menu-open .menu-toggle {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.site-header nav .nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  color: var(--muted);
  text-decoration: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.36rem 0.3rem 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.9rem;
  line-height: 1;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-header nav .nav-button:hover {
  color: var(--text);
  border-bottom-color: var(--line-strong);
}

.site-header nav .nav-button:focus-visible {
  color: var(--text);
  border-bottom-color: var(--line-strong);
  outline: none;
}

.site-header nav .nav-button[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--text);
}

@media (max-width: 900px) {
  .site-header {
    height: 86px;
    padding-top: 0.28rem;
  }

  .site-header-inner {
    position: relative;
    height: 64px;
    width: 100%;
    gap: 1rem;
    padding: 0 calc(0.88rem + 16px);
    border-color: transparent;
    border-radius: 0;
    background: transparent;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    box-shadow: none;
  }

  .site-header.scrolled .site-header-inner {
    width: min(1120px, 94vw);
    border-color: transparent;
    border-radius: 20px;
    background: rgba(26, 26, 26, 0.75);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    backdrop-filter: blur(20px) saturate(130%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }

  .site-header .brand-name {
    max-width: calc(100% - 64px);
  }

  .site-header .brand-logo {
    width: 1.32rem;
  }

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

  .site-header nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: rgba(17, 17, 17, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header.menu-open nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header nav .nav-button {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    min-height: 42px;
    border-bottom-width: 2px;
    padding: 0.26rem 0.18rem;
    border-bottom-color: var(--line);
    font-size: 0.94rem;
  }

  .nav-cta {
    width: 100%;
    border: 0;
    border-radius: 0;
    border-bottom: 2px solid var(--line);
    padding: 0.26rem 0.18rem;
    min-height: 42px;
    justify-content: flex-start;
  }

  .nav-cta-label {
    max-width: 100%;
    padding-right: 0;
    font-size: 0.94rem;
  }

  .nav-cta-icon {
    display: none;
  }

  .site-header nav .nav-button:last-child {
    border-bottom-color: transparent;
  }

  .site-header nav .nav-button[aria-current="page"] {
    border-bottom-color: var(--line-strong);
  }

}

.landing-stage {
  position: relative;
  min-height: 100vh;
  background: transparent;
}

.landing-window {
  min-height: 100vh;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  overflow: visible;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 9.5rem;
  padding-bottom: 4.25rem;
  width: 100%;
  border-bottom: 0;
  overflow: visible;
  isolation: isolate;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 9.5rem - 4.25rem);
  display: grid;
  align-content: center;
  gap: 1rem;
}

.hero-webgl {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  width: 100vw;
  height: 100vh;
  will-change: transform, opacity;
}

.hero-webgl canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Legibility scrim over the ASCII field — protects the left-aligned, vertically
   centered hero copy while letting the waves stay visible toward the right. */
.hero-webgl-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(13, 13, 13, 0.94) 0%,
      rgba(13, 13, 13, 0.8) 32%,
      rgba(13, 13, 13, 0.4) 60%,
      rgba(13, 13, 13, 0.05) 100%
    ),
    linear-gradient(
      0deg,
      rgba(13, 13, 13, 0.55) 0%,
      rgba(13, 13, 13, 0) 28%,
      rgba(13, 13, 13, 0) 72%,
      rgba(13, 13, 13, 0.45) 100%
    );
}

.eyebrow {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  margin: 0;
  text-transform: uppercase;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  font-weight: 600;
  color: #e7e7e7;
  line-height: calc(0.88em + 0.4rem);
  letter-spacing: 0.01em;
  font-size: clamp(2.38rem, 8.55vw, 7.95rem);
  white-space: nowrap;
}

.hero-line {
  display: block;
  will-change: transform, opacity;
}

.hero-line-light {
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-weight: 100;
  display: inline-block;
  transform: scaleY(1.45);
  transform-origin: left center;
  margin: 0.2em 0;
}

.hero-subline {
  margin: 0.25rem 0 0;
  width: fit-content;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  font-size: clamp(0.98rem, 2vw, 1.75rem);
  white-space: nowrap;
  padding: 0.1em 0.4em;
}


.hero-highlight {
  color: var(--accent);
  margin-right: 0.18em;
}

.cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.8rem;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.2rem;
}

.hero-cta {
  margin-top: 1.6rem;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.98rem;
  letter-spacing: 0.09em;
  line-height: 1;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 0, 79, 0.13);
  box-shadow:
    0 0 0 1px rgba(255, 0, 79, 0.34),
    0 10px 22px rgba(255, 0, 79, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work {
  padding: 5.5rem 0 6rem;
  position: relative;
  z-index: 1;
}

.case-studies {
  display: grid;
  grid-template-columns: minmax(250px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(1.25rem, 2.2vw, 2.5rem);
  align-items: start;
  background: var(--bg);
}

.case-copy {
  position: sticky;
  top: 6.2rem;
  align-self: start;
  padding-right: 0.6rem;
}

.case-copy .eyebrow {
  padding-top: clamp(0.8rem, 1.6vw, 1.45rem);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  color: var(--muted);
}

.case-current {
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4.2vw, 3.4rem);
  width: 100%;
  max-width: none;
}

.case-current-content {
  will-change: transform, opacity;
}

.case-current-index {
  margin: 0;
  color: var(--muted);
  font-size: 1.56rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.case-current-title {
  margin: 0.3rem 0 0;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 700;
  font-size: clamp(1.32rem, 2.2vw, 2.1rem);
  line-height: 1.05;
  white-space: nowrap;
}

.case-current-role {
  margin: 0.6rem 0 0;
  color: #bababa;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 1.075rem;
}

.case-current-description {
  margin: 2.08rem 0 0;
  color: var(--text);
  opacity: 1;
  font-size: clamp(.8rem, 4vw, 1rem);
  line-height: 1.25;
  font-weight: 300;
}

.case-gallery {
  --case-gallery-bg-opacity: 0;
  position: relative;
  display: grid;
  gap: 1.1rem;
}

.case-card {
  --case-image-bg-opacity: var(--case-gallery-bg-opacity, 0);
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: clamp(340px, 62vh, 760px);
  border: 0;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #212121;
  opacity: var(--case-image-bg-opacity);
  pointer-events: none;
  z-index: 0;
}

.case-lock {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(0, 0, 0, 0.56);
  padding: 0.2rem 0.45rem;
}

/* ===== Case study password gate ===== */
.case-gate {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  transition: opacity 440ms ease;
}

.case-gate--exit {
  opacity: 0;
  pointer-events: none;
}

.case-gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.case-gate-back {
  position: absolute;
  top: 1.6rem;
  left: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.case-gate-back:hover {
  color: var(--text);
}

.case-gate-back svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.case-gate-eyebrow {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-gate-form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  transition: border-color 180ms ease;
}

.case-gate-form:focus-within {
  border-color: var(--line-strong);
}

.case-gate-input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 1rem;
  width: 16rem;
  outline: none;
}

.case-gate-input::placeholder {
  color: var(--muted);
}

.case-gate-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.case-gate-submit:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.case-gate-submit svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-gate-error {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.18), transparent 36%);
  pointer-events: none;
}

.case-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.08;
  transform: scale(1.12);
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.case-card-active img {
  opacity: 1;
}

.case-card-copy {
  display: none;
}

.work-more {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
  display: grid;
  grid-template-columns: minmax(250px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(1.25rem, 2.2vw, 2.5rem);
  background: var(--bg);
}

.work-more-cta {
  grid-column: 2;
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.95rem;
  line-height: 1;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.work-more-cta:hover,
.work-more-cta:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

.work-more-icon {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms ease;
}

.work-more-cta:hover .work-more-icon {
  transform: translateX(3px);
}

.about {
  padding: 8.6rem 0 6.5rem;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1.75rem;
}

.about h3 {
  margin: 0.24rem 0 0;
  text-transform: uppercase;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  font-size: clamp(1.6rem, 3.8vw, 3.1rem);
  line-height: 0.95;
}

.about p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
}

/* ===== Word scroll ===== */
.word-scroll {
  position: relative;
  display: none;
}

.word-scroll-sticky {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.word-scroll-images {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(340px, 64vw, 720px);
  aspect-ratio: 4 / 3;
  z-index: 0;
  pointer-events: none;
}

.word-scroll-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 500ms ease;
}

.word-scroll-image.is-leaving {
  opacity: 1;
  z-index: 1;
}

.word-scroll-image.is-active {
  opacity: 1;
  z-index: 2;
}

.word-scroll-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.word-scroll-placeholder::after {
  content: attr(data-label);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.word-scroll-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding-top: 34vh;
}

.word-scroll-label {
  flex: 0 0 auto;
  width: 20%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.word-scroll-heading {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.word-scroll-rule {
  flex: 1;
  height: 1px;
  background: var(--muted);
  align-self: center;
}

.word-scroll-list {
  flex: 0 0 auto;
  width: 40%;
  list-style: none;
  padding: 0;
  padding-left: 3rem;
  margin: 0;
  will-change: transform;
}

.word-scroll-list li {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 100;
  line-height: 1.0;
  letter-spacing: -0.025em;
  padding: 0.08em 0;
  color: var(--text);
  opacity: 1;
  transition: opacity 400ms ease;
}

.word-scroll-list li.is-active {
  opacity: 1;
}

/* ===== Float gallery ===== */
/* ===== Work list ===== */
.work-list {
  position: relative;
}

.work-list-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-list-placeholder::after {
  content: attr(data-label);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-list-header {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--line);
}

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

.work-list-item {
  border-bottom: 1px solid var(--line);
  transition: background-color 280ms ease;
}

.work-list-item:hover {
  background-color: rgba(255, 255, 255, 0.025);
}

.work-list-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr .5fr;
  gap: clamp(0.8rem, 2vw, 2.5rem);
  padding: 2.5rem 0;
  text-decoration: none;
  color: inherit;
}

.work-list-client {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.work-list-num {
  font-size: 0.65rem;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.work-list-client-name {
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.work-list-logo {
  display: block;
  width: 100px;
  height: auto;
  filter: brightness(0) invert(1);
}

.work-list-desc {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
  font-family: var(--font-body);
  transition: color 220ms ease;
}

.work-list-item:hover .work-list-desc {
  color: var(--text);
}

.work-list-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-list-item:hover .work-list-img {
  clip-path: inset(0 0 0% 0);
}

.work-list-tags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.work-list-tag {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--line-strong);
}

.work-list-view {
  font-size: 0.72rem;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 220ms ease, transform 220ms ease, color 220ms ease;
}

.work-list-item:hover .work-list-view {
  opacity: 1;
  transform: translateX(0);
  color: var(--text);
}


.work-list-footer {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.work-list-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
  transition: color 180ms ease;
}

.work-list-cta:hover,
.work-list-cta:focus-visible {
  color: var(--text);
  outline: none;
}

.work-list-cta:hover .work-more-icon {
  transform: translateX(3px);
}

@media (max-width: 760px) {
  .work-list-row {
    grid-template-columns: clamp(100px, 28%, 160px) 1fr auto;
    padding: 1.8rem 0;
  }

  .work-list-img,
  .work-list-view {
    display: none;
  }
}

/* ===== Footer: full-bleed, near-full-height, ASCII field background ===== */
.site-footer {
  position: relative;
  width: 100%;
  min-height: 92vh;
  margin-top: clamp(4rem, 8vw, 8rem);
  overflow: hidden;
  display: flex;
  isolation: isolate;
}


.footer-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5.5vw, 7.5rem)
    clamp(1.5rem, 3vw, 2.4rem);
}

.footer-cta {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: clamp(2rem, 6vh, 6rem) 0;
}

.footer-cta-lead {
  margin: 0;
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 1rem;
}

.footer-cta-email {
  color: var(--text);
  text-decoration: none;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 9vw, 10rem);
  white-space: nowrap;
}

.footer-cta-email {
  transition: background 180ms ease, color 180ms ease;
}

.footer-cta-email:hover,
.footer-cta-email:focus-visible {
  background: var(--accent);
  color: #111111;
  outline: none;
}

.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(0.6rem);
  z-index: 1000;
  background: #212121;
  color: var(--text);
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-weight: 200;
  font-size: 1.25rem;
  letter-spacing: .025rem;
  padding: 0.55rem 1.1rem;
  opacity: 0;
  border-radius: 8px;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-base {
  padding-top: clamp(1rem, 1.6vw, 1.4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
}

.footer-copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.625rem;
  letter-spacing: 0.175em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-base-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  transition: color 180ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--text);
  outline: none;
}

.header-time {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
}

.footer-logo {
  display: block;
  width: 1.4rem;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.page-main {
  padding: 8.6rem 0 5.5rem;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
}

.page-hero .eyebrow {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  color: var(--muted);
}

.page-hero h1 {
  margin: 0.35rem 0 0;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 8.8vw, 7.5rem);
  line-height: 0.94;
}

.page-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  max-width: 56ch;
}

.work-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.work-item {
  margin: 0;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: #0a0a0a;
  display: block;
}

.work-item img {
  width: 100%;
  height: clamp(230px, 36vw, 420px);
  display: block;
  object-fit: cover;
}

.work-item-copy {
  padding: 0.7rem 0.8rem 0.85rem;
}

.work-item-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 500;
}

.work-item-role {
  margin: 0.25rem 0 0;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* ===== Case study (detail) template ===== */
/* MetaLab-style editorial layout: content fills the viewport (gutters only,
   no centered column), small label headings paired with large body text in
   distinct tiers, and imagery that commands the width. No brand color is used
   for reading content. */
.detail-main {
  padding: 9.5rem 0 6rem;
  background: var(--bg);
  overflow-x: clip;
}

.detail-body {
  --gutter: clamp(.75rem, 1.5vw, 2rem);
  display: grid;
  grid-template-columns:
    [full-start] var(--gutter)
    [content-start] minmax(0, 1fr) [content-end]
    var(--gutter) [full-end];
  row-gap: clamp(4rem, 15vw, 16rem);
}

.detail-body > * {
  grid-column: content;
  margin: 0;
}

/* ---- 12-column grid row ---- */
/* Usage: wrap children in .detail-row, give each child a .col-N class (1–12).
   Children without a .col-* class default to full width. */
.detail-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: var(--row-mb, 0px);
}

.col-1  { grid-column: auto / span 1; }
.col-2  { grid-column: auto / span 2; }
.col-3  { grid-column: auto / span 3; }
.col-4  { grid-column: auto / span 4; }
.col-5  { grid-column: auto / span 5; }
.col-6  { grid-column: auto / span 6; }
.col-7  { grid-column: auto / span 7; }
.col-8  { grid-column: auto / span 8; }
.col-9  { grid-column: auto / span 9; }
.col-10 { grid-column: auto / span 10; }
.col-11 { grid-column: auto / span 11; }
.col-12 { grid-column: auto / span 12; }

.offset-1  { grid-column-start: 2; }
.offset-2  { grid-column-start: 3; }
.offset-3  { grid-column-start: 4; }
.offset-4  { grid-column-start: 5; }
.offset-5  { grid-column-start: 6; }
.offset-6  { grid-column-start: 7; }
.offset-7  { grid-column-start: 8; }
.offset-8  { grid-column-start: 9; }
.offset-9  { grid-column-start: 10; }
.offset-10 { grid-column-start: 11; }
.offset-11 { grid-column-start: 12; }

.align-start  { align-self: start; }
.align-center { align-self: center; }
.align-end    { align-self: end; }

@media (max-width: 760px) {
  .detail-row {
    grid-template-columns: 1fr;
  }
  [class^="col-"],
  [class*=" col-"] {
    grid-column: 1 / -1;
  }
  [class^="offset-"],
  [class*=" offset-"] {
    grid-column-start: 1;
  }
}

/* ---- Shared body-text tiers ---- */
/* lead = large intro, vision = medium statement, p = dense body copy. */
.detail-lead {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.22;
  color: var(--text);
}

.detail-small {
  font-size: clamp(.75rem, 2vw, 1.25rem) !important;
}

.detail-vision {
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-weight: 200;
  font-size: clamp(1.25rem, 1.85vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: 0.012em;
  color: var(--text);
  max-width: 38ch;
}

/* ---- Hero ---- */
.detail-hero {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.7rem);
  padding-top: clamp(0.5rem, 2vw, 1.4rem);
}

.detail-hero .eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.detail-title {
  margin: 0.1rem 0 0;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  font-weight: 300;
  font-size: clamp(4rem, 10vw, 10rem);
  text-transform: uppercase;
  letter-spacing: .25rem;
}

.detail-summary {
  margin: 0.4rem 0 0;
  color: var(--text);
  max-width: 48ch;
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 100;
  letter-spacing: 0.01em;
}

.detail-meta {
  font-family: var(--font-body);
  margin: 1.2rem 0 0;
  padding: 1.6rem 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem;
}

.detail-meta li {
  display: grid;
  gap: 0.4rem;
}

.detail-meta-label {
  font-size: 1rem;
  color: var(--text);
  font-weight: 300;
}

.detail-meta-value {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 100;
}

/* ---- Sections: small label on the left, body in a wide right column ---- */
.detail-section {
  display: grid;
  grid-template-columns: [body] minmax(0, 1fr);
  column-gap: clamp(2rem, 5vw, 6rem);
  row-gap: clamp(1rem, 1.5vw, 1.4rem);
  align-items: start;
}

.intro p.detail-lead {
  font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
  line-height: 1.5 !important;
}

.detail-section > * {
  grid-column: body;
  max-width: 56ch;
}

.detail-section > h2 {
  grid-row: 1;
  margin: 0;
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-size: clamp(0.8rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  padding-top: 0.5rem;
  max-width: none;
}

.detail-section h3 {
  margin: clamp(1.6rem, 2.6vw, 2.4rem) 0 0;
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  color: var(--text);
}

/* First subsection sits close under its section heading. */
.detail-section h2 + h3,
.detail-section > h3:first-child {
  margin-top: 0;
}

.detail-section p {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 2.25rem;
}

.detail-section p.detail-lead,
.detail-section p.detail-vision {
  font-size: 2rem;
  line-height: 2.75rem;
  padding-bottom: 3rem;
}

.detail-section ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: clamp(1.08rem, 1.2vw, 1.3rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  display: grid;
  gap: 0.55rem;
}

.detail-section ul li {
  padding-left: 0.2rem;
}

.detail-section ul li::marker {
  color: var(--muted);
}

.detail-section a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.detail-section a:hover,
.detail-section a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
  outline: none;
}

/* ---- Figures: large by default, full-bleed for hero/feature imagery ---- */
.detail-figure {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.detail-figure--full {
  grid-column: full;
}

.detail-figure img,
.detail-figure .detail-placeholder {
  width: 100%;
  display: block;
}

.detail-figure img {
  object-fit: cover;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

.detail-figure--full img {
  border-left: 0;
  border-right: 0;
}

.detail-figure figcaption, .detail-carousel figcaption {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  max-width: 48ch;
}

.detail-figure--full figcaption {
  font-family: var(--font-body);
  padding: 0 clamp(1.25rem, 5.5vw, 7.5rem);
}

/* ---- Metric callouts: label left, large number right-aligned, no accent ---- */
.detail-metrics {
  border-top: 1px solid var(--line);
}

.detail-metric {
  padding: clamp(3rem, 3vw, 5.5rem) 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.detail-metric-value {
  font-family: "Alumni Sans", sans-serif;
  font-weight: 300;
  font-size: clamp(5rem, 13vw, 11rem);
  color: var(--text);
  white-space: nowrap;
}

.detail-metric-label {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-family: var(--font-body);
  line-height: 1.4;
  width: 12rem;
}

/* ---- Statement (large standalone vision line that breaks up the copy) ---- */
.detail-statement {
  padding: clamp(0.5rem, 1.5vw, 1.5rem) 0;
}

.detail-statement p {
  margin: 0;
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-weight: 200;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: var(--muted);
}

.detail-highlight {
  color: var(--text);
}

/* ---- Split: layout comes from .detail-row col classes in HTML ---- */

.detail-split-media--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 1vw, 1rem);
}

.detail-split-media--grid .detail-placeholder,
.detail-split-media--grid img {
  aspect-ratio: 1 / 1;
}

.detail-split-media img {
  width: 100%;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

.detail-split-body {
  display: grid;
  gap: clamp(0.85rem, 1.4vw, 1.15rem);
  align-content: center;
}

.detail-split-body h2 {
  margin: 0;
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-size: clamp(0.8rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  padding-top: 0.5rem;
}

.detail-split-body h3 {
  margin: 0;
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  color: var(--muted);
}

.detail-split-body p {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  line-height: 1.6;
}

.detail-split-body p.detail-vision {
  font-weight: 200;
  font-size: clamp(1.25rem, 1.85vw, 1.6rem);
  line-height: 1.35;
}

.detail-split-body ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: clamp(1.08rem, 1.2vw, 1.3rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  display: grid;
  gap: 0.55rem;
}

.detail-split-body ul li::marker {
  color: var(--muted);
}

/* ---- PR publication logo grid ---- */
.detail-pr-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.25rem) clamp(1.5rem, 3vw, 3rem);
  align-content: center;
  align-items: center;
  align-self: center;
  justify-items: center;
}

.detail-pr-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 1.5rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 220ms ease;
}

.detail-pr-logo:hover {
  opacity: 1;
}

/* ---- Image grid: layout comes from .detail-row col classes in HTML ---- */

.detail-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.detail-grid--full {
  grid-column: full;
  padding: 0 clamp(1.25rem, 5.5vw, 7.5rem);
}

.detail-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ---- Carousel (full-bleed, scroll-snap) ---- */
.detail-carousel {
  grid-column: full;
  display: grid;
  gap: 1rem;
}

.detail-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 80rem);
  gap: clamp(0.9rem, 1.5vw, 1.4rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 clamp(1.25rem, 5.5vw, 7.5rem) 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}

.detail-carousel-track > * {
  scroll-snap-align: center;
}

.detail-carousel-track > img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.detail-row > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.detail-carousel-track::-webkit-scrollbar-thumb {
  background: var(--line-strong);
}

.detail-carousel-title {
  margin: 0 0 clamp(1rem, 2vw, 1.75rem);
  padding: 0 clamp(1.25rem, 5.5vw, 7.5rem);
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-size: clamp(0.8rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
}

.detail-carousel figcaption {
  padding: 0 clamp(1.25rem, 5.5vw, 7.5rem);
}

/* ---- Testimonial cards ---- */
.detail-carousel-track--testimonials {
  align-items: stretch;
  grid-auto-columns: min(53%, 53rem);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4.5vw, 4rem) clamp(1.75rem, 3vw, 2.75rem);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.testimonial-quote {
  flex: 1;
  margin: 0;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1em;
}

.testimonial-quote p {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  max-width: 68ch;
}

.testimonial-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.testimonial-logo {
  display: block;
  height: clamp(1.1rem, 1.8vw, 1.6rem);
  width: auto;
  max-width: 8rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  flex-shrink: 0;
}

.testimonial-logo--lg {
  height: clamp(1.6rem, 2.6vw, 2.4rem);
}

.testimonial-logo--xl {
  height: clamp(2.2rem, 3.6vw, 3.4rem);
}

.testimonial-attr {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
}

.testimonial-name {
  font-size: clamp(1rem, 1vw, 1.5rem);
  font-family: 'Antonio', 'Arial Narrow', sans-serif;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.testimonial-title {
  font-size: clamp(0.75rem, 1vw, 01rem);
  color: var(--muted);
  font-family: var(--font-body);
}

/* ---- Image / GIF placeholders ---- */
.detail-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.022) 0 10px,
      rgba(255, 255, 255, 0) 10px 20px
    ),
    var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.detail-placeholder::before {
  content: "";
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  opacity: 0.5;
}

.detail-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  right: 1.1rem;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--muted);
}

.detail-placeholder--tall {
  aspect-ratio: 4 / 5;
}

.detail-placeholder--wide {
  aspect-ratio: 21 / 9;
}

.detail-placeholder--square {
  aspect-ratio: 1 / 1;
}

/* ---- Viral posts parallax stage ---- */
.viral-posts-row {
  position: relative;
  min-height: clamp(1200px, 160vh, 1800px);
  padding-bottom: clamp(8rem, 14vw, 18rem);
  opacity: 0;
}

.viral-post {
  position: absolute;
  will-change: transform;
}

/* depth controls width and stacking — parallax speed set in JS */
.viral-post[data-vp-depth="1"] { width: clamp(100px, 10vw, 160px); z-index: 1; }
.viral-post[data-vp-depth="2"] { width: clamp(150px, 15vw, 240px); z-index: 2; }
.viral-post[data-vp-depth="3"] { width: clamp(200px, 21vw, 320px); z-index: 3; }

.viral-post .detail-placeholder,
.viral-post img,
.viral-post video {
  aspect-ratio: 9 / 16;
  width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}

.viral-post--landscape .detail-placeholder,
.viral-post--landscape img,
.viral-post--landscape video {
  aspect-ratio: 16 / 11;
  border-radius: 12px;
}

.viral-post--landscape[data-vp-depth="1"] { width: clamp(200px, 20vw, 300px); }
.viral-post--landscape[data-vp-depth="2"] { width: clamp(260px, 26vw, 400px); }
.viral-post--landscape[data-vp-depth="3"] { width: clamp(320px, 32vw, 500px); }

/* ---- Back link ---- */
.detail-back {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* ---- Scroll reveal (CSS-transition driven; JS toggles .is-revealed) ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .detail-section {
    grid-template-columns: 1fr;
    row-gap: clamp(0.85rem, 2vw, 1.2rem);
  }

  .detail-section > *,
  .detail-section > h2 {
    grid-column: 1;
    max-width: 60ch;
  }

  .detail-section > h2 {
    padding-top: 0;
    margin-bottom: 0.3rem;
  }

  .detail-carousel-track {
    grid-auto-columns: min(86%, 32rem);
  }
}

@media (max-width: 760px) {
  .detail-summary {
    max-width: none;
  }

  .detail-grid--full {
    padding: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

@media (max-width: 960px) {
  .landing-stage,
  .landing-window {
    min-height: 0;
  }

  .hero-content.section {
    width: calc(100vw - 1rem);
    max-width: none;
  }

  .hero-content {
    justify-items: center;
    text-align: center;
  }

  .hero-title {
    white-space: normal;
    font-size: clamp(2.8rem, 13.5vw, 6rem);
    line-height: 0.95;
  }

  .hero-subline {
    max-width: 100%;
    letter-spacing: 0.08em;
    font-size: clamp(0.74rem, 2.2vw, 1.2rem);
  }

  .hero {
    min-height: 92vh;
    padding-top: 8.3rem;
  }

  .case-studies {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    position: relative;
    background: var(--bg);
  }

  .case-copy {
    display: none;
  }

  .case-current {
    border-top: 0;
    padding: 0;
    width: 100%;
    max-width: none;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .case-gallery {
    gap: 4rem;
    padding-bottom: 0;
  }

  .work-more {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 6rem;
    padding-top: 1rem;
    background: var(--bg);
  }

  .work-more-cta {
    grid-column: 1;
  }

  .case-card {
    min-height: auto;
    background: transparent;
  }

  .case-card img {
    height: clamp(250px, 44vh, 520px);
    opacity: 1;
    transform: scale(1.04);
  }

  .case-card::before {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: clamp(250px, 44vh, 520px);
  }

  .case-card::after {
    display: none;
  }

  .case-card-copy {
    display: block;
    padding: 0.85rem 0.1rem 0.25rem;
    border-top: 1px solid var(--line);
    background: transparent;
  }

  .case-card-index {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .case-card-title {
    margin: 0.22rem 0 0;
    font-family: "Antonio", "Arial Narrow", sans-serif;
    font-size: clamp(1.75rem, 4.6vw, 2.6rem);
    line-height: 1.02;
    font-weight: 500;
    text-transform: uppercase;
  }

  .case-card-role {
    margin: 0.42rem 0 0;
    color: rgba(255, 255, 255, 0.92);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.82rem;
  }

  .case-card-description {
    margin: 0.42rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.22;
  }

  .about {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

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

  .site-footer {
    min-height: 0;
  }

  .footer-cta {
    padding: clamp(2rem, 8vh, 4rem) 0;
  }
}

@media (max-width: 700px) {
  .site-header .brand-name {
    font-size: 0.82rem;
    max-width: calc(100% - 64px);
  }

  .site-header .brand-logo {
    width: 1.16rem;
  }

  .hero {
    min-height: 88vh;
    padding-top: 8rem;
  }

  .hero-meta {
    margin-top: 1.6rem;
  }

  .site-footer {
    margin-top: 2.8rem;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Contact page (split layout) ===== */
.contact-main {
  min-height: 100vh;
  padding: clamp(7.5rem, 14vh, 11rem) clamp(1.5rem, 5vw, 5rem)
    clamp(2.5rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "headline title"
    ".        ."
    "foot     form";
  column-gap: clamp(2rem, 6vw, 6rem);
  row-gap: clamp(3rem, 10vh, 7rem);
}

.contact-headline {
  grid-area: headline;
  margin: 0;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
}

.contact-title {
  grid-area: title;
  margin: 0;
  font-family: "Antonio", "Arial Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.015em;
  font-size: clamp(3.5rem, 11vw, 9rem);
}

.contact-foot {
  grid-area: foot;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.contact-foot-group {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.contact-foot-label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-foot-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-foot-link {
  width: fit-content;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid transparent;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.contact-foot-link:hover,
.contact-foot-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

.contact-form {
  grid-area: form;
  align-self: end;
  display: grid;
  gap: 1.9rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.contact-input,
.contact-textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  padding: 0.6rem 0;
  transition: border-color 180ms ease;
}

.contact-textarea {
  resize: vertical;
  min-height: 2.6rem;
  line-height: 1.5;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: var(--muted);
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.contact-consent {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-consent a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-consent a:hover {
  color: var(--accent);
}

.contact-checkbox {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.contact-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.contact-checkbox:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-submit {
  justify-self: start;
  margin-top: 0.4rem;
  background: var(--text);
  color: var(--bg);
  border: 0;
  border-radius: 8px;
  padding: 0.95rem 2.8rem;
  font-family: "Alumni Sans", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 860px) {
  .contact-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "headline"
      "title"
      "form"
      "foot";
    row-gap: clamp(2rem, 6vh, 3.5rem);
  }

  .contact-form,
  .contact-foot {
    align-self: start;
  }
}

@media (max-width: 520px) {
  .contact-row {
    grid-template-columns: 1fr;
  }
}
