/* ============================================================
   NEALPHAST — base + 3 switchable visual directions
   Themes: verdant (warm editorial) · forest (bold green-tech) · sage (soft organic)
   ============================================================ */

/* ---------- Theme tokens ---------- */
:root,
[data-theme="verdant"] {
  --bg: oklch(0.972 0.008 95);
  --bg-2: oklch(0.948 0.012 92);
  --bg-3: oklch(0.928 0.014 90);
  --ink: oklch(0.23 0.012 70);
  --ink-soft: oklch(0.46 0.012 70);
  --line: oklch(0.885 0.01 90);
  --accent: oklch(0.55 0.085 178);
  --accent-strong: oklch(0.46 0.08 180);
  --accent-soft: oklch(0.93 0.03 178);
  --on-accent: oklch(0.985 0.008 95);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px oklch(0.23 0.012 70 / 0.04), 0 8px 30px oklch(0.23 0.012 70 / 0.06);
  --shadow-lg: 0 2px 6px oklch(0.23 0.012 70 / 0.06), 0 24px 60px oklch(0.23 0.012 70 / 0.10);
  --hero-mesh: radial-gradient(60% 80% at 80% 10%, oklch(0.55 0.085 178 / 0.10), transparent 60%),
               radial-gradient(50% 60% at 10% 90%, oklch(0.55 0.085 178 / 0.07), transparent 60%);
  --grain: 0.5;
}

[data-theme="forest"] {
  --bg: oklch(0.188 0.028 168);
  --bg-2: oklch(0.232 0.03 168);
  --bg-3: oklch(0.27 0.032 168);
  --ink: oklch(0.955 0.015 150);
  --ink-soft: oklch(0.78 0.022 150);
  --line: oklch(0.33 0.03 165);
  --accent: oklch(0.80 0.145 152);
  --accent-strong: oklch(0.86 0.15 152);
  --accent-soft: oklch(0.30 0.05 165);
  --on-accent: oklch(0.18 0.03 165);
  --serif: "Spectral", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 10px 34px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 2px 8px oklch(0 0 0 / 0.35), 0 28px 70px oklch(0 0 0 / 0.5);
  --hero-mesh: radial-gradient(55% 75% at 82% 6%, oklch(0.80 0.145 152 / 0.16), transparent 60%),
               radial-gradient(50% 60% at 6% 92%, oklch(0.80 0.145 152 / 0.10), transparent 60%);
  --grain: 0.6;
}

[data-theme="sage"] {
  --bg: oklch(0.965 0.016 150);
  --bg-2: oklch(0.94 0.022 150);
  --bg-3: oklch(0.915 0.026 150);
  --ink: oklch(0.27 0.02 160);
  --ink-soft: oklch(0.47 0.02 160);
  --line: oklch(0.875 0.018 150);
  --accent: oklch(0.60 0.085 165);
  --accent-strong: oklch(0.48 0.08 165);
  --accent-soft: oklch(0.92 0.035 160);
  --on-accent: oklch(0.985 0.008 150);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow: 0 2px 4px oklch(0.27 0.02 160 / 0.05), 0 12px 36px oklch(0.27 0.02 160 / 0.08);
  --shadow-lg: 0 4px 10px oklch(0.27 0.02 160 / 0.07), 0 30px 70px oklch(0.27 0.02 160 / 0.12);
  --hero-mesh: radial-gradient(60% 80% at 78% 8%, oklch(0.60 0.085 165 / 0.13), transparent 62%),
               radial-gradient(55% 65% at 8% 92%, oklch(0.60 0.085 165 / 0.09), transparent 62%);
  --grain: 0.5;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 18px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Layout primitives ---------- */
.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(820px, 92vw); margin-inline: auto; }
section { position: relative; }
.pad { padding-block: clamp(72px, 11vw, 150px); }
.pad-sm { padding-block: clamp(48px, 7vw, 90px); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.display { font-size: clamp(2.6rem, 6.4vw, 5.1rem); font-weight: 500; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
.lede { font-size: clamp(1.12rem, 1.7vw, 1.4rem); color: var(--ink-soft); line-height: 1.5; }
.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-strong);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); display: inline-block; }
.text-soft { color: var(--ink-soft); }
em.mark { font-style: italic; color: var(--accent-strong); }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 0.85em 1.5em; border-radius: var(--radius-pill);
  transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), background-color 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--accent); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.btn .arr { transition: transform 0.25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color 0.4s, border-color 0.4s, padding 0.4s, backdrop-filter 0.4s;
  padding-block: 22px; border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--sans); font-size: 0.96rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0; background: var(--accent); transition: width 0.25s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(60px, 8vw, 110px); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-mesh); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 5vw, 80px); align-items: center; position: relative; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 0.6em; padding: 0.5em 0.95em;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: 0.84rem; font-weight: 500; color: var(--ink-soft); background: color-mix(in oklab, var(--bg-2) 60%, transparent);
}
.hero .pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.hero .pill .live::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:1px solid var(--accent); animation: ping 2s ease-out infinite; }
@keyframes ping { 0%{transform:scale(0.6);opacity:0.9} 100%{transform:scale(1.8);opacity:0} }
.hero h1 { margin-top: 22px; }
.hero .lede { margin-top: 24px; max-width: 34ch; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 40px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero-meta .m-label { font-size: 0.82rem; color: var(--ink-soft); }
.hero-meta .m-val { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); display: block; }

/* hero visual: stacked agent cards */
.hero-visual { position: relative; min-height: 420px; }
.agent-card {
  position: absolute; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-lg);
  width: 270px;
}
.agent-card .ac-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.agent-card .ac-avatar { width: 34px; height: 34px; border-radius: var(--radius); background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-strong); font-weight: 700; font-family: var(--sans); }
.agent-card .ac-name { font-weight: 600; font-size: 0.92rem; font-family: var(--sans); }
.agent-card .ac-status { font-size: 0.72rem; color: var(--accent-strong); display:flex; align-items:center; gap:5px; }
.agent-card .ac-status .d { width:6px;height:6px;border-radius:50%;background:var(--accent); }
.ac-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-soft); font-family: var(--sans); }
.ac-row .tick { width: 16px; height: 16px; border-radius: 5px; background: var(--accent); color: var(--on-accent); display:grid; place-items:center; font-size: 0.6rem; flex-shrink: 0; }
.agent-card.a1 { top: 6%; left: 4%; z-index: 3; animation: floaty 7s ease-in-out infinite; }
.agent-card.a2 { top: 40%; right: 0; z-index: 2; width: 250px; animation: floaty 8s ease-in-out infinite 0.6s; }
.agent-card.a3 { bottom: 0; left: 16%; z-index: 1; width: 240px; opacity: 0.96; animation: floaty 9s ease-in-out infinite 1.2s; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@media (prefers-reduced-motion: reduce) { .agent-card { animation: none !important; } .hero .pill .live::after { animation: none; } }

/* ---------- Logo strip ---------- */
.strip { border-block: 1px solid var(--line); padding-block: 26px; }
.strip-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.strip .label { font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; }
.strip .logos { display: flex; gap: clamp(20px, 4vw, 52px); flex-wrap: wrap; align-items: center; }
.strip .logos span { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-soft); opacity: 0.7; font-weight: 500; }

/* ---------- Section header ---------- */
.sec-head { max-width: 760px; }
.sec-head h2 { margin-top: 16px; }
.sec-head p { margin-top: 18px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 56px; }
.svc-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.4s, border-color 0.4s;
  position: relative; overflow: hidden;
}
.svc-card::after { content:""; position:absolute; left:0; top:0; height:3px; width:0; background:var(--accent); transition: width 0.4s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.svc-card:hover::after { width: 100%; }
.svc-num { font-family: var(--serif); font-size: 0.95rem; color: var(--accent-strong); }
.svc-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-strong); margin-bottom: 22px; }
.svc-icon svg { width: 24px; height: 24px; }
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { font-size: 0.98rem; color: var(--ink-soft); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.svc-tags span { font-size: 0.76rem; font-family: var(--sans); color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.3em 0.8em; }

/* ---------- How it works ---------- */
.how { background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 1rem; color: var(--accent-strong);
  position: absolute; top: 0; left: 0;
}
.step .bar { height: 2px; background: var(--line); margin-bottom: 22px; position: relative; overflow: hidden; }
.step .bar::after { content:""; position:absolute; inset:0 100% 0 0; background: var(--accent); transition: inset 0.9s ease; }
.step.in .bar::after { inset: 0 0 0 0; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- Why us / stats ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.why-list { display: flex; flex-direction: column; gap: 6px; margin-top: 30px; }
.why-item { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; cursor: default; transition: padding-left 0.3s; }
.why-item:hover { padding-left: 8px; }
.why-item .wi-ic { width: 40px; height: 40px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; flex-shrink: 0; }
.why-item .wi-ic svg { width: 20px; height: 20px; }
.why-item h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.why-item p { font-size: 0.94rem; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 100px; }
.stat { background: var(--bg); padding: 34px; }
.stat .s-num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--ink); }
.stat .s-num .suf { color: var(--accent-strong); }
.stat .s-label { font-size: 0.9rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Use cases ---------- */
.uc-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 44px; }
.uc-tab { padding: 0.6em 1.2em; border-radius: var(--radius-pill); border: 1px solid var(--line); font-family: var(--sans); font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: all 0.25s; }
.uc-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.uc-panel { margin-top: 36px; display: none; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 64px); align-items: center; }
.uc-panel.active { display: grid; animation: fadeUp 0.5s ease; }
.uc-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: 16px; }
.uc-panel p { color: var(--ink-soft); margin-bottom: 22px; }
.uc-points { display: flex; flex-direction: column; gap: 12px; }
.uc-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.uc-points .ck { color: var(--accent-strong); flex-shrink: 0; margin-top: 3px; }

/* ---------- Media images ---------- */
.media { position: relative; overflow: hidden; background: var(--bg-2); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-feature .csf-media { border-radius: var(--radius-lg); overflow: hidden; }

/* ---------- Image placeholder ---------- */
.ph {
  border-radius: var(--radius-lg); border: 1px solid var(--line); position: relative; overflow: hidden;
  background-color: var(--bg-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in oklab, var(--accent) 12%, transparent) 11px 12px);
  min-height: 320px; display: grid; place-items: center;
}
.ph .ph-tag { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.78rem; color: var(--ink-soft); background: var(--bg); padding: 0.4em 0.8em; border-radius: var(--radius-pill); border: 1px solid var(--line); }

/* ---------- Case studies ---------- */
.cases { background: var(--bg-2); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.case-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.4s, box-shadow 0.4s; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card .c-img { min-height: 170px; }
.case-card .c-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.case-card .c-sector { font-size: 0.78rem; color: var(--accent-strong); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.case-card h3 { font-size: 1.25rem; margin: 10px 0 12px; }
.case-card p { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.case-stat { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 22px; }
.case-stat .cs-num { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); }
.case-stat .cs-num .suf { color: var(--accent-strong); }
.case-stat .cs-label { font-size: 0.74rem; color: var(--ink-soft); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.tm { }
.tm .tm-photo { aspect-ratio: 4/5; border-radius: var(--radius-lg); margin-bottom: 16px; }
.tm h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.tm .tm-role { font-size: 0.88rem; color: var(--accent-strong); margin-top: 2px; }
.tm .tm-bio { font-size: 0.86rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Insights / blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.post { display: flex; flex-direction: column; gap: 0; border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.35s; }
.post:hover { transform: translateY(-5px); }
.post .p-img { min-height: 200px; margin-bottom: 20px; }
.post .p-meta { display: flex; gap: 12px; font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 10px; }
.post .p-meta .cat { color: var(--accent-strong); font-weight: 600; }
.post h3 { font-size: 1.3rem; line-height: 1.18; transition: color 0.2s; }
.post:hover h3 { color: var(--accent-strong); }
.post .p-read { margin-top: 14px; font-size: 0.88rem; font-weight: 600; color: var(--accent-strong); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 84px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--bg); }
.cta-band p { color: color-mix(in oklab, var(--bg) 72%, var(--ink)); max-width: 48ch; margin: 18px auto 0; }
.cta-band .btn-primary { margin-top: 32px; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 120% at 50% 0%, var(--accent), transparent 55%); opacity: 0.22; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.contact-info h2 { margin: 16px 0 20px; }
.contact-mail { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.9rem); color: var(--accent-strong); margin-top: 10px; transition: gap 0.25s; }
.contact-mail:hover { gap: 18px; }
.contact-detail { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.contact-detail .cd { display: flex; gap: 14px; align-items: flex-start; }
.contact-detail .cd .ic { color: var(--accent-strong); flex-shrink: 0; }
.contact-detail .cd .t { font-size: 0.94rem; }
.contact-detail .cd .t b { display:block; font-family: var(--sans); }
.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 0.96rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0.75em 0.9em; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 44px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-family: var(--serif); font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink); }
.faq-q .pm { width: 26px; height: 26px; flex-shrink: 0; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content:""; position:absolute; background: var(--accent-strong); transition: transform 0.3s; }
.faq-q .pm::before { left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); }
.faq-q .pm::after { top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); }
.faq-item.open .pm::after { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a-inner { padding-bottom: 26px; color: var(--ink-soft); max-width: 70ch; font-size: 0.98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(54px, 7vw, 90px) 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .brand { font-size: 1.5rem; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; color: var(--ink-soft); max-width: 32ch; }
.foot-col h5 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 0.94rem; color: var(--ink); padding: 5px 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--accent-strong); }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Reveal animations (only hidden when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2,0.8,0.2,1), transform 0.8s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Theme switcher ---------- */
.theme-switch {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; align-items: center; gap: 6px; padding: 7px;
  background: color-mix(in oklab, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line); border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
}
.theme-switch .ts-label { font-size: 0.74rem; color: var(--ink-soft); padding-left: 10px; font-family: var(--sans); white-space: nowrap; }
.theme-switch button {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  padding: 0.5em 1em; border-radius: var(--radius-pill); transition: all 0.25s; white-space: nowrap;
}
.theme-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.theme-switch button:hover:not([aria-pressed="true"]) { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; max-width: 420px; margin-top: 20px; }
  .services-grid, .why-grid, .case-grid, .posts, .uc-panel, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid var(--line); }
  .nav-cta .btn-ghost { display: none; }
  .steps, .team-grid, .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .theme-switch .ts-label { display: none; }
  .theme-switch button { padding: 0.5em 0.85em; font-size: 0.78rem; }
  .hero-meta { gap: 22px; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 150; background: var(--bg); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1); display: flex; flex-direction: column; padding: 80px 32px 32px; }
.drawer.open { transform: none; }
.drawer a { font-family: var(--serif); font-size: 1.8rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-close { position: absolute; top: 24px; right: 24px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; }

/* ============================================================
   SUBPAGE COMPONENTS
   ============================================================ */

/* ---------- Page hero ---------- */
.page-hero { padding-top: clamp(130px, 16vw, 190px); padding-bottom: clamp(40px, 6vw, 72px); position: relative; overflow: clip; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-mesh); pointer-events: none; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--accent-strong); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 16ch; }
.page-hero .lede { margin-top: 24px; max-width: 56ch; }
.page-hero .ph-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.3em; color: var(--ink-soft); }
.prose h3 { margin: 1.6em 0 0.5em; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Generic grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* ---------- Vertical timeline (process) ---------- */
.timeline { margin-top: 56px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl-step { display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding-bottom: 48px; position: relative; }
.tl-step:last-child { padding-bottom: 0; }
.tl-num { width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); color: var(--accent-strong); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; z-index: 1; }
.tl-body { padding-top: 6px; }
.tl-body .tl-tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); }
.tl-body h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 6px 0 12px; }
.tl-body p { color: var(--ink-soft); max-width: 60ch; }
.tl-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.tl-meta span { font-size: 0.8rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.35em 0.9em; background: var(--bg); }

/* ---------- Alternating feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 76px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.feature-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.feature-row.flip .fr-media { order: -1; }
.feature-row h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.feature-row p { color: var(--ink-soft); margin-top: 16px; }
.fr-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.fr-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.fr-list .ck { color: var(--accent-strong); flex-shrink: 0; margin-top: 3px; }
.fr-media .ph { min-height: 360px; }

/* ---------- Industry / use-case cards ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 52px; }
.ind { background: var(--bg); padding: 34px; transition: background-color 0.3s; }
.ind:hover { background: var(--bg-2); }
.ind .ind-ic { width: 46px; height: 46px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 20px; }
.ind .ind-ic svg { width: 22px; height: 22px; }
.ind h3 { font-size: 1.3rem; margin-bottom: 10px; }
.ind p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- Featured / list posts ---------- */
.feature-post { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 4vw, 56px); align-items: center; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.feature-post .fp-img { min-height: 340px; height: 100%; }
.feature-post .fp-body { padding: clamp(28px, 4vw, 52px); }
.feature-post h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin: 14px 0 16px; }
.feature-post p { color: var(--ink-soft); }
.feature-post .p-meta { display: flex; gap: 12px; font-size: 0.8rem; color: var(--ink-soft); }
.feature-post .p-meta .cat { color: var(--accent-strong); font-weight: 600; }

.post-rows { margin-top: 56px; border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 0.5fr 2fr 0.6fr; gap: 30px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding-left 0.3s; }
.post-row:hover { padding-left: 10px; }
.post-row .pr-cat { font-size: 0.82rem; font-weight: 600; color: var(--accent-strong); text-transform: uppercase; letter-spacing: 0.05em; }
.post-row h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); transition: color 0.2s; }
.post-row:hover h3 { color: var(--accent-strong); }
.post-row .pr-meta { font-size: 0.84rem; color: var(--ink-soft); text-align: right; }

/* ---------- Big quote ---------- */
.bigquote { text-align: center; max-width: 24ch; margin: 0 auto; }
.bigquote blockquote { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.18; color: var(--ink); letter-spacing: -0.02em; }
.bigquote .qmark { font-family: var(--serif); font-size: 4rem; color: var(--accent); line-height: 0.5; }
.bigquote cite { display: block; margin-top: 28px; font-style: normal; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Value / pillar cards ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.pillar { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-2); }
.pillar .p-ic { width: 46px; height: 46px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 20px; }
.pillar .p-ic svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.25rem; margin-bottom: 10px; }
.pillar p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- Detailed case study card (full) ---------- */
.cs-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,4vw,64px); align-items: center; padding: clamp(28px,3vw,44px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); }
.cs-feature .csf-media { min-height: 320px; }
.cs-feature .csf-stats { display: flex; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.cs-feature .csf-stats .n { font-family: var(--serif); font-size: 2.2rem; color: var(--ink); }
.cs-feature .csf-stats .n .suf { color: var(--accent-strong); }
.cs-feature .csf-stats .l { font-size: 0.82rem; color: var(--ink-soft); }

@media (max-width: 980px) {
  .grid-3, .ind-grid, .pillars { grid-template-columns: 1fr 1fr; }
  .feature-row, .feature-post, .cs-feature { grid-template-columns: 1fr; }
  .feature-row.flip .fr-media { order: 0; }
  .feature-post .fp-img, .cs-feature .csf-media { min-height: 240px; }
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .post-row .pr-meta { text-align: left; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .ind-grid, .pillars { grid-template-columns: 1fr; }
  .timeline::before { left: 21px; }
  .tl-step { grid-template-columns: 44px 1fr; gap: 18px; }
  .tl-num { width: 44px; height: 44px; font-size: 1.1rem; }
}


/* ---------- Production content additions ---------- */
.c-img img,
.csf-media img,
.media img,
.p-img img,
.fp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.article-body {
  display: grid;
  gap: 26px;
}

.article-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.article-section h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin-bottom: 12px;
}

.article-section p + p,
.article-section p + .fr-list,
.article-section .fr-list + p {
  margin-top: 14px;
}

.article-section .fr-list {
  margin-top: 12px;
}

.form button.btn {
  border: 0;
  width: fit-content;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent-strong);
}
