/* =========================================================
   Stratum Builders — main stylesheet
   ========================================================= */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-italic.woff2) format('woff2-variations'), url(../fonts/archivo-latin-wdth-italic.woff2) format('woff2');
}

:root {
  --graphite: #15191d;
  --graphite-2: #1d2328;
  --blueprint: #1e3d63;
  --blueprint-2: #264c7a;
  --steel: #5c6873;
  --steel-light: #8e99a3;
  --concrete: #e4e6e3;
  --paper: #f5f6f4;
  --white: #ffffff;
  --signal: #f0b323;
  --line: rgba(21, 25, 29, .14);
  --line-dark: rgba(255, 255, 255, .14);

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.65, .05, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --notch: 22px;

  /* type scale (perfect fourth-ish) */
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-lg: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --fs-xl: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem);
  --fs-xxl: clamp(2.8rem, 1.2rem + 6.4vw, 7.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--graphite);
  background: var(--paper);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--graphite); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--signal); color: var(--graphite); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display, h1, h2, h3 {
  font-stretch: 125%;
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: .98;
  margin: 0;
}
h1, .h1 { font-size: var(--fs-xxl); }
h2, .h2 { font-size: var(--fs-xl); }
h3, .h3 { font-size: var(--fs-lg); line-height: 1.05; }
h4 { font-size: var(--fs-md); font-stretch: 112%; font-weight: 680; margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
.lede { font-size: var(--fs-md); line-height: 1.45; color: var(--graphite); max-width: 52ch; font-stretch: 100%; }
.muted { color: var(--steel); }
.on-dark .muted { color: var(--steel-light); }

/* label with survey tick */
.mark {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--steel);
  font-stretch: 100%;
}
.mark::before { content: ""; width: 22px; height: 3px; background: var(--signal); flex: none; }
.on-dark .mark { color: var(--steel-light); }

.line-mask { overflow: hidden; display: block; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--graphite); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px 18px 28px;
  background: var(--bg); color: var(--fg);
  font-weight: 650; font-size: var(--fs-sm); font-stretch: 110%;
  overflow: hidden; isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: color .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--signal);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--graphite); }
.btn .roll { display: inline-block; position: relative; overflow: hidden; height: 1.2em; line-height: 1.2em; }
.btn .roll span { display: block; transition: transform .55s var(--ease); }
.btn .roll span + span { position: absolute; top: 100%; left: 0; }
.btn:hover .roll span { transform: translateY(-100%); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn--light { --bg: var(--paper); --fg: var(--graphite); }
.btn--ghost { --bg: transparent; --fg: var(--graphite); box-shadow: inset 0 0 0 1.5px currentColor; clip-path: none; }
.on-dark .btn--ghost { --fg: var(--paper); }
.btn--ghost:hover { color: var(--graphite); }

.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); pointer-events: none; animation: ripple .7s var(--ease-out) forwards; z-index: 2; }
.btn--light .ripple, .btn--ghost .ripple { background: rgba(21,25,29,.18); }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.link {
  position: relative; font-weight: 650; display: inline-flex; gap: 10px; align-items: center;
  padding-bottom: 4px;
}
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link:hover::after { transform: scaleX(0); }
.link::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .6s .15s var(--ease); }
.link:hover::before { transform: scaleX(1); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: transform .6s var(--ease), background-color .4s, color .4s;
  color: var(--paper);
}
.site-header.is-solid { background: rgba(245,246,244,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--graphite); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
body.light-top .site-header:not(.is-solid) { color: var(--graphite); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-stretch: 125%; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; }
.brand small { display: block; font-size: .66rem; font-weight: 500; font-stretch: 100%; letter-spacing: .02em; opacity: .7; margin-top: 2px; }
.brand .brand-text { line-height: 1; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); }
.nav a { font-size: .9rem; font-weight: 550; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .more { position: relative; }
.nav .more > button { font-size: .9rem; font-weight: 550; display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; }
.nav .more > button svg { width: 10px; transition: transform .4s var(--ease); }
.nav .more:hover > button svg, .nav .more.open > button svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 14px); right: -20px; min-width: 260px;
  background: var(--graphite); color: var(--paper); padding: 10px;
  clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease);
  pointer-events: none;
}
.nav .more:hover .dropdown, .nav .more.open .dropdown, .nav .more:focus-within .dropdown { clip-path: inset(0 0 0 0); pointer-events: auto; }
.dropdown a { display: flex; justify-content: space-between; padding: 12px 14px; font-size: .92rem; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: rgba(255,255,255,.07); }
.dropdown a span { color: var(--steel-light); font-size: .8rem; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .btn { padding: 13px 18px 13px 20px; }
.site-header:not(.is-solid) .header-cta .btn { --bg: var(--paper); --fg: var(--graphite); }
body.light-top .site-header:not(.is-solid) .header-cta .btn { --bg: var(--graphite); --fg: var(--paper); }
.progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .5s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 26px; right: 18px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); right: 10px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--graphite); color: var(--paper);
  padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .site-header { color: var(--paper) !important; background: transparent !important; box-shadow: none !important; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 14px; font-stretch: 125%; font-weight: 750; font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.25; letter-spacing: -.02em; }
.mobile-menu nav a small { font-size: .8rem; font-stretch: 100%; font-weight: 500; color: var(--steel-light); width: 24px; }
.mobile-menu nav a > span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); }
.mobile-menu nav a { overflow: hidden; }
.menu-open .mobile-menu nav a > span { transform: none; }
.mobile-menu .mm-foot { display: flex; flex-wrap: wrap; gap: 18px 32px; color: var(--steel-light); font-size: .9rem; }

/* ---------- page transition (floors) ---------- */
.floors { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: none; grid-template-rows: repeat(6, 1fr); }
html.js .floors { display: grid; }
html.tx-done .floors { display: none; }
.floors i { display: block; background: var(--graphite); transform-origin: left; border-bottom: 1px solid rgba(255,255,255,.04); }
.floors i:nth-child(even) { background: var(--graphite-2); }
.floors .floors-label { position: absolute; left: var(--gutter); bottom: var(--gutter); color: var(--paper); font-stretch: 125%; font-weight: 750; font-size: var(--fs-lg); opacity: 0; }
html.no-js .floors, html.reduced .floors { display: none !important; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; mix-blend-mode: normal; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--signal); position: absolute; transform: rotate(45deg); }
.cursor-ring { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1.5px solid rgba(240,179,35,.8); display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, border-color .3s; }
.cursor-ring span { font-size: .75rem; font-weight: 700; color: var(--graphite); opacity: 0; transition: opacity .3s; font-stretch: 110%; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--signal); }
.cursor.is-label .cursor-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--signal); border-color: var(--signal); }
.cursor.is-label .cursor-ring span { opacity: 1; }
.cursor.is-label .cursor-dot { opacity: 0; }
.cursor.is-down .cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 168px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 104px) 0; }
.on-dark { background: var(--graphite); color: var(--paper); }
.on-blue { background: var(--blueprint); color: var(--paper); }
.on-concrete { background: var(--concrete); }
.grid-bg {
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 80px 80px; background-position: -1px -1px;
}
.on-concrete.grid-bg, .grid-bg.light { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); }

.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); align-items: end; }
.sec-head .mark { grid-column: 1 / -1; }
.sec-head h2 { grid-column: 1 / span 8; }
.sec-head p { grid-column: 9 / -1; margin: 0; color: var(--steel); }
.on-dark .sec-head p, .on-blue .sec-head p { color: var(--steel-light); }

.notch { clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); }
.notch-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch))); }

.img-frame { position: relative; overflow: hidden; background: var(--concrete); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.on-dark .img-frame { background: var(--graphite-2); }
.img-cap { position: absolute; left: 0; bottom: 0; background: var(--paper); color: var(--graphite); font-size: .8rem; padding: 8px 14px; font-weight: 600; }

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: 100svh; color: var(--paper); display: flex; align-items: flex-end; overflow: hidden; background: var(--graphite); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 115%; object-fit: cover; object-position: center 40%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,25,29,.55) 0%, rgba(21,25,29,.15) 35%, rgba(21,25,29,.75) 82%, rgba(21,25,29,.92) 100%); }
.hero-slabs { position: absolute; inset: 0; display: none; grid-template-rows: repeat(8, 1fr); z-index: 2; pointer-events: none; }
.hero-slabs i { background: var(--graphite); display: block; transform-origin: right; }
html.js .hero-slabs { display: grid; }
html.no-js .hero-slabs, html.reduced .hero-slabs, html.slabs-done .hero-slabs { display: none; }
.hero-blueprint { position: absolute; right: var(--gutter); top: 110px; width: min(42vw, 600px); z-index: 3; opacity: .7; pointer-events: none; }
.hero-blueprint path, .hero-blueprint line, .hero-blueprint rect, .hero-blueprint polyline { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-blueprint .acc { stroke: var(--signal); stroke-width: 1.5; }
.hero-blueprint text { fill: rgba(255,255,255,.7); font-size: 11px; font-family: var(--font); }
.hero-content { position: relative; z-index: 4; width: 100%; padding-bottom: clamp(40px, 6vw, 80px); padding-top: 140px; }
.hero h1 { max-width: 13ch; font-size: clamp(2.9rem, 1rem + 7.2vw, 8.4rem); }
.hero-sub { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(28px, 4vw, 56px); align-items: end; }
.hero-sub p { grid-column: 1 / span 5; font-size: var(--fs-md); line-height: 1.45; color: rgba(245,246,244,.86); margin: 0; }
.hero-sub .actions { grid-column: 6 / -1; display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; padding-right: 180px; }
.hero .btn--ghost { --fg: var(--paper); }
.hero-sub p { grid-column: 1 / span 5; }
@media (max-width: 1100px) { .hero-sub .actions { padding-right: 0; } }
.hero-meta { margin-bottom: 28px; }
.hero-meta .mark { color: rgba(245,246,244,.78); }
.scroll-cue { position: absolute; z-index: 4; right: var(--gutter); bottom: 28px; width: 1.5px; height: 64px; background: rgba(255,255,255,.2); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--signal); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- page hero (inner) ---------- */
.page-hero { position: relative; padding: clamp(150px, 18vw, 230px) 0 clamp(56px, 7vw, 96px); background: var(--paper); overflow: hidden; }
.page-hero .crumbs { font-size: .85rem; color: var(--steel); margin-bottom: 28px; display: flex; gap: 10px; }
.page-hero .crumbs a:hover { color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { max-width: 16ch; }
.page-hero .ph-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(32px, 4vw, 56px); align-items: end; }
.page-hero .ph-grid .lede { grid-column: 1 / span 6; margin: 0; }
.page-hero .ph-grid .ph-aside { grid-column: 9 / -1; font-size: var(--fs-sm); color: var(--steel); border-top: 1.5px solid var(--graphite); padding-top: 14px; }
.page-hero-img { height: clamp(320px, 62vh, 720px); margin-top: clamp(48px, 6vw, 88px); }
.page-hero-img img { height: 120%; }
.ph-draw { position: absolute; right: var(--gutter); top: 110px; width: min(34vw, 420px); pointer-events: none; }
.ph-draw * { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ph-draw .acc { stroke: var(--signal); stroke-width: 1.5; }

/* ---------- metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--graphite); }
.metric { padding: 32px 28px 8px 0; position: relative; }
.metric + .metric { padding-left: 28px; border-left: 1px solid var(--line); }
.metric .num { font-stretch: 125%; font-weight: 780; font-size: clamp(2.6rem, 1.6rem + 3vw, 4.6rem); line-height: 1; letter-spacing: -.03em; display: flex; align-items: flex-start; }
.metric .num sup { font-size: .4em; margin-top: .25em; margin-left: 4px; color: var(--signal); font-weight: 700; }
.metric h4 { margin: 20px 0 10px; font-size: 1.05rem; }
.metric p { font-size: var(--fs-sm); color: var(--steel); margin: 0; }
.metric .icon-line { height: 4.6rem; display: flex; align-items: flex-end; }
.metric .icon-line svg { width: 64px; height: 64px; stroke: var(--graphite); stroke-width: 1.4; fill: none; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.marquee-track { display: flex; width: max-content; }
.marquee-track span { font-stretch: 125%; font-weight: 750; font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem); letter-spacing: -.02em; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 14px; height: 14px; background: var(--signal); transform: rotate(45deg); flex: none; }
.marquee-track span.outline { color: transparent; -webkit-text-stroke: 1.2px var(--graphite); }

/* ---------- horizontal services rail ---------- */
.rail-section { overflow: hidden; }
.rail-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 60px; }
.rail { display: flex; gap: clamp(20px, 2.4vw, 36px); padding: 0 var(--gutter); width: max-content; }
.rail-card { width: clamp(300px, 34vw, 520px); flex: none; position: relative; color: var(--paper); }
.rail-card .img-frame { aspect-ratio: 4/5; }
.rail-card .img-frame img { transition: transform 1.2s var(--ease-out), filter .8s; filter: grayscale(.35) contrast(1.05); }
.rail-card:hover .img-frame img { transform: scale(1.06); filter: grayscale(0); }
.rail-card .rc-body { padding: 24px 0 0; display: grid; grid-template-columns: 52px 1fr; gap: 6px 16px; }
.rail-card .rc-idx { font-weight: 700; color: var(--signal); font-stretch: 110%; padding-top: 4px; }
.rail-card h3 { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); }
.rail-card p { grid-column: 2; color: var(--steel-light); font-size: var(--fs-sm); margin: 6px 0 0; }
.rail-card .rc-tags { position: absolute; top: 16px; left: 16px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.rail-card .rc-tags span { background: rgba(21,25,29,.75); backdrop-filter: blur(6px); font-size: .75rem; padding: 6px 10px; }
.rail-intro { width: clamp(280px, 26vw, 400px); flex: none; display: flex; flex-direction: column; justify-content: space-between; padding-right: 20px; }
.rail-intro h2 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.8rem); }
.rail-progress { margin: 48px var(--gutter) 0; height: 2px; background: var(--line-dark); position: relative; }
.rail-progress i { position: absolute; inset: 0; background: var(--signal); transform: scaleX(0); transform-origin: left; }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.split .split-media { grid-column: 1 / span 6; }
.split .split-text { grid-column: 8 / -1; }
.split.reverse .split-media { grid-column: 7 / -1; order: 2; }
.split.reverse .split-text { grid-column: 1 / span 5; order: 1; }
.split-media .img-frame { aspect-ratio: 5/6; }
.split-media .img-frame img { height: 118%; }
.split-text h2 { margin-bottom: 28px; }
.split-text .lede { margin-bottom: 32px; }

/* stacked offset images */
.stack-imgs { position: relative; height: clamp(440px, 52vw, 720px); }
.stack-imgs .img-frame { position: absolute; }
.stack-imgs .a { inset: 0 22% 18% 0; }
.stack-imgs .b { inset: 42% 0 0 46%; border: 10px solid var(--paper); }
.on-concrete .stack-imgs .b { border-color: var(--concrete); }
.stack-imgs .badge { position: absolute; left: 6%; bottom: 4%; z-index: 3; background: var(--signal); color: var(--graphite); width: 150px; height: 150px; display: grid; place-items: center; text-align: center; font-weight: 750; font-stretch: 112%; line-height: 1.1; font-size: .95rem; padding: 16px; }
.stack-imgs .badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.stack-imgs .badge text { font-size: 8.4px; font-weight: 700; letter-spacing: .14em; fill: var(--graphite); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- word-scrub statement ---------- */
.statement { font-stretch: 118%; font-weight: 700; font-size: clamp(1.8rem, 1rem + 2.8vw, 3.6rem); line-height: 1.12; letter-spacing: -.02em; max-width: 26ch; margin: 0; }
.statement .w { opacity: .16; transition: none; }
html.no-js .statement .w, html.reduced .statement .w { opacity: 1; }

/* ---------- principle list (philosophy) ---------- */
.principles { border-top: 1.5px solid currentColor; }
.principle { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); position: relative; cursor: default; }
.on-dark .principle, .on-blue .principle { border-color: var(--line-dark); }
.principle h3 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); transition: transform .6s var(--ease); }
.principle p { margin: 0; color: var(--steel); align-self: center; }
.on-dark .principle p, .on-blue .principle p { color: var(--steel-light); }
.principle::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.principle:hover::before { transform: scaleX(1); }
.principle:hover h3 { transform: translateX(14px); }
.principle .p-img { position: fixed; left: 0; top: 0; width: 260px; height: 320px; pointer-events: none; z-index: 60; opacity: 0; transform: scale(.85); overflow: hidden; }
.principle .p-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- value stack cards ---------- */
.vstack { position: relative; }
.vcard {
  position: sticky; top: 110px; min-height: 70vh; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--paper); margin-bottom: 40px; overflow: hidden; box-shadow: 0 -1px 0 var(--line);
  transform-origin: center top;
}
.vcard:nth-child(2) { top: 130px; } .vcard:nth-child(3) { top: 150px; } .vcard:nth-child(4) { top: 170px; }
.vcard .vc-text { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.vcard .vc-n { font-stretch: 125%; font-weight: 800; font-size: clamp(4rem, 2rem + 6vw, 8rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--graphite); }
.vcard h3 { margin-bottom: 18px; }
.vcard .img-frame { height: 100%; min-height: 360px; }
.vcard.dark { background: var(--graphite); color: var(--paper); }
.vcard.dark .vc-n { -webkit-text-stroke-color: var(--signal); }
.vcard.blue { background: var(--blueprint); color: var(--paper); }
.vcard.blue .vc-n { -webkit-text-stroke-color: var(--paper); }
.vcard.dark p, .vcard.blue p { color: rgba(245,246,244,.8); }

/* ---------- services page ---------- */
.svc-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-nav { position: sticky; top: 120px; display: flex; flex-direction: column; border-left: 1.5px solid var(--line); }
.svc-nav a { padding: 12px 0 12px 22px; font-weight: 600; color: var(--steel); position: relative; transition: color .3s; font-size: .95rem; }
.svc-nav a::before { content: ""; position: absolute; left: -1.5px; top: 0; bottom: 0; width: 3px; background: var(--signal); transform: scaleY(0); transition: transform .5s var(--ease); }
.svc-nav a.active, .svc-nav a:hover { color: var(--graphite); }
.svc-nav a.active::before { transform: scaleY(1); }
.svc-nav .svc-nav-cta { margin-top: 32px; padding-left: 22px; }
.svc-block { padding-bottom: clamp(72px, 9vw, 140px); }
.svc-block + .svc-block { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.svc-block .sb-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 24px; }
.svc-block .sb-head span { color: var(--steel); font-weight: 600; font-stretch: 110%; }
.svc-block .img-frame { aspect-ratio: 16/9; margin: 36px 0 40px; }
.svc-block .img-frame img { height: 118%; }
.svc-block .sb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 16px 0 16px 38px; border-top: 1px solid var(--line); position: relative; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 16px; height: 9px; border-left: 2px solid var(--graphite); border-bottom: 2px solid var(--graphite); transform: rotate(-45deg); }
.on-dark .checks li, .on-blue .checks li { border-color: var(--line-dark); }
.on-dark .checks li::before, .on-blue .checks li::before { border-color: var(--signal); }

/* ---------- projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.filter-btn { padding: 11px 18px; font-size: .9rem; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .35s, color .35s, box-shadow .35s; position: relative; overflow: hidden; }
.filter-btn:hover { box-shadow: inset 0 0 0 1.5px var(--graphite); }
.filter-btn.is-active { background: var(--graphite); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--graphite); }
.filter-btn sup { font-size: .7em; margin-left: 4px; opacity: .6; }
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.proj { grid-column: span 6; display: block; position: relative; }
.proj.wide { grid-column: span 7; } .proj.narrow { grid-column: span 5; }
.proj.is-hidden { display: none; }
.proj .img-frame { aspect-ratio: 4/3; }
.proj.narrow .img-frame { aspect-ratio: 4/4.15; }
.proj .img-frame img { transition: transform 1.2s var(--ease-out); }
.proj:hover .img-frame img { transform: scale(1.05); }
.proj .pj-overlay { position: absolute; inset: auto 0 0 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(21,25,29,.85), transparent); color: var(--paper); transform: translateY(100%); transition: transform .6s var(--ease); display: flex; gap: 18px; font-size: .85rem; flex-wrap: wrap; }
.proj:hover .pj-overlay, .proj:focus-visible .pj-overlay { transform: none; }
.proj .pj-overlay b { display: block; font-weight: 600; color: var(--steel-light); font-size: .75rem; }
.proj .pj-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; }
.proj h3 { font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); }
.proj .pj-type { color: var(--steel); font-size: .88rem; white-space: nowrap; }
.proj .pj-place { color: var(--steel); font-size: .9rem; margin-top: 6px; }

/* before / after */
.ba { position: relative; aspect-ratio: 16/9; overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--graphite-2); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 50%); }
.ba .ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--signal); transform: translateX(-1px); }
.ba .ba-handle button { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%) rotate(45deg); background: var(--signal); display: grid; place-items: center; cursor: ew-resize; transition: transform .4s var(--ease); }
.ba .ba-handle button:active { transform: translate(-50%, -50%) rotate(45deg) scale(.88); }
.ba .ba-handle svg { transform: rotate(-45deg); width: 26px; height: 26px; stroke: var(--graphite); stroke-width: 2; fill: none; }
.ba .ba-label { position: absolute; top: 18px; background: rgba(21,25,29,.8); color: var(--paper); padding: 8px 12px; font-size: .8rem; font-weight: 600; z-index: 2; }
.ba .ba-label.l { left: 18px; } .ba .ba-label.r { right: 18px; }

/* ---------- process timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; }
.timeline-line { position: absolute; left: 31px; top: 0; bottom: 0; width: 2px; background: var(--line-dark); }
.timeline-line i { position: absolute; inset: 0; background: var(--signal); transform: scaleY(0); transform-origin: top; }
.step { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 0 40px; padding: 0 0 clamp(56px, 7vw, 104px); position: relative; }
.step .s-node { width: 64px; height: 64px; display: grid; place-items: center; position: relative; z-index: 2; }
.step .s-node::before { content: ""; position: absolute; inset: 14px; background: var(--graphite); border: 2px solid var(--steel); transform: rotate(45deg); transition: background .5s, border-color .5s, transform .6s var(--ease); }
.on-concrete .step .s-node::before { background: var(--concrete); }
.step.is-on .s-node::before { background: var(--signal); border-color: var(--signal); transform: rotate(225deg); }
.step .s-node span { position: relative; font-weight: 750; font-size: .85rem; font-stretch: 110%; transition: color .4s; }
.step.is-on .s-node span { color: var(--graphite); }
.step .s-body { padding-top: 12px; }
.step h3 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); margin-bottom: 16px; }
.step .s-body p { color: var(--steel-light); }
.step .s-side { padding-top: 16px; }
.step .s-side .img-frame { aspect-ratio: 3/2; }
.step .s-dur { display: inline-block; margin-top: 8px; font-size: .85rem; color: var(--signal); font-weight: 600; }
.on-concrete .timeline-line { background: var(--line); }
.on-concrete .step .s-body p { color: var(--steel); }
.on-concrete .step .s-dur { color: var(--blueprint); }

/* ---------- QA inspection gauge ---------- */
.gates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid currentColor; }
.gate { padding: 28px 24px 32px 0; position: relative; }
.gate + .gate { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.gate .g-bar { height: 140px; position: relative; margin-bottom: 24px; background: repeating-linear-gradient(0deg, transparent 0 13px, var(--line-dark) 13px 14px); }
.gate .g-bar i { position: absolute; left: 0; bottom: 0; width: 34px; background: var(--signal); height: 100%; transform: scaleY(0); transform-origin: bottom; }
.gate .g-bar span { position: absolute; left: 48px; bottom: 0; font-size: .8rem; color: var(--steel-light); }
.gate h4 { margin-bottom: 10px; }
.gate p { font-size: var(--fs-sm); color: var(--steel-light); margin: 0; }

/* ---------- accordion ---------- */
.acc-list { border-top: 1.5px solid var(--graphite); }
.acc-list > .acc { border-bottom: 1px solid var(--line); }
.acc-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; text-align: left; font-stretch: 112%; font-weight: 680; font-size: clamp(1.1rem, .95rem + .6vw, 1.45rem); letter-spacing: -.01em; transition: color .3s, padding .5s var(--ease); }
.acc-q:hover { padding-left: 12px; }
.acc-q .plus { width: 36px; height: 36px; flex: none; position: relative; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .4s, box-shadow .4s, transform .6s var(--ease); }
.acc-q .plus::before, .acc-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.acc-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc.open .acc-q .plus { background: var(--signal); box-shadow: none; transform: rotate(180deg); }
.acc.open .acc-q .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-a { height: 0; overflow: hidden; }
.acc-a > div { padding: 0 0 32px; max-width: 70ch; color: var(--steel); }
html.no-js .acc-a { height: auto; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { position: relative; display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; margin-bottom: 10px; color: var(--graphite); }
.field label .opt { color: var(--steel); font-weight: 400; }
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line); padding: 12px 0; font-size: 1.05rem; outline: none; border-radius: 0; width: 100%;
  transition: border-color .3s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315191d' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px; cursor: pointer; }
.field textarea { min-height: 130px; resize: vertical; }
.field .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field.has-hint .bar { bottom: auto; }
.field input:focus ~ .bar, .field select:focus ~ .bar, .field textarea:focus ~ .bar { transform: scaleX(1); }
.field .hint { font-size: .8rem; color: var(--steel); margin-top: 8px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.field .err { font-size: .8rem; color: #b3261e; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.dropzone { border: 1.5px dashed var(--steel-light); padding: 28px; display: flex; gap: 20px; align-items: center; cursor: pointer; transition: border-color .3s, background .3s; position: relative; }
.dropzone:hover, .dropzone.drag { border-color: var(--graphite); background: rgba(240,179,35,.08); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 36px; height: 36px; stroke: var(--graphite); fill: none; stroke-width: 1.5; flex: none; }
.dropzone .dz-text b { display: block; }
.dropzone .dz-text span { font-size: .85rem; color: var(--steel); }
.dropzone .dz-file { font-size: .85rem; font-weight: 600; color: var(--blueprint); margin-top: 6px; display: block; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.form-foot small { color: var(--steel); max-width: 44ch; }
.form-status { margin-top: 18px; font-weight: 600; }
.form-status.err { color: #b3261e; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .roll { opacity: .5; }
.hp { display: none !important; }

/* contact layout */
.contact-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact-info { position: sticky; top: 120px; }
.info-list { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1.5px solid currentColor; }
.info-list li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); font-size: .98rem; }
.info-list li b { font-weight: 600; color: var(--steel-light); }
.info-list a:hover { color: var(--signal); }
.form-card { background: var(--paper); padding: clamp(28px, 4vw, 56px); color: var(--graphite); }

/* ---------- jobs ---------- */
.jobs { border-top: 1.5px solid var(--graphite); }
.job { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.job::before { content: ""; position: absolute; inset: 0; background: var(--concrete); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: -1; }
.job:hover::before { transform: scaleY(1); }
.job { isolation: isolate; }
.job h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.65rem); transition: transform .5s var(--ease); }
.job:hover h3 { transform: translateX(10px); }
.job span { color: var(--steel); font-size: .92rem; }
.job .apply { width: 52px; height: 52px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--graphite); transition: background .4s, transform .6s var(--ease); }
.job:hover .apply { background: var(--signal); box-shadow: none; transform: rotate(45deg); }
.job .apply svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .6s var(--ease); }
.job:hover .apply svg { transform: rotate(-45deg); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--blueprint); color: var(--paper); }
.cta-band .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.cta-band h2 { grid-column: 1 / span 8; font-size: clamp(2.4rem, 1.2rem + 5vw, 6.4rem); }
.cta-band .cta-side { grid-column: 9 / -1; }
.cta-band .cta-side p { color: rgba(245,246,244,.78); }
.cta-band .cb-draw { position: absolute; inset: 0; z-index: 1; opacity: .5; }
.cta-band .cb-draw * { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: var(--paper); padding: clamp(72px, 9vw, 128px) 0 32px; position: relative; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 40px; padding-bottom: 72px; border-bottom: 1px solid var(--line-dark); }
.foot-top h4 { font-size: .9rem; font-stretch: 100%; color: var(--steel-light); font-weight: 600; margin-bottom: 18px; }
.foot-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-top ul a { display: inline-block; transition: color .3s, transform .4s var(--ease); }
.foot-top ul a:hover { color: var(--signal); transform: translateX(6px); }
.foot-news p { color: var(--steel-light); font-size: var(--fs-sm); }
.news-form { display: flex; border-bottom: 1.5px solid var(--steel); margin-top: 18px; transition: border-color .3s; }
.news-form:focus-within { border-color: var(--signal); }
.news-form input { flex: 1; background: transparent; border: 0; padding: 14px 0; outline: none; color: var(--paper); min-width: 0; }
.news-form input::placeholder { color: var(--steel-light); }
.news-form button { padding: 0 6px 0 16px; font-weight: 650; display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.news-form button:hover { color: var(--signal); }
.news-msg { font-size: .85rem; margin-top: 10px; color: var(--signal); min-height: 1.2em; }
.foot-word { font-stretch: 125%; font-weight: 800; font-size: clamp(4rem, 17vw, 18rem); line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(245,246,244,.18); margin: 48px 0 32px; white-space: nowrap; user-select: none; }
.foot-word span { display: inline-block; }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: .85rem; color: var(--steel-light); }
.foot-bottom a:hover { color: var(--paper); }
.to-top { display: inline-flex; gap: 10px; align-items: center; }

/* ---------- chat widget ---------- */
.chat-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 120; height: 60px; padding: 0 22px 0 18px;
  background: var(--signal); color: var(--graphite); display: flex; align-items: center; gap: 12px; font-weight: 650; font-size: .92rem;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 0 10px 30px rgba(21,25,29,.25);
  transition: transform .5s var(--ease), background .3s;
}
.chat-launch:hover { background: var(--graphite); color: var(--paper); }
.chat-launch:hover .dot { background: var(--signal); }
.chat-launch .dot { width: 10px; height: 10px; background: var(--graphite); transform: rotate(45deg); position: relative; }
.chat-launch .dot::after { content: ""; position: absolute; inset: -6px; border: 1.5px solid currentColor; animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.chat-open .chat-launch { transform: translateY(140%); }
.chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 130; width: min(400px, calc(100vw - 28px)); height: min(620px, calc(100svh - 44px));
  background: var(--paper); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(21,25,29,.35);
  clip-path: inset(100% 0 0 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.chat-open .chat-panel { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease); }
.chat-head { background: var(--graphite); color: var(--paper); padding: 18px 18px 18px 20px; display: flex; align-items: center; gap: 14px; }
.chat-head .avatar { width: 42px; height: 42px; background: var(--blueprint); display: grid; place-items: center; flex: none; }
.chat-head .avatar svg { width: 24px; height: 24px; }
.chat-head b { display: block; font-stretch: 112%; font-size: 1rem; }
.chat-head small { color: var(--steel-light); font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ""; width: 7px; height: 7px; background: #4caf7a; border-radius: 50%; }
.chat-close { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; transition: background .3s, transform .5s var(--ease); }
.chat-close:hover { background: rgba(255,255,255,.1); transform: rotate(90deg); }
.chat-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; }
.chat-body { flex: 1; overflow-y: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 12px 15px; font-size: .93rem; line-height: 1.5; animation: msgIn .5s var(--ease-out) both; }
.msg.bot { background: var(--concrete); align-self: flex-start; }
.msg.user { background: var(--graphite); color: var(--paper); align-self: flex-end; }
.msg a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px); } }
.typing { display: inline-flex; gap: 5px; padding: 16px; background: var(--concrete); align-self: flex-start; }
.typing i { width: 6px; height: 6px; background: var(--steel); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; transform: translateY(-3px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; animation: msgIn .5s var(--ease-out) both; }
.chip { padding: 9px 13px; font-size: .85rem; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--graphite); transition: background .3s, color .3s, transform .3s var(--ease); }
.chip:hover { background: var(--graphite); color: var(--paper); }
.chip:active { transform: scale(.94); }
.chat-input { display: flex; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 0; background: transparent; padding: 18px 18px; outline: none; font-size: .95rem; min-width: 0; }
.chat-input button { width: 60px; display: grid; place-items: center; background: var(--signal); transition: background .3s; }
.chat-input button:hover { background: #e3a512; }
.chat-input button svg { width: 20px; height: 20px; stroke: var(--graphite); stroke-width: 2; fill: none; }
.chat-note { font-size: .72rem; color: var(--steel); padding: 0 18px 10px; }

/* ---------- misc ---------- */
.two-col { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.two-col > :first-child { grid-column: 1 / span 5; }
.two-col > :last-child { grid-column: 7 / -1; }
.quote-block { border-left: 3px solid var(--signal); padding-left: 28px; font-size: var(--fs-md); line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 7px 12px; font-size: .82rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.on-dark .tags span { box-shadow: inset 0 0 0 1px var(--line-dark); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid currentColor; }
.cards3 > div { padding: 32px 28px 32px 0; }
.cards3 > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.on-dark .cards3 > div + div, .on-blue .cards3 > div + div { border-color: var(--line-dark); }
.cards3 h4 { margin: 18px 0 12px; }
.cards3 p { font-size: var(--fs-sm); color: var(--steel); margin: 0; }
.on-dark .cards3 p, .on-blue .cards3 p { color: var(--steel-light); }
.ico { width: 44px; height: 44px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.mv > div { padding: clamp(32px, 5vw, 72px); min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.mv .mv-m { background: var(--graphite); color: var(--paper); }
.mv .mv-v { background: var(--blueprint); color: var(--paper); }
.mv p { font-size: var(--fs-md); line-height: 1.45; font-stretch: 100%; margin: 0; max-width: 36ch; }
.mv h2 { font-size: clamp(2.4rem, 1.4rem + 3vw, 4.6rem); }
.mv .mv-ghost { position: absolute; right: -2%; bottom: -12%; font-stretch: 125%; font-weight: 800; font-size: clamp(8rem, 18vw, 16rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); pointer-events: none; }

.notfound { min-height: 100svh; display: flex; align-items: center; background: var(--graphite); color: var(--paper); }
.notfound .big { font-stretch: 125%; font-weight: 800; font-size: clamp(7rem, 26vw, 22rem); line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--signal); }

/* reveal defaults (JS enhances) */
html.js:not(.reduced) [data-fade] { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-cta .btn { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-nav { position: relative; top: 0; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1.5px solid var(--line); }
  .svc-nav a { white-space: nowrap; padding: 12px 16px; }
  .svc-nav a::before { left: 0; right: 0; top: auto; bottom: -1.5px; width: auto; height: 3px; transform: scaleX(0); }
  .svc-nav a.active::before { transform: scaleX(1); }
  .svc-nav .svc-nav-cta { display: none; }
  .gates { grid-template-columns: 1fr 1fr; }
  .gate:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .sec-head h2, .sec-head p { grid-column: 1 / -1; }
  .hero-sub p, .hero-sub .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .hero-blueprint { width: 80vw; right: -10vw; top: 90px; opacity: .45; }
  .page-hero .ph-grid .lede, .page-hero .ph-grid .ph-aside { grid-column: 1 / -1; }
  .ph-draw { opacity: .5; width: 60vw; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .metric { padding-bottom: 28px; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split .split-media, .split .split-text, .split.reverse .split-media, .split.reverse .split-text { grid-column: 1 / -1; order: initial; }
  .principle { grid-template-columns: 1fr; gap: 12px; }
  .principle .p-img { display: none; }
  .vcard { grid-template-columns: 1fr; position: relative; top: 0 !important; min-height: 0; }
  .vcard .img-frame { min-height: 260px; height: 260px; order: -1; }
  .svc-block .sb-cols { grid-template-columns: 1fr; }
  .proj, .proj.wide, .proj.narrow { grid-column: 1 / -1; }
  .proj .pj-overlay { transform: none; }
  .step { grid-template-columns: 64px 1fr; gap: 0 20px; }
  .step .s-side { grid-column: 2; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-info { position: relative; top: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr auto; }
  .job span.loc, .job span.type { display: none; }
  .cta-band h2, .cta-band .cta-side { grid-column: 1 / -1; }
  .two-col > :first-child, .two-col > :last-child { grid-column: 1 / -1; }
  .cards3 { grid-template-columns: 1fr; }
  .cards3 > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .on-dark .cards3 > div + div, .on-blue .cards3 > div + div { border-color: var(--line-dark); }
  .mv { grid-template-columns: 1fr; }
  .mv > div { min-height: 340px; }
  .rail-pin { min-height: 0; padding: 80px 0; }
  .rail { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .rail-card, .rail-intro { scroll-snap-align: start; }
  .rail-card { width: 82vw; }
  .rail-intro { width: 82vw; }
  .rail-progress { display: none; }
  .stack-imgs .badge { width: 116px; height: 116px; font-size: .8rem; }
  .info-list li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .foot-top { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metric + .metric { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .gates { grid-template-columns: 1fr; }
  .gate + .gate { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .chat-launch span.txt { display: none; }
  .chat-launch { padding: 0 20px; }
  .chat-panel { right: 14px; bottom: 14px; }
  .btn { padding: 16px 20px 16px 22px; }
  .dropzone { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .mobile-menu nav a > span { transform: none; }
}
