/* =========================================================
   Pradeep Kumar Agarwal, Tire Plant Projects
   Industrial Blueprint theme
   ========================================================= */

/* Self-hosted variable fonts (latin subset, Google Fonts builds).
   One file per family covers every weight the site uses. */
@font-face{
  font-family:"Inter";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url("../assets/fonts/inter-var-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:"JetBrains Mono";
  font-style:normal;
  font-weight:100 800;
  font-display:swap;
  src:url("../assets/fonts/jetbrains-mono-var-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;
}

:root{
  /* 60-30-10: navy base (60) · raised surfaces (30) · one azure accent (10) */
  --ink:#0F1E2E;
  --ink-2:#16293C;
  --panel:#20374D;
  --panel-2:#274058;
  --line:#3C5A76;
  --line-soft:#2A4358;
  --cyan:#56B8E8;
  --cyan-dim:#2E87BC;
  --amber:#56B8E8;          /* retired as a separate accent - aliased to the one accent */
  --mint:#56B8E8;           /* retired - aliased */
  --text:#F2F6FA;
  --text-2:#C9D8E4;
  --muted:#93A9BC;
  --white:#fff;

  --mono:"JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap:1240px;
  --pad:clamp(22px, 5vw, 64px);
  --r:2px;
}

*,*::before,*::after{box-sizing:border-box}

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

body{
  margin:0;
  background:var(--ink);
  color:var(--text);
  font-family:var(--sans);
  font-size:19px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
button{font-family:inherit}

.mono{font-family:var(--mono); letter-spacing:.11em; text-transform:uppercase}

.wrap{max-width:var(--wrap); margin:0 auto; padding-inline:var(--pad)}

/* ---------- blueprint grid background ---------- */
body::before{
  content:"";
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(86,184,232,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86,184,232,.06) 1px, transparent 1px),
    linear-gradient(rgba(86,184,232,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86,184,232,.03) 1px, transparent 1px);
  background-size:160px 160px, 160px 160px, 40px 40px, 40px 40px;
}
main, .nav, .footer{position:relative; z-index:1}

/* =========================================================
   SCROLL PROGRESS
   ========================================================= */
.scroll-progress{position:fixed; top:0; left:0; right:0; height:2px; z-index:900; background:transparent}
.scroll-progress span{display:block; height:100%; width:0%; background:var(--cyan)}

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:800;
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; padding:16px var(--pad);
  transition:background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom:1px solid transparent;
}
.nav.is-stuck{
  background:rgba(12,24,37,.92);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom-color:var(--line-soft);
  padding-block:11px;
}
.nav-brand{display:flex; align-items:center; gap:12px; min-width:0}
.nav-mark{
  font-size:13px; font-weight:700; color:var(--ink);
  background:var(--cyan); padding:5px 8px 4px; letter-spacing:.18em; text-indent:.18em;
}
.nav-name{font-size:15px; font-weight:600; letter-spacing:.01em; white-space:nowrap}
.nav-links{display:flex; align-items:center; gap:26px}
.nav-links a{
  font-size:15px; font-weight:500; color:var(--text-2);
  letter-spacing:.02em; transition:color .2s ease; position:relative; padding-block:4px;
}
.nav-links a:hover{color:var(--white)}
.nav-links a.is-active{color:var(--cyan)}
.nav-cta{
  border:1px solid var(--cyan); color:var(--cyan) !important;
  padding:8px 16px !important; font-family:var(--mono); font-size:11.5px !important;
  letter-spacing:.16em; text-transform:uppercase;
}
.nav-cta:hover{background:var(--cyan); color:var(--ink) !important}
.nav-toggle{display:none; background:none; border:0; padding:8px; cursor:pointer; flex-direction:column; gap:5px}
.nav-toggle span{display:block; width:22px; height:1.5px; background:var(--text); transition:transform .3s ease, opacity .3s ease}
.nav.is-open .nav-toggle span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.nav.is-open .nav-toggle span:nth-child(2){opacity:0}
.nav.is-open .nav-toggle span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative; min-height:100svh;
  display:flex; align-items:center;
  padding:120px 0 90px;
  overflow:hidden;
}
.hero-canvas{position:absolute; inset:0; width:100%; height:100%; display:block; z-index:0; cursor:grab}
.hero-canvas:focus-visible{outline:2px solid var(--cyan); outline-offset:-4px}
/* The copy used to swallow every pointer event, leaving only a sliver of the
   hero actually grabbable. The text no longer intercepts drags; the things you
   genuinely click still do. */
.hero-content{pointer-events:none}
.hero-content a,.hero-content button{pointer-events:auto}
.hero-scroll{pointer-events:none}

/* hero model controls */
.hero-ctl{
  position:absolute; right:var(--pad); bottom:34px; z-index:3;
  display:flex; gap:1px; background:var(--line); border:1px solid var(--line);
}
.hero-ctl button{
  width:42px; height:38px; background:rgba(16,31,46,.9); color:var(--text);
  border:0; cursor:pointer; font-size:17px; line-height:1;
  display:grid; place-items:center; transition:background .2s ease, color .2s ease;
}
.hero-ctl button:hover{background:var(--cyan); color:var(--ink)}
.hero-grid-overlay{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    radial-gradient(66% 60% at 74% 52%, transparent 0%, rgba(15,30,46,.35) 72%, rgba(15,30,46,.7) 100%),
    linear-gradient(90deg, rgba(15,30,46,.92) 0%, rgba(15,30,46,.6) 40%, transparent 66%);
}
.hero{justify-content:flex-start}
/* matches .wrap exactly so hero copy lines up with every section below */
.hero-content{position:relative; z-index:2; width:100%; max-width:var(--wrap);
  margin-inline:auto; padding-inline:var(--pad)}
.hero-content > *{max-width:640px}
.hero-eyebrow{font-size:13px; color:var(--amber); margin-bottom:20px; font-weight:600}
.hero-name{
  font-size:clamp(40px, 6.2vw, 82px); line-height:.98; font-weight:800;
  letter-spacing:-.03em; margin:0 0 16px; color:var(--white);
}
.hero-role{font-size:clamp(17px,1.9vw,22px); color:var(--cyan); font-weight:600;
  letter-spacing:.005em; margin:0 0 22px}
.hero-role b{color:var(--white); font-weight:600}
.hero-sub{font-size:clamp(17px,1.7vw,20px); color:var(--text-2); max-width:560px; margin:0 0 32px; line-height:1.6}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap}
.btn{
  display:inline-block; font-family:var(--mono); font-size:11px; letter-spacing:.16em;
  text-transform:uppercase; padding:14px 26px; border:1px solid var(--cyan);
  transition:background .25s ease, color .25s ease, transform .25s ease;
}
.btn-primary{background:var(--cyan); color:var(--ink); font-weight:700}
.btn-primary:hover{background:transparent; color:var(--cyan); transform:translateY(-2px)}
.btn-ghost{color:var(--cyan); border-color:var(--line)}
.btn-ghost:hover{border-color:var(--cyan); transform:translateY(-2px)}

.hero-scroll{
  position:absolute; left:var(--pad); bottom:34px; z-index:2;
  font-size:10.5px; color:var(--muted); display:flex; align-items:center; gap:12px;
}
.hero-scroll-line{display:block; width:46px; height:1px; background:var(--line); position:relative; overflow:hidden}
.hero-scroll-line::after{
  content:""; position:absolute; inset:0; background:var(--cyan);
  transform:translateX(-100%); animation:scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine{0%{transform:translateX(-100%)}55%{transform:translateX(100%)}100%{transform:translateX(100%)}}

.hero-badge{
  position:absolute; right:var(--pad); bottom:34px; z-index:2;
  font-size:10px; color:var(--muted); text-align:right; line-height:1.9;
}
.hero-badge b{color:var(--cyan); font-weight:500}
.btn{font-size:13px}


/* tire size reference */
.tire-scale{
  position:absolute; right:14px; top:14px; z-index:3;
  background:rgba(12,24,37,.8); border:1px solid var(--line-soft);
  padding:10px 12px 8px; width:158px; pointer-events:none;
}
.tire-scale-title{font-family:var(--mono); font-size:8.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--cyan); margin-bottom:8px}
.tire-scale svg{display:block; width:100%; height:auto}
.tire-scale-note{font-family:var(--mono); font-size:8px; color:var(--muted); margin-top:6px; line-height:1.5}

/* =========================================================
   TICKER
   ========================================================= */
/* ---------- 01 · working with me ----------
   Four bordered, equal-height cards rather than four loose columns of rag:
   with text of different lengths the columns read as an accident, the cards
   read as a set. */
.engage{position:relative; z-index:2}
.engage-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(12px,1.4vw,18px)}
.engage-item{
  display:flex; flex-direction:column;
  border:1px solid var(--line-soft); border-top:2px solid var(--cyan);
  background:var(--ink); padding:20px 22px 22px;
}
.engage-n{font-family:var(--mono); font-size:10.5px; letter-spacing:.16em; color:var(--muted); margin-bottom:12px}
.engage-k{
  font-size:12px; font-weight:700; letter-spacing:.11em; color:var(--cyan);
  margin-bottom:11px; line-height:1.35;
}
.engage-item p{font-size:15px; line-height:1.62; color:var(--text-2); margin:0; font-weight:450}
.engage-foot{
  margin:clamp(20px,2.6vw,30px) 0 0; padding-top:clamp(18px,2.2vw,24px);
  border-top:1px solid var(--line-soft);
  font-size:clamp(16px,1.8vw,19.5px); line-height:1.55; color:var(--text-2); max-width:70ch;
}
@media (max-width:1000px){ .engage-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:600px){
  .engage-grid{grid-template-columns:1fr; gap:10px}
  .engage-item{padding:16px 17px 18px}
  .engage-item p{font-size:14.5px}
  .engage-foot{font-size:15.5px}
}

.ticker{
  border-block:1px solid var(--line-soft); background:var(--ink-2);
  overflow:hidden; padding:14px 0; position:relative; z-index:2;
}
.ticker-track{display:flex; gap:54px; width:max-content; animation:tick 46s linear infinite; will-change:transform}
.ticker:hover .ticker-track{animation-play-state:paused}
@keyframes tick{to{transform:translateX(-50%)}}
.ticker-item{
  font-family:var(--mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--text-2); white-space:nowrap; display:flex; align-items:center; gap:12px;
}
.ticker-item::before{content:""; width:5px; height:5px; background:var(--amber); flex:none}

/* =========================================================
   SECTIONS
   ========================================================= */
main section[id]{scroll-margin-top:66px}
.section{padding:clamp(72px, 10vw, 130px) 0; position:relative}
.section-tight{padding-bottom:clamp(48px, 6vw, 80px)}
.section-alt{background:var(--ink-2); border-block:1px solid var(--line-soft)}

/* ---------- PAPER: light sections that break the blueprint rhythm ----------
   Re-points the same tokens, so every component inside inverts automatically. */
.section-paper{
  --ink:#F7F6F3; --ink-2:#EFEEEA; --panel:#E4E2DC; --panel-2:#DBD9D2;
  --line:#B5B2A9; --line-soft:#D9D6CF;
  --text:#1C1C19; --text-2:#3C3C38; --muted:#5E5E58;
  --white:#0C0C0A;
  --cyan:#0B6489; --cyan-dim:#084B68; --amber:#0B6489; --mint:#0B6489;
  background:var(--ink); color:var(--text);
  border-block:1px solid #D9D6CF;
}
.section-paper .sec-title,.section-paper .client-title,.section-paper .way-title,
.section-paper .proj-num-sub,.section-paper .edu-item b{color:var(--white)}
.section-paper .proj,.section-paper .client,.section-paper .way{background:#fff}
.section-paper .proj:hover,.section-paper .client:hover{border-color:var(--amber)}

/* key-phrase highlight: emphasis by weight and value, never by hue -
   keeps the single accent rare enough to still mean something */
.hl{color:var(--text); font-weight:700}
.section-paper .hl{color:var(--white)}

/* bolder, more legible running text */
.sec-sub,.profile-body p,.client p,.way p,.tl-body,.proj-text,.indep-body,
.client-scale,.build-static-list li,.tires-static li{font-weight:450}
.tl-points li,.dom-chips span{font-weight:500}
.svc-chips li{font-weight:600}

.sec-head{max-width:860px; margin-bottom:clamp(38px, 5vw, 62px)}
.eyebrow{font-size:13.5px; color:var(--cyan); margin-bottom:18px; font-weight:700}
.eyebrow-amber,.eyebrow-mint{color:var(--cyan)}   /* retired: one accent only */
.profile-name{font-size:clamp(20px,2.2vw,26px); font-weight:700; color:var(--cyan);
  letter-spacing:.01em; margin-bottom:12px}
.sec-title{
  font-size:clamp(30px, 3.9vw, 50px); line-height:1.11; font-weight:800;
  letter-spacing:-.02em; margin:0; color:var(--white);
}
.sec-sub{font-size:19.5px; color:var(--text-2); margin:22px 0 0; max-width:64ch; line-height:1.6}
.lead{font-size:22px; color:var(--text); margin-top:0; line-height:1.5; max-width:60ch}

/* reveal */
.reveal{opacity:0; transform:translateY(26px); transition:opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1)}
.reveal.is-in{opacity:1; transform:none}
@media (prefers-reduced-motion:reduce){ .reveal{opacity:1; transform:none; transition:none} }

/* =========================================================
   PROFILE
   ========================================================= */
.profile-grid{display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(30px,5vw,72px); align-items:start}
.profile-photo{position:relative}
.profile-photo img{width:100%; aspect-ratio:1/1; object-fit:cover; filter:saturate(.9) contrast(1.03)}
.frame-ticks{position:absolute; inset:-10px; pointer-events:none}
.frame-ticks::before,.frame-ticks::after{
  content:""; position:absolute; width:26px; height:26px; border:1px solid var(--cyan);
}
.frame-ticks::before{top:0; left:0; border-right:0; border-bottom:0}
.frame-ticks::after{bottom:0; right:0; border-left:0; border-top:0}
.profile-caption{font-size:12px; color:var(--text-2); margin-top:16px}
.profile-body p{color:var(--text-2); margin:0 0 20px; font-size:18px; line-height:1.6; max-width:66ch}

/* Five figures in the body column is tight, so the unit is set at half the
   size of the figure and the whole line is kept from wrapping: a figure that
   breaks over two lines drops its label and ragged the row. */
.stat-row{
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px;
  margin-top:clamp(34px,4vw,52px); border-top:1px solid var(--line-soft); padding-top:clamp(24px,3vw,32px);
}
.stat{min-width:0}
.stat-num{
  font-size:clamp(26px,2.5vw,34px); font-weight:800; color:var(--amber);
  letter-spacing:-.02em; line-height:1.1; white-space:nowrap;
}
.stat-num small{font-size:.5em; font-weight:700; letter-spacing:0; margin-left:.18em}
.stat-lbl{font-size:11px; color:var(--text-2); margin-top:9px; line-height:1.45; letter-spacing:.08em}

/* =========================================================
   SERVICES
   ========================================================= */
.svc-list{display:grid; gap:14px}
.svc-d{border:1px solid var(--line-soft); background:var(--ink); transition:border-color .3s ease}
.svc-d:hover{border-color:var(--line)}
.svc-d[open]{border-color:var(--cyan)}
.svc-d summary{
  display:flex; align-items:flex-start; gap:20px; cursor:pointer;
  padding:24px clamp(20px,3vw,30px); list-style:none;
}
.svc-d summary::-webkit-details-marker{display:none}
.svc-d-idx{font-size:11px; letter-spacing:.16em; color:var(--cyan); margin-top:5px; flex:none}
.svc-d-main{flex:1; min-width:0}
.svc-d-title{display:block; font-size:clamp(17px,2vw,21px); font-weight:700; color:var(--white); line-height:1.3}
.svc-d-sum{display:block; font-size:14.5px; color:var(--text-2); margin-top:7px; line-height:1.55}
.svc-d-toggle{position:relative; width:20px; height:20px; flex:none; margin-top:6px}
.svc-d-toggle::before,.svc-d-toggle::after{content:""; position:absolute; background:var(--cyan); transition:transform .3s ease}
.svc-d-toggle::before{left:0; top:9px; width:20px; height:2px}
.svc-d-toggle::after{left:9px; top:0; width:2px; height:20px}
.svc-d[open] .svc-d-toggle::after{transform:scaleY(0)}
.svc-d-body{padding:0 clamp(20px,3vw,30px) 26px}
.svc-d-body .svc-chips{padding:18px 0 0; border-top:1px solid var(--line-soft)}
.svc-note{font-size:12.5px; color:var(--text-2); text-align:center; margin-top:34px; line-height:2}

/* ---------- blueprint diagrams inside each area ---------- */
.svc-fig{
  margin:0 0 6px; padding:16px 18px;
  border:1px solid var(--line-soft);
  background:
    linear-gradient(rgba(86,184,232,.05) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, rgba(86,184,232,.05) 1px, transparent 1px) 0 0/28px 28px,
    var(--ink-2);
}
.svc-fig svg{display:block; width:100%; max-width:520px; height:auto; margin-inline:auto}
.diag *{fill:none; stroke-linecap:round; stroke-linejoin:round}
.diag .c{stroke:var(--cyan); stroke-width:1.8}
.diag .l{stroke:var(--line); stroke-width:1.5}
.diag .a{stroke:var(--amber); stroke-width:1.8}
.diag .dsh{stroke-dasharray:5 6}
/* staggered line-draw when a panel is revealed */
.svc-fig .d{stroke-dasharray:480; stroke-dashoffset:480; transition:stroke-dashoffset 1s cubic-bezier(.3,.6,.3,1) calc(var(--i,0)*.1s)}
.svc-fig.is-drawn .d{stroke-dashoffset:0}
.svc-fig .f{opacity:0; transition:opacity .6s ease calc(var(--i,0)*.1s + .25s)}
.svc-fig.is-drawn .f{opacity:1}
@media (prefers-reduced-motion:reduce){
  .svc-fig .d{stroke-dasharray:none; stroke-dashoffset:0; transition:none}
  .svc-fig .dsh{stroke-dasharray:5 6}
  .svc-fig .f{opacity:1; transition:none}
}

/* a closing line under a chip set, where the chips are a sample not a list */
.svc-note-line{
  grid-column:1 / -1; font-size:15px; line-height:1.62; color:var(--text-2);
  margin:18px 0 0; padding-top:16px; border-top:1px solid var(--line-soft); max-width:74ch;
}

/* ---------- explorer: horizontal rail + full-width stage ---------- */
.svc-x{display:none}
#services.is-x .svc-list{display:none}
#services.is-x .svc-x{display:block}

/* The rail wraps rather than scrolls: with eight areas a single row would run
   off the right on a laptop and hide the last of them, which is exactly the
   thing a reader never scrolls back for. */
.svc-x-rail{
  display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:1px;
  background:var(--line-soft); border:1px solid var(--line-soft); margin-bottom:26px;
}
.svc-x-tab{
  min-width:0;
  display:flex; flex-direction:column; gap:7px; align-items:flex-start;
  padding:17px 20px 16px; background:var(--ink); color:var(--text-2);
  font:inherit; text-align:left; border:0; cursor:pointer;
  transition:background .25s ease, color .25s ease;
}
.svc-x-tab:hover{background:var(--panel); color:var(--white)}
.svc-x-tab.is-on{background:var(--cyan); color:var(--ink)}
.svc-x-tab-n{font-family:var(--mono); font-size:11px; letter-spacing:.16em; opacity:.8}
.svc-x-tab-l{font-size:15.5px; font-weight:600; line-height:1.25}
.svc-x-tab.is-on .svc-x-tab-n{opacity:.9}

.svc-x-stage{border:1px solid var(--line-soft); background:var(--ink); padding:clamp(24px,3.4vw,42px)}
.svc-x-stage.is-in{animation:stageIn .45s cubic-bezier(.2,.7,.3,1)}
@keyframes stageIn{from{opacity:0; transform:translateY(10px)}}
@media (prefers-reduced-motion:reduce){ .svc-x-stage.is-in{animation:none} }
.svc-x-title{
  font-size:clamp(25px,3.1vw,38px); font-weight:800; letter-spacing:-.02em;
  line-height:1.12; color:var(--white); margin:0 0 14px;
}
.svc-x-lead{
  font-size:clamp(16.5px,1.75vw,20px); color:var(--cyan); font-weight:500;
  line-height:1.45; margin:0 0 26px; max-width:720px;
}
/* stage body: chips left, diagram right */
.svc-x-stage .svc-d-body{padding:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.82fr); gap:clamp(24px,3vw,44px); align-items:start}
.svc-x-stage .svc-fig{margin:0; grid-column:2; grid-row:1}
.svc-x-stage .svc-chips{grid-column:1; grid-row:1}

/* ---------- capability chips ---------- */
.svc-chips{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:10px}
.svc-chips li{
  font-size:15.5px; color:var(--text); line-height:1.3;
  border:1px solid var(--line); background:var(--ink-2);
  padding:11px 17px; transition:border-color .2s ease, color .2s ease, background .2s ease;
}
.svc-chips li:hover{border-color:var(--cyan); background:var(--cyan); color:var(--ink)}

/* =========================================================
   SCROLLYTELLING (plant build)
   ========================================================= */
.scrolly{position:relative; background:var(--ink)}
.scrolly-sticky{position:sticky; top:0; height:100svh; overflow:hidden}
#plantCanvas{position:absolute; inset:0; width:100%; height:100%; display:block}
.scrolly-hud{position:absolute; inset:0; pointer-events:none; padding:clamp(74px,9vh,104px) var(--pad) clamp(28px,5vh,48px);
  display:flex; flex-direction:column; justify-content:space-between;
  max-width:var(--wrap); margin:0 auto;}
.hud-top{display:flex; justify-content:space-between; align-items:baseline; gap:20px}
.hud-stage{font-size:11.5px; color:var(--text-2)}
.hud-panel{max-width:460px; background:rgba(22,41,60,.86); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border:1px solid var(--line); padding:28px 28px 26px; align-self:flex-start}
.hud-title{font-size:clamp(22px,2.6vw,31px); font-weight:800; color:var(--white); margin:0 0 12px; letter-spacing:-.02em; line-height:1.18}
.hud-text{font-size:17px; color:var(--text-2); margin:0 0 16px; line-height:1.55}
.hud-list{list-style:none; margin:0; padding:0; display:grid; gap:8px}
.hud-list li{
  font-family:var(--mono); font-size:12px; letter-spacing:.09em; text-transform:uppercase;
  color:var(--text-2); display:flex; gap:10px; align-items:flex-start; line-height:1.7;
}
.hud-list li::before{content:""; width:11px; height:2px; background:var(--amber); margin-top:8px; flex:none}
.hud-steps{display:flex; gap:6px; align-items:center}
.hud-dot{flex:1; height:2px; background:var(--line); position:relative; overflow:hidden; max-width:120px}
.hud-dot span{position:absolute; inset:0; background:var(--cyan); transform:scaleX(0); transform-origin:left; transition:transform .25s linear}
.scrolly-steps{position:relative}
.scrolly-step{height:100svh}

/* =========================================================
   PROCESS
   ========================================================= */
.proc-shell{position:relative; height:clamp(460px, 66vh, 620px); margin:12px auto 0;
  width:calc(100% - var(--pad)*2); max-width:var(--wrap);
  border:1px solid var(--line-soft); background:var(--ink-2); overflow:hidden}
.proc-stage{position:absolute; inset:0}
#procCanvas{position:absolute; inset:0; width:100%; height:100%; display:block}
.proc-rail{
  position:absolute; left:0; right:0; bottom:0; z-index:3;
  display:flex; overflow-x:auto; scrollbar-width:none;
  border-top:1px solid var(--line-soft); background:rgba(12,24,37,.9);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.proc-rail::-webkit-scrollbar{display:none}
.proc-tab{
  flex:1 0 auto; min-width:132px; padding:15px 18px; background:none; border:0; cursor:pointer;
  border-right:1px solid var(--line-soft); text-align:left; color:var(--text-2);
  transition:background .25s ease, color .25s ease;
}
.proc-tab:hover{background:var(--panel); color:var(--text)}
.proc-tab.is-on{background:var(--cyan); color:var(--ink)}
.proc-tab-idx{font-family:var(--mono); font-size:10px; letter-spacing:.16em; display:block; opacity:.75}
.proc-tab-name{font-size:14.5px; font-weight:600; display:block; margin-top:5px; white-space:nowrap}
.proc-card{
  position:absolute; top:22px; left:22px; z-index:3; width:min(370px, calc(100% - 44px));
  background:rgba(22,41,60,.88); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border:1px solid var(--line); padding:24px 26px;
}
.proc-card-idx{font-size:11px; color:var(--cyan); margin-bottom:10px}
.proc-card-title{font-size:23px; font-weight:800; color:var(--white); margin:0 0 10px; letter-spacing:-.015em}
.proc-card-text{font-size:16.5px; color:var(--text-2); margin:0 0 14px; line-height:1.55}
.proc-card-meta{font-size:11.5px; color:var(--amber); line-height:1.9; border-top:1px solid var(--line-soft); padding-top:12px}
.proc-hint{position:absolute; right:22px; top:26px; z-index:3; font-size:10px; color:var(--muted)}
/* whole-line view: the card shrinks to its heading so the line stays in view */
.proc-card.is-compact{width:min(300px, calc(100% - 44px)); padding:18px 20px}
.proc-card.is-compact .proc-card-text,.proc-card.is-compact .proc-card-meta{display:none}
.proc-card.is-compact .proc-card-title{font-size:19px; margin:0}
.proc-tab-all .proc-tab-idx{letter-spacing:.2em}

/* =========================================================
   TIRE SEGMENTS
   ========================================================= */
.tire-shell{display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:clamp(24px,4vw,54px); align-items:stretch}
.tire-stage{position:relative; min-height:clamp(360px,52vh,520px); border:1px solid var(--line-soft); background:var(--ink); overflow:hidden}
#tireCanvas{position:absolute; inset:0; width:100%; height:100%; display:block}
.tire-hint{position:absolute; left:18px; bottom:16px; font-size:10px; color:var(--muted)}
.tire-detail{display:flex; flex-direction:column; justify-content:center; padding:8px 0}
.tire-detail-tag{font-size:11px; color:var(--cyan); margin-bottom:12px}
.tire-detail-name{font-size:clamp(26px,3.2vw,38px); font-weight:800; letter-spacing:-.02em; color:var(--white); margin:0 0 14px; line-height:1.08}
.tire-detail-use{font-size:17.5px; color:var(--text-2); margin:0 0 18px; line-height:1.55; max-width:480px}
.tire-detail-data{font-size:12.5px; color:var(--amber); letter-spacing:.07em; padding:13px 0; border-block:1px solid var(--line-soft); margin-bottom:18px}
.tire-detail-plants-lbl{font-size:11.5px; color:var(--text-2); margin-bottom:12px}
.tire-detail-plants{list-style:none; margin:0; padding:0; display:grid; gap:9px}
.tire-detail-plants li{font-size:15.5px; color:var(--text); display:flex; gap:12px; align-items:flex-start; line-height:1.5}
.tire-detail-plants li::before{content:""; width:10px; height:10px; margin-top:6px; flex:none; border:2px solid var(--amber); background:transparent; transform:rotate(45deg)}
/* The picker sits above the stage: on a phone the buttons and the tire have to
   be on screen together, or a tap sends the answer off the bottom of the view. */
.tire-picker{display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px}
.tire-chip{
  font-family:var(--mono); font-size:11.5px; letter-spacing:.08em; text-transform:uppercase;
  padding:11px 17px; background:var(--panel); color:var(--text);
  border:1px solid var(--line); cursor:pointer; transition:all .22s ease; display:flex; flex-direction:column; gap:3px; min-width:96px;
}
.tire-chip small{font-size:11px; letter-spacing:.04em; color:var(--muted); text-transform:none; font-family:var(--sans)}
.tire-chip:hover{border-color:var(--cyan); color:var(--white)}
.tire-chip.is-on{background:var(--cyan); border-color:var(--cyan); color:var(--ink); font-weight:700}
.tire-chip.is-on small{color:var(--ink)}


/* =========================================================
   LAYOUT EXPLORER
   ========================================================= */
.layout-shell{position:relative; height:clamp(480px, 72vh, 680px); margin:12px auto 0;
  width:calc(100% - var(--pad)*2); max-width:var(--wrap);
  border:1px solid var(--line-soft); background:var(--ink); overflow:hidden}
.layout-stage{position:absolute; inset:0}
#layoutCanvas{position:absolute; inset:0; width:100%; height:100%; display:block}
.layout-panel{
  position:absolute; top:22px; right:22px; z-index:3; width:min(340px, calc(100% - 44px));
  background:rgba(22,41,60,.9); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border:1px solid var(--line); padding:24px 26px;
}
.layout-panel-idx{font-size:10.5px; color:var(--cyan); margin-bottom:10px}
.layout-panel-title{font-size:21px; font-weight:800; color:var(--white); margin:0 0 10px; letter-spacing:-.015em}
.layout-panel-text{font-size:16px; color:var(--text-2); margin:0; line-height:1.55}
.layout-panel-stats{font-size:11.5px; color:var(--amber); line-height:2; margin-top:14px; border-top:1px solid var(--line-soft); padding-top:12px}
.layout-tools{position:absolute; left:22px; top:22px; z-index:3; display:flex; gap:8px; flex-wrap:wrap}
.tool-btn{
  font-family:var(--mono); font-size:11px; letter-spacing:.13em; text-transform:uppercase;
  padding:10px 15px; background:rgba(22,41,60,.86); color:var(--text-2);
  border:1px solid var(--line); cursor:pointer; transition:all .25s ease;
}
.tool-btn:hover{border-color:var(--cyan); color:var(--white)}
.tool-btn.is-on{background:var(--cyan); border-color:var(--cyan); color:var(--ink); font-weight:700}
.layout-hint{position:absolute; left:22px; bottom:18px; z-index:3; font-size:10px; color:var(--muted)}

/* zoom +/- control shared by process, layout, globe */
.zoomctl{
  position:absolute; right:16px; bottom:16px; z-index:4;
  display:flex; flex-direction:column; gap:1px; background:var(--line);
  border:1px solid var(--line);
}
.zoomctl button{
  width:38px; height:38px; background:rgba(22,41,60,.92); color:var(--text);
  border:0; cursor:pointer; font-size:20px; line-height:1; font-weight:400;
  display:grid; place-items:center; transition:background .2s ease, color .2s ease;
}
.zoomctl button:hover{background:var(--cyan); color:var(--ink)}
.zoomctl button:active{background:var(--cyan-dim)}

/* cutaway layer labels, accented */
.tag3d.tag-layer{
  background:rgba(12,24,37,.94); border-color:var(--cyan);
  color:var(--white); font-size:10px; padding:4px 9px;
  box-shadow:0 2px 12px rgba(0,0,0,.3);
}
.tag3d.tag-layer::before{
  content:""; position:absolute; left:-5px; top:50%; width:5px; height:5px;
  background:var(--cyan); border-radius:50%; transform:translateY(-50%);
}

/* labels rendered into DOM by three */
.tag3d{
  position:absolute; top:0; left:0;      /* without this an absolute tag falls to its
                                            static position, i.e. below the hero copy */
  transform:translate(-50%,-50%); pointer-events:none; z-index:2;
  font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--text); background:rgba(16,31,46,.92); border:1px solid var(--line);
  padding:4px 9px; white-space:nowrap; transition:opacity .25s ease;
}
.tag3d.is-hidden{opacity:0; pointer-events:none}
.tag3d.tag-sm{font-size:9px; padding:3px 6px; letter-spacing:.08em}
/* hero section call-outs: sit on the model, no box to fight the geometry */
.tag3d.tag-hero{
  background:none; border:0; padding:0; color:var(--text);
  font-size:11.5px; letter-spacing:.14em; white-space:nowrap;
  text-shadow:0 1px 6px rgba(6,14,22,.9), 0 0 2px rgba(6,14,22,.9);
  transition:opacity .3s ease;
}

/* map furniture: faint region names, and quieter labels for unselected pins */
.tag3d.tag-region{
  background:transparent; border:0; color:var(--muted);
  font-size:11px; letter-spacing:.24em; opacity:.5; padding:0;
}
.tag3d.tag-quiet{
  background:rgba(16,31,46,.82); border-color:var(--line-soft);
  color:var(--text-2); font-size:10px; padding:3px 7px;
}

/* =========================================================
   RECORD
   ========================================================= */
.proj-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px}
.proj{
  border:1px solid var(--line-soft); background:var(--ink-2); padding:32px 28px 30px;
  transition:border-color .3s ease, transform .3s ease; position:relative; overflow:hidden;
}
.proj::before{content:""; position:absolute; left:0; top:0; width:3px; height:0; background:var(--amber); transition:height .4s ease}
.proj:hover{border-color:var(--amber); transform:translateY(-3px)}
.proj:hover::before{height:100%}
.proj-num small{font-size:.46em; font-weight:700; margin-left:.12em; letter-spacing:0}
.proj-num{font-size:clamp(40px,4.6vw,58px); font-weight:800; color:var(--amber); letter-spacing:-.03em; line-height:1}
.proj-num-sub{font-size:15.5px; color:var(--text-2); margin-top:10px; line-height:1.4}
.proj-name{font-family:var(--mono); font-size:12.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--cyan); margin-top:22px; padding-top:16px; border-top:1px solid var(--line-soft); line-height:1.75}
.proj-text{font-size:16.5px; color:var(--text-2); margin:13px 0 0; line-height:1.6}

/* Gallery: mixed portrait and landscape photos used to be forced into one
   span-based grid, so rows never lined up. They are now grouped into
   aspect-locked rows, every tile in a row shares a ratio, so nothing ragged. */
.gal-feature{margin:34px 0 0; position:relative; overflow:hidden; border:1px solid var(--line-soft)}
.gal-feature img{width:100%; height:auto; aspect-ratio:2.35/1; object-fit:cover; object-position:center 42%;
  filter:saturate(.92) contrast(1.04); transition:transform .9s cubic-bezier(.2,.7,.3,1)}
.gal-feature:hover img{transform:scale(1.02)}

.gallery{display:grid; gap:14px; margin-top:14px}
.gal-tall{grid-template-columns:repeat(4,1fr)}
.gal-wide{grid-template-columns:repeat(4,1fr)}
.gallery figure{margin:0; position:relative; overflow:hidden; border:1px solid var(--line-soft);
  display:flex; flex-direction:column}
.gal-tall img{aspect-ratio:3/4}
.gal-wide img{aspect-ratio:4/3}
.gallery img{
  width:100%; height:auto; object-fit:cover; display:block;
  filter:saturate(.9) contrast(1.04);
  transition:transform .8s cubic-bezier(.2,.7,.3,1), filter .5s ease;
}
.gallery figure:hover img{transform:scale(1.04); filter:saturate(1) contrast(1.04)}

/* captions sit under the photo so they are readable, not burned over it */
.gal-feature figcaption,.gallery figcaption{
  font-size:14px; line-height:1.5; color:var(--text-2);
  padding:12px 14px; background:var(--ink-2); border-top:1px solid var(--line-soft);
}
.gallery figcaption{flex:1}
.gal-feature figcaption{font-size:16px; padding:16px 18px}
.gal-feature figcaption b,.gallery figcaption b{color:var(--white); font-weight:700}
.section-paper .gal-feature figcaption,.section-paper .gallery figcaption{background:#fff}

/* =========================================================
   GLOBE
   ========================================================= */
.globe-shell{position:relative; height:clamp(460px, 70vh, 640px); margin:12px auto 0;
  width:calc(100% - var(--pad)*2); max-width:var(--wrap);
  border:1px solid var(--line-soft); background:var(--ink-2); overflow:hidden}
#globeCanvas{position:absolute; inset:0; width:100%; height:100%; display:block}
/* list sits BELOW the map and runs horizontally, nothing overlays the map */
.globe-below{
  width:calc(100% - var(--pad)*2); max-width:var(--wrap); margin:14px auto 0;
}
.globe-toggle{display:flex; gap:8px; margin-bottom:12px}
.globe-toggle button{
  font-family:var(--mono); font-size:12.5px; letter-spacing:.09em; text-transform:uppercase;
  padding:12px 20px; background:var(--ink-2); color:var(--text-2);
  border:1px solid var(--line); cursor:pointer; transition:all .22s ease;
}
.globe-toggle button:hover{border-color:var(--cyan); color:var(--white)}
.globe-toggle button.is-on{background:var(--cyan); border-color:var(--cyan); color:var(--ink); font-weight:700}
.globe-list{
  display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px;
}
.globe-item{
  display:block; text-align:left; background:var(--ink-2);
  border:1px solid var(--line-soft); border-top:2px solid transparent;
  padding:16px 18px; cursor:pointer;
  transition:background .25s ease, border-color .25s ease, transform .25s ease;
}
.globe-item:hover{background:var(--panel); border-color:var(--line)}
.globe-item.is-on{background:var(--panel); border-color:var(--line); border-top-color:var(--cyan)}
/* Tag, then name, then line: stacking them keeps a long tag such as
   RELOCATION from being pushed out of a narrow card by a two-word place name. */
.globe-item-name{display:block; font-size:16px; font-weight:700; color:var(--white); margin-bottom:5px; line-height:1.25}
.globe-item-tag{
  display:block; font-family:var(--mono); font-size:10px; letter-spacing:.12em;
  color:var(--cyan); margin-bottom:6px;
}
.globe-item-text{font-size:13.5px; color:var(--text-2); line-height:1.5; display:block}

/* ---------- site-by-site detail, in the track record ---------- */
/* Colours come from the section's own tokens, never from raw values: inside
   .section-paper `--ink` is a light cream, so a hard-coded dark would flip to
   invisible the moment the card moved to a light section (which it did). */
.site-detail-head{margin:clamp(34px,4vw,52px) 0 20px}
.site-detail-title{font-size:clamp(20px,2.3vw,27px); font-weight:800; letter-spacing:-.015em; color:var(--white); margin:0 0 8px}
.site-detail-sub{font-size:16px; color:var(--text-2); margin:0}
.site-detail{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px}
.site-card{border:1px solid var(--line-soft); background:var(--ink-2); padding:17px 18px 19px}
.section-paper .site-card{background:#fff}
.site-card-tag{font-size:10px; letter-spacing:.13em; color:var(--cyan); font-weight:700; margin-bottom:8px}
.site-card-name{font-size:16.5px; font-weight:800; color:var(--white); margin:0 0 7px; letter-spacing:-.01em; line-height:1.2}
.site-card-text{font-size:14px; line-height:1.55; color:var(--text-2); margin:0; font-weight:450}
@media (max-width:1080px){ .site-detail{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:820px){ .site-detail{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:560px){ .site-detail{grid-template-columns:1fr; gap:10px} }
.globe-hint{position:absolute; right:22px; bottom:18px; z-index:3; font-size:11.5px; color:var(--muted)}

/* =========================================================
   TIMELINE
   ========================================================= */
/* progression ladder */
.ladder{
  display:grid; grid-template-columns:repeat(5,1fr); gap:0; margin-bottom:clamp(40px,5vw,60px);
  position:relative;
}
.ladder::before{content:""; position:absolute; left:0; right:0; top:5px; height:2px; background:var(--line-soft)}
.rung{position:relative; padding:22px 14px 0 0}
.rung-dot{position:absolute; top:0; left:0; width:14px; height:14px; background:var(--ink); border:2px solid var(--cyan); border-radius:50%; z-index:1}
.rung.is-current .rung-dot{background:var(--amber); border-color:var(--amber); box-shadow:0 0 0 6px rgba(247,188,104,.2)}
.rung-years{font-size:13px; color:var(--amber); margin-bottom:9px; min-height:16px; font-weight:700}
.rung-role{font-size:17.5px; font-weight:700; color:var(--white); line-height:1.25; margin-bottom:6px; letter-spacing:-.01em;
  min-height:2.5em}   /* reserve two lines so every org label sits on one line */
.rung.is-current .rung-role{color:var(--amber)}
.rung-org{font-size:11.5px; color:var(--text-2); letter-spacing:.09em}

/* accordion timeline */
.timeline{position:relative; display:grid; gap:14px}
.tl{position:relative; border:1px solid var(--line-soft); background:var(--ink-2); transition:border-color .3s ease, background .3s ease}
.tl:hover{border-color:var(--line)}
.tl.is-current{border-left:3px solid var(--amber)}
.tl-head{
  width:100%; text-align:left; background:none; border:0; cursor:pointer;
  display:flex; align-items:flex-start; justify-content:space-between; gap:20px;
  padding:24px clamp(22px,3vw,32px); list-style:none;
}
.tl-head::-webkit-details-marker{display:none}
.tl-head-main{flex:1; min-width:0}
.tl-years,.tl-role,.tl-org{display:block}
.tl-years{font-family:var(--mono); font-size:13px; letter-spacing:.12em; color:var(--amber); margin-bottom:10px; font-weight:700}
.tl-role{font-size:clamp(21px,2.5vw,29px); font-weight:700; color:var(--white); margin:0 0 6px; letter-spacing:-.018em; line-height:1.2}
.tl-org{font-size:16.5px; color:var(--text-2); margin:0}
.tl-toggle{position:relative; width:22px; height:22px; flex:none; margin-top:6px}
.tl-toggle::before,.tl-toggle::after{content:""; position:absolute; background:var(--cyan); transition:transform .3s ease, opacity .3s ease}
.tl-toggle::before{left:0; top:10px; width:22px; height:2px}
.tl-toggle::after{left:10px; top:0; width:2px; height:22px}
.tl[open] .tl-toggle::after{transform:scaleY(0)}
.tl-body{font-size:17.5px; color:var(--text-2); margin:0 clamp(22px,3vw,32px) 18px; max-width:68ch; line-height:1.6}
.tl-points{list-style:none; margin:0; padding:0 clamp(22px,3vw,32px) 26px; display:grid; gap:10px; max-width:900px}
.tl-points li{font-size:16.5px; color:var(--text-2); display:flex; gap:13px; line-height:1.6}
.tl-points li::before{content:""; width:12px; height:3px; background:var(--amber); margin-top:11px; flex:none}

/* =========================================================
   DOMAIN
   ========================================================= */
.dom-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:22px; margin-bottom:38px}
.dom{border:1px solid var(--line-soft); background:var(--ink); padding:26px 26px 28px; position:relative; overflow:hidden; transition:border-color .3s ease, transform .3s ease}
.dom::after{content:""; position:absolute; left:0; top:0; height:3px; width:0; background:var(--cyan); transition:width .4s ease}
.dom:hover{border-color:var(--line); transform:translateY(-3px)}
.dom:hover::after{width:100%}
.dom-top{display:flex; align-items:center; gap:14px; margin-bottom:20px}
.dom-icon{width:40px; height:40px; flex:none; color:var(--cyan); display:grid; place-items:center;
  border:1px solid var(--line); background:var(--ink-2)}
.dom-icon svg{width:23px; height:23px}
.dom-head{font-family:var(--mono); font-size:13px; letter-spacing:.11em; text-transform:uppercase; color:var(--white); flex:1; font-weight:700}
.dom-count{font-size:14px; color:var(--cyan); font-weight:700}
.dom-chips{display:flex; flex-wrap:wrap; gap:8px}
.dom-chips span{font-size:15.5px; color:var(--text); border:1px solid var(--line); padding:9px 15px; transition:border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease; cursor:default}
.dom-chips span:hover{border-color:var(--cyan); color:var(--ink); background:var(--cyan); transform:translateY(-2px)}

.edu-block{border:1px solid var(--line-soft); background:var(--ink); padding:30px 28px}
.edu-head{font-size:13px; color:var(--cyan); margin-bottom:22px; font-weight:700}
.edu-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px}
.edu-item b{display:block; font-size:17.5px; color:var(--white); font-weight:600; margin-bottom:7px}
.edu-item span{display:block; font-size:15.5px; color:var(--text-2); line-height:1.55}

/* =========================================================
   CONTACT
   ========================================================= */
.contact{border-top:1px solid var(--line-soft)}
.contact-grid{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:clamp(30px,5vw,70px); align-items:start}
.contact-right{display:grid; gap:22px}
.contact-lines{margin-top:34px; border-top:1px solid var(--line-soft)}
.contact-line{
  display:flex; align-items:baseline; gap:20px; padding:15px 0;
  border-bottom:1px solid var(--line-soft); transition:padding-left .25s ease;
}
a.contact-line:hover{padding-left:10px}
.contact-line span{font-size:11.5px; color:var(--text-2); width:86px; flex:none}
.contact-line b{font-size:19.5px; font-weight:600; color:var(--white)}
a.contact-line:hover b{color:var(--cyan)}
.contact-actions{margin-top:32px; display:flex; gap:14px; flex-wrap:wrap}

.li-glyph{width:86px; flex:none; color:var(--cyan); display:flex; align-items:center}
.li-glyph svg{width:19px; height:19px}
a.contact-line:hover .li-glyph{color:var(--white)}
.btn-linkedin{display:inline-flex; align-items:center; gap:10px}
.btn-linkedin svg{width:16px; height:16px}

.contact-card{border:1px solid var(--line-soft); background:var(--ink-2); padding:30px 28px}
.contact-card-head{font-size:13px; color:var(--amber); margin-bottom:22px; font-weight:700}
.eng-item{padding:16px 0; border-top:1px solid var(--line-soft)}
.eng-item:first-of-type{border-top:0; padding-top:0}
.eng-item b{display:block; font-size:17.5px; color:var(--white); font-weight:600; margin-bottom:7px}
.eng-item span{display:block; font-size:15.5px; color:var(--text-2); line-height:1.6}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{border-top:1px solid var(--line-soft); background:var(--ink-2); padding:28px 0}
.footer-inner{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:12px; color:var(--text-2)}
.footer-dim{color:#9FB6C6}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1080px){
  .svc-grid{grid-template-columns:repeat(2,1fr)}
  .proj-grid{grid-template-columns:repeat(2,1fr); gap:16px}
  .edu-grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:760px){
  .proj-grid{grid-template-columns:1fr}
}

@media (max-width:900px){
  .nav-links{
    position:fixed; inset:0 0 auto; top:0; padding:96px var(--pad) 40px;
    background:rgba(20,44,62,.97); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
    flex-direction:column; align-items:flex-start; gap:6px;
    transform:translateY(-102%); transition:transform .45s cubic-bezier(.2,.8,.3,1);
    border-bottom:1px solid var(--line-soft);
  }
  .nav.is-open .nav-links{transform:none}
  .nav-links a{font-size:19px; padding:11px 0; width:100%}
  .nav-cta{margin-top:14px; font-size:11px !important; padding:11px 20px !important}
  .nav-toggle{display:flex}
  .nav-name{display:none}

  .tire-shell{grid-template-columns:1fr; gap:26px}
  .profile-grid{grid-template-columns:1fr; gap:34px}
  .profile-photo{max-width:340px}
  .contact-grid{grid-template-columns:1fr}
  .dom-grid{grid-template-columns:1fr}
  .stat-row{grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px}
  .gal-tall,.gal-wide{grid-template-columns:repeat(2,1fr)}
  .gal-feature img{aspect-ratio:16/9}
  .hero-badge{display:none}
  /* controls move to the top-right on phones: the bottom corner is occupied by
     the contact line and the sticky call bar */
  /* the section is decorative at this width, so its controls go, it stays draggable */
  .hero-ctl{display:none}
  /* the model sits behind the copy at this width, so darken it further */
  .hero-grid-overlay{
    background:
      radial-gradient(120% 80% at 70% 45%, transparent 0%, rgba(8,18,28,.5) 60%, rgba(8,18,28,.75) 100%),
      linear-gradient(180deg, rgba(8,18,28,.93) 0%, rgba(8,18,28,.88) 58%, rgba(8,18,28,.7) 100%);
  }
  .hud-panel{max-width:none}
  .proc-card{left:14px; top:14px; width:min(300px, calc(100% - 28px))}
  .proc-hint,.layout-hint,.globe-hint,.tire-hint{display:none}
  .tire-scale{width:132px; right:10px; top:10px}
  .tire-stage{min-height:320px}
  .zoomctl{right:12px; bottom:12px}
  .zoomctl button{width:42px; height:42px}   /* larger tap targets */
}

@media (max-width:600px){
  .globe-list{grid-template-columns:1fr}
  .svc-grid{grid-template-columns:1fr}
  .edu-grid{grid-template-columns:1fr}
  .stat-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero{min-height:92svh}
  .proc-card{top:14px; padding:18px 18px}
  .proc-card-text{display:none}
  .layout-tools{top:auto; bottom:auto; left:var(--pad); top:16px}
  .gal-tall{grid-template-columns:repeat(2,1fr)}
  .gal-wide{grid-template-columns:1fr}
  .gal-feature img{aspect-ratio:4/3}
  .gallery figcaption{font-size:13.5px}
}


/* ---------- phones: the explorer stacks, so the flow is never covered ----------
   Floating the read-out over the canvas works on a desktop, where there is
   canvas to spare. On a phone it sat straight on top of the material-flow
   animation it was describing, so below 760px the panel drops underneath and
   the canvas keeps its whole area. */
@media (max-width:760px){
  .layout-shell{height:auto; overflow:visible; border:0; background:transparent}
  .layout-stage{
    position:relative; inset:auto; height:clamp(300px,54vh,440px);
    border:1px solid var(--line-soft); background:var(--ink); overflow:hidden;
  }
  .layout-panel{
    position:static; width:auto; margin-top:12px; border:1px solid var(--line-soft);
    background:var(--ink-2); backdrop-filter:none; -webkit-backdrop-filter:none;
    padding:18px 18px 20px;
  }
  .layout-panel-text{font-size:15px}
  .layout-tools{left:12px; top:12px; gap:7px}
  .tool-btn{padding:9px 12px; font-size:10.5px; letter-spacing:.1em}

  /* the same problem in the process bay: the station card goes below the line */
  .proc-shell{height:auto; overflow:visible; border:0; background:transparent}
  .proc-rail{position:static; border:1px solid var(--line-soft); border-top:0; backdrop-filter:none; -webkit-backdrop-filter:none}
  .proc-tab{min-width:112px; padding:12px 14px}
  .proc-tab-name{font-size:13px}
  .proc-card.is-compact{width:auto; padding:18px 18px 20px}
  .proc-card.is-compact .proc-card-text,.proc-card.is-compact .proc-card-meta{display:block}
  .proc-card.is-compact .proc-card-title{font-size:21px; margin:0 0 10px}
  .proc-stage{
    position:relative; inset:auto; height:clamp(300px,54vh,440px);
    border:1px solid var(--line-soft); background:var(--ink); overflow:hidden;
  }
  .proc-card{
    position:static; width:auto; margin-top:12px; border:1px solid var(--line-soft);
    background:var(--ink-2); backdrop-filter:none; -webkit-backdrop-filter:none;
    padding:18px 18px 20px;
  }
  .proc-card-text{display:block; font-size:15px}

  /* picker and tire together in one view, so a tap shows its answer at once */
  .tire-picker{display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-bottom:12px}
  .tire-chip{min-width:0; padding:9px 12px; font-size:10.5px; letter-spacing:.06em}
  .tire-chip small{font-size:10.5px}
  .tire-stage{min-height:clamp(260px,42vh,340px)}
  .tire-shell{gap:18px}

  /* the map goes edge to edge: every pixel of width is a degree of longitude
     that does not have to be panned to */
  .globe-shell{width:100%; max-width:none; height:clamp(300px,42vh,380px);
    border-left:0; border-right:0; margin-top:8px}
}


/* ---------- phone typography and rhythm ----------
   The desktop scale puts a two-line title and a six-line standfirst on a phone
   screen before anything interactive appears. Everything below tightens the
   run-up so the thing each section is actually about is reachable. */
@media (max-width:640px){
  .section{padding:clamp(52px,12vw,72px) 0}
  .section-tight{padding-bottom:clamp(36px,8vw,52px)}
  .sec-head{margin-bottom:26px}
  .eyebrow{font-size:11.5px; margin-bottom:12px; letter-spacing:.14em}
  .sec-title{font-size:clamp(26px,7.4vw,32px); line-height:1.14}
  .sec-title br{display:none}
  .sec-sub{font-size:15.5px; line-height:1.58; margin-top:14px}
  .lead{font-size:17.5px; line-height:1.55}
  .profile-body p,.client p,.way p,.tl-body,.proj-text,.indep-body{font-size:15.5px; line-height:1.6}
  .proj-num{font-size:clamp(34px,11vw,46px)}
  .stat-num{font-size:clamp(30px,9vw,40px)}
  .hero-name{line-height:1.02}
  .hero-sub{font-size:16px; line-height:1.58}
  .hero-role{font-size:16.5px}
  .chain li{font-size:13px}
  .tire-detail-name{font-size:24px}
  .tire-detail-use{font-size:15.5px}
  .tire-detail-plants li{font-size:14.5px}
  .globe-item-text{font-size:13.5px}
  .svc-d-title{font-size:17px}
  .svc-d-sum{font-size:14.5px}
  .engage-head{font-size:22px}
}


/* ---------- career ladder, on a phone ----------
   Five rungs across a 360px screen is either three columns of clipped text or
   a stack with no sense of progression. Below 760px it becomes a proper
   timeline: one vertical line, rungs alternating either side of it, and the
   order reversed so the role he holds now is the one at the top. */
@media (max-width:760px){
  .ladder{
    display:flex; flex-direction:column-reverse; gap:0;
    position:relative; margin-bottom:34px;
  }
  .ladder::before{
    left:50%; right:auto; top:0; bottom:0; width:2px; height:auto;
    transform:translateX(-1px); display:block;
  }
  .rung{width:50%; padding:0 0 24px}
  .rung:last-child{padding-bottom:0}          /* the oldest, now at the foot */
  .rung:nth-child(odd){align-self:flex-start; padding-right:22px; text-align:right}
  .rung:nth-child(even){align-self:flex-end; padding-left:22px; text-align:left}
  .rung-dot{top:2px; left:auto}
  .rung:nth-child(odd) .rung-dot{right:-8px}
  .rung:nth-child(even) .rung-dot{left:-8px}
  .rung-role{min-height:0; font-size:15.5px; margin-bottom:4px}
  .rung-years{font-size:12px; margin-bottom:5px; min-height:0}
  .rung-years:empty,.rung-years:blank{display:none}
  .rung-org{font-size:10.5px; line-height:1.5}
}

/* =========================================================
   ACCESSIBILITY: skip link + visible keyboard focus
   ========================================================= */
.skip{
  position:fixed; top:-64px; left:16px; z-index:1200;
  background:var(--cyan); color:var(--ink); padding:12px 18px;
  font-size:11px; font-weight:700; transition:top .2s ease;
}
.skip:focus{top:12px}
a:focus-visible, button:focus-visible, summary:focus-visible{
  outline:2px solid var(--cyan); outline-offset:3px;
}

/* =========================================================
   HERO CONTACT LINE
   ========================================================= */
.hero-contact{margin-top:28px; font-size:13.5px; color:var(--text-2); display:flex; gap:14px; flex-wrap:wrap; align-items:baseline}
.hero-contact a{color:var(--text-2); transition:color .2s ease}
.hero-contact a:hover{color:var(--cyan)}

/* =========================================================
   WHO I WORK WITH
   ========================================================= */
.client-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px}
.client{
  border:1px solid var(--line-soft); background:var(--ink-2); padding:26px 24px;
  position:relative; transition:border-color .3s ease, transform .3s ease;
}
.client::before{content:""; position:absolute; left:0; top:0; width:2px; height:0; background:var(--cyan); transition:height .35s ease}
.client:hover{border-color:var(--line); transform:translateY(-3px)}
.client:hover::before{height:100%}
.client-title{font-size:21px; font-weight:700; color:var(--white); margin:0 0 12px; letter-spacing:-.01em}
.client p{font-size:16.5px; color:var(--text-2); margin:0; line-height:1.6}
.client-scale{
  margin:34px 0 0; border:1px solid var(--line-soft); border-left:3px solid var(--amber);
  background:var(--ink-2); padding:26px 30px; font-size:18px; color:var(--text-2); line-height:1.6;
}

/* =========================================================
   HOW I WORK + INDEPENDENCE
   ========================================================= */
.way-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px}
.way{border:1px solid var(--line-soft); background:var(--ink); padding:28px 26px}
.way-title{font-size:21px; font-weight:700; color:var(--white); margin:0 0 13px; letter-spacing:-.01em}
.way p{font-size:16.5px; color:var(--text-2); margin:0; line-height:1.62}
.indep{margin-top:26px; border:1px solid var(--amber); background:rgba(247,188,104,.07); padding:clamp(28px,4vw,44px)}
.indep-head{font-size:13px; color:var(--amber); margin-bottom:14px}
.indep-line{font-size:clamp(20px,2.6vw,30px); font-weight:800; color:var(--white); letter-spacing:-.015em; margin:0 0 12px; line-height:1.25}
.indep-body{font-size:18px; color:var(--text-2); margin:0; max-width:66ch; line-height:1.6}

/* =========================================================
   PROCESS CHAIN (static, works without JS, reflows on mobile)
   ========================================================= */
.chain{
  list-style:none; counter-reset:step; margin:0; padding:0;
  display:flex; flex-wrap:wrap; gap:12px 26px;
}
.chain li{
  counter-increment:step; position:relative;
  display:flex; align-items:center; gap:10px;
  font-family:var(--mono); font-size:13px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--text); border:1px solid var(--line); background:var(--ink-2);
  padding:13px 17px;
}
.chain li::before{content:counter(step, decimal-leading-zero); color:var(--cyan); font-size:10px; letter-spacing:.12em}
.chain li:not(:last-child)::after{
  content:""; position:absolute; right:-20px; top:50%; margin-top:-4px;
  border-left:7px solid var(--cyan-dim); border-block:4px solid transparent;
}

/* =========================================================
   STATIC FALLBACKS (no-JS / no-WebGL / print)
   ========================================================= */
.build-static, .tires-static{display:none}
.build-static{padding-block:48px}
.build-static-list{list-style:none; counter-reset:bs; margin:20px 0 0; padding:0; display:grid; gap:14px; max-width:860px}
.build-static-list li{counter-increment:bs; font-size:17px; color:var(--text-2); line-height:1.6; display:flex; gap:14px}
.build-static-list li::before{content:counter(bs, decimal-leading-zero); font-family:var(--mono); color:var(--cyan); font-size:12px; margin-top:3px; flex:none}
.build-static-list b{color:var(--white)}
.tires-static{padding-block:26px 0}
.tires-static ul{list-style:none; margin:0; padding:0; display:grid; gap:12px; max-width:860px}
.tires-static li{font-size:16.5px; color:var(--text-2); line-height:1.6}
.tires-static b{color:var(--white)}
body.no-3d .hero-canvas, body.no-3d .hero-ctl, body.no-3d .hero-scroll,
body.no-3d .scrolly-sticky, body.no-3d .scrolly-steps,
body.no-3d .proc-shell, body.no-3d .tire-shell, body.no-3d .tire-picker,
body.no-3d .layout-shell, body.no-3d .globe-shell{display:none}
body.no-3d .build-static, body.no-3d .tires-static{display:block}

/* ---------- phones: the build becomes a stepped viewer ----------
   Same scene, same six stages, but driven by two arrows instead of by six
   screen-heights of scroll, which on a phone was both the slowest thing on
   the page and the hardest to read. The canvas stops being a sticky backdrop
   and becomes a window with the stage text underneath it. */
body.lite-3d .scrolly-steps{display:none}
body.lite-3d .scrolly{min-height:0; height:auto; padding:clamp(52px,12vw,72px) 0}
body.lite-3d .scrolly-sticky{
  position:static; height:auto; overflow:visible;
  width:calc(100% - var(--pad)*2); max-width:var(--wrap); margin:0 auto;
}
body.lite-3d #plantCanvas{display:none}
.build-shot{display:none}
body.lite-3d .build-shot{
  display:block; margin:0; position:relative;
  height:clamp(230px,32vh,310px); overflow:hidden;
  border:1px solid var(--line-soft); background:var(--ink-2);
}
body.lite-3d .build-shot img{
  width:100%; height:100%; object-fit:cover; display:block;
}
body.lite-3d .scrolly-hud{
  position:static; inset:auto; padding:0; pointer-events:auto; max-width:none;
  display:flex; flex-direction:column; margin-top:12px;
}
/* the controls sit directly under the window they drive, above the text they change */
body.lite-3d .hud-top{order:1; margin-bottom:10px}
body.lite-3d .build-nav{order:2}
body.lite-3d .hud-panel{order:3}
body.lite-3d .hud-steps{order:4}
body.lite-3d .hud-stage{display:none}   /* the count lives between the arrows */
body.lite-3d .hud-panel{
  max-width:none; background:var(--ink-2); backdrop-filter:none; -webkit-backdrop-filter:none;
  padding:18px 18px 20px; margin-top:12px;
}
body.lite-3d .hud-title{font-size:21px}
body.lite-3d .hud-text{font-size:15.5px}
body.lite-3d .hud-list li{font-size:11px}
body.lite-3d .hud-steps{margin-top:14px}
.build-nav{display:none}
body.lite-3d .build-nav{
  display:flex; align-items:center; gap:10px; margin-top:12px;
}
.build-arrow{
  width:52px; height:44px; flex:none; display:grid; place-items:center;
  background:var(--panel); color:var(--white); border:1px solid var(--line);
  font-size:22px; line-height:1; cursor:pointer; transition:background .2s ease, opacity .2s ease;
}
.build-arrow:hover:not(:disabled){background:var(--cyan); color:var(--ink)}
.build-arrow:disabled{opacity:.34; cursor:default}
.build-nav-count{font-size:12px; letter-spacing:.14em; color:var(--text-2)}

/* =========================================================
   RECORD: full-width expansions card
   ========================================================= */

/* =========================================================
   FOOTER LINKS
   ========================================================= */
.footer-links{margin-top:10px; font-size:12px; color:var(--text-2); line-height:2}
.footer-links a{transition:color .2s ease}
.footer-links a:hover{color:var(--cyan)}

/* =========================================================
   STICKY CONTACT BAR (mobile only)
   ========================================================= */
.stickybar{
  position:fixed; left:0; right:0; bottom:0; z-index:850; display:none;
  background:rgba(16,36,54,.97); border-top:1px solid var(--line-soft);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  padding-bottom:env(safe-area-inset-bottom);
}
.stickybar-btn{
  flex:1; text-align:center; padding:15px 8px;
  border-right:1px solid var(--line-soft); color:var(--cyan);
}
.stickybar-btn:last-child{border-right:0}
.stickybar-btn .mono{font-size:10.5px; letter-spacing:.15em}
.stickybar-wa{background:var(--cyan); color:var(--ink); font-weight:700}

/* =========================================================
   RESPONSIVE, new components
   ========================================================= */
@media (max-width:1080px){
  .globe-list{grid-template-columns:repeat(3, minmax(0,1fr))}
  .client-grid{grid-template-columns:repeat(2,1fr)}
  .way-grid{grid-template-columns:1fr; gap:16px}
}
@media (max-width:980px){
  .svc-x-stage .svc-d-body{grid-template-columns:1fr; gap:22px}
  .svc-x-stage .svc-fig{grid-column:1; grid-row:1}
  .svc-x-stage .svc-chips{grid-column:1; grid-row:2}
  .svc-x-rail{grid-template-columns:repeat(2, minmax(0,1fr))}
  .svc-x-tab{min-width:0; padding:13px 15px 12px; gap:5px}
  .svc-x-tab-l{font-size:14px}
  .svc-x-tab-n{font-size:10px}
  .svc-chips{gap:8px}
  .svc-chips li{font-size:14px; padding:9px 13px}
  .svc-x-stage{padding:22px 18px 24px}
  .svc-x-lead{margin-bottom:20px}
}
@media (max-width:900px){
  .client-grid{grid-template-columns:repeat(2,1fr); gap:14px}
  .globe-list{grid-template-columns:repeat(2, minmax(0,1fr))}
  .stickybar{display:flex}
  body{padding-bottom:52px}
  .hero-contact{font-size:11px}
  .svc-d summary{gap:14px; padding:20px 18px}
  .svc-d-body{padding:0 18px 22px}
  .chain{gap:10px 22px}
}
@media (max-width:600px){
  .client-grid{grid-template-columns:1fr}
  .contact-actions .btn{flex:1 1 100%; text-align:center}
  .chain li{flex:1 1 44%}
  .chain li:not(:last-child)::after{display:none}
  }

/* =========================================================
   PRINT, a clean paper/PDF version
   ========================================================= */
@media print{
  :root{
    --ink:#ffffff; --ink-2:#ffffff; --panel:#f4f4f4; --panel-2:#f4f4f4;
    --line:#9a9a9a; --line-soft:#c9c9c9; --cyan:#0a4f74; --cyan-dim:#0a4f74;
    --amber:#6b4a00; --text:#111; --text-2:#333; --muted:#555; --white:#000;
  }
  body{background:#fff; color:#111; font-size:12.5pt; padding-bottom:0}
  body::before{display:none}
  .nav, .ticker, .scroll-progress, .stickybar, .skip,
  .hero-canvas, .hero-grid-overlay, .tag3d, .hero-scroll, .hero-actions,
  .scrolly-sticky, .scrolly-steps,
  .proc-shell, .tire-shell, .tire-picker, .layout-shell, .globe-shell,
  .zoomctl, .hero-ctl, .tire-ctl, .gallery, .contact-actions{display:none !important}
  .build-static, .tires-static{display:block !important; padding-block:12pt}
  .gal-feature{break-inside:avoid}
  .gal-feature img{aspect-ratio:2.6/1}
  .hero{min-height:0; padding:0 0 12pt}
  .section, .section-alt, .scrolly, .contact, .footer{background:#fff; border:0; padding:14pt 0}
  .reveal{opacity:1 !important; transform:none !important; transition:none !important}
  .svc-d, .tl, .proj, .client, .way, .dom, .edu-block, .contact-card, .indep{
    break-inside:avoid; background:#fff;
  }
  .svc-d-toggle, .tl-toggle{display:none}
  .svc-x{display:none !important}
  .section-paper{background:#fff}
  .hl{color:#111; font-weight:700}
  .svc-chips li{border-color:#9a9a9a; background:#fff; color:#111; font-size:11pt; padding:4pt 7pt}
  #services.is-x .svc-list{display:block !important}
  .svc-fig{background:#fff}
  .svc-fig .d{stroke-dasharray:none !important; stroke-dashoffset:0 !important}
  .svc-fig .dsh{stroke-dasharray:5 6 !important}
  .svc-fig .f{opacity:1 !important}
  .hero-content > *{max-width:none}
  a{text-decoration:none; color:inherit}
  .contact-line b, .footer-links a{color:#111}
}

/* ---------- tire viewer: on-model rotate controls ---------- */
.tire-ctl{
  position:absolute; left:50%; bottom:14px; transform:translateX(-50%); z-index:4;
  display:flex; gap:1px; background:var(--line); border:1px solid var(--line);
}
.tire-ctl button{
  width:46px; height:40px; background:rgba(16,31,46,.92); color:var(--text);
  border:0; cursor:pointer; font-size:19px; line-height:1;
  display:grid; place-items:center; transition:background .2s ease, color .2s ease;
}
.tire-ctl button:hover{background:var(--cyan); color:var(--ink)}
.tire-ctl button.is-on{background:var(--cyan); color:var(--ink)}
@media (max-width:600px){ .tire-ctl button{width:54px; height:44px} }

/* no accidental text selection while dragging a 3D scene */
body.is-dragging{user-select:none; -webkit-user-select:none}
