/* ==========================================================
   A2B2YOU Property Services
   Yellow + black. Blueprint details. Scroll-built 3D house.
   ========================================================== */

:root {
  --ink: #0A0A0B;
  --ink-2: #111113;
  --ink-3: #19191C;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --yellow: #FFD000;
  --yellow-2: #FFE14D;
  --paper: #F3F0E8;
  --muted: #9B988F;
  --muted-2: #6E6C66;

  /* semantic tokens: overridden in the light theme */
  --black: #0A0A0B;            /* always-dark: text/fills that sit on yellow */
  --accent: var(--yellow);     /* yellow used as TEXT: needs a deeper amber on light */
  --soft: #cfccc3;
  --glass: rgba(17, 17, 19, .72);
  --glass-strong: rgba(17, 17, 19, .85);
  --nav-bg: rgba(10, 10, 11, .78);
  --grid: rgba(255, 208, 0, .06);
  --stage-glow: rgba(255, 208, 0, .07);
  --shadow-c: rgba(0, 0, 0, .8);

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

[data-theme="light"] {
  --ink: #FBF9F3;
  --ink-2: #FFFFFF;
  --ink-3: #F1EEE5;
  --line: rgba(10, 10, 11, .10);
  --line-2: rgba(10, 10, 11, .20);
  --paper: #15151A;
  --muted: #5E5B54;
  --muted-2: #7B786F;
  --accent: #8F6A00;
  --soft: #3d3b35;
  --glass: rgba(255, 255, 255, .78);
  --glass-strong: rgba(255, 255, 255, .92);
  --nav-bg: rgba(251, 249, 243, .82);
  --grid: rgba(10, 10, 11, .05);
  --stage-glow: rgba(255, 208, 0, .22);
  --shadow-c: rgba(70, 55, 0, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--black); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.display {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100;
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.display em, .hero-title em, .step-card h2 em { font-style: normal; color: var(--accent); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); margin-bottom: 16px; }
.eyebrow.dark { color: var(--black); }
.tick { width: 22px; height: 2px; background: currentColor; display: inline-block; }

.lede { color: var(--muted); font-size: clamp(15px, 1.15vw, 16.5px); max-width: 50ch; margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--paper); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 700; font-size: 14px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-yellow { --bg: var(--yellow); --fg: var(--black); --bd: var(--yellow); }
.btn-yellow:hover { box-shadow: 0 10px 40px -10px rgba(255, 208, 0, .6); }
.btn-black { --bg: var(--black); --fg: var(--yellow); --bd: var(--black); margin-top: 32px; }
.btn-ghost:hover { --bd: var(--accent); --fg: var(--accent); }
.btn-sm { padding: 9px 17px; font-size: 13px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--paper);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  transition: background .35s, border-color .35s, padding .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
  padding-top: 10px; padding-bottom: 10px;
}
.nav-logo img { width: 128px; height: auto; }
.nav-links { display: flex; gap: 26px; font-size: 13px; font-weight: 600; }
.nav-links a { position: relative; color: var(--soft); transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255, 208, 0, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 208, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 208, 0, 0); } }

.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--paper); transition: transform .3s var(--ease); }
.nav-burger span:first-child { top: 17px; }
.nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 90px var(--gutter) 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 800;
  font-size: 28px; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 24px; }

/* ---------- 3D stage ---------- */
.stage {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 70% 55%, var(--stage-glow), transparent 70%),
    var(--ink);
}
.stage canvas { width: 100%; height: 100%; display: block; }
.stage.off { visibility: hidden; }

main, .footer { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: 120px 0 90px;
}
.blueprint-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 30% 50%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 30% 50%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; }
.hero-title {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 108;
  font-weight: 800;
  font-size: clamp(42px, 7.2vw, 108px);
  line-height: .92;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; }
.hero-sub { max-width: 46ch; color: var(--soft); font-size: clamp(15px, 1.2vw, 17px); margin-top: 24px; }
.hero-sub strong { color: var(--paper); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn-lg { padding: 17px 28px; font-size: 15px; }
.btn-yellow.btn-lg { box-shadow: 0 14px 40px -14px rgba(255, 208, 0, .7); }
.btn-call { --bd: var(--line-2); }
.btn-call svg { width: 17px; height: 17px; fill: var(--accent); flex: none; }
.btn-call:hover { --bd: var(--accent); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 13px; font-weight: 600; color: var(--soft); }
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); font-size: 11px;
}
.scroll-cue i { width: 1.5px; height: 46px; background: linear-gradient(var(--yellow), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--paper); animation: drip 1.8s infinite var(--ease); }
@keyframes drip { to { top: 110%; } }

/* ---------- story ---------- */
.story { position: relative; }
.step {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 80px var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.step-card {
  max-width: 420px; padding: 28px;
  background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r);
  position: relative;
  opacity: .25; transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .6s;
}
.step.active .step-card { opacity: 1; transform: none; border-color: rgba(255, 208, 0, .35); }
.step-card::before {
  content: ""; position: absolute; left: -1px; top: 24px; width: 3px; height: 44px; background: var(--yellow); border-radius: 2px;
}
.step-no { color: var(--accent); margin-bottom: 16px; }
.step-card h2 {
  font-family: var(--f-display); font-variation-settings: "wdth" 100; font-weight: 800;
  font-size: clamp(28px, 3.2vw, 42px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em;
  margin-bottom: 14px;
}
.step-card p:not(.step-no) { color: var(--soft); }
.step-card .btn { margin-top: 28px; }

.story-rail {
  position: fixed; left: var(--gutter); bottom: 32px; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.story-rail.show { opacity: 1; }
.rail-track { width: 140px; height: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.rail-fill { position: absolute; inset: 0; background: var(--yellow); transform-origin: left; transform: scaleX(0); }
.rail-labels { display: flex; gap: 12px; color: var(--muted-2); font-size: 10px; }
.rail-labels li.on { color: var(--accent); }

/* ---------- ticker ---------- */
.ticker {
  position: relative; z-index: 2;
  background: var(--yellow); color: var(--black); overflow: hidden;
  border-block: 2px solid var(--black);
  transform: rotate(-1.5deg) scale(1.03);
  margin: 40px 0;
}
.ticker-track { display: flex; width: max-content; animation: tick 28s linear infinite; padding: 13px 0; }
.ticker span, .ticker b {
  font-family: var(--f-display); font-variation-settings: "wdth" 100; font-weight: 800;
  font-size: clamp(20px, 2.6vw, 34px); text-transform: uppercase; line-height: 1; padding: 0 22px;
}
.ticker b { font-weight: 400; font-size: clamp(14px, 1.8vw, 22px); align-self: center; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections base ---------- */
.services, .spec, .who, .why, .gallery, .process, .faq, .contact { background: var(--ink); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- services ---------- */
.services { padding: clamp(64px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); }
.services .section-head { display: grid; grid-template-columns: 1.7fr 1fr; gap: 0 60px; align-items: end; }
.services .section-head .eyebrow { grid-column: 1 / -1; }
.services .lede { margin: 0 0 8px; }

.svc-list { border-top: 1px solid var(--line-2); counter-reset: svc; }
.svc { border-bottom: 1px solid var(--line-2); position: relative; }
.svc::before {
  content: ""; position: absolute; inset: 0; background: var(--yellow);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: 0;
}
.svc-head {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: 56px 1fr 34px; align-items: center; gap: 14px;
  padding: 18px 8px; text-align: left;
}
.svc-no { color: var(--accent); transition: color .3s; }
.svc-name {
  font-family: var(--f-display); font-variation-settings: "wdth" 100; font-weight: 700;
  font-size: clamp(16px, 1.8vw, 23px); line-height: 1.2; letter-spacing: -.01em; text-transform: uppercase;
  transition: transform .45s var(--ease), color .3s;
}
.svc-plus { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; transition: transform .45s var(--ease), border-color .3s, background .3s; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.svc-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .45s var(--ease); }
.svc.open .svc-plus { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.svc.open .svc-plus::after { transform: translate(-50%, -50%) rotate(0deg); }

.svc-body { position: relative; z-index: 1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.svc-body > div {
  overflow: hidden; min-height: 0; padding-left: 70px; padding-right: 48px;
  display: grid; grid-template-columns: 1fr minmax(220px, 320px); gap: 32px; align-items: start;
}
.svc.open .svc-body { grid-template-rows: 1fr; }
.svc.open .svc-body > div { padding-bottom: 30px; }
.svc-body p { color: var(--soft); max-width: 60ch; }
.svc-img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px;
  transform: scale(.94) rotate(-1.5deg); opacity: 0;
  transition: transform .6s var(--ease) .1s, opacity .5s .1s;
  box-shadow: 0 20px 50px -20px var(--shadow-c);
}
.svc.open .svc-img { transform: none; opacity: 1; }
.svc-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-weight: 700; font-size: 14px; color: var(--accent);
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.svc-cta .arrow { transition: transform .25s var(--ease); }
.svc-cta:hover .arrow { transform: translateX(4px); }

@media (hover: hover) {
  .svc:not(.open):hover::before { transform: scaleY(1); }
  .svc:not(.open):hover .svc-name { color: var(--black); transform: translateX(10px); }
  .svc:not(.open):hover .svc-no { color: var(--black); }
  .svc:not(.open):hover .svc-plus { border-color: var(--black); color: var(--black); transform: rotate(90deg); }
}

/* ---------- HMO & fire safety ---------- */
.spec { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.spec-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.spec .lede { margin-bottom: 0; }
.spec .btn { margin-top: 32px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.spec-grid li { background: var(--ink-2); padding: 22px 20px 24px; transition: background .35s; }
.spec-grid li:hover { background: var(--ink-3); }
.spec-grid .mono { color: var(--accent); display: block; margin-bottom: 18px; }
.spec-grid h3 { font-family: var(--f-display); font-variation-settings: "wdth" 100; font-size: 16px; text-transform: uppercase; line-height: 1.1; margin-bottom: 8px; }
.spec-grid p { color: var(--muted); font-size: 14px; }

/* ---------- compliance ---------- */
.compliance {
  position: relative; z-index: 1;
  background: var(--yellow); color: var(--black);
  padding: clamp(60px, 8vw, 104px) 0;
  overflow: hidden;
}
.compliance::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
          mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.compliance-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.compliance .lede { color: #3a3729; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cert-grid li {
  background: var(--black); color: #F3F0E8; border-radius: 12px;
  padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 16px;
  font-family: var(--f-display); font-variation-settings: "wdth" 100; font-weight: 700; font-size: 15px; line-height: 1.2; text-transform: uppercase;
  transition: transform .35s var(--ease);
}
.cert-grid li span { color: var(--yellow); font-weight: 500; }
.cert-grid li:hover { transform: translateY(-4px) rotate(-.6deg); }

/* ---------- who ---------- */
.who { padding: clamp(64px, 8vw, 112px) 0; }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.who-card { background: var(--ink-2); padding: 26px 22px 28px; transition: background .35s; }
.who-card:hover { background: var(--ink-3); }
.who-card svg { width: 38px; height: 38px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 28px; }
.who-card h3 { font-family: var(--f-display); font-variation-settings: "wdth" 100; font-size: 17px; text-transform: uppercase; line-height: 1.1; margin-bottom: 12px; }
.who-card p { color: var(--muted); font-size: 14px; }

/* ---------- why ---------- */
.why { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.why-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.why-photos { position: relative; padding: 0 8% 18% 0; }
.why-photos figure { margin: 0; border-radius: 18px; overflow: hidden; }
.why-photos img { width: 100%; height: 100%; object-fit: cover; }
.why-main { aspect-ratio: 4 / 5; }
.why-small {
  position: absolute; right: 0; bottom: 0; width: 56%; aspect-ratio: 3 / 2;
  border: 6px solid var(--ink); box-shadow: 0 30px 60px -20px var(--shadow-c);
}
.why-sticker {
  position: absolute; left: -10px; top: 28px; background: var(--yellow); color: var(--black);
  padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 10px; transform: rotate(-4deg);
}

/* ---------- gallery ---------- */
.gallery { padding: clamp(60px, 7vw, 100px) 0 clamp(52px, 6vw, 84px); overflow: hidden; }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.gallery-strip {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gallery-track { display: flex; gap: 18px; width: max-content; animation: tick 60s linear infinite; }
.gallery-strip:hover .gallery-track { animation-play-state: paused; }
.gallery figure {
  position: relative; margin: 0; width: clamp(260px, 30vw, 420px); aspect-ratio: 4 / 5;
  border-radius: 16px; overflow: hidden; flex: none;
}
.gallery figure:nth-child(even) { aspect-ratio: 1 / 1; align-self: center; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 14px; bottom: 14px; background: var(--yellow); color: var(--black);
  padding: 7px 12px; border-radius: 999px; font-weight: 500; font-size: 11px;
}

/* ---------- quick-quote drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%);
  background: var(--ink-2); border-left: 1px solid var(--line-2);
  padding: 30px clamp(20px, 3vw, 38px) 34px; overflow-y: auto;
  transform: translateX(100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column; gap: 18px;
}
.drawer-panel::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--yellow); }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer .eyebrow { margin: 10px 0 0; }
.drawer-title {
  font-family: var(--f-display); font-variation-settings: "wdth" 100; font-weight: 800;
  font-size: clamp(30px, 3.4vw, 40px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em;
}
.drawer-title em { font-style: normal; color: var(--accent); }
.drawer-sub { color: var(--muted); }
.drawer-fast { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer .quote { background: none; border: 0; padding: 0; }
.drawer-close {
  position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); transition: border-color .2s, transform .3s var(--ease);
}
.drawer-close:hover { border-color: var(--yellow); transform: rotate(90deg); }
.drawer-close span { position: absolute; left: 13px; right: 13px; top: 21px; height: 2px; background: var(--paper); transform: rotate(45deg); }
.drawer-close span + span { transform: rotate(-45deg); }

/* ---------- mobile quick-contact bar ---------- */
.action-bar { display: none; }

.why-list { display: grid; gap: 10px; }
.why-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--glass-strong);
  transition: border-color .3s, transform .35s var(--ease);
}
.why-list li:hover { border-color: rgba(255, 208, 0, .45); transform: translateX(6px); }
.why-k {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  background: var(--yellow); color: var(--black); font-size: 18px; font-weight: 500; letter-spacing: 0;
}
.why-list h3 { font-size: 16px; margin-bottom: 3px; }
.why-list p { color: var(--muted); font-size: 14px; }

/* ---------- process ---------- */
.process { padding: clamp(60px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; padding-top: 34px; }
.route::before {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 14px, transparent 14px 24px);
  transform-origin: left; transform: scaleX(var(--route, 0));
}
.route::after {
  content: ""; position: absolute; right: -4px; top: 1px; width: 0; height: 0;
  border-left: 14px solid var(--yellow); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  opacity: var(--route-end, 0);
}
.route li { position: relative; }
.route-dot { position: absolute; top: -34px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--yellow); }
.route .mono { color: var(--accent); margin-bottom: 12px; }
.route h3 { font-family: var(--f-display); font-variation-settings: "wdth" 100; font-size: 18px; text-transform: uppercase; line-height: 1.05; margin-bottom: 10px; }
.route p:not(.mono) { color: var(--muted); font-size: 14px; }

/* ---------- faq ---------- */
.faq { padding: clamp(60px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list details:first-child { border-top: 1px solid var(--line-2); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative;
  font-weight: 700; font-size: clamp(15px, 1.2vw, 17px);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mono); font-size: 24px; color: var(--accent); transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--muted); font-size: 14.5px; padding: 0 44px 20px 0; max-width: 62ch; }

/* ---------- contact ---------- */
.contact { padding: clamp(60px, 7vw, 96px) 0; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.contact::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(255, 208, 0, .12), transparent 60%); pointer-events: none;
}
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; position: relative; }
.contact-lines { margin-top: 28px; display: grid; gap: 2px; }
.contact-lines li { display: grid; grid-template-columns: 100px 1fr; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.contact-lines .mono { color: var(--muted-2); }
.contact-lines a { font-weight: 700; font-size: clamp(15px, 1.25vw, 17px); word-break: break-word; transition: color .2s; }
.contact-lines a:hover { color: var(--accent); }

.quote {
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 20px;
  padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 14px; align-self: start;
}
.quote label, .quote legend { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--soft); }
.quote fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quote legend { margin-bottom: 8px; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote input:not([type="radio"]), .quote select, .quote textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--paper);
  background: var(--ink); border: 1px solid var(--line-2); border-radius: 9px; padding: 11px 13px;
  transition: border-color .2s, box-shadow .2s;
}
.quote select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--yellow) 50%), linear-gradient(135deg, var(--yellow) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.quote textarea { resize: vertical; min-height: 110px; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 208, 0, .18); }
.quote .invalid { border-color: #ff6b5a !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-weight: 600; font-size: 13px; color: var(--paper); cursor: pointer; transition: all .2s;
}
.chips input:checked + label { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.chips input:focus-visible + label { outline: 2px solid var(--yellow); outline-offset: 2px; }
.form-error { color: #ff8a7a; font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- footer ---------- */
.footer {
  --paper: #F3F0E8; --muted: #9B988F; --muted-2: #6E6C66; --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  color: var(--paper);
  background: #050506; border-top: 1px solid var(--line); padding: 70px 0 28px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.footer-inner img { width: 170px; }
.footer-tag { color: var(--muted); font-size: 14px; }
.footer-links { display: grid; gap: 6px; text-align: right; font-weight: 600; font-size: 14px; }
.footer-links a:hover { color: var(--yellow); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 11px; }
.footer-base a:hover { color: var(--yellow); }

/* ---------- whatsapp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; background: var(--yellow); color: var(--black);
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6);
  transition: transform .3s var(--ease), opacity .3s;
  opacity: 0; pointer-events: none; transform: scale(.6);
}
.wa-float.show { opacity: 1; pointer-events: auto; transform: none; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float.show:hover { transform: scale(1.08) rotate(-6deg); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .who-grid { grid-template-columns: 1fr 1fr; }
  .compliance-inner, .spec-inner, .why-inner, .faq-inner, .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .why-photos { max-width: 620px; }
  .services .section-head { grid-template-columns: 1fr; }
  .services .lede { margin-top: 22px; }
}

@media (max-width: 820px) {
  body { font-size: 15px; }
  .nav-phone { display: none; }
  .nav-cta .btn { display: none; }
  .nav-burger { display: block; }
  .nav-logo img { width: 112px; }

  .hero { align-items: flex-end; padding-bottom: 110px; }
  .hero-inner { padding-top: 32vh; }
  .blueprint-grid { -webkit-mask-image: radial-gradient(90% 60% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(90% 60% at 50% 30%, #000 20%, transparent 75%); }
  .hero-actions .btn-yellow { flex: 1 1 100%; }
  .hero-actions .btn-call, .hero-actions .btn-ghost { flex: 1 1 auto; padding: 15px 14px; }
  .hero .eyebrow { display: none; }
  .hero-trust { font-size: 12px; gap: 6px 16px; margin-top: 20px; }
  .scroll-cue { display: none; }

  .step { align-items: flex-end; padding-bottom: 12vh; }
  .step-card { padding: 26px 22px; background: var(--glass-strong); }
  .story-rail { display: none; }

  .svc-head { grid-template-columns: 40px 1fr 36px; padding: 22px 0; gap: 12px; }
  .svc-plus { width: 36px; height: 36px; }
  .svc-body > div { padding-left: 52px; padding-right: 0; grid-template-columns: 1fr; gap: 20px; }
  .svc-img { order: -1; }

  .who-grid, .cert-grid, .spec-grid { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; gap: 36px; padding-top: 0; padding-left: 40px; }
  .route::before { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--yellow) 0 14px, transparent 14px 24px); transform: scaleY(var(--route, 0)); transform-origin: top; }
  .route::after { display: none; }
  .route-dot { top: 4px; left: -40px; }

  .field-row { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 100%; }
  .contact-lines li { grid-template-columns: 1fr; gap: 2px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { text-align: left; }
  .wa-float { display: none; }
  .action-bar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 6px; padding: 6px;
    background: var(--glass-strong); border: 1px solid var(--line-2); border-radius: 18px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transform: translateY(130%); transition: transform .4s var(--ease);
  }
  .action-bar.show { transform: none; }
  .action-bar a, .action-bar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 52px; border-radius: 13px; font-size: 12px; font-weight: 700;
  }
  .action-bar svg { width: 20px; height: 20px; fill: var(--yellow); }
  .action-bar .action-quote { flex-direction: row; gap: 8px; background: var(--yellow); color: var(--black); font-size: 15px; }
  .footer { padding-bottom: 100px; }
  .why-sticker { left: 8px; top: 14px; }
  .gallery figure { width: 72vw; }
  .why-list li { grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; }
  .why-k { width: 44px; height: 44px; font-size: 18px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .step-card { opacity: 1; transform: none; }
}

/* ---------- theme toggle + logo swap ---------- */
.logo-on-light { display: none; }
[data-theme="light"] .logo-on-dark { display: none; }
[data-theme="light"] .logo-on-light { display: block; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--paper);
  transition: border-color .2s, transform .35s var(--ease), background .2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(18deg); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.theme-toggle .ico-moon { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-moon { display: block; }

/* light theme: yellow headline words become a highlighter swipe so they stay readable */
[data-theme="light"] .display em,
[data-theme="light"] .hero-title em,
[data-theme="light"] .step-card h2 em,
[data-theme="light"] .drawer-title em {
  color: var(--black);
  background: linear-gradient(transparent 56%, var(--yellow) 56%, var(--yellow) 94%, transparent 94%);
  padding: 0 .07em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
[data-theme="light"] .nav:not(.scrolled) .nav-phone { color: var(--paper); }
[data-theme="light"] .svc-img { border: 1px solid var(--line); }
[data-theme="light"] .who-grid { box-shadow: 0 24px 60px -34px var(--shadow-c); }
[data-theme="light"] .why-list li { box-shadow: 0 14px 34px -26px var(--shadow-c); }
[data-theme="light"] .step-card { box-shadow: 0 24px 60px -30px var(--shadow-c); }
[data-theme="light"] .quote { box-shadow: 0 30px 70px -40px var(--shadow-c); }
[data-theme="light"] .drawer-scrim { background: rgba(20, 18, 8, .4); }
