@import url('./colors_and_type.css');

/* =====================================================================
   SYOS - Déploiement & ROI · SITE WEB (Gro Design System)
   One-page, scroll, sticky nav, reveal animations, responsive
   ===================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--gro-white);
  color: var(--fg1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* shared container */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }

/* ---------------------------------------------------------------- */
/* Reading progress + sticky nav                                    */
/* ---------------------------------------------------------------- */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gro-loop-gradient);
  z-index: 120; transition: width 80ms linear;
}
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg1); flex: none; }
.nav-brand .g-logo { height: 26px; width: auto; display: block; flex: none; }
.nav-brand .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg2); line-height: 1.3; }
.nav-brand .label b { display: block; color: var(--fg1); font-weight: 500; letter-spacing: 0.12em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg3); text-decoration: none; padding: 8px 11px; border-radius: 6px;
  position: relative; transition: color var(--dur) var(--ease), background var(--dur) var(--ease); white-space: nowrap;
}
.nav-links a:hover { color: var(--fg1); background: var(--gro-mist); }
.nav-links a.active { color: var(--fg1); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--accent, var(--gro-ink));
}
.nav-toggle { display: none; }
.nav-cta {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gro-white); background: var(--gro-ink); padding: 9px 16px; border-radius: 8px;
  text-decoration: none; transition: transform var(--dur-fast) var(--ease), background var(--dur) var(--ease); white-space: nowrap;
}
.nav-cta:hover { background: var(--gro-graphite); }
.nav-cta:active { transform: scale(0.97); }

/* ---------------------------------------------------------------- */
/* Generic section scaffolding                                      */
/* ---------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section--dark { background: var(--gro-ink); color: var(--fg-on-dark); }
.section--mist { background: var(--gro-mist); }
.section + .section { border-top: 1px solid var(--border); }
.section--dark + .section, .section + .section--dark { border-top: none; }

.eyebrow {
  font-family: var(--font-mono); font-size: 13px; font-weight: 400;
  letter-spacing: 0.36em; text-transform: uppercase; color: var(--fg3); margin: 0;
}
.section--dark .eyebrow { color: rgba(255,255,255,0.6); }

.display-xl { font-family: var(--font-body); font-weight: 600; font-size: clamp(48px, 8.5vw, 104px); line-height: 0.98; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.display-lg { font-family: var(--font-body); font-weight: 600; font-size: clamp(34px, 5.5vw, 68px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.display-md { font-family: var(--font-body); font-weight: 600; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.04; letter-spacing: -0.02em; margin: 0; }

.lede { font-family: var(--font-body); font-weight: 400; font-size: clamp(18px, 2.1vw, 24px); line-height: 1.5; color: var(--fg2); max-width: 62ch; }
.section--dark .lede { color: rgba(255,255,255,0.78); }
.mono-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg3); }

/* ---------------------------------------------------------------- */
/* Hero                                                             */
/* ---------------------------------------------------------------- */
.hero { background: var(--gro-ink); color: var(--fg-on-dark); padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero .meta { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.22); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.66); }
.hero .meta .g { font-family: var(--font-display); font-weight: 700; margin-right: 8px; color: #fff; }
.hero-body { padding-top: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,0.8); }

.rail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; color: rgba(255,255,255,0.6); margin-top: 8px; }
.phase-rail { border-top: 1px solid rgba(255,255,255,0.2); }
.phase-rail a {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: clamp(16px, 3vw, 32px);
  padding: clamp(18px, 2.4vw, 26px) 4px; border-bottom: 1px solid rgba(255,255,255,0.2);
  text-decoration: none; color: #fff; transition: padding-left var(--dur) var(--ease), background var(--dur) var(--ease);
}
.phase-rail a:hover { padding-left: 18px; background: rgba(255,255,255,0.04); }
.phase-rail .num { font-family: var(--font-mono); font-size: 17px; color: rgba(255,255,255,0.5); }
.phase-rail .nm { font-family: var(--font-body); font-weight: 500; font-size: clamp(22px, 3vw, 32px); }
.phase-rail .nm .tag { color: rgba(255,255,255,0.42); font-weight: 400; }
.phase-rail .dot { width: 12px; height: 12px; border-radius: 50%; }
.phase-rail a:hover .dot { box-shadow: 0 0 0 5px rgba(255,255,255,0.08); }

/* ---------------------------------------------------------------- */
/* Section heading block                                            */
/* ---------------------------------------------------------------- */
.s-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(36px, 5vw, 60px); }
.s-head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- */
/* ROI                                                              */
/* ---------------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); margin-top: clamp(28px, 4vw, 48px); }
.stat { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(22px, 3vw, 30px) clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 12px; min-height: 172px; transition: background var(--dur) var(--ease); }
.stat:hover { background: var(--gro-mist); }
.stat .k { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); }
.stat .v { font-family: var(--font-body); font-weight: 600; font-size: clamp(38px, 4.4vw, 54px); line-height: 1; letter-spacing: -0.02em; }
.stat .d { font-family: var(--font-body); font-size: 15px; color: var(--fg3); line-height: 1.45; margin-top: auto; }
.stat--accent { background: var(--gro-ink); color: #fff; }
.stat--accent:hover { background: var(--gro-ink); }
.stat--accent .k, .stat--accent .d { color: rgba(255,255,255,0.62); }

.gain-block { margin-top: clamp(40px, 5vw, 60px); }
.gain-head { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--fg2); flex-wrap: wrap; }
.gain-head .t { font-family: var(--font-body); font-weight: 600; font-size: clamp(20px, 2.4vw, 24px); }
.gain-head .s { font-family: var(--font-mono); font-size: clamp(18px, 2.2vw, 22px); letter-spacing: 0.02em; }
.gain-row { display: grid; grid-template-columns: 230px 1fr auto; gap: clamp(16px, 3vw, 32px); align-items: center; padding: 22px 0; border-bottom: 1px solid var(--border); transition: padding-left var(--dur) var(--ease); }
.gain-row:hover { padding-left: 10px; }
.gain-row .src { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg2); }
.gain-row .desc { font-size: 17px; color: var(--fg2); }
.gain-row .amt { font-family: var(--font-body); font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); white-space: nowrap; }

.note { display: grid; grid-template-columns: 64px 1fr; gap: 20px; margin-top: clamp(28px, 4vw, 44px); padding-top: 22px; border-top: 1px solid var(--border); }
.note .lbl { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; color: var(--fg3); }
.note .txt { font-size: 15px; color: var(--fg3); line-height: 1.6; max-width: 96ch; }
.section--dark .note { border-top-color: rgba(255,255,255,0.2); }
.section--dark .note .lbl, .section--dark .note .txt { color: rgba(255,255,255,0.6); }

/* ---------------------------------------------------------------- */
/* Sommaire / index + legend                                        */
/* ---------------------------------------------------------------- */
.toc { display: flex; flex-direction: column; }
.toc-group-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg3); margin: 34px 0 6px; }
.toc-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--fg1); transition: padding-left var(--dur) var(--ease); }
.toc-row:hover { padding-left: 10px; }
.toc-row .num { font-family: var(--font-mono); font-size: 17px; color: var(--fg3); }
.toc-row .ttl { font-family: var(--font-body); font-weight: 500; font-size: clamp(20px, 2.6vw, 26px); }
.toc-row .pg { font-family: var(--font-mono); font-size: 15px; color: var(--fg3); }
.legend { margin-top: clamp(36px, 5vw, 56px); padding-top: 26px; border-top: 1px solid var(--fg2); }
.legend .lh { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg3); margin-bottom: 18px; }
.legend .items { display: flex; flex-wrap: wrap; gap: 16px 36px; }

/* status pill */
.status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg2); white-space: nowrap; }
.status .mk { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.status.s-init .mk { background: var(--gro-ink); }
.status.s-addit .mk { background: var(--gro-finances); }
.status.s-extra .mk { background: transparent; border: 2px solid var(--gro-graphite); }
.status.s-annul .mk { background: var(--gro-hairline); }
.status.s-annul { color: var(--fg3); }

/* ---------------------------------------------------------------- */
/* Phase                                                            */
/* ---------------------------------------------------------------- */
.phase-masthead { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; margin: 22px 0 6px; }
.phase-num { font-family: var(--font-body); font-weight: 600; font-size: clamp(86px, 13vw, 160px); line-height: 0.78; letter-spacing: -0.04em; color: var(--accent, var(--gro-ink)); }
.phase-id { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.phase-id .ttl { font-family: var(--font-body); font-weight: 600; font-size: clamp(30px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.phase-id .ec { font-family: var(--font-mono); font-size: clamp(14px, 1.6vw, 18px); letter-spacing: 0.04em; color: var(--fg2); }

.phase-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); margin: clamp(28px, 4vw, 40px) 0 clamp(20px, 3vw, 28px); }
.phase-stats .cell { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px clamp(16px, 2vw, 22px) 22px; display: flex; flex-direction: column; gap: 8px; }
.phase-stats .cell .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); }
.phase-stats .cell .v { font-family: var(--font-body); font-weight: 600; font-size: clamp(22px, 2.8vw, 34px); line-height: 1.05; letter-spacing: -0.01em; }
.phase-stats .cell .v.small { font-size: clamp(16px, 1.8vw, 22px); }
.phase-stats .cell .v small { font-weight: 500; font-size: 14px; color: var(--fg3); letter-spacing: 0; }

.repart { margin: 4px 0 clamp(32px, 4vw, 44px); }
.repart .rl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); margin-bottom: 12px; }
.repart .bar { display: flex; height: 16px; border-radius: 3px; overflow: hidden; background: var(--gro-mist); }
.repart .bar > span { display: block; height: 100%; }
.repart .keys { display: flex; gap: 28px; margin-top: 14px; flex-wrap: wrap; }
.repart .keys .ki { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--fg2); }
.repart .keys .ki .sw { width: 12px; height: 12px; border-radius: 3px; }
.repart .keys .ki b { font-weight: 500; color: var(--fg1); }

.group { margin-top: clamp(34px, 4.5vw, 52px); }
.group-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--accent, var(--gro-ink)); margin-bottom: 22px; }
.group-head .layer-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--accent, var(--gro-ink)); padding: 6px 11px; border-radius: 5px; }
.group-head .gname { font-family: var(--font-body); font-weight: 600; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.01em; }
.group-head .gmeta { font-family: var(--font-mono); font-size: 14px; color: var(--fg3); letter-spacing: 0.02em; white-space: nowrap; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  border: 1px solid var(--border); border-top: 3px solid var(--accent, var(--gro-ink));
  border-radius: var(--r-sm); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px;
  min-height: 160px; background: var(--gro-white);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14,14,14,0.1); }
.feat .top { display: flex; justify-content: space-between; align-items: baseline; }
.feat .idx { font-family: var(--font-mono); font-size: 13px; color: var(--fg3); letter-spacing: 0.06em; }
.feat .hrs { font-family: var(--font-body); font-weight: 600; font-size: clamp(20px, 2.4vw, 24px); letter-spacing: -0.01em; }
.feat .hrs.nd { color: var(--fg3); font-weight: 500; font-size: 17px; }
.feat .name { font-family: var(--font-body); font-weight: 500; font-size: 17px; line-height: 1.3; color: var(--fg1); text-wrap: pretty; }
.feat .status-wrap { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feat--annul { opacity: 0.62; }
.feat--annul .hrs { text-decoration: line-through; color: var(--fg3); }
.suffix-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg3); border: 1px solid var(--border); border-radius: 4px; padding: 3px 7px; }

.roi-callout { margin-top: clamp(40px, 5vw, 56px); background: var(--gro-ink); color: var(--fg-on-dark); border-radius: var(--r-lg); padding: clamp(30px, 4vw, 48px); display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.roi-callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent, #fff); }
.roi-callout.tbd { grid-template-columns: 1fr; }
.roi-callout .rk { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent, #fff); line-height: 1.5; }
.roi-callout .rk .sub { display: block; margin-top: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; }
.roi-callout .rt { font-size: clamp(17px, 2.1vw, 20px); line-height: 1.6; color: rgba(255,255,255,0.92); text-wrap: pretty; }
.roi-callout .rt.big { font-size: clamp(28px, 4vw, 40px); font-weight: 600; color: #fff; font-family: var(--font-body); letter-spacing: -0.01em; }

.flat-note { margin-top: clamp(32px, 4vw, 44px); display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding-top: 20px; border-top: 1px solid var(--fg2); }
.flat-note .lbl { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; color: var(--fg3); }
.flat-note .txt { font-size: 16px; color: var(--fg2); }

/* ---------------------------------------------------------------- */
/* Timeline / gantt                                                 */
/* ---------------------------------------------------------------- */
.gantt { margin-top: clamp(28px, 4vw, 40px); }
.gantt-head { position: relative; height: 26px; margin-left: var(--lab-w, 280px); border-bottom: 1px solid var(--fg2); }
.gantt-head .m-lab { position: absolute; bottom: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--fg3); padding-left: 6px; }
.grid-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.gantt-row { display: grid; grid-template-columns: var(--lab-w, 280px) 1fr; align-items: stretch; border-bottom: 1px solid var(--border); }
.gantt-row.phase-row { border-bottom: 1px solid var(--fg2); }
.gantt-row .lab { padding: 13px 16px 13px 0; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.gantt-row .lab .nm { font-family: var(--font-body); font-size: 15px; }
.gantt-row.phase-row .lab .nm { font-weight: 600; font-size: 18px; }
.gantt-row .lab .nm.sub { color: var(--fg2); padding-left: 16px; }
.gantt-row .lab .hh { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg3); letter-spacing: 0.03em; }
.gantt-track { position: relative; min-height: 46px; }
.gantt-bar { position: absolute; top: 50%; transform: translateY(-50%) scaleX(var(--grow, 1)); transform-origin: left center; height: 22px; border-radius: 4px; display: flex; align-items: center; overflow: hidden; transition: transform 700ms var(--ease); }
.gantt-row.phase-row .gantt-bar { height: 32px; }
.gantt-bar .seg { height: 100%; }
.gantt-date { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 11.5px; color: var(--fg2); letter-spacing: 0.03em; white-space: nowrap; padding-left: 8px; }
.gantt-poc { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 8px; }
.gantt-poc .pdot { width: 12px; height: 12px; border-radius: 50%; background: var(--gro-ink); }
.gantt-poc .ptxt { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg2); letter-spacing: 0.03em; }

/* ---------------------------------------------------------------- */
/* Budget                                                           */
/* ---------------------------------------------------------------- */
.budget { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; }
.bgt-row { display: grid; grid-template-columns: 280px 1fr 120px 80px; align-items: center; gap: clamp(16px, 3vw, 28px); padding: 22px 0; border-bottom: 1px solid var(--border); }
.bgt-row .nm { font-family: var(--font-body); font-weight: 600; font-size: clamp(20px, 2.4vw, 24px); letter-spacing: -0.01em; }
.bgt-row .track { display: block; height: 28px; background: var(--gro-mist); border-radius: 4px; overflow: hidden; }
.bgt-row .track .fill { display: block; height: 100%; border-radius: 4px; transform: scaleX(var(--grow, 1)); transform-origin: left center; transition: transform 800ms var(--ease); }
.bgt-row .hh { font-family: var(--font-mono); font-size: 16px; color: var(--fg2); text-align: right; }
.bgt-row .pct { font-family: var(--font-body); font-weight: 600; font-size: clamp(20px, 2.4vw, 26px); text-align: right; font-variant-numeric: tabular-nums; }
.bgt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.bgt-total .tl { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg3); }
.bgt-total .tv { font-family: var(--font-body); font-weight: 600; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; }

/* ---------------------------------------------------------------- */
/* Footer                                                           */
/* ---------------------------------------------------------------- */
.foot { background: var(--gro-ink); color: rgba(255,255,255,0.7); padding: clamp(48px, 7vw, 88px) 0; }
.foot .big { font-family: var(--font-body); font-weight: 500; font-size: clamp(22px, 3vw, 30px); color: #fff; }
.foot .small { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; margin-top: 16px; line-height: 1.8; }
.foot .topbtn { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; padding: 10px 18px; transition: background var(--dur) var(--ease); }
.foot .topbtn:hover { background: rgba(255,255,255,0.08); }

/* ---------------------------------------------------------------- */
/* Reveal animations                                                */
/* ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: 60ms; }
  .reveal.d2 { transition-delay: 120ms; }
  .reveal.d3 { transition-delay: 180ms; }
}

/* ---------------------------------------------------------------- */
/* Mobile nav drawer                                                */
/* ---------------------------------------------------------------- */
.nav-toggle { background: none; border: 1px solid var(--border); border-radius: 7px; width: 40px; height: 38px; display: none; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.nav-toggle span { width: 18px; height: 2px; background: var(--fg1); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--fg1); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ---------------------------------------------------------------- */
/* Responsive                                                       */
/* ---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 8px; font-size: 11.5px; letter-spacing: 0.04em; }
  .nav-brand .label { display: none; }
}
@media (max-width: 880px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--gro-white); border-bottom: 1px solid var(--border); padding: 12px 20px 18px; gap: 2px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
    box-shadow: 0 16px 30px rgba(14,14,14,0.12);
  }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 10px; font-size: 13px; letter-spacing: 0.08em; border-radius: 8px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--gro-mist); }
  .gain-row { grid-template-columns: 1fr auto; }
  .gain-row .src { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .phase-stats { grid-template-columns: repeat(2, 1fr); }
  .roi-callout { grid-template-columns: 1fr; }
  .roi-callout .rk .sub { display: inline; margin-left: 6px; }
  .bgt-row { grid-template-columns: 1fr auto; row-gap: 10px; }
  .bgt-row .track { grid-column: 1 / -1; order: 3; }
  .bgt-row .hh { order: 2; }
  .gantt-head, .gantt-row { --lab-w: 150px; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .phase-stats { grid-template-columns: 1fr 1fr; }
  .phase-masthead { grid-template-columns: 1fr; gap: 6px; }
  .phase-num { font-size: 84px; }
  .toc-row, .phase-rail a { grid-template-columns: 40px 1fr auto; gap: 14px; }
  .gantt-head, .gantt-row { --lab-w: 116px; }
  .gantt-row .lab .nm.sub { padding-left: 8px; }
}
