/* นักล่าหลังคารั่ว — built from docs/designV2/Hunter Roof B v2.dc.html
   Faces live in fonts.css so the admin screens can share them. */

:root {
  --bg: #0b0a0a;
  --surface: #141111;
  --surface-2: #171414;
  --surface-3: #1e1919;
  --ink: #efebe8;
  --muted: #b8b0ac;
  --muted-2: #9a918d;
  --dim: #6e6663;
  --faint: #8a807c;
  --red: #e3261b;
  --red-lit: #ff6b5f;
  /* The contact field alone, a shade deeper than the accent by the owner's request. */
  --red-field: #d4372e;
  --paper: #efebe8;
  --paper-ink: #0b0a0a;
  --paper-line: #cfc8c3;
  --hair: rgba(255, 255, 255, 0.12);
  --hair-soft: rgba(255, 255, 255, 0.08);
  --hair-firm: rgba(255, 255, 255, 0.2);
  --hair-loud: rgba(255, 255, 255, 0.4);
  --display: 'Kanit', system-ui, sans-serif;
  --body: 'Sarabun', system-ui, sans-serif;
  --shell: 1400px;
  --gutter: clamp(20px, 4.5vw, 32px);
  --section-y: clamp(84px, 10vw, 140px);
  --header-h: 78px;
}

* { box-sizing: border-box; }

/* Any class that sets `display` outranks the browser's own rule for [hidden],
   so state it once with enough weight to win. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-lit); }
img { display: block; max-width: 100%; height: auto; }
input, select, textarea, button { font: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.01em; text-wrap: balance; }
strong { font-weight: 600; color: var(--ink); }

/* The browser chrome we did not draw still has to belong to the page. */
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-lit); outline-offset: 3px; }
:root { scrollbar-color: #39302e var(--bg); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #39302e; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

.skip-link {
  position: fixed; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: 14px 20px;
  font-family: var(--display); font-weight: 500;
}
.skip-link:focus { left: 0; color: #fff; }

@keyframes scan { 0% { top: -2%; } 100% { top: 102%; } }
@keyframes rise { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.35); opacity: 0.35; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Shared -------------------------------------------------------------------- */

.shell { max-width: var(--shell); width: 100%; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.kicker { font-size: 14px; font-weight: 500; letter-spacing: 0.06em; color: var(--red-lit); }
.section-title { font-weight: 700; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.3; }
.section-lede { font-size: 17.5px; line-height: 1.85; color: var(--muted); text-wrap: pretty; }
.note { font-size: 13.5px; color: var(--faint); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.4;
  padding: 17px 30px; border: 0; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--ink); color: var(--bg); }
.btn-veil { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); color: var(--ink); }
.btn-veil:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.btn-ink { background: var(--bg); color: #fff; }
.btn-ink:hover { background: #fff; color: var(--bg); }
.btn-paper { background: #fff; color: var(--bg); }
.btn-paper:hover { background: var(--bg); color: #fff; }

.diamond { width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); flex-shrink: 0; }
.diamond-hollow { background: none; border: 2px solid var(--red); }

/* Reveal on scroll. The default is visible, so a failed script or a disabled
   one never leaves the page blank. */
.reveal-armed { opacity: 0; transform: translateY(50px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal-armed.is-in { opacity: 1; transform: none; }

/* Header -------------------------------------------------------------------- */

/* Scaled rather than resized: this one is written on every scroll frame. */
.scroll-progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 100;
  background: var(--red); box-shadow: 0 0 12px var(--red);
  transform: scaleX(0); transform-origin: 0 50%;
}

.site-header { position: fixed; left: 0; right: 0; top: 0; z-index: 90; }
.header-bg {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
  background: rgba(11, 10, 10, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair-soft);
}
.site-header.is-stuck .header-bg { opacity: 1; }
.header-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 17px; padding-bottom: 17px;
}
.brand {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2.4vw, 22px);
}
.brand:hover { color: var(--ink); }
/* The owner's round badge. Its own red ring frames it, so no border is added. */
.brand-logo { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; transition: transform 0.25s; }
.brand:hover .brand-logo { transform: rotate(-6deg); }
.desktop-nav { display: flex; gap: clamp(16px, 2.2vw, 30px); font-size: 15px; font-weight: 500; white-space: nowrap; }
.desktop-nav a[aria-current] { color: var(--red-lit); }
/* Only the menu button lives here now, and it is hidden on desktop; without
   this the empty box keeps a share of the row and the nav sits off-centre. */
.header-actions { display: none; gap: 10px; flex-shrink: 0; }

.menu-toggle {
  display: none; width: 46px; height: 46px; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--hair-loud);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: relative; background: rgba(11, 10, 10, 0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  padding: 8px var(--gutter) 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-nav a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--hair-soft);
  font-family: var(--display); font-weight: 500; font-size: 19px;
}
.mobile-nav-cta { margin-top: 20px; background: var(--red); color: #fff; text-align: center; border: 0 !important; }
.mobile-nav-cta:hover { background: #fff; color: var(--bg); }

/* Hero ---------------------------------------------------------------------- */

.hero {
  position: relative; height: 100vh; min-height: 620px;
  display: flex; flex-direction: column; overflow: hidden;
}
.hero-photo {
  position: absolute; left: 0; top: -20%; width: 100%; height: 140%;
  object-fit: cover; filter: grayscale(0.4) contrast(1.08); will-change: transform;
}
.hero-scan {
  position: absolute; left: 0; right: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red-lit) 50%, var(--red) 70%, transparent);
  box-shadow: 0 0 24px 4px rgba(227, 38, 27, 0.55);
  animation: scan 5.5s linear infinite;
}
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 10, 10, 0.7) 0%, rgba(11, 10, 10, 0.15) 40%, rgba(11, 10, 10, 0.94) 100%);
}
.hero-reticle {
  position: absolute; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  transform: translate3d(64vw, 40vh, 0); transition: transform 0.18s ease-out;
  pointer-events: none; z-index: 2;
}
.hero-reticle span { position: absolute; }
.hero-reticle .ring-out { inset: 0; border: 1.5px solid rgba(255, 255, 255, 0.85); border-radius: 50%; }
.hero-reticle .ring-in { inset: 34px; border: 2px solid var(--red); border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
.hero-reticle .cross-v { left: 50%; top: -14px; bottom: -14px; width: 1px; background: rgba(255, 255, 255, 0.7); }
.hero-reticle .cross-h { top: 50%; left: -14px; right: -14px; height: 1px; background: rgba(255, 255, 255, 0.7); }
.hero-reticle .tag {
  left: 132px; top: 34px; white-space: nowrap; display: flex; gap: 8px; align-items: center;
  font-family: var(--display); font-size: 13px; font-weight: 500;
  background: var(--red); color: #fff; padding: 4px 10px;
}
.hero-reticle .tag i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }

.hero-copy {
  position: relative; z-index: 3; flex: 1; width: 100%; max-width: var(--shell); margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 6vw, 64px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 22px;
  pointer-events: none;
}
.hero-kicker { font-size: clamp(13px, 1.6vw, 15px); font-weight: 500; letter-spacing: 0.06em; color: var(--red-lit); animation: rise 0.9s 0.1s both; }
.hero-title {
  display: flex; flex-direction: column;
  font-weight: 800; font-size: clamp(44px, 7vw, 104px); line-height: 1.22; letter-spacing: -0.01em;
}
.hero-title span:first-child { animation: rise 1s 0.2s both; }
.hero-title .accent { color: var(--red); animation: rise 1s 0.35s both; }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 26px;
  animation: rise 1s 0.55s both; pointer-events: auto;
}
.hero-lede { font-family: var(--display); font-weight: 300; font-size: clamp(20px, 2.4vw, 32px); line-height: 1.45; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Lede ---------------------------------------------------------------------- */

.lede { padding-top: clamp(96px, 12vw, 170px); padding-bottom: clamp(72px, 8vw, 120px); overflow: hidden; }
.lede-inner { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); }
.lede h2 {
  display: flex; flex-direction: column;
  font-weight: 700; font-size: clamp(32px, 5vw, 76px); line-height: 1.3; letter-spacing: -0.01em;
}
.lede h2 .fade { color: var(--dim); }
.lede-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 3vw, 40px); border-top: 1px solid var(--hair); padding-top: 40px;
}
.lede-cols p { font-size: 18px; line-height: 1.9; color: var(--muted); text-wrap: pretty; }

/* Problem ticker ------------------------------------------------------------ */

.ticker {
  border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(36px, 5vw, 56px) 0; overflow: hidden; display: flex; flex-direction: column; gap: 18px;
}
.ticker-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ticker-link { font-family: var(--display); font-weight: 500; font-size: 15px; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.ticker-row {
  display: flex; gap: 28px; white-space: nowrap; will-change: transform;
  font-family: var(--display); font-size: clamp(26px, 4.4vw, 64px); line-height: 1.4;
}
.ticker-row span { display: flex; align-items: center; gap: 28px; }
.ticker-a { font-weight: 700; margin-left: -20vw; }
.ticker-b { font-weight: 300; color: var(--dim); margin-left: -120vw; }

/* Work ---------------------------------------------------------------------- */

.work { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.work-head-copy { display: flex; flex-direction: column; gap: 14px; }
.work-head p { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 380px; }

.case-view { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 6px; }
.compare {
  grid-column: span 2; position: relative; aspect-ratio: 16 / 10; min-width: 0;
  overflow: hidden; background: #1a1717; user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px;
  background: #fff; pointer-events: none; box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
}
.compare-grip {
  position: absolute; top: 50%; left: var(--pos, 50%); width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: var(--red); border: 3px solid #fff;
  display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 700; pointer-events: none;
}
.compare-tag {
  position: absolute; top: 16px; font-family: var(--display); font-size: 14px; padding: 6px 12px; z-index: 1;
}
.compare-tag-before { left: 16px; background: rgba(11, 10, 10, 0.85); }
.compare-tag-after { right: 16px; background: var(--red); color: #fff; }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 56px; border-radius: 50%; background: transparent; cursor: ew-resize; }
.compare-range::-moz-range-thumb { width: 56px; height: 56px; border: 0; border-radius: 50%; background: transparent; cursor: ew-resize; }
.compare-range:focus-visible { outline-offset: -4px; }

.case-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.case-during { position: relative; flex: 1; min-height: 240px; overflow: hidden; background: #1a1717; }
.case-during img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-during .compare-tag { left: 12px; top: 12px; background: rgba(11, 10, 10, 0.85); }
.case-facts { background: var(--surface-2); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.case-facts .case-id { font-family: var(--display); font-size: 14px; color: var(--red-lit); }
.case-facts h3 { font-weight: 500; font-size: 22px; line-height: 1.45; }
.case-facts dl { margin: 0; display: flex; flex-direction: column; font-size: 14.5px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.case-facts div { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: var(--muted-2); }
.case-facts div:last-child { border-bottom: 0; }
.case-facts dt { margin: 0; }
.case-facts dt::after { content: ' ·'; }
.case-facts dd { margin: 0; }

/* The picker above the viewer. Thumbnails are kept small so the picker and
   the viewer fit one screen together; five sit across a desktop and any more
   scroll sideways with snap points, and the counter and arrows say so. */
.case-picker { display: flex; flex-direction: column; gap: 12px; margin-bottom: calc(6px - clamp(28px, 3vw, 40px)); }
.case-picker-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.case-count { font-family: var(--display); font-size: 15px; color: var(--muted-2); }
.case-count b { font-weight: 500; color: var(--ink); }
.case-nav { display: flex; gap: 6px; }
.case-step {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--hair-firm);
  font-size: 18px; transition: background 0.25s, border-color 0.25s;
}
.case-step:hover { background: var(--red); border-color: var(--red); }
.case-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(calc((100% - 24px) / 5), 1fr); gap: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--hair-firm) transparent; padding-bottom: 10px;
}
.case-thumb {
  all: unset; cursor: pointer; position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; background: #1a1717; scroll-snap-align: start;
}
.case-thumb::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--hair); pointer-events: none; }
.case-thumb:focus-visible { outline: 2px solid var(--red-lit); outline-offset: -2px; }
.case-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.case-thumb:hover img { transform: scale(1.05); }
.case-thumb .scrim { position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.88)); transition: background 0.25s; }
.case-thumb .label { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.case-thumb .label em { font-family: var(--display); font-style: normal; font-size: 12.5px; color: var(--red-lit); }
.case-thumb .label b {
  font-family: var(--display); font-weight: 500; font-size: 15px; line-height: 1.4; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.case-thumb[aria-selected='true']::after { box-shadow: inset 0 0 0 3px var(--red); }
.case-thumb[aria-selected='true'] .scrim { background: linear-gradient(transparent 30%, rgba(227, 38, 27, 0.88)); }
.case-thumb[aria-selected='true'] .label em { color: #fff; }

/* Clips ---------------------------------------------------------------------
   A thumbnail stands in for the player until someone asks for it: YouTube's
   iframe is heavy and sets cookies, and most visitors scroll past. The click
   swaps in a youtube-nocookie embed. */

.clips { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); }
/* auto-fill, not auto-fit: a lone clip keeps the width of one column instead of
   stretching across the page, where YouTube's 480px thumbnail would blur. Each
   clip carries its own border, since empty columns must not show as boxes. */
.clip-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 6px;
}
.clip { margin: 0; background: var(--surface-2); border: 1px solid var(--hair); display: flex; flex-direction: column; }
.clip-play {
  all: unset; position: relative; display: block; cursor: pointer;
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2);
}
.clip-play:focus-visible { outline: 2px solid var(--red-lit); outline-offset: -4px; }
.clip-play img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.clip-play:hover img { transform: scale(1.04); }
.clip-scrim { position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.6)); }
.clip-mark {
  position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px;
  display: grid; place-items: center; background: var(--red); color: #fff;
  transition: background 0.25s, transform 0.25s;
}
.clip-play:hover .clip-mark { background: #fff; color: var(--bg); transform: scale(1.06); }
.clip iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.clip figcaption { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.clip-tag { font-family: var(--display); font-size: 13px; color: var(--red-lit); }
.clip figcaption strong { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.45; }

/* Trust --------------------------------------------------------------------- */

.trust { position: relative; overflow: hidden; background: var(--surface); border-top: 1px solid var(--hair-soft); }
.trust-photo {
  position: absolute; left: 0; top: -20%; width: 100%; height: 140%;
  object-fit: cover; opacity: 0.14; filter: grayscale(1); will-change: transform;
}
.trust-inner { position: relative; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.trust-head { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.pillar-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px; background: var(--hair); border: 1px solid var(--hair);
}
.pillar { background: rgba(20, 17, 17, 0.92); padding: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 16px; transition: background 0.25s; }
.pillar:hover { background: var(--surface-3); }
.pillar b { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--red); }
.pillar h3 { font-weight: 500; font-size: clamp(24px, 2.4vw, 28px); line-height: 1.35; }
.pillar p { font-size: 16.5px; line-height: 1.8; color: var(--muted); }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.metric { display: flex; flex-direction: column; gap: 6px; border-left: 2px solid var(--red); padding-left: 20px; }
.metric b { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 5vw, 72px); line-height: 1.15; font-variant-numeric: tabular-nums; }
/* Direct child only: the counter lives in a span inside the <b>. */
.metric > span { font-size: 16px; color: var(--muted); }
.metric-name { justify-content: flex-end; gap: 10px; }
.metric-name b { font-weight: 500; font-size: clamp(20px, 2vw, 22px); line-height: 1.4; }

/* Services ------------------------------------------------------------------ */

.services { background: var(--paper); color: var(--paper-ink); }
.services-inner { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); }
.services h2 { font-weight: 700; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.3; max-width: 900px; }
.service-list { display: flex; flex-direction: column; border-top: 2px solid var(--paper-ink); }
.service-row {
  display: grid; grid-template-columns: clamp(48px, 8vw, 120px) minmax(0, 1fr) auto;
  gap: clamp(14px, 2vw, 24px); align-items: center;
  padding: clamp(22px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--paper-line);
  color: var(--paper-ink); transition: padding 0.35s, background 0.35s, color 0.35s;
}
.service-row:hover, .service-row:focus-visible {
  background: var(--paper-ink); color: var(--paper);
  padding-left: clamp(14px, 2vw, 28px); padding-right: clamp(14px, 2vw, 28px);
}
.service-row b { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 44px); line-height: 1; color: var(--red); }
.service-copy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 6px clamp(20px, 3vw, 40px); align-items: baseline; }
.service-copy strong { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.4; color: inherit; }
.service-copy span { font-size: 16px; line-height: 1.8; opacity: 0.78; }
.service-go { font-family: var(--display); font-weight: 500; font-size: 15px; white-space: nowrap; color: var(--red); }

/* Process ------------------------------------------------------------------- */

.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 4vw, 56px); }
.process-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: flex; flex-direction: column; gap: 24px; }
.process-aside h2 { font-weight: 700; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.35; }
.process-count { display: flex; align-items: flex-end; gap: 18px; }
.process-count b { font-family: var(--display); font-weight: 800; font-size: clamp(80px, 12vw, 180px); line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.process-count span { font-family: var(--display); font-size: 22px; color: var(--dim); padding-bottom: 18px; }
.process-bar { height: 3px; background: var(--hair); position: relative; }
.process-bar i { position: absolute; inset: 0; background: var(--red); transform: scaleX(0.143); transform-origin: 0 50%; transition: transform 0.4s; }

.step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step {
  padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 10px; opacity: 0.28; transition: opacity 0.4s;
}
.step.is-current { opacity: 1; }
.step em { font-family: var(--display); font-style: normal; font-size: 15px; color: var(--red-lit); }
.step strong { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.35; }
.step span { font-size: 17px; line-height: 1.8; color: var(--muted); }

/* FAQ + service area -------------------------------------------------------- */

.faq-section { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 4vw, 56px); }
.faq-aside { display: flex; flex-direction: column; gap: 32px; }
.province-block { display: flex; flex-direction: column; gap: 14px; }
.province-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.province-chips a {
  border: 1px solid var(--hair-firm); padding: 8px 14px; font-size: 15px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.province-chips a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.province-more { font-size: 15px; font-weight: 500; color: var(--red-lit); }

.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.faq-question {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px; padding: 26px 0;
  font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.45;
  color: var(--ink);
}
.faq-question:focus-visible { outline: 2px solid var(--red-lit); outline-offset: 2px; }
.faq-icon {
  flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 20px; line-height: 1;
  transition: background 0.25s;
}
.faq-question[aria-expanded='true'] .faq-icon { background: var(--red); }
.faq-answer { padding: 0 54px 28px 0; font-size: 17px; line-height: 1.85; color: var(--muted); }

/* Contact + footer ---------------------------------------------------------- */

.contact { position: relative; overflow: hidden; background: var(--red-field); color: #fff; }
.contact-mark {
  position: absolute; top: 24px; left: -4%; white-space: nowrap; pointer-events: none;
  font-family: var(--display); font-weight: 800; font-size: clamp(90px, 16vw, 260px); line-height: 1.2;
  color: rgba(0, 0, 0, 0.1); will-change: transform;
}
.contact-inner {
  position: relative; display: flex; flex-direction: column; gap: clamp(28px, 3.5vw, 44px);
  padding-top: clamp(84px, 10vw, 150px); padding-bottom: 48px;
}
.contact h2 { font-weight: 800; font-size: clamp(32px, 5vw, 76px); line-height: 1.28; }
.contact-lede { font-size: 18px; line-height: 1.85; max-width: 720px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* Six channels: 360px lands on 3 / 2 / 1 per row, so the last row is never
   ragged and the email address never has to wrap. */
/* LINE green is the one colour on the page that is not ours; it is the badge
   people look for, so it keeps its own. */
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: var(--bg); color: #fff; }
.line-mark {
  font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: 0.04em;
  background: #fff; color: #06c755; padding: 3px 7px; line-height: 1;
}
.btn-line:hover .line-mark { background: #06c755; color: #fff; }

.contact-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-col { display: flex; flex-direction: column; gap: clamp(20px, 2.5vw, 32px); }

/* The form sits on the red field, so its controls are drawn in the field's own
   ink rather than dropped in as a white card. */
.enquiry { display: flex; flex-direction: column; gap: 16px; background: rgba(0, 0, 0, 0.18); padding: clamp(22px, 3vw, 32px); }
.enquiry h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; }
.enquiry-note { font-size: 15px; line-height: 1.7; opacity: 0.9; margin-top: -6px; }
.enquiry-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; }
.enquiry-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.enquiry-field > span { display: flex; gap: 6px; align-items: baseline; }
.enquiry-field small { font-weight: 400; opacity: 0.8; }
.enquiry-field input[type='text'], .enquiry-field input[type='tel'], .enquiry-field textarea {
  width: 100%; border: 1px solid var(--hair-loud); background: rgba(0, 0, 0, 0.22);
  color: #fff; font-family: var(--body); font-size: 16px; padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
}
.enquiry-field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.enquiry-field input::placeholder, .enquiry-field textarea::placeholder { color: rgba(255, 255, 255, 0.62); }
.enquiry-field input:focus, .enquiry-field textarea:focus { outline: none; border-color: #fff; background: rgba(0, 0, 0, 0.34); }
.enquiry-field input[aria-invalid='true'], .enquiry-field textarea[aria-invalid='true'] { border-color: var(--bg); background: rgba(0, 0, 0, 0.4); }
.enquiry-error { font-size: 14px; font-weight: 500; color: #fff; border-left: 2px solid var(--bg); padding-left: 10px; line-height: 1.6; }

.enquiry-file { position: relative; display: block; cursor: pointer; }
.enquiry-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.enquiry-file > span {
  display: block; border: 1px dashed var(--hair-loud); padding: 14px; text-align: center;
  font-size: 15px; transition: border-color 0.2s, background 0.2s;
}
.enquiry-file:hover > span, .enquiry-file input:focus-visible + span { border-color: #fff; background: rgba(0, 0, 0, 0.2); }
.enquiry-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.enquiry-previews img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--hair-loud); }

/* Off-screen rather than display:none, because some bots skip hidden fields. */
.enquiry-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.enquiry-submit { justify-content: center; }
.enquiry-submit[disabled] { opacity: 0.6; cursor: progress; }
.enquiry-result { font-size: 15px; line-height: 1.7; border-left: 2px solid #fff; padding-left: 14px; }
.enquiry-result[data-state='error'] { border-left-color: var(--bg); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); border-top: 1px solid var(--hair-loud); }
.channel {
  padding: 22px 20px 22px 0; border-bottom: 1px solid var(--hair-loud);
  display: flex; flex-direction: column; gap: 4px;
}
/* The e-mail channel is a copy button, drawn exactly like the links beside it. */
button.channel { background: none; border-width: 0 0 1px; border-style: solid; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.channel em { font-style: normal; }
.channel:hover { color: var(--bg); }
.channel span { font-size: 14px; opacity: 0.85; }
.channel b { font-family: var(--display); font-weight: 500; font-size: 22px; overflow-wrap: anywhere; }
.contact-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; padding-top: 24px; }
.contact-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.contact-foot a:hover { color: var(--bg); }

/* Inner pages --------------------------------------------------------------- */

.page-head { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(36px, 5vw, 64px); }
.page-head-inner { display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.page-head h1 { font-weight: 800; font-size: clamp(32px, 5vw, 68px); line-height: 1.28; }
.page-head p { font-size: 18px; line-height: 1.85; color: var(--muted); text-wrap: pretty; }
.page-head p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red-lit); text-underline-offset: 4px; }

.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--dim); }
.crumbs a:hover { color: var(--red-lit); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.card {
  background: var(--bg); padding: 0 0 28px; display: flex; flex-direction: column; gap: 14px;
  transition: background 0.3s;
}
.card:hover { background: var(--surface-2); }
.card:hover .card-cover img { transform: scale(1.05); }
.card-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 0 24px; }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--display); font-size: 13px; color: var(--red-lit); }
.card-meta span:not(:first-child) { color: var(--dim); }
.card h2, .card h3 { font-weight: 500; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; }
.card p { font-size: 16px; line-height: 1.8; color: var(--muted); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
.article-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 74ch; font-size: 18px; line-height: 1.95; color: var(--muted); }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.4; color: var(--ink); margin-top: 1.8em; }
.article-body h3 { font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--ink); margin-top: 1.5em; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--red-lit); border-bottom: 1px solid currentColor; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: 0.5em; }
.article-body blockquote { border-left: 2px solid var(--red); padding-left: 24px; color: var(--ink); font-style: normal; }
.article-body img { margin: 2em 0; width: 100%; }
.article-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 2em 0; }

.related { display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--hair); padding-top: clamp(32px, 4vw, 48px); }

.area-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.area-card { background: var(--bg); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; transition: background 0.25s; }
.area-card:hover { background: var(--surface-2); }
.area-card em { font-family: var(--display); font-style: normal; font-size: 13px; color: var(--red-lit); }
.area-card h2, .area-card h3 { font-weight: 500; font-size: 24px; line-height: 1.4; }
.area-card p { font-size: 16px; line-height: 1.8; color: var(--muted); }
.district-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.district-chips li { list-style: none; border: 1px solid var(--hair); padding: 7px 13px; font-size: 15px; color: var(--muted); }
.district-list { margin: 0; padding: 0; }

.prose-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.prose-cols p { font-size: 17.5px; line-height: 1.9; color: var(--muted); text-wrap: pretty; }

.not-found { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-top: calc(var(--header-h) + 64px); padding-bottom: 96px; }
.not-found b { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 14vw, 180px); line-height: 1; color: var(--red); }
.not-found h1 { font-weight: 700; font-size: clamp(28px, 4vw, 52px); line-height: 1.3; }
.not-found p { font-size: 18px; line-height: 1.85; color: var(--muted); max-width: 560px; }

.page-body { padding-bottom: var(--section-y); }
.page-body + .page-body { padding-bottom: var(--section-y); }

.region-stack { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.region { display: flex; flex-direction: column; gap: clamp(20px, 2.5vw, 32px); }

/* Every province by region, each linking to its own page. */
.nation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 3vw, 40px); }
.nation-region { display: flex; flex-direction: column; gap: 14px; }
.nation-region h3 { font-weight: 500; font-size: 22px; line-height: 1.4; }
.nation-region h3 small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.nation-region .district-chips { margin: 0; padding: 0; }
.district-chips li:has(a) { padding: 0; }
.district-chips a { display: block; padding: 7px 13px; color: var(--ink); transition: background 0.25s, color 0.25s; }
.district-chips a:hover { background: var(--red); color: #fff; }
.district-chips li:has(a:hover) { border-color: var(--red); }

.area-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.area-main { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 24px); min-width: 0; }
.area-main .service-list { border-top-color: var(--hair); margin-top: 12px; }
/* The same row on a dark page: it is reference, not a link, and it must not
   inherit the light band's near-black text. */
.service-row-static { color: var(--ink); border-bottom-color: var(--hair); cursor: default; }
.service-row-static:hover { background: none; color: var(--ink); padding-left: 0; padding-right: 0; }
.area-aside { display: flex; flex-direction: column; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.area-panel { background: var(--surface); padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.area-panel h2 { font-weight: 500; font-size: 22px; line-height: 1.4; }
.area-panel p { font-size: 16px; line-height: 1.8; color: var(--muted); }
.area-channels { display: flex; flex-direction: column; }
.area-channel { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.area-channel:last-child { border-bottom: 0; padding-bottom: 0; }
.area-channel span { font-size: 14px; color: var(--muted-2); }
.area-channel b { font-family: var(--display); font-weight: 500; font-size: 20px; overflow-wrap: anywhere; }

/* On an area page the steps are a reference list, not a scroll narrative. */
.step-list-static .step { opacity: 1; }
.step-list-static .step:first-child { border-top: 1px solid var(--hair); }

/* Mobile action bar --------------------------------------------------------- */

.mobile-bar { display: none; }

/* Breakpoints --------------------------------------------------------------- */

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions { display: flex; }
}

@media (max-width: 1000px) {
  .case-rail { grid-auto-columns: minmax(calc((100% - 18px) / 4), 1fr); }
}

@media (max-width: 900px) {
  .area-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .process-aside { position: static; }
  .compare { grid-column: span 1; }
  .case-view { grid-template-columns: minmax(0, 1fr); }
  /* A little over one and a half across, so the cut-off edge says the row
     swipes while each title still has room for two lines. */
  .case-rail { grid-auto-columns: 64%; }
  .case-thumb .label { left: 12px; right: 12px; bottom: 10px; }
  /* 100vh fights the phone's collapsing toolbar, so the hero grows with its
     copy instead — but keeps enough height for the photo to register. */
  .hero { height: auto; min-height: 620px; padding-top: calc(var(--header-h) + 72px); }
  .hero-copy { padding-bottom: 40px; gap: 18px; }
  .hero-reticle { display: none; }
  .service-row { grid-template-columns: clamp(40px, 12vw, 60px) minmax(0, 1fr); }
  .service-go { grid-column: 2; }
  .faq-answer { padding-right: 0; }
  .ticker-b { margin-left: -60vw; }
  .contact-inner { padding-bottom: 96px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid;
    grid-auto-flow: column; grid-auto-columns: 1fr;
    background: rgba(11, 10, 10, 0.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--hair);
  }
  .mobile-bar a {
    padding: 15px 8px; text-align: center; font-family: var(--display); font-weight: 500; font-size: 15px;
    border-left: 1px solid var(--hair);
  }
  .mobile-bar a:first-child { border-left: 0; }
  .mobile-bar-primary { background: var(--red); color: #fff; }
  .mobile-bar-line { background: #06c755; color: #fff; }
  .mobile-bar-line:hover { color: #fff; }
  .mobile-bar-primary:hover { color: #fff; }
  body { padding-bottom: 54px; }
}

@media (max-width: 480px) {
  .case-facts { padding: 20px; }
  .compare-grip { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .pillar b { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal-armed { opacity: 1; transform: none; }
  .hero-scan { display: none; }
}
