/* Codex Pulse site styles. Mobile first. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --green-900: #0E2A24;
  --green-800: #133A31;
  --green-line: #245246;
  --green-700: #0C4F22;
  --green-600: #0C6B2E;
  --signal: #14C926;
  --gold: #EBA21F;
  --gold-soft: #FDF4E1;
  --bg: #F4F6F2;
  --surface: #FFFFFF;
  --ink: #0F1F1A;
  --text: #1D2B26;
  --muted: #45524C;
  --subtle: #5C6863;
  --line: #D5DDD6;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C4D8D0;
  --on-dark-soft: #A9C4BA;
  --brand: #0C4F22;
  --line-soft: #E4EAE5;
  --pill-bg: #EAF2EC;
  --gold-line: #F1D69E;
  --warn-text: #8A5300;
  --req: #A33A12;
  --field-line: #93A59A;
  --tint: #EEF3EF;
  --ok: #0C6B2E;
  --warn: #B36B00;
  color-scheme: light;
  --radius: 16px;
  --container: 1248px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Dark mode: follows the device unless the visitor picks one with the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0A1612;
  --surface: #11201B;
  --ink: #EAF2EE;
  --text: #D5E2DB;
  --muted: #A8BAB1;
  --subtle: #8FA39A;
  --line: #22362E;
  --line-soft: #1B2C26;
  --green-600: #3FD75C;
  --brand: #5BE374;
  --pill-bg: #183A2C;
  --gold-soft: #2A2213;
  --gold-line: #5A4520;
  --warn-text: #F2B33C;
  --req: #FF8A65;
  --field-line: #3A5348;
  --tint: #15281F;
  --ok: #3FD75C;
  --warn: #F2B33C;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1612;
  --surface: #11201B;
  --ink: #EAF2EE;
  --text: #D5E2DB;
  --muted: #A8BAB1;
  --subtle: #8FA39A;
  --line: #22362E;
  --line-soft: #1B2C26;
  --green-600: #3FD75C;
  --brand: #5BE374;
  --pill-bg: #183A2C;
  --gold-soft: #2A2213;
  --gold-line: #5A4520;
  --warn-text: #F2B33C;
  --req: #FF8A65;
  --field-line: #3A5348;
  --tint: #15281F;
  --ok: #3FD75C;
  --warn: #F2B33C;
  color-scheme: dark;
}
.ic-ok { color: var(--ok); }
.ic-warn { color: var(--warn); }

/* Theme toggle */
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.theme-toggle:hover { border-color: var(--green-600); }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
@media (min-width: 960px) { .header-actions { order: 3; } .theme-toggle { width: 44px; height: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); }
a:hover { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: #0F1F1A; padding: 12px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-name { display: block; font-size: 18px; font-weight: 800; line-height: 1; color: var(--brand); letter-spacing: 0.01em; }
.brand-tag { display: block; margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--subtle); }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(14, 42, 36, 0.08); display: none; }
.site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; padding: 8px 20px 20px; }
.site-nav a { display: block; padding: 14px 4px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.site-nav a[aria-current="page"] { color: var(--brand); }
.site-nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }

@media (min-width: 960px) {
  .header-inner { min-height: 88px; }
  .brand img { width: 48px; height: 48px; }
  .brand-name { font-size: 20px; }
  .brand-tag { font-size: 11px; }
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; border: 0; box-shadow: none; background: transparent; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 32px; padding: 0; }
  .site-nav a { padding: 8px 0; border-bottom: 3px solid transparent; font-size: 15px; }
  .site-nav a:hover { color: var(--brand); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--signal); }
  .site-nav .nav-cta { margin-top: 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; text-align: center; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-gold { background: var(--gold); color: #0F1F1A; }
.btn-gold:hover { background: #F2B33C; color: #0F1F1A; }
.btn-green { background: var(--green-700); color: #FFFFFF; }
.btn-green:hover { background: var(--green-900); color: #FFFFFF; }
.btn-outline-light { border-color: #5E8C7D; color: #FFFFFF; }
.btn-outline-light:hover { border-color: #FFFFFF; color: #FFFFFF; }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--green-700); color: #FFFFFF; }
.site-nav a.btn { display: flex; min-height: 48px; padding: 0 22px; color: #FFFFFF; border-bottom: 0; }
@media (min-width: 960px) { .site-nav a.btn { display: inline-flex; min-height: 46px; } }
.site-nav .btn[aria-current="page"] { box-shadow: 0 0 0 3px var(--signal); border-bottom: 0; color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-weight: 700; color: var(--green-600); }

/* ---------- Sections ---------- */
.section { padding: 72px 0 0; }
.section-last { padding-bottom: 88px; }
@media (min-width: 960px) { .section { padding-top: 104px; } .section-last { padding-bottom: 112px; } }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-600); }
.dark .eyebrow { color: var(--signal); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(32px, 5vw, 50px); }
.section-head p { font-size: 17px; color: var(--muted); }
.section-head-row { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.section-head-row .section-head { margin-bottom: 0; }
@media (min-width: 960px) { .section-head-row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; } }

.dark { background: var(--green-900); color: var(--on-dark); }
.dark .muted, .dark p { color: var(--on-dark-muted); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; }
.hero-kicker svg { width: 48px; height: 18px; flex-shrink: 0; }
.hero h1 { font-size: clamp(38px, 6.2vw, 66px); line-height: 1.06; letter-spacing: -0.025em; }
.hero h1 .accent { color: var(--signal); }
.hero-lead { font-size: 18px; max-width: 640px; }
@media (min-width: 960px) {
  .hero { padding: 96px 0 104px; }
  .hero-grid { grid-template-columns: 7fr 4fr; gap: 64px; }
}
.page-hero { padding: 64px 0; }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 60px); max-width: 1000px; }
.page-hero .hero-lead { max-width: 820px; }
@media (min-width: 960px) { .page-hero { padding: 88px 0 80px; } }

.timeline-card { background: var(--green-800); border: 1px solid var(--green-line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.timeline-card h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #9FC2B5; }
.timeline-card ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.timeline-card li { display: flex; gap: 16px; }
.timeline-time { width: 56px; flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--signal); padding-top: 1px; }
.timeline-card strong { display: block; font-size: 16px; color: #FFFFFF; }
.timeline-card span.desc { display: block; font-size: 14px; color: var(--on-dark-soft); line-height: 1.5; }

/* ---------- Proof strip ---------- */
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding: 36px 0 32px; border-bottom: 1px solid var(--line); }
.proof-num { font-size: clamp(34px, 5vw, 48px); font-weight: 800; line-height: 1; color: var(--brand); letter-spacing: -0.02em; }
.proof-label { margin-top: 8px; font-size: 14px; color: var(--muted); }
.footnote { padding-top: 14px; font-size: 13px; color: var(--subtle); }
@media (min-width: 960px) { .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 0 36px; } .proof-label { font-size: 15px; } }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
.card p { font-size: 15px; color: var(--muted); }
.card-num { font-size: 15px; font-weight: 800; color: var(--green-600); }
a.card { text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--green-600); transform: translateY(-2px); color: var(--ink); }
.card-dark { background: var(--green-800); border-color: var(--green-line); }
.card-dark h3 { color: #FFFFFF; font-size: 20px; }
.card-dark p { color: var(--on-dark-soft); }
.bar { width: 36px; height: 4px; border-radius: 2px; background: var(--signal); }

.works-with { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; font-size: 14px; font-weight: 600; color: #7FA395; }
.works-with span:first-child { color: #DCE9E3; }

.dark-band { padding: 72px 0; margin-top: 72px; }
@media (min-width: 960px) { .dark-band { padding: 104px 0; margin-top: 112px; } }

/* ---------- Sample review ---------- */
.split { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 6fr; gap: 64px; } }
.split-copy { display: flex; flex-direction: column; gap: 18px; }
.split-copy h2 { font-size: clamp(30px, 4.5vw, 46px); }
.split-copy p { font-size: 17px; color: var(--muted); }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 640px) { .review-card { padding: 36px; } }
.review-card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.review-card-head img { width: 40px; height: 40px; }
.review-card-title { display: flex; align-items: center; gap: 14px; }
.review-card-title strong { display: block; font-size: 18px; }
.review-card-title span { display: block; font-size: 14px; color: var(--subtle); }
.pill { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: var(--pill-bg); color: var(--brand); white-space: nowrap; }
.check-row { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.55; }
.check-row svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.fix-first { padding: 20px 22px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.fix-first .label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warn-text); margin-bottom: 6px; }

/* ---------- Process ---------- */
.step { border-top: 3px solid var(--brand); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-size: 38px; font-weight: 800; line-height: 1; color: var(--green-600); }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.stars { display: flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; fill: var(--gold); }
.quote-card { gap: 18px; }
.quote-card blockquote { margin: 0; font-size: 16px; line-height: 1.65; flex-grow: 1; color: var(--ink); }
.quote-meta { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.quote-meta strong { display: block; font-size: 15px; }
.quote-meta span { display: block; font-size: 13px; color: var(--subtle); }

/* ---------- Founder ---------- */
.founder { display: grid; gap: 36px; align-items: center; }
.founder img { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 20px; border: 6px solid var(--green-900); }
.founder-copy { display: flex; flex-direction: column; gap: 18px; }
.founder-copy h2 { font-size: clamp(30px, 4.5vw, 44px); }
.founder-copy p { font-size: 17px; color: var(--muted); }
@media (min-width: 960px) { .founder { grid-template-columns: 4fr 7fr; gap: 64px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-700); color: #FFFFFF; border-radius: 24px; padding: 40px 28px; display: flex; flex-direction: column; gap: 24px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; }
.cta-band p { color: #CFE3D8; font-size: 17px; margin-top: 10px; }
@media (min-width: 960px) { .cta-band { flex-direction: row; justify-content: space-between; align-items: center; padding: 64px 72px; gap: 48px; } .cta-band .btn { flex-shrink: 0; } }

/* ---------- Industries ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #3C6A5D; color: #FFFFFF; text-decoration: none; font-size: 15px; font-weight: 600; }
.chip:hover { border-color: #FFFFFF; color: #FFFFFF; }
.chip-light { border-color: var(--line); background: var(--surface); color: var(--ink); }
.industry { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 28px; scroll-margin-top: 110px; }
@media (min-width: 640px) { .industry { padding: 40px; } }
@media (min-width: 1024px) { .industry { grid-template-columns: 4fr 4fr 4fr; gap: 40px; padding: 48px; } }
.industry h2 { font-size: clamp(26px, 3.5vw, 32px); letter-spacing: -0.015em; margin: 10px 0 12px; }
.industry .intro p { color: var(--muted); }
.industry .tools { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--subtle); }
.list-title { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.list-title.problem { color: var(--warn-text); }
.list-title.fix { color: var(--green-600); }
.dot-list li, .tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.dot-list li + li, .tick-list li + li { margin-top: 12px; }
.dot-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex-shrink: 0; }
.tick-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.stack { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Services ---------- */
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 24px; }
@media (min-width: 640px) { .service { padding: 40px; } }
@media (min-width: 1024px) { .service { grid-template-columns: 5fr 7fr; gap: 48px; padding: 44px 48px; } }
.service h2 { font-size: clamp(24px, 3vw, 28px); line-height: 1.2; letter-spacing: -0.01em; margin: 14px 0 12px; }
.service .fit { font-size: 15px; color: var(--muted); }
.service .fit strong { color: var(--ink); }
.service .tick-list { display: grid; gap: 12px 32px; align-content: start; }
.service .tick-list li + li { margin-top: 0; }
@media (min-width: 640px) { .service .tick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.built-on { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--subtle); line-height: 1.7; }

.faq { display: grid; gap: 28px; }
@media (min-width: 1024px) { .faq { grid-template-columns: 4fr 7fr; gap: 64px; } }
.faq h2 { font-size: clamp(30px, 4vw, 44px); }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--green-600); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* ---------- About ---------- */
.about-hero { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .about-hero { grid-template-columns: 7fr 4fr; gap: 64px; } }
.about-hero img { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 20px; border: 6px solid var(--signal); }
.about-hero .btn-signal { background: var(--signal); color: #0F1F1A; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 6fr; gap: 56px; } }
.contact-copy { display: flex; flex-direction: column; gap: 22px; }
.contact-copy h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.contact-copy .lead { font-size: 18px; color: var(--muted); }
.next-steps { display: flex; flex-direction: column; gap: 18px; }
.next-steps li { display: flex; gap: 16px; align-items: flex-start; }
.next-steps .num { width: 36px; height: 36px; border-radius: 50%; background: var(--green-700); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.next-steps strong { display: block; font-size: 17px; }
.next-steps span { display: block; font-size: 15px; color: var(--muted); }
.mini-quote { background: var(--green-900); color: #FFFFFF; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.mini-quote blockquote { margin: 0; font-size: 16px; }
.mini-quote span { font-size: 13px; color: var(--on-dark-soft); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.box strong { display: block; margin-bottom: 6px; }
.box p { font-size: 15px; color: var(--muted); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 640px) { .form-card { padding: 44px; } }
.form-card h2 { font-size: 22px; letter-spacing: -0.01em; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field .req { color: var(--req); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); }
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--green-600); }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--tint); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green-700); }
.consent label { font-size: 14px; line-height: 1.6; color: var(--text); }
.form-note { font-size: 13px; color: var(--subtle); }
.hidden-field { display: none; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--subtle); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal .callout { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-top: 16px; }

.center-page { text-align: center; padding: 96px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.center-page h1 { font-size: clamp(34px, 5vw, 52px); }
.center-page p { font-size: 18px; color: var(--muted); max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: var(--on-dark-soft); padding: 56px 0 32px; margin-top: 88px; }
@media (min-width: 960px) { .site-footer { margin-top: 112px; padding-top: 64px; } }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 40px; } }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand-name { color: #FFFFFF; }
.footer-brand .brand-tag { color: #9FC2B5; }
.footer-brand p { font-size: 15px; max-width: 360px; }
.footer-col h2 { font-size: 15px; font-weight: 700; color: #FFFFFF; letter-spacing: 0; margin-bottom: 12px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--on-dark-soft); font-size: 15px; }
.footer-col a:hover { color: #FFFFFF; }
.footer-col p { font-size: 15px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--green-line); font-size: 14px; }

.mt-24 { margin-top: 24px; }
.mt-36 { margin-top: 36px; }

@media (min-width: 960px) { .site-nav { margin-left: auto; } }

/* ---------- Work / portfolio ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.filter-btn:hover { border-color: var(--green-600); }
.filter-btn[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #FFFFFF; }
.work-card { padding: 0; overflow: hidden; gap: 0; }
.work-card[hidden] { display: none; }
.work-shot { aspect-ratio: 16 / 10; background: var(--green-900); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-shot .shot-label { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--on-dark-soft); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 20px; }
.work-shot .shot-label svg { width: 40px; height: 40px; color: var(--signal); }
.work-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.work-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-600); }
.work-result { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; color: var(--ink); }
.work-tools { font-size: 13px; font-weight: 600; color: var(--subtle); }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 24px; }
@media (min-width: 640px) { .case { padding: 40px; } }
@media (min-width: 1024px) { .case { grid-template-columns: 5fr 7fr; gap: 48px; padding: 44px 48px; } }
.case h3 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; margin: 10px 0 12px; }
.case p { color: var(--muted); }
.case-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.case-stat { background: var(--tint); border-radius: 12px; padding: 16px; }
.case-stat strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--brand); }
.case-stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.case-steps h4 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-600); }
.case-steps h4 + .tick-list { margin-bottom: 22px; }
.cert-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cert { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink); }
.cert svg { width: 20px; height: 20px; color: var(--green-600); flex-shrink: 0; }

/* Small phones: keep the logo on one line next to the theme and menu buttons. */
.brand-name, .brand-tag { white-space: nowrap; }
@media (max-width: 479px) {
  .site-header .brand-tag { display: none; }
  .site-header .brand img { width: 40px; height: 40px; }
  .nav-toggle { padding: 0 12px; }
  .nav-toggle span { display: none; }
  .header-actions { gap: 8px; }
}
.case-shot { display: block; margin-bottom: 24px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; }
.case-shot img { width: 100%; height: auto; }
.case-shot span { display: block; padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--green-600); background: var(--tint); }
a.work-shot { text-decoration: none; }

/* Homepage portfolio cards and centred button */
a.work-card { text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
a.work-card:hover { border-color: var(--green-600); transform: translateY(-2px); color: var(--ink); }
.center-cta { display: flex; justify-content: center; margin-top: 32px; }
#case-studies, #more-work { scroll-margin-top: 100px; }

/* Rejected -> Fixed -> Approved visual */
.case-flow { display: flex; align-items: stretch; gap: 8px; margin-bottom: 24px; }
.flow-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--tint); }
.flow-step strong { font-size: 16px; }
.flow-step span:last-child { font-size: 12px; color: var(--muted); line-height: 1.4; }
.flow-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #FFFFFF; }
.flow-step.bad .flow-dot { background: #C2410C; }
.flow-step.mid .flow-dot { background: #B36B00; }
.flow-step.good .flow-dot { background: #0C6B2E; }
.flow-step.good { border-color: var(--green-600); }
.flow-arrow { width: 14px; align-self: center; height: 2px; background: var(--subtle); position: relative; flex-shrink: 0; }
.flow-arrow::after { content: ''; position: absolute; right: -2px; top: -4px; border-left: 6px solid var(--subtle); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
