/* ==========================================================================
   Architext Design — Core Stylesheet
   A modern, editorial-grade design system in teal / white / black.
   ========================================================================== */

:root {
  /* --- Brand palette --- */
  --teal-950: #04211f;
  --teal-900: #063330;
  --teal-800: #0a4a45;
  --teal-700: #0f635c;
  --teal-600: #147a71;
  --teal-500: #1a9c8f;
  --teal-400: #2ec4b6;
  --teal-300: #6fe0d3;
  --teal-200: #b3f2ea;
  --teal-100: #e2faf6;

  --ink-900: #0b0d0d;
  --ink-800: #14181a;
  --ink-700: #23282b;
  --ink-500: #565f63;
  --ink-300: #9aa4a8;

  --white: #ffffff;
  --off-white: #f6f9f8;
  --line: #e2e8e7;
  --line-dark: #1e2626;

  /* --- Semantic tokens --- */
  --bg: var(--white);
  --bg-alt: var(--off-white);
  --bg-inverse: var(--ink-900);
  --text: var(--ink-900);
  --text-soft: var(--ink-500);
  --text-inverse: var(--white);
  --accent: var(--teal-500);
  --accent-strong: var(--teal-700);
  --accent-soft: var(--teal-100);

  /* --- Type --- */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Layout --- */
  --max-w: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(11, 13, 13, 0.06);
  --shadow-md: 0 12px 40px rgba(6, 51, 48, 0.12);
  --shadow-lg: 0 24px 70px rgba(6, 51, 48, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-soft); max-width: 62ch; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--accent);
  color: var(--ink-900);
}
.btn-accent:hover { background: var(--teal-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(11,13,13,0.18);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent-strong); color: var(--accent-strong); transform: translateY(-2px); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline-light:hover { border-color: var(--teal-300); color: var(--teal-300); }
.btn-sm { padding: 11px 22px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--ink-900);
}
.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-800));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(20, 122, 113, 0.35);
}
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--accent-strong); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--accent-strong); }
.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink-900);
  position: relative;
  transition: 0.3s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; width: 18px; }
.nav-toggle span::after { position: absolute; top: 6px; width: 18px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--white);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.34;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,20,19,0.75) 0%, rgba(6,20,19,0.92) 60%, var(--ink-900) 100%);
}
.hero-glow {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,196,182,0.35), transparent 70%);
  top: -220px; right: -160px;
  filter: blur(10px);
}
.hero-inner {
  position: relative;
  padding: 150px 0 110px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero .eyebrow { color: var(--teal-300); }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--teal-300); font-style: italic; }
.hero .lede { color: rgba(255,255,255,0.72); }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stats .stat-num { font-family: var(--font-display); font-size: 1.9rem; color: var(--teal-300); }
.hero-stats .stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4,33,31,0.55), transparent 45%);
}
.hero-card {
  position: absolute;
  bottom: 22px; left: 22px; right: 22px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  box-shadow: var(--shadow-md);
}
.hero-card .dot {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-900); font-weight: 800;
}
.hero-card strong { color: var(--ink-900); display: block; font-size: 0.95rem; }
.hero-card span { color: var(--text-soft); font-size: 0.82rem; }

/* ==========================================================================
   Sections / generic blocks
   ========================================================================== */
section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink-900); color: var(--white); }
.section-dark .text-soft { color: rgba(255,255,255,0.62); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-dark .eyebrow { color: var(--teal-300); }
.section-dark h2 { color: var(--white); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-soft); margin-bottom: 0; font-size: 0.96rem; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.card-dark {
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  color: var(--white);
}
.card-dark p { color: rgba(255,255,255,0.65); }

/* Numbered process steps */
.step {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--teal-300);
  -webkit-text-stroke: 1.4px var(--accent-strong);
  color: transparent;
  flex-shrink: 0;
  width: 60px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-soft); margin: 0; }

/* Portfolio grid */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-sm);
}
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.work-item:hover img { transform: scale(1.07); }
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4,33,31,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: var(--white);
}
.work-overlay .tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(46,196,182,0.85);
  color: var(--ink-900);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.work-overlay h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 4px; }
.work-overlay span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.work-item.wide { grid-column: span 2; }

.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-chip {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--white);
  transition: all 0.25s ease;
}
.filter-chip:hover, .filter-chip.active { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }

/* Logos strip */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; }
.marquee { display: flex; gap: 64px; align-items: center; white-space: nowrap; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink-300); font-weight: 600; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--teal-800), var(--teal-950));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 70px clamp(28px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(46,196,182,0.4), transparent 70%);
  top: -140px; right: -60px;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.7); margin: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Values / feature rows with alternating image */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5/4; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { margin-top: 24px; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.feature-list .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; flex-shrink: 0; margin-top: 2px;
}

/* Pricing */
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  position: relative;
}
.price-card.featured {
  background: var(--ink-900);
  color: var(--white);
  border-color: var(--ink-900);
  box-shadow: var(--shadow-lg);
  transform: translateY(-14px);
}
.price-card.featured .price-desc { color: rgba(255,255,255,0.62); }
.price-card .badge {
  position: absolute; top: -14px; right: 30px;
  background: var(--accent); color: var(--ink-900);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 14px; border-radius: 999px;
}
.price-amount { font-family: var(--font-display); font-size: 2.6rem; margin: 14px 0 4px; }
.price-amount span { font-size: 0.95rem; font-weight: 400; color: var(--text-soft); }
.price-card.featured .price-amount span { color: rgba(255,255,255,0.55); }
.price-desc { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 26px; }
.price-list { display: grid; gap: 13px; margin: 26px 0 30px; }
.price-list li { display: flex; gap: 10px; font-size: 0.92rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 26px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 600; font-size: 1.05rem; cursor: pointer; }
.faq-q .plus { font-size: 1.4rem; color: var(--accent-strong); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-a { color: var(--text-soft); margin-top: 14px; padding-right: 40px; }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-700); }
.field input, .field select, .field textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .hint { font-size: 0.78rem; color: var(--text-soft); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 24px; font-size: 0.85rem; color: var(--text-soft); }
.consent-row input { margin-top: 3px; }
.form-status { display: none; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-top: 16px; }
.form-status.success { display: block; background: var(--accent-soft); color: var(--accent-strong); }

/* Contact info cards */
.contact-info-grid { display: grid; gap: 18px; }
.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}
.info-card .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
}
.info-card strong { display: block; margin-bottom: 3px; font-size: 0.95rem; }
.info-card span, .info-card a { color: var(--text-soft); font-size: 0.9rem; }
.info-card a:hover { color: var(--accent-strong); }

/* Map */
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); margin-top: 22px; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* Legal pages */
.legal-content h2 { margin-top: 2.2em; font-size: 1.4rem; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal-content p, .legal-content li { color: var(--text-soft); }
.legal-content ul { margin: 1em 0; padding-left: 1.4em; list-style: disc; }
.legal-content ul li { margin-bottom: 0.5em; }
.legal-content a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 40px; }
.legal-shell { max-width: 780px; margin: 0 auto; }
.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px 30px; margin-bottom: 48px; }
.toc strong { display: block; margin-bottom: 12px; }
.toc a { display: block; color: var(--text-soft); font-size: 0.9rem; padding: 5px 0; }
.toc a:hover { color: var(--accent-strong); }

/* Breadcrumb */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--text-soft); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--accent-strong); }

/* Team */
.team-card { text-align: left; }
.team-photo { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; margin-bottom: 18px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card strong { display: block; font-size: 1.02rem; }
.team-card .role { color: var(--accent-strong); font-size: 0.85rem; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,0.72); padding: 80px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.62); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--teal-300); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.footer-social a:hover { border-color: var(--teal-300); color: var(--teal-300); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0; font-size: 0.82rem; color: rgba(255,255,255,0.45);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--teal-300); }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  background: var(--ink-900);
  color: var(--white);
  padding: 150px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-glow { top: -260px; left: -160px; }
.page-hero .eyebrow { color: var(--teal-300); }
.page-hero h1 { color: var(--white); max-width: 16ch; }
.page-hero .lede { color: rgba(255,255,255,0.68); max-width: 60ch; }

/* 404 */
.error-shell { text-align: center; padding: 170px 0 140px; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); color: var(--accent-soft); -webkit-text-stroke: 2px var(--teal-400); color: transparent; line-height: 1; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Mobile nav open state */
body.nav-open .main-nav {
  display: flex;
}
@media (max-width: 720px) {
  body.nav-open .main-nav {
    position: fixed;
    inset: 74px 0 0 0;
    background: var(--white);
    flex-direction: column;
    padding: 30px clamp(20px, 5vw, 48px) 40px;
    z-index: 99;
    align-items: flex-start;
    overflow-y: auto;
  }
  body.nav-open .main-nav ul { display: flex; flex-direction: column; gap: 4px; width: 100%; }
  body.nav-open .main-nav ul a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  body.nav-open .main-nav .btn-outline { display: inline-flex; margin-top: 20px; }
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.two-col-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-visual { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-item.wide { grid-column: span 1; }
}
@media (max-width: 720px) {
  .main-nav ul, .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 70px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 44px 26px; }
  .price-card.featured { transform: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .work-grid { grid-template-columns: 1fr; }
  .step .num { width: 44px; }
}
