/* ============================================================
   WestBridge Counsel — Shared Design System
   ============================================================ */

:root {
  --bone: #f4f0e7;
  --bone-2: #ece6d9;
  --ink: #16171b;
  --ink-soft: #2b2c31;
  --panel: #101115;
  --accent: #c75b39;
  --accent-deep: #a8431f;
  --muted: #6b6a62;
  --muted-on-dark: #9b988e;
  --hair: rgba(22, 23, 27, 0.14);
  --hair-dark: rgba(244, 240, 231, 0.16);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--bone); }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.eyebrow.center { justify-content: center; }
.eyebrow.on-dark { color: var(--accent); }

/* ---------- NAV ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
header.nav.scrolled,
header.nav.solid {
  background: rgba(244, 240, 231, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--hair);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 30px; height: 22px; flex: none; }
.brand .mark line, .brand .mark path { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.brand .mark .cable { stroke: var(--accent); }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; line-height: 1; }
.wordmark span { color: var(--accent); }
nav.links { display: flex; align-items: center; gap: 34px; }
nav.links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; }
nav.links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--accent); transition: width 0.3s var(--ease); }
nav.links a:hover::after, nav.links a.active::after { width: 100%; }
nav.links a.active { color: var(--ink); }

.btn {
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  padding: 12px 22px; border-radius: 2px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bone); cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn.lg { padding: 16px 30px; font-size: 16px; }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.nav-toggle { display: none; }

/* ---------- HERO (home) ---------- */
.hero { position: relative; padding: 188px 0 96px; overflow: hidden; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--hair) 1px, transparent 1px);
  background-size: 100% 64px; opacity: 0.5;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(48px, 8.5vw, 116px); line-height: 0.98;
  letter-spacing: -0.025em; margin: 26px 0 0; max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 350; }
.hero .sub { margin-top: 34px; max-width: 56ch; font-size: 19px; line-height: 1.62; color: var(--ink-soft); }
.hero .cta-row { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }

.bridge-art { position: absolute; right: -40px; bottom: -30px; width: min(640px, 52vw); height: auto; z-index: 1; opacity: 0.9; }
.bridge-art .deck, .bridge-art .pylon, .bridge-art .water { stroke: var(--ink); stroke-width: 1.25; fill: none; opacity: 0.5; }
.bridge-art .cable { stroke: var(--accent); stroke-width: 1.4; fill: none; }
.bridge-art .hanger { stroke: var(--ink); stroke-width: 0.8; opacity: 0.35; }

/* ---------- PAGE HERO (interior) ---------- */
.page-hero { padding: 168px 0 64px; border-bottom: 1px solid var(--hair); position: relative; }
.breadcrumb { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 10px; opacity: 0.5; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(40px, 6.4vw, 86px); line-height: 1.0;
  letter-spacing: -0.025em; max-width: 18ch;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .lead { margin-top: 28px; max-width: 58ch; font-size: 19px; line-height: 1.62; color: var(--ink-soft); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }

/* ---------- CLIENT STRIP ---------- */
.strip { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 28px 0; }
.strip .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.strip .lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.strip ul { list-style: none; display: flex; gap: 38px; flex-wrap: wrap; }
.strip li { font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--ink-soft); }

/* ---------- SECTION SHELL ---------- */
section.block { padding: 120px 0; }
.alt { background: var(--bone-2); }
.sec-head { max-width: 70ch; }
.sec-head h2 { font-family: var(--serif); font-weight: 350; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.02em; margin-top: 20px; }
.sec-head h2 em { font-style: italic; color: var(--accent); }
.sec-head .sh-lead { margin-top: 22px; max-width: 60ch; font-size: 18px; color: var(--ink-soft); }

/* ---------- THESIS ---------- */
.thesis-state { font-family: var(--serif); font-weight: 350; font-size: clamp(28px, 4vw, 50px); line-height: 1.12; letter-spacing: -0.018em; margin: 22px 0 0; max-width: 22ch; }
.thesis-state em { font-style: italic; color: var(--accent); }
.thesis-cols { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.thesis-cols p { color: var(--ink-soft); font-size: 18px; }
.thesis-cols p + p { margin-top: 18px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 14px; }

/* ---------- SERVICES LIST ---------- */
.svc-grid { margin-top: 64px; border-top: 1px solid var(--hair); }
.svc {
  display: grid; grid-template-columns: 90px 1fr 1.3fr; gap: 40px;
  padding: 34px 0; border-bottom: 1px solid var(--hair); align-items: baseline;
  transition: padding 0.4s var(--ease); position: relative;
}
.svc::before { content: ""; position: absolute; left: -40px; right: -40px; top: 0; bottom: 0; background: var(--bone-2); opacity: 0; transition: opacity 0.4s var(--ease); z-index: -1; }
a.svc:hover::before { opacity: 1; }
a.svc:hover { padding-left: 40px; padding-right: 40px; }
.svc .num { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 6px; }
.svc h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.1; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; }
.svc h3 .go { font-family: var(--sans); font-size: 18px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: all 0.3s var(--ease); }
a.svc:hover h3 .go { opacity: 1; transform: none; }
.svc p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ---------- AUDIENCE ---------- */
.aud-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hair); }
.aud { padding: 40px 32px; border-right: 1px solid var(--hair); min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; transition: background 0.4s var(--ease); }
.aud:last-child { border-right: none; }
.aud:hover { background: var(--bone-2); }
.aud .idx { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.aud h4 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.12; }
.aud p { font-size: 14.5px; color: var(--muted); margin-top: 12px; }

/* ---------- LAB SECTION (on home) ---------- */
.lab-sec { background: var(--panel); color: var(--bone); position: relative; overflow: hidden; }
.lab-sec::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 10%, rgba(199, 91, 57, 0.18), transparent 45%); pointer-events: none; }
.lab-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(90deg, var(--hair-dark) 1px, transparent 1px); background-size: 120px 100%; opacity: 0.4; pointer-events: none; }
.lab-sec .wrap { position: relative; z-index: 2; }
.lab-lockup { display: flex; align-items: center; gap: 13px; }
.lab-lockup .mark line, .lab-lockup .mark path { stroke: var(--bone); stroke-width: 1.4; fill: none; }
.lab-lockup .mark .cable { stroke: var(--accent); }
.lab-lockup .name { font-family: var(--serif); font-size: 19px; }
.lab-lockup .name b { font-weight: 500; }
.lab-lockup .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-on-dark); border-left: 1px solid var(--hair-dark); padding-left: 13px; }
.lab-sec h2 { font-family: var(--serif); font-weight: 350; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 30px 0 0; max-width: 18ch; }
.lab-sec h2 em { font-style: italic; color: var(--accent); }
.lab-sub { margin-top: 26px; max-width: 52ch; color: var(--muted-on-dark); font-size: 18px; }
.lab-products { margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair-dark); border: 1px solid var(--hair-dark); }
.lab-prod { background: var(--panel); padding: 30px 26px; transition: background 0.4s var(--ease); }
.lab-prod:hover { background: #16171c; }
.lab-prod .st { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.lab-prod h5 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin-top: 16px; }
.lab-prod p { font-size: 14.5px; color: var(--muted-on-dark); margin-top: 10px; line-height: 1.5; }
.btn-lab { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-lab:hover { background: var(--accent); border-color: var(--accent); color: var(--bone); }

/* ---------- INSIGHTS ---------- */
.ins-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.ins { background: var(--bone); padding: 36px 30px 40px; transition: background 0.4s var(--ease); display: flex; flex-direction: column; min-height: 280px; }
.ins:hover { background: var(--bone-2); }
.ins .cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); }
.ins h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; margin-top: 18px; flex: 1; }
.ins .meta { margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }

.ins-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--hair); margin-bottom: 60px; }
.ins-feature .body { padding: 56px 50px; display: flex; flex-direction: column; justify-content: center; }
.ins-feature .side { background: var(--panel); position: relative; overflow: hidden; min-height: 320px; }
.ins-feature .side::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 30%, rgba(199,91,57,0.25), transparent 55%); }
.ins-feature .side svg { position: absolute; right: -10%; bottom: -8%; width: 80%; opacity: 0.55; }
.ins-feature .side svg path, .ins-feature .side svg line { stroke: var(--bone); stroke-width: 1; fill: none; }
.ins-feature .side svg .cable { stroke: var(--accent); }
.ins-feature h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; margin-top: 16px; letter-spacing: -0.015em; }
.ins-feature p { color: var(--ink-soft); margin-top: 18px; max-width: 48ch; }

/* ---------- SERVICE DETAIL ---------- */
.svc-detail { display: grid; grid-template-columns: 240px 1fr; gap: 70px; align-items: start; }
.svc-nav { position: sticky; top: 110px; }
.svc-nav h6 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.svc-nav a { display: block; font-size: 15px; color: var(--ink-soft); padding: 9px 0; border-bottom: 1px solid var(--hair); transition: color 0.3s, padding 0.3s; }
.svc-nav a:hover { color: var(--accent); padding-left: 6px; }
.svc-nav a.active { color: var(--ink); font-weight: 600; }
.svc-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.015em; margin: 0 0 18px; }
.svc-body h2:not(:first-child) { margin-top: 54px; }
.svc-body p { color: var(--ink-soft); font-size: 18px; margin-bottom: 16px; max-width: 64ch; }
.svc-body .lead { font-size: 21px; line-height: 1.5; color: var(--ink); }
.feature-list { list-style: none; margin: 26px 0; border-top: 1px solid var(--hair); }
.feature-list li { padding: 18px 0 18px 34px; border-bottom: 1px solid var(--hair); position: relative; font-size: 17px; color: var(--ink-soft); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 26px; width: 16px; height: 1px; background: var(--accent); }
.steps { counter-reset: step; margin: 26px 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.step .n { counter-increment: step; font-family: var(--mono); font-size: 14px; color: var(--accent); }
.step .n::before { content: "0" counter(step); }
.step h4 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin-bottom: 6px; }
.step p { font-size: 16px; color: var(--muted); margin: 0; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-aside h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 18px; }
.contact-aside p { color: var(--ink-soft); margin-bottom: 26px; max-width: 40ch; }
.contact-detail { border-top: 1px solid var(--hair); padding: 18px 0; }
.contact-detail .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-detail .v { font-size: 17px; margin-top: 6px; }
.contact-detail .v a:hover { color: var(--accent); }
form .field { margin-bottom: 24px; }
form label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
form input, form select, form textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: transparent; border: 1px solid var(--hair); border-radius: 2px;
  padding: 14px 16px; transition: border-color 0.3s;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--accent); }
form textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: auto; margin-top: 3px; }

/* ---------- CTA BAND ---------- */
.cta-band { padding: 130px 0; text-align: center; border-top: 1px solid var(--hair); }
.cta-band h2 { font-family: var(--serif); font-weight: 350; font-size: clamp(34px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.02em; max-width: 18ch; margin: 0 auto; }
.cta-band h2 em { font-style: italic; color: var(--accent); }
.cta-band .btn { margin-top: 40px; }

/* ---------- PROSE (legal pages) ---------- */
.prose { max-width: 76ch; }
.prose .updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 27px; margin: 46px 0 16px; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; margin: 28px 0 10px; }
.prose p { color: var(--ink-soft); margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- LAB PAGE (standalone store surface) ---------- */
body.lab-page { background: var(--panel); color: var(--bone); }
body.lab-page::after { opacity: 0.05; }
.lab-page header.nav.scrolled, .lab-page header.nav.solid { background: rgba(16,17,21,0.82); border-bottom: 1px solid var(--hair-dark); }
.lab-page .brand .mark line, .lab-page .brand .mark path { stroke: var(--bone); }
.lab-page .brand .mark .cable { stroke: var(--accent); }
.lab-page .wordmark { color: var(--bone); }
.lab-page nav.links a { color: var(--muted-on-dark); }
.lab-page nav.links a.active { color: var(--bone); }
.lab-page .btn { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.lab-page .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bone); }
.lab-hero { padding: 170px 0 70px; position: relative; overflow: hidden; border-bottom: 1px solid var(--hair-dark); }
.lab-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 78% 12%, rgba(199,91,57,0.2), transparent 48%); pointer-events: none; }
.lab-hero .wrap { position: relative; z-index: 2; }
.lab-hero h1 { font-family: var(--serif); font-weight: 350; font-size: clamp(42px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.025em; margin-top: 24px; max-width: 16ch; }
.lab-hero h1 em { font-style: italic; color: var(--accent); }
.lab-hero .lead { margin-top: 28px; max-width: 54ch; color: var(--muted-on-dark); font-size: 19px; }
.lab-hero .cta-row { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.preview-pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--hair-dark); border-radius: 100px; padding: 8px 16px; }
.preview-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair-dark); border: 1px solid var(--hair-dark); margin-top: 10px; }
.cat { background: var(--panel); padding: 34px 26px; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; transition: background 0.4s; }
.cat:hover { background: #16171c; }
.cat .ci { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.cat h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.cat p { font-size: 14px; color: var(--muted-on-dark); margin-top: 10px; }

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 10px; }
.card-prod { border: 1px solid var(--hair-dark); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), border-color 0.4s; }
.card-prod:hover { transform: translateY(-4px); border-color: rgba(199,91,57,0.5); }
.card-prod .thumb { aspect-ratio: 16/10; position: relative; background: #16171c; overflow: hidden; border-bottom: 1px solid var(--hair-dark); }
.card-prod .thumb::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 70% 30%, rgba(199,91,57,0.22), transparent 60%); }
.card-prod .thumb .glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.card-prod .thumb .glyph svg { width: 46%; opacity: 0.6; }
.card-prod .thumb .glyph svg path, .card-prod .thumb .glyph svg line { stroke: var(--bone); stroke-width: 1; fill: none; }
.card-prod .thumb .glyph svg .cable { stroke: var(--accent); }
.card-prod .pbody { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-prod .ptag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.card-prod h4 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin-top: 12px; line-height: 1.2; }
.card-prod p { font-size: 14px; color: var(--muted-on-dark); margin-top: 10px; flex: 1; }
.card-prod .prow { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.card-prod .price { font-family: var(--serif); font-size: 24px; }
.card-prod .price small { font-family: var(--mono); font-size: 11px; color: var(--muted-on-dark); letter-spacing: 0.08em; display: block; text-transform: uppercase; }
.card-prod .add { font-family: var(--sans); font-size: 13.5px; font-weight: 600; border: 1px solid var(--hair-dark); color: var(--bone); padding: 9px 16px; border-radius: 2px; transition: background 0.3s, color 0.3s; }
.card-prod:hover .add { background: var(--accent); border-color: var(--accent); }

.lab-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 10px; }
.lab-how .h { padding-top: 24px; border-top: 1px solid var(--hair-dark); }
.lab-how .hn { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.lab-how h4 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 12px 0 8px; }
.lab-how p { font-size: 15px; color: var(--muted-on-dark); }

.notify { border: 1px solid var(--hair-dark); border-radius: 4px; padding: 56px 50px; text-align: center; margin-top: 10px; position: relative; overflow: hidden; }
.notify::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 50% 0%, rgba(199,91,57,0.16), transparent 55%); }
.notify > * { position: relative; z-index: 2; }
.notify h2 { font-family: var(--serif); font-weight: 350; font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.02em; max-width: 18ch; margin: 14px auto 0; }
.notify h2 em { font-style: italic; color: var(--accent); }
.notify-form { display: flex; gap: 12px; max-width: 460px; margin: 34px auto 0; }
.notify-form input { flex: 1; background: rgba(244,240,231,0.04); border: 1px solid var(--hair-dark); color: var(--bone); padding: 14px 16px; border-radius: 2px; font-family: var(--sans); font-size: 15px; }
.notify-form input:focus { outline: none; border-color: var(--accent); }
.lab-page .sec-head h2, .lab-page section.block .sec-head h2 { color: var(--bone); }
.lab-page .sec-head .sh-lead { color: var(--muted-on-dark); }

/* ---------- FOOTER ---------- */
footer.site { background: var(--panel); color: var(--bone); padding: 80px 0 44px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--hair-dark); }
.foot-brand .wordmark { color: var(--bone); }
.foot-brand .wordmark span { color: var(--accent); }
.foot-brand p { margin-top: 20px; max-width: 36ch; color: var(--muted-on-dark); font-size: 15px; }
.foot-col h6 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 18px; }
.foot-col a, .foot-col span { display: block; color: var(--bone); font-size: 15px; margin-bottom: 12px; opacity: 0.85; transition: opacity 0.3s, color 0.3s; }
.foot-col a:hover { color: var(--accent); opacity: 1; }
.legal { padding-top: 30px; }
.legal .adv { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.legal p { font-size: 12.5px; line-height: 1.65; color: var(--muted-on-dark); max-width: 96ch; }
.foot-bottom { margin-top: 34px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--muted-on-dark); }
.foot-bottom .links a { margin-left: 22px; }
.foot-bottom .links a:first-child { margin-left: 0; }
.foot-bottom .links a:hover { color: var(--accent); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .thesis-cols { grid-template-columns: 1fr; gap: 30px; }
  .aud-grid { grid-template-columns: 1fr 1fr; }
  .aud:nth-child(2) { border-right: none; }
  .aud { border-bottom: 1px solid var(--hair); }
  .lab-products, .ins-grid, .shop-grid, .lab-how { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .bridge-art { opacity: 0.4; width: 80vw; right: -20%; }
  .svc-detail { grid-template-columns: 1fr; gap: 40px; }
  .svc-nav { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .ins-feature { grid-template-columns: 1fr; }
  .ins-feature .side { min-height: 220px; order: -1; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  nav.links { display: none; }
  .nav-toggle { display: inline-flex; }
  .svc { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .svc .num { padding-top: 0; }
  .aud-grid, .cat-grid { grid-template-columns: 1fr; }
  .aud { border-right: none; }
  .strip ul { gap: 22px; }
  .strip li { font-size: 17px; }
  .hero { padding: 150px 0 70px; }
  section.block { padding: 80px 0; }
  .foot-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .notify-form { flex-direction: column; }
  .shop-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- ACCESSIBILITY: SKIP LINK + FOCUS ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--ink); color: var(--bone); padding: 12px 18px;
  border-radius: 2px; font-family: var(--sans); font-size: 14px; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; outline: 2px solid var(--accent); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}

/* ---------- MOBILE MENU ---------- */
.nav-toggle {
  width: 44px; height: 44px; padding: 0; background: transparent;
  border: 1px solid var(--hair); border-radius: 2px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; display: block; width: 20px; height: 1.6px;
  background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle .bars::after { position: absolute; top: 6px; left: 0; }
.nav-toggle.open .bars { background: transparent; }
.nav-toggle.open .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .bars::after { transform: translateY(-6px) rotate(-45deg); }
.lab-page .nav-toggle { border-color: var(--hair-dark); }
.lab-page .nav-toggle .bars,
.lab-page .nav-toggle .bars::before,
.lab-page .nav-toggle .bars::after { background: var(--bone); }
.lab-page .nav-toggle.open .bars { background: transparent; }

.mobile-menu {
  display: none; position: fixed; left: 0; right: 0; top: 78px; bottom: 0;
  background: rgba(244, 240, 231, 0.98); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--hair);
  z-index: 999; opacity: 0; transform: translateY(-10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; transform: none; }
body.menu-open { overflow: hidden; }
.mobile-links { display: flex; flex-direction: column; padding: 28px 22px 40px; gap: 4px; }
.mobile-links a:not(.btn) {
  font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.01em;
  color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--hair);
}
.mobile-links a.active { color: var(--accent); }
.mobile-links .btn { margin-top: 24px; justify-content: center; }
.lab-page .mobile-menu { background: rgba(16, 17, 21, 0.98); border-top-color: var(--hair-dark); }
.lab-page .mobile-links a:not(.btn) { color: var(--bone); border-bottom-color: var(--hair-dark); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: block; }
}

/* ---------- HONEYPOT (anti-spam, visually hidden) ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
