/* Frankenstein & Partners
   Palette and type follow the pitch deck: navy, blue, white.
   One extra signal colour (--waste) marks the cost; blue marks the cut. */

:root {
  --navy: #0E2A4F;
  --navy-deep: #091D38;
  --navy-soft: #16375F;
  --blue: #2A6FE0;
  --blue-ink: #2462CC;
  --sky: #6FA5F5;
  --waste: #F26A3D;
  --waste-ink: #CF4A1D;
  --paper: #F2F4F8;
  --mist: #E6EAF4;
  --white: #FFFFFF;
  --ink: #0E2A4F;
  --body: #3D4C63;
  --muted: #6B7A90;
  --line: rgba(14, 42, 79, .14);
  --line-dark: rgba(255, 255, 255, .16);

  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, dl, dd, blockquote, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
section[id] { scroll-margin-top: 72px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--navy); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.1vw, 3.5rem); line-height: 1.04; letter-spacing: -.022em; text-wrap: balance; }
h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
.dark h2, .deep h2, .dark h3, .deep h3 { color: var(--white); }
.hl { color: var(--blue); white-space: nowrap; }
.hl-sky { color: var(--sky); white-space: nowrap; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.eyebrow.on-dark { color: var(--sky); }

.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; max-width: 34em; margin-top: 22px; }
.lede.on-dark { color: rgba(255, 255, 255, .74); }
.lede strong { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border: 1px solid transparent; border-radius: 2px;
  font-weight: 600; font-size: .98rem; line-height: 1.2; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #3F82F0; }
.btn-ghost { color: var(--white); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--mist); }
.btn-small { padding: 11px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.is-stuck, .nav.is-open { background: rgba(9, 29, 56, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-dark); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; color: var(--white); white-space: nowrap; }
.wordmark .dot { color: var(--sky); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: .92rem; color: rgba(255, 255, 255, .78); }
.nav-links a:not(.btn) { padding: 6px 0; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); transition: transform .25s var(--ease), top .25s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav.is-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(76px, 10vw, 144px) 0; position: relative; }
.light { background: var(--paper); }
.white { background: var(--white); }
.dark { background: var(--navy); color: rgba(255, 255, 255, .78); }
.deep { background: var(--navy-deep); color: rgba(255, 255, 255, .78); }
.sec-head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 68px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding-top: 72px; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
}
.hero-x { position: absolute; top: 46%; right: -4vw; width: min(50vw, 720px); max-width: none; transform: translateY(-50%); pointer-events: none; }
.x-waste line { stroke: var(--waste); stroke-width: 2.5; stroke-dasharray: 580; stroke-dashoffset: 0; }
.x-cut { fill: var(--blue); transform-box: fill-box; transform-origin: 50% 0%; }

.hero-inner { position: relative; padding-top: clamp(56px, 10vh, 120px); padding-bottom: clamp(48px, 8vh, 96px); margin-top: auto; margin-bottom: auto; }
.hero-title { font-size: clamp(2.35rem, 6.3vw, 5.6rem); line-height: .98; letter-spacing: -.03em; color: var(--white); max-width: 11.2em; }
.hero-costline { display: block; white-space: nowrap; color: var(--sky); }
.rot { display: inline-block; }
.rot-word { display: inline-block; color: var(--waste); transition: transform .26s var(--ease), opacity .26s; }
.rot-word.is-x { color: var(--sky); }
.rot-word.is-out { transform: translateY(-.3em); opacity: 0; }
.rot-word.is-in { transform: translateY(.3em); opacity: 0; transition: none; }
.hero-lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.55; color: rgba(255, 255, 255, .76); max-width: 31em; margin-top: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.proof { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 0 40px; border-top: 1px solid var(--line-dark); padding: 26px 0 34px; }
.proof dt { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; color: var(--white); letter-spacing: -.02em; }
.proof dd { font-size: .9rem; line-height: 1.4; color: rgba(255, 255, 255, .62); margin-top: 8px; max-width: 16em; }
.proof-tag { align-self: end; text-align: right; }
.proof-tag dd { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin: 0; }

/* ---------- Cost of X: seven muda ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-side { position: sticky; top: 108px; }
.switch { margin-top: 38px; }
.switch-label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.switch-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.switch-btns button { border: 0; background: none; padding: 10px 14px; border-radius: 2px; font-size: .9rem; font-weight: 500; color: var(--body); cursor: pointer; transition: background .2s, color .2s; }
.switch-btns button:hover { color: var(--ink); background: var(--paper); }
.switch-btns button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.muda { border-bottom: 1px solid var(--line); }
.muda li { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-items: center; padding: 19px 0; border-top: 1px solid var(--line); }
.muda-num { font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--blue); }
.muda-name p { font-size: .92rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.muda-eg { border-left: 2px solid var(--waste); padding-left: 16px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.muda-eg span { display: none; }
.muda[data-industry="mfg"] [data-i="mfg"],
.muda[data-industry="svc"] [data-i="svc"],
.muda[data-industry="fin"] [data-i="fin"] { display: inline-block; animation: eg-in .4s var(--ease) both; }
.muda li:nth-child(2) .muda-eg span { animation-delay: .03s; }
.muda li:nth-child(3) .muda-eg span { animation-delay: .06s; }
.muda li:nth-child(4) .muda-eg span { animation-delay: .09s; }
.muda li:nth-child(5) .muda-eg span { animation-delay: .12s; }
.muda li:nth-child(6) .muda-eg span { animation-delay: .15s; }
.muda li:nth-child(7) .muda-eg span { animation-delay: .18s; }
@keyframes eg-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

.risk { margin-top: clamp(56px, 7vw, 96px); background: var(--white); border: 1px solid var(--line); padding: clamp(26px, 3.4vw, 44px); }
.risk-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 30px; }
.risk-head .eyebrow { margin-bottom: 0; color: var(--waste-ink); }
.risk-lede { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--ink); letter-spacing: -.01em; }
.risk-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.risk-list li { border-top: 2px solid var(--waste); padding-top: 16px; }
.risk-list h3 { font-size: 1.08rem; }
.risk-list p { font-size: .94rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* ---------- Estimator ---------- */
.est { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(40px, 7vw, 104px); align-items: center; }
.field { margin-top: 34px; }
.est-controls .lede + .field { margin-top: 44px; }
.field label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: .98rem; color: rgba(255, 255, 255, .78); margin-bottom: 14px; }
.field output { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.field-row label { margin: 0; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--waste) var(--fill), rgba(255, 255, 255, .2) var(--fill)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--waste) var(--fill), rgba(255, 255, 255, .2) var(--fill)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--white); border: 0; box-shadow: 0 0 0 5px rgba(242, 106, 61, .25); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 0; box-shadow: 0 0 0 5px rgba(242, 106, 61, .25); }

.money { display: flex; border: 1px solid rgba(255, 255, 255, .28); border-radius: 2px; }
.money select, .money input { background: transparent; border: 0; padding: 12px 12px; color: var(--white); font-weight: 600; }
.money select { border-right: 1px solid rgba(255, 255, 255, .28); cursor: pointer; }
.money select option { color: var(--ink); }
.money input { width: 108px; text-align: right; font-variant-numeric: tabular-nums; }

.receipt { position: relative; background: var(--paper); color: var(--ink); padding: 30px 30px 34px; font-family: var(--mono); font-size: .86rem; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: radial-gradient(circle at 7px 0, var(--paper) 6.5px, transparent 7px); background-size: 14px 7px; }
.receipt-head { display: flex; justify-content: space-between; gap: 12px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 18px; border-bottom: 1px dashed rgba(14, 42, 79, .35); }
.receipt dl { padding: 16px 0; border-bottom: 1px dashed rgba(14, 42, 79, .35); }
.receipt dl div { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.receipt dt { flex: 1; display: flex; align-items: baseline; gap: 8px; color: var(--body); }
.receipt dt::after { content: ""; flex: 1; border-bottom: 1px dotted rgba(14, 42, 79, .35); transform: translateY(-3px); }
.receipt dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.receipt-total-label { margin-top: 20px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.receipt-total { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 4vw, 2.9rem); line-height: 1.05; letter-spacing: -.02em; color: var(--waste-ink); margin-top: 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.receipt-note { font-family: var(--sans); font-size: .88rem; line-height: 1.5; color: var(--body); margin: 16px 0 22px; }

/* ---------- Three pillars ---------- */
.pillars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pillar { display: flex; flex-direction: column; min-width: 0; background: var(--navy); color: rgba(255, 255, 255, .78); border: 1px solid var(--navy); border-radius: 4px; overflow: hidden; }
.pillar-head { display: flex; flex-direction: column; gap: 14px; width: 100%; padding: 28px 28px 0; background: none; border: 0; text-align: left; cursor: default; color: inherit; }
.p-top { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.p-num { color: var(--sky); font-weight: 500; }
.p-where { color: rgba(255, 255, 255, .6); }
.p-name { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.02; letter-spacing: -.022em; color: var(--white); }
.p-peek { display: none; }
.pillar-body { display: flex; flex-direction: column; flex: 1; padding: 18px 28px 28px; }
.p-lede { font-size: 1.08rem; line-height: 1.55; max-width: 36em; }
.p-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 34px; }
.p-services > div { border-top: 1px solid var(--line-dark); padding-top: 16px; }
.s-num { font-family: var(--mono); font-size: .74rem; color: var(--sky); }
.p-services h3 { color: var(--white); font-size: 1.14rem; margin-top: 8px; }
.p-services p { font-size: .96rem; line-height: 1.5; margin-top: 8px; }
.p-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 32px; margin-top: auto; padding-top: 40px; }
.p-stat { display: flex; align-items: center; gap: 16px; }
.p-stat strong { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 5vw, 4.2rem); line-height: .9; letter-spacing: -.03em; color: var(--sky); }
.p-stat span { font-size: .9rem; line-height: 1.35; max-width: 11em; color: rgba(255, 255, 255, .72); }
.tags { display: flex; flex: 1 1 240px; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tags li { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; padding: 6px 10px; border: 1px solid var(--line-dark); border-radius: 999px; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.pillars-note { margin-top: 34px; font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink); letter-spacing: -.01em; }

@media (min-width: 980px) {
  .pillars { grid-template-columns: 1fr 1fr 1fr; transition: grid-template-columns .55s var(--ease); }
  .pillars[data-active="0"] { grid-template-columns: 2.9fr 1fr 1fr; }
  .pillars[data-active="1"] { grid-template-columns: 1fr 2.9fr 1fr; }
  .pillars[data-active="2"] { grid-template-columns: 1fr 1fr 2.9fr; }
  .pillar { min-height: 590px; transition: background .35s, border-color .35s, color .35s; }
  .pillar-head { padding: 30px 30px 0; }
  .pillar-body { padding: 18px 30px 30px; }

  .pillar:not(.is-active) { background: var(--white); border-color: var(--line); color: var(--body); }
  .pillar:not(.is-active):hover { border-color: var(--blue); }
  .pillar:not(.is-active) .pillar-head { height: 100%; flex: 1; padding-bottom: 30px; cursor: pointer; }
  .pillar:not(.is-active) .p-num { color: var(--blue); }
  .pillar:not(.is-active) .p-where { color: var(--muted); }
  .pillar:not(.is-active) .p-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pillar:not(.is-active) .p-name { color: var(--ink); font-size: 1.55rem; line-height: 1.08; margin-top: 6px; }
  .pillar:not(.is-active) .p-peek { display: block; position: relative; margin-top: auto; padding-right: 44px; font-size: .9rem; line-height: 1.4; color: var(--muted); }
  .pillar:not(.is-active) .p-peek strong { display: block; font-family: var(--display); font-weight: 800; font-size: 2.3rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); margin-bottom: 8px; }
  .p-peek i { position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-style: normal; font-size: 1.1rem; color: var(--blue); transition: background .2s, color .2s, border-color .2s; }
  .pillar:not(.is-active):hover .p-peek i { background: var(--blue); border-color: var(--blue); color: var(--white); }
  .pillar:not(.is-active) .pillar-body { display: none; }
  .pillar.is-active .pillar-body { animation: body-in .5s .18s var(--ease) both; }
}
@keyframes body-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Why it persists ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 48px); }
.reasons li { border-top: 2px solid var(--ink); padding-top: 22px; }
.r-num { font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--waste-ink); }
.reasons h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 14px; }
.reasons p { margin-top: 12px; max-width: 24em; }

/* ---------- Point of view ---------- */
.pov { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.pov-title { font-size: clamp(2.2rem, 4.8vw, 4.1rem); line-height: 1; }
.pov-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 10px; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.pov-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.pov-list span { font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--sky); padding-top: 6px; }
.pov-list p { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.5; }
.pov-list strong { color: var(--white); font-weight: 600; }
.belief { margin-top: clamp(48px, 6vw, 84px); background: var(--navy-soft); border-left: 3px solid var(--blue); padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 44px); }
.belief span { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.belief p { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.12; letter-spacing: -.018em; color: var(--white); margin-top: 10px; text-wrap: balance; }

/* ---------- How we work ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { position: relative; border-top: 2px solid var(--ink); padding: 30px clamp(20px, 3vw, 44px) 0 0; }
.steps li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--paper); }
.steps li:not(:last-child)::after { content: "\2192"; position: absolute; top: -17px; right: 5px; font-size: 1.3rem; line-height: 30px; padding: 0 10px; color: var(--ink); background: var(--paper); }
.step-num { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: .9; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.steps h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 18px; }
.steps p { margin-top: 12px; max-width: 23em; }

/* ---------- Before / During / After ---------- */
h2 .arrow { color: #A9B4C6; font-weight: 400; }
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.phase { padding: clamp(24px, 2.8vw, 36px); min-height: 350px; border-radius: 4px; }
.phase-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.phase h3 { font-size: 1.2rem; margin-top: 12px; }
.phase ul { margin-top: 26px; }
.phase li { position: relative; padding: 9px 0 9px 26px; font-size: 1.02rem; line-height: 1.4; }
.phase li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 14px; height: 1px; background: currentColor; opacity: .6; }
.meter { height: 10px; margin-top: 22px; border-radius: 2px; background: rgba(14, 42, 79, .08); overflow: hidden; }
.meter span { display: block; height: 100%; width: 100%; transform-origin: left; }
.phase-before { background: var(--mist); color: var(--ink); }
.phase-before .phase-tag { color: var(--muted); }
.phase-before h3 { color: var(--blue-ink); }
.phase-before .meter span { background: repeating-linear-gradient(-45deg, rgba(242, 106, 61, .5) 0 5px, transparent 5px 10px); }
.phase-during { background: var(--navy); color: var(--white); }
.phase-during .phase-tag { color: rgba(255, 255, 255, .55); }
.phase-during h3 { color: var(--sky); }
.phase-during .meter { background: rgba(255, 255, 255, .12); }
.phase-during .meter span { background: var(--waste); }
.phase-after { background: var(--blue-ink); color: var(--white); }
.phase-after .phase-tag { color: rgba(255, 255, 255, .7); }
.phase-after h3 { color: var(--white); }
.phase-after .meter { background: rgba(255, 255, 255, .2); }
.phase-after .meter span { background: var(--white); width: 30%; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.contact-title { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; letter-spacing: -.03em; }
.form { background: var(--navy-soft); border: 1px solid var(--line-dark); padding: clamp(24px, 3vw, 38px); display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label, .form legend { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.form input[type="text"], .form input[type="email"], .form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .32); border-radius: 0;
  font-family: var(--sans); font-size: 1.02rem; letter-spacing: 0; text-transform: none; color: var(--white); resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--sky); box-shadow: 0 1px 0 var(--sky); }
.form textarea::placeholder { color: rgba(255, 255, 255, .38); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: block; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px; font-family: var(--sans); font-size: .9rem; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .85); transition: background .2s, color .2s, border-color .2s; }
.chips input:checked + span { background: var(--sky); border-color: var(--sky); color: var(--navy-deep); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 3px; }
.form-note { font-size: .88rem; color: rgba(255, 255, 255, .7); min-height: 1.4em; margin-top: -6px; }
.form-note.is-error { color: #FFB59C; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .55); padding: 44px 0 36px; font-size: .88rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; }
.footer-address { margin-top: 18px; line-height: 1.5; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer nav a:hover { color: var(--white); }
.footer-copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .8rem; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .1s; }
.js .reveal:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: no-preference) {
  .x-waste line { animation: draw 1.1s var(--ease) both; }
  .x-waste line:nth-child(1) { animation-delay: .15s; }
  .x-waste line:nth-child(2) { animation-delay: .22s; }
  .x-waste line:nth-child(3) { animation-delay: .29s; }
  .x-waste line:nth-child(4) { animation-delay: .36s; }
  .x-waste line:nth-child(5) { animation-delay: .43s; }
  .x-waste line:nth-child(6) { animation-delay: .50s; }
  .x-waste line:nth-child(7) { animation-delay: .57s; }
  .x-cut { animation: cut .7s 1.25s var(--ease) both; }
  .hero-inner > * { animation: rise .8s var(--ease) both; }
  .hero-inner > :nth-child(2) { animation-delay: .08s; }
  .hero-inner > :nth-child(3) { animation-delay: .18s; }
  .hero-inner > :nth-child(4) { animation-delay: .28s; }
}
@keyframes draw { from { stroke-dashoffset: 580; } to { stroke-dashoffset: 0; } }
@keyframes cut { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 979px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: rgba(9, 29, 56, .98); font-size: 1.05rem; display: none; }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav-links .btn { margin-top: 18px; }

  .hero-x { width: min(105vw, 640px); right: -38vw; top: 36%; opacity: .22; }
  .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
  .proof > .proof-tag { display: none; }

  .split, .est, .pov, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split-side { position: static; }
  .risk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons, .phases { grid-template-columns: minmax(0, 1fr); }
  .phase { min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .steps li:not(:last-child)::after { display: none; }
  .tags { justify-content: flex-start; }
}

@media (max-width: 599px) {
  body { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .proof { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 0 28px; }
  .proof > div { display: flex; align-items: baseline; gap: 14px; }
  .proof dt { min-width: 2.4em; }
  .proof dd { margin: 0; max-width: none; }
  .muda li { grid-template-columns: 34px minmax(0, 1fr); row-gap: 10px; }
  .muda-eg { grid-column: 2; }
  .switch-btns { display: flex; }
  .switch-btns button { flex: 1 1 auto; }
  .risk-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .p-services { grid-template-columns: minmax(0, 1fr); }
  .field-row { flex-direction: column; align-items: stretch; }
  .money input { flex: 1; width: auto; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
