/* ───────────────────────────────────────────────────────────────────────────
   FlowStack AI — Editorial design system
   Confident & restrained · pure black · cream accent · serif/sans pairing
─────────────────────────────────────────────────────────────────────────── */

:root {
  --bg:        #050505;
  --bg-2:      #0a0a0a;
  --bg-card:   rgba(255,255,255,0.025);
  --bg-card-2: rgba(255,255,255,0.04);

  --fg:        #ffffff;
  --fg-2:      rgba(255,255,255,0.68);
  --fg-3:      rgba(255,255,255,0.45);
  --fg-4:      rgba(255,255,255,0.28);

  --rule:      rgba(255,255,255,0.08);
  --rule-2:    rgba(255,255,255,0.14);

  --accent:    oklch(86% 0.06 75);          /* warm cream */
  --accent-2:  oklch(78% 0.09 70);          /* deeper sand for hovers */
  --accent-ink:#1a1407;                     /* text on accent */

  --serif:     'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:      'Geist', 'Inter', system-ui, sans-serif;
  --mono:      'Geist Mono', ui-monospace, 'Menlo', monospace;

  --pad-x:     72px;
  --pad-x-sm:  24px;
  --max-w:     1440px;

  --radius:    8px;
  --radius-lg: 14px;

  color-scheme: dark;
}

@media (max-width: 880px) {
  :root { --pad-x: 24px; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: transparent;
  isolation: isolate;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Grain overlay attached to body */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 100;
}

/* ─── Aurora background layer ────────────────────────────────────────────
   Site-wide animated background — a few large, slowly drifting warm orbs
   sit fixed behind all content. Injected once by site.js into <body>.
   GPU-only transforms (no layout work); pauses on prefers-reduced-motion. */
.bg-aurora {
  position: fixed; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
  contain: strict;
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.bg-orb--cream {
  width: 65vmax; height: 65vmax;
  top: -28%; left: -18%;
  background: radial-gradient(circle, oklch(86% 0.06 75 / 0.20), transparent 55%);
  animation: orb-cream 58s ease-in-out infinite;
}
.bg-orb--sand {
  width: 60vmax; height: 60vmax;
  bottom: -28%; right: -15%;
  background: radial-gradient(circle, oklch(78% 0.10 70 / 0.16), transparent 58%);
  animation: orb-sand 72s ease-in-out infinite;
}
.bg-orb--haze {
  width: 50vmax; height: 50vmax;
  top: 28%; left: 38%;
  background: radial-gradient(circle, oklch(70% 0.04 250 / 0.11), transparent 62%);
  animation: orb-haze 86s ease-in-out infinite;
  filter: blur(60px);
}
.bg-orb--ember {
  width: 38vmax; height: 38vmax;
  bottom: -10%; left: 25%;
  background: radial-gradient(circle, oklch(82% 0.08 60 / 0.10), transparent 65%);
  animation: orb-ember 96s ease-in-out infinite;
}

@keyframes orb-cream {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  25%      { transform: translate3d(18vw, 22vh, 0) scale(1.10); }
  50%      { transform: translate3d(42vw, 4vh, 0) scale(0.95); }
  75%      { transform: translate3d(14vw, -16vh, 0) scale(1.05); }
}
@keyframes orb-sand {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(-22vw, -18vh, 0) scale(0.90); }
  66%      { transform: translate3d(-38vw, 14vh, 0) scale(1.12); }
}
@keyframes orb-haze {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  40%      { transform: translate3d(14vw, 28vh, 0) scale(1.18); }
  70%      { transform: translate3d(-18vw, 8vh, 0) scale(0.88); }
}
@keyframes orb-ember {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(20vw, -28vh, 0) scale(1.20); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb { animation: none !important; }
}

/* Layout primitives ───────────────────────────────────────────────────────── */
.shell    { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.rule     { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-strong { height: 1px; background: var(--rule-2); border: 0; margin: 0; }

/* Type ────────────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-3);
}
.eyebrow.accent { color: var(--accent); }
.eyebrow-row {
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow-row::before {
  content: ''; width: 18px; height: 1px; background: currentColor;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.display-1 { font-size: clamp(48px, 8.4vw, 124px); }
.display-2 { font-size: clamp(40px, 5.6vw, 84px); }
.display-3 { font-size: clamp(32px, 4vw, 56px); }

.body-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 620px;
  margin: 0;
}

.body-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
}

.italic-serif { font-family: var(--serif); font-style: italic; color: var(--accent); }

/* Meta strip used on every page ───────────────────────────────────────────── */
.meta-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  gap: 16px;
}
.meta-strip > * { flex: 0 0 auto; }
@media (max-width: 720px) {
  .meta-strip { font-size: 10px; flex-wrap: wrap; justify-content: flex-start; gap: 12px; }
}

/* Navigation ──────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,5,5,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  font-style: italic;
  color: var(--fg);
}
.brand .brand-ai {
  font-style: normal; opacity: 0.55; margin-left: 4px;
}
.brand-mark {
  display: inline-flex;
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
  font-size: 13.5px;
  color: var(--fg-2);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.is-current { color: var(--fg); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-status .pulse {
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: fsPulse 1.6s ease-in-out infinite;
}

.nav-toggle {
  display: none;
  background: transparent; border: 0;
  color: var(--fg); padding: 6px;
}

@media (max-width: 880px) {
  .nav-links, .nav-status { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  font-family: var(--sans);
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--rule-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.22); }
.btn-text {
  color: var(--fg-2);
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s, border-color .15s;
}
.btn-text:hover { color: var(--fg); border-color: var(--fg-3); }
.btn-small { padding: 9px 14px; font-size: 13px; gap: 6px; }

.arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Stats row ──────────────────────────────────────────────────────────────── */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-row .stat-divider {
  width: 1px; background: var(--rule);
}
.stat {
  display: flex; flex-direction: column; gap: 8px;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.stat-num .unit {
  font-size: 0.5em; color: var(--fg-3);
  margin-left: 4px; font-family: var(--sans); font-style: normal;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  max-width: 220px;
}
@media (max-width: 880px) {
  .stat-row { grid-template-columns: 1fr; gap: 28px; }
}

/* Section header ─────────────────────────────────────────────────────────── */
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 80px 0; }
.section-lg { padding: 160px 0; }

.section-head {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 64px; align-items: end;
  margin-bottom: 64px;
}
.section-head .right { color: var(--fg-2); font-size: 17px; line-height: 1.55; max-width: 480px; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}

/* Pillar cards ───────────────────────────────────────────────────────────── */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillar {
  background: var(--bg);
  padding: 48px 32px 56px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: background .2s ease;
}
.pillar:hover { background: var(--bg-2); }
.pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.14em;
}
.pillar-title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.pillar-title em {
  font-style: italic; color: var(--accent);
}
.pillar-body {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
}
.pillar-list {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.pillar-list li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  padding-left: 18px;
  position: relative;
}
.pillar-list li::before {
  content: '+'; position: absolute; left: 0; color: var(--accent); font-weight: 600;
}
@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; }
}

/* Industry chips ─────────────────────────────────────────────────────────── */
.industries {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.industry {
  background: var(--bg);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
  transition: background .2s ease;
}
.industry:hover { background: var(--bg-2); }
.industry-name {
  font-family: var(--serif);
  font-size: 26px; font-style: italic;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.industry-body {
  font-size: 13px; color: var(--fg-3); line-height: 1.55;
}
.industry-mono {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-4);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
@media (max-width: 1100px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .industries { grid-template-columns: 1fr; } }

/* Case cards ─────────────────────────────────────────────────────────────── */
.cases { display: grid; grid-template-columns: 1fr; gap: 0; }
.case-row {
  display: grid; grid-template-columns: 0.4fr 1fr 0.6fr;
  gap: 48px; align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}
.case-row:first-child { border-top: 1px solid var(--rule); }
.case-row .meta { display: flex; flex-direction: column; gap: 12px; }
.case-row .meta .case-client {
  font-family: var(--serif);
  font-size: 30px; font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.case-row .meta .case-industry {
  font-family: var(--mono);
  font-size: 11px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.case-row .body h3 {
  font-family: var(--serif);
  font-size: 32px; font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.case-row .body p { color: var(--fg-2); font-size: 15.5px; line-height: 1.6; margin: 0; }
.case-row .deliverables {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.case-row .deliverables li {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  padding: 5px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 99px;
  letter-spacing: 0.02em;
}
.case-row .metrics {
  display: flex; flex-direction: column; gap: 22px;
  border-left: 1px solid var(--rule);
  padding-left: 32px;
}
.case-row .metric-num {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.case-row .metric-num em {
  font-style: italic; color: var(--accent);
}
.case-row .metric-label {
  font-family: var(--mono);
  font-size: 10.5px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-top: 6px;
}
@media (max-width: 1024px) {
  .case-row { grid-template-columns: 1fr; gap: 24px; }
  .case-row .metrics { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; flex-direction: row; flex-wrap: wrap; gap: 32px; }
}

/* Process steps ──────────────────────────────────────────────────────────── */
.process {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
}
.process-step {
  padding: 56px 40px 56px 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.process-step:last-child { border-right: none; }
.process-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 84px;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 24px;
}
.process-title {
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.process-body {
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.process-step + .process-step { padding-left: 40px; }
@media (max-width: 1024px) {
  .process { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--rule); padding: 40px 0; }
  .process-step + .process-step { padding-left: 0; }
}

/* Quote ──────────────────────────────────────────────────────────────────── */
.quote-block {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.quote-text {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 920px;
  margin: 0 auto;
  color: var(--fg);
  text-wrap: balance;
}
.quote-text em { color: var(--accent); font-style: italic; }
.quote-cite {
  margin-top: 32px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.quote-cite .name { color: var(--fg); font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: -0.01em; text-transform: none; }

/* CTA section ────────────────────────────────────────────────────────────── */
.cta {
  padding: 140px 0;
  text-align: center;
  position: relative;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, oklch(86% 0.06 75 / 0.06), transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.cta-title em { color: var(--accent); font-style: italic; }
.cta-body {
  font-size: 17px; color: var(--fg-2);
  max-width: 540px; margin: 0 auto 36px;
}
.cta-actions { display: inline-flex; gap: 16px; align-items: center; }

/* Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #030303;
  border-top: 1px solid var(--rule);
  padding: 80px 0 32px;
  position: relative;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 64px;
  margin-bottom: 80px;
}
.footer-brand p {
  color: var(--fg-3); font-size: 14px; line-height: 1.6; margin-top: 18px; max-width: 340px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fg-3);
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--fg-2); font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-bottom-links { display: flex; gap: 28px; }
.footer-bottom-links a:hover { color: var(--fg-2); }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Hero (Home) ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 100px;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; left: 0; right: 0; top: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(86% 0.06 75 / 0.45), transparent);
  animation: fsBeam 7s ease-in-out infinite;
  z-index: 0;
}

/* ─── Cinematic video hero ──────────────────────────────────────────────
   Full-bleed background film of an AI-run office. Layered scrims dim the
   footage, melt its edges into the page's black, and lift text contrast —
   while a faint blur softens the fine on-screen UI detail into ambience. */
.hero--video {
  padding: 150px 0 128px;
  overflow: clip;
  isolation: isolate;
}
.hero--video::before { display: none; }      /* drop the beam over film */

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 62%;                   /* favour desk/skyline, crop top panels */
  /* The blur is the trick: large scene elements stay readable, but the
     tiny synthetic dashboard text smears into illegible texture. */
  filter: brightness(0.74) contrast(1.04) saturate(1.06) blur(1.8px);
  transform: scale(1.07);                     /* hide blur edge bleed   */
}

/* Warm tone-match to the cream accent + base darkening */
.hero-grade {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 70% at 64% 42%, oklch(78% 0.09 70 / 0.10), transparent 60%),
    rgba(5,5,5,0.18);
  mix-blend-mode: normal;
}
/* Directional scrims: heavy top/bottom fades into page black, plus a
   soft central pool of shadow that sits under the headline and over the
   busiest synthetic panels. */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(5,5,5,0.70) 20%,
      rgba(5,5,5,0.30) 40%,
      rgba(5,5,5,0.34) 62%,
      rgba(5,5,5,0.86) 90%,
      var(--bg) 100%),
    radial-gradient(92% 60% at 50% 52%,
      rgba(5,5,5,0.60) 0%,
      rgba(5,5,5,0.28) 42%,
      transparent 78%);
}
/* Edge vignette to seat the rectangle into the surrounding black */
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 16%, transparent 84%, var(--bg) 100%);
  opacity: 0.9;
}
.hero--video .hero-inner { padding-top: 8px; padding-bottom: 8px; }
.hero--video .hero-headline {
  text-shadow: 0 2px 40px rgba(0,0,0,0.55), 0 1px 8px rgba(0,0,0,0.4);
}
.hero--video .hero-sub {
  color: var(--fg);
  opacity: 0.82;
  text-shadow: 0 1px 24px rgba(0,0,0,0.7);
}
@media (max-width: 880px) {
  .hero--video { padding: 96px 0 88px; }
  .hero-video { object-position: 64% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { filter: brightness(0.74) contrast(1.04) saturate(1.06) blur(1.8px); }
}

.hero-inner { position: relative; z-index: 2; }
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 128px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
.hero-line-1 { color: var(--fg); }
.hero-line-2 { display: block; }
.cycler {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  color: var(--accent);
  font-style: italic;
  white-space: nowrap;
}
.cycler-track {
  display: inline-block;
  position: relative;
}
.cycler-word {
  display: inline-block;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.3,1);
}
.cycler-word.is-leaving { opacity: 0; transform: translateY(-10px); }
.cycler-word.is-entering { opacity: 0; transform: translateY(10px); }

.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 620px;
  margin: 36px auto 0;
}
.hero-actions {
  display: inline-flex; gap: 20px; align-items: center;
  margin-top: 44px;
}

/* Inner-page hero ────────────────────────────────────────────────────────── */
.page-hero {
  padding: 96px 0 80px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 24px 0 0;
  font-weight: 400;
  text-wrap: balance;
  max-width: 12ch;
}
.page-hero .lead {
  margin-top: 32px;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 620px;
}
.page-hero em { color: var(--accent); font-style: italic; }

/* Two-column rich text (Approach) ────────────────────────────────────────── */
.phase {
  display: grid; grid-template-columns: 0.5fr 1fr;
  gap: 64px;
  padding: 88px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.phase-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(80px, 10vw, 160px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.phase h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  font-weight: 400;
  text-wrap: balance;
}
.phase p { color: var(--fg-2); font-size: 17px; line-height: 1.6; margin: 0 0 16px; }
.phase ul.deliverables {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
}
.phase ul.deliverables li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  padding-left: 22px;
  position: relative;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.phase ul.deliverables li::before {
  content: '→'; position: absolute; left: 0; color: var(--accent);
}
@media (max-width: 1024px) {
  .phase { grid-template-columns: 1fr; gap: 24px; }
  .phase ul.deliverables { grid-template-columns: 1fr; }
}

/* Principle list (About) ─────────────────────────────────────────────────── */
.principles { display: grid; grid-template-columns: 1fr; gap: 0; }
.principle {
  display: grid; grid-template-columns: 80px 1fr 1.4fr;
  gap: 32px; padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.principle:first-child { border-top: 1px solid var(--rule); }
.principle .pn { font-family: var(--mono); font-size: 11px; color: var(--fg-4); letter-spacing: 0.14em; padding-top: 6px; }
.principle h3 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); margin: 0; font-weight: 400; letter-spacing: -0.02em; }
.principle h3 em { color: var(--accent); font-style: italic; }
.principle p { color: var(--fg-2); margin: 0; font-size: 15.5px; line-height: 1.65; }
@media (max-width: 1024px) { .principle { grid-template-columns: 1fr; gap: 8px; } }

/* FAQ ────────────────────────────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
  align-items: start;
}
.faq-item .q {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}
.faq-item .a { color: var(--fg-2); font-size: 15.5px; line-height: 1.65; }
@media (max-width: 880px) { .faq-item { grid-template-columns: 1fr; gap: 12px; } }

/* Contact form ──────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 96px;
  padding: 80px 0 120px;
}
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; gap: 56px; } }

.form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.field input, .field select, .field textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule-2);
  padding: 12px 0;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.field select option { background: var(--bg-2); }

.contact-side h4 {
  font-family: var(--mono);
  font-size: 11px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin: 0 0 16px;
  font-weight: 500;
}
.contact-side .what {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
  display: grid; grid-template-columns: 24px 1fr;
  gap: 16px;
  align-items: start;
}
.contact-side .what:last-of-type { border-bottom: 1px solid var(--rule); }
.contact-side .what .n {
  font-family: var(--serif); font-style: italic;
  color: var(--accent); font-size: 24px; line-height: 1;
}
.contact-side .what h5 { margin: 0 0 4px; font-size: 15px; font-weight: 500; font-family: var(--sans); }
.contact-side .what p { margin: 0; color: var(--fg-3); font-size: 13.5px; line-height: 1.55; }

/* Animations ────────────────────────────────────────────────────────────── */
@keyframes fsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
@keyframes fsBeam {
  0%, 100% { transform: translateY(-220px); opacity: 0; }
  50% { transform: translateY(220px); opacity: 1; }
}
@keyframes fsFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.3,1); }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* Reduce motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition: none !important; }
}
