/* Thais Fontes, TF Consultancy. v2.
   Plain CSS, no build step. Fonts self-hosted (SIL OFL), no third-party requests.
   Palette and type come from the logo: navy T, steel blue F, rising bars, crescent arc. */

/* ---------- Fonts ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/assets/fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/assets/fonts/cormorant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500 700; font-display: swap;
  src: url("/assets/fonts/cormorant-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500 700; font-display: swap;
  src: url("/assets/fonts/cormorant-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/cinzel-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("/assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("/assets/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --navy: #1B2B45;          /* the T */
  --night: #0F1A2C;         /* dark sections */
  --night-2: #15243B;
  --steel: #5B7FAE;         /* the F and the bars */
  --steel-ink: #3E6290;     /* steel for small text on light (AA) */
  --steel-light: #A9BFD9;   /* the light end of the arc */
  --mist: #E4EBF4;
  --line: #D5DFEB;
  --paper: #F7F9FC;
  --white: #FFFFFF;
  --ink: #1B2B45;
  --muted: #4B5A73;
  --on-night: #EEF3F9;
  --on-night-muted: #B4C4D8;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --caps: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 44px);
  --radius: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 400; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; border-radius: 4px; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-variant-numeric: lining-nums; font-weight: 600; color: var(--navy); line-height: 1.06; margin: 0; letter-spacing: -0.005em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 600; color: var(--steel-ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--steel-light); color: var(--night); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Eyebrow: the logo subtitle (wide-tracked caps) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--steel-ink); margin: 0 0 22px;
}
/* the logo's three rising bars lead every label; they grow in one by one on reveal */
.eyebrow::before {
  content: ""; flex: none; width: 18px; height: 13px; transform: translateY(-1px);
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 4px 45% no-repeat,
    linear-gradient(currentColor, currentColor) 7px 100% / 4px 72% no-repeat,
    linear-gradient(currentColor, currentColor) 14px 100% / 4px 100% no-repeat;
}
.on-night .eyebrow, .eyebrow.light { color: var(--steel-light); }
@keyframes eyebrowBars {
  0%   { background-size: 4px 0, 4px 0, 4px 0; }
  34%  { background-size: 4px 45%, 4px 0, 4px 0; }
  67%  { background-size: 4px 45%, 4px 72%, 4px 0; }
  100% { background-size: 4px 45%, 4px 72%, 4px 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .eyebrow { opacity: 0; letter-spacing: .5em; transition: opacity .7s var(--ease-out), letter-spacing 1.2s var(--ease-out); }
  .js .eyebrow::before { background-size: 4px 0, 4px 0, 4px 0; }
  .js .eyebrow.in { opacity: 1; letter-spacing: .24em; }
  .js .eyebrow.in::before { animation: eyebrowBars .9s .15s var(--ease-out) both; }
}

/* Three rising bars glyph (from the logo) */
.bars3 { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.bars3 i { display: block; width: 4px; background: currentColor; border-radius: 1px; }
.bars3 i:nth-child(1) { height: 55%; } .bars3 i:nth-child(2) { height: 77%; } .bars3 i:nth-child(3) { height: 100%; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff; --fill: var(--steel-ink);
  position: relative; display: inline-flex; align-items: center; gap: 12px; isolation: isolate; overflow: hidden;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font-family: var(--sans); font-weight: 500; font-size: .9rem; letter-spacing: .07em; text-transform: uppercase;
  padding: 17px 24px; border-radius: 999px; border: 1px solid var(--bg);
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill);
  transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { text-decoration: none; box-shadow: 0 14px 30px -14px rgba(27, 43, 69, .55); }
.btn .btn-label { display: inline-flex; align-items: center; gap: 12px; transition: transform .2s ease-out; }
.btn .arrow { display: inline-block; transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-ghost { --bg: transparent; --fg: var(--navy); --fill: var(--navy); border-color: rgba(27, 43, 69, .28); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: #fff; border-color: var(--navy); }
.btn-light { --bg: var(--paper); --fg: var(--navy); --fill: var(--steel-light); }
.btn-sm { padding: 11px 18px; font-size: .8rem; }
.soon { font-size: .68rem; letter-spacing: .12em; padding: 3px 8px; border-radius: 999px; background: var(--mist); color: var(--steel-ink); transition: background .3s, color .3s; }
.btn-ghost:hover .soon, .btn-ghost:focus-visible .soon { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 252, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(247, 249, 252, .94); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: auto; transition: transform .6s var(--ease-out); }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--caps); font-size: 1.12rem; font-weight: 500; letter-spacing: .12em; }
.brand-sub { font-family: var(--sans); font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--steel-ink); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  position: relative; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; letter-spacing: .04em;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--steel);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav .lang { font-family: var(--caps); font-size: .85rem; letter-spacing: .1em; border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.nav .lang::after { display: none; }
@media (max-width: 1020px) { .nav .hide-sm { display: none; } }
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand img { width: 40px; }
  .brand-name { font-size: 1rem; letter-spacing: .1em; }
  .nav { gap: 12px; }
  .nav .btn-sm { padding: 9px 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); }
.hero::before { /* faint analyst grid, fading out */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(91,127,174,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(91,127,174,.09) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero > .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); line-height: 1.02; margin-bottom: 26px; }
.hero h1 .line { display: block; }
.lede { font-size: clamp(1.06rem, 1.35vw, 1.2rem); color: var(--muted); max-width: 35em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-size: .86rem; color: var(--muted); letter-spacing: .03em; }
.hero-note li { display: inline-flex; align-items: center; gap: 9px; }
.hero-note .bars3 { color: var(--steel); height: 11px; }

/* Rotating word */
.rotator { display: inline-block; position: relative; vertical-align: bottom; height: 1.08em; overflow: hidden; transition: width .7s var(--ease-out); }
.rotator .w { display: block; white-space: nowrap; color: var(--steel-ink); font-style: italic; line-height: 1.08em; transition: transform .8s var(--ease-out), opacity .8s var(--ease-out), filter .8s var(--ease-out); }
.rotator .w + .w { position: absolute; left: 0; top: 0; transform: translateY(105%); opacity: 0; }
.rotator.ready .w { position: absolute; left: 0; top: 0; }
.js .rotator.ready .w { transform: translateY(105%); opacity: 0; }
.js .rotator .w.is-out { transform: translateY(-105%); opacity: 0; filter: blur(3px); }
.js .rotator .w.is-in { transform: translateY(0); opacity: 1; filter: none; }
.js .rotator .w.is-wait { transform: translateY(105%); opacity: 0; transition: none; }
.rotator::after { /* thin steel underline that re-draws on each swap */
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: 2px; background: var(--steel-light);
  transform-origin: left; transform: scaleX(1);
}
.js .rotator.swap::after { animation: underline 1.1s var(--ease-out); }
@keyframes underline { 0% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); } }

/* Hero visual: the photo leads, the animated mark sits on it as a badge */
.hero-visual { position: relative; width: 100%; max-width: 580px; justify-self: end; padding-left: 52px; }
.hero-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--navy); box-shadow: 0 50px 90px -50px rgba(15,26,44,.7); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(15,26,44,.82)); pointer-events: none; }
.hero-visual .mark-stage {
  position: absolute; left: 0; top: 11%; z-index: 2; width: clamp(128px, 32%, 176px);
  border-radius: 50%; background: rgba(247,249,252,.94); box-shadow: 0 26px 50px -22px rgba(15,26,44,.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-visual .mark-stage::before { inset: 12%; }
.hero-visual .tf-mark { width: 64%; }
.hero-visual .mark-caption { position: absolute; z-index: 2; left: 78px; right: 24px; bottom: 22px; margin: 0; justify-content: flex-start; color: #fff; font-size: .68rem; }
.hero-visual .mark-caption span[aria-hidden] { color: var(--steel-light); }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-photo { animation: photoIn 1.5s var(--ease-out) .1s both; }
  .js .hero-visual .mark-stage { animation: badgeIn 1s var(--ease-out) .55s both; }
  .js .hero-visual .mark-caption { animation: rise 1s var(--ease-out) 1.2s both; }
}
@keyframes photoIn { from { clip-path: inset(100% 0 0 0 round 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }
@keyframes badgeIn { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }

/* Photos: fill their frame, drift slowly on scroll (site.js) */
[data-drift] { overflow: hidden; }
[data-drift] img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .js [data-drift] img { transform: scale(1.12); will-change: transform; } }
.side-photo { margin-top: 34px; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.mark-stage { position: relative; width: min(100%, 470px); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.mark-stage::before { /* soft steel halo */
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 60% 55%, rgba(169,191,217,.55), rgba(169,191,217,.12) 55%, transparent 70%);
  filter: blur(6px);
}
.mark-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mark-ring circle { fill: none; stroke: rgba(91,127,174,.22); stroke-width: 1; }
.mark-ring .dash { stroke-dasharray: 2 7; stroke: rgba(91,127,174,.35); }
.tf-mark { position: relative; width: 78%; height: auto; overflow: visible; }
.mark-caption {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px;
  font-family: var(--sans); font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--navy);
}
.mark-caption span[aria-hidden] { color: var(--steel); }

/* Logo intro (only when JS is on and motion is allowed; otherwise the mark is simply there) */
.tf-mark .tf-T, .tf-mark .tf-F, .tf-mark .tf-bar { transform-box: fill-box; }
.tf-mark .tf-bar { transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .js .tf-mark .tf-T { animation: tDrop .8s var(--ease-out) .05s both; }
  .js .tf-mark .tf-F { animation: fSlide .8s var(--ease-out) .38s both; }
  .js .tf-mark .tf-bar1 { animation: barGrow .5s var(--ease-out) .82s both, breathe 3.6s ease-in-out 2.2s infinite; }
  .js .tf-mark .tf-bar2 { animation: barGrow .5s var(--ease-out) .96s both, breathe 3.6s ease-in-out 2.5s infinite; }
  .js .tf-mark .tf-bar3 { animation: barGrow .5s var(--ease-out) 1.1s both, breathe 3.6s ease-in-out 2.8s infinite; }
  .js .tf-mark .tf-arc-draw { stroke-dasharray: 1 1; animation: arcDraw 1.05s var(--ease-io) .58s both; }
  .js .mark-ring { animation: ringIn 1.6s var(--ease-out) .2s both; }
  .js .mark-ring .dash { animation: spin 60s linear infinite; transform-origin: 50% 50%; }
}
@keyframes tDrop { from { transform: translateY(-34%); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes fSlide { from { transform: translateX(28%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.9); } }
@keyframes arcDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ringIn { from { opacity: 0; transform: scale(.92) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero text entrance */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise 1s var(--ease-out) both; }
  .js .hero-copy > :nth-child(1) { animation-delay: .1s; }
  .js .hero-copy > :nth-child(2) { animation-delay: .22s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .4s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .55s; }
  .js .hero-copy > :nth-child(5) { animation-delay: .7s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Tools marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--white); overflow: hidden; }
.marquee-inner { display: flex; align-items: center; gap: 28px; padding: 18px 0; }
.marquee-label { flex: none; margin: 0; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--steel-ink); font-weight: 500; }
.marquee-track { display: flex; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-list { display: flex; flex: none; gap: 0; list-style: none; }
.marquee-list li { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
.marquee-list li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--steel-light); }
@media (prefers-reduced-motion: no-preference) {
  .js .marquee-list { animation: marquee 38s linear infinite; }
  .js .marquee:hover .marquee-list { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee-list[aria-hidden] { display: none; } .marquee-list { flex-wrap: wrap; row-gap: 6px; } .marquee-track { -webkit-mask-image: none; mask-image: none; } }
html:not(.js) .marquee-list[aria-hidden] { display: none; }
html:not(.js) .marquee-list { flex-wrap: wrap; row-gap: 6px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section.alt { background: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2, .about h2, .contact h2, .story-head h2 { font-size: clamp(2.3rem, 4.4vw, 3.9rem); margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 1.12rem; max-width: 40em; }

/* Divider made of the three rising bars */
.divider { display: flex; justify-content: center; padding: 0; height: 0; position: relative; z-index: 2; }
.divider .bars3 { height: 34px; gap: 6px; color: var(--steel); transform: translateY(-100%); }
.divider .bars3 i { width: 7px; border-radius: 1.5px; transform-origin: bottom; }
@media (prefers-reduced-motion: no-preference) {
  .js .divider .bars3 i { transform: scaleY(0); transition: transform .7s var(--ease-out); }
  .js .divider .bars3 i:nth-child(2) { transition-delay: .12s; }
  .js .divider .bars3 i:nth-child(3) { transition-delay: .24s; }
  .js .divider.in .bars3 i { transform: scaleY(1); }
}

/* Scroll reveals: words rise out of a clip, blocks slide up and un-mask */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
  .js .split .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
  .js .split .wd > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
  .js .split.in .wd > span { transform: none; }
}

/* ---------- Services ---------- */
.services-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-layout .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.service-list { list-style: none; border-top: 1px solid var(--line); }
.service {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 6px 22px; padding: 34px 8px 34px 0;
  border-bottom: 1px solid var(--line);
}
.service::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--steel); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.service:hover::before { transform: scaleX(1); }
.service .num { font-family: var(--caps); font-size: .95rem; letter-spacing: .1em; color: var(--steel-ink); padding-top: 9px; }
.service h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin-bottom: 10px; transition: transform .5s var(--ease-out); }
.service:hover h3 { transform: translateX(6px); }
.service p { color: var(--muted); margin-bottom: 14px; }
.service .num, .service h3, .service p, .service .tags { grid-column: 2; }
.service .num { grid-column: 1; grid-row: 1 / span 3; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { font-size: .82rem; letter-spacing: .03em; padding: 5px 12px; border-radius: 999px; background: var(--mist); color: var(--navy); }
.on-night .tags li { background: rgba(169,191,217,.14); color: var(--on-night); }
.service-cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 34px; padding: 28px 30px; border-radius: var(--radius); background: var(--navy); color: var(--on-night); }
.service-cta h3 { color: #fff; font-size: 1.7rem; margin-bottom: 4px; }
.service-cta p { margin: 0; color: var(--on-night-muted); }

/* ---------- Story (Analyser, Optimiser, Livrer de la valeur) ---------- */
.on-night { background: var(--night); color: var(--on-night); position: relative; isolation: isolate; }
.on-night h2, .on-night h3 { color: #fff; }
.on-night h2 em { color: var(--steel-light); }
.on-night p { color: var(--on-night-muted); }
.on-night a:not(.btn) { color: #fff; }
.mesh { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mesh::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 18% 22%, rgba(91,127,174,.38), transparent 70%),
    radial-gradient(35% 40% at 85% 30%, rgba(169,191,217,.18), transparent 70%),
    radial-gradient(45% 40% at 60% 95%, rgba(62,98,144,.45), transparent 70%);
}
.mesh::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; }
@media (prefers-reduced-motion: no-preference) { .js .mesh::before { animation: meshDrift 26s ease-in-out infinite alternate; } }
@keyframes meshDrift { from { transform: translate3d(-3%, -2%, 0) rotate(0deg); } to { transform: translate3d(3%, 2%, 0) rotate(8deg); } }

.story { padding: clamp(72px, 10vw, 130px) 0 clamp(56px, 7vw, 96px); }
.story-head > * { max-width: 820px; }
.story-head p { font-size: 1.12rem; max-width: 38em; }
.story-track { position: relative; }
.story-pin { padding: 40px 0 clamp(64px, 9vw, 120px); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.acts { list-style: none; display: grid; gap: 48px; }
.act .act-num { display: flex; align-items: center; gap: 14px; font-family: var(--caps); font-size: .9rem; letter-spacing: .16em; color: var(--steel-light); margin-bottom: 14px; }
.act .act-num::after { content: ""; flex: 0 0 48px; height: 1px; background: rgba(169,191,217,.45); }
.act h3 { font-size: clamp(2.4rem, 4.2vw, 3.8rem); margin-bottom: 18px; }
.act p { font-size: 1.08rem; max-width: 30em; }
.act .tags { margin-top: 6px; }
.act .scene-slot { margin-top: 28px; }
.rail { display: none; }
.stage { position: relative; }
.scene { width: 100%; height: auto; overflow: visible; }
.scene text { font-family: var(--sans); }
.scene .card-bg { fill: #16263F; stroke: rgba(169,191,217,.42); stroke-width: 1.2; }
.scene .card-label { fill: #E9EFF7; font-size: 15px; font-weight: 500; letter-spacing: .01em; }
.scene .card-ico { fill: none; stroke: #A9BFD9; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scene .k-postit .card-bg { fill: #24395A; }
.scene .k-retype .card-bg { fill: #1A2A44; stroke-dasharray: 5 4; }
.scene .strike { stroke: #E9EFF7; stroke-width: 2.2; stroke-linecap: round; }
.scene .retire { fill: var(--steel-light); font-size: 11px; letter-spacing: .2em; font-weight: 500; }
.scene .tangle { fill: none; stroke: rgba(169,191,217,.5); stroke-width: 1.4; stroke-dasharray: 4 6; }
.scene .conn { fill: none; stroke: #A9BFD9; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scene .node { fill: #A9BFD9; }
.scene .packet { fill: #EAF1FA; }
.scene .packet-glow { fill: rgba(169,191,217,.35); }
.scene .badge rect { fill: var(--steel-ink); }
.scene .badge text { fill: #fff; font-size: 11.5px; letter-spacing: .14em; font-weight: 500; }
.scene .dash-bg { fill: var(--paper); }
.scene .dash-title { fill: var(--steel-ink); font-size: 11px; letter-spacing: .2em; font-weight: 500; }
.scene .kpi { font-variant-numeric: lining-nums; fill: var(--navy); font-family: var(--serif); font-size: 54px; font-weight: 700; }
.scene .kpi-label { fill: var(--muted); font-size: 12.5px; }
.scene .dash-base { stroke: var(--line); stroke-width: 1.5; }
.scene .dash-line { fill: none; stroke: var(--steel); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scene .dash-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.scene .dash-arc { fill: none; stroke: var(--steel-light); stroke-width: 3; stroke-linecap: round; }
.principles { display: flex; flex-wrap: wrap; gap: 12px 34px; list-style: none; margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid rgba(169,191,217,.22); }
.principles li { display: inline-flex; align-items: center; gap: 10px; color: var(--on-night); font-size: .98rem; }
.principles .bars3 { color: var(--steel-light); height: 12px; }

/* Pinned mode (desktop with motion; set by site.js) */
.story-pinned .story-track { height: 330vh; }
.story-pinned .story-pin { position: sticky; top: 0; height: 100vh; min-height: 560px; display: flex; align-items: center; padding: 76px 0 24px; }
.story-pinned .story-pin > .wrap { width: 100%; }
.story-pinned .acts { display: grid; grid-template-areas: "a"; gap: 0; }
.story-pinned .act { grid-area: a; opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); pointer-events: none; }
.story-pinned .act.current { opacity: 1; transform: none; pointer-events: auto; }
.story-pinned .act.past { transform: translateY(-26px); }
.story-pinned .rail { display: flex; align-items: flex-end; gap: 26px; margin-top: 44px; }
.rail-step { display: grid; gap: 10px; justify-items: start; font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-night-muted); }
.rail-bar { position: relative; width: 12px; background: rgba(169,191,217,.18); border-radius: 2px; overflow: hidden; }
.rail-step:nth-child(1) .rail-bar { height: 22px; } .rail-step:nth-child(2) .rail-bar { height: 31px; } .rail-step:nth-child(3) .rail-bar { height: 40px; }
.rail-fill { position: absolute; inset: 0; background: linear-gradient(#A9BFD9, #5B7FAE); transform-origin: bottom; transform: scaleY(0); }
.rail-step.on { color: #fff; }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--on-night-muted); transition: opacity .5s; }
.scroll-hint i { width: 1px; height: 26px; background: linear-gradient(var(--steel-light), transparent); }
@media (prefers-reduced-motion: no-preference) { .scroll-hint i { animation: hint 1.8s ease-in-out infinite; transform-origin: top; } }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
html:not(.story-pinned) .scroll-hint { display: none; }
.story-pinned .scene-slot { display: none; }
.scene-slot { max-width: 620px; }
@media (max-width: 899px) { .scene-slot { margin-inline: calc(var(--gutter) * -1 + 4px); } }
@media (min-width: 900px) {
  .story-stacked .acts { gap: 72px; }
  .story-stacked .act { display: grid; grid-template-columns: 1fr 1.1fr; grid-template-rows: 1fr repeat(4, auto) 1fr; column-gap: clamp(28px, 5vw, 80px); }
  .story-stacked .act > :not(.scene-slot) { grid-column: 1; }
  .story-stacked .act > .act-num { grid-row: 2; } .story-stacked .act > h3 { grid-row: 3; } .story-stacked .act > p:not(.act-num) { grid-row: 4; } .story-stacked .act > .tags { grid-row: 5; }
  .story-stacked .act .scene-slot { grid-column: 2; grid-row: 1 / -1; margin-top: 0; align-self: center; }
}

/* Stacked mode (mobile, reduced motion, no JS) */
.story-stacked .story-grid { grid-template-columns: 1fr; }
.story-stacked .stage { display: none; }
.story-stacked .act { padding-bottom: 8px; }
html:not(.js) .story-grid { align-items: start; }
@media (max-width: 899px) {
  .story-grid { grid-template-columns: 1fr; }
  .act h3 { font-size: 2.5rem; }
}

/* Debug: ?story=0.5 freezes the pinned story on screen (used for screenshots only) */
.debug-story .story-pin { position: fixed !important; inset: 0; z-index: 999; background: var(--night); }

/* ---------- Cases ---------- */
.cases { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.case { display: grid; grid-template-columns: 260px 1fr; gap: 20px clamp(24px, 5vw, 72px); padding: clamp(36px, 5vw, 60px) 0; border-bottom: 1px solid var(--line); }
.case-meta { display: grid; align-content: start; gap: 6px; }
.case-num { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: clamp(4rem, 7vw, 6rem); font-weight: 600; line-height: .85; color: transparent; -webkit-text-stroke: 1.2px var(--steel); margin-bottom: 14px; }
.sector { font-weight: 500; color: var(--navy); }
.place { font-size: .9rem; color: var(--muted); }
.case h3 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); margin-bottom: 20px; max-width: 22em; }
.case dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 36px; margin: 0 0 22px; }
.case dt { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--steel-ink); font-weight: 500; margin-bottom: 6px; }
.case dd { margin: 0; color: var(--muted); }
.cases-note { margin-top: 26px; font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case-meta { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 16px; }
  .case-num { font-size: 3.2rem; margin: 0; }
  .case dl { grid-template-columns: 1fr; }
}

/* Hub animation: one central hub, one connector per client */
.hub { margin-top: 30px; padding: clamp(14px, 2.5vw, 26px); border-radius: var(--radius); background: var(--night); position: relative; overflow: hidden; isolation: isolate; }
.hub svg { width: 100%; height: auto; }
.hub text { font-family: var(--sans); }
.hub .box { fill: #16263F; stroke: rgba(169,191,217,.42); stroke-width: 1.2; }
.hub .box-label { fill: #E9EFF7; font-size: 15px; font-weight: 500; }
.hub .box-sub { fill: #A9BFD9; font-size: 11.5px; letter-spacing: .14em; }
.hub .wire { fill: none; stroke: rgba(169,191,217,.38); stroke-width: 1.6; }
.hub .hub-core { fill: var(--steel); }
.hub .hub-ring { fill: none; stroke: rgba(169,191,217,.5); stroke-width: 1.2; }
.hub .hub-label { fill: #fff; font-size: 13px; letter-spacing: .16em; font-weight: 500; }
.hub .key { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hub .pk { fill: #EAF1FA; }
.hub .pk-a { fill: #A9BFD9; } .hub .pk-b { fill: #EAF1FA; } .hub .pk-c { fill: #7E9CC4; }
.hub .col-title { fill: #A9BFD9; font-size: 11px; letter-spacing: .22em; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .js .hub .hub-ring { animation: pulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes pulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.hub-caption { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Formats ---------- */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; }
.format {
  position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s;
}
.format:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(27,43,69,.45); border-color: var(--steel-light); }
.format h3 { font-size: 2.1rem; margin-bottom: 6px; }
.format .for { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-ink); font-weight: 500; margin-bottom: 18px; }
.format p { color: var(--muted); }
.format .ticks { margin-top: auto; padding-top: 10px; }
.format.featured { background: radial-gradient(circle at 108% 112%, transparent 0 128px, rgba(169,191,217,.13) 129px 142px, transparent 143px), var(--navy); border-color: var(--navy); color: var(--on-night); }
.format.featured h3 { color: #fff; }
.format.featured p { color: var(--on-night-muted); }
.format.featured .for { color: var(--steel-light); }
.format.featured .ticks li { color: var(--on-night); }
.format.featured .ticks li::before { background: var(--steel-light); }
.format .tag { position: absolute; top: -12px; left: 30px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--steel-ink); color: #fff; }
.ticks { list-style: none; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 2px; background: var(--steel); }
.formats-note { margin-top: 26px; color: var(--muted); }
@media (max-width: 900px) { .formats { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: linear-gradient(155deg, #2A456E 0%, #1B2B45 48%, #0F1A2C 100%);
  display: grid; place-items: center;
}
.portrait::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 70% 30%, rgba(169,191,217,.4), transparent 70%), radial-gradient(50% 40% at 20% 90%, rgba(91,127,174,.5), transparent 70%); }
.portrait::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .08; mix-blend-mode: overlay; }
.portrait img { width: 62%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.portrait .arcs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.portrait .arcs circle { fill: none; stroke: rgba(169,191,217,.18); }
.portrait figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; color: var(--on-night); }
.portrait figcaption b { font-family: var(--caps); font-weight: 500; letter-spacing: .14em; font-size: 1rem; }
.portrait figcaption span { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--steel-light); }
.about .body p { color: var(--muted); font-size: 1.08rem; }
.about .body p.hello { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.35; color: var(--navy); font-weight: 500; }
.why { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.why li { padding: 20px 18px 0 0; }
.why li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.why b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); line-height: 1.25; margin-bottom: 6px; }
.why span { font-size: .92rem; color: var(--muted); display: block; }
.why .count { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--steel-ink); line-height: 1; display: block; margin-bottom: 6px; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .why { grid-template-columns: 1fr; }
  .why li, .why li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 11vw, 150px) 0; }
.contact .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.contact h2 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
.contact p { font-size: 1.12rem; max-width: 34em; }
.contact-box { padding: 32px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(169,191,217,.22); backdrop-filter: blur(4px); }
.contact-box small { display: block; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--steel-light); margin-bottom: 8px; }
.contact-box .mail {
  display: inline-block; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 600; color: #fff; text-decoration: none; margin-bottom: 22px;
  background: linear-gradient(var(--steel-light), var(--steel-light)) no-repeat 0 100% / 0 1px; transition: background-size .6s var(--ease-out); word-break: break-word;
}
.contact-box .mail:hover { background-size: 100% 1px; }
.contact-box p { font-size: .92rem; margin: 18px 0 0; }
.contact-box .biz { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(169,191,217,.18); font-size: .9rem; color: var(--on-night-muted); }
.contact-box .biz b { font-family: var(--caps); font-weight: 500; letter-spacing: .12em; color: var(--on-night); }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-muted); padding: 46px 0 40px; border-top: 1px solid rgba(169,191,217,.14); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.foot-brand img { height: 46px; width: auto; }
.site-footer p { margin: 0; }
.site-footer p b { font-family: var(--caps); font-weight: 500; letter-spacing: .1em; color: var(--on-night); }
.foot-links { display: flex; gap: 22px; list-style: none; }
.site-footer a { color: var(--on-night); }

/* ---------- Legal pages + 404 ---------- */
.legal { padding: clamp(48px, 8vw, 100px) 0 clamp(64px, 9vw, 120px); }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 14px; }
.legal h2 { font-size: 1.9rem; margin: 2.2em 0 .5em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin-bottom: 1em; }
.legal li::marker { color: var(--steel); }
.legal .updated { font-size: .9rem; color: var(--steel-ink); letter-spacing: .04em; }
.legal .box { padding: 24px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--steel); margin-bottom: 1.6em; }
.legal .box p:last-child { margin: 0; }
.legal .sep { border: 0; border-top: 1px solid var(--line); margin: 40px 0 28px; }
.legal-mark { width: 120px; height: auto; margin-bottom: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero > .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; justify-self: start; padding-left: 0; margin-top: 18px; }
  .hero-photo { aspect-ratio: 5 / 4; }
  .hero-photo img { object-position: 50% 42%; }
  .hero-visual .mark-stage { left: auto; right: 14px; top: auto; bottom: -34px; width: 104px; }
  .hero-visual .mark-caption { left: 18px; right: 130px; bottom: 16px; font-size: .6rem; letter-spacing: .14em; gap: 6px; white-space: normal; }
  .hero { padding-top: 20px; padding-bottom: 72px; }
  .hero > .wrap { gap: 18px; }
  .services-layout { grid-template-columns: 1fr; }
  .services-layout .section-head { position: static; margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .service { grid-template-columns: 1fr; padding: 26px 0; }
  .service .num { grid-column: 1; grid-row: auto; padding: 0; }
  .service .num, .service h3, .service p, .service .tags { grid-column: 1; }
  .btn { padding: 15px 22px; }
  .actions .btn { width: 100%; justify-content: center; }
  .service-cta { padding: 24px 22px; }
  .contact-box { padding: 24px 20px; }
}

@media print {
  .site-header, .marquee, .hub, .stage, .divider { display: none !important; }
  .on-night { background: #fff; color: #000; }
  .reveal, .split .wd > span { opacity: 1 !important; transform: none !important; }
}

/* keep the tagline on one line under the hero mark */
.mark-caption{white-space:nowrap;letter-spacing:.16em}
@media (max-width:480px){.mark-caption{white-space:normal}}

/* ---------- Light outline button (on photos / dark) ---------- */
.btn-line { --bg: transparent; --fg: #fff; --fill: rgba(255,255,255,.14); border-color: rgba(255,255,255,.42); }
.btn-line:hover { box-shadow: none; }

/* ---------- Deliverables ---------- */
.deliv-head { display: grid; grid-template-columns: 1fr .92fr; gap: clamp(28px, 5vw, 72px); align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
.deliv-head .section-head { margin-bottom: 0; }
.deliv-photo { aspect-ratio: 16 / 10; border-radius: var(--radius); box-shadow: 0 40px 70px -46px rgba(15,26,44,.6); }
.bento { display: grid; grid-template-columns: 1.38fr 1fr; grid-template-areas: "dash sop" "flow flow"; gap: 22px; }
.deliv { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 26px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); transition: box-shadow .6s var(--ease-out), border-color .4s; }
.deliv:hover { box-shadow: 0 34px 64px -40px rgba(27,43,69,.5); border-color: var(--steel-light); }
.deliv-dash { grid-area: dash; } .deliv-sop { grid-area: sop; } .deliv-flow { grid-area: flow; }
.deliv-top { display: flex; gap: 16px; align-items: baseline; }
.deliv-num { font-family: var(--caps); font-size: .9rem; letter-spacing: .12em; color: var(--steel-ink); }
.deliv h3 { font-size: clamp(1.55rem, 2vw, 1.9rem); margin-bottom: 6px; }
.deliv-top p { margin: 0; color: var(--muted); font-size: .98rem; }
.mock { border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.mock text { font-family: var(--sans); }
.mock-note { margin: auto 0 0; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* dashboard */
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--navy); color: var(--on-night-muted); font-size: .74rem; letter-spacing: .06em; }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(169,191,217,.38); }
.win-bar span { margin-left: 10px; }
.dash-body { display: grid; gap: 12px; padding: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.kpi small { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 1.95rem; font-weight: 700; line-height: 1.05; color: var(--navy); }
.kpi em { font-style: normal; font-size: .74rem; font-weight: 500; color: #2F7558; }
.charts { display: grid; grid-template-columns: 1fr 112px; gap: 14px; align-items: center; padding: 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.chart-bars { width: 100%; height: auto; overflow: visible; }
.chart-bars .base { stroke: var(--line); stroke-width: 1; }
.chart-bars .bar { fill: var(--steel-light); transform-box: fill-box; transform-origin: 50% 100%; }
.chart-bars .bar.hi { fill: var(--steel); }
.chart-line { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.chart-bars .months text { fill: var(--muted); font-size: 10px; text-anchor: middle; }
.donut svg { width: 100%; height: auto; }
.donut-bg { fill: none; stroke: var(--mist); stroke-width: 14; }
.seg { fill: none; stroke-width: 14; }
.seg.s1, .legend .s1 { stroke: var(--navy); background: var(--navy); }
.seg.s2, .legend .s2 { stroke: var(--steel); background: var(--steel); }
.seg.s3, .legend .s3 { stroke: var(--steel-light); background: var(--steel-light); }
.legend { list-style: none; display: grid; gap: 3px; margin-top: 8px; font-size: .7rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }

.mock-dash { flex: 1; display: flex; flex-direction: column; }
.mock-dash .dash-body { flex: 1; align-content: start; }
.dash-table { list-style: none; display: grid; border-radius: 10px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.dash-table li { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; font-size: .8rem; }
.dash-table li + li { border-top: 1px solid var(--line); }
.dash-table b { font-weight: 500; color: var(--navy); }
.dash-table span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-table em { font-style: normal; font-size: .68rem; font-weight: 500; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.st-ok { background: #E3F1EA; color: #2F7558; } .st-sent { background: var(--mist); color: var(--steel-ink); } .st-wait { background: #F4EEDF; color: #7A5B1E; }
@media (prefers-reduced-motion: no-preference) {
  .js .dash-table li { opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + 1.2s); }
  .js .deliv.in .dash-table li { opacity: 1; transform: none; }
}
@media (max-width: 560px) { .dash-table li { grid-template-columns: 1fr auto; } .dash-table li span { grid-column: 1; grid-row: 2; font-size: .74rem; } .dash-table em { grid-row: 1 / span 2; grid-column: 2; } }

/* SOP page */
.mock-sop { flex: 1; display: grid; place-items: center; padding: clamp(18px, 3vw, 32px) clamp(14px, 2.4vw, 26px); background: linear-gradient(160deg, var(--mist), #DCE5F0); }
.sop-page { width: 100%; max-width: 410px; padding: 24px 22px 22px; border-radius: 6px; background: #fff; transform: rotate(-1.2deg); box-shadow: 0 34px 50px -30px rgba(15,26,44,.5), 0 2px 6px rgba(15,26,44,.06); }
.sop-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.sop-head .bars3 { flex: none; height: 24px; color: var(--steel); gap: 3px; }
.sop-head .bars3 i { width: 5px; }
.sop-head small { display: block; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-ink); }
.sop-head b { display: block; font-family: var(--serif); font-size: 1.32rem; font-weight: 600; line-height: 1.15; color: var(--navy); }
.sop-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 16px; }
.sop-meta dt { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sop-meta dd { margin: 0; font-size: .86rem; font-weight: 500; color: var(--navy); }
.sop-steps { list-style: none; display: grid; gap: 11px; }
.sop-steps li { display: grid; grid-template-columns: 18px 1fr; gap: 11px; align-items: start; font-size: .86rem; line-height: 1.4; }
.sop-steps i { position: relative; width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid var(--steel); border-radius: 5px; background: var(--steel); }
.sop-steps i::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sop-tip { margin: 16px 0 0; padding: 10px 12px; border-left: 3px solid var(--steel); border-radius: 0 6px 6px 0; background: var(--mist); font-size: .8rem; line-height: 1.45; color: var(--ink); }
.sop-tip b { display: block; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-ink); }

/* process before / after */
.mock-flow { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 6px; padding: 12px; }
.flow-panel { position: relative; padding: 30px 6px 6px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.flow-panel svg { width: 100%; height: auto; overflow: visible; }
.flow-tag { position: absolute; top: 10px; left: 14px; font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.flow-panel.after .flow-tag { color: var(--steel-ink); }
.mock-flow text { font-size: 14px; font-weight: 500; text-anchor: middle; fill: var(--navy); }
.mock-flow .pop { transform-box: fill-box; transform-origin: center; }
.before rect { fill: var(--paper); stroke: rgba(91,127,174,.45); stroke-width: 1.2; }
.before .retype rect { stroke-dasharray: 4 3; fill: #fff; }
.before .retype text { fill: var(--muted); }
.tangle { fill: none; stroke: rgba(91,127,174,.5); stroke-width: 1.3; stroke-dasharray: 4 5; }
.after rect { fill: var(--mist); stroke: var(--steel-light); stroke-width: 1.2; }
.after .core rect { fill: var(--navy); stroke: var(--navy); }
.after .core text { fill: #fff; }
.rail-line { stroke: var(--steel); stroke-width: 2; stroke-dasharray: 1; }
.packet { fill: var(--steel); }
.flow-arrow svg { width: 100%; height: auto; }
.flow-arrow path { fill: none; stroke: var(--steel); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }

@media (prefers-reduced-motion: no-preference) {
  .js .chart-bars .bar { transform: scaleY(0); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + .25s); }
  .js .deliv.in .chart-bars .bar { transform: none; }
  .js .chart-line { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io) .9s; }
  .js .deliv.in .chart-line { stroke-dashoffset: 0; }
  .js .seg { transition: stroke-dasharray 1.1s var(--ease-out) .5s; }
  .js .deliv:not(.in) .seg { stroke-dasharray: 0 100; }
  .js .sop-steps i { background: transparent; transition: background .3s ease; transition-delay: calc(var(--i, 0) * .32s + .6s); }
  .js .sop-steps i::after { transform: rotate(45deg) scale(0); transition: transform .4s var(--ease-out); transition-delay: calc(var(--i, 0) * .32s + .65s); }
  .js .deliv.in .sop-steps i { background: var(--steel); }
  .js .deliv.in .sop-steps i::after { transform: rotate(45deg) scale(1); }
  .js .mock-flow .pop { opacity: 0; transform: scale(.6); transition: opacity .5s ease, transform .7s var(--ease-out); }
  .js .mock-flow .before .pop { transition-delay: calc(var(--i, 0) * 90ms + .3s); }
  .js .mock-flow .after .pop { transition-delay: calc(var(--i, 0) * 160ms + 1.3s); }
  .js .deliv.in .mock-flow .pop { opacity: 1; transform: none; }
  .js .deliv.in .tangle { animation: march 3.5s linear infinite; }
  .js .flow-arrow path { stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease-out) 1s; }
  .js .deliv.in .flow-arrow path { stroke-dashoffset: 0; }
  .js .rail-line { stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-io) 1.3s; }
  .js .deliv.in .rail-line { stroke-dashoffset: 0; }
  .js .packet { opacity: 0; }
  .js .deliv.in .packet { animation: packet 2.6s var(--ease-io) 2.4s infinite; }
}
@keyframes march { to { stroke-dashoffset: -36; } }
@keyframes packet { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(177px); } }

@media (min-width: 961px) {
  .deliv-flow { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); grid-template-rows: 1fr auto; gap: 20px 36px; }
  .deliv-flow .deliv-top { grid-column: 1; grid-row: 1; flex-direction: column; gap: 10px; }
  .deliv-flow .mock { grid-column: 2; grid-row: 1 / span 2; }
  .deliv-flow .mock-note { grid-column: 1; grid-row: 2; }
}
@media (max-width: 960px) {
  .deliv-head { grid-template-columns: 1fr; align-items: start; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "dash" "sop" "flow"; }
}
@media (max-width: 560px) {
  .deliv { padding: 20px 16px; }
  .kpis { gap: 6px; }
  .kpi { padding: 8px; }
  .kpi b { font-size: 1.45rem; }
  .kpi small { white-space: normal; font-size: .56rem; letter-spacing: .06em; line-height: 1.25; }
  .charts { grid-template-columns: 1fr 76px; gap: 8px; padding: 10px 8px; }
  .legend { font-size: .62rem; }
  .mock-flow { grid-template-columns: 1fr; }
  .flow-arrow { width: 34px; justify-self: center; transform: rotate(90deg); }
  .sop-page { padding: 20px 16px; }
}

/* ---------- Case photo ---------- */
.case-photo { position: relative; margin-top: 28px; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.case-photo figcaption { position: absolute; left: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(15,26,44,.6); color: #fff; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- CTA band over a photo ---------- */
.cta-band { padding: clamp(96px, 13vw, 180px) 0; overflow: hidden; }
.band-bg { position: absolute; inset: 0; z-index: -1; display: block; }
.band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,26,44,.95) 0%, rgba(15,26,44,.82) 40%, rgba(15,26,44,.3) 78%, rgba(15,26,44,.15)); }
.band-bg img { object-position: 62% 50%; }
.band-inner > * { max-width: 660px; }
.cta-band h2 { font-size: clamp(2.3rem, 4.4vw, 3.9rem); margin-bottom: 18px; }
.cta-band p { font-size: 1.14rem; color: var(--on-night); max-width: 36em; }
.cta-band .actions { margin-top: 30px; }
@media (max-width: 760px) { .band-bg::after { background: linear-gradient(180deg, rgba(15,26,44,.55), rgba(15,26,44,.88) 70%); } }

/* ---------- Steps: what happens when you write ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.step { padding-right: clamp(18px, 3vw, 44px); }
.step-bar { position: relative; display: block; height: 72px; margin-bottom: 26px; }
.step-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; }
.step:not(:last-child) .step-bar::after { right: calc(-1 * clamp(18px, 3vw, 44px)); }
.step-bar i { position: absolute; left: 0; bottom: 0; width: 14px; border-radius: 2px 2px 0 0; background: linear-gradient(var(--steel-light), var(--steel)); transform-origin: bottom; }
.step:nth-child(1) .step-bar i { height: 42%; } .step:nth-child(2) .step-bar i { height: 70%; } .step:nth-child(3) .step-bar i { height: 100%; }
.step-num { display: block; margin-bottom: 10px; font-family: var(--caps); font-size: .9rem; letter-spacing: .14em; color: var(--steel-ink); }
.step h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); margin-bottom: 12px; max-width: 13em; }
.step p { color: var(--muted); max-width: 26em; }
.steps-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(30px, 4vw, 48px); padding-top: 28px; border-top: 1px solid var(--line); }
.steps-cta p { margin: 0; flex: 1 1 280px; color: var(--muted); font-size: .96rem; max-width: 40em; }
@media (prefers-reduced-motion: no-preference) {
  .js .step .step-bar i { transform: scaleY(0); transition: transform .8s var(--ease-out) .35s; }
  .js .step .step-bar::after { transform: scaleX(0); transition: transform 1.1s var(--ease-out) .1s; }
  .js .step.in .step-bar i { transform: none; }
  .js .step.in .step-bar::after { transform: none; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step { padding-right: 0; }
  .step-bar { height: 52px; margin-bottom: 18px; }
  .step:not(:last-child) .step-bar::after { right: 0; }
}

/* ---------- Reassurance + LinkedIn ---------- */
.assure { list-style: none; display: grid; gap: 8px; margin: 22px 0 0; }
.assure li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--on-night); }
.assure .bars3 { flex: none; height: 11px; color: var(--steel-light); }
.li-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-weight: 500; text-decoration: none; color: var(--navy); }
.li-link .li-ico { flex: none; color: #0A66C2; transition: transform .4s var(--ease-out); }
.li-link span:not(.arrow) { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .5s var(--ease-out); }
.li-link:hover span:not(.arrow) { background-size: 100% 1px; }
.li-link:hover .li-ico { transform: translateY(-2px); }
.li-link .arrow { transition: transform .4s var(--ease-out); }
.li-link:hover .arrow { transform: translate(3px, -3px); }
.contact-box .li-link { margin-top: 18px; font-size: .95rem; }
.on-night .li-link .li-ico { color: var(--steel-light); }
.foot-li { display: inline-flex; align-items: center; gap: 8px; }
.foot-li .li-ico { width: 16px; height: 16px; }
