/* Veritect Digital — site styles
   Layout concept: dark "drafting table" bands (navy, gold linework) alternate with
   cream "paper" bands for reading. One accent (gold), used for lines and the main action only. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  /* color */
  --night: #0F1D33;        /* drafting table: hero and dark bands */
  --night-deep: #0A1526;
  --navy: #1E3A5F;         /* brand primary */
  --gold: #C9A55A;         /* linework, main action, text on night */
  --gold-soft: #E3C98F;
  --gold-ink: #7D6224;     /* small gold text on paper (5.2:1) */
  --paper: #F7F3EA;        /* reading bands */
  --paper-2: #EFE8D8;
  --ink: #16243B;          /* body text on paper */
  --muted: #5B6472;        /* secondary text on paper */
  --mist: #B9C3D3;         /* secondary text on night */
  --cream: #F3EBDA;        /* headings on night */
  --line-night: rgba(201, 165, 90, 0.22);
  --line-paper: rgba(30, 58, 95, 0.14);

  /* type */
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  --step-4: clamp(2.7rem, 1.6rem + 4.6vw, 5.6rem);

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; animation-timing-function: var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--night);
  padding: 10px 16px; font-weight: 500; text-decoration: none; border-radius: 2px;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 40px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.band { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.band--night { background: var(--night); color: var(--mist); }
.band--deep { background: var(--night-deep); color: var(--mist); }
.band--paper2 { background: var(--paper-2); }
.band--tight { padding-block: clamp(56px, 7vw, 96px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.band--night .eyebrow, .band--deep .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }

.h-display { font-family: var(--display); font-weight: 600; font-size: var(--step-4); line-height: 0.98; letter-spacing: -0.012em; color: var(--cream); }
.h-section { font-family: var(--display); font-weight: 600; font-size: var(--step-3); line-height: 1.04; letter-spacing: -0.01em; color: var(--navy); }
.band--night .h-section, .band--deep .h-section { color: var(--cream); }
.h-card { font-family: var(--display); font-weight: 600; font-size: var(--step-2); line-height: 1.1; color: var(--navy); }
.band--night .h-card, .band--deep .h-card { color: var(--cream); }
.lede { font-size: var(--step-1); line-height: 1.6; max-width: 38em; color: var(--muted); font-weight: 300; }
.band--night .lede, .band--deep .lede, .hero .lede, .page-hero .lede { color: var(--mist); }
.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
em.serif { font-family: var(--display); font-style: italic; font-weight: 500; color: var(--gold); }
.band:not(.band--night):not(.band--deep) em.serif { color: var(--gold-ink); }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 2px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.06em; text-decoration: none; cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  will-change: transform;
}
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border-color: rgba(201, 165, 90, 0.55); color: var(--cream); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); background: rgba(201, 165, 90, 0.08); }
.btn--navy { background: var(--navy); color: var(--paper); }
.btn--navy:hover { background: var(--night); }
.btn--line { border-color: var(--line-paper); color: var(--navy); background: transparent; }
.btn--line:hover { border-color: var(--navy); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link { color: var(--gold-ink); text-decoration: none; font-weight: 500; letter-spacing: 0.04em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.band--night .text-link, .band--deep .text-link { color: var(--gold); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  height: var(--header-h); display: flex; align-items: center;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(10, 21, 38, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line-night); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-word { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: 0.28em; line-height: 1; }
.brand-word small { font-family: var(--sans); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.32em; color: var(--mist); margin-left: 4px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a.nav-link { color: var(--mist); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.05em; position: relative; padding-block: 6px; transition: color 0.25s; }
.nav a.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: var(--cream); }
.nav a.nav-link:hover::after, .nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 0.85rem; }
.menu-btn { display: none; background: none; border: 0; color: var(--cream); width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 1px; background: currentColor; margin: 6px 0; transition: transform 0.35s var(--ease), opacity 0.2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 2px; z-index: 55; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform-origin: left; transform: scaleX(0); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; top: env(safe-area-inset-top, 0px); z-index: -1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 96px var(--gutter-r) 40px var(--gutter);
    background: var(--night-deep);
    opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav a.nav-link { font-family: var(--display); font-size: 2.3rem; font-weight: 600; color: var(--cream); letter-spacing: 0; padding-block: 4px; }
  .nav .btn { margin-top: 24px; min-height: 52px; font-size: 0.95rem; }
  .menu-open { overflow: hidden; }
  .site-header.menu-shown { background: var(--night-deep); }
}

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--mist);
  background:
    radial-gradient(1200px 700px at 78% 40%, rgba(30, 58, 95, 0.55), transparent 65%),
    radial-gradient(900px 600px at 10% 110%, rgba(201, 165, 90, 0.08), transparent 60%),
    var(--night);
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px));
  padding-bottom: clamp(56px, 8vw, 110px);
}
.hero::before { /* faint drafting grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(201, 165, 90, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 165, 90, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: var(--step-4); line-height: 0.96; letter-spacing: -0.015em; color: var(--cream); }
.hero h1 .gold { color: var(--gold); font-style: italic; font-weight: 500; }
.hero .lede { max-width: 32em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); }
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }

.crest-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 640px; justify-self: center; }
.crest-stage canvas { position: absolute; inset: -8%; width: 116%; height: 116%; max-width: none; display: none; touch-action: pan-y; }
.gl-on .crest-stage canvas { display: block; }
.crest-stage .crest-svg { position: absolute; inset: 6%; width: 88%; height: 88%; }
.gl-on .crest-stage .crest-svg { display: none; }
.crest-svg .draw { stroke-dasharray: none; }
.crest-2d:not(.crest-static) .crest-svg .draw { stroke-dasharray: 1.05 1; stroke-dashoffset: 1.05; animation: draw 1.6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms + 200ms); }
.crest-2d:not(.crest-static) .crest-svg .v-shape { opacity: 0; animation: fadeup 0.9s var(--ease) 1.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.motion-toggle {
  position: absolute; right: var(--gutter-r); bottom: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
  background: rgba(10, 21, 38, 0.6); border: 1px solid var(--line-night); color: var(--mist); border-radius: 2px;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
}
.motion-toggle:hover { color: var(--cream); border-color: var(--gold); }
.motion-toggle svg { width: 12px; height: 12px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); opacity: 0.7; }
.scroll-cue::after { content: ""; position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: cue 2.4s var(--ease) 3; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(40px); opacity: 0; } 100% { opacity: 0; } }

/* hero load-in (runs on load, from a visible-enough state) */
.load-in { animation: loadin 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes loadin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .crest-stage { order: -1; max-width: 360px; width: 78%; margin-bottom: -8px; }
  .scroll-cue { display: none; }
}

/* ---------- problem: template cards ---------- */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.templates { position: relative; height: 420px; perspective: 1200px; }
.tpl {
  position: absolute; width: 76%; aspect-ratio: 4 / 3; left: 12%; top: 10%;
  background: #fff; border: 1px solid #DCD6C8; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(15, 29, 51, 0.35);
  display: grid; grid-template-rows: auto auto 1fr auto; overflow: hidden; font-family: Arial, Helvetica, sans-serif; color: #4A5260;
}
.tpl:nth-child(1) { transform: translate(-9%, -8%) rotate(-5deg); }
.tpl:nth-child(2) { transform: translate(7%, 2%) rotate(3deg); }
.tpl:nth-child(3) { transform: translate(-1%, 12%) rotate(-1deg); }
.tpl-bar { display: flex; gap: 5px; align-items: center; padding: 7px 10px; background: #EFEDE8; border-bottom: 1px solid #E2DED5; }
.tpl-bar i { width: 7px; height: 7px; border-radius: 50%; background: #D3CDBF; flex: none; }
.tpl-bar b { margin-left: 8px; flex: 1; font-weight: 400; font-size: 9px; color: #8C93A0; background: #fff; border-radius: 4px; padding: 2px 8px; white-space: nowrap; overflow: hidden; }
.tpl-nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 9px; border-bottom: 1px solid #EEECE6; }
.tpl-logo { font-weight: 700; letter-spacing: 0.12em; color: #7D8796; border: 1px dashed #B9C0CB; padding: 2px 6px; }
.tpl-links { color: #8C93A0; white-space: nowrap; }
.tpl-hero { position: relative; overflow: hidden; }
.tpl-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tpl-copy { position: relative; height: 100%; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 10px; text-align: center; background: rgba(40, 46, 58, 0.25); color: #fff; }
.tpl-copy strong { font-size: clamp(0.8rem, 1.4vw, 1.05rem); line-height: 1.15; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.tpl-copy small { font-size: 9px; opacity: 0.9; }
.tpl-copy em { margin-top: 4px; font-style: normal; font-size: 9px; font-weight: 700; background: #5B8DEF; color: #fff; padding: 4px 10px; border-radius: 3px; }
.tpl-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px 12px; }
.tpl-cols i { height: 30px; border-radius: 3px; background: #F1EEE6; position: relative; }
.tpl-cols i::before { content: ""; position: absolute; left: 6px; right: 30%; top: 8px; height: 4px; border-radius: 2px; background: #DCD8CE; box-shadow: 0 8px 0 #E6E2D9; }
.tpl-ad { position: absolute; left: 0; right: 0; bottom: 0; background: #FFE89A; color: #5F5130; font-size: 9px; text-align: center; padding: 6px; }
.tpl-cookie { position: absolute; left: 8px; right: 8px; bottom: 8px; background: #2F343D; color: #E4E7EC; font-size: 9px; padding: 8px 10px; border-radius: 4px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tpl-cookie b { background: #5B8DEF; color: #fff; padding: 3px 8px; border-radius: 3px; }
.tpl-load { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.94); color: #4A5260; font-size: 10px; padding: 8px 14px; border-radius: 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
.tpl-load i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #D5DAE2; border-top-color: #5B8DEF; animation: tplspin 0.9s linear infinite; }
@keyframes tplspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tpl-load i { animation: none; } }
.tpl-stamp { position: absolute; right: 10px; top: 5px; font-size: 8.5px; letter-spacing: 0.08em; color: #9AA2AE; text-transform: uppercase; background: #fff; padding: 2px 6px; border: 1px solid #E2DED5; }
.problem-points { display: grid; gap: 28px; list-style: none; }
.problem-points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line-paper); }
.problem-points strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.55rem; color: var(--navy); line-height: 1.15; margin-bottom: 6px; }
.problem-points p { color: var(--muted); }
.problem-points svg { width: 36px; height: 36px; color: var(--gold-ink); }
@media (max-width: 900px) { .problem-grid { grid-template-columns: minmax(0, 1fr); } .templates { height: 300px; max-width: 460px; width: 100%; margin-inline: auto; } }

/* ---------- approach: pillars ---------- */
.approach { overflow: hidden; }
.golden-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.9; }
.golden-lines path, .golden-lines line, .golden-lines circle { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.35; }
.pillars { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.pillar { position: relative; padding: 40px 30px 34px; border: 1px solid var(--line-night); background: linear-gradient(180deg, rgba(23, 44, 74, 0.92), rgba(15, 29, 51, 0.88)); display: grid; gap: 14px; align-content: start; }
.pillar::before { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 2px; background: var(--gold); transform-origin: left; }
.pillar-num { font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--gold); letter-spacing: 0.06em; }
.pillar p { color: var(--mist); }
.approach-note { position: relative; margin-top: 48px; display: flex; gap: 18px; align-items: center; color: var(--mist); max-width: 760px; font-size: 1.05rem; }
.approach-note svg { flex: none; width: 40px; height: 40px; }
@media (max-width: 900px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* ---------- services rail ---------- */
.svc-section { overflow: hidden; }
.svc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.svc-head .section-head { margin-bottom: 0; }
.svc-rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; margin-right: calc(-1 * var(--gutter-r)); padding-right: var(--gutter-r); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.svc-card {
  flex: 0 0 min(82vw, 360px); scroll-snap-align: start; position: relative;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; min-height: 400px;
  padding: 34px 30px 30px; background: #FFFDF8; border: 1px solid var(--line-paper);
  text-decoration: none; color: var(--ink);
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); border-color: rgba(30, 58, 95, 0.35); box-shadow: 0 28px 50px -30px rgba(15, 29, 51, 0.45); }
.svc-card .icon { width: 64px; height: 64px; color: var(--navy); }
.svc-card .icon .spin { transform-origin: 32px 32px; animation: spin 24s linear 1; }
.svc-card:hover .icon .spin { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.svc-card p { color: var(--muted); }
.svc-card .more { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.svc-card .idx { position: absolute; top: 28px; right: 28px; font-family: var(--display); font-style: italic; color: var(--gold-ink); font-size: 1.05rem; }
.svc-card--cta { background: var(--navy); color: var(--mist); border-color: var(--navy); }
.svc-card--cta .h-card { color: var(--cream); }
.svc-card--cta p { color: var(--mist); }
.svc-card--cta .more { color: var(--gold); }
.is-pinned-rail .svc-rail { overflow: visible; scroll-snap-type: none; margin-right: 0; padding-right: 0; }

/* ---------- process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 40px; list-style: none; }
.process-line { position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: var(--line-night); }
.process-line i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(1); }
.step { position: relative; display: grid; gap: 12px; align-content: start; }
.step::before { content: ""; position: absolute; top: -36px; left: 0; width: 12px; height: 12px; transform: rotate(45deg); border: 1px solid var(--gold); background: var(--gold); transition: background-color 0.4s, box-shadow 0.4s; }
.js-motion .step::before { background: var(--night); }
.js-motion .step.is-lit::before { background: var(--gold); box-shadow: 0 0 0 6px rgba(201, 165, 90, 0.15); }
.step-week { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.step p { color: var(--mist); }
.process-foot { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-night); padding-top: 32px; }
.process-foot p { color: var(--cream); font-family: var(--display); font-size: var(--step-2); line-height: 1.2; }
@media (max-width: 900px) {
  .process { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 36px; gap: 36px; }
  .process-line { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process-line i { transform-origin: top; }
  .step::before { top: 8px; left: -36px; }
}

/* ---------- showcase ---------- */
.concepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.concept { display: grid; gap: 18px; text-decoration: none; color: inherit; }
.concept-frame { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--line-paper); background: #FFFDF8; overflow: hidden; }
.concept-frame svg.wire { position: absolute; inset: 0; width: 100%; height: 100%; }
.concept-frame svg.wire * { fill: none; stroke: var(--navy); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.45; }
.concept-art { position: absolute; inset: 0; transition: transform 0.8s var(--ease); }
.concept:hover .concept-art { transform: scale(1.03); }
.concept-tag { position: absolute; bottom: 14px; right: 14px; z-index: 2; background: var(--night); color: var(--gold); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 10px; }
.concept-meta { display: grid; gap: 6px; }
.concept-meta .kind { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.concept-meta p { color: var(--muted); }
@media (max-width: 900px) { .concepts { grid-template-columns: minmax(0, 1fr); } .concept-frame { aspect-ratio: 4 / 3.4; } }

/* concept mini-sites (CSS-drawn previews) */
.mini { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; font-family: var(--sans); }
.mini-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; }
.mini-nav span:last-child { display: flex; gap: 10px; opacity: 0.75; }
.mini-hero { padding: 10px 18px; display: grid; align-content: center; gap: 10px; }
.mini-hero h4 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.05; }
.mini-hero p { font-size: 0.72rem; line-height: 1.5; max-width: 22em; }
.mini-btn { justify-self: start; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 12px; }
.mini-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px 18px; }
.mini-foot i { height: 46px; display: block; }

.mini--law { background: #F4F0E8; color: #2A1B1B; }
.mini--law .mini-nav { border-bottom: 1px solid #C9BCA6; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.2em; }
.mini--law h4 { font-family: var(--display); font-weight: 600; color: #5C1F24; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.mini--law .mini-btn { background: #5C1F24; color: #F4F0E8; }
.mini--law .mini-foot i { border-top: 2px solid #5C1F24; background: #EAE3D6; }

.mini--benefits { background: #0E2A2E; color: #E8F1EE; }
.mini--benefits h4 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.mini--benefits h4 b { color: #F2B24A; font-weight: 500; }
.mini--benefits .mini-btn { background: #F2B24A; color: #0E2A2E; border-radius: 30px; }
.mini--benefits .mini-foot i { border-radius: 10px; background: rgba(232, 241, 238, 0.08); border: 1px solid rgba(232, 241, 238, 0.14); }

.mini--medical { background: #F3F5EF; color: #24352B; }
.mini--medical h4 { font-family: var(--display); font-weight: 500; font-style: italic; color: #3E6B4E; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.mini--medical .mini-btn { background: #3E6B4E; color: #fff; border-radius: 6px; }
.mini--medical .mini-foot i { border-radius: 14px; background: #DDE7D8; }
.mini--medical .sun { position: absolute; right: -40px; top: 40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, #F6D9A8, rgba(246, 217, 168, 0) 70%); }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.num { padding: 34px 0 0; border-top: 1px solid var(--line-paper); display: grid; gap: 8px; }
.num b { font-family: var(--display); font-weight: 600; font-size: clamp(3.4rem, 7vw, 6rem); line-height: 0.95; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.02em; }
.num span { color: var(--muted); max-width: 22em; }
@media (max-width: 760px) { .numbers { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: left; }
.cta-crest { position: absolute; right: -8%; top: 50%; width: min(70vw, 760px); transform: translateY(-50%); opacity: 0.16; pointer-events: none; }
.cta-crest .rot { transform-origin: 0 0; animation: spin 120s linear infinite; }
.cta-inner { position: relative; display: grid; gap: 28px; max-width: 760px; }
.cta h2 { font-family: var(--display); font-weight: 600; font-size: var(--step-4); line-height: 0.98; color: var(--cream); }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--mist); font-size: 0.95rem; }
.copy-line code { font-family: var(--sans); color: var(--cream); font-size: 1rem; user-select: all; }
.copy-btn { background: none; border: 1px solid var(--line-night); color: var(--mist); padding: 6px 12px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; border-radius: 2px; min-height: 32px; }
.copy-btn:hover { color: var(--cream); border-color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { background: var(--night-deep); color: var(--mist); padding-block: 0 calc(96px + env(safe-area-inset-bottom, 0px)); font-size: 0.95rem; }
.spiral-divider { display: block; width: 100%; height: 90px; }
.spiral-divider path { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.5; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 40px 56px; }
.footer-grid h3 { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--mist); text-decoration: none; }
.footer-grid a:hover { color: var(--cream); }
.footer-about { display: grid; gap: 18px; align-content: start; max-width: 340px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; border-top: 1px solid var(--line-night); padding-top: 24px; font-size: 0.82rem; color: #8592A7; }
.footer-bottom a { color: inherit; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-about { grid-column: 1 / -1; } }

/* ---------- inner pages ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--mist);
  background: radial-gradient(900px 500px at 85% 0%, rgba(30, 58, 95, 0.6), transparent 70%), var(--night);
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); padding-bottom: clamp(56px, 8vw, 100px);
}
.page-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.page-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.8rem); line-height: 1; color: var(--cream); letter-spacing: -0.012em; }
.page-hero .copy { display: grid; gap: 22px; max-width: 760px; min-width: 0; }
.page-hero .hero-icon { width: clamp(110px, 16vw, 190px); height: auto; color: var(--gold); }
.page-hero .hero-icon * { vector-effect: non-scaling-stroke; }
.breadcrumb { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); }
.breadcrumb a { color: var(--gold); text-decoration: none; }
@media (max-width: 760px) { .page-hero .wrap { grid-template-columns: minmax(0, 1fr); } .page-hero .hero-icon { display: none; } }

.two-col { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 18px; max-width: 40em; min-width: 0; }
.prose p { color: var(--ink); }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: var(--step-2); color: var(--navy); margin-top: 18px; line-height: 1.15; }
.prose h3 { font-family: var(--sans); font-weight: 500; font-size: 1.05rem; color: var(--navy); margin-top: 8px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose a { color: var(--gold-ink); }

.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line-paper); }
.checklist li::before { content: ""; width: 10px; height: 10px; margin-top: 9px; margin-left: 4px; transform: rotate(45deg); border: 1px solid var(--gold-ink); }
.band--night .checklist li, .band--deep .checklist li { border-bottom-color: var(--line-night); }
.band--night .checklist li::before, .band--deep .checklist li::before { border-color: var(--gold); }

.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.offer { padding: 30px 28px; background: #FFFDF8; border: 1px solid var(--line-paper); display: grid; gap: 12px; align-content: start; }
.offer h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--navy); line-height: 1.15; }
.offer p { color: var(--muted); }
.offer .time { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; }

.steps-list { list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--line-night); }
.steps-list li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-style: italic; font-size: 1.6rem; color: var(--gold); line-height: 1.2; }
.steps-list strong { display: block; color: var(--cream); font-weight: 500; font-size: 1.1rem; margin-bottom: 4px; }
.steps-list p { color: var(--mist); }

.faq { display: grid; gap: 0; max-width: 860px; }
.faq details { border-top: 1px solid var(--line-paper); padding: 6px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-paper); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 0; font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--navy); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 1px solid var(--gold-ink); border-bottom: 1px solid var(--gold-ink); transform: rotate(45deg) translateY(-4px); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 46em; }

.svc-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.svc-index .svc-card { min-height: 0; flex: none; }

.cta-strip { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; }
.cta-strip h2 { font-family: var(--display); font-weight: 600; font-size: var(--step-3); color: var(--cream); line-height: 1.05; max-width: 16em; }

.principles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0; border-top: 1px solid var(--line-paper); }
.principles li { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line-paper); display: grid; gap: 10px; align-content: start; }
.principles strong { font-family: var(--display); font-weight: 600; font-size: 1.45rem; color: var(--navy); line-height: 1.15; }
.principles p { color: var(--muted); }

.article-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-paper); }
.article-list li { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line-paper); }
.article-list .topic { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.article-list h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--navy); line-height: 1.15; }
.article-list p { color: var(--muted); margin-top: 6px; }
.article-list .status { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .article-list li { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #FFFDF8;
  border: 1px solid rgba(30, 58, 95, 0.25); border-radius: 2px; padding: 14px 14px; min-height: 52px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201, 165, 90, 0.35); }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { font-size: 0.95rem; padding: 14px 16px; border-left: 2px solid var(--gold-ink); background: rgba(201, 165, 90, 0.12); color: var(--ink); }
.honey { position: absolute; left: -9999px; }

.contact-cards { display: grid; gap: 18px; }
.contact-card { padding: 30px 28px; background: var(--night); color: var(--mist); display: grid; gap: 14px; border: 1px solid var(--night); }
.contact-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--cream); }
.contact-card--light { background: #FFFDF8; border-color: var(--line-paper); color: var(--muted); }
.contact-card--light h3 { color: var(--navy); }

/* ---------- chat widget ---------- */
.chat-launch {
  position: fixed; z-index: 45; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 14px;
  background: var(--night); color: var(--cream); border: 1px solid rgba(201, 165, 90, 0.5); border-radius: 30px;
  box-shadow: 0 16px 40px -16px rgba(10, 21, 38, 0.6); cursor: pointer; font-size: 0.9rem; letter-spacing: 0.04em;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.chat-launch:hover { transform: translateY(-3px); border-color: var(--gold); }
.chat-launch svg { width: 26px; height: 26px; }
.chat-panel {
  position: fixed; z-index: 46; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 36px)); max-height: min(560px, calc(100dvh - 140px));
  display: grid; grid-template-rows: auto 1fr auto auto; background: #FFFDF8; border: 1px solid var(--line-paper);
  box-shadow: 0 30px 70px -30px rgba(10, 21, 38, 0.55); border-radius: 6px; overflow: hidden;
  transform-origin: bottom right; animation: pop 0.35s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--night); color: var(--cream); }
.chat-top b { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.chat-top small { display: block; color: var(--mist); font-size: 0.75rem; letter-spacing: 0.06em; }
.chat-close { background: none; border: 0; color: var(--mist); width: 40px; height: 40px; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.chat-log { overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; min-height: 160px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 0.95rem; line-height: 1.5; }
.msg--bot { background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 2px; }
.msg--me { background: var(--navy); color: var(--paper); justify-self: end; border-bottom-right-radius: 2px; }
.msg a { color: var(--gold-ink); }
.msg--me a { color: var(--gold-soft); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-chips button { background: none; border: 1px solid var(--line-paper); color: var(--navy); border-radius: 20px; padding: 6px 12px; font-size: 0.82rem; cursor: pointer; min-height: 34px; }
.chat-chips button:hover { border-color: var(--navy); }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line-paper); }
.chat-form input { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid rgba(30, 58, 95, 0.25); border-radius: 4px; min-width: 0; background: #fff; color: var(--ink); }
.chat-form button { background: var(--navy); color: var(--paper); border: 0; border-radius: 4px; padding: 0 16px; cursor: pointer; font-size: 0.85rem; letter-spacing: 0.06em; }
.chat-notice { grid-column: 1 / -1; font-size: 0.72rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 520px) { .chat-launch .label { display: none; } .chat-launch { padding: 0 13px; } }

/* custom cursor ring (fine pointers only) */
.cursor-ring { position: fixed; left: 0; top: 0; z-index: 70; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid var(--gold); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 0.3s, width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background-color 0.3s; mix-blend-mode: difference; }
.cursor-ring.is-on { opacity: 0.8; }
.cursor-ring.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(201, 165, 90, 0.12); }

/* pause + reduced motion */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .cursor-ring { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

.chat-ts { display: flex; justify-content: center; padding: 6px 0; }
.chat-ts:empty { display: none; }

/* concept browser frames (real screenshots of the concept sites) */
.concept-frame .chrome { position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #E9E4DA; border-bottom: 1px solid var(--line-paper); }
.concept-frame .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #CFC6B6; flex: none; }
.concept-frame .chrome .tab { margin-left: 8px; font-size: 11px; color: #5B6472; background: #FFFDF8; padding: 3px 12px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.concept-frame .concept-art { inset: 30px 0 0 0; overflow: hidden; }
.concept-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: object-position 7s cubic-bezier(.45, 0, .2, 1); }
.concept:hover .concept-art, .concept-frame:hover .concept-art { transform: none; }
.concept:hover .concept-art img, a:hover > .concept-frame .concept-art img, a:focus-visible > .concept-frame .concept-art img { object-position: bottom center; }
.concept-frame--wide { aspect-ratio: 16 / 11; }
.concept--big { display: grid; gap: 18px; }
.concept--big > a { display: block; }
.concept-extras { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.brand-card { margin: 0; border: 1px solid var(--line-paper); display: grid; place-items: center; align-content: center; gap: 14px; padding: 22px; }
.brand-card img { max-width: 100%; height: auto; max-height: 96px; }
.brand-card figcaption { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.brand-card--law { background: #F4F0E8; }
.brand-card--benefits { background: #0E2A2E; border-color: #0E2A2E; }
.brand-card--benefits figcaption { color: #9FB7B2; }
.brand-card--medical { background: #FBF7F0; }
.phone-shot { margin: 0; border: 6px solid #15181d; border-radius: 26px; overflow: hidden; aspect-ratio: 390 / 640; background: #15181d; }
.phone-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (prefers-reduced-motion: reduce) { .concept-art img { transition: none; } }
@media (max-width: 900px) { .concept-frame--wide { aspect-ratio: 4 / 3.4; } }
.prose a.btn { color: var(--paper); text-decoration: none; }

/* chat: hidden must win over the panel's grid display */
.chat-panel[hidden] { display: none !important; }
/* chat invitation bubble */
.chat-invite { position: fixed; z-index: 45; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: min(300px, calc(100vw - 36px)); background: #FFFDF8; color: var(--ink); border: 1px solid var(--line-paper); border-radius: 8px; padding: 16px 18px 14px; box-shadow: 0 24px 50px -24px rgba(10, 21, 38, 0.5); animation: pop 0.45s var(--ease); }
.chat-invite::after { content: ""; position: absolute; right: 34px; bottom: -7px; width: 12px; height: 12px; background: #FFFDF8; border-right: 1px solid var(--line-paper); border-bottom: 1px solid var(--line-paper); transform: rotate(45deg); }
.chat-invite p { font-size: 0.92rem; line-height: 1.5; padding-right: 18px; }
.chat-invite b { color: var(--navy); }
.chat-invite-x { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; background: none; border: 0; font-size: 1.2rem; color: var(--muted); cursor: pointer; }
.chat-invite-go { margin-top: 12px; background: var(--navy); color: var(--paper); border: 0; border-radius: 4px; padding: 9px 14px; font-size: 0.85rem; letter-spacing: 0.04em; cursor: pointer; }
.chat-invite-go:hover { background: var(--night); }
@media (prefers-reduced-motion: reduce) { .chat-invite { animation: none; } }
