/* ============================================================
   S-GROUP — design tokens
   ============================================================ */
:root{
  --bg: #0e1216;
  --bg-alt: #141a1f;
  --bg-alt-2: #191f25;
  --line: #2a323a;
  --line-soft: rgba(255,255,255,0.07);
  --ink: #eef0f2;
  --ink-dim: #b7bfc6;
  --muted: #838d95;
  --amber: #eca819;
  --amber-soft: rgba(236,168,25,0.14);
  --amber-line: rgba(236,168,25,0.35);

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1180px;
  --edge: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- light theme override ---------- */
[data-theme="light"]{
  --bg: #f6f5f2;
  --bg-alt: #ffffff;
  --bg-alt-2: #efedE8;
  --line: #dcd9d2;
  --line-soft: rgba(20,18,14,0.09);
  --ink: #17181a;
  --ink-dim: #4a4d51;
  --muted: #767a7e;
  --amber: #b8790a;
  --amber-soft: rgba(184,121,10,0.13);
  --amber-line: rgba(184,121,10,0.45);
}
[data-theme="light"] .hero-grain{ opacity: 0.03; }
[data-theme="light"] .svc-media img{ filter: grayscale(0.1) brightness(0.98); }
[data-theme="light"] .gallery-item img,
[data-theme="light"] .gallery-item video{ filter: brightness(0.94) saturate(1.02); }
[data-theme="light"] .about-media img{ filter: grayscale(0.15) contrast(1.02); }
[data-theme="light"] .process-num{ -webkit-text-stroke: 1px var(--amber-line); }
[data-theme="light"] .btn-amber{ color:#fff9ef; }
[data-theme="light"] .wire-track{ stroke: rgba(20,18,14,0.14); }

body{ transition: background-color .5s var(--ease), color .5s var(--ease); }

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family: var(--font-display); font-weight:700; margin:0; line-height:1.02; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

::selection{ background: var(--amber); color:#161616; }

:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.accent{ color: var(--amber); }

.eyebrow{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}
.eyebrow-dot{
  width:7px; height:7px; border-radius:50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
  flex-shrink:0;
}

.section-head{ max-width: 640px; margin: 0 0 56px; }
.section-head h2{ font-size: clamp(30px, 4.2vw, 48px); letter-spacing: 0.01em; text-transform: uppercase; }
.section-lede{ margin-top:18px; color: var(--ink-dim); font-size:16.5px; max-width: 52ch; }

section{ position: relative; padding: 120px var(--edge); }
@media (max-width: 700px){ section{ padding: 84px var(--edge); } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 15px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn-amber{
  background: var(--amber);
  color: #14100a;
  font-weight: 600;
}
.btn-amber:hover{ transform: translateY(-2px); background:#ffbe33; }
.btn-ghost{
  border-color: var(--line-soft);
  color: var(--ink);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover{ border-color: var(--amber-line); color: var(--amber); transform: translateY(-2px); }

/* ============================================================
   WIRE SPINE (signature scroll element)
   ============================================================ */
.wire-spine{
  position: fixed;
  left: 22px; top: 0;
  width: 40px; height: 100vh;
  z-index: 40;
  pointer-events: none;
}
.wire-spine svg{ width:100%; height:100%; overflow: visible; }
.wire-track, .wire-progress{
  fill:none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.wire-track{ stroke: var(--line-soft); }
.wire-progress{
  stroke: var(--amber);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 4px rgba(236,168,25,0.65));
}
.wire-dot{
  position:absolute;
  left: 12px; top:0;
  width:12px; height:12px;
  border-radius:50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft), 0 0 14px 2px rgba(236,168,25,0.6);
  transform: translateY(-6px);
  transition: top .1s linear;
}
@media (max-width: 900px){ .wire-spine{ display:none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: fixed; top:0; left:0; right:0;
  z-index: 50;
  padding: 22px var(--edge);
  transition: padding .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{
  padding: 14px var(--edge);
  background: rgba(14,18,22,0.82);
  backdrop-filter: blur(10px);
  border-color: var(--line-soft);
}
.nav-inner{
  max-width: 1400px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  gap: 24px;
}
.brand{ display:flex; align-items:center; flex-shrink:0; }
.brand-mark{ height: 40px; width:auto; }
.nav-links{
  display:flex; align-items:center; gap: 34px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
  margin-right: 34px;
}
.nav-links a{
  position:relative; padding: 4px 0; color: var(--ink-dim);
  transition: color .3s var(--ease);
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:1px;
  background: var(--amber);
  transition: right .35s var(--ease);
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after{ right:0; }
.nav-links a.is-active{ color: var(--amber); }
.nav-cta{ flex-shrink:0; }

.nav-tools{ display:flex; align-items:center; gap:8px; flex-shrink:0; margin-right: 6px; }
.tool-btn{
  width:38px; height:38px; border-radius:50%;
  border:1px solid var(--line-soft); background: rgba(255,255,255,0.02);
  color: var(--ink-dim);
  display:flex; align-items:center; justify-content:center;
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  position:relative;
}
.tool-btn:hover{ border-color: var(--amber-line); color: var(--amber); transform: translateY(-1px); }
.tool-btn svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; position:absolute; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.icon-moon{ opacity:1; transform: scale(1) rotate(0); }
.icon-sun{ opacity:0; transform: scale(0.5) rotate(-45deg); }
[data-theme="light"] .icon-moon{ opacity:0; transform: scale(0.5) rotate(45deg); }
[data-theme="light"] .icon-sun{ opacity:1; transform: scale(1) rotate(0); }
.tool-lang{ font-family: var(--font-mono); font-size:11.5px; font-weight:600; letter-spacing:0.02em; }

@media (max-width: 900px){ .nav-tools{ margin-right:14px; } }

.burger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width: 36px; height: 32px; background:none; border:none; padding:0;
}
.burger span{ height:2px; width:100%; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px){
  .nav-links{
    position: fixed; inset: 0 0 0 auto;
    width: min(78vw, 340px); height: 100vh;
    margin:0;
    background: var(--bg-alt);
    border-left: 1px solid var(--line-soft);
    flex-direction: column; align-items: flex-start;
    justify-content:center;
    gap: 26px;
    padding: 40px var(--edge);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
  }
  .nav-links.is-open{ transform: translateX(0); }
  .nav-links a{ font-size: 15px; }
  .nav-cta{ display:none; }
  .burger{ display:flex; z-index: 60; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex; flex-direction:column; justify-content:center;
  padding: 160px var(--edge) 120px;
  overflow:hidden;
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-video{ width:100%; height:100%; object-fit:cover; }
.hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(10,13,16,0.55) 0%, rgba(10,13,16,0.72) 46%, var(--bg) 96%),
    linear-gradient(90deg, rgba(8,10,12,0.55) 0%, rgba(8,10,12,0.1) 45%);
}
.hero-grain{
  position:absolute; inset:0; opacity:0.05; mix-blend-mode:overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content{ position:relative; z-index:2; max-width: 900px; }

.eyebrow.reveal-item{ color: var(--amber); }
.hero-title{
  font-size: clamp(40px, 8.4vw, 104px);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.hero-title .line{ display:block; overflow:hidden; }
.hero-title em{ font-style:normal; color: var(--amber); }
.bolt-inline{ display:inline-block; width: 0.62em; height:1em; vertical-align: -0.12em; margin: 0 0.05em; }
.bolt-inline svg{ width:100%; height:100%; }
.bolt-inline path{ fill: var(--amber); }

.hero-sub{
  margin-top: 28px;
  max-width: 54ch;
  font-size: 18px;
  color: var(--ink-dim);
}
.hero-actions{ margin-top: 42px; display:flex; gap:18px; flex-wrap:wrap; }

.scroll-cue{
  position:absolute; left: var(--edge); bottom: 40px; z-index:2;
  display:flex; align-items:center; gap:12px;
  font-family: var(--font-mono); font-size:11.5px; letter-spacing:0.14em; text-transform:uppercase;
  color: var(--muted);
}
.scroll-cue-line{ width:1px; height:46px; background: var(--line-soft); position:relative; overflow:hidden; }
.scroll-cue-line i{
  position:absolute; top:-100%; left:0; width:100%; height:100%;
  background: var(--amber);
  animation: cue-drop 2.2s ease-in-out infinite;
}
@keyframes cue-drop{
  0%{ top:-100%; }
  50%{ top: 100%; }
  50.01%{ top:-100%; }
  100%{ top:-100%; }
}
@media (max-width: 700px){ .scroll-cue{ display:none; } }

/* ============================================================
   STATS
   ============================================================ */
.stats{
  padding: 70px var(--edge);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.stats-inner{
  max-width: var(--container); margin:0 auto;
  display:grid; grid-template-columns: repeat(4,1fr); gap: 32px;
}
.stat{ display:flex; flex-direction:column; gap:6px; }
.stat-num, .stat-num-text{
  font-family: var(--font-display); font-weight:700;
  font-size: clamp(34px,3.6vw,52px); color: var(--ink);
  line-height:1;
}
.stat-plus{ font-family: var(--font-display); font-weight:700; font-size: clamp(22px,2.4vw,32px); color: var(--amber); }
.stat-num-text{ font-size: clamp(24px,2.6vw,32px); }
.stat-label{ font-size: 13.5px; color: var(--muted); max-width: 22ch; }
.stats-note{
  max-width: var(--container); margin: 22px auto 0;
  font-family: var(--font-mono); font-size:11px; color: #565f66;
}
@media (max-width: 900px){ .stats-inner{ grid-template-columns: repeat(2,1fr); row-gap:36px; } }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.svc-card{
  background: var(--bg);
  position:relative;
  display:flex; flex-direction:column;
  transition: background-color .4s var(--ease);
}
.svc-card:hover{ background: var(--bg-alt); }
.svc-media{ aspect-ratio: 4/3; overflow:hidden; }
.svc-media img{ width:100%; height:100%; object-fit:cover; transition: transform .8s var(--ease), filter .5s var(--ease); filter: grayscale(0.25) brightness(0.86); }
.svc-card:hover .svc-media img{ transform: scale(1.06); filter: grayscale(0) brightness(1); }
.svc-body{ padding: 28px 30px 34px; }
.svc-index{
  font-family: var(--font-mono); font-size:12px; color: var(--amber);
  letter-spacing: 0.1em;
}
.svc-body h3{ margin-top:14px; font-size:22px; text-transform: uppercase; letter-spacing:0.01em; }
.svc-body p{ margin-top:12px; color: var(--ink-dim); font-size:14.5px; }

@media (max-width: 900px){ .services-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .services-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.beforeafter{ background: var(--bg-alt); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.ba-slider{ max-width: 900px; margin: 0 auto; }
.ba-frame{
  position:relative; width:100%; aspect-ratio: 16/10; overflow:hidden; border-radius:4px;
  user-select:none; -webkit-user-select:none;
  border: 1px solid var(--line-soft);
  cursor: ew-resize;
}
.ba-img{ position:absolute; top:0; left:0; height:100%; object-fit:cover; pointer-events:none; }
.ba-before{ width:100%; filter: saturate(0.85) brightness(0.82); }
.ba-after-wrap{
  position:absolute; inset:0 auto 0 0; width:50%; height:100%; overflow:hidden;
  border-right: 2px solid var(--amber);
}
.ba-after-wrap .ba-img{ width: var(--frame-w, 900px); max-width:none; }
.ba-handle{
  position:absolute; top:0; bottom:0; left:50%;
  width:0; transform: translateX(-50%);
  display:flex; align-items:center; justify-content:center;
  z-index:3;
}
.ba-handle-grip{
  width:44px; height:44px; border-radius:50%;
  background: var(--amber); color:#161616;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  border: 3px solid rgba(255,255,255,0.85);
}
.ba-handle-grip svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ba-handle::before{
  content:""; position:absolute; top:0; bottom:0; left:50%; width:2px;
  background: var(--amber); transform: translateX(-50%); z-index:-1;
}
.ba-tag{
  position:absolute; bottom:16px; z-index:2;
  font-family: var(--font-mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase;
  padding: 7px 12px; border-radius:2px;
  background: rgba(10,12,15,0.6); color:#fff; border:1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
}
.ba-tag-left{ left:16px; }
.ba-tag-right{ right:16px; }

@media (max-width: 600px){
  .ba-frame{ aspect-ratio: 3/4; }
  .ba-handle-grip{ width:38px; height:38px; }
}

/* ============================================================
   SAFETY CHECKUP QUIZ
   ============================================================ */
.checkup{ background: var(--bg-alt); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.checkup-box{ max-width: 820px; margin:0 auto; }
.checkup-questions{ display:flex; flex-direction:column; gap:26px; }
.checkup-questions .segmented{ width:100%; }
.checkup-questions .segmented-btn{ flex:1; text-align:center; }

.checkup-result{
  margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line-soft);
  display:flex; flex-direction:column; align-items:flex-start; gap:14px;
}
.checkup-badge{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase;
  padding: 8px 14px; border-radius:20px;
  background: var(--amber-soft); color: var(--amber); border:1px solid var(--amber-line);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.checkup-badge::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.checkup-badge.level-medium{ background: rgba(230,158,23,0.15); color:#e69e17; border-color: rgba(230,158,23,0.4); }
.checkup-badge.level-high{ background: rgba(224,86,58,0.14); color:#e0563a; border-color: rgba(224,86,58,0.4); }
.checkup-verdict{ font-size:15.5px; color: var(--ink-dim); max-width: 62ch; line-height:1.6; }

@media (max-width: 600px){
  .checkup-questions .segmented{ flex-direction:column; }
  .checkup-questions .segmented-btn{ text-align:left; }
}

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc-grid{
  display:grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.calc-grid > *{ min-width:0; }
.calc-form{ display:flex; flex-direction:column; gap:28px; min-width:0; }
.calc-field{ display:flex; flex-direction:column; gap:12px; min-width:0; }
.calc-field-row{ flex-direction:row; flex-wrap:wrap; gap:22px; margin-top:4px; min-width:0; }
.calc-check{ min-width:0; }
.calc-label{ font-family: var(--font-mono); font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color: var(--muted); }

.segmented{ display:flex; gap:2px; background: var(--line-soft); border-radius:3px; padding:3px; width: max-content; max-width:100%; flex-wrap:wrap; }
.segmented-btn{
  border:none; background:transparent; color: var(--ink-dim);
  padding: 10px 18px; font-size:14px; font-family: var(--font-body); font-weight:600;
  border-radius:2px; transition: background-color .3s var(--ease), color .3s var(--ease);
}
.segmented-btn.is-active{ background: var(--amber); color:#171308; }
.segmented-btn:not(.is-active):hover{ color: var(--ink); }

.calc-range-row{ display:flex; align-items:center; gap:18px; }
.calc-range-row input[type="range"]{
  -webkit-appearance:none; appearance:none;
  flex:1; height:3px; background: var(--line-soft); border-radius:2px; outline:none;
}
.calc-range-row input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; width:20px; height:20px; border-radius:50%;
  background: var(--amber); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--amber-line);
  cursor:pointer;
}
.calc-range-row input[type="range"]::-moz-range-thumb{
  width:16px; height:16px; border-radius:50%; border: 3px solid var(--bg);
  background: var(--amber); box-shadow: 0 0 0 1px var(--amber-line); cursor:pointer;
}
.calc-range-value{
  font-family: var(--font-mono); font-size:14px; color: var(--ink);
  min-width: 64px; text-align:right; flex-shrink:0;
}

.calc-check{ display:flex; align-items:center; gap:10px; font-size:14px; color: var(--ink-dim); cursor:pointer; }
.calc-check input{ position:absolute; opacity:0; width:1px; height:1px; }
.calc-check-box{
  width:18px; height:18px; border:1px solid var(--line-soft); border-radius:3px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; transition: border-color .3s, background-color .3s;
}
.calc-check-box::after{
  content:""; width:9px; height:9px; border-radius:1px; background: var(--amber);
  transform: scale(0); transition: transform .25s var(--ease);
}
.calc-check input:checked + .calc-check-box{ border-color: var(--amber); }
.calc-check input:checked + .calc-check-box::after{ transform: scale(1); }
.calc-check input:focus-visible + .calc-check-box{ outline:2px solid var(--amber); outline-offset:2px; }

.calc-result{
  background: var(--bg-alt); border:1px solid var(--line-soft); border-radius:4px;
  padding: 32px;
  position: sticky; top: 100px;
}
.calc-result-label{ font-family: var(--font-mono); font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase; color: var(--muted); }
.calc-result-value{
  font-family: var(--font-display); font-weight:700; font-size: clamp(32px, 3.6vw, 44px); color: var(--amber);
  margin-top:8px; line-height:1;
}
.calc-result-value span[id="calcMax"]{ color: var(--ink); }
.calc-breakdown{ margin-top: 22px; display:flex; flex-direction:column; gap:0; border-top:1px solid var(--line-soft); }
.calc-breakdown li{
  display:flex; justify-content:space-between; gap:12px;
  padding: 11px 0; border-bottom:1px solid var(--line-soft);
  font-size:13.5px; color: var(--ink-dim);
}
.calc-breakdown li span:last-child{ color: var(--ink); font-family: var(--font-mono); font-size:12.5px; flex-shrink:0; }
.calc-disclaimer{ margin-top:16px; font-size:11.5px; color:#767a7e; line-height:1.5; }
.calc-lead{ display:flex; flex-direction:column; gap:10px; margin-top:22px; }
.calc-lead input{
  background: rgba(255,255,255,0.03); border:1px solid var(--line-soft); color: var(--ink);
  padding: 11px 14px; border-radius:2px; font-family: var(--font-body); font-size:14px;
}
.calc-lead input:focus{ outline:none; border-color: var(--amber); }
.calc-actions{ display:flex; flex-direction:column; gap:10px; margin-top:16px; }
.calc-actions .btn{ width:100%; }

@media (max-width: 900px){
  .calc-grid{ grid-template-columns:1fr; }
  .calc-result{ position:static; }
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-list{ position:relative; max-width: 820px; }
.process-list::before{
  content:""; position:absolute; left: 27px; top:14px; bottom:14px; width:1px;
  background: linear-gradient(var(--line-soft), var(--line-soft));
}
.process-step{
  position:relative; display:flex; gap:28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
}
.process-step:first-child{ padding-top:0; }
.process-num{
  flex-shrink:0; width: 56px;
  font-family: var(--font-display); font-weight:700; font-size:28px;
  color: var(--bg);
  -webkit-text-stroke: 1px var(--amber-line);
  display:flex; align-items:flex-start; justify-content:center;
  position:relative;
}
.process-num::before{
  content:""; position:absolute; left:50%; top:6px; width:9px; height:9px; border-radius:50%;
  background: var(--bg); border:2px solid var(--amber-line); transform: translateX(-50%);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.process-step.is-active .process-num::before{
  background: var(--amber); border-color: var(--amber);
  box-shadow: 0 0 12px 2px rgba(236,168,25,0.55);
}
.process-text h3{ font-size:21px; text-transform:uppercase; letter-spacing:0.01em; }
.process-text p{ margin-top:10px; color: var(--ink-dim); font-size:15px; max-width:56ch; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 18px;
}
.gallery-item{
  position:relative; overflow:hidden; border-radius: 3px;
  background: var(--bg-alt);
  cursor:pointer;
}
.gallery-item img, .gallery-item video{
  width:100%; height:100%; object-fit:cover;
  transition: transform 1s var(--ease), filter .5s var(--ease);
  filter: brightness(0.82) saturate(0.95);
}
.gallery-item:hover img, .gallery-item:hover video{ transform: scale(1.055); filter: brightness(0.98) saturate(1.05); }
.gallery-video:nth-child(1){ grid-column: span 2; }
.gallery-square{ grid-row: span 1; }
.gallery-tag{
  position:absolute; left:16px; bottom:16px; z-index:2;
  font-family: var(--font-mono); font-size:11.5px; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--ink);
  background: rgba(10,12,15,0.55);
  border: 1px solid var(--line-soft);
  padding: 7px 12px;
  backdrop-filter: blur(4px);
}
.gallery-play{
  position:absolute; inset:0; margin:auto; width:56px; height:56px;
  border-radius:50%; border:1px solid rgba(255,255,255,0.5);
  background: rgba(10,12,15,0.35);
  display:flex; align-items:center; justify-content:center;
  opacity: 1; transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .3s;
}
.gallery-play::before{
  content:""; width:0; height:0;
  border-style:solid; border-width:9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
  margin-left:4px;
}
.gallery-item:hover .gallery-play, .gallery-item.is-playing .gallery-play{ opacity:0; transform: scale(0.8); pointer-events:none; }

@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows: 220px; }
  .gallery-video:nth-child(1){ grid-column: span 2; }
}
@media (max-width: 600px){
  .gallery-grid{ grid-template-columns: 1fr; }
  .gallery-video:nth-child(1){ grid-column: span 1; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about{
  display:grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px,6vw,90px);
  align-items:center;
}
.about-media{ position:relative; }
.about-media img{ width:100%; aspect-ratio: 3/4; object-fit:cover; object-position: top center; filter: grayscale(0.35) contrast(1.05); }
.about-media-frame{
  position:absolute; top:18px; left:18px; right:-18px; bottom:-18px;
  border: 1px solid var(--amber-line);
  z-index:-1;
}
.about-text{ margin-top:22px; color: var(--ink-dim); font-size:16.5px; max-width: 58ch; }
.about-quote{
  margin: 34px 0 0; padding: 24px 0 24px 26px;
  border-left: 2px solid var(--amber);
  font-family: var(--font-display); font-weight:500;
  font-size: 20px; line-height:1.4; color: var(--ink);
  max-width: 58ch;
}
.about-quote cite{
  display:block; margin-top:14px; font-style:normal;
  font-family: var(--font-mono); font-size:12px; letter-spacing:0.06em;
  color: var(--muted); text-transform:uppercase;
}
.about-points{ margin-top: 36px; display:flex; flex-direction:column; gap:16px; }
.about-point{
  display:flex; gap:16px; align-items:baseline;
  font-size: 14.5px; color: var(--ink-dim);
  padding-bottom:16px; border-bottom:1px solid var(--line-soft);
}
.about-point span{ font-family:var(--font-mono); color:var(--amber); font-size:12px; }

@media (max-width: 900px){
  .about{ grid-template-columns: 1fr; }
  .about-media{ max-width: 340px; }
}

/* ============================================================
   CLIENT PORTAL
   ============================================================ */
.portal{ background: var(--bg-alt); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.portal-box{
  max-width: 720px; margin:0 auto;
  background: var(--bg); border:1px solid var(--line-soft); border-radius:6px;
  padding: clamp(24px,4vw,44px);
}
.portal-login-row{ display:flex; gap:12px; margin-top:10px; flex-wrap:wrap; }
.portal-login-row input{
  flex:1; min-width:180px;
  background: rgba(255,255,255,0.03); border:1px solid var(--line-soft); color: var(--ink);
  padding: 13px 16px; border-radius:2px; font-family: var(--font-mono); font-size:14px; letter-spacing:0.03em;
}
.portal-login-row input:focus{ outline:none; border-color: var(--amber); }
.portal-hint{ margin-top:16px; font-size:13px; color: var(--muted); }
.portal-hint strong{ color: var(--amber); font-weight:600; }
.portal-error{ margin-top:12px; font-size:13px; color:#e5624c; }

.portal-view-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:30px; }
.portal-view-code{ display:block; font-family: var(--font-mono); font-size:11.5px; letter-spacing:0.08em; color: var(--amber); text-transform:uppercase; }
.portal-view-title{ display:block; margin-top:4px; font-family: var(--font-display); font-size:24px; font-weight:700; text-transform:uppercase; }

.portal-timeline{ display:flex; flex-direction:column; gap:0; }
.portal-stage{
  display:flex; gap:18px; padding: 16px 0; border-bottom:1px solid var(--line-soft);
  opacity:0.45;
}
.portal-stage:last-child{ border-bottom:none; }
.portal-stage.is-done{ opacity:1; }
.portal-stage.is-current{ opacity:1; }
.portal-stage-dot{
  width:26px; height:26px; border-radius:50%; flex-shrink:0;
  border:2px solid var(--line-soft); display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size:11px; color: var(--muted);
  margin-top:2px;
}
.portal-stage.is-done .portal-stage-dot{ background: var(--amber); border-color: var(--amber); color:#171308; }
.portal-stage.is-current .portal-stage-dot{ border-color: var(--amber); color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.portal-stage-text strong{ display:block; font-size:15px; }
.portal-stage-text span{ display:block; margin-top:3px; font-size:12.5px; color: var(--muted); }
.portal-note{ margin-top:26px; padding-top:20px; border-top:1px dashed var(--line-soft); font-size:12px; color:#767a7e; line-height:1.6; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list{ max-width: 780px; }
.faq-item{ border-bottom:1px solid var(--line-soft); }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:none; border:none; text-align:left;
  padding: 22px 0; color: var(--ink); font-size:16.5px; font-weight:600; font-family: var(--font-body);
}
.faq-plus{ position:relative; width:18px; height:18px; flex-shrink:0; }
.faq-plus::before, .faq-plus::after{
  content:""; position:absolute; background: var(--amber); border-radius:2px;
}
.faq-plus::before{ top:8px; left:0; width:18px; height:2px; }
.faq-plus::after{ top:0; left:8px; width:2px; height:18px; transition: transform .35s var(--ease); }
.faq-q[aria-expanded="true"] .faq-plus::after{ transform: rotate(90deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .4s var(--ease); }
.faq-a p{ padding: 0 0 22px; color: var(--ink-dim); font-size:14.5px; max-width:62ch; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact{ background: var(--bg-alt); border-top:1px solid var(--line-soft); }
.contact-inner{
  max-width: var(--container); margin:0 auto;
  display:grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,6vw,80px);
}
.contact-details{ margin-top: 30px; display:flex; flex-direction:column; }
.contact-line{
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
  transition: padding-left .3s var(--ease), color .3s var(--ease);
}
a.contact-line:hover{ padding-left:8px; color: var(--amber); }
.contact-label{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase; color: var(--muted); }
.contact-value{ font-size:16px; }
.contact-social{ display:flex; gap:14px; margin-top:30px; }
.contact-social a{
  width:42px; height:42px; border:1px solid var(--line-soft); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.05em;
  transition: border-color .3s, color .3s, transform .3s;
}
.contact-social a:hover{ border-color: var(--amber); color: var(--amber); transform: translateY(-3px); }

.contact-form{ display:flex; flex-direction:column; gap:20px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; }
.contact-form label{ display:flex; flex-direction:column; gap:8px; }
.contact-form span{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 2px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus{
  outline:none; border-color: var(--amber); background: rgba(255,255,255,0.05);
}
.form-submit{ margin-top:6px; width:100%; position:relative; overflow:hidden; }
.form-note{ font-size:12px; color:#5c656c; margin-top:-6px; }

@media (max-width: 900px){
  .contact-inner{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ padding: 70px var(--edge) 26px; border-top:1px solid var(--line-soft); }
.footer-inner{
  max-width: var(--container); margin:0 auto;
  display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 46px; border-bottom: 1px solid var(--line-soft);
}
.footer-mark{ height:34px; width:auto; }
.footer-brand p{ margin-top:14px; color: var(--muted); font-size:14px; max-width:32ch; }
.footer-links{ display:flex; flex-direction:column; gap:12px; font-size:14.5px; color: var(--ink-dim); }
.footer-links a:hover{ color: var(--amber); }
.footer-contact{ display:flex; flex-direction:column; gap:12px; font-size:14.5px; color: var(--ink-dim); }
.footer-contact a:hover{ color: var(--amber); }
.footer-bottom{
  max-width: var(--container); margin: 22px auto 0;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-family: var(--font-mono); font-size:11.5px; color:#5c656c;
}
@media (max-width: 700px){ .footer-inner{ grid-template-columns: 1fr; gap:30px; } }

/* ============================================================
   REVEAL / SCROLL ANIMATION
   ============================================================ */
.reveal-item{
  opacity:0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-item.is-visible{ opacity:1; transform: translateY(0); }

.services-grid .svc-card:nth-child(1){ transition-delay: 0s; }
.services-grid .svc-card:nth-child(2){ transition-delay: .08s; }
.services-grid .svc-card:nth-child(3){ transition-delay: .16s; }
.services-grid .svc-card:nth-child(4){ transition-delay: .0s; }
.services-grid .svc-card:nth-child(5){ transition-delay: .08s; }
.services-grid .svc-card:nth-child(6){ transition-delay: .16s; }

/* hero load-in choreography */
.hero-title .line{ position:relative; }
.hero-title .line > *{
  display:inline-block;
  transform: translateY(110%);
  transition: transform .9s var(--ease);
}
.hero-title .line[data-line="1"] > *{ transition-delay: .15s; }
.hero-title .line[data-line="2"] > *{ transition-delay: .28s; }
.hero-title .line[data-line="3"] > *{ transition-delay: .41s; }
body.is-loaded .hero-title .line > *{ transform: translateY(0); }

.hero-sub.reveal-item, .hero-actions.reveal-item{ transition-delay: .55s; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior:auto !important; }
  .reveal-item{ opacity:1; transform:none; }
  .hero-title .line > *{ transform:none; }
}

/* ============================================================
   FLOATING QUICK-CONTACT
   ============================================================ */
.quick-contact{
  position: fixed; right: clamp(16px,4vw,32px); bottom: clamp(16px,4vw,32px);
  z-index: 45;
  display:flex; flex-direction:column; align-items:flex-end; gap:12px;
  opacity:0; transform: translateY(16px); pointer-events:none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.quick-contact.is-visible{ opacity:1; transform:none; pointer-events:auto; }

.quick-contact-menu{
  display:flex; flex-direction:column; gap:10px;
  opacity:0; transform: translateY(10px) scale(0.97); transform-origin: bottom right;
  pointer-events:none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.quick-contact.is-open .quick-contact-menu{ opacity:1; transform:none; pointer-events:auto; }

.quick-item{
  display:flex; align-items:center; gap:10px;
  background: var(--bg-alt); border:1px solid var(--line-soft); color: var(--ink);
  padding: 12px 18px 12px 14px; border-radius: 30px;
  font-size: 13.5px; font-weight:600; white-space:nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  transition: border-color .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.quick-item:hover{ border-color: var(--amber-line); color: var(--amber); transform: translateX(-3px); }
.quick-ico{
  width:26px; height:26px; border-radius:50%; background: var(--amber-soft); color: var(--amber);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-mono); font-size:10.5px; font-weight:700; flex-shrink:0;
}

.quick-fab{
  width:58px; height:58px; border-radius:50%;
  background: var(--amber); border:none;
  box-shadow: 0 10px 28px rgba(236,168,25,0.35);
  display:flex; align-items:center; justify-content:center;
  transition: transform .35s var(--ease);
}
.quick-fab:hover{ transform: scale(1.06); }
.quick-fab-icon{ position:relative; width:22px; height:22px; }
.quick-fab-icon::before, .quick-fab-icon::after{
  content:""; position:absolute; background:#171308; border-radius:2px; transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.quick-fab-icon::before{ top:10px; left:0; width:22px; height:2.5px; }
.quick-fab-icon::after{ top:0; left:10px; width:2.5px; height:22px; }
.quick-fab[aria-expanded="true"] .quick-fab-icon::after{ transform: rotate(90deg); opacity:0; }
.quick-fab[aria-expanded="true"] .quick-fab-icon::before{ transform: rotate(180deg); }

@media (max-width: 500px){
  .quick-item span:last-child{ display:none; }
  .quick-item{ padding:12px; border-radius:50%; }
}

/* ============================================================
   HIDDEN PDF SHEET (rasterized via html2canvas, never shown on screen)
   ============================================================ */
.pdf-sheet{
  position: fixed; top:0; left:-99999px; width: 794px;
  background:#ffffff; color:#161616;
}
.pdf-sheet-inner{ padding: 56px 52px; font-family: 'Manrope', sans-serif; }
.pdf-head{ display:flex; align-items:center; gap:16px; border-bottom: 2px solid #171308; padding-bottom:20px; }
.pdf-logo{ height:44px; width:auto; }
.pdf-head-text{ display:flex; flex-direction:column; line-height:1.3; }
.pdf-head-text strong{ font-size:18px; }
.pdf-head-text span{ font-size:12px; color:#555; }
.pdf-date{ margin-left:auto; font-size:12px; color:#555; font-family: 'JetBrains Mono', monospace; }
.pdf-sheet h2{ font-family:'Big Shoulders Display', sans-serif; font-size:30px; text-transform:uppercase; margin: 28px 0 6px; }
.pdf-client{ font-size:13px; color:#444; margin-bottom:18px; }
.pdf-table{ width:100%; border-collapse:collapse; margin-top:10px; }
.pdf-table td{ padding:12px 0; border-bottom:1px solid #e3e0d8; font-size:13.5px; }
.pdf-table td:last-child{ text-align:right; font-family:'JetBrains Mono', monospace; }
.pdf-total{ display:flex; justify-content:space-between; align-items:baseline; margin-top:20px; padding-top:16px; border-top:2px solid #171308; }
.pdf-total .lbl{ font-size:14px; font-weight:700; text-transform:uppercase; }
.pdf-total .val{ font-family:'Big Shoulders Display', sans-serif; font-size:30px; font-weight:700; color:#b8790a; }
.pdf-disclaimer{ margin-top:18px; font-size:11px; color:#777; line-height:1.6; }
.pdf-footer{ margin-top:40px; padding-top:16px; border-top:1px solid #e3e0d8; font-size:11.5px; color:#777; font-family:'JetBrains Mono', monospace; }
