/* Debut Websites, debutwebsites.co.nz
   Built to the C i Marketing brand guide 2024 */

@font-face {
  font-family: 'Pipe';
  src: url('fonts/Pipe-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pipe';
  src: url('fonts/Pipe-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pipe';
  src: url('fonts/Pipe-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pipe';
  src: url('fonts/Pipe-XBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('fonts/NunitoSans-Variable.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #37515F;
  --secondary: #DED1C5;
  --accent: #A15D45;
  --text: #50504E;
  --text-light: #737370;
  --bg: #FAF4F0;
  --sage: #DEE1DC;
  --white: #FFFFFF;
  --tick: #2E7D4F;
  --heading-font: 'Pipe', Georgia, serif;
  --body-font: 'Nunito Sans', system-ui, sans-serif;
  --max: 1440px;
  --radius: 3px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.was {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.5;
  font-weight: 400;
  margin-right: 4px;
}
.price-big .was { font-size: 0.55em; vertical-align: 0.35em; }
.offer-note {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin: -32px 0 40px;
  max-width: 60ch;
}
.calc-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Navigation ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: 18px 0;
  border-bottom: 1px solid rgba(80,80,78,0.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── Buttons ─────────────────────────────────────── */
/* Brand guide: Capitalised and Bold */
.btn {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.12s;
  text-align: center;
  line-height: 1;
}
.btn-copper {
  background: var(--accent);
  color: var(--white);
}
.btn-copper:hover { background: #893D27; transform: translateY(-1px); }
.btn-teal {
  background: var(--primary);
  color: var(--white);
}
.btn-teal:hover { background: #253C48; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.nav-links .btn {
  color: var(--white);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  padding: 14px 32px;
  line-height: 1;
}
.nav-links .btn:hover { color: var(--white); }

/* ── Headings ────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--heading-font);
  color: var(--primary);
  letter-spacing: 0.03em;
}
h2 {
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  margin-bottom: 18px;
}
h3 {
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  margin-bottom: 10px;
}
.section-intro {
  font-size: 18px;
  line-height: 1.65;
  max-width: 960px;
  margin-bottom: 52px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

section { padding: 96px 0; }

/* ── Hero ────────────────────────────────────────── */
.hero { padding: 96px 0 80px; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.04;
  margin-bottom: 32px;
}
.hero-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 64px;
}
.hero-lead {
  font-size: 18.5px;
  line-height: 1.68;
  margin-bottom: 18px;
}
.hero-terms {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(15px, 1.7vw, 18px);
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 32px;
  line-height: 1.5;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-note {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--text-light);
}
.hero-price {
  background: var(--primary);
  color: var(--white);
  padding: 40px 36px;
  align-self: start;
}
.hero-price-label {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}
.hero-price-figure {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(64px, 7vw, 104px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 18px;
}
.hero-price-figure .was { font-size: 0.4em; vertical-align: 0.6em; opacity: 0.55; }
.hero-price-gst { font-size: 0.3em; font-weight: 400; letter-spacing: 0.05em; color: var(--secondary); }
.hero-price-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}
.hero-price .hero-ctas { margin-top: 24px; }
.hero-price .btn-outline { color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7); }
.hero-price .btn-outline:hover { background: var(--white); color: var(--primary); }

/* ── Right for you: big checklist ────────────────── */
.fit-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px 56px;
  margin-bottom: 40px;
}
.fit-list li {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--primary);
  padding-left: 44px;
  position: relative;
}
.fit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 22px;
  height: 12px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.fit-footnote { color: var(--text-light); font-size: 16px; }

/* ── Includes: tile grid ─────────────────────────── */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.tile {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tile p { font-size: 15.5px; line-height: 1.6; }
.tile-title {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.03em;
  color: var(--primary);
  line-height: 1.25;
}
.tile-head {
  background: var(--primary);
  color: var(--white);
  padding: 34px 30px;
}
.tile-head h3 { color: var(--white); font-size: 24px; margin-bottom: 6px; }
.tile-head p { color: rgba(255,255,255,0.82); }
.tile-white { background: var(--white); }
.tile-sage { background: var(--sage); }
.tile-stone { background: var(--secondary); }

/* ── Pages and people ────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr; gap: 40px 72px; }
.two-col h2 { font-size: clamp(26px, 3vw, 38px); }
.two-col p { font-size: 17px; line-height: 1.7; }

/* ── Case study: image led ───────────────────────── */
.case-study-label {
  font-family: var(--heading-font);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.case-study-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
.case-study-visual img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: top;
}
.case-study-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.stat-num {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1;
  color: var(--accent);
}
.stat-label { font-size: 15px; line-height: 1.45; margin-top: 8px; }
.case-study-copy h2 { margin-bottom: 14px; }
.case-study-intro {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  color: var(--primary);
  margin-bottom: 24px;
}
.case-study-copy p { margin-bottom: 16px; font-size: 16.5px; line-height: 1.7; }
.story-link { color: var(--primary); font-weight: 700; text-underline-offset: 4px; }
.story-link:hover { color: var(--accent); }

/* ── Demo websites ───────────────────────────────── */
.examples:has(.demo-grid:empty) { display: none; }
.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.demo-card { display: block; text-decoration: none; color: var(--text); }
.demo-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: top;
  background: var(--secondary);
  transition: transform 0.2s;
}
.demo-card:hover img { transform: translateY(-4px); }
.demo-soon {
  aspect-ratio: 2 / 1;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-soon span {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.demo-card-name {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--primary);
  margin-top: 14px;
}
.demo-card-type { font-size: 14.5px; color: var(--text-light); margin-top: 2px; }
.demo-card:hover .demo-card-name { color: var(--accent); }

/* ── Pricing ─────────────────────────────────────── */
.offer-note {
  font-family: var(--heading-font);
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin: -30px 0 40px;
}
.calc {
  background: var(--primary);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 64px;
}
.calc-controls {
  padding: 40px 34px;
  display: grid;
  gap: 36px;
  align-content: start;
}
.calc-label {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 16px;
}
.calc-hint {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  margin-top: 12px;
}
.stepper { display: inline-flex; align-items: center; background: rgba(255,255,255,0.08); }
.stepper-btn {
  width: 48px; height: 48px;
  background: none; border: none;
  color: var(--white);
  font-size: 24px; line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.stepper-btn:hover { background: rgba(255,255,255,0.12); }
.stepper-btn:disabled { color: rgba(255,255,255,0.3); cursor: default; }
.stepper-btn:disabled:hover { background: none; }
.stepper-value {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 28px;
  min-width: 56px;
  text-align: center;
  color: var(--white);
}
.toggle { display: inline-flex; background: rgba(255,255,255,0.08); padding: 4px; }
.toggle-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.75);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 22px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.toggle-btn.is-active { background: var(--white); color: var(--primary); }
.calc-summary {
  background: rgba(255,255,255,0.06);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.calc-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 15.5px;
  color: rgba(255,255,255,0.85);
}
.calc-amount {
  font-family: var(--heading-font);
  letter-spacing: 0.03em;
  color: var(--white);
  white-space: nowrap;
}
.calc-tag {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
}
.calc-total-amount { font-size: clamp(40px, 5vw, 56px); line-height: 1; color: var(--white); }
.calc-gst { font-size: 13.5px; color: rgba(255,255,255,0.6); }
.calc-summary .btn { align-self: flex-start; margin-top: 10px; }

.compare-heading { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 24px; }
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 620px;
}
.compare th, .compare td {
  text-align: left;
  padding: 16px 22px;
  font-size: 16px;
  vertical-align: top;
}
.compare thead th {
  background: var(--primary);
  color: var(--white);
  padding: 24px 22px;
  vertical-align: bottom;
}
.compare thead th:first-child { background: var(--primary); }
.compare-plan {
  display: block;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.03em;
}
.compare-price { display: block; font-size: 15px; margin-top: 6px; color: rgba(255,255,255,0.9); }
.compare-note { display: block; font-size: 13.5px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.compare tbody th { font-weight: 500; color: var(--text); width: 46%; }
.compare tbody tr:nth-child(even) { background: var(--bg); }
.tick, .dash { display: inline-flex; align-items: center; gap: 10px; }
.tick::before {
  content: '';
  width: 14px; height: 8px;
  border-left: 3px solid var(--tick);
  border-bottom: 3px solid var(--tick);
  transform: rotate(-45deg) translateY(-2px);
  flex-shrink: 0;
}
.dash { color: var(--text-light); }
.dash::before {
  content: '';
  width: 12px; height: 2px;
  background: var(--text-light);
  opacity: 0.5;
  flex-shrink: 0;
}
.compare-footnote { margin-top: 20px; font-size: 15.5px; color: var(--text-light); }

/* ── Steps: horizontal ───────────────────────────── */
.steps-row {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 32px;
}
.step-num {
  display: block;
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15.5px; line-height: 1.62; }

/* ── Who we are ──────────────────────────────────── */
.who-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 64px;
}
.who p { margin-bottom: 16px; font-size: 17px; line-height: 1.7; }
.who a { color: var(--primary); font-weight: 700; text-underline-offset: 4px; }
.who a:hover { color: var(--accent); }

/* ── FAQ ─────────────────────────────────────────── */
.faq-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 56px;
}
.faq-item { border-bottom: 1px solid rgba(80,80,78,0.12); }
.faq-question { margin: 0; }
.faq-question button {
  width: 100%;
  background: none; border: none;
  cursor: pointer;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-align: left;
  padding: 22px 52px 22px 0;
  position: relative;
  min-height: 44px;
}
.faq-question button::after {
  content: '+';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--heading-font);
  font-weight: 300;
  font-size: 28px;
  color: var(--accent);
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item.open .faq-question button::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { display: none; padding: 0 0 22px; font-size: 16.5px; line-height: 1.68; }
.faq-item.open .faq-answer { display: block; }

/* ── Final CTA ───────────────────────────────────── */
.final-cta { padding-bottom: 120px; }
.final-cta h2 { font-size: clamp(36px, 5.5vw, 72px); }
.final-cta p { max-width: 760px; margin-bottom: 12px; font-size: 18px; }
.final-cta .hero-terms { margin-bottom: 32px; }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.82);
  padding: 64px 0 32px;
  font-size: 15px;
}
.footer-grid { display: grid; gap: 36px; margin-bottom: 44px; }
.footer-brand .nav-logo { color: var(--white); font-size: 22px; }
.footer-brand .nav-logo span { color: rgba(255,255,255,0.5); }
.footer-brand p { margin-top: 14px; max-width: 52ch; line-height: 1.65; font-size: 14.5px; }
.footer-col h3 {
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,0.82); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-base a { color: rgba(255,255,255,0.5); }
.footer-base a:hover { color: rgba(255,255,255,0.8); }

/* ── Legal / 404 ─────────────────────────────────── */
.legal-page { padding: 72px 0; }
.legal-page h1 { font-weight: 700; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.12; margin-bottom: 28px; }
.legal-page h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 40px 0 12px; }
.legal-page p, .legal-page ul { max-width: 80ch; margin-bottom: 16px; font-size: 16.5px; }
.legal-page ul { padding-left: 22px; }
.legal-page a { color: var(--primary); font-weight: 700; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--accent); }
.notfound { padding: 110px 0; }
.notfound-code { font-family: var(--heading-font); font-weight: 800; font-size: clamp(100px, 18vw, 200px); line-height: 1; color: var(--accent); }
.notfound h1 { font-weight: 700; font-size: clamp(28px, 4vw, 44px); margin: 18px 0 14px; }
.notfound p { max-width: 60ch; margin-bottom: 32px; font-size: 17px; }

/* ── Tablet ──────────────────────────────────────── */
@media (min-width: 768px) {
  .container { padding: 0 40px; }
  .hero-cols { grid-template-columns: 1.25fr 1fr; align-items: start; }
  .fit-list { grid-template-columns: 1fr 1fr; }
  .tile-grid { grid-template-columns: 1fr 1fr 1fr; }
  .tile-head { grid-column: span 3; }
  .calc { grid-template-columns: 1.2fr 1fr; }
  .calc-controls, .calc-summary { padding: 48px 44px; }
  .steps-row { grid-template-columns: 1fr 1fr 1fr; }
  .who-cols { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .faq-stack { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* ── Desktop ─────────────────────────────────────── */
@media (min-width: 1024px) {
  section { padding: 112px 0; }
  .container { padding: 0 48px; }
  .fit-list { grid-template-columns: 1fr 1fr 1fr; }
  .tile-grid { grid-template-columns: repeat(5, 1fr); }
  .tile-head { grid-column: span 1; }
  .case-study-wrap { grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: start; }
  .steps-row { grid-template-columns: repeat(5, 1fr); }
  .demo-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── Mobile nav ──────────────────────────────────── */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(80,80,78,0.1);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; font-size: 17px; }
  .nav-links .btn-nav { margin-top: 12px; display: inline-block; }
  .case-study-stats { grid-template-columns: 1fr 1fr; }
}
