/* ==========================================================================
   The Line Group — Brand-aligned site
   Palette: Indigo #002331 (primary), Green/Teal #003E45 (secondary), White
   Type: Archivo (Light / Regular / SemiBold / Bold)
   ========================================================================== */

:root {
  --indigo: #002331;
  --indigo-deep: #00161f;
  --indigo-soft: #0a3346;
  --teal: #003E45;
  --teal-soft: #08525a;
  --white: #ffffff;
  --cream: #f5f1ea;
  --muted: rgba(255, 255, 255, 0.62);
  --muted-strong: rgba(255, 255, 255, 0.82);
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-strong: rgba(255, 255, 255, 0.24);

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  --radius: 2px;

  --t-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --t-med: 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--indigo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--t-fast), color var(--t-fast);
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--teal); color: var(--white); }

/* ============== TYPOGRAPHY ============== */

.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-strong);
  display: inline-block;
}

.kicker--accent { color: var(--white); }
.kicker--line::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-2px);
}

h1, h2, h3, h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(40px, 6.4vw, 96px);
  font-weight: 200;
  letter-spacing: -0.02em;
}
h1 strong { font-weight: 600; }

h2 {
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 300;
  letter-spacing: -0.015em;
}
h2 strong { font-weight: 600; }

h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}

p { color: var(--muted-strong); }
p.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--white); font-weight: 300; }
p.small { font-size: 14px; color: var(--muted); }

/* ============== LAYOUT ============== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

.section {
  padding: clamp(80px, 11vw, 160px) 0;
}

.section--tight { padding: clamp(60px, 7vw, 100px) 0; }

.section--teal { background: var(--teal); }
.section--deep { background: var(--indigo-deep); }
.section--cream { background: var(--cream); color: var(--indigo); }
.section--cream p { color: rgba(0, 35, 49, 0.72); }
.section--cream .kicker { color: rgba(0, 35, 49, 0.55); }

.divider {
  height: 1px;
  background: var(--hairline);
  width: 100%;
}

/* ============== NAV ============== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 22, 31, 0);
  backdrop-filter: blur(0px);
  transition: background var(--t-fast), backdrop-filter var(--t-fast), padding var(--t-fast), border-color var(--t-fast);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(0, 22, 31, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px var(--gutter);
  border-bottom-color: var(--hairline);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.nav__brand svg { height: 38px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
}

.nav__menu a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-strong);
  position: relative;
  padding: 8px 0;
}

.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width var(--t-fast);
}

.nav__menu a:hover,
.nav__menu a.active {
  color: var(--white);
}
.nav__menu a:hover::after,
.nav__menu a.active::after { width: 100%; }

.nav__cta {
  border: 1px solid var(--hairline-strong);
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--white); color: var(--indigo); border-color: var(--white); }

.nav__toggle {
  display: none;
  width: 32px; height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .nav__drawer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--indigo-deep);
    padding: 100px var(--gutter) 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--t-med);
    z-index: 99;
  }
  .nav.is-open .nav__drawer { transform: translateX(0); }
  .nav__drawer a {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -0.01em;
    text-transform: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--white);
  }
  .nav__drawer .drawer-cta {
    margin-top: 24px;
    padding: 18px 24px;
    border: 1px solid var(--white);
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--white);
  }
}

@media (min-width: 921px) {
  .nav__drawer { display: contents; }
}

/* ============== HERO ============== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px var(--gutter) clamp(60px, 8vw, 120px);
  overflow: hidden;
  background: var(--indigo-deep);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s ease;
  will-change: transform;
}
.hero.is-loaded .hero__bg img { opacity: 0.42; }
.hero__inner { will-change: transform, opacity; }

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,22,31,0.4) 0%, rgba(0,22,31,0.1) 35%, rgba(0,22,31,0.7) 75%, var(--indigo-deep) 100%),
    linear-gradient(90deg, rgba(0,22,31,0.5) 0%, rgba(0,22,31,0.05) 60%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero__title {
  margin: 28px 0 36px;
  max-width: 16ch;
}

.hero__title em {
  font-style: normal;
  font-weight: 600;
  display: inline;
  position: relative;
}

.hero__meta {
  display: flex;
  gap: clamp(20px, 4vw, 60px);
  margin-bottom: 48px;
  flex-wrap: wrap;
  align-items: baseline;
}
.hero__meta span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-strong);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.hero__meta strong {
  font-size: 28px;
  font-weight: 200;
  letter-spacing: -0.01em;
  color: var(--white);
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
  cursor: pointer;
}
.btn svg { transition: transform var(--t-fast); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--white);
  color: var(--indigo);
}
.btn--primary:hover { background: var(--cream); }

.btn--ghost {
  border-color: var(--hairline-strong);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.04);
}

.btn--dark {
  background: var(--indigo);
  color: var(--white);
}
.btn--dark:hover { background: var(--teal); }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 720px) {
  .hero__scroll { display: none; }
}

/* Compact hero for inner pages */
.hero--inner {
  min-height: 70vh;
  min-height: 70svh;
}
.hero--inner .hero__title { font-size: clamp(40px, 7vw, 84px); }

/* ============== PILLARS / FEATURE GRID ============== */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.pillar {
  background: var(--indigo);
  padding: clamp(40px, 5vw, 72px) clamp(28px, 3.5vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background var(--t-med);
  min-height: 360px;
}
.pillar:hover { background: var(--indigo-soft); }
.pillar:hover .pillar__num { color: var(--muted-strong); }
.pillar__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.pillar h3 { font-weight: 300; max-width: 14ch; }
.pillar p { font-size: 15px; line-height: 1.65; }
.pillar__icon {
  width: 44px; height: 44px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.pillar__icon svg { width: 100%; height: 100%; stroke: var(--white); fill: none; stroke-width: 1; }

@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ============== SECTION INTRO ============== */

.intro {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
  margin-bottom: clamp(50px, 6vw, 80px);
}
.intro h2 { max-width: 14ch; }
.intro p { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.7; max-width: 56ch; }

@media (max-width: 800px) {
  .intro { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

/* ============== SPLIT (image + text) ============== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }

.split__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s ease-out; }
.split__media:hover img { transform: scale(1.04); }

.split__media::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid var(--hairline);
  z-index: 1;
  pointer-events: none;
}

.split__copy h2 { margin-bottom: 28px; }
.split__copy p + p { margin-top: 18px; }
.split__copy .kicker { margin-bottom: 20px; }
.split__copy ul { list-style: none; margin-top: 32px; }
.split__copy ul li {
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-size: 15px;
  color: var(--muted-strong);
}
.split__copy ul li:last-child { border-bottom: 1px solid var(--hairline); }
.split__copy ul li::before {
  content: counter(li, decimal-leading-zero);
  counter-increment: li;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  min-width: 30px;
}
.split__copy ul { counter-reset: li; }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse > *:first-child { order: 0; }
  .split__media { aspect-ratio: 4/3; }
}

/* ============== STATS ============== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat {
  background: var(--indigo);
  padding: clamp(32px, 4vw, 56px) clamp(20px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat__num {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 8px;
}

@media (max-width: 880px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ============== PROJECTS GRID ============== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}

.project {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--indigo-deep);
  cursor: default;
}
.project__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity var(--t-fast);
}
.project__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,22,31,0.85) 100%);
  opacity: 0.6;
  transition: opacity var(--t-fast);
}
.project:hover .project__media img { transform: scale(1.06); }
.project:hover .project__media::after { opacity: 0.9; }

.project__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  z-index: 1;
}
.project__name {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.project__type {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.project__arrow {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity var(--t-fast);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
}
.project:hover .project__arrow {
  opacity: 1;
  transform: translateX(0);
}
.project__arrow svg { width: 18px; height: 18px; stroke: var(--white); fill: none; stroke-width: 1.2; }

@media (max-width: 1000px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ============== SERVICES LIST (accordion-like) ============== */

.services-list { border-top: 1px solid var(--hairline); }
.service-row {
  display: grid;
  grid-template-columns: 80px 1.2fr 2fr 60px;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(36px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
  transition: padding var(--t-fast);
}
.service-row__num {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 600;
  padding-top: 8px;
}
.service-row h3 { font-weight: 400; }
.service-row p { font-size: 16px; line-height: 1.7; }
.service-row p + p { margin-top: 14px; }
.service-row__icon {
  width: 48px; height: 48px;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}
.service-row__icon svg { width: 18px; height: 18px; stroke: var(--white); fill: none; stroke-width: 1.4; }

@media (max-width: 800px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-row__icon { display: none; }
}

/* ============== TIMELINE / PROCESS ============== */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.step {
  background: var(--indigo);
  padding: clamp(32px, 3.5vw, 48px) clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}
.step__num {
  font-size: 12px;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: var(--muted);
}
.step h4 { font-size: 14px; letter-spacing: 0.14em; }
.step p { font-size: 14px; line-height: 1.6; }

@media (max-width: 1100px) { .process { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px) { .process { grid-template-columns: 1fr; } }

/* ============== TESTIMONIAL / PULL ============== */

.pull {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.pull__quote {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 200;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.pull__quote::before { content: '“ '; opacity: 0.4; }
.pull__quote::after { content: ' ”'; opacity: 0.4; }
.pull__author {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ============== CTA BANNER ============== */

.cta-banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(60px, 8vw, 120px) clamp(40px, 6vw, 100px);
  background: var(--teal);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { max-width: 14ch; }
.cta-banner__right { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cta-banner__right p { max-width: 36ch; font-size: 16px; }

@media (max-width: 880px) { .cta-banner { grid-template-columns: 1fr; padding: 60px 32px; } }

/* ============== FOOTER ============== */

.footer {
  background: var(--indigo-deep);
  padding: clamp(60px, 7vw, 100px) 0 32px;
  border-top: 1px solid var(--hairline);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(30px, 4vw, 60px);
  margin-bottom: clamp(50px, 6vw, 80px);
}
.footer__brand svg { height: 48px; margin-bottom: 24px; }
.footer__brand p { font-size: 14px; max-width: 36ch; line-height: 1.7; }
.footer__col h4 {
  font-size: 11px;
  letter-spacing: 0.24em;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 600;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  font-size: 14px;
  color: var(--muted-strong);
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--white); }

.footer__contact { font-size: 14px; line-height: 1.8; color: var(--muted-strong); }
.footer__contact a { display: block; }

.footer__bar {
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============== CONTACT FORM ============== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-info { font-size: 16px; line-height: 1.8; }
.contact-info h3 { margin-bottom: 24px; font-weight: 400; }
.contact-info dl { display: grid; gap: 20px; margin-top: 32px; }
.contact-info dt {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-info dd { color: var(--white); font-size: 16px; }
.contact-info dd a { border-bottom: 1px solid var(--hairline); padding-bottom: 2px; transition: border-color var(--t-fast); }
.contact-info dd a:hover { border-color: var(--white); }

.contact-form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding: 12px 0;
  color: var(--white);
  transition: border-color var(--t-fast);
  outline: none;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 50px; } }

/* ============== CLIENT MARQUEE ============== */

.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 28px 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee__track {
  display: flex;
  gap: clamp(40px, 5vw, 80px);
  width: max-content;
  animation: scroll 80s linear infinite;
}
.marquee__item {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}
.marquee__item span { color: rgba(255,255,255,0.18); margin: 0 20px; }

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

/* ============== PHILOSOPHY GRID ============== */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 60px);
  margin-top: clamp(40px, 5vw, 60px);
}
.value h4 { font-size: 13px; letter-spacing: 0.18em; margin-bottom: 16px; color: var(--muted-strong); font-weight: 600; }
.value h3 { font-weight: 400; margin-bottom: 16px; max-width: 16ch; }
.value p { font-size: 15px; line-height: 1.7; }

@media (max-width: 880px) { .values { grid-template-columns: 1fr; } }

/* ============== ANIMATIONS ============== */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transition: opacity 1.4s ease; }
.reveal.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up, .reveal { opacity: 1; transform: none; }
}

/* ============== SCROLL PROGRESS BAR (echoes the brand mark) ============== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--white);
  z-index: 200;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ============== BRAND MARK SECTION DIVIDER ============== */

.mark-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0 auto;
  background: transparent;
  /* Sit in the natural breathing room between sections — no extra strip */
  height: 0;
  position: relative;
  z-index: 2;
}
.mark-divider svg {
  width: 32px;
  height: auto;
  opacity: 0.18;
  fill: var(--white);
  /* Float at the section seam */
  transform: translateY(-50%);
  background: var(--indigo);
  padding: 0 18px;
}
.mark-divider svg rect { fill: var(--white); }
.mark-divider--teal svg { background: var(--teal); }
.mark-divider--deep svg { background: var(--indigo-deep); }

/* ============== ANIMATED COUNTER ============== */

.stat__num { font-variant-numeric: tabular-nums; }

/* ============== HOME LOGO STRIP (subtle, dark bg) ============== */

.logo-strip {
  background: var(--indigo-deep);
  padding: clamp(50px, 6vw, 80px) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.logo-strip__heading {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.logo-strip__heading .kicker { color: var(--muted); }
.logo-strip__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(28px, 3vw, 56px);
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.logo-strip__grid img,
.logo-strip__grid .wordmark {
  max-height: 32px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.4s;
}
.logo-strip__grid img:hover,
.logo-strip__grid .wordmark:hover { opacity: 0.95; }
.logo-strip__grid .wordmark {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white);
  filter: none;
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 900px) { .logo-strip__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .logo-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ============== EDITORIAL DIRECTORY (typographic project list) ============== */

.directory {
  border-top: 1px solid var(--hairline);
}
.directory__row {
  display: grid;
  grid-template-columns: 56px 1fr auto 22px;
  gap: clamp(16px, 2.5vw, 36px);
  align-items: baseline;
  padding: clamp(20px, 2.5vw, 30px) 0;
  border-bottom: 1px solid var(--hairline);
  color: inherit;
  text-decoration: none;
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
  position: relative;
}
.directory__row:hover {
  padding-left: clamp(8px, 1.2vw, 18px);
  padding-right: clamp(8px, 1.2vw, 18px);
  background: rgba(255,255,255,0.03);
}
.directory__num {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.directory__name {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.directory__meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
}
.directory__arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.2;
  align-self: center;
}
.directory__row:hover .directory__arrow {
  opacity: 1;
  transform: translateX(0);
}
.directory__row.is-static {
  cursor: default;
  color: var(--muted-strong);
}
.directory__row.is-static:hover {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}
.directory__row.is-static .directory__arrow { display: none; }

@media (max-width: 720px) {
  .directory__row {
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 22px 0;
  }
  .directory__row:hover { padding-left: 0; padding-right: 0; }
  .directory__meta {
    grid-column: 2;
    text-align: left;
    margin-top: 4px;
    white-space: normal;
  }
  .directory__arrow { display: none; }
}

/* ============== FOUNDER CARD (no photo) ============== */

.founder-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding: clamp(60px, 8vw, 100px) clamp(40px, 6vw, 80px);
  background: var(--indigo-deep);
  position: relative;
  overflow: hidden;
}
.founder-card__quote {
  font-size: 200px;
  line-height: 0.7;
  font-family: 'Archivo', sans-serif;
  font-weight: 200;
  color: var(--teal);
  opacity: 0.5;
  position: absolute;
  top: clamp(30px, 5vw, 60px);
  left: clamp(40px, 6vw, 80px);
  pointer-events: none;
  user-select: none;
}
.founder-card__name {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.founder-card__role {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0;
}
.founder-card__copy { position: relative; z-index: 1; }
.founder-card__copy p {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
}
.founder-card__copy p + p { margin-top: 16px; }

@media (max-width: 880px) {
  .founder-card { grid-template-columns: 1fr; padding: 50px 32px; }
  .founder-card__quote { font-size: 140px; top: 28px; left: 28px; }
}

/* ============== LOGO WALL (full roster) ============== */

.logo-wall {
  background: var(--teal);
  padding: clamp(60px, 7vw, 100px) 0;
}
.logo-wall .container > .intro { margin-bottom: clamp(32px, 4vw, 56px); }
.logo-wall__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(32px, 4vw, 56px);
  align-items: center;
  justify-items: center;
}
.logo-wall__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: 100%;
  max-width: 140px;
}
.logo-wall__cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.35s ease;
}
/* JPEG / solid-bg logos: knock out the white bg with invert + screen blend */
.logo-wall__cell img[src$=".jpg"],
.logo-wall__cell img[src$=".jpeg"],
.logo-wall__cell img.solid-bg {
  filter: invert(1) brightness(1.05);
  mix-blend-mode: screen;
  opacity: 0.85;
}
.logo-wall__cell:hover img { opacity: 1; }
.logo-wall__cell .wordmark {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  text-align: center;
  transition: color 0.35s ease;
}
.logo-wall__cell:hover .wordmark { color: var(--white); }
@media (max-width: 1100px) { .logo-wall__grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 820px)  { .logo-wall__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 540px)  { .logo-wall__grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; } }

/* ============== ROSTER (full alphabetical list) ============== */

.roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(30px, 4vw, 60px);
  border-top: 1px solid var(--hairline);
  margin-top: 60px;
}
.roster__col h4 {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-weight: 600;
  padding: 32px 0 20px;
}
.roster__col ul { list-style: none; }
.roster__col li {
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--muted-strong);
  letter-spacing: -0.005em;
}
.roster__col li:hover { color: var(--white); }
.roster__col li a { display: block; }
@media (max-width: 800px) { .roster { grid-template-columns: 1fr; } }

/* ==========================================================================
   PROJECTS — v2 (grid index + per-case pages + lightbox)
   Replaces the v1 .case scroll layout. Drop-in additive — extends style.css.
   ========================================================================== */

/* ---------- INDEX GRID ---------- */
.projects-hero {
  padding: clamp(110px, 14vw, 180px) 0 clamp(60px, 8vw, 100px);
}
.projects-hero h1 {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 200;
  letter-spacing: -0.025em;
  line-height: 0.98;
  max-width: 16ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.projects-hero h1 em { font-style: normal; font-weight: 600; }
.projects-hero p {
  max-width: 56ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--muted-strong);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1vw, 14px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
@media (max-width: 1080px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .proj-grid { grid-template-columns: 1fr; } }

.proj-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--indigo-deep);
  aspect-ratio: 4 / 5;
  isolation: isolate;
  cursor: pointer;
}
.proj-tile__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.proj-tile__media video,
.proj-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: saturate(0.92) brightness(0.86);
}
.proj-tile:hover .proj-tile__media video,
.proj-tile:hover .proj-tile__media img,
.proj-tile:focus-visible .proj-tile__media video,
.proj-tile:focus-visible .proj-tile__media img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(0.78);
}

/* Static-photo Ken-Burns for tiles without video (Church's) */
.proj-tile--static .proj-tile__media img {
  animation: kenburns 18s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.10) translate(-1.2%, -1.5%); }
}
.proj-tile--static:hover .proj-tile__media img,
.proj-tile--static:focus-visible .proj-tile__media img {
  animation-play-state: paused;
  transform: scale(1.06);
}

.proj-tile__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0,22,31,0.0) 45%, rgba(0,22,31,0.85) 95%),
    linear-gradient(180deg, rgba(0,22,31,0.18) 0%, transparent 25%);
  transition: background 0.45s ease;
  z-index: 1;
}
.proj-tile:hover .proj-tile__shade,
.proj-tile:focus-visible .proj-tile__shade {
  background:
    linear-gradient(180deg, rgba(0,22,31,0.28) 0%, rgba(0,22,31,0.12) 40%, rgba(0,22,31,0.92) 100%);
}

.proj-tile__body {
  position: absolute;
  left: clamp(20px, 2vw, 32px);
  right: clamp(20px, 2vw, 32px);
  bottom: clamp(22px, 2.4vw, 32px);
  z-index: 2;
  color: var(--white);
}
.proj-tile__kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s 0.05s ease, transform 0.45s 0.05s cubic-bezier(0.16, 1, 0.3, 1);
}
.proj-tile__name {
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.1;
  margin: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.proj-tile__sub {
  display: block;
  font-weight: 200;
  color: var(--muted-strong);
  margin-top: 2px;
  letter-spacing: -0.004em;
  font-size: 0.78em;
}
.proj-tile__scope {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-strong);
  margin-top: 14px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s 0.1s ease, margin-top 0.45s ease;
}
.proj-tile:hover .proj-tile__kicker,
.proj-tile:focus-visible .proj-tile__kicker {
  opacity: 1;
  transform: translateY(0);
}
.proj-tile:hover .proj-tile__name,
.proj-tile:focus-visible .proj-tile__name {
  transform: translateY(-2px);
}
.proj-tile:hover .proj-tile__scope,
.proj-tile:focus-visible .proj-tile__scope {
  max-height: 6em;
  opacity: 1;
}

.proj-tile__arrow {
  position: absolute;
  top: clamp(20px, 2vw, 26px);
  right: clamp(20px, 2vw, 26px);
  width: 38px;
  height: 38px;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: translate(-6px, 6px) scale(0.92);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
  background: rgba(0,22,31,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.proj-tile__arrow svg { width: 14px; height: 14px; stroke: var(--white); fill: none; stroke-width: 1.5; }
.proj-tile:hover .proj-tile__arrow,
.proj-tile:focus-visible .proj-tile__arrow {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  background: rgba(255,255,255,0.96);
  border-color: var(--white);
}
.proj-tile:hover .proj-tile__arrow svg,
.proj-tile:focus-visible .proj-tile__arrow svg { stroke: var(--indigo); }

/* Number indicator */
.proj-tile__num {
  position: absolute;
  top: clamp(20px, 2vw, 26px);
  left: clamp(20px, 2vw, 32px);
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- CASE PAGE ---------- */
.case-page {
  padding-top: clamp(110px, 13vw, 160px);
}
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-strong);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
  margin-bottom: clamp(40px, 5vw, 60px);
}
.case-back:hover { color: var(--white); border-color: var(--hairline-strong); }
.case-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; transition: transform var(--t-fast); }
.case-back:hover svg { transform: translateX(-4px); }

.case-page__head { margin-bottom: clamp(40px, 5vw, 64px); }
.case-page__kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin-bottom: 22px;
}
.case-page__name {
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 200;
  letter-spacing: -0.022em;
  line-height: 0.95;
  margin: 0 0 18px;
}
.case-page__name em { font-style: normal; font-weight: 500; color: var(--muted-strong); font-size: 0.55em; letter-spacing: -0.005em; }
.case-page__scope {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-strong);
  max-width: 80ch;
  margin: 0;
  line-height: 1.55;
}

.case-page__body {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(60px, 7vw, 100px);
}
.case-page--photos-only .case-page__body { grid-template-columns: 1fr; }
.case-page--photos-only .case-page__hero-video { display: none; }

.case-page__hero-video,
.case-page__hero-photo {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--indigo-deep);
  border: 1px solid var(--hairline);
}
.case-page__hero-video video,
.case-page__hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Photos-only hero: subtle Ken-Burns drift so the static frame still feels alive */
.case-page__hero-photo img {
  animation: kenburns 14s ease-in-out infinite alternate;
}

.case-page__caption {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.75;
  color: var(--muted-strong);
  max-width: 64ch;
}
.case-page__caption p + p { margin-top: 1.05em; }
.case-page__caption strong { color: var(--white); font-weight: 500; }
.case-page__caption ul { list-style: none; padding: 0; margin: 1.2em 0; border-top: 1px solid var(--hairline); }
.case-page__caption ul li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--muted-strong);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.case-page__caption ul li::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--muted);
  display: inline-block;
  flex-shrink: 0;
  transform: translateY(-4px);
}

.case-page__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(50px, 6vw, 80px);
}
.case-page__meta > div {
  background: var(--indigo);
  padding: clamp(22px, 2.5vw, 32px) clamp(20px, 2vw, 28px);
}
.case-page__meta dt {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.case-page__meta dd { font-size: 15px; font-weight: 400; color: var(--white); margin: 0; }
@media (max-width: 880px) { .case-page__meta { grid-template-columns: 1fr 1fr; } }

/* Diptych grid (lightbox-enabled, no new tabs) */
.case-grid-head { margin-bottom: clamp(30px, 4vw, 44px); }
.case-grid-head h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 300;
  letter-spacing: -0.012em;
  margin: 12px 0 0;
}

.diptychs {
  display: grid;
  /* auto-fit so 3 photos = 3 cols, 4 = 4 cols, 5 = 5 cols (no phantom-empty cells) */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(10px, 1.2vw, 18px);
  margin-bottom: clamp(80px, 10vw, 120px);
}
@media (max-width: 1100px) { .diptychs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); } }
@media (max-width: 540px)  { .diptychs { grid-template-columns: 1fr; } }

.diptych {
  position: relative;
  display: block;
  /* Source images are 1080x1346 (~4:5) — full polaroid composite with Before label on top + After label on bottom */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--indigo-deep);
  border: 1px solid var(--hairline);
  cursor: zoom-in;
}
.diptych img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity var(--t-fast);
}
.diptych:hover img { transform: scale(1.03); }
.diptych::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,22,31,0);
  transition: background 0.35s ease;
}
.diptych:hover::after { background: rgba(0,22,31,0.18); }

/* Next-project link */
.case-next {
  border-top: 1px solid var(--hairline);
  padding: clamp(48px, 6vw, 80px) 0;
  margin-top: clamp(40px, 5vw, 60px);
}
.case-next a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 18px 0;
  transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-next a:hover { padding-left: 12px; }
.case-next__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-next__title {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 200;
  letter-spacing: -0.018em;
  color: var(--white);
}
.case-next__arrow svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 1.4; transition: transform 0.4s ease; }
.case-next a:hover .case-next__arrow svg { transform: translateX(8px); }

/* Mobile reflow for case page hero */
@media (max-width: 880px) {
  .case-page__body { grid-template-columns: 1fr; }
  .case-page__hero-video { max-width: 380px; margin: 0 auto; }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 11, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
.lightbox__stage {
  position: relative;
  width: min(94vw, 1400px);
  height: min(92vh, 1400px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--hairline);
  background: var(--indigo-deep);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.is-open .lightbox__img { opacity: 1; transform: scale(1); }

.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  z-index: 1;
}
.lightbox__btn:hover { background: var(--white); border-color: var(--white); }
.lightbox__btn:hover svg { stroke: var(--indigo); }
.lightbox__btn svg { width: 16px; height: 16px; stroke: var(--white); fill: none; stroke-width: 1.6; transition: stroke 0.25s ease; }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__next:hover { transform: translateY(-50%) translateX(3px); }

.lightbox__counter {
  position: absolute;
  top: 32px;
  left: 32px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-strong);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
@media (max-width: 720px) {
  .lightbox__prev, .lightbox__next { width: 40px; height: 40px; }
  .lightbox__close { top: 16px; right: 16px; }
  .lightbox__counter { top: 20px; left: 20px; }
}

body.lightbox-open { overflow: hidden; }

/* Contact form action row \u2014 dual-button (WhatsApp + email) */
.contact-form__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.contact-form__actions .btn { align-self: flex-start; }

/* ============== HOME COLLAGE (2\u00d72 of clickable case-study diptychs) ============== */
.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(8px, 1vw, 14px);
  aspect-ratio: 4 / 5;          /* match the original split__media slot */
}
.collage__tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--indigo-deep);
  border: 1px solid var(--hairline);
  isolation: isolate;
}
.collage__tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.collage__tile:hover img,
.collage__tile:focus-visible img { transform: scale(1.05); }
.collage__tile::after {
  content: ;
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,22,31,0.88) 100%);
  opacity: 0.85;
  transition: opacity var(--t-fast);
  pointer-events: none;
  z-index: 1;
}
.collage__tile:hover::after,
.collage__tile:focus-visible::after { opacity: 0.95; }
.collage__label {
  position: absolute;
  left: clamp(12px, 1.4vw, 18px);
  right: clamp(12px, 1.4vw, 18px);
  bottom: clamp(12px, 1.4vw, 16px);
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--white);
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.collage__label em {
  font-style: normal;
  font-weight: 200;
  color: var(--muted-strong);
  font-size: 0.88em;
  margin-left: 0.2em;
}
.collage__arrow {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity var(--t-fast), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.collage__tile:hover .collage__arrow,
.collage__tile:focus-visible .collage__arrow {
  opacity: 1;
  transform: translate(0, 0);
}
.collage__arrow svg { width: 13px; height: 13px; stroke: var(--white); fill: none; stroke-width: 1.4; }

/* On mobile the collage stacks vertically with the copy */
@media (max-width: 880px) {
  .collage { aspect-ratio: 4 / 3; }
}

/* ============== HERO TYPOGRAPHY ON MOBILE (tightened 2026-05-12) ==============
   Default clamp() minimums are 40–48px, which wraps to 5+ lines on a 375px
   viewport and crowds the page. These overrides bring the hero into a
   readable rhythm on phones without touching the desktop scale. */
@media (max-width: 600px) {
  .hero__title {
    font-size: 34px;
    line-height: 1.06;
    margin: 22px 0 28px;
    max-width: 18ch;
  }
  .hero--inner .hero__title { font-size: 32px; }
  .hero__meta {
    gap: 22px;
    margin-bottom: 32px;
    flex-wrap: wrap;
  }
  .hero__meta strong { font-size: 22px; }
  .hero__meta span   { font-size: 11px; letter-spacing: 0.16em; }
  .hero { padding: 116px var(--gutter) 72px; }
  .hero--inner {
    min-height: 56vh;
    min-height: 56svh;
  }
  /* Per-case-page H1 is even bigger by default — tighten too */
  .case-page__name    { font-size: 42px; line-height: 1; }
  .case-page__name em { font-size: 0.55em; }
  /* Projects-hero / index intro fallback */
  .projects-hero h1   { font-size: 38px; }
}
@media (max-width: 400px) {
  .hero__title { font-size: 30px; }
  .hero--inner .hero__title { font-size: 28px; }
  .hero__meta strong { font-size: 20px; }
  .case-page__name   { font-size: 36px; }
}

/* ============== HERO — homepage simplified layout (kicker + slogan only) ============== */
.hero:not(.hero--inner) {
  justify-content: center;
}
.hero:not(.hero--inner) .hero__title {
  margin: 28px 0 clamp(32px, 4vw, 48px);
}
.hero:not(.hero--inner) .hero__cta {
  gap: clamp(12px, 1.5vw, 20px);
}

/* Kicker: clean two-line stack on mobile (avoid dangling bullet) */
@media (max-width: 720px) {
  .kicker__sep { display: none; }
  .kicker__sub { display: block; }
}


/* Mobile drawer fix v18 — iOS Safari backdrop-filter creates a containing block
   for position:fixed children, sizing the drawer to .nav (~80px) instead of viewport.
   Disable backdrop-filter when open + force explicit viewport dims + show menu items. */
@media (max-width: 920px) {
  .nav.is-open { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .nav__drawer {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    bottom: auto !important;
  }
  .nav__drawer .nav__menu {
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .nav__drawer .nav__cta { display: block !important; }
}
