/* ==========================================================================
   Saizen Acuity · Kumar Chetan · "Scale at speed"
   Light, in Tech Mahindra's colours: warm cream and white, a confident red,
   deep navy ink, and a calm deep teal that carries the interface so the red
   stays a brand mark and a risk signal. Crisp by design: hairlines instead of soft shadows, 4px
   corners, no glows or glass. The architect's language runs through it: a
   drawing sheet with dimension lines and a title block, an ADR, a
   traceroute of his career, a telco blueprint you can modernise, and a data
   centre migration you can run. Type is the site's: Playfair Display SC
   headlines, Playfair Display, DM Sans and DM Mono.
   ========================================================================== */

:root {
  --cream: #F6F2EA;
  --cream-2: #EFE9DD;
  --bg: #FFFFFF;
  --ink: #05041C;
  --ink-2: #3D3B4F;
  --mut: #7B7975;
  --ln: rgba(5, 4, 28, 0.1);
  --ln-2: rgba(5, 4, 28, 0.2);
  --red: #E31837;
  --red-d: #B5102A;
  --red-t: #FCE8EB;
  --wine: #710C1B;
  --sea: #1A6B6E;
  --sea-d: #11504F;
  --sea-t: #E3EFEC;
  --sea-l: #8CC4BE;
  --ok: #1A6B6E;
  --gold: #E2AE36;

  --f-sc: 'Playfair Display SC', 'Playfair Display', Georgia, serif;
  --f-display: 'Playfair Display', Georgia, serif;
  --f-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(96px, 12vw, 160px);
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--cream); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--sea); color: #fff; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em, i { font-style: normal; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4; }
.wm { font-family: var(--f-sc); font-weight: 400; letter-spacing: 0.01em; }
.wm b { font-weight: 700; color: var(--gold); }
.led { display: inline-block; width: 8px; height: 8px; background: var(--red); flex: none; animation: led 1.6s steps(2) infinite; }
@keyframes led { 50% { opacity: 0.35; } }

/* ── buttons: flat, square-shouldered ───────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 6px 0 22px; border-radius: 3px; font: 600 15px/1 var(--f-body); white-space: nowrap; transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.btn__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 2px; transition: transform 0.3s var(--ease-out), background 0.25s, color 0.25s; }
.btn__ico svg { width: 15px; height: 15px; }
.btn:hover .btn__ico { transform: translate(2px, -2px); }
.btn--em { color: #fff; background: var(--sea); }
.btn--em:hover { background: var(--sea-d); }
.btn--em .btn__ico { background: rgba(255, 255, 255, 0.16); }
.btn--line { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); }
.btn--line .btn__ico { background: var(--cream); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* ── boot ───────────────────────────────────────────────────────────── */
.boot { display: none; }
.js .boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--cream); clip-path: inset(0 0 0 0); transition: clip-path 0.8s var(--ease-io); animation: bootFailsafe 0.01s 4.5s forwards; }
.boot.is-done { clip-path: inset(0 0 100% 0); }
.boot.is-gone { display: none; }
.boot.is-exit { clip-path: inset(0 0 0 0); animation: none; }
.boot.is-enter { clip-path: inset(100% 0 0 0); animation: none; transition: none; }
@keyframes bootFailsafe { to { visibility: hidden; } }
.boot__in { width: min(340px, 78vw); display: grid; gap: 14px; justify-items: center; text-align: center; }
.boot__stack { display: grid; gap: 3px; width: 46px; }
.boot__stack i { height: 7px; background: var(--ln-2); animation: rack 1s steps(1) infinite; }
.boot__stack i:nth-child(2) { animation-delay: 0.15s; } .boot__stack i:nth-child(3) { animation-delay: 0.3s; } .boot__stack i:nth-child(4) { animation-delay: 0.45s; } .boot__stack i:nth-child(5) { animation-delay: 0.6s; }
@keyframes rack { 0%, 50% { background: var(--red); } 51%, 100% { background: var(--ln-2); } }
.boot__line { font: 400 22px var(--f-display); color: var(--ink); }
.boot__bar { width: 100%; height: 2px; background: var(--ln); overflow: hidden; }
.boot__bar i { display: block; height: 100%; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: left; }
.boot__meta { display: flex; justify-content: space-between; width: 100%; color: var(--mut); text-transform: none; letter-spacing: 0.04em; }

/* ── back ───────────────────────────────────────────────────────────── */
.back { position: fixed; z-index: 60; top: clamp(14px, 2.4vw, 26px); left: var(--gutter); height: 46px; padding: 0 18px 0 4px; gap: 10px; font: 500 14px/1 var(--f-body); color: var(--ink-2); background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); }
.back .btn__ico { width: 38px; height: 38px; background: var(--cream); color: var(--ink); }
.back:hover .btn__ico { transform: translateX(-3px); background: var(--sea); color: #fff; }
.back .wm { color: var(--ink); font-size: 15px; }
.js .back { opacity: 0; transform: translateY(-12px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.is-live .back, html:not(.boot-pending) .back { opacity: 1; transform: none; }

/* ── rail ───────────────────────────────────────────────────────────── */
.bus { position: fixed; z-index: 40; right: clamp(16px, 2vw, 30px); top: 50%; transform: translateY(-50%); display: none; flex-direction: column; align-items: center; gap: 16px; pointer-events: none; }
@media (min-width: 1180px) { .bus { display: flex; } }
.bus__track { position: relative; width: 2px; height: 26vh; background: var(--ln); overflow: hidden; }
.bus__fill { position: absolute; inset: 0; background: var(--sea); transform: scaleY(var(--p, 0)); transform-origin: top; }
.bus__label { writing-mode: vertical-rl; display: flex; gap: 10px; color: var(--mut); font-size: 10px; }
.bus__ref { color: var(--sea); font-weight: 500; }

/* ══ HERO ═══════════════════════════════════════════════════════════════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; padding: clamp(100px, 13vh, 150px) 0 clamp(36px, 5vh, 56px); background: var(--cream); }
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__video { opacity: 0; transition: opacity 1.2s; }
.hero.has-video .hero__video { opacity: 1; }
.hero__board { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__veil { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(90deg, var(--cream) 0%, rgba(246, 242, 234, 0.94) 38%, rgba(246, 242, 234, 0.55) 62%, rgba(246, 242, 234, 0.2)), linear-gradient(180deg, transparent 72%, var(--cream)); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.hero__copy { position: relative; z-index: 3; }
.status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); font-size: 14px; color: var(--mut); }
.status b { color: var(--ink); font-weight: 500; }
.hero__name { margin: clamp(20px, 3vh, 28px) 0 clamp(14px, 2vh, 20px); font-family: var(--f-sc); font-weight: 400; font-size: clamp(64px, 9vw, 150px); line-height: 0.9; letter-spacing: -0.02em; color: var(--ink); }
.hero__l { display: block; white-space: nowrap; overflow: hidden; padding-bottom: 0.04em; }
.hero__w { display: inline-block; }
.hero__w--em { color: var(--sea); }
.hero__w .ch { display: inline-block; }
.js .hero__w .ch { transform: translateY(105%); }
.is-live .hero__w .ch { animation: chOn 0.9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 45ms + var(--w, 0ms)); }
@keyframes chOn { to { transform: none; } }
.hero__claim { font: italic 400 clamp(22px, 2.1vw, 32px)/1.25 var(--f-display); color: var(--ink-2); }
.hero__claim em { color: var(--ink); box-shadow: inset 0 -0.1em 0 var(--red); }
.hero__lead { margin-top: 18px; max-width: 34em; color: var(--ink-2); font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.65; }
.hero__lead b { color: var(--ink); font-weight: 600; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.js [data-boot] { opacity: 0; transform: translateY(14px); }
.is-live [data-boot] { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
html.js:not(.boot-pending):not(.is-live) [data-boot], html.js:not(.boot-pending):not(.is-live) .hero__w .ch, html.js:not(.boot-pending):not(.is-live) .sheet__pkg { opacity: 1; transform: none; }

/* the drawing sheet */
.sheet { position: relative; margin: 0; justify-self: center; width: min(430px, 100%); z-index: 1; }
.sheet__pkg { position: relative; padding: 40px 34px 0 14px; }
.js .sheet__pkg { opacity: 0; transform: translateY(20px); }
.is-live .sheet__pkg { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) 0.3s, transform 1.1s var(--ease-out) 0.3s; }
.sheet__dims { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sheet__dims .dim { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 500; stroke-dashoffset: 500; }
.is-live .sheet__dims .dim { animation: drawDim 1.6s var(--ease-out) 1s forwards; }
@keyframes drawDim { to { stroke-dashoffset: 0; } }
.sheet__dims .dt { fill: var(--ink-2); font: 500 9.5px var(--f-mono); letter-spacing: 0.14em; text-anchor: middle; }
.sheet__frame { position: relative; aspect-ratio: 0.86; background: #fff; box-shadow: inset 0 0 0 1px var(--ink); overflow: hidden; }
.sheet__grid { position: absolute; inset: 0; background: linear-gradient(var(--ln) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, var(--ln) 1px, transparent 1px) 0 0 / 24px 24px; }
.sheet__frame::after { content: ''; position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; background: linear-gradient(135deg, var(--red) 0 50%, var(--wine) 50%); clip-path: polygon(0 18%, 100% 0, 100% 82%, 0 100%); }
.sheet__fig { position: absolute; inset: 0; }
.sheet__fig img { position: absolute; left: 50%; bottom: 0; width: 104%; height: auto; max-width: none; transform: translateX(-50%); }
.tblock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.tblock > div { padding: 8px 10px; }
.tblock > div + div { box-shadow: inset 1px 0 0 var(--ink); }
.tblock dt { font-size: 8.5px; color: var(--mut); }
.tblock dd { margin: 2px 0 0; font: 400 14px/1.2 var(--f-display); }
.tblock > div:nth-child(4) dd { color: var(--sea); }

.readouts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(36px, 5vh, 64px); background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); }
.ro { position: relative; padding: 16px 18px 18px; }
.ro + .ro { box-shadow: inset 1px 0 0 var(--ln); }
.ro::before { content: ''; position: absolute; left: 18px; top: 0; width: 24px; height: 2px; background: var(--red); }
.ro dt { font-size: 13px; color: var(--mut); line-height: 1.35; min-height: 2.7em; }
.ro dd { margin: 8px 0 0; font: 400 clamp(34px, 3.4vw, 52px)/1 var(--f-display); color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.ro dd small { font-size: 0.5em; color: var(--sea); margin: 0 0.04em; }

/* ══ SECTIONS ═══════════════════════════════════════════════════════════ */
.sec { position: relative; padding: var(--section) 0; overflow-x: clip; isolation: isolate; background: var(--bg); }
.tint { background: var(--cream); }
.sh { margin-bottom: clamp(36px, 5vw, 60px); }
.sh__ref { display: flex; align-items: center; gap: 12px; color: var(--mut); margin-bottom: 18px; }
.sh__ref b { display: inline-grid; place-items: center; min-width: 36px; height: 24px; padding: 0 8px; border-radius: 2px; color: #fff; font-weight: 500; background: var(--sea); }
.sh__ref i { flex: 1; max-width: 200px; height: 1px; background: var(--ink); transform-origin: left; }
.js .sh__ref i { transform: scaleX(0); transition: transform 1s var(--ease-out) 0.2s; }
.js .is-in .sh__ref i, .js .sh__ref.is-in i { transform: none; }
.sh__h { font: 400 clamp(40px, 5vw, 78px)/1 var(--f-sc); letter-spacing: -0.015em; max-width: 15em; }
.sh__h em { color: var(--sea); }
.sh__sub { margin-top: 18px; max-width: 40em; color: var(--ink-2); font-size: 18px; }
.js .rv { opacity: 0; transform: translateY(22px); }
.js .rv.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }

/* ── 01 about ───────────────────────────────────────────────────────── */
.bio__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(36px, 5vw, 88px); align-items: start; }
.bio__quote { margin: 0; font: 400 clamp(25px, 2.4vw, 36px)/1.36 var(--f-display); color: var(--ink); }
.bio__quote b { font-weight: 400; font-style: italic; color: var(--sea); }
.bio__quote .w { transition: color 0.4s; }
.js .bio__quote.is-split .w { color: #D5D0C6; }
.js .bio__quote.is-split .w.on { color: var(--ink); }
.js .bio__quote.is-split b .w.on { color: var(--sea); }
.adr { position: sticky; top: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); border-top: 2px solid var(--red); }
.adr__h { display: flex; justify-content: space-between; padding: 14px 18px 0; color: var(--mut); }
.adr__st { padding: 2px 8px; border-radius: 2px; color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.adr__t { padding: 8px 18px 14px; font: 400 24px/1.2 var(--f-display); border-bottom: 1px solid var(--ln); }
.adr dl { margin: 0; padding: 0 18px 6px; }
.adr dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--ln); }
.adr dl > div:last-child { border-bottom: 0; }
.adr dt { color: var(--mut); font-size: 9.5px; padding-top: 3px; }
.adr dd { margin: 0; font-size: 15px; line-height: 1.45; }
.tag { display: inline-block; margin: 0 4px 4px 0; padding: 2px 7px; border-radius: 2px; font-size: 12.5px; box-shadow: inset 0 0 0 1px var(--ln-2); }

/* ── 02 experience: traceroute ──────────────────────────────────────── */
.tr { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); }
.tr__term { display: flex; flex-direction: column; background: var(--ink); color: #E8E6F0; }
.tr__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: #8C8AA0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 10px; text-transform: none; letter-spacing: 0.04em; }
.tr__dots { display: flex; gap: 5px; } .tr__dots i { width: 9px; height: 9px; border-radius: 50%; background: #2A2940; } .tr__dots i:first-child { background: var(--red); }
.tr__out { flex: 1; margin: 0; padding: 16px 18px; min-height: 340px; font: 400 12.5px/1.75 var(--f-mono); white-space: pre-wrap; overflow: hidden; }
.tr__out .h { color: #8C8AA0; } .tr__out .n { color: #fff; } .tr__out .ms { color: #8CC4BE; } .tr__out .ok { color: #7CD9A8; }
.tr__out .ln { display: block; cursor: pointer; padding: 0 4px; margin: 0 -4px; }
.tr__out .ln:hover, .tr__out .ln.is-on { background: rgba(140, 196, 190, 0.16); }
.tr__run { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0 18px 16px; padding: 8px 12px; border: 0; border-radius: 2px; cursor: pointer; font: 500 13px var(--f-body); color: #fff; background: var(--sea); }
.tr__run svg { width: 14px; height: 14px; }
.tr__map { position: relative; padding: 14px; }
.tr__svg { width: 100%; height: auto; overflow: visible; }
.tr__svg .gr { stroke: var(--ln); stroke-width: 1; }
.tr__svg .eq { stroke: var(--ln-2); stroke-dasharray: 2 4; }
.tr__svg .arc { fill: none; stroke: var(--sea); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tr__svg .city circle { fill: #fff; stroke: var(--ink); stroke-width: 1.6; transition: fill 0.3s; }
.tr__svg .city.is-on circle { fill: var(--sea); stroke: var(--sea); }
.tr__svg .city text { fill: var(--ink); font: 500 10px var(--f-mono); letter-spacing: 0.1em; }
.tr__svg .pkt { fill: var(--red); }
.tr__card { position: absolute; left: 28px; bottom: 24px; max-width: 300px; padding: 12px 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink); border-left: 3px solid var(--sea); }
.tr__when { color: var(--sea); font-size: 9.5px; }
.tr__co { margin-top: 4px; font: 400 20px/1.2 var(--f-display); }
.tr__role { margin-top: 3px; font-size: 13.5px; color: var(--ink-2); }
.xps { display: grid; gap: 14px; margin-top: 20px; }
.xp { display: grid; grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr); gap: clamp(18px, 2.6vw, 40px); padding: clamp(22px, 2.6vw, 32px); background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); }
.xp--now { box-shadow: inset 0 0 0 1px var(--ln-2), inset 0 2px 0 var(--red); }
.xp__meta { display: flex; flex-direction: column; gap: 7px; }
.xp__when { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--mut); }
.xp__when b { color: var(--ink); font-weight: 500; }
.xp__org { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 600 14.5px var(--f-body); color: var(--red-d); }
.xp__live { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 2px; font-size: 11.5px; color: #fff; background: var(--ink); }
.xp__live i { width: 6px; height: 6px; background: var(--sea); animation: led 1.6s steps(2) infinite; }
.xp__role { font: 400 clamp(21px, 2vw, 27px)/1.2 var(--f-display); }
.xp__big { margin-top: auto; padding-top: 16px; display: grid; gap: 4px; border-top: 1px solid var(--ln); }
.xp__big b { font: 400 clamp(34px, 3.4vw, 50px)/1 var(--f-display); color: var(--sea); }
.xp__big span { font-size: 14px; color: var(--mut); }
.star { margin: 0; display: grid; }
.star__row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--ln); }
.star__row:first-child { padding-top: 0; }
.star__row:last-child { border-bottom: 0; }
.star dt { display: flex; align-items: center; gap: 10px; font: 500 10.5px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); padding-top: 1px; }
.star dt i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 2px; font: 500 11px/1 var(--f-mono); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.star dd { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.star dd a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
.star dd b { color: var(--ink); font-weight: 600; }
.star .star--r { margin-top: 4px; padding: 12px 14px; background: var(--sea-t); border-bottom: 0; box-shadow: inset 2px 0 0 var(--sea); }
.star--r dt { color: var(--sea-d); }
.star--r dt i { color: #fff; background: var(--sea); box-shadow: none; }
.star--r dd { color: var(--ink); }

/* ── 03 blueprint ───────────────────────────────────────────────────── */
.bp__photo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.12; }
.ea { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr); background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); }
.ea__stage { padding: clamp(14px, 2vw, 22px); background: linear-gradient(var(--ln) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, var(--ln) 1px, transparent 1px) 0 0 / 22px 22px, #FDFCF9; }
.ea__layers { display: grid; gap: 6px; }
.lyr { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: stretch; min-height: 58px; border: 0; padding: 0; cursor: pointer; text-align: left; background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); transition: box-shadow 0.25s; }
.lyr:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.lyr.is-on { box-shadow: inset 0 0 0 2px var(--sea); }
.lyr__n { display: grid; align-content: center; gap: 2px; padding: 8px 12px; border-right: 1px solid var(--ln); }
.lyr__n b { font: 400 16px/1.15 var(--f-display); }
.lyr__n span { font: 500 9px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); }
.lyr__c { position: relative; display: flex; align-items: center; gap: 4px; padding: 8px 10px; flex-wrap: wrap; overflow: hidden; }
.bk { flex: none; height: 30px; display: grid; place-items: center; padding: 0 8px; border-radius: 2px; font: 500 11px var(--f-mono); letter-spacing: 0.04em; transition: all 0.6s var(--ease-out); }
.bk--old { color: var(--ink-2); background: var(--cream-2); box-shadow: inset 0 0 0 1px var(--ln-2); }
.bk--new { color: #fff; background: var(--ink); }
.bk--new.is-red { background: var(--sea); }
.ea__lever { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 14px; color: var(--mut); }
.ea__range { width: 100%; accent-color: var(--sea); }
.ea__side { padding: clamp(18px, 2.2vw, 26px); border-left: 1px solid var(--ln-2); }
.ea__k { color: var(--sea); }
.ea__t { margin-top: 6px; font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--f-display); }
.ea__ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 16px; background: var(--ln-2); }
.ea__ba > div { padding: 10px 12px; background: #fff; }
.ea__ba .mono { font-size: 9px; color: var(--mut); }
.ea__ba p:not(.mono) { margin-top: 4px; font-size: 14px; line-height: 1.4; }
.ea__to { color: var(--sea); }
.ea__d { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.ea__side.is-swap > * { animation: swap 0.4s var(--ease-out) both; }
@keyframes swap { from { opacity: 0.3; transform: translateY(4px); } }
.ea__foot { margin-top: 12px; font-size: 13px; color: var(--mut); }

/* ── 04 migration ───────────────────────────────────────────────────── */
.mg { background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); }
.mg__ctl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ln); }
.mg__seg { display: inline-grid; grid-template-columns: auto auto; box-shadow: inset 0 0 0 1px var(--ln-2); border-radius: 3px; }
.mg__seg button { height: 40px; padding: 0 14px; border: 0; cursor: pointer; font: 500 14px var(--f-body); color: var(--ink-2); background: none; }
.mg__seg button + button { box-shadow: inset 1px 0 0 var(--ln-2); }
.mg__seg button.is-on { color: #fff; background: var(--ink); }
.mg__go { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 3px; cursor: pointer; font: 600 14px var(--f-body); color: #fff; background: var(--sea); }
.mg__go svg { width: 15px; height: 15px; }
.mg__go[disabled] { opacity: 0.5; cursor: progress; }
.mg__body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.6fr); }
.mg__svg { width: 100%; height: auto; padding: 14px; overflow: visible; }
.mg__svg .zone { fill: #FDFCF9; stroke: var(--ln-2); }
.mg__svg .zt { fill: var(--mut); font: 500 10px var(--f-mono); letter-spacing: 0.14em; }
.mg__svg .dep { fill: none; stroke: var(--ln-2); stroke-width: 1.2; transition: stroke 0.3s; }
.mg__svg .dep.is-br { stroke: var(--red); stroke-width: 2; stroke-dasharray: 4 3; }
.mg__svg .dep.is-ok { stroke: var(--ok); }
.mg__svg .wl rect { fill: #fff; stroke: var(--ink); stroke-width: 1.3; transition: fill 0.3s, stroke 0.3s; }
.mg__svg .wl text { fill: var(--ink); font: 500 9.5px var(--f-mono); text-anchor: middle; }
.mg__svg .wl.is-down rect { fill: var(--red-t); stroke: var(--red); }
.mg__svg .wl.is-moved rect { fill: var(--sea-t); stroke: var(--ok); }
.mg__svg .wl { transition: transform 0.9s var(--ease-io); }
.mg__side { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-left: 1px solid var(--ln); }
.mg__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--ln-2); }
.mg__kpis > div { padding: 12px; background: #fff; }
.mg__kpis dt { color: var(--mut); font-size: 9px; }
.mg__kpis dd { margin: 6px 0 0; font: 400 28px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.m-br.is-bad, .m-out.is-bad { color: var(--red); } .m-out.is-good, .m-br.is-good { color: var(--ok); }
.mg__log { flex: 1; min-height: 140px; padding: 12px; background: var(--ink); color: #D9D7E6; font-size: 10.5px; line-height: 1.7; text-transform: none; letter-spacing: 0.02em; white-space: pre-wrap; overflow: hidden; }
.mg__foot { padding: 12px 18px; border-top: 1px solid var(--ln); font-size: 13px; color: var(--mut); }

/* ── 05 portfolio & M&A ─────────────────────────────────────────────── */
.sg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.pf, .ma { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 32px); background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); }
.pf__k, .ma__k { color: var(--sea); }
.pf__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.pf__row b { font: 400 clamp(30px, 3vw, 44px)/1 var(--f-display); }
.pf__a { color: var(--mut); } .pf__b { color: var(--sea); }
.pf__bar { height: 10px; background: var(--cream-2); }
.pf__bar i { display: block; height: 100%; width: 43%; background: var(--ink); transition: width 1.8s var(--ease-io); }
.pf.is-on .pf__bar i { width: 100%; background: linear-gradient(90deg, var(--ink) 43%, var(--sea) 43%); }
.pf__d, .ma__d { font-size: 15.5px; color: var(--ink-2); }
.pf__d b, .ma__d b { color: var(--ink); }
.pf__bids { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf__bids li { padding: 4px 9px; border-radius: 2px; font: 500 12px var(--f-mono); letter-spacing: 0.04em; box-shadow: inset 0 0 0 1px var(--ln-2); }
.ma h3 { font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--f-display); }
.ma__svg { width: 100%; height: auto; overflow: visible; }
.ma__svg .co rect { fill: #fff; stroke: var(--ink); stroke-width: 1.3; }
.ma__svg .co text { fill: var(--ink); font: 500 10px var(--f-mono); text-anchor: middle; letter-spacing: 0.08em; }
.ma__svg .hub rect { fill: var(--sea); }
.ma__svg .hub text { fill: #fff; font: 500 12px var(--f-mono); text-anchor: middle; letter-spacing: 0.1em; }
.ma__svg .pl { fill: #fff; stroke: var(--ln-2); }
.ma__svg .plt { fill: var(--ink-2); font: 500 9px var(--f-mono); text-anchor: middle; letter-spacing: 0.1em; }
.early { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ink); }
.early__h { color: var(--mut); margin-bottom: 14px; }
.early ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.early li { display: grid; gap: 4px; padding-left: 12px; border-left: 1px solid var(--ln-2); }
.early b { font: 500 11px var(--f-mono); color: var(--sea); letter-spacing: 0.06em; }
.early span { font: 400 18px/1.25 var(--f-display); }
.early small { font-size: 13px; color: var(--mut); line-height: 1.45; }

/* ══ CLOSE ═════════════════════════════════════════════════════════════ */
.close { position: relative; padding: var(--section) 0 36px; overflow: hidden; isolation: isolate; background: var(--cream); }
.close__photo { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: clamp(420px, 52vw, 760px); object-fit: cover; object-position: 50% 80%; opacity: 0.55;
  -webkit-mask-image: linear-gradient(transparent, #000 55%); mask-image: linear-gradient(transparent, #000 55%); }
.close__h { font: 400 clamp(52px, 7.6vw, 126px)/0.96 var(--f-sc); letter-spacing: -0.015em; max-width: 11em; }
.close__h em { color: var(--sea); }
.close__sub { margin-top: 20px; max-width: 36em; color: var(--ink-2); font-size: 18px; }
.links { display: grid; margin-top: clamp(40px, 6vw, 70px); border-top: 1px solid var(--ink); }
.links a { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: clamp(18px, 2.2vw, 26px) 4px; border-bottom: 1px solid var(--ln-2); }
.links span { color: var(--mut); }
.links b { font: 400 clamp(22px, 3vw, 42px)/1.1 var(--f-display); overflow-wrap: anywhere; transition: transform 0.4s var(--ease-out), color 0.25s; }
.links i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 3px; color: #fff; background: var(--sea); font-size: 17px; transition: transform 0.3s var(--ease-out); }
.links a:hover b { transform: translateX(8px); color: var(--sea); }
.links a:hover i { transform: translate(2px, -2px); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; margin-top: clamp(56px, 8vw, 100px); color: var(--mut); }
.foot__brand { display: inline-flex; align-items: center; gap: 12px; }
.foot__brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px rgba(23, 19, 14, 0.18); }
.foot__brand .wm { font-size: 22px; color: var(--ink); }
.foot .mono { font-size: 10px; }

/* ══ RESPONSIVE ═════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .readouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ro:nth-child(4) { box-shadow: inset 0 1px 0 var(--ln); }
  .ro:nth-child(5) { box-shadow: inset 1px 0 0 var(--ln), inset 0 1px 0 var(--ln); }
  .tr, .ea, .mg__body, .sg { grid-template-columns: 1fr; }
  .ea__side, .mg__side { border-left: 0; border-top: 1px solid var(--ln-2); }
  .xp { grid-template-columns: 1fr; }
  .xp__big { margin-top: 4px; }
  .early ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .sheet { width: min(380px, 92%); margin-top: 8px; }
  .hero__veil { background: linear-gradient(180deg, rgba(246, 242, 234, 0.92), rgba(246, 242, 234, 0.8) 60%, var(--cream)); }
  .bio__grid { grid-template-columns: 1fr; }
  .adr { position: relative; top: 0; }
}
@media (max-width: 640px) {
  .hero__name { font-size: clamp(60px, 18vw, 92px); }
  .readouts { grid-template-columns: 1fr 1fr; }
  .ro, .ro + .ro { box-shadow: inset 0 1px 0 var(--ln); }
  .ro:nth-child(1), .ro:nth-child(2) { box-shadow: none; }
  .ro:nth-child(even) { box-shadow: inset 1px 0 0 var(--ln), inset 0 1px 0 var(--ln); }
  .ro:nth-child(2) { box-shadow: inset 1px 0 0 var(--ln); }
  .ro:last-child { grid-column: 1 / -1; }
  .tblock { grid-template-columns: 1fr 1fr; }
  .tblock > div:nth-child(3) { box-shadow: inset 0 1px 0 var(--ink); }
  .tblock > div:nth-child(4) { box-shadow: inset 1px 0 0 var(--ink), inset 0 1px 0 var(--ink); }
  .star__row { grid-template-columns: 1fr; gap: 6px; }
  .tr__out { min-height: 300px; font-size: 11px; }
  .tr__card { position: relative; left: auto; bottom: auto; max-width: none; margin-top: 8px; }
  .lyr { grid-template-columns: 96px minmax(0, 1fr); }
  .lyr__n b { font-size: 13.5px; }
  .bk { height: 26px; font-size: 9.5px; padding: 0 6px; }
  .mg__seg { grid-template-columns: 1fr; width: 100%; }
  .mg__seg button + button { box-shadow: inset 0 1px 0 var(--ln-2); }
  .early ol { grid-template-columns: 1fr 1fr; }
  .back { height: 42px; font-size: 13px; padding-right: 14px; }
  .back .btn__ico { width: 34px; height: 34px; }
  .links a { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .links span, .links b { grid-column: 1; }
  .links i { grid-column: 2; grid-row: 1 / span 2; width: 42px; height: 42px; }
  .close__h { font-size: clamp(44px, 13vw, 68px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
}

.early li { align-content: start; }
.pf__reg { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ln-2); box-shadow: inset 0 0 0 1px var(--ln-2); }
.pf__reg > div { display: grid; gap: 2px; padding: 12px 14px; background: #fff; }
.pf__reg .mono { color: var(--sea); font-size: 9.5px; }
.pf__reg b { font: 400 20px/1.15 var(--f-display); }
.pf__reg small { font-size: 13px; color: var(--mut); }
.mg__scroll { min-width: 0; }
@media (max-width: 760px) {
  .mg__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mg__scroll .mg__svg { width: 680px; max-width: none; }
}
/* the second colour: a sea-mist band under Scale so the page breathes between the cream sections */
.sec.scale { background: #EDF3F0; }
.sec.scale .pf, .sec.scale .ma, .sec.scale .early li { background: #fff; }
.sec.scale .early li { padding: 14px 16px; border-left: 0; box-shadow: inset 0 0 0 1px var(--ln); }
/* the generated loop carries a bright light trace; desaturate it so the frame stays calm and crisp */
.hero__poster, .hero__video { filter: saturate(0.55) contrast(0.96); }
.close .links a { background: rgba(246, 242, 234, 0.84); }

/* ══ MOBILE (≤640px only; desktop untouched) ═════════════════════════════ */
@media (max-width: 640px) {
  /* back: a compact icon button, so it never sits over headings */
  .back { height: 44px; padding: 0 3px; gap: 0; }
  .back .btn__ico { width: 38px; height: 38px; }
  .back__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* the route map and the acquisitions diagram: labels readable at phone width */
  .tr__svg .city text { font-size: 16px; letter-spacing: 0.02em; }
  .ma__svg .co text { font-size: 12px; letter-spacing: 0.04em; }
  .ma__svg .plt { font-size: 10.5px; letter-spacing: 0.02em; }
  .links b { font-size: clamp(15px, 4.2vw, 20px); }
  /* close: the skyline sits under the footer, not behind the wordmark */
  .close { padding-bottom: 200px; }
  .close__photo { height: 240px; -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }
}
