/* ===========================================================================
   Elixir Dinâmico — Website
   Design language: "directed flow guided by structure".
   Graphite + pearl + grey + one controlled orange. No pure black / white.
   =========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ---------- Tokens ---------- */
:root {
  --accent:        #F15A24;
  --accent-strong: #D44613;
  --accent-soft:   color-mix(in srgb, #F15A24 12%, transparent);
  --accent-line:   color-mix(in srgb, #F15A24 26%, transparent);

  --graphite-900: #25282C;
  --graphite-850: #2D3136;
  --graphite-825: #34383D;
  --graphite-800: #2D2D2D;
  --graphite-700: #3A3F45;
  --graphite-600: #555B62;
  --graphite-500: #6B737B;
  --grey-400: #9B9B9B;
  --grey-300: #B8BEC4;
  --grey-200: #D9DEE3;
  --pearl-100: #ECEFF2;
  --pearl-50:  #F5F6F8;

  /* semantic — light (default) */
  --surface:        var(--pearl-50);
  --surface-soft:   var(--pearl-100);
  --surface-raised: #FCFDFE;
  --surface-inset:  color-mix(in srgb, var(--graphite-900) 4%, var(--pearl-50));
  --surface-dark:   var(--graphite-900);

  --fg1: var(--graphite-900);
  --fg2: var(--graphite-600);
  --fg3: var(--graphite-500);
  --fg-on-dark:   var(--pearl-100);
  --fg-on-dark-2: var(--grey-300);
  --fg-on-accent: var(--pearl-50);

  --line:        color-mix(in srgb, var(--graphite-900) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--graphite-900) 22%, transparent);
  --line-faint:  color-mix(in srgb, var(--graphite-900) 7%, transparent);

  --shadow-sm: 0 2px 10px rgba(37,40,44,.04);
  --shadow-md: 0 14px 40px rgba(37,40,44,.07);
  --shadow-lg: 0 30px 80px rgba(37,40,44,.10);

  --font-sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --tracking-label: 0.2em;

  --r-sm: 4px;  --r-md: 6px;  --r-lg: 8px;  --r-xl: 12px;  --r-2xl: 18px; --r-pill: 999px;

  --space-section: clamp(72px, 9vw, 132px);
  --container: 1320px;
  --gutter: clamp(20px, 4.5vw, 64px);

  --t-fast: 160ms cubic-bezier(.4,0,.2,1);
  --t-base: 280ms cubic-bezier(.4,0,.2,1);
  --t-slow: 600ms cubic-bezier(.22,1,.36,1);

  --header-h: 76px;
  color-scheme: light;
}

[data-theme="dark"] {
  --surface:        var(--graphite-900);
  --surface-soft:   var(--graphite-850);
  --surface-raised: var(--graphite-825);
  --surface-inset:  #202327;
  --surface-dark:   #1B1D20;

  --fg1: var(--pearl-100);
  --fg2: var(--grey-300);
  --fg3: var(--grey-400);

  --line:        color-mix(in srgb, var(--pearl-100) 13%, transparent);
  --line-strong: color-mix(in srgb, var(--pearl-100) 24%, transparent);
  --line-faint:  color-mix(in srgb, var(--pearl-100) 7%, transparent);

  --shadow-sm: 0 2px 10px rgba(0,0,0,.22);
  --shadow-md: 0 14px 40px rgba(0,0,0,.30);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.42);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--fg1);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
  transition: background var(--t-base), color var(--t-base);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

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

.skip-link {
  position: absolute; left: -999px; top: 12px; z-index: 200;
  background: var(--fg1); color: var(--surface);
  padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1440px; }
.section { padding-block: var(--space-section); position: relative; }
.section-soft { background: var(--surface-soft); }
.section-line { border-top: 1px solid var(--line); }

.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

/* ---------- Typography ---------- */
.display {
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 0.96; letter-spacing: -0.045em; font-weight: 740;
  margin: 0; text-wrap: balance;
}
h1, .h1 {
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.02; letter-spacing: -0.04em; font-weight: 740; margin: 0;
  text-wrap: balance;
}
h2, .h2 {
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.04; letter-spacing: -0.038em; font-weight: 720; margin: 0;
  text-wrap: balance;
}
h3, .h3 {
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.18; letter-spacing: -0.025em; font-weight: 680; margin: 0;
}
h4, .h4 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 640; margin: 0; }

p { margin: 0; color: var(--fg2); }
strong { font-weight: 640; color: var(--fg1); }

.lead {
  font-size: clamp(19px, 1.75vw, 25px);
  line-height: 1.45; letter-spacing: -0.018em; color: var(--fg1); font-weight: 420;
  text-wrap: pretty;
}
.body-lg { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.62; }
.fg2 { color: var(--fg2); } .fg3 { color: var(--fg3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--accent); display: inline-block;
}
.eyebrow.no-tick::before { display: none; }

.index-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--fg3); text-transform: uppercase;
}

.prose p + p { margin-top: 1.05em; }
.prose .lead + p { margin-top: 1.2em; }

a.inline-link {
  color: var(--fg1); font-weight: 560;
  border-bottom: 1.5px solid var(--accent-line);
  transition: border-color var(--t-fast), color var(--t-fast);
}
a.inline-link:hover { border-bottom-color: var(--accent); color: var(--accent-strong); }
[data-theme="dark"] a.inline-link:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 560; font-size: 15px; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.btn .arw { transition: transform var(--t-base); }
.btn:hover .arw { transform: translateX(3px); }
.btn-primary { background: var(--fg1); color: var(--surface); }
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg1); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--fg1); background: color-mix(in srgb, var(--fg1) 4%, transparent); }
.btn-accent { background: var(--accent); color: var(--fg-on-accent); }
.btn-accent:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: 0 12px 30px var(--accent-soft); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 560; font-size: 15px;
  color: var(--fg1); padding-bottom: 2px; border-bottom: 1.5px solid transparent;
  transition: border-color var(--t-fast), gap var(--t-fast);
}
.textlink .arw { color: var(--accent); transition: transform var(--t-base); }
.textlink:hover { border-bottom-color: var(--line-strong); }
.textlink:hover .arw { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); }
.header-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h); display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  font-size: 14.5px; font-weight: 480; color: var(--fg2); padding: 9px 14px; border-radius: var(--r-pill);
  transition: color var(--t-fast), background var(--t-fast); position: relative;
}
.site-nav a:hover { color: var(--fg1); }
.site-nav a[aria-current="page"] { color: var(--fg1); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px;
  background: var(--accent); border-radius: 2px;
}
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-switch {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--fg2);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 12px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.lang-switch:hover { color: var(--fg1); border-color: var(--line-strong); }
.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--fg1);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.theme-toggle:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--fg1) 4%, transparent); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; } .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; } [data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; }
.btn-nav { font-size: 14.5px; padding: 9px 18px; }

/* mobile nav */
@media (max-width: 1000px) {
  .site-nav, .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    margin-left: auto; font: inherit; font-size: 14px; font-weight: 560; color: var(--fg1);
    border: 1px solid var(--line); background: transparent; border-radius: var(--r-pill);
    padding: 9px 16px; cursor: pointer;
  }
  .mobile-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 90;
    background: var(--surface); padding: 28px var(--gutter) 40px;
    display: flex; flex-direction: column; gap: 4px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--t-base), transform var(--t-base);
    overflow-y: auto;
  }
  .mobile-nav[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-nav a {
    font-size: 26px; font-weight: 600; letter-spacing: -0.03em; color: var(--fg1);
    padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
  }
  .mobile-nav a .idx { font-family: var(--font-mono); font-size: 13px; color: var(--fg3); font-weight: 400; }
  .mobile-nav a[aria-current="page"] { color: var(--accent); }
  .mobile-nav .mobile-foot { margin-top: auto; padding-top: 28px; display: flex; gap: 12px; align-items: center; }
}
.mobile-nav { display: none; }
@media (max-width: 1000px) { .mobile-nav { display: flex; } }
body[data-nav-open="true"] { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 96px); padding-bottom: var(--space-section); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.hero .display { margin-top: 26px; }
.hero-lead { margin-top: 28px; max-width: 48ch; }
.hero .cta-row { margin-top: 36px; }
.hero-meta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 28px 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta > div { max-width: 230px; }
.hero-meta dt { font-size: 13px; font-weight: 640; color: var(--fg1); margin-bottom: 4px; letter-spacing: -0.01em; }
.hero-meta dd { margin: 0; font-size: 14px; color: var(--fg3); line-height: 1.45; }

/* The flow figure (logo motif at architectural scale) */
.flow-figure { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.flow-figure svg { width: 100%; height: 100%; overflow: visible; }
.flow-figure .stroke { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flow-figure .s-graphite { stroke: var(--fg1); opacity: .82; }
.flow-figure .s-grey { stroke: var(--grey-400); opacity: .7; }
.flow-figure .s-accent { stroke: var(--accent); }
.flow-node { fill: var(--accent); }
.flow-node-ring { fill: none; stroke: var(--accent); opacity: .35; }

/* draw-in animation */
.draw-path { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); }
.is-revealed .draw-path { animation: drawIn 1.8s var(--t-slow) forwards; }
.is-revealed .draw-path.d2 { animation-delay: .18s; }
.is-revealed .draw-path.d3 { animation-delay: .36s; }
.is-revealed .draw-path.d4 { animation-delay: .54s; }
.is-revealed .draw-path.d5 { animation-delay: .72s; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
.is-revealed .pulse-node { animation: nodeIn .6s 1.1s both; }
@keyframes nodeIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pulse-node { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .draw-path { stroke-dashoffset: 0 !important; animation: none !important; }
  .pulse-node { animation: none !important; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--t-slow), transform .7s var(--t-slow); }
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Section heading ---------- */
.section-head { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.section-head .lead { max-width: 40ch; }
.section-head-stack { display: flex; flex-direction: column; gap: 18px; }
.section-head .eyebrow { margin-bottom: 18px; }

/* ---------- Editorial focus list ---------- */
.focus-list { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.focus-row {
  display: grid; grid-template-columns: 56px 0.9fr 1.4fr; gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line);
  align-items: start; position: relative; transition: background var(--t-base);
}
.focus-row .fr-idx { font-family: var(--font-mono); font-size: 13px; color: var(--fg3); padding-top: 6px; }
.focus-row h3 { transition: color var(--t-fast); }
.focus-row .fr-arrow { position: absolute; right: 4px; top: clamp(28px,3.4vw,44px); color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity var(--t-base), transform var(--t-base); }
a.focus-row:hover { background: color-mix(in srgb, var(--fg1) 2.5%, transparent); }
a.focus-row:hover .fr-arrow { opacity: 1; transform: none; }
a.focus-row:hover h3 { color: var(--accent-strong); }
[data-theme="dark"] a.focus-row:hover h3 { color: var(--accent); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 2.4vw, 34px); position: relative; transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 16px; line-height: 1.58; }
.card .card-mark { color: var(--accent); margin-bottom: 22px; }
.card-quiet { background: transparent; border-color: var(--line); }
.card-hover:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- Statement band ---------- */
.statement { display: grid; grid-template-columns: 0.32fr 0.68fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.statement .big {
  font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 540;
  color: var(--fg1); text-wrap: pretty;
}
.statement .big .hl { color: var(--accent); }


/* ---------- Company page focus block ---------- */
.company-focus { max-width: 920px; }
.company-focus h2 { margin-top: 18px; max-width: 18ch; }
.company-focus-copy { margin-top: 24px; max-width: 68ch; }

/* ---------- Care loop (flow path) ---------- */
.loop { position: relative; margin-top: clamp(44px, 5vw, 72px); }
.loop-track { position: relative; }
.loop-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; z-index: 2; }
.loop-step { position: relative; }
.loop-dot {
  width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong);
  position: relative; z-index: 2; margin-bottom: 24px;
}
.loop-step:last-child .loop-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.loop-connector { position: absolute; top: 7px; left: 8px; right: 8px; height: 2px; z-index: 1; }
.loop-connector svg { width: 100%; height: 24px; overflow: visible; position: absolute; top: -4px; }
.loop-step .ls-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 600; }
.loop-step h4 { margin: 8px 0 10px; font-size: 19px; }
.loop-step p { font-size: 14.5px; line-height: 1.5; color: var(--fg2); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.narrow-left { grid-template-columns: 0.85fr 1.15fr; }
.split-media { position: relative; }

/* ---------- Photo slot ---------- */
.photo-slot {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-inset);
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 11px, color-mix(in srgb, var(--graphite-500) 8%, transparent) 11px, color-mix(in srgb, var(--graphite-500) 8%, transparent) 12px);
  display: grid; place-items: center; min-height: 280px;
}
.photo-slot .ps-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--fg3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 16px; text-align: center; max-width: 80%;
}
.photo-slot.tall { min-height: 460px; }
.photo-slot.wide { aspect-ratio: 16/9; min-height: 0; }

/* ---------- Principles / value list ---------- */
.princ-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.princ {
  background: var(--surface); padding: clamp(28px, 3vw, 40px); position: relative;
}
.princ .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.princ h3 { margin: 18px 0 12px; }
.princ p { font-size: 16px; }

/* ---------- Dark panel ---------- */
.panel-dark {
  background: var(--surface-dark); color: var(--fg-on-dark); border-radius: var(--r-2xl);
  padding: clamp(36px, 5vw, 80px); position: relative; overflow: hidden;
}
.panel-dark p { color: var(--fg-on-dark-2); }
.panel-dark .eyebrow { color: var(--accent); }
.panel-dark .flow-figure .s-graphite { stroke: var(--pearl-100); opacity: .5; }

/* ---------- Quote ---------- */
.pullquote { display: grid; grid-template-columns: 0.3fr 0.7fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.pullquote blockquote {
  margin: 0; font-size: clamp(24px, 2.7vw, 36px); line-height: 1.28; letter-spacing: -0.03em;
  font-weight: 480; color: var(--fg1); text-wrap: pretty;
}
.pullquote .attribution { margin-top: 24px; font-size: 14px; color: var(--fg3); }

/* ---------- Steps (numbered process) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-raised); }
.step { padding: clamp(26px, 2.6vw, 38px); border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step .step-n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.step h3 { margin: 22px 0 12px; font-size: 21px; }
.step p { font-size: 15px; line-height: 1.55; }

/* ---------- Contact / form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 560; color: var(--fg1); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--fg1); background: var(--surface-raised);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.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 { min-height: 150px; resize: vertical; }
.note {
  font-size: 14px; color: var(--fg2); background: var(--surface-soft); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--r-md); padding: 16px 18px; line-height: 1.5;
}

/* ---------- Collaboration list ---------- */
.collab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.collab { background: var(--surface); padding: clamp(24px, 2.6vw, 34px); }
.collab .num { font-family: var(--font-mono); font-size: 12px; color: var(--fg3); }
.collab h3 { margin: 14px 0 10px; font-size: 20px; }
.collab p { font-size: 15px; line-height: 1.55; }

/* ---------- Tag chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 500; color: var(--fg2); padding: 7px 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-raised);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-soft); color: var(--fg1); padding-block: clamp(48px, 5vw, 76px) 32px; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand img { height: 42px; margin-bottom: 22px; }
.footer-brand p { color: var(--fg2); font-size: 15px; max-width: 34ch; }
.footer-col h4 { font-size: 12px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg3); margin-bottom: 18px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: var(--fg2); font-size: 15px; padding: 5px 0; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--fg1); }
.footer-bottom {
  margin-top: clamp(44px, 5vw, 72px); padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--pearl-100) 14%, transparent);
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between;
}
.footer-bottom p { color: var(--fg3); font-size: 13.5px; }
.footer-legal-note { color: var(--fg3); font-size: 13px; max-width: 60ch; line-height: 1.5; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom-links a { color: var(--fg3); font-size: 13.5px; transition: color var(--t-fast); }
.footer-bottom-links a:hover { color: var(--fg1); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(40px, 5vw, 72px); }
.page-hero .index-label { margin-bottom: 22px; display: block; }
.page-hero .display { max-width: 16ch; }
.page-hero .lead { margin-top: 28px; max-width: 54ch; }

/* breadcrumb-ish meta */
.page-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.page-kicker .index-label { margin: 0; }
.page-kicker .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ---------- Mini flow divider ---------- */
.flow-divider { height: 1px; background: var(--line); position: relative; }

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.accent { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .flow-figure { max-width: 520px; margin-inline: auto; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .statement { grid-template-columns: 1fr; gap: 20px; }
  .split, .split.narrow-left { grid-template-columns: 1fr; gap: 36px; }
  .pullquote { grid-template-columns: 1fr; gap: 16px; }
  .loop-steps { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .loop-connector { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(odd) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .princ-grid, .collab-grid { grid-template-columns: 1fr; }
  .loop-steps { grid-template-columns: 1fr; }
  .focus-row { grid-template-columns: 40px 1fr; gap: 14px; }
  .focus-row .fr-text { grid-column: 1 / -1; margin-top: 4px; }
  .focus-row .fr-arrow { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .hero-meta { gap: 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Approved Company page refinements ---------- */
.company-focus {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(180px, .34fr) minmax(0, .66fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.company-focus h2 {
  margin-top: 0;
  max-width: 18ch;
}
.company-focus-copy {
  margin-top: 24px;
  max-width: 72ch;
}
.company-standards-block { align-items: start; }
.standards-panel {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.2vw, 44px);
  box-shadow: var(--shadow-sm);
}
.standards-panel h3 {
  margin-top: 22px;
  max-width: 24ch;
}
.standards-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}
.standards-list li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid var(--line-faint);
  color: var(--fg2);
  font-size: 15.5px;
  line-height: 1.45;
}
.standards-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.site-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(34px, 4.2vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}
.site-cta h2 {
  margin-top: 18px;
}
.site-cta .body-lg {
  max-width: 58ch;
  margin-top: 20px;
}
.site-cta .body-lg + .body-lg {
  margin-top: 12px;
}
.site-cta-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: max-content;
}
@media (max-width: 1000px) {
  .company-focus,
  .site-cta {
    grid-template-columns: 1fr;
  }
  .site-cta-action {
    justify-content: flex-start;
    min-width: 0;
  }
}

.company-where-copy { max-width: 760px; }

/* ---------- Standardised section rhythm v2 ---------- */
:root {
  --space-section: clamp(60px, 7vw, 104px);
  --space-section-compact: clamp(52px, 6vw, 88px);
  --section-head-gap: clamp(28px, 4vw, 56px);
}
.section-compact { padding-block: var(--space-section-compact); }
.section-pair {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.section-pair-spaced { margin-bottom: var(--section-head-gap); }
.section-title-block { display: flex; flex-direction: column; gap: 18px; }
.section-title-block h2 { max-width: 14ch; }
.section-copy-block { padding-top: 39px; }
.section-copy-block .lead { max-width: 42ch; }
.body-xl {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.24;
  letter-spacing: -0.028em;
  font-weight: 520;
  color: var(--fg1);
  text-wrap: pretty;
  max-width: 42ch;
}
.research-page .steps { margin-top: 0; }
.research-page .card-grid { margin-top: 0; }
@media (max-width: 1000px) {
  .section-pair { grid-template-columns: 1fr; gap: 22px; }
  .section-copy-block { padding-top: 0; }
  .section-title-block h2 { max-width: 18ch; }
}
@media (max-width: 680px) {
  :root { --space-section: clamp(48px, 12vw, 76px); --space-section-compact: clamp(42px, 10vw, 68px); }
}

/* ---------- Research page refinement v3 ---------- */
.research-page .section-compact {
  padding-block: clamp(52px, 5.8vw, 86px);
}
.research-page .page-hero {
  padding-bottom: clamp(54px, 6vw, 92px);
}
.research-section-head {
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: clamp(28px, 3.6vw, 48px);
}
.research-section-head h2 {
  max-width: 16ch;
  margin-top: 18px;
}
.research-section-head .lead {
  max-width: 66ch;
  margin-top: 20px;
}
.research-copy {
  max-width: 760px;
}
.research-page .steps,
.research-page .princ-grid,
.research-page .card-grid {
  margin-top: 0;
}
.research-page .step h3,
.research-page .princ h3 {
  line-height: 1.05;
}
.research-page .step p,
.research-page .princ p {
  line-height: 1.48;
}
@media (max-width: 760px) {
  .research-section-head h2 { max-width: 100%; }
  .research-section-head .lead { max-width: 100%; }
}


/* ---------- Research page refinement v4: unified editorial rhythm ---------- */
.research-page .section-compact {
  padding-block: clamp(58px, 6vw, 92px);
}
.research-page .split.research-intro {
  align-items: start;
  gap: clamp(36px, 5vw, 84px);
}
.research-page .research-intro h2 {
  max-width: 15ch;
}
.research-page .research-intro .prose {
  max-width: 760px;
}
.research-page .research-intro .body-lg {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.62;
  color: var(--fg2);
  font-weight: 400;
  letter-spacing: 0;
}
.research-page .research-grid {
  margin-top: clamp(34px, 4vw, 56px);
}
.research-page .steps,
.research-page .princ-grid {
  margin-top: clamp(34px, 4vw, 56px);
}
.research-page .step h3,
.research-page .princ h3 {
  line-height: 1.08;
}
.research-page .step p,
.research-page .princ p {
  line-height: 1.5;
}
@media (max-width: 1000px) {
  .research-page .split.research-intro { grid-template-columns: 1fr; gap: 22px; }
  .research-page .research-intro .prose { margin-top: 0 !important; }
  .research-page .research-intro h2 { max-width: 100%; }
}


/* ---------- Full site alignment pass v2 ---------- */
.contact-layout { grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr); align-items: start; }
.contact-layout .card { width: 100%; }
.next-cta-section .site-cta { align-items: center; }
.company-focus-standard h2 { max-width: 18ch; }
.company-focus-standard .prose { max-width: 72ch; }
.section-head .body-lg.fg2 { max-width: 48ch; }
@media (max-width: 1000px) { .contact-layout { grid-template-columns: 1fr; } }


/* Contact page form width */
.contact-form-card {
  padding: clamp(28px, 3vw, 44px);
  max-width: min(1120px, 100%);
  margin-inline: auto;
}
.contact-form-card .g-recaptcha {
  margin-top: 4px;
}
