/* =========================================================
   DEVVDUO — Design tokens
   Copula-inspired high-contrast agency palette: warm cream
   canvas + white cards, with full-width Cobalt Blue and
   Off-Black sections dropped in for dramatic contrast shifts
   as the page scrolls. Electric Orange stays reserved for
   CTAs, active states, badges, and key bold headings only.
========================================================= */
:root{
  /* ---- Core tokens ---- */
  --bg: #F2EFE9;                     /* main page canvas — warm cream */
  --surface: #FFFFFF;                /* card / container surface */

  --border: #919495;                 /* thin 1px borders / divider lines, used everywhere */
  --border-soft: rgba(145,148,149,0.4); /* softened variant for large-area dividers */

  --ink: #0C0C0C;                    /* primary text on light surfaces */
  --muted: #555555;                  /* secondary / muted text on light surfaces */

  --accent: #FF4A00;                 /* Electric Orange — CTAs, active states, key highlights */
  --accent-soft: rgba(255,74,0,0.12);/* tinted background for accent badges/chips */
  --accent-hover: #E04200;           /* accent hover/active shade */

  --cobalt: #0B00FD;                 /* Cobalt Blue — full-width dramatic sections */
  --cobalt-hover: #0A00D6;
  --offblack: #0C0C0C;               /* Off-Black — full-width dramatic sections + footer */

  --on-dark-ink: #FFFFFF;            /* primary text on cobalt / off-black sections */
  --on-dark-muted: rgba(255,255,255,0.68); /* secondary text on cobalt / off-black sections */

  /* ---- Legacy aliases (kept so the rest of the file needs no renaming) ---- */
  --bg-soft: #EAE6DC;                /* slightly deeper cream, for banded light sections */
  --accent-ink: var(--accent-soft);
  --cream: var(--on-dark-ink);
  --cream-muted: var(--on-dark-muted);
  --rust: var(--accent);
  --rust-soft: var(--accent-soft);

  --font-display: "Poppins", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22,1,.36,1);
}



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

html{
  /* NOTE: scroll-behavior:smooth was removed on purpose — it actively
     conflicts with GSAP ScrollTrigger's pin/scrub math (documented GSAP
     gotcha). Smooth scrolling is now handled by GSAP ScrollToPlugin in
     script.js so it stays in sync with the pinned/scrubbed sections. */
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ol, ul{ list-style: none; margin: 0; padding: 0; }
h1, h2, h3{ margin: 0; font-weight: 600; letter-spacing: -0.02em; }

.eyebrow{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================
   HEADER
========================================================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  background: rgba(242,239,233,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  pointer-events: none;
}
.site-header > *{ pointer-events: auto; }

.logo{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.menu-toggle{
  background: none;
  border: 2px solid var(--offblack);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 9px 18px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.menu-toggle:hover{
  background: var(--offblack);
  color: var(--on-dark-ink);
}

.menu-toggle__label::after{
  content: none;
}

body.nav-open .menu-toggle{ background: var(--offblack); color: var(--on-dark-ink); }

/* =========================================================
   NAV OVERLAY
========================================================= */
.nav-overlay{
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg-soft);
  display: flex;
  align-items: flex-end;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}
body.nav-open .nav-overlay{
  clip-path: inset(0 0 0% 0);
}

.nav-overlay__inner{
  width: 100%;
  padding: 120px var(--gutter) 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.nav-links{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link{
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: clamp(36px, 8vw, 84px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  overflow: hidden;
  position: relative;
}
.nav-links li:last-child .nav-link{
  border-bottom: 1px solid var(--border);
}

.nav-link__num{
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  align-self: center;
}

.nav-link__text{
  display: inline-block;
  transition: transform 0.5s var(--ease), color 0.3s ease;
}
.nav-link:hover .nav-link__text{
  transform: translateX(18px);
  color: var(--accent);
}

.nav-overlay__footer{
  display: flex;
  gap: 64px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.nav-overlay__col{
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.nav-overlay__col .eyebrow{ margin-bottom: 4px; }
.nav-overlay__col a{ color: var(--muted); transition: color 0.25s ease; }
.nav-overlay__col a:hover{ color: var(--ink); }

/* =========================================================
   HERO — pinned scroll-zoom section
   Graph-paper canvas, center-stacked wordmark flanked by a
   thin rule + label on each side, signature squiggle above,
   pill "Menu" trigger below. Same pinned zoom-out scroll
   behavior as before — only the visual dressing changed.
========================================================= */
.hero{
  position: relative;
  height: 240vh; /* scroll runway for the pin */
}

.hero__pin{
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh; /* stable on mobile browsers where the address bar shows/hides */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
  background-color: var(--bg);
  overflow: hidden;
}

/* Faint graph-paper grid across the whole hero canvas */
.hero__grid-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(12,12,12,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,12,12,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 40%, transparent 92%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 40%, transparent 92%);
}

.hero__signature{
  position: relative;
  z-index: 1;
  width: clamp(120px, 14vw, 190px);
  margin: 0 0 clamp(28px, 5vw, 56px);
  will-change: opacity, transform;
}
.hero__signature svg{ width: 100%; height: auto; display: block; }

.hero__row{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  gap: clamp(14px, 3vw, 32px);
}

/* Mirrored left/right groups, each flex:1 — this is what keeps the
   title perfectly centered no matter how long either label text is;
   the rule inside each side simply absorbs the leftover space. */
.hero__side{
  flex: 1 1 0;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: clamp(14px, 3vw, 32px);
}
.hero__side--left{ justify-content: flex-end; }
.hero__side--right{ justify-content: flex-start; }

.hero__label{
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 15px;
  color: var(--ink);
  will-change: opacity, transform;
}

.hero__rule{
  flex: 1 1 40px;
  min-width: 20px;
  height: 1px;
  background: rgba(12,12,12,0.35);
  will-change: opacity, transform;
}

.hero__title{
  flex: 0 0 auto;
  font-size: clamp(34px, 6.6vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  will-change: transform, opacity;
}
.hero__title .line{ display: block; }

.hero__menu-pill{
  position: absolute;
  z-index: 1;
  bottom: clamp(28px, 6vh, 56px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 26px;
  border: none;
  border-radius: 999px;
  background: #F4D93E;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  will-change: opacity, transform;
}
.hero__menu-pill:hover{
  background: #F0CE15;
  transform: translateY(-2px);
}
.hero__menu-icon{
  width: 18px;
  height: 12px;
  position: relative;
}
.hero__menu-icon::before,
.hero__menu-icon::after{
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.hero__menu-icon::before{ top: 1px; }
.hero__menu-icon::after{ bottom: 1px; }

/* =========================================================
   INTRO STRIP
========================================================= */
.intro{
  padding: 120px var(--gutter);
  border-top: 1px solid var(--border);
}
.intro__inner{
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}
.intro__text{
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 640px;
  min-width: 0;
}
.intro__stats{
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  border-left: 1px solid var(--border);
  padding-left: 40px;
}
.stat__num{
  display: block;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
}
.stat__label{
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* =========================================================
   SECTION HEAD (shared) — oversized wordmark that the grid
   below it overlaps into, Aceternity-style. The eyebrow stays
   small and sits above it; the grid (painted after it in
   document order, so it naturally sits on top) rides up
   underneath the tail of the big word via the negative margin.
========================================================= */
.section-head{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  pointer-events: none;
}
/* Stories/Design share this component but not the same heading shape:
   "Stories" has no descenders, "Design" has one (the g). The same
   negative margin read as a clean tuck under "Design" and a flat,
   uneven chop under "Stories" — split the offset per section instead
   of guessing one value for both. */
.stories .section-head{ margin-bottom: clamp(-40px, -5vw, -76px); }
.design .section-head{ margin-bottom: clamp(-56px, -7vw, -104px); }
.section-head .eyebrow{ display: block; margin-bottom: 4px; }
.section-head h2{
  font-size: clamp(96px, 15.5vw, 260px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin: 0;
  user-select: none;
}

/* =========================================================
   STORIES
========================================================= */
.stories{
  background: var(--bg-soft);
  padding: 120px 0;
}
.stories__grid{
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 32px;
}

.story-card{
  display: block;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 26px;
  min-width: 0; /* grid items default to min-width:auto, which refuses to
                   shrink below content size and blows out the column —
                   this is what caused mobile horizontal overflow */
  box-shadow: 0 1px 2px rgba(12,12,12,0.04), 0 16px 32px rgba(12,12,12,0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.story-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(12,12,12,0.1);
}

.story-card__media{
  overflow: hidden;
  border-radius: 9px;
  aspect-ratio: 4 / 3;
  margin-bottom: 22px;
  border: 1px solid var(--border);
}
.story-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s var(--ease);
}
.story-card:hover .story-card__media img,
.project-card:hover .project-card__media img{
  transform: scale(1.04);
}

.story-card__meta{ padding: 0 2px; }
.story-card__meta .tag{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-ink);
  padding: 5px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.story-card__meta h3{
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.story-card__meta p{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 42ch;
}

/* =========================================================
   DESIGN
========================================================= */
.design{
  background: var(--bg-soft);
  padding: 120px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.design__grid{
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 32px;
}
.project-card{
  display: block;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 22px;
  min-width: 0; /* same grid-overflow fix as .story-card */
  box-shadow: 0 1px 2px rgba(12,12,12,0.04), 0 16px 32px rgba(12,12,12,0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.project-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(12,12,12,0.1);
}
.project-card__media{
  aspect-ratio: 3 / 4;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.project-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s var(--ease);
}
.project-card__meta{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.project-card__meta h3{
  font-size: 18px;
  font-weight: 500;
  min-width: 0;
}
.project-card__year{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}


/* =========================================================
   CTA
========================================================= */
.cta{
  padding: 160px var(--gutter);
  text-align: center;
  background: var(--offblack);
  color: var(--on-dark-ink);
}
.cta__inner{
  max-width: 680px;
  margin: 0 auto;
}
.cta .eyebrow{ margin-bottom: 20px; color: var(--on-dark-muted); }
.cta__title{
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.08;
  margin-bottom: 40px;
  color: var(--on-dark-ink);
}

/* Primary button — solid Electric Orange, white text, slides/scales on hover */
.cta__link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #FFFFFF;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 18px 34px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 0 0 rgba(255,74,0,0);
}
.cta__link::after{
  content: "→";
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.cta__link:hover{
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255,74,0,0.35);
}
.cta__link:hover::after{ transform: translateX(4px); }

/* =========================================================
   FOOTER
========================================================= */
.site-footer{
  display: flex;
  justify-content: space-between;
  padding: 28px var(--gutter) 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-dark-muted);
  background: var(--offblack);
  border-top: 1px solid var(--border);
}

/* =========================================================
   LET'S BUILD — stacked scroll-reveal section
   (Addition — sits between the hero and the intro strip)
========================================================= */
.build{
  background: var(--cobalt);
  color: var(--cream);
  border-top: 1px solid var(--border);
}
.build__pin{
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.build__pin .eyebrow{
  color: var(--cream-muted);
  margin-bottom: 28px;
}
.build__stack{
  position: relative;
  width: 100%;
  height: clamp(64px, 13vw, 128px); /* fixed band, matches the line's own box so nothing spills into the eyebrow/tagline above/below */
  overflow: hidden; /* clip any oversized line instead of letting it bleed out of the section */
  display: flex;
  align-items: center;
  justify-content: center;
}
.build__line{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(30px, 6.6vw, 78px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--cream);
  opacity: 0;
  visibility: hidden; /* fully removes hidden lines from hit-testing/paint, no ghost text */
  white-space: nowrap;
  will-change: opacity, transform;
}
.build__line.is-active{ opacity: 1; visibility: visible; }
.build__line:first-child{ opacity: 1; visibility: visible; }
.build__line:last-child{ color: var(--rust); }

.build__tagline{
  margin: 38px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cream-muted);
}
.build__cue{
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cream-muted);
  opacity: 0.7;
}

/* =========================================================
   CLIENT STORIES — Umano-style pinned horizontal scroll
   (Addition — sits after the existing .stories section)
========================================================= */
.client-stories{
  background: var(--offblack);
  color: var(--cream);
  position: relative;
  border-top: 1px solid var(--border);
}
.client-stories__pin{
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding: 64px 0;
  overflow: hidden;
}
.client-stories__head{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.eyebrow--light{ color: var(--cream-muted); }
.client-stories__title{
  font-size: clamp(34px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 18px 0 20px;
}
.client-stories__title .accent-2{ color: var(--accent); }
.client-stories__sub{
  max-width: 46ch;
  color: var(--cream-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.client-stories__track-wrap{
  overflow: hidden;
  width: 100%;
}
.client-stories__track{
  display: flex;
  gap: 28px;
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}

.testimonial-card{
  flex: 0 0 clamp(280px, 32vw, 400px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.testimonial-card__mark{
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}
.testimonial-card__quote{
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 28px;
}
.testimonial-card__who{
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-card__avatar{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}
.testimonial-card__who div{
  display: flex;
  flex-direction: column;
}
.testimonial-card__name{
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.testimonial-card__role{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* =========================================================
   MOMENTUM — Copula-style floating / running scroll text
   (Addition — sits after the existing .design section)
========================================================= */
.momentum{
  background: var(--cobalt);
  color: var(--cream);
  border-top: 1px solid var(--border);
  padding: 140px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.momentum__row{
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
}

.momentum__track{
  display: flex;
  width: max-content;
  will-change: transform;
}
.momentum__track span{
  display: inline-block;
  font-size: clamp(38px, 7.6vw, 104px);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding-right: 56px;
  color: var(--cream);
}
.momentum__row--outline .momentum__track span{
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cream);
}
.momentum__row--rust .momentum__track span{
  color: var(--rust);
}

.momentum__row[data-direction="left"] .momentum__track{
  animation: momentum-left 26s linear infinite;
}
.momentum__row[data-direction="right"] .momentum__track{
  animation: momentum-right 26s linear infinite;
}

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

@media (prefers-reduced-motion: reduce){
  .momentum__row[data-direction="left"] .momentum__track,
  .momentum__row[data-direction="right"] .momentum__track{
    animation: none;
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* ---- Large desktop / wide monitors: keep line-lengths sane ---- */
@media (min-width: 1600px){
  .intro__inner, .stories__grid, .design__grid,
  .section-head, .client-stories__head{
    max-width: 1360px;
  }
}

/* ---- Tablet (portrait + landscape) ---- */
@media (max-width: 1024px){
  .hero{ height: 200vh; }
  .hero__row{ flex-direction: column; gap: 18px; }
  .hero__side{ flex: 0 0 auto; }
  .hero__side--left{ order: 0; }
  .hero__side--right{ order: 2; flex-direction: row-reverse; }
  .hero__rule{ display: none; }
  .hero__label{ white-space: normal; font-size: 14px; }
  .hero__title{ order: 1; }
  .intro{ padding: 96px var(--gutter); }
  .stories, .design{ padding: 96px 0; }
  .intro__inner{ gap: 48px; }
  .client-stories__pin{ gap: 36px; padding: 48px 0; }
  .cta{ padding: 128px var(--gutter); }
}

@media (max-width: 900px){
  .intro__inner{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .intro__stats{
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 32px;
    gap: 32px 48px;
  }
  .stories__grid,
  .design__grid{
    grid-template-columns: 1fr;
  }
  .section-head h2{
    font-size: clamp(64px, 18vw, 140px);
  }
  .stories .section-head{ margin-bottom: clamp(-24px, -4vw, -40px); }
  .design .section-head{ margin-bottom: clamp(-34px, -6vw, -56px); }
  .nav-overlay__footer{
    flex-direction: column;
    gap: 28px;
  }
  .testimonial-card{ flex-basis: 78vw; min-height: 220px; }
  .momentum{ padding: 96px 0; gap: 20px; }
  .build__line{
    font-size: clamp(24px, 5.4vw, 78px);
  }
}

/* ---- Mobile ---- */
@media (max-width: 640px){
  .hero{ height: 170vh; }
  .hero__title{ font-size: clamp(30px, 10.5vw, 56px); }
  .hero__signature{ width: clamp(90px, 24vw, 130px); margin-bottom: 22px; }
  .hero__menu-pill{ padding: 12px 18px 12px 22px; font-size: 14px; }
  .intro{ padding: 72px var(--gutter); }
  .intro__text{ font-size: clamp(18px, 5vw, 22px); }
  .stories, .design{ padding: 72px 0; }
  .story-card, .project-card{ padding: 14px 14px 20px; }
  .story-card__meta h3{ font-size: 19px; }
  .cta{ padding: 96px var(--gutter); }
  .cta__title{ font-size: clamp(26px, 8vw, 40px); }
  .client-stories__title{ font-size: clamp(28px, 9vw, 44px); }
}

@media (max-width: 560px){
  .site-header{ padding: 18px 20px; }
  .nav-overlay__inner{ padding: 100px 20px 40px; }
  .nav-link{ font-size: 12vw; }
  .site-footer{ flex-direction: column; gap: 6px; }
  .client-stories__pin{ gap: 32px; padding: 32px 0; }
  .testimonial-card{ flex-basis: 84vw; padding: 24px; min-height: 200px; }
  .momentum{ padding: 72px 0; }

  /* The stacked word-reveal ("Let's build...") is nowrap by design so the
     crossfade doesn't reflow mid-line — but at very narrow widths even the
     smallest clamp size can't fit "something that converts" on one line
     without clipping against the container's overflow:hidden. Below this
     width we allow wrapping and give the line room to grow to two lines. */
  .build__stack{
    height: clamp(84px, 24vw, 128px);
  }
  .build__line{
    font-size: clamp(19px, 6.6vw, 30px);
    line-height: 1.15;
    white-space: normal;
    padding: 0 8px;
  }
}

