/* ─── Autelli Productions ─ autelli.css ─────────────────────────── */

/* 1. Variables ───────────────────────────────────────────────────── */
:root {
  --parchment:      #F5F0E8;
  --parchment-dark: #EDE7D9;
  --ink:            #1C1917;
  --ink-secondary:  #6B6560;
  --ink-tertiary:   #9C9690;
  --amber:          #B8621A;
  --amber-dark:     #9A5015;
  --amber-light:    #FEF3E8;
  --sage:           #3D6B4F;
  --sage-light:     #E8F0EB;
  --gold:           #C9A84C;
  --rule:           #DDD8CF;
  --rule-strong:    #C5BEB4;
  --white:          #FDFCFA;

  /* Keep vert aliases for any residual uses */
  --vert:           #3D6B4F;
  --vert-light:     #E8F0EB;

  --display-font: 'Playfair Display', Georgia, serif;
  --body-font:    'Lora', Georgia, serif;
  --label-font:   'DM Sans', system-ui, sans-serif;

  --text-xs:   11px;
  --text-sm:   14px;
  --text-base: 17px;
  --text-lg:   20px;
  --text-xl:   28px;
  --text-2xl:  38px;
  --text-3xl:  40px;
  --text-4xl:  48px;
}

@media (min-width: 1024px) {
  :root {
    --text-4xl: 76px;
    --text-3xl: 58px;
  }
}

/* 2. Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, button { font-family: inherit; }

/* 3. Body & Paper Grain ──────────────────────────────────────────── */
body {
  background-color: var(--parchment);
  font-family: var(--body-font);
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

body.no-scroll { overflow: hidden; }

/* 4. Layout ──────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

/* 5. Navigation ──────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--parchment);
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 400ms ease;
}
#nav.nav--scrolled { border-bottom-color: var(--rule); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.nav-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.nav-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-wordmark-text {
  font-family: var(--display-font);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-links-desktop { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: opacity 200ms ease, transform 200ms ease;
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--parchment);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nav-overlay.is-open { display: flex; }

.nav-overlay-close {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--label-font);
  font-size: 20px;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}
.nav-overlay-links a {
  font-family: var(--display-font);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  transition: color 200ms ease;
}
.nav-overlay-links a:hover  { color: var(--amber); }
.nav-overlay-links a.active { color: var(--amber); }

@media (min-width: 768px) {
  .nav-inner { padding: 0 40px; }
  .nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  .nav-links-desktop a {
    font-family: var(--label-font);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--ink-secondary);
    transition: color 200ms ease;
  }
  .nav-links-desktop a:hover { color: var(--ink); }
  .nav-links-desktop a.active {
    color: var(--amber);
    border-bottom: 1px solid var(--amber);
    padding-bottom: 2px;
  }
  .nav-toggle { display: none; }
  .nav-end { gap: 16px; }
}

/* 6. Footer ──────────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 64px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.footer-brand {}
.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand-mark .footer-icon {
  width: 28px;
  height: 28px;
  color: rgba(245,240,232,0.7);
}
.footer-brand-name {
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 400;
  color: var(--parchment);
  letter-spacing: 0.01em;
}
.footer-tagline {
  font-family: var(--label-font);
  font-size: 13px;
  color: rgba(245,240,232,0.45);
  line-height: 1.5;
  max-width: 220px;
}

.footer-nav-label {
  font-family: var(--label-font);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.35);
  display: block;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-family: var(--label-font);
  font-size: 14px;
  color: rgba(245,240,232,0.55);
  transition: color 200ms ease;
  width: fit-content;
}
.footer-links a:hover { color: var(--parchment); }

.footer-contact-email {
  font-family: var(--label-font);
  font-size: 14px;
  color: var(--parchment);
  border-bottom: 1px solid rgba(245,240,232,0.2);
  padding-bottom: 2px;
  transition: border-bottom-color 200ms ease;
  display: inline-block;
  margin-bottom: 20px;
}
.footer-contact-email:hover { border-bottom-color: rgba(245,240,232,0.6); }

.footer-rule {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 24px;
  border-top: 1px solid rgba(221,216,207,0.15);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.footer-copy {
  font-family: var(--label-font);
  font-size: 12px;
  color: rgba(245,240,232,0.3);
}

@media (min-width: 640px) {
  .footer-rule {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px 0;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 0;
    padding: 0 40px;
  }
}

/* 7. Section Label ───────────────────────────────────────────────── */
.section-label {
  font-family: var(--label-font);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 16px;
}
.section-label--amber { color: var(--amber); }

/* 8. Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  font-family: var(--label-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 34px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 200ms ease;
}
.btn-primary:hover { background: var(--amber-dark); }

.btn-primary--ink {
  background: var(--ink);
}
.btn-primary--ink:hover { background: #2D2825; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  font-family: var(--label-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 34px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

/* 9. Text Links ──────────────────────────────────────────────────── */
.text-link {
  font-family: var(--label-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-bottom-color 200ms ease, color 200ms ease;
}
.text-link:hover { border-bottom-color: var(--ink); }

/* 10. Scroll Reveal ──────────────────────────────────────────────── */
.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.js-reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-stagger .js-reveal:nth-child(2) { transition-delay: 100ms; }
.js-stagger .js-reveal:nth-child(3) { transition-delay: 200ms; }
.js-stagger .js-reveal:nth-child(4) { transition-delay: 300ms; }
.js-stagger .js-reveal:nth-child(5) { transition-delay: 400ms; }
.js-stagger .js-reveal:nth-child(6) { transition-delay: 500ms; }

/* 11. Cookie Banner ──────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  border-top: 1px solid rgba(221,216,207,0.15);
  padding: 16px 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner-text {
  font-family: var(--label-font);
  font-size: 13px;
  color: rgba(245,240,232,0.65);
  line-height: 1.5;
}
.cookie-banner-text a {
  color: var(--parchment);
  border-bottom: 1px solid rgba(245,240,232,0.3);
  transition: border-bottom-color 200ms ease;
}
.cookie-banner-text a:hover { border-bottom-color: rgba(245,240,232,0.7); }

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-accept {
  font-family: var(--label-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--amber);
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 200ms ease;
}
.cookie-banner-accept:hover { background: var(--amber-dark); }
.cookie-banner-decline {
  font-family: var(--label-font);
  font-size: 12px;
  color: var(--ink-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 200ms ease;
}
.cookie-banner-decline:hover { color: var(--parchment); }

@media (min-width: 640px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
  }
}

/* ─── LOGO MARK SVG ──────────────────────────────────────────────── */
.logomark {
  display: block;
  color: var(--ink);
}
.logomark-dot { fill: var(--gold); }

/* Hero logo mark (large) — bracket-draw animation */
.hero-logomark {
  display: none;
}

@media (min-width: 1024px) {
  .hero-logomark {
    display: block;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
  }

  /* Each bracket corner draws in sequentially */
  .hero-logomark path {
    stroke-dasharray: 54;
    stroke-dashoffset: 54;
    animation: bracketIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-logomark path:nth-of-type(1) { animation-delay: 0.15s; }
  .hero-logomark path:nth-of-type(2) { animation-delay: 0.38s; }
  .hero-logomark path:nth-of-type(3) { animation-delay: 0.61s; }
  .hero-logomark path:nth-of-type(4) { animation-delay: 0.84s; }

  /* Crosshair arms appear after all brackets */
  .hero-logomark line {
    stroke-dasharray: 10;
    stroke-dashoffset: 10;
    animation: bracketIn 0.3s ease both;
    animation-delay: 1.1s;
  }

  /* Gold dot fades in last, then pulses */
  .hero-logomark .logomark-dot {
    animation:
      dotIn    0.4s cubic-bezier(0.22, 1, 0.36, 1) 1.35s both,
      dotPulse 4s   ease-in-out                     1.75s infinite;
  }
}

@keyframes bracketIn {
  to { stroke-dashoffset: 0; }
}
@keyframes dotIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* ─── PAGE: INDEX ─────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 0 48px;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 1024px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 80px;
  }
}

.hero-content {}

.hero-rule {
  width: 48px;
  height: 2px;
  background: var(--amber);
  margin-bottom: 44px;
}

.hero-headline {
  font-family: var(--display-font);
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-sub {
  font-family: var(--body-font);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.6;
  max-width: 460px;
  margin-top: 28px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
}

.hero-scroll-signal {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--label-font);
  font-size: 12px;
  color: var(--ink-tertiary);
  z-index: 1;
  user-select: none;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .hero { padding: 100px 0 48px; }
}

/* What This Is */
.what-this-is {
  background: var(--parchment-dark);
  padding: 88px 0;
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.what-headline {
  font-family: var(--display-font);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 28px;
}

.what-body p { max-width: 540px; }
.what-body p + p { margin-top: 20px; }

.pull-quote {
  border-left: 3px solid var(--amber);
  padding: 24px 0 24px 28px;
}
.pull-quote q {
  font-family: var(--display-font);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  quotes: none;
  display: block;
}
.pull-quote cite {
  display: block;
  font-family: var(--label-font);
  font-size: 12px;
  color: var(--ink-secondary);
  font-style: normal;
  margin-top: 16px;
  letter-spacing: 0.04em;
}

@media (min-width: 1024px) {
  .what-grid {
    grid-template-columns: 3fr 2fr;
    align-items: center;
    gap: 80px;
  }
}

/* Work Teaser (index) */
.work-teaser { padding: 80px 0; }

.work-teaser-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.work-rows { margin-bottom: 0; }

.work-row {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 200ms ease;
}
.work-row:last-child { border-bottom: 1px solid var(--rule); }

.work-row-name {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  transition: color 220ms ease;
}
.work-row:hover .work-row-name { color: var(--amber); }
.work-row-category {
  font-family: var(--label-font);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-top: 6px;
}

.work-row-desc {
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.status-tag {
  display: inline-block;
  font-family: var(--label-font);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  color: var(--ink-secondary);
  background: none;
  border-radius: 0;
}
.status-tag--live {
  border-color: var(--sage);
  color: var(--sage);
}

.work-teaser-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .work-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
  }
  .work-row-left { min-width: 220px; flex-shrink: 0; }
  .work-row-right { flex: 1; max-width: 420px; }
}

@media (min-width: 1024px) {
  .work-teaser { padding: 100px 0; }
}

/* Handoff CTA — dark section */
.handoff {
  background: var(--ink);
  padding: 100px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.handoff-inner {
  max-width: 600px;
  margin: 0 auto;
}
.handoff q {
  font-family: var(--display-font);
  font-style: italic;
  font-size: 30px;
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.4;
  quotes: none;
  display: block;
}
.handoff-sub {
  font-family: var(--body-font);
  font-size: var(--text-base);
  color: rgba(245,240,232,0.55);
  margin-top: 20px;
}
.handoff .btn-primary { margin-top: 36px; }

/* ─── PAGE: WORK ──────────────────────────────────────────────────── */

.page-hero {
  padding: 148px 0 80px;
  position: relative;
  z-index: 1;
}
.page-hero-headline {
  font-family: var(--display-font);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.page-hero-sub {
  font-family: var(--body-font);
  font-size: var(--text-lg);
  color: var(--ink-secondary);
  max-width: 500px;
  margin-top: 20px;
  line-height: 1.6;
}

/* Case studies */
.case-studies { position: relative; z-index: 1; }
.case-study {
  border-top: 1px solid var(--rule);
  padding: 60px 0;
  transition: background 250ms ease;
}
.case-study:last-of-type { border-bottom: 1px solid var(--rule); }
.case-study:hover { background: rgba(184,98,26,0.025); }
.case-study:hover .cs-name { color: var(--amber); }

.cs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.cs-name {
  font-family: var(--display-font);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  transition: color 220ms ease;
}
.cs-category {
  font-family: var(--label-font);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-tertiary);
  margin-top: 8px;
}
.cs-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cs-link {
  font-family: var(--label-font);
  font-size: 13px;
  color: var(--sage);
  border-bottom: 1px solid var(--sage-light);
  padding-bottom: 1px;
  transition: border-bottom-color 200ms ease;
}
.cs-link:hover { border-bottom-color: var(--sage); }
.cs-link-na {
  font-family: var(--label-font);
  font-size: 12px;
  color: var(--ink-tertiary);
}

.cs-visual {
  width: 180px;
  height: 130px;
  background: var(--parchment-dark);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}
.cs-initial {
  font-family: var(--display-font);
  font-size: 56px;
  font-weight: 400;
  color: var(--rule);
  line-height: 1;
  user-select: none;
}

.cs-description {
  font-family: var(--body-font);
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.8;
  max-width: 540px;
}
.cs-tech {
  font-family: var(--label-font);
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-top: 20px;
  letter-spacing: 0.02em;
}

@media (min-width: 1024px) {
  .cs-grid {
    grid-template-columns: 42fr 58fr;
    gap: 64px;
    align-items: start;
  }
}

/* Work closing CTA */
.work-closing {
  padding: 88px 0;
  border-top: 1px solid var(--rule);
  text-align: center;
  position: relative;
  z-index: 1;
}
.work-closing q {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  quotes: none;
  display: block;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── PAGE: BUILD ─────────────────────────────────────────────────── */

.build-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 108px 0 56px;
}
.build-cta-group { margin-top: 44px; }
.build-hero-note {
  font-family: var(--label-font);
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-top: 14px;
  letter-spacing: 0.02em;
}

/* Problem */
.problem {
  background: var(--parchment-dark);
  padding: 88px 0;
  position: relative;
  z-index: 1;
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.problem-headline {
  font-family: var(--display-font);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 28px;
}
.problem-editorial {
  font-family: var(--body-font);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--ink);
  max-width: 540px;
}
.problem-statement {
  border-left: 3px solid var(--amber);
  padding-left: 28px;
}
.problem-statement q {
  font-family: var(--display-font);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  quotes: none;
  display: block;
  line-height: 1.4;
}

@media (min-width: 1024px) {
  .problem-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
  }
  .problem-statement { margin-left: 40px; }
}

/* Services */
.services-section {
  padding: 88px 0;
  position: relative;
  z-index: 1;
}
.services-headline {
  font-family: var(--display-font);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 52px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.service-block {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
}
.service-block:last-child { border-bottom: 1px solid var(--rule); }
.service-num {
  font-family: var(--label-font);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--amber);
}
.service-name {
  font-family: var(--display-font);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 8px;
}
.service-desc {
  font-family: var(--body-font);
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
  .service-block:nth-child(even) { border-top: 1px solid var(--rule); }
}

/* Approach section */
.approach-section {
  background: var(--parchment-dark);
  padding: 88px 0;
  position: relative;
  z-index: 1;
}
.approach-headline {
  font-family: var(--display-font);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 52px;
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.approach-item {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.approach-item:last-child { border-bottom: 1px solid var(--rule); }
.approach-label {
  font-family: var(--label-font);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.approach-title {
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.approach-desc {
  font-family: var(--body-font);
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.75;
  max-width: 560px;
}

@media (min-width: 768px) {
  .approach-item {
    grid-template-columns: 180px 1fr;
    gap: 40px;
    align-items: start;
  }
}

/* Process */
.process-section {
  padding: 88px 0;
  position: relative;
  z-index: 1;
}
.process-headline {
  font-family: var(--display-font);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 52px;
}
.process-row {
  border-top: 1px solid var(--rule);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.process-row:last-child { border-bottom: 1px solid var(--rule); }
.process-num {
  font-family: var(--display-font);
  font-size: 56px;
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
  opacity: 0.3;
}
.process-name {
  font-family: var(--display-font);
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 8px;
}
.process-desc {
  font-family: var(--body-font);
  font-size: var(--text-base);
  color: var(--ink-secondary);
  line-height: 1.8;
}

@media (min-width: 768px) {
  .process-row {
    grid-template-columns: 120px 1fr;
    align-items: start;
    gap: 56px;
  }
  .process-num { text-align: right; }
}

/* Why / Standard */
.why-section {
  background: var(--ink);
  padding: 88px 0;
  position: relative;
  z-index: 1;
}
.why-section .section-label { color: var(--amber); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.why-editorial {
  font-family: var(--body-font);
  font-size: var(--text-base);
  line-height: 1.8;
  color: rgba(245,240,232,0.75);
  max-width: 520px;
}
.why-trust { display: flex; flex-direction: column; }
.trust-line {
  border-top: 1px solid rgba(221,216,207,0.15);
  padding: 18px 0;
  font-family: var(--label-font);
  font-size: var(--text-sm);
  color: rgba(245,240,232,0.85);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.trust-line:last-child { border-bottom: 1px solid rgba(221,216,207,0.15); }
.trust-marker { color: var(--amber); flex-shrink: 0; font-weight: 700; }

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 80px;
  }
}

/* Contact section */
.contact-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}
.contact-section-headline {
  font-family: var(--display-font);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}
.contact-section-sub {
  font-family: var(--body-font);
  font-size: var(--text-base);
  color: var(--ink-secondary);
  margin-top: 16px;
  margin-bottom: 44px;
}

/* ─── PAGE: ABOUT ─────────────────────────────────────────────────── */

.about-hero {
  padding: 148px 0 80px;
  position: relative;
  z-index: 1;
}
.about-hero-headline {
  font-family: var(--display-font);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 720px;
}
.about-hero-sub {
  font-family: var(--body-font);
  font-size: var(--text-lg);
  color: var(--ink-secondary);
  max-width: 480px;
  margin-top: 24px;
  line-height: 1.6;
}

.about-section {
  padding: 80px 0;
}
.about-section--dark {
  background: var(--parchment-dark);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.about-headline {
  font-family: var(--display-font);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
}
.about-body {
  font-family: var(--body-font);
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.85;
  max-width: 560px;
}
.about-body + .about-body { margin-top: 20px; }
.about-body p + p { margin-top: 18px; }

.principles {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.principle-item {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.principle-item:last-child { border-bottom: 1px solid var(--rule); }
.principle-num {
  font-family: var(--label-font);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--amber);
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 24px;
}
.principle-text {
  font-family: var(--body-font);
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
}

/* ─── PAGE: CONTACT ───────────────────────────────────────────────── */

.contact-page {
  padding: 160px 0 100px;
  position: relative;
  z-index: 1;
}
.contact-page-inner { max-width: 620px; }
.contact-page-headline {
  font-family: var(--display-font);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.contact-page-sub {
  font-family: var(--body-font);
  font-size: var(--text-base);
  color: var(--ink-secondary);
  margin-top: 16px;
  margin-bottom: 52px;
  line-height: 1.7;
}
.contact-page-sub a {
  color: var(--amber);
  border-bottom: 1px solid rgba(184,98,26,0.3);
  transition: border-bottom-color 200ms ease;
}
.contact-page-sub a:hover { border-bottom-color: var(--amber); }

/* ─── FORM ────────────────────────────────────────────────────────── */
#contact-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#contact-form input,
#contact-form textarea {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 14px 18px;
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--ink);
  width: 100%;
  transition: border-color 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--amber);
  outline: none;
}
#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--ink-tertiary);
}
#contact-form textarea {
  resize: vertical;
  min-height: 150px;
}
.form-status {
  font-family: var(--body-font);
  font-style: italic;
  font-size: var(--text-sm);
  min-height: 20px;
}
.form-status--success { color: var(--sage); }
.form-status--error { color: #8B3A3A; }

/* ─── PAGE: LEGAL / PRIVACY ───────────────────────────────────────── */

.legal-page {
  padding: 148px 0 100px;
  position: relative;
  z-index: 1;
}
.legal-page-inner { max-width: 720px; }
.legal-page-headline {
  font-family: var(--display-font);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 8px;
}
.legal-updated {
  font-family: var(--label-font);
  font-size: 13px;
  color: var(--ink-tertiary);
  margin-bottom: 56px;
}
.legal-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.legal-section:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-section h2 {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
.legal-section h3 {
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-section p {
  font-family: var(--body-font);
  font-size: var(--text-base);
  color: var(--ink-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-section ul {
  list-style: none;
  margin: 12px 0 20px 0;
}
.legal-section ul li {
  font-family: var(--body-font);
  font-size: var(--text-base);
  color: var(--ink-secondary);
  line-height: 1.7;
  padding: 6px 0 6px 20px;
  position: relative;
}
.legal-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 12px;
}
.legal-section a {
  color: var(--amber);
  border-bottom: 1px solid rgba(184,98,26,0.3);
  transition: border-bottom-color 200ms ease;
}
.legal-section a:hover { border-bottom-color: var(--amber); }
.legal-placeholder {
  background: var(--amber-light);
  border: 1px dashed rgba(184,98,26,0.4);
  padding: 4px 8px;
  font-family: var(--label-font);
  font-size: 12px;
  color: var(--amber);
  display: inline-block;
}

/* ─── LANGUAGE TOGGLE ────────────────────────────────────────────── */
.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  font-family: var(--label-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  background: none;
  border: 1px solid var(--rule);
  padding: 4px 9px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
  line-height: 1.4;
  flex-shrink: 0;
}
.lang-btn:hover { color: var(--ink); border-color: var(--ink-secondary); }

/* ─── BILINGUAL PAGE BLOCKS ───────────────────────────────────────── */
.lang-show-fr { display: none; }
body.is-fr .lang-show-fr { display: block; }
body.is-fr .lang-show-en { display: none; }

/* ─── HANDOFF HEADLINE (replaces handoff q) ───────────────────────── */
.handoff-headline {
  font-family: var(--display-font);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ─── WORK CLOSING HEADLINE (replaces work-closing q) ─────────────── */
.work-closing-headline {
  font-family: var(--display-font);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  display: block;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* ─── STUDIO STATEMENT (replaces pull-quote) ──────────────────────── */
.studio-statement {
  border-left: 3px solid var(--amber);
  padding: 20px 0 20px 28px;
}
.statement-text {
  font-family: var(--display-font);
  font-style: italic;
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}

/* Problem statement updated (no q element) */
.problem-statement p {
  font-family: var(--display-font);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  line-height: 1.4;
}

/* ─── INLINE CODE ─────────────────────────────────────────────────── */
code {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--parchment-dark);
  border: 1px solid var(--rule);
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--ink);
}

/* ─── FOCUS VISIBLE (accessibility) ──────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ─── SELECTION ──────────────────────────────────────────────────── */
::selection {
  background: rgba(184,98,26,0.18);
  color: var(--ink);
}

/* ─── PRINT ──────────────────────────────────────────────────────── */
@media print {
  #nav, .nav-overlay, .cookie-banner, footer { display: none; }
  body { background: white; color: black; }
  .legal-page, .contact-page, .about-hero { padding-top: 32px; }
}

/* ═══════════════════════════════════════════════════════════════════
   ENHANCED UX — Round 4
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Scroll progress bar ────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--amber);
  z-index: 9999;
  pointer-events: none;
  will-change: width;
}

/* ─── Custom cursor (hover-capable devices only) ─────────────────── */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }

  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 5px; height: 5px;
    margin: -2.5px 0 0 -2.5px;
    background: var(--amber);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
    transition: opacity 200ms ease;
  }

  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 30px; height: 30px;
    margin: -15px 0 0 -15px;
    border: 1px solid rgba(184,98,26,0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transition: width 280ms cubic-bezier(0.22,1,0.36,1),
                height 280ms cubic-bezier(0.22,1,0.36,1),
                margin 280ms cubic-bezier(0.22,1,0.36,1),
                border-color 250ms ease,
                opacity 200ms ease;
  }

  .cursor-ring.is-hovering {
    width: 48px; height: 48px;
    margin: -24px 0 0 -24px;
    border-color: rgba(184,98,26,0.75);
  }
}

/* ─── Nav overlay — animated (replaces display:none approach) ────── */
.nav-overlay {
  display: flex !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 320ms ease, visibility 320ms ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Staggered link entrance */
.nav-overlay-links a {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 320ms ease, transform 320ms ease, color 200ms ease;
}
.nav-overlay.is-open .nav-overlay-links a { opacity: 1; transform: translateY(0); }
.nav-overlay.is-open .nav-overlay-links a:nth-child(1) { transition-delay: 60ms; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(2) { transition-delay: 120ms; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(3) { transition-delay: 180ms; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(4) { transition-delay: 240ms; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(5) { transition-delay: 300ms; }

/* Hamburger → X morph */
.nav-toggle span {
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22,1,0.36,1);
  transform-origin: center;
}
body.nav-is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-is-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.nav-is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Nav link hover underline sweep */
.nav-links-desktop a {
  position: relative;
  overflow: hidden;
}
.nav-links-desktop a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 200ms ease;
}
.nav-links-desktop a:hover::after,
.nav-links-desktop a.active::after { width: 100%; background: var(--amber); }

/* ─── Hero scroll signal — animated bounce ───────────────────────── */
.hero-scroll-signal {
  animation: signalBounce 2.2s ease-in-out infinite;
}
@keyframes signalBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.35; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.7; }
}

/* ─── Button micro-interactions ──────────────────────────────────── */
.btn-primary  { transition: background 180ms ease, transform 120ms ease; }
.btn-primary:active  { transform: scale(0.96); }
.btn-secondary { transition: border-color 180ms ease, color 180ms ease, transform 120ms ease; }
.btn-secondary:active { transform: scale(0.96); }

/* ─── Form: focus animation + character counter ──────────────────── */
#contact-form input,
#contact-form textarea {
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--amber);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184,98,26,0.08);
}

.char-counter {
  font-family: var(--label-font);
  font-size: 11px;
  color: var(--ink-tertiary);
  display: block;
  text-align: right;
  margin-top: 4px;
}
.char-counter--warn { color: #8B3A3A; }

/* ─── Back-to-top button ─────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 28px; right: 24px;
  width: 44px; height: 44px;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--label-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease, background 180ms ease;
}
#back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover { background: #2D2825; }

@media (min-width: 768px) {
  #back-to-top { right: 32px; bottom: 36px; }
}

/* ─── Marquee ticker ─────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 13px 0;
  background: var(--parchment);
  user-select: none;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track span {
  font-family: var(--label-font);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-sep { color: var(--amber) !important; font-size: 9px !important; }
.marquee:hover .marquee-track { animation-play-state: paused; }

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

/* ─── Work filter ────────────────────────────────────────────────── */
.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 48px;
}
.work-filter-btn {
  font-family: var(--label-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  background: none;
  border: 1px solid var(--rule);
  padding: 8px 18px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.work-filter-btn:hover { color: var(--ink); border-color: var(--ink-secondary); }
.work-filter-btn.is-active {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}

/* Hidden case study (filtered) */
.case-study.cs-hidden {
  display: none;
}

/* ─── Case study visual improvements ────────────────────────────── */
.cs-visual {
  position: relative;
  overflow: visible;
}
.cs-visual-mark {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  color: var(--amber);
  pointer-events: none;
}

/* ─── Build page: Project qualifier ──────────────────────────────── */
.qualifier-section {
  padding: 56px 0;
  background: var(--parchment);
  border-bottom: 1px solid var(--rule);
}
.qualifier-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.qualifier-btn {
  font-family: var(--label-font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: none;
  border: 1px solid var(--rule);
  padding: 12px 22px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms ease;
}
.qualifier-btn:hover {
  background: var(--parchment-dark);
  border-color: var(--rule-strong);
}
.qualifier-btn.is-active {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}
.qualifier-btn:active { transform: scale(0.97); }

/* Service block highlight from qualifier */
.service-block {
  transition: background 300ms ease, border-left 300ms ease, padding-left 300ms ease;
}
.service-block.is-highlighted {
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  padding-left: 20px;
}

/* ─── Work rows on index: link entire row ────────────────────────── */
a.work-row {
  text-decoration: none;
  color: inherit;
}
.work-row .work-row-arrow {
  font-family: var(--label-font);
  font-size: 16px;
  color: var(--amber);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
  flex-shrink: 0;
}
.work-row:hover .work-row-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Mobile UX improvements ─────────────────────────────────────── */
@media (max-width: 767px) {
  /* Larger touch targets */
  .btn-primary, .btn-secondary { min-height: 48px; }
  .lang-btn { min-width: 36px; min-height: 36px; }

  /* Better hero on small screens */
  .hero { padding: 84px 0 64px; }
  .hero-headline { font-size: 40px; line-height: 1.1; }
  .hero-sub { font-size: 16px; margin-top: 20px; }
  .hero-cta { margin-top: 32px; gap: 16px; }

  /* Tighter sections */
  .what-this-is { padding: 64px 0; }
  .work-teaser { padding: 64px 0; }
  .handoff { padding: 72px 0; }
  .page-hero { padding: 120px 0 56px; }
  .about-hero { padding: 120px 0 56px; }
  .services-section, .approach-section, .process-section { padding: 64px 0; }
  .why-section { padding: 64px 0; }
  .contact-section { padding: 72px 0; }
  .contact-page { padding: 120px 0 72px; }
  .legal-page { padding: 120px 0 72px; }

  /* Work row stacks cleanly */
  .work-row-right { display: flex; flex-direction: column; gap: 10px; }

  /* Process rows breathe */
  .process-row { padding: 28px 0; }

  /* Qualifier wraps */
  .qualifier-options { gap: 8px; }
  .qualifier-btn { padding: 10px 16px; font-size: 12px; }
}

/* iOS safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  footer { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .cookie-banner { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  #back-to-top { bottom: max(28px, env(safe-area-inset-bottom)); }
}

/* ─── Reduced motion overrides ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-logomark path,
  .hero-logomark line,
  .hero-logomark .logomark-dot { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
  .hero-scroll-signal { animation: none; }
  #scroll-progress { transition: none; }
  .nav-overlay-links a { transition: color 200ms ease; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   SHOWCASE — Round 5
   ═══════════════════════════════════════════════════════════════════ */

/* ─── View Transitions API ────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease both vtOut; }
::view-transition-new(root) { animation: 280ms ease 60ms both vtIn; }
@keyframes vtOut { to   { opacity: 0; } }
@keyframes vtIn  { from { opacity: 0; } }

/* ─── Hero rule: grow from 0 ─────────────────────────────────────── */
.hero-rule.js-reveal {
  opacity: 1 !important;
  transform: none !important;
  width: 0 !important;
  transition: width 560ms cubic-bezier(0.22, 1, 0.36, 1) 0.1s !important;
}
.hero-rule.is-visible { width: 48px !important; }

/* ─── Hero headline: line-by-line clip reveal ────────────────────── */
.hero-headline.hero-typeset {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.hero-headline.hero-typeset .hero-line {
  display: block;
  overflow: hidden;
}
.hero-headline.hero-typeset .hero-line-inner {
  display: block;
  animation: heroLineUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-headline.hero-typeset .hero-line:nth-child(1) .hero-line-inner { animation-delay: 0.30s; }
.hero-headline.hero-typeset .hero-line:nth-child(2) .hero-line-inner { animation-delay: 0.48s; }
.hero-headline.hero-typeset .hero-line:nth-child(3) .hero-line-inner { animation-delay: 0.66s; }
@keyframes heroLineUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

/* ─── Stats section ───────────────────────────────────────────────── */
.stats-section {
  padding: 72px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 0 48px;
  text-align: center;
}
.stat-item:not(:last-child) { border-right: 1px solid var(--rule); }
.stat-number {
  display: block;
  font-family: var(--display-font);
  font-size: clamp(52px, 8vw, 84px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-suffix {
  font-size: 0.55em;
  letter-spacing: 0;
  vertical-align: super;
  color: var(--amber);
}
.stat-label {
  display: block;
  font-family: var(--label-font);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-top: 12px;
}

@media (max-width: 639px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item {
    padding: 28px 0;
    text-align: left;
    border-right: none;
  }
  .stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
}
@media (min-width: 640px) and (max-width: 767px) {
  .stat-item { padding: 0 24px; }
}

/* ─── Case study: bracket draw on hover ──────────────────────────── */
.cs-visual-mark path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-study:hover .cs-visual-mark path { stroke-dashoffset: 0; }
.case-study:hover .cs-visual-mark path:nth-child(1) { transition-delay: 0ms;   }
.case-study:hover .cs-visual-mark path:nth-child(2) { transition-delay: 80ms;  }
.case-study:hover .cs-visual-mark path:nth-child(3) { transition-delay: 160ms; }
.case-study:hover .cs-visual-mark path:nth-child(4) { transition-delay: 240ms; }

/* ─── Handoff: ambient floating tech labels ──────────────────────── */
.handoff { position: relative; overflow: hidden; }
.handoff-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.handoff-bg span {
  position: absolute;
  font-family: var(--label-font);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.07);
  animation: handoffFloat 9s ease-in-out infinite;
  will-change: transform;
}
.handoff-bg span:nth-child(1) { top: 12%;    left: 6%;   animation-delay: 0s;   }
.handoff-bg span:nth-child(2) { top: 20%;    right: 10%; animation-delay: 1.5s; }
.handoff-bg span:nth-child(3) { top: 50%;    left: 18%;  animation-delay: 2.8s; }
.handoff-bg span:nth-child(4) { top: 65%;    right: 7%;  animation-delay: 0.8s; }
.handoff-bg span:nth-child(5) { bottom: 18%; left: 42%;  animation-delay: 3.5s; }
.handoff-bg span:nth-child(6) { top: 38%;    right: 20%; animation-delay: 5s;   }
.handoff-bg span:nth-child(7) { bottom: 32%; left: 62%;  animation-delay: 1.9s; }
@keyframes handoffFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg);   opacity: 0.07; }
  50%       { transform: translateY(-14px) rotate(1deg); opacity: 0.13; }
}

/* ─── Principle items: hover slide ───────────────────────────────── */
.principle-item {
  padding-left: 0;
  transition: background 200ms ease, padding-left 240ms ease;
}
.principle-item:hover {
  background: rgba(184,98,26,0.025);
  padding-left: 8px;
}

/* ─── Process rows: hover reveal ─────────────────────────────────── */
.process-row { transition: background 200ms ease; }
.process-row:hover { background: rgba(184,98,26,0.02); }
.process-num { transition: opacity 280ms ease; }
.process-row:hover .process-num { opacity: 0.55; }

/* ─── Approach items: hover slide + label expand ─────────────────── */
.approach-item {
  padding-left: 0;
  transition: background 200ms ease, padding-left 240ms ease;
}
.approach-item:hover { background: rgba(184,98,26,0.02); padding-left: 8px; }
.approach-label { transition: letter-spacing 260ms ease; }
.approach-item:hover .approach-label { letter-spacing: 0.18em; }

/* ─── Trust lines: hover shift ───────────────────────────────────── */
.trust-line {
  padding-left: 0;
  transition: background 200ms ease, padding-left 240ms ease;
}
.trust-line:hover { background: rgba(245,240,232,0.04); padding-left: 12px; }
.trust-marker { transition: transform 240ms ease; }
.trust-line:hover .trust-marker { transform: translateX(4px); }

/* ─── Work filter count display ──────────────────────────────────── */
.work-filter-count {
  font-family: var(--label-font);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-tertiary);
  align-self: center;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 200ms ease;
}
.work-filter-count.is-visible { opacity: 1; }

/* ─── Qualifier: secondary "not sure" button ─────────────────────── */
.qualifier-btn--secondary {
  border-style: dashed;
  color: var(--ink-secondary);
}
.qualifier-btn--secondary:hover {
  background: none;
  border-style: dashed;
  color: var(--ink);
}

/* ─── Work row arrow: alignment + mobile ─────────────────────────── */
@media (min-width: 768px) {
  .work-row .work-row-arrow { align-self: center; }
}
@media (max-width: 767px) {
  .work-row .work-row-arrow { display: none; }
}

/* ─── Round 5 reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-rule.js-reveal { width: 48px !important; transition: none !important; }
  .hero-headline.hero-typeset .hero-line-inner { animation: none !important; }
  .handoff-bg span { animation: none !important; }
  .cs-visual-mark path { transition: none !important; stroke-dashoffset: 0 !important; }
  .principle-item,
  .process-row,
  .approach-item,
  .trust-line { transition: none !important; }
}
