/* ============================================================
   DAIRA — shared design system
   Warm, earthy, accessible — bark / rust / amber / honey / cream.
   ============================================================ */
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&display=swap");

:root {
  /* Brand: bark (deep brown) is the "ink"; amber the accent */
  --bark: #511803;
  --rust: #9e4200;
  --amber: #f2a235;
  --honey: #fecc67;
  --cream: #fffdd0;

  --ink: #511803;
  --ink-2: #6b2810;
  /* Full-width dark bands sit a step lighter than --ink so they read warm rather than
     near-black. Measured on this tone: cream 9.0:1 · body copy 5.5:1 · honey 6.2:1.
     Small dark fills (buttons, active chips, nav pill) stay on --ink for punch. */
  --band: #73351a;
  --paper: #fafafa;
  --surface: #fafafa;      /* cards/fields — same tone as the page, defined by their border */
  --off: #faf5ec;
  --accent: #f2a235;
  --accent-ink: #511803;
  --gray: #6b2810;
  --gray-2: #a55a36;
  --line: #ead8c8;
  --line-dark: rgba(255, 253, 208, 0.22);
  --radius: 24px;
  --radius-sm: 14px;
  --font-display: 'Outfit', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', system-ui, sans-serif;
  --font-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--honey); color: var(--bark); }

/* Honeypot: invisible to people, tempting to bots. Not display:none — some bots skip
   those. Kept out of the tab order and hidden from assistive tech. */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
/* Result line under any form — only shown once the server has actually answered. */
.form-note {
  margin: 12px 0 0; font-family: var(--font-display); font-weight: 600;
  font-size: 0.88rem; color: var(--rust);
}
.form-note.is-error { color: #b3261e; }
.section--dark .form-note { color: var(--honey); }
.section--dark .form-note.is-error { color: #ffb4a8; }

/* Visible to screen readers only — used for section headings that the visual design
   carries some other way, so the heading outline stays unbroken. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Cross-document page transitions (native, progressive) */
@view-transition { navigation: auto; }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root), ::view-transition-old(root) { animation: none; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1400px; }
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--dark { background: var(--band); color: var(--cream); }
.section--dark .lead, .section--dark p { color: rgba(255, 253, 208, 0.72); }
.section--off { background: var(--off); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.section--dark .hr { border-color: var(--line-dark); }

/* ---------- Type ---------- */
/* reference scale, dialled down a notch: 500 weight, 1.0 leading, -0.02em tracking */
.display-xl { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.display-md { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; }
/* inner-page heroes sit a step below the home hero, as in the reference */
.page-hero .display-xl { font-size: clamp(2.1rem, 3.9vw, 3.4rem); }
.display-sm { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--gray); max-width: 56ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px;
  margin-bottom: 28px; background: var(--surface);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(242, 162, 53, 0.35); }
.section--dark .eyebrow { background: transparent; border-color: var(--line-dark); color: var(--paper); }
.accent { position: relative; white-space: nowrap; }
.accent > .accent-bg {
  position: absolute; inset: 0.08em -0.12em -0.02em; background: var(--accent);
  border-radius: 0.35em; z-index: -1; transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s var(--ease-expo);
}
.accent.is-inview > .accent-bg { transform: scaleX(1); }
.text-outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.section--dark .text-outline, .card--dark .text-outline { -webkit-text-stroke-color: rgba(255, 255, 255, 0.85); }
canvas.hero-canvas, canvas.nf-canvas { width: 100%; height: 100%; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 64px; flex-wrap: wrap; }
.section-head .lead { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.94rem;
  background: var(--ink); color: var(--paper);
  transition: transform 0.35s var(--ease-out), background 0.35s, color 0.35s, box-shadow 0.35s;
  overflow: hidden; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.35); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { box-shadow: 0 14px 30px -10px rgba(242, 162, 53, 0.5); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: inherit; border: 1px solid var(--line); }
.section--dark .btn--ghost { border-color: var(--line-dark); }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
/* double-label slide hover */
.btn-txt { display: inline-grid; overflow: hidden; line-height: 1.25; }
.btn-txt > span { grid-area: 1 / 1; transition: transform 0.45s var(--ease-expo), opacity 0.3s; }
.btn-txt > span + span { transform: translateY(115%); }
.btn:hover .btn-txt > span:first-child { transform: translateY(-115%); }
.btn:hover .btn-txt > span + span { transform: translateY(0); }
.btn-arrow { display: inline-block; transition: transform 0.45s var(--ease-expo); }
.btn:hover .btn-arrow { transform: translateX(5px) rotate(-45deg); }

/* ---------- Header (Earthon pattern: logo · center glass pill nav · contact) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: transform 0.5s var(--ease-out), background 0.4s, box-shadow 0.4s;
}
/* The header no longer hides on scroll — kept only so any stale markup can't strand it
   off-screen if the class is ever reintroduced. */
.is-scrolled .site-header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px -26px rgba(0, 0, 0, 0.3);
}
.header-inner {
  max-width: 1360px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; }
.logo-wide { height: 58px; width: auto; object-fit: contain; transition: filter 0.3s; }
@media (max-width: 720px) { .logo-wide { height: 44px; } }
/* On dark heroes (before scroll) render the wordmark white */
body[data-hero="dark"]:not(.is-scrolled) .site-header .logo-wide { filter: brightness(0) invert(1); }
.logo-img { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; align-self: center; border-radius: 8px; }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.logo-mark svg { width: 18px; height: 18px; }
.nav {
  display: flex; align-items: center; gap: 2px;
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(14, 14, 14, 0.06);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.3);
  border-radius: 999px; padding: 6px;
}
.site-header { --nav-h: 72px; }
.header-inner { position: relative; min-height: 60px; }
.nav a, .nav .nav-drop-btn {
  padding: 10px 19px; border-radius: 999px; font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
  transition: background 0.25s, color 0.25s; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.nav a:hover, .nav .nav-drop-btn:hover { background: rgba(14, 14, 14, 0.06); }
/* only style the active link directly when the sliding pill is NOT running */
.nav:not(.has-pill) a.is-active { background: var(--ink); color: var(--paper); }
/* sliding shared pill (Framer-style): pill paints the black state, links go transparent */
.nav-pill {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px;
  background: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  opacity: 0; pointer-events: none;
}
.nav-pill.is-ready { transition: transform 0.45s var(--ease-expo), width 0.45s var(--ease-expo), opacity 0.25s; }
.nav.has-pill > a, .nav.has-pill .nav-drop { position: relative; z-index: 1; }
/* in pill mode the pill paints the dark state — links stay ink until the pill is under them,
   otherwise the active link keeps white text and vanishes on the white bar */
.nav.has-pill > a.is-active { background: transparent; box-shadow: none; color: var(--ink); }
.nav.has-pill > a:hover, .nav.has-pill .nav-drop-btn:hover { background: transparent; }
.nav.has-pill > a.pill-lit, .nav.has-pill .nav-drop-btn.pill-lit { color: var(--paper); }
/* ARC is a live flagship event, so it gets a ring. Uses an inset shadow rather than a
   border: no extra width, so the sliding pill still measures and lines up correctly. */
.nav > a.nav-arc {
  color: var(--rust); font-weight: 700; letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1.5px var(--rust);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.nav:not(.has-pill) > a.nav-arc:hover { background: var(--rust); color: var(--paper); }
/* pill mode zeroes box-shadow on the active link — keep the ring in every pill state */
.nav.has-pill > a.nav-arc,
.nav.has-pill > a.nav-arc.is-active { box-shadow: inset 0 0 0 1.5px var(--rust); color: var(--rust); }
/* when the dark pill slides under it, swap to honey so the ring still reads */
.nav.has-pill > a.nav-arc.pill-lit { color: var(--honey); box-shadow: inset 0 0 0 1.5px var(--honey); }
.nav-drop { position: relative; }
.nav-drop-btn svg { transition: transform 0.3s; }
.nav-drop:hover .nav-drop-btn svg, .nav-drop:focus-within .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translate(-50%, 8px); min-width: 210px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 8px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.25);
  opacity: 0; visibility: hidden; transition: 0.3s var(--ease-out);
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop-menu a { display: flex; width: 100%; border-radius: 12px; color: var(--ink); }
.nav-drop-menu a:hover { background: rgba(14, 14, 14, 0.06); color: var(--ink); }
.nav.has-pill .nav-drop-menu a:hover { background: rgba(14, 14, 14, 0.06); }
.nav-drop-menu a.is-active { background: var(--ink); color: var(--paper); }
.nav.has-pill .nav-drop-menu a.is-active { background: var(--ink); box-shadow: none; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; background: transparent; place-items: center; }
.menu-btn span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--ink); margin: 3px 0; transition: 0.35s var(--ease-out), background 0.3s; }
body[data-hero="dark"]:not(.is-scrolled) .menu-btn span { background: #fff; }
.menu-open .menu-btn span { background: #fff !important; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav, .header-cta .btn { display: none; }
  .menu-btn { display: grid; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 32px 48px;
  clip-path: circle(0% at calc(100% - 48px) 48px);
  transition: clip-path 0.7s var(--ease-expo); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 48px) 48px); visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3rem); font-weight: 800;
  padding: 10px 0; border-bottom: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateY(24px); transition: 0.5s var(--ease-out);
}
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.mobile-menu a:hover { color: var(--accent); padding-left: 12px; }
/* ARC carries the same highlight on mobile — honey reads on the dark menu ground.
   No badge here: the row is a flex pair (label + arrow) and a third child would sit
   on the wrong side of the arrow. */
.mobile-menu a.mm-arc { color: var(--honey); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; background: var(--ink); color: var(--paper);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 40px 48px; transition: clip-path 0.9s var(--ease-expo);
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader-count { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; line-height: 1; }
.preloader-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
body.is-loading { overflow: hidden; }

/* ---------- Scroll progress + cursor ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--accent); z-index: 300; }
/* custom cursor removed — original design has none, and it read as a glitch */

/* ---------- Scroll-scrub text ---------- */
[data-scrub] { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
[data-scrub] .sw { color: #C9C9C3; transition: color 0.3s linear; }
[data-scrub] .sw.is-lit { color: var(--ink); }
.section--dark [data-scrub] .sw { color: rgba(255, 255, 255, 0.22); }
.section--dark [data-scrub] .sw.is-lit { color: #fff; }

/* ---------- Hero pill CTA (white pill + accent circle arrow; hover floods yellow) ---------- */
.btn--pill-arrow {
  background: #fff; color: var(--ink); padding: 7px 7px 7px 24px; gap: 14px;
  position: relative; z-index: 0;
}
.btn--pill-arrow .btn-txt, .btn--pill-arrow > span:not(.btn-circle) { position: relative; z-index: 2; }
.btn--pill-arrow .btn-circle {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.1rem; color: var(--accent-ink);
  position: relative; z-index: 1; transition: transform 0.45s var(--ease-expo);
}
.btn--pill-arrow .btn-circle::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  z-index: -1; transition: transform 0.6s var(--ease-expo);
}
@media (hover: hover) {
  .btn--pill-arrow:hover .btn-circle { transform: rotate(-45deg); }
  .btn--pill-arrow:hover .btn-circle::before { transform: scale(9); }
}
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; }
  .btn:hover .btn-txt > span:first-child { transform: none; }
  .btn:hover .btn-txt > span + span { transform: translateY(115%); }
  .btn:hover .btn-arrow { transform: none; }
}

/* ---------- Framer-style image settle-in on reveal ---------- */
[data-reveal]:not(.is-inview) .img-cover img,
.img-cover[data-reveal]:not(.is-inview) img { transform: scale(1.09); }

/* ---------- Reveal engine ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); will-change: opacity, transform; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-inview { opacity: 1; transform: none; }

/* On a phone the content already spans the full width, so a 40px sideways offset sticks
   out past the edge and the page scrolls horizontally until the element reveals. Slide
   these in vertically instead — same effect, no overflow. */
@media (max-width: 720px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(26px); }
}
[data-split]:not(.split-ready) { visibility: hidden; }
/* overflow:hidden is what makes the slide-up reveal work, but with line-height 1.02 the
   box ends at the baseline and clips descenders (the g in "technology"). Extend the clip
   box downward and pull the same amount back with a negative margin, so descenders have
   room while line spacing is untouched. */
[data-split] .w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: 0.18em; margin-bottom: -0.18em;
}
[data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 0.8s var(--ease-expo); }
[data-split].is-inview .w > span { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-split] .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-split]:not(.split-ready) { visibility: visible; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; position: relative; }
.marquee-track { display: inline-flex; align-items: center; gap: 48px; padding-right: 48px; animation: marquee 28s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 48px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 3rem); letter-spacing: -0.02em; }
.marquee-item .star { color: var(--accent); font-size: 0.8em; animation: spin 6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.marquee--strip { background: var(--accent); color: var(--accent-ink); padding: 18px 0; transform: rotate(-1.2deg) scale(1.02); }

/* ---------- Cards / media ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform 0.5s var(--ease-out), box-shadow 0.5s, border-color 0.4s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.22); border-color: transparent; }
.card--dark { background: var(--band); border-color: var(--line-dark); color: var(--paper); }
.img-cover { border-radius: var(--radius); overflow: hidden; background: #DDE3D5; position: relative; transform: translateZ(0); }
.img-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.img-cover:hover img { transform: scale(1.06); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; color: var(--ink);
}
.section--dark .chip { background: transparent; border-color: var(--line-dark); color: var(--paper); }
.chip--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

/* ---------- Stats ---------- */
.stat { padding: 32px 0; }
/* metrics support the claim above them — kept below heading size (brand rule) */
.stat-num { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; display: flex; align-items: baseline; }
/* amber fails as text on light (2.5:1) — rust for text accents on light, honey on dark */
.stat-num .suffix { color: var(--rust); }
.section--dark .stat-num .suffix { color: var(--honey); }
.stat-label { margin-top: 12px; color: var(--gray); font-size: 1.02rem; }
.section--dark .stat-label { color: rgba(255, 255, 255, 0.55); }

/* ---------- Accordion / FAQ ---------- */
.accordion { display: flex; flex-direction: column; gap: 14px; }
.acc-item { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; transition: border-color 0.3s, background 0.3s; }
.acc-item.is-open { border-color: var(--ink); }
.acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 28px; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
}
.acc-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--off); display: grid; place-items: center; transition: 0.4s var(--ease-out); position: relative; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; background: var(--ink); border-radius: 2px; }
.acc-icon::before { width: 12px; height: 2px; }
.acc-icon::after { width: 2px; height: 12px; transition: transform 0.4s var(--ease-out); }
.is-open .acc-icon { background: var(--accent); transform: rotate(180deg); }
.is-open .acc-icon::after { transform: scaleY(0); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out); }
.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { padding: 0 28px 26px; margin: 0; color: var(--gray); max-width: 62ch; }

/* ---------- Tabs ---------- */
.tab-bar { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); flex-wrap: wrap; max-width: 100%; }
@media (max-width: 720px) { .tab-bar { border-radius: 24px; } .tab-bar [data-tab] { padding: 8px 16px; font-size: 0.88rem; } }
.tab-bar [data-tab] {
  padding: 10px 22px; border-radius: 999px; font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem; color: var(--paper); transition: 0.35s var(--ease-out);
}
.tab-bar [data-tab].is-active { background: var(--accent); color: var(--accent-ink); }
[data-panel] { display: none; }
[data-panel].is-active { display: block; animation: panel-in 0.6s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--header-h) + 96px) 0 88px; }
.page-hero .display-xl, .page-hero .display-lg { max-width: 18ch; }
.page-hero .lead { margin-top: 28px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; }
.field input, .field textarea, .field select {
  font: inherit; padding: 15px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(242, 162, 53, 0.45);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; align-items: center; gap: 6px; background: var(--off); border: 1px solid var(--line); border-radius: 999px; padding: 6px; }
.billing-toggle button { padding: 10px 24px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; transition: 0.3s; }
.billing-toggle button.is-active { background: var(--ink); color: var(--paper); }
.price-card { display: flex; flex-direction: column; gap: 24px; padding: 40px; }
/* a metric supports the claim above it — it must not outrank the heading */
.price-card .price { font-family: var(--font-display); font-size: 2.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.price-card .price small { font-size: 1rem; font-weight: 600; color: var(--gray); letter-spacing: 0; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.price-card ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--gray); }
.price-card ul li::before {
  content: '✓'; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--accent);
  color: var(--accent-ink); font-size: 0.8rem; font-weight: 800; display: grid; place-items: center; margin-top: 2px;
}
.price-card--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); position: relative; overflow: hidden; }
.price-card--featured .price small, .price-card--featured ul li { color: rgba(255, 255, 255, 0.6); }

/* ---------- Job rows ---------- */
.job-row {
  display: grid; grid-template-columns: 1.2fr 1.6fr auto; gap: 28px; align-items: center;
  padding: 34px 36px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: 0.45s var(--ease-out);
}
.job-row:hover { background: var(--ink); color: var(--paper); transform: translateX(6px); }
.job-row:hover .job-meta span { border-color: var(--line-dark); color: var(--paper); }
.job-row:hover p { color: rgba(255, 255, 255, 0.6); }
.job-row h3 { font-size: 1.5rem; margin-bottom: 12px; }
.job-row p { color: var(--gray); margin: 0; transition: color 0.4s; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 0.82rem; font-family: var(--font-display); font-weight: 600; transition: 0.4s; }
@media (max-width: 860px) { .job-row { grid-template-columns: 1fr; } }

/* ---------- News cards ---------- */
.news-card { display: flex; flex-direction: column; gap: 18px; }
.news-card .img-cover { aspect-ratio: 16 / 10; }
.news-card .meta { display: flex; gap: 14px; align-items: center; font-size: 0.85rem; color: var(--gray); font-family: var(--font-display); font-weight: 600; }
.news-card h3 { font-size: 1.35rem; line-height: 1.25; transition: color 0.3s; }
.news-card:hover h3 { color: var(--gray); }
.news-card p { color: var(--gray); margin: 0; }

/* ---------- Prose (article bodies) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.9rem; margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.4rem; margin: 1.8em 0 0.5em; }
.prose p, .prose li { color: #3d3d3d; font-size: 1.08rem; line-height: 1.8; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  margin: 2em 0; padding: 28px 32px; border-left: 4px solid var(--accent);
  background: var(--off); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
}
.prose .img-cover { margin: 2.4em 0; aspect-ratio: 16 / 9; }

/* ---------- Footer (light, Earthon pattern: image CTA band + white footer + giant wordmark) ---------- */
.footer-cta { position: relative; overflow: hidden; color: var(--ink); }
.footer-cta-bg { position: absolute; inset: -12% 0; z-index: 0; }
.footer-cta-bg img { width: 100%; height: 100%; object-fit: cover; }
/* CSR-note style scrim: deep bark wash so cream text always reads */
.footer-cta { color: var(--cream); }
.footer-cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,13,2,.55) 0%, rgba(42,13,2,.35) 45%, rgba(42,13,2,.72) 100%); }
.footer-cta-inner { padding: 140px 0 150px; text-align: center; position: relative; z-index: 1; }
/* the closing line supports the page — it must not outrank the page's own heading */
.footer-cta .display-xl { font-size: clamp(1.8rem, 3.2vw, 2.85rem); margin-bottom: 18px; color: #fff; text-shadow: 0 2px 28px rgba(42, 13, 2, 0.6); }
.footer-cta-sub { max-width: 54ch; margin: 0 auto 34px; color: rgba(255, 255, 255, 0.88); font-size: 1.02rem; text-shadow: 0 1px 18px rgba(42, 13, 2, 0.8); }
.site-footer { background: var(--paper); color: var(--ink); position: relative; z-index: 1; padding: 0; overflow: hidden; }
.site-footer .container { background: var(--paper); border-radius: var(--radius) var(--radius) 0 0; margin-top: -56px; position: relative; z-index: 2; padding-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding: 64px 24px 48px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gray-2); margin-bottom: 18px; }
.footer-col a { display: block; padding: 5px 0; color: #333; font-family: var(--font-display); font-weight: 600; transition: 0.3s; }
.footer-col a:hover { color: var(--ink); padding-left: 8px; }
.newsletter { display: flex; gap: 0; margin-top: 20px; max-width: 380px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
/* min-width:0 lets the input shrink inside a narrow grid column; without it the flex
   item refuses to go below its intrinsic width and drags the whole column wide. */
.newsletter input { flex: 1; min-width: 0; padding: 14px 18px; border: 0; background: var(--surface); color: var(--ink); font: inherit; }
.newsletter input::placeholder { color: var(--gray-2); }
.newsletter input:focus { outline: none; }
.newsletter:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(242, 162, 53, 0.4); }
.newsletter-btn { background: var(--ink); color: var(--paper); padding: 14px 22px; font-family: var(--font-display); font-weight: 700; transition: background 0.3s; }
.newsletter-btn:hover { background: #000; }
.footer-fine { color: var(--gray-2); font-size: 0.82rem; margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--gray); flex-wrap: wrap; }
.footer-bottom a { color: var(--gray); }
.footer-bottom a:hover { color: var(--ink); }
.footer-big-word {
  font-family: var(--font-display); font-weight: 800; text-align: center;
  font-size: clamp(6rem, 21vw, 22rem); line-height: 0.72; letter-spacing: -0.05em;
  color: var(--ink); user-select: none; margin-top: 8px; transform: translateY(0.14em);
}
/* minmax(0, 1fr), not 1fr: a bare 1fr floors at min-content, so the newsletter form in
   the first column held it at 338px and shoved "Studio" and "Reach us" off the right of
   a 375px screen entirely — half the footer nav was unreachable on a phone. */
@media (max-width: 960px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

/* ---------- Mega menu ---------- */
.nav-mega { display: flex; gap: 28px; min-width: 520px; padding: 22px 26px; }
.mega-col { min-width: 140px; }
.mega-col h5 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-2); margin: 0 0 10px 16px; font-family: var(--font-display); }
.mega-col a { display: flex; width: 100%; border-radius: 10px; padding: 7px 16px !important; font-size: 0.92rem !important; }
/* Between the hamburger breakpoint and ~1200px the centred pill runs into the logo.
   Tighten the link padding through that band instead of hiding items. */
@media (max-width: 1200px) {
  .nav a, .nav .nav-drop-btn { padding: 9px 11px; font-size: .87rem; }
}

/* ---------- Project cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.project-card { display: block; }
.project-card--big { grid-column: span 7; }
.project-card--small { grid-column: span 5; }
.project-card .img-cover { aspect-ratio: 16 / 10; margin-bottom: 18px; }
.project-card--small .img-cover { aspect-ratio: 16 / 12; }
.project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.project-meta h3 { font-size: 1.4rem; }
.project-meta small { color: var(--gray); font-family: var(--font-display); font-weight: 600; display: block; margin-top: 4px; }
.project-meta .year { color: var(--gray-2); font-family: var(--font-display); font-weight: 700; }
@media (max-width: 860px) { .project-card--big, .project-card--small { grid-column: span 12; } }

/* ---------- Service method cards + numbered list ---------- */
.method-card { background: var(--off); border-radius: var(--radius); padding: 30px; transition: transform 0.45s var(--ease-out), box-shadow 0.45s; }
.method-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.25); }
.method-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 18px; }
.method-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.method-card p { color: var(--gray); margin: 0; font-size: 0.95rem; }
.svc-list { display: flex; flex-direction: column; gap: 14px; }
.svc-row {
  display: flex; align-items: center; gap: 24px; padding: 26px 32px;
  border: 1px solid var(--line-dark); border-radius: 16px; color: var(--paper);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  transition: background 0.4s var(--ease-out), color 0.4s, transform 0.4s, border-color 0.4s;
}
.svc-row .num { color: var(--gray-2); font-size: 0.9em; }
.svc-row .arr { margin-left: auto; transition: transform 0.4s var(--ease-expo); }
.svc-row:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateX(6px); }
.svc-row:hover .num { color: rgba(16, 16, 16, 0.5); }
.svc-row:hover .arr { transform: rotate(45deg) scale(1.15); }

/* ---------- Detail meta row + checklist ---------- */
.detail-meta { display: flex; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; padding: 28px 0; }
.detail-meta div b { display: block; font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-2); margin-bottom: 6px; }
.detail-meta div span { font-family: var(--font-display); font-weight: 600; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; }
.checklist li::before { content: '✓'; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 0.8rem; font-weight: 800; display: grid; place-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
  .page-hero { padding: calc(var(--header-h) + 28px) 0 44px; }
  .page-hero .lead { margin-top: 18px; }
  .section-head { margin-bottom: 36px; }
  .eyebrow { margin-bottom: 18px; }
  .detail-meta { gap: 18px 28px; padding: 18px 0; }
  .footer-cta-inner { padding: 88px 0 100px; }
  .footer-grid { padding: 44px 24px 32px; gap: 28px; }
  .preloader { padding: 28px; }
}
