/* ==========================================================================
   Corelink Tech Solutions
   Monochrome, isometric, built from the brand mark.
   ========================================================================== */

:root {
  /* dark */
  --bg: #0B0B0C;
  --bg-1: #111113;
  --bg-2: #18181B;
  --line: #232327;
  --line-2: #34343A;
  --fg: #F2F2F0;
  --fg-2: #A9A9AE;
  --fg-3: #707076;

  /* light */
  --paper: #ECECE8;
  --paper-2: #E2E2DD;
  --ink: #0B0B0C;
  --ink-2: #4A4A50;
  --ink-3: #8A8A90;
  --rule: #CFCFC9;

  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .7, .12, 1);

  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M1.5 1.5 9 6l-7.5 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--fg); color: var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

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

/* The wide-tracked caps of "TECH SOLUTIONS" */
.label {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.light .label { color: var(--ink-3); }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* Chevron cut at the logo's 30° angle */
.chev {
  display: inline-block; flex: none;
  width: 9px; height: 11px;
  background: currentColor;
  -webkit-mask: var(--chev) center / contain no-repeat;
  mask: var(--chev) center / contain no-repeat;
  transition: transform .4s var(--ease);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 54px; padding: 0 28px;
  border: 1.5px solid transparent; border-radius: 4px;
  background: none;
  font: 600 12px/1 var(--font); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn:hover .chev { transform: translateX(4px); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 11px; }

.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid:hover { background: transparent; color: var(--fg); }

.btn-ghost { border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }

.btn-link { height: auto; padding: 8px 4px; color: var(--fg-3); }
.btn-link:hover { color: var(--fg); }

.light .btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.light .btn-solid:hover { background: transparent; color: var(--ink); }
.light .btn-link { color: var(--ink-3); }
.light .btn-link:hover { color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 40px; height: var(--header-h); }

.brand { flex: none; display: block; }
.brand img { height: 36px; width: auto; }

.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a {
  position: relative; padding: 6px 0;
  font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-2); text-decoration: none; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: 0; height: 1.5px; background: var(--fg);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--fg); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-contact { display: none; }

.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 4px; background: none; cursor: pointer; position: relative; }
.menu-lines, .menu-lines::before { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--fg); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-lines { top: 18px; }
.menu-lines::before { content: ""; left: 0; right: 0; top: 8px; }
.menu-btn[aria-expanded="true"] .menu-lines { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(-90deg); }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.hero::before {
  /* faint isometric lattice */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(30deg, transparent 0 39px, rgba(255,255,255,.028) 39px 40px),
    repeating-linear-gradient(-30deg, transparent 0 39px, rgba(255,255,255,.028) 39px 40px);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 20%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 64px); align-items: center;
}

.hero-copy .label { margin-bottom: 32px; }

h1 {
  margin: 0 0 32px;
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.h1-line { display: inline-block; position: relative; color: #2C2C31; }
.h1-line::after {
  content: attr(data-text); position: absolute; left: 0; top: 0;
  color: var(--fg);
  clip-path: inset(0 100% 0 0);
  animation: fill-in 1.4s .5s var(--ease) forwards;
}
@keyframes fill-in { to { clip-path: inset(0 0 0 0); } }

.lede { max-width: 30em; font-size: clamp(16px, 1.25vw, 18px); color: var(--fg-2); margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Isometric scene */
.scene { margin: 0; position: relative; }
#scene { width: 100%; height: auto; aspect-ratio: 680 / 480; user-select: none; -webkit-user-select: none; overflow: visible; }

.scene-read {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line); margin-top: 8px;
}
.scene-read > div { padding: 16px 0 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.scene-read > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.scene-read > div:first-child { padding-right: 20px; }
.scene-read b { font-weight: 600; font-size: 15px; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-hint { grid-column: 1 / -1; margin: 14px 0 0; font-size: 12px; color: var(--fg-3); transition: opacity .4s; }
.scene.touched .scene-hint { opacity: 0; }

/* scene SVG parts */
.iso-grid { stroke: rgba(255, 255, 255, .085); stroke-width: 1; fill: none; }
.iso-floor { fill: rgba(255, 255, 255, .025); stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.trace { fill: none; stroke: #45454B; stroke-width: 2; stroke-linejoin: round; transition: stroke .3s, opacity .3s; }
.trace-hot { fill: none; stroke: var(--fg); stroke-width: 2; stroke-dasharray: 5 7; stroke-linejoin: round; opacity: 0; transition: opacity .3s; animation: flow .8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.route.on .trace { stroke: #6A6A70; }
.route.on .trace-hot { opacity: 1; }
.scene.focus .route:not(.on) .trace { opacity: .35; }
.scene.flash .trace { stroke: var(--fg); }

.cube { cursor: grab; outline: none; touch-action: none; }
.cube.dragging { cursor: grabbing; }
.cube .top { fill: #36363C; }
.cube .lf { fill: #18181B; }
.cube .rf { fill: #242428; }
.cube .edge { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-linejoin: round; }
.cube .top, .cube .lf, .cube .rf { transition: fill .3s; }
.cube.on .top { fill: #F2F2F0; }
.cube.on .rf { fill: #B9B9BE; }
.cube.on .lf { fill: #7D7D83; }
.cube:focus-visible .edge { stroke: var(--fg); stroke-width: 2; }
.cube .tag { font: 600 10.5px var(--font); letter-spacing: .24em; fill: var(--fg-2); transition: fill .3s; pointer-events: none; }
.cube .tag-line { stroke: #3A3A40; stroke-width: 1; }
.cube.on .tag { fill: var(--fg); }

.core { cursor: pointer; outline: none; }
.core .top { fill: #2A2A2F; }
.core .lf { fill: #111113; }
.core .rf { fill: #1B1B1E; }
.core .edge { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1; stroke-linejoin: round; }
.core:focus-visible .edge { stroke: var(--fg); stroke-width: 2; }
.core .ring { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1; opacity: 0; }
.core.kick .ring { animation: ring 1s var(--ease); }
@keyframes ring { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
.core .ring { transform-box: fill-box; transform-origin: center; }
.core-mark { transition: transform .6s var(--ease); }
.core:hover .core-mark { transform: translateY(-6px); }
.core.kick .core-mark { animation: hop .7s var(--ease); }
@keyframes hop { 40% { transform: translateY(-16px); } 100% { transform: translateY(0); } }
.core .tag { font: 600 9.5px var(--font); letter-spacing: .3em; fill: var(--fg-3); pointer-events: none; }

.pkt { fill: var(--fg); pointer-events: none; }
.pkt.in { fill: #8A8A90; }

/* ---------- Symptoms ---------- */

.symptoms { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.symptoms-inner { display: grid; grid-template-columns: 200px 1fr; gap: 16px 40px; align-items: baseline; padding-top: 30px; padding-bottom: 30px; }
.symptoms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 44px; }
.symptoms li span {
  position: relative; display: inline-block;
  font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; color: var(--fg);
  transition: color .7s; transition-delay: calc(var(--i) * 150ms + 300ms);
}
.symptoms li span::after {
  content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 1.5px; background: var(--fg);
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 150ms + 300ms);
}
.symptoms.in li span { color: var(--fg-3); }
.symptoms.in li span::after { transform: scaleX(1); }

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(88px, 11vw, 168px) 0; }
.light { background: var(--paper); color: var(--ink); }

.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 40px; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head .label { grid-row: 1 / span 2; padding-top: .9em; }
.sec-head h2 { grid-column: 2; }
.sec-head .sec-sub { grid-column: 2; margin-top: 24px; }

h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 66px);
  font-weight: 700; line-height: 1.04; letter-spacing: -.03em;
  text-wrap: balance;
}
.sec-sub { max-width: 34em; font-size: 17px; color: var(--fg-2); margin: 0; }
.light .sec-sub { color: var(--ink-2); }

/* ---------- Services ---------- */

.svc {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(40px, 6vw, 96px);
  align-content: start;
  min-height: var(--svc-h, 640px);
  border-top: 1.5px solid var(--ink);
}
.svc-item { grid-column: 1; }

.svc-tab {
  width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) 16px; align-items: center; gap: 12px;
  padding: 26px 0; border: 0; border-bottom: 1px solid var(--rule);
  background: none; color: var(--ink-3); font: inherit; text-align: left; cursor: pointer;
  transition: color .3s;
}
.svc-n { font-size: 12px; font-weight: 600; letter-spacing: .2em; }
.svc-name { font-size: clamp(22px, 2.3vw, 34px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; transition: transform .5s var(--ease); }
.svc-tab .chev { opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease); }
.svc-tab:hover { color: var(--ink-2); }
.svc-tab:hover .svc-name { transform: translateX(8px); }
.svc-item.active .svc-tab { color: var(--ink); }
.svc-item.active .svc-tab .chev { opacity: 1; transform: none; }

.svc-panel {
  position: absolute; top: 0; right: 0;
  width: calc((100% - clamp(40px, 6vw, 96px)) * 1.1 / 2);
  padding-top: 26px;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .45s, transform .6s var(--ease), visibility 0s .45s;
}
.svc-item.active .svc-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .05s, transform .7s .05s var(--ease), visibility 0s; }

.svc-art { aspect-ratio: 16 / 9; background: var(--paper-2); border-radius: 4px; margin-bottom: 32px; overflow: hidden; }
.svc-art svg { width: 100%; height: 100%; }
.svc-desc { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; font-weight: 500; color: var(--ink); margin-bottom: 32px; max-width: 30em; }
.svc-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.svc-cols .label { margin-bottom: 14px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 8px 0; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.list li:first-child { border-top: 0; padding-top: 0; }
.tools { font-size: 15px; color: var(--ink-2); line-height: 1.8; margin: 0; }

/* service art (drawn in JS) */
.a-top { fill: #F6F6F3; }
.a-lf { fill: #BDBDB7; }
.a-rf { fill: #D6D6D0; }
.a-edge { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linejoin: round; }
.a-dark .a-top { fill: #2A2A2E; }
.a-dark .a-lf { fill: #0B0B0C; }
.a-dark .a-rf { fill: #18181B; }
.a-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.a-dash { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 4 5; animation: flow 1.2s linear infinite; }
.a-ghost { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 4; }
.a-floor { fill: none; stroke: rgba(11, 11, 12, .08); stroke-width: 1; }
.svc-art .rise { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .8s var(--ease); }
.svc-item.active .svc-art .rise { opacity: 1; transform: none; }
.svc-item.active .svc-art .rise:nth-child(2) { transition-delay: .08s; }
.svc-item.active .svc-art .rise:nth-child(3) { transition-delay: .16s; }
.svc-item.active .svc-art .rise:nth-child(4) { transition-delay: .24s; }
.svc-item.active .svc-art .rise:nth-child(5) { transition-delay: .32s; }
.svc-item.active .svc-art .rise:nth-child(6) { transition-delay: .4s; }
.svc-art .bob { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Process ---------- */

.process { background: var(--bg); border-top: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(48px, 8vw, 140px); }
.process-side { position: sticky; top: calc(var(--header-h) + 56px); align-self: start; }
.process-side h2 { margin: 28px 0 24px; }

.step-counter { margin: 64px 0 0; display: flex; align-items: baseline; gap: 14px; font-weight: 800; font-size: clamp(80px, 9vw, 150px); line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.step-counter small { font-size: 15px; font-weight: 500; letter-spacing: .2em; color: var(--fg-3); }

.steps { --fill: 0px; list-style: none; margin: 0; padding: 0 0 0 64px; position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: 11px; top: 12px; width: 1.5px; }
.steps::before { bottom: 12px; background: var(--line-2); }
.steps::after { height: var(--fill); background: var(--fg); }

.step { position: relative; padding-bottom: clamp(80px, 10vw, 150px); transition: opacity .6s; }
.step:last-child { padding-bottom: 0; }
.js .step:not(.lit) { opacity: .3; }

/* hexagon node, same silhouette as the mark */
.step-node {
  position: absolute; left: -64px; top: 0; width: 24px; height: 27px;
  background: var(--line-2);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background-color .4s;
}
.step-node::after {
  content: ""; position: absolute; inset: 2px 2px;
  background: var(--bg);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background-color .4s, inset .4s var(--ease);
}
.step.lit .step-node { background: var(--fg); }
.step.lit .step-node::after { background: var(--fg); }

.step h3 { margin: 16px 0 20px; font-size: clamp(40px, 5vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: .95; text-transform: uppercase; }
.step > p:not(.label) { font-size: 17px; color: var(--fg-2); max-width: 30em; }
.step .step-out { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--fg); font-weight: 500; font-size: 16px; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; }

/* ---------- Brief builder ---------- */

.brief-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: start; }

.chip-group { padding: 24px 0 28px; border-top: 1px solid var(--rule); }
.chip-group:first-child { border-top: 1.5px solid var(--ink); }
.chip-group h3 { margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 11px 18px; min-height: 44px;
  border: 1.5px solid var(--rule); border-radius: 4px; background: transparent;
  font: 500 14px/1.2 var(--font); color: var(--ink-2); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.brief-panel { position: sticky; top: calc(var(--header-h) + 28px); background: var(--bg); color: var(--fg); border-radius: 6px; overflow: hidden; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }

.seg { display: inline-flex; padding: 3px; background: var(--bg-2); border-radius: 4px; }
.seg button {
  border: 0; background: transparent; border-radius: 3px; padding: 8px 12px; cursor: pointer;
  font: 600 10.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3);
  transition: background-color .25s, color .25s;
}
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

#brief-svg { width: 100%; height: auto; aspect-ratio: 520 / 300; }
.bl { stroke: #4A4A50; stroke-width: 1.5; fill: none; }
.bl.mesh { stroke: #6A6A70; stroke-width: 1; }
.bl.new { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line .7s var(--ease) forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.bn { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.bt { font: 500 10.5px var(--font); letter-spacing: .04em; fill: var(--fg-2); }
.bempty { font: 600 10px var(--font); letter-spacing: .3em; fill: var(--fg-3); }

.brief-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 20px; transition: background-color .3s; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: 48px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--fg-3); transition: color .3s; }
.stat.current { background: var(--bg-2); }
.stat.current b { color: var(--fg); }

.brief-note { margin: 0; padding: 18px 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--fg-2); min-height: 4.2em; line-height: 1.6; }
.brief-note strong { color: var(--fg); font-weight: 600; }

.brief-sum { margin: 0; padding: 18px 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr; gap: 10px 16px; font-size: 14px; }
.brief-sum dt { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--fg-3); padding-top: 3px; }
.brief-sum dd { margin: 0; color: var(--fg); line-height: 1.5; }

.brief-actions { display: flex; align-items: center; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.light .brief-panel .btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.light .brief-panel .btn-solid:hover { background: transparent; color: var(--fg); }
.light .brief-panel .btn-link { color: var(--fg-3); }
.light .brief-panel .btn-link:hover { color: var(--fg); }

/* ---------- Principles ---------- */

.principles { border-top: 1px solid var(--line); }
.principles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.principle { position: relative; padding: 32px 32px 12px; border-left: 1px solid var(--line); }
.principle:first-child { padding-left: 0; border-left: 0; }
.p-n { display: block; font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #2A2A2F; transition: color .4s; }
.principle:hover .p-n { color: var(--fg); }
.principle h3 { margin: 40px 0 14px; font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.principle p { font-size: 15px; color: var(--fg-2); }

/* ---------- Contact ---------- */

.contact { background: var(--bg-1); border-top: 1px solid var(--line); overflow: hidden; }
.contact-ghost { position: absolute; right: -6%; bottom: -12%; width: min(46vw, 620px); height: auto; opacity: .035; pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(48px, 7vw, 120px); }
.contact-copy h2 { margin: 28px 0 24px; font-size: clamp(40px, 5.4vw, 80px); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: .98; }

.contact-list { margin: 48px 0 0; }
.contact-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list dd { margin: 0; font-size: 16px; font-weight: 500; }
.mail { font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.01em; text-decoration: none; background: linear-gradient(var(--fg), var(--fg)) left bottom / 100% 1.5px no-repeat; padding-bottom: 3px; transition: background-size .45s var(--ease), color .45s; }
.mail:hover { background-size: 100% 100%; color: var(--bg); }

.contact-form { padding-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.field { position: relative; margin-bottom: 28px; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field label { margin-bottom: 6px; transition: color .25s; }
.field:focus-within label { color: var(--fg); }
.field .opt { letter-spacing: .1em; text-transform: none; }
.field input, .field textarea {
  display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--fg); font: 500 18px/1.5 var(--font); padding: 8px 0 12px; outline: none;
}
.field textarea { resize: vertical; min-height: 150px; }
.field.invalid input, .field.invalid textarea { border-bottom-color: #E5E5E5; border-bottom-style: dashed; }
.field.invalid label { color: var(--fg); }
.field.invalid label::after { content: " required"; letter-spacing: .2em; color: var(--fg-3); }

.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.form-status { margin: 0; font-size: 14px; color: var(--fg-2); }

/* ---------- Footer ---------- */

.site-footer { position: relative; background: var(--bg); border-top: 1px solid var(--line); padding-top: 72px; overflow: hidden; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-logo { height: 44px; width: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.foot-nav a, .foot-meta a { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-2); text-decoration: none; transition: color .25s; }
.foot-nav a:hover, .foot-meta a:hover { color: var(--fg); }
.foot-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; font-size: 13px; color: var(--fg-3); }
.foot-ghost { width: calc(100% - var(--gutter) * 2); max-width: var(--max); height: auto; margin: 24px auto -3%; opacity: .05; pointer-events: none; }

/* ---------- Reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .symptoms[data-reveal] { transform: none; }
.js .principle[data-reveal]:nth-child(2) { transition-delay: .08s; }
.js .principle[data-reveal]:nth-child(3) { transition-delay: .16s; }
.js .principle[data-reveal]:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .header-cta { display: none; }
  .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); }
  .svc-cols { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  :root { --header-h: 66px; }
  .brand img { height: 30px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 12px var(--gutter) 40px;
    background: var(--bg); border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s;
  }
  .nav a { font-size: 24px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--fg); padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .nav-contact { display: block; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease); }
  .menu-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .label { grid-row: auto; padding: 0 0 20px; }
  .sec-head h2, .sec-head .sec-sub { grid-column: 1; }

  .svc { display: block; min-height: 0; }
  .svc-panel { position: static; width: auto; display: none; opacity: 1; visibility: visible; transform: none; padding: 8px 0 40px; }
  .svc-item.active .svc-panel { display: block; }
  .svc-tab .chev { opacity: 1; transform: rotate(90deg); }
  .svc-item.active .svc-tab .chev { transform: rotate(-90deg); }

  .process-grid { grid-template-columns: 1fr; }
  .process-side { position: static; }
  .step-counter { display: none; }

  .brief-grid { grid-template-columns: 1fr; }
  .brief-panel { position: relative; top: 0; }

  .contact-grid { grid-template-columns: 1fr; }
  .symptoms-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .svc-tab { grid-template-columns: 40px minmax(0, 1fr) 16px; padding: 22px 0; }
  .svc-tab:hover .svc-name { transform: none; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { padding: 28px 0 8px; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }
  .steps { padding-left: 48px; }
  .step-node { left: -48px; }
  .step .step-out { grid-template-columns: 1fr; gap: 6px; }
  .scene-read { grid-template-columns: 1fr 1fr; }
  .scene-read > div:first-child { grid-column: 1 / -1; padding-right: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .scene-read > div:nth-child(2) { padding-left: 0; border-left: 0; }
  .stat b { font-size: 38px; }
  .brief-actions .btn-solid { flex: 1; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .h1-line::after { clip-path: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .bl.new { stroke-dasharray: none; stroke-dashoffset: 0; }
  .svc-art .rise { opacity: 1; transform: none; }
}
