/* ==========================================================================
   Legal Matter Solutions — SINGLE THEME STYLESHEET
   --------------------------------------------------------------------------
   CHANGE THE WHOLE BRAND COLOUR IN SECONDS:
   Every colour on the site comes from the variables in § 01 below.
   Edit 5 lines  ( --brand-ink / --brand-paper / --brand-accent / ... )
   and the entire website re-themes instantly. Nothing else needs touching.
   Ready-made palettes are at the very bottom of this file (§ 18).
   ========================================================================== */

/* ==========================================================================
   01. THEME TOKENS  ←←← EDIT THESE
   ========================================================================== */
:root {
  /* --- Core brand ------------------------------------------------------ */
  --brand-ink:        #0B1426;   /* darkest surface: header, hero, footer  */
  --brand-ink-soft:   #14233D;   /* raised surface on dark                 */
  --brand-plum:       #1D3455;   /* deep plum accent surface               */
  --brand-paper:      #F1F5FB;   /* main light page background             */
  --brand-paper-2:    #E3ECF8;   /* secondary light surface                */
  --brand-accent:     #2878D0;   /* PRIMARY accent — buttons, links, marks */
  --brand-accent-2:   #65B5F5;   /* SECONDARY accent — glows, gradients    */

  /* --- Derived (rarely need editing) ----------------------------------- */
  --brand-accent-soft: color-mix(in srgb, var(--brand-accent) 14%, transparent);
  --brand-accent-line: color-mix(in srgb, var(--brand-accent) 34%, transparent);
  --brand-accent-2-soft: color-mix(in srgb, var(--brand-accent-2) 16%, transparent);

  --text:             #15233A;   /* body text on light                     */
  --text-muted:       #64758F;   /* secondary text on light                */
  --text-dark:        #F0F5FC;   /* body text on dark                      */
  --text-dark-muted:  #A8B9D2;   /* secondary text on dark                 */

  --on-accent:        #FFFFFF;   /* text placed on top of the accent       */
  --line:             color-mix(in srgb, var(--text) 12%, transparent);
  --line-dark:        rgba(255, 255, 255, 0.10);

  /* --- Shape & rhythm --------------------------------------------------- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 148px);

  /* --- Type ------------------------------------------------------------- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Motion ----------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.55s;

  /* --- Effects ---------------------------------------------------------- */
  --shadow-sm: 0 2px 10px rgba(11, 20, 38, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(11, 20, 38, 0.28);
  --shadow-lg: 0 40px 90px -40px rgba(11, 20, 38, 0.45);
  --shadow-accent: 0 20px 50px -22px color-mix(in srgb, var(--brand-accent) 60%, transparent);

  --header-h: 78px;
}

/* ==========================================================================
   02. FONTS (self-hosted — no external requests)
   ========================================================================== */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-normal-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-normal-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   03. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font-sans);
  font-size: clamp(15.5px, 0.55vw + 14px, 17px);
  line-height: 1.68;
  font-weight: 400;
  color: var(--text);
  background: var(--brand-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--brand-paper-2); }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection {
  background: var(--brand-accent);
  color: var(--on-accent);
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--brand-paper-2); }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--brand-ink) 30%, transparent);
  border-radius: 99px;
  border: 2px solid var(--brand-paper-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-accent); }

/* ==========================================================================
   04. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  text-wrap: balance;
}

.h-hero { font-size: clamp(2.35rem, 6.5vw, 5.35rem); line-height: 0.95; letter-spacing: -0.028em; }
.h1     { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
.h2     { font-size: clamp(1.9rem, 4.2vw, 3.3rem); }
.h3     { font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.15; }
.h4     { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.25; }

.serif  { font-family: var(--font-display); }
.italic { font-style: italic; }

/* Accent word / gradient word inside headings */
.accent-word {
  font-style: italic;
  color: var(--brand-accent);
  font-variation-settings: "WONK" 1;
}
.outline-word {
  color: transparent;
  -webkit-text-stroke: 1.2px color-mix(in srgb, currentColor 45%, transparent);
}

p { text-wrap: pretty; }
.lead {
  font-size: clamp(1.02rem, 1.2vw + 0.7rem, 1.25rem);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 62ch;
}
.lead-dark { color: var(--text-dark-muted); }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.685rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow-plain::before { display: none; }

/* ==========================================================================
   05. LAYOUT
   ========================================================================== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-wide { max-width: 1480px; }

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: calc(var(--section-y) * 0.62); }

.bg-paper   { background: var(--brand-paper); }
.bg-paper-2 { background: var(--brand-paper-2); }
.bg-ink     { background: var(--brand-ink); color: var(--text-dark); }
.bg-ink-soft{ background: var(--brand-ink-soft); color: var(--text-dark); }
.bg-plum    { background: var(--brand-plum); color: var(--text-dark); }

.bg-ink .lead, .bg-plum .lead { color: var(--text-dark-muted); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4,
.bg-plum h1, .bg-plum h2, .bg-plum h3 { color: var(--text-dark); }

/* Section header block */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: clamp(38px, 5vw, 68px);
}
.sec-head .eyebrow { margin-bottom: 4px; }
.sec-head-split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: clamp(24px, 4vw, 60px);
}
@media (max-width: 860px) { .sec-head-split { grid-template-columns: 1fr; } }

.hairline { height: 1px; background: var(--line); border: 0; }
.bg-ink .hairline, .bg-plum .hairline { background: var(--line-dark); }

/* Grain overlay for dark bands */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 1; }

/* ==========================================================================
   06. BUTTONS & LINKS
   ========================================================================== */
.btn {
  --btn-bg: var(--brand-accent);
  --btn-fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform 0.4s var(--ease); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand-ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--text-dark); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn:disabled { opacity: 0.55; pointer-events: none; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: color-mix(in srgb, currentColor 26%, transparent);
}
.btn-ghost:hover { color: var(--text-dark); border-color: transparent; }

.btn-light { --btn-bg: var(--brand-paper); --btn-fg: var(--brand-ink); }
.btn-light:hover { color: var(--text-dark); }
.btn-light::before { background: var(--brand-accent); }
.btn-light:hover { color: var(--on-accent); }

.btn-dark { --btn-bg: var(--brand-ink); --btn-fg: var(--text-dark); }
.btn-dark::before { background: var(--brand-accent); }
.btn-dark:hover { color: var(--on-accent); }

.btn-lg { padding: 18px 34px; font-size: 0.95rem; }
.btn-sm { padding: 11px 20px; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* Text link with sliding underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: inherit;
  position: relative;
  padding-bottom: 3px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--brand-accent); }

/* ==========================================================================
   07. HEADER + NAVIGATION  (identical on every page)
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 0;
  transition: padding 0.45s var(--ease), background-color 0.45s var(--ease),
              box-shadow 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
}

/* Dark glass bar that appears on scroll */
.topbar.is-stuck {
  padding: 8px 0;
  background: color-mix(in srgb, var(--brand-ink) 88%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-dark), 0 18px 40px -30px rgba(0,0,0,0.9);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-dark);
  flex: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-accent);
  color: var(--on-accent);
  flex: none;
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--brand-accent) 85%, transparent);
  transition: transform 0.5s var(--ease), border-radius 0.5s var(--ease);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand:hover .brand-mark { transform: rotate(-8deg); border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--text-dark) 78%, transparent);
  border-radius: var(--r-pill);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--text-dark); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active { color: var(--text-dark); }
.nav a.is-active::after { transform: scaleX(1); }

.topbar-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--text-dark);
  place-items: center;
  background: color-mix(in srgb, var(--brand-ink) 55%, transparent);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s var(--ease), border-color 0.3s;
}
.burger:hover { border-color: var(--brand-accent); }
.burger-lines { width: 18px; display: grid; gap: 4px; }
.burger-lines span {
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), width 0.4s var(--ease);
}
.burger-lines span:nth-child(2) { width: 70%; justify-self: end; }
body.nav-open .burger-lines span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
body.nav-open .burger-lines span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.nav-open .burger-lines span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: var(--brand-ink);
  color: var(--text-dark);
  padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path 0.7s var(--ease);
  overflow-y: auto;
  visibility: hidden;
}
body.nav-open .drawer { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.drawer a.drawer-link {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.3rem);
  padding: 12px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
body.nav-open .drawer a.drawer-link { opacity: 1; transform: none; }
body.nav-open .drawer a.drawer-link:nth-child(1) { transition-delay: 0.10s; }
body.nav-open .drawer a.drawer-link:nth-child(2) { transition-delay: 0.15s; }
body.nav-open .drawer a.drawer-link:nth-child(3) { transition-delay: 0.20s; }
body.nav-open .drawer a.drawer-link:nth-child(4) { transition-delay: 0.25s; }
body.nav-open .drawer a.drawer-link:nth-child(5) { transition-delay: 0.30s; }
.drawer a.drawer-link small {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-dark-muted);
}
.drawer a.drawer-link:hover { color: var(--brand-accent); }
.drawer-foot { margin-top: auto; padding-top: 30px; display: grid; gap: 8px; font-size: 0.85rem; color: var(--text-dark-muted); }
.drawer-foot a { color: var(--text-dark); }
.drawer-foot a:hover { color: var(--brand-accent); }
body.nav-open { overflow: hidden; }

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: grid; }
}
@media (max-width: 860px) {
  .topbar-actions > .btn { display: none; }
}
@media (max-width: 430px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 0.98rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
}

/* ==========================================================================
   08. HERO (home)
   ========================================================================== */
.hero {
  position: relative;
  background: var(--brand-ink);
  color: var(--text-dark);
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 64px));
  padding-bottom: clamp(40px, 5vw, 70px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  width: 62vw;
  height: 62vw;
  max-width: 820px;
  max-height: 820px;
  right: -14vw;
  top: -20vw;
  border-radius: 50%;
  background: radial-gradient(circle at center,
      color-mix(in srgb, var(--brand-accent) 34%, transparent) 0%,
      color-mix(in srgb, var(--brand-accent-2) 20%, transparent) 42%,
      transparent 68%);
  filter: blur(30px);
  z-index: -1;
  animation: drift 22s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  left: -18vw;
  bottom: -30vw;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-accent-2) 26%, transparent), transparent 66%);
  filter: blur(40px);
  z-index: -1;
  animation: drift 28s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4%, 5%, 0) scale(1.12); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-copy { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 26px;
}
.hero-tag .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-accent);
  color: var(--on-accent);
  flex: none;
}
.hero-tag .dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 1; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}
.hero h1 { color: var(--text-dark); margin-bottom: 24px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: lineUp 1.05s var(--ease) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: 0.06s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.18s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.30s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-sub {
  max-width: 46ch;
  color: var(--text-dark-muted);
  font-size: clamp(0.98rem, 0.6vw + 0.8rem, 1.12rem);
  line-height: 1.66;
  margin-bottom: 34px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.5s forwards;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.62s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* Hero media: tall portrait frame with layered offset card */
.hero-media { position: relative; }
.hero-frame {
  position: relative;
  border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 130px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  animation: mediaIn 1.2s var(--ease) 0.15s forwards;
}
@keyframes mediaIn {
  from { opacity: 0; transform: scale(1.04); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
  will-change: transform;
}
.hero-frame:hover img { transform: scale(1.12); }
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--brand-ink) 80%, transparent) 100%);
  pointer-events: none;
}

/* Floating badge on the image */
.hero-badge {
  position: absolute;
  left: -6%;
  bottom: 16%;
  z-index: 3;
  background: var(--brand-paper);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 240px;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-badge .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  flex: none;
}
.hero-badge .ic svg { width: 19px; height: 19px; }
.hero-badge strong { display: block; font-size: 0.85rem; line-height: 1.2; }
.hero-badge span { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }

/* Vertical label */
.hero-vertical {
  position: absolute;
  right: -46px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-dark) 42%, transparent);
}
@media (max-width: 1240px) { .hero-vertical { display: none; } }
@media (max-width: 520px) {
  .hero-badge { left: 0; bottom: 10px; max-width: 210px; padding: 11px 14px; }
  .hero-frame { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 80px; }
}

/* Stat strip under the hero */
.hero-stats {
  margin-top: clamp(38px, 5vw, 64px);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.hero-stats .stat-num em { font-style: normal; color: var(--brand-accent); }
.hero-stats .stat-lbl {
  margin-top: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dark-muted);
}
@media (max-width: 560px) {
  .hero-stats { gap: 14px; }
  .hero-stats .stat-lbl { font-size: 0.58rem; letter-spacing: 0.12em; }
}

/* ==========================================================================
   09. PAGE HERO (interior pages)
   ========================================================================== */
.page-hero {
  position: relative;
  background: var(--brand-ink);
  color: var(--text-dark);
  padding-top: calc(var(--header-h) + clamp(46px, 7vw, 96px));
  padding-bottom: clamp(46px, 7vw, 92px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -12vw;
  top: -22vw;
  width: 56vw;
  height: 56vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-accent) 30%, transparent), transparent 66%);
  filter: blur(30px);
  z-index: -1;
}
.page-hero h1 { color: var(--text-dark); margin: 18px 0 20px; max-width: 18ch; }
.page-hero .lead { color: var(--text-dark-muted); }
.page-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
@media (max-width: 860px) { .page-hero-row { grid-template-columns: 1fr; } }

/* Breadcrumb */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dark-muted);
}
.crumbs a:hover { color: var(--brand-accent); }
.crumbs .sep { opacity: 0.45; }
.crumbs [aria-current] { color: var(--brand-accent); }

/* ==========================================================================
   10. MARQUEE TICKER
   ========================================================================== */
.ticker {
  background: var(--brand-accent);
  color: var(--on-accent);
  border-block: 1px solid color-mix(in srgb, var(--on-accent) 18%, transparent);
  overflow: hidden;
  padding: 13px 0;
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; flex: none; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-inline: 22px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.ticker-item::after {
  content: "✳";
  font-family: var(--font-sans);
  font-size: 0.7em;
  opacity: 0.7;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   11. CARDS, LISTS, ACCORDIONS
   ========================================================================== */
/* Practice-area card */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
              border-color 0.4s var(--ease), background-color 0.4s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 70%;
  background: radial-gradient(circle at 50% 100%, var(--brand-accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: -1;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-accent-line); }
.card:hover::after { opacity: 1; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.card-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 11px;
  transition: color 0.35s, border-color 0.35s, background-color 0.35s;
}
.card:hover .card-num { color: var(--brand-accent); border-color: var(--brand-accent-line); background: var(--brand-accent-soft); }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-paper-2);
  color: var(--brand-ink);
  flex: none;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
}
.card-icon svg { width: 22px; height: 22px; }
.card:hover .card-icon { background: var(--brand-accent); color: var(--on-accent); transform: rotate(-6deg); }
.card h3 { font-size: 1.24rem; }
.card p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.66; }
.card-link {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* Dark card variant */
.card-dark { background: var(--brand-ink-soft); border-color: var(--line-dark); color: var(--text-dark); }
.card-dark p { color: var(--text-dark-muted); }
.card-dark .card-icon { background: rgba(255,255,255,0.07); color: var(--text-dark); }

/* Grid helpers */
.consumer-body { max-width: 66ch; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
@media (max-width: 1000px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Feature / value row list (numbered, expanding) */
.rows { border-top: 1px solid var(--line); }
.rows-dark { border-color: var(--line-dark); }
.acc-row {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.rows-dark .acc-row { border-color: var(--line-dark); }
.acc-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 2.2vw, 26px) 0;
  text-align: left;
  color: inherit;
  transition: color 0.3s var(--ease), padding-inline 0.4s var(--ease);
}
.acc-btn:hover { padding-inline: 10px 4px; }
.acc-index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: color 0.3s;
}
.rows-dark .acc-index { color: var(--text-dark-muted); }
.acc-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  transition: color 0.3s var(--ease), transform 0.45s var(--ease);
}
.acc-plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  justify-self: end;
  position: relative;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.rows-dark .acc-plus { border-color: var(--line-dark); }
.acc-plus::before, .acc-plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.acc-plus::before { width: 12px; height: 1.5px; }
.acc-plus::after { width: 1.5px; height: 12px; }
.acc-row:hover .acc-plus { background: var(--brand-accent); border-color: transparent; color: var(--on-accent); }
.acc-row.is-open .acc-plus { background: var(--brand-accent); border-color: transparent; color: var(--on-accent); transform: rotate(180deg); }
.acc-row.is-open .acc-plus::after { transform: scaleY(0); opacity: 0; }
.acc-row:hover .acc-title { color: var(--brand-accent); }
.acc-row.is-open .acc-title { color: var(--brand-accent); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.acc-panel > div { overflow: hidden; }
.acc-inner {
  padding-bottom: clamp(20px, 2.4vw, 30px);
  padding-left: 78px;
  max-width: 74ch;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s var(--ease) 0.1s, transform 0.5s var(--ease) 0.1s;
}
.rows-dark .acc-inner { color: var(--text-dark-muted); }
.acc-row.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-row.is-open .acc-inner { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .acc-btn { grid-template-columns: 40px minmax(0,1fr) 34px; gap: 10px; }
  .acc-inner { padding-left: 50px; }
}

/* ==========================================================================
   12. ABOUT / SPLIT BLOCKS
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split-narrow { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
@media (max-width: 900px) { .split, .split-narrow { grid-template-columns: 1fr; } }

/* Image stack with offset accent block */
.img-stack { position: relative; }
.img-stack .frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.img-stack .frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1s var(--ease); }
.img-stack:hover .frame img { transform: scale(1.05); }
.img-stack::before {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 46%;
  height: 46%;
  border-radius: var(--r-xl);
  border: 1px solid var(--brand-accent-line);
  background: var(--brand-accent-soft);
  z-index: -1;
}
.img-stack .seal {
  position: absolute;
  top: -22px;
  right: -14px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--brand-ink);
  color: var(--text-dark);
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.5;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-md);
}
.img-stack .seal strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--brand-accent);
  line-height: 1;
  margin-bottom: 2px;
}
@media (max-width: 560px) { .img-stack .seal { width: 88px; height: 88px; top: -14px; right: -6px; } }

/* Bullet feature list */
.feature-list { display: grid; gap: 20px; }
.feature-item { display: flex; gap: 14px; }
.feature-item .tick {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  flex: none;
  margin-top: 3px;
}
.feature-item .tick svg { width: 13px; height: 13px; }
.feature-item h4 { margin-bottom: 4px; }
.feature-item p { color: var(--text-muted); font-size: 0.93rem; }
.bg-ink .feature-item p, .bg-plum .feature-item p { color: var(--text-dark-muted); }

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 34px;
  gap: 18px;
}
.bg-ink .stat-grid, .bg-plum .stat-grid { border-color: var(--line-dark); }
.stat-grid .n {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-grid .n em { font-style: normal; color: var(--brand-accent); }
.stat-grid .l { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); margin-top: 8px; }
.bg-ink .stat-grid .l, .bg-plum .stat-grid .l { color: var(--text-dark-muted); }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

/* Pull quote */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-style: italic;
  border-left: 2px solid var(--brand-accent);
  padding-left: clamp(18px, 3vw, 32px);
  color: inherit;
}
.pull-quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-accent);
}

/* ==========================================================================
   13. TESTIMONIALS (horizontal scroll)
   ========================================================================== */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 4px; }
.rail::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--brand-accent) 60%, transparent); border: 0; border-radius: 99px; }
.rail > * { scroll-snap-align: start; }
.quote-card {
  background: var(--brand-ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.8vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.4s;
}
.quote-card:hover { border-color: var(--brand-accent-line); transform: translateY(-4px); }
.quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--brand-accent);
  height: 22px;
}
.quote-card p {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.42;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
.quote-card .who {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-accent);
}
.rail-nav { display: flex; gap: 10px; }
.rail-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--text-dark);
  display: grid;
  place-items: center;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.rail-btn svg { width: 16px; height: 16px; }
.rail-btn:hover { background: var(--brand-accent); color: var(--on-accent); border-color: transparent; }

/* ==========================================================================
   14. FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.3s;
}
.faq-q:hover { color: var(--brand-accent); }
.faq-ic {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.45s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: currentColor; transition: transform 0.4s var(--ease); }
.faq-ic::before { width: 11px; height: 1.4px; }
.faq-ic::after { width: 1.4px; height: 11px; }
.faq-item.is-open .faq-ic { background: var(--brand-accent); color: var(--on-accent); border-color: transparent; transform: rotate(180deg); }
.faq-item.is-open .faq-ic::after { transform: scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding-bottom: 24px;
  max-width: 68ch;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s 0.1s var(--ease), transform 0.45s 0.1s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { opacity: 1; transform: none; }

/* ==========================================================================
   15. FORMS
   ========================================================================== */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bg-ink .label, .bg-plum .label { color: var(--text-dark-muted); }

.input, .textarea, .select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--text-muted) 72%, transparent); }
.input:hover, .textarea:hover { border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 4px var(--brand-accent-soft);
}
.textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23625B72' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

/* Dark form fields */
.on-dark .input, .on-dark .textarea, .on-dark .select {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-dark);
  color: var(--text-dark);
}
.on-dark .input::placeholder, .on-dark .textarea::placeholder { color: color-mix(in srgb, var(--text-dark-muted) 80%, transparent); }
.on-dark .input:focus, .on-dark .textarea:focus, .on-dark .select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent) 18%, transparent);
  background: rgba(255,255,255,0.07);
}
.on-dark .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A79EB9' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
input[type="date"] { color-scheme: light; }
.on-dark input[type="date"] { color-scheme: dark; }

/* Invalid state set by JS */
.input.is-invalid, .textarea.is-invalid, .select.is-invalid {
  border-color: #E23D3D !important;
  box-shadow: 0 0 0 4px rgba(226, 61, 61, 0.12) !important;
}
.field-error {
  font-size: 0.72rem;
  font-weight: 600;
  color: #C42F2F;
  display: none;
}
.input.is-invalid ~ .field-error, .textarea.is-invalid ~ .field-error { display: block; }

/* Checkbox row */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--brand-paper-2) 70%, #fff);
  transition: border-color 0.3s;
}
.on-dark .check-row { background: rgba(255,255,255,0.035); border-color: var(--line-dark); }
.check-row:hover { border-color: var(--brand-accent-line); }
.check-row input[type="checkbox"] {
  appearance: none;
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
  border: 1.6px solid color-mix(in srgb, var(--text) 30%, transparent);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.25s, border-color 0.25s;
}
.on-dark .check-row input[type="checkbox"] { border-color: rgba(255,255,255,0.32); }
.check-row input[type="checkbox"]:checked { background: var(--brand-accent); border-color: var(--brand-accent); }
.check-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 2px;
  width: 4.5px;
  height: 9px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.check-row label {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  cursor: pointer;
}
.on-dark .check-row label { color: var(--text-dark-muted); }
.check-row a { color: var(--brand-accent); text-decoration: underline; text-underline-offset: 2px; }

/* Form footnote */
.form-note { font-size: 0.76rem; color: var(--text-muted); line-height: 1.6; }
.on-dark .form-note { color: var(--text-dark-muted); }
.form-note a { color: var(--brand-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Button loading spinner */
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: 0.7; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  right: 18px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact info cards — light by default, dark inside dark sections */
.info-card {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info-card:last-child { border-bottom: 0; }
.info-card .ic {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-accent);
  transition: background-color 0.3s, border-color 0.3s;
}
.info-card:hover .ic { border-color: var(--brand-accent-line); }
.info-card .ic svg { width: 18px; height: 18px; }
.info-card .k {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.info-card .v { font-size: 0.95rem; color: var(--text); font-weight: 600; line-height: 1.5; }
.info-card .v a:hover { color: var(--brand-accent); }
.info-card .v small {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 700;
  margin-top: 5px;
}

/* Dark variants */
.bg-ink .info-card, .bg-ink-soft .info-card, .bg-plum .info-card,
.on-dark .info-card, .card-dark .info-card {
  border-color: var(--line-dark);
}
.bg-ink .info-card .ic, .bg-ink-soft .info-card .ic, .bg-plum .info-card .ic,
.on-dark .info-card .ic, .card-dark .info-card .ic {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
}
.bg-ink .info-card .k, .bg-ink-soft .info-card .k, .bg-plum .info-card .k,
.on-dark .info-card .k, .card-dark .info-card .k { color: var(--text-dark-muted); }
.bg-ink .info-card .v, .bg-ink-soft .info-card .v, .bg-plum .info-card .v,
.on-dark .info-card .v, .card-dark .info-card .v { color: var(--text-dark); }

/* ==========================================================================
   16. NEWSLETTER / CTA PANEL
   ========================================================================== */
.cta-panel {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--brand-plum);
  color: var(--text-dark);
  padding: clamp(30px, 5vw, 68px);
  isolation: isolate;
}
.cta-panel::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-accent) 32%, transparent), transparent 62%);
  filter: blur(20px);
  z-index: -1;
}
.cta-panel h2 { max-width: 22ch; }
.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.09);
  pointer-events: none;
}
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   17. FOOTER  (identical on every page)
   ========================================================================== */
.footer {
  background: var(--brand-ink);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  padding-top: clamp(52px, 7vw, 88px);
}
.footer::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: 120%;
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--brand-accent) 16%, transparent), transparent 62%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(26px, 3.4vw, 48px);
  padding-bottom: clamp(38px, 5vw, 62px);
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-about p { color: var(--text-dark-muted); font-size: 0.9rem; margin: 18px 0 20px; max-width: 36ch; }
.footer h5 {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dark-muted);
  margin-bottom: 18px;
}
.footer-links { display: grid; gap: 11px; }
.footer-links a {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--text-dark) 82%, transparent);
  width: fit-content;
  position: relative;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.footer-links a:hover { color: var(--brand-accent); transform: translateX(3px); }
.footer-contact { display: grid; gap: 12px; font-size: 0.9rem; color: var(--text-dark-muted); }
.footer-contact a { color: var(--text-dark); }
.footer-contact a:hover { color: var(--brand-accent); }
.footer-contact .row { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; flex: none; margin-top: 5px; color: var(--brand-accent); }

.footer-mark {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  padding-top: 10px;
}
.footer-wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  user-select: none;
  pointer-events: none;
}
.footer-wordmark text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 130px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.17);
  stroke-width: 1.1;
  letter-spacing: -0.02em;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 74px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.78rem;
  color: var(--text-dark-muted);
}
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-bottom .legal-links a:hover { color: var(--brand-accent); }
.footer-bottom .legal-links .sep { opacity: 0.4; }

/* Back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-ink);
  color: var(--text-dark);
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.3s;
  box-shadow: var(--shadow-md);
}
.to-top svg { width: 17px; height: 17px; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-accent); color: var(--on-accent); border-color: transparent; }

/* ==========================================================================
   18. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-stack {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  right: 18px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(370px, calc(100vw - 28px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 26px;
  align-items: start;
  gap: 11px;
  padding: 14px 14px 16px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--brand-ink) 94%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
  overflow: hidden;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
}
.toast.is-in { transform: translateX(0); opacity: 1; }
.toast.is-out { transform: translateX(calc(100% + 24px)); opacity: 0; }
.toast-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand-accent) 22%, transparent);
  color: var(--brand-accent);
}
.toast-ic svg { width: 16px; height: 16px; }
.toast-body strong { display: block; font-size: 0.85rem; font-weight: 700; line-height: 1.35; color: var(--text-dark); }
.toast-body p { font-size: 0.78rem; line-height: 1.5; color: var(--text-dark-muted); margin-top: 2px; }
.toast-close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-dark-muted);
  transition: color 0.25s, background-color 0.25s;
}
.toast-close svg { width: 12px; height: 12px; }
.toast-close:hover { color: var(--text-dark); background: rgba(255,255,255,0.08); }
.toast-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--brand-accent);
  transform-origin: left;
  animation: toastBar 5.2s linear forwards;
}
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.toast--success .toast-ic { background: rgba(38, 190, 120, 0.18); color: #4ADE9A; }
.toast--success .toast-bar { background: #3ECF8E; }
.toast--error .toast-ic { background: rgba(226, 61, 61, 0.2); color: #FF7A7A; }
.toast--error .toast-bar { background: #E23D3D; }
.toast--info .toast-ic { background: var(--brand-accent-2-soft); color: color-mix(in srgb, var(--brand-accent-2) 70%, #fff); }
.toast--info .toast-bar { background: var(--brand-accent-2); }

@media (max-width: 480px) {
  .toast-stack { top: calc(var(--header-h) + 6px); right: 10px; left: 10px; width: auto; }
}

/* ==========================================================================
   19. LEGAL / PROSE PAGES
   ========================================================================== */
.prose-wrap {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 940px) { .prose-wrap { grid-template-columns: 1fr; } }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  background: #fff;
}
.toc h5 { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
.toc ol { display: grid; gap: 2px; max-height: 62vh; overflow-y: auto; }
.toc a {
  display: block;
  font-size: 0.79rem;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}
.toc a:hover { color: var(--text); background: var(--brand-paper-2); }
.toc a.is-current { color: var(--brand-accent); border-left-color: var(--brand-accent); background: var(--brand-accent-soft); font-weight: 700; }
@media (max-width: 940px) { .toc { position: static; order: -1; } .toc ol { max-height: none; } }

.prose { max-width: 76ch; }
.prose > * + * { margin-top: 22px; }
.prose .clause {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose .clause:first-child { border-top: 0; padding-top: 0; }
.prose h2 {
  font-size: clamp(1.15rem, 1.9vw, 1.44rem);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  line-height: 1.25;
}
.prose p { color: var(--text-muted); font-size: 0.96rem; line-height: 1.75; }
.prose strong { color: var(--text); }
.prose-note {
  border: 1px solid var(--brand-accent-line);
  background: var(--brand-accent-soft);
  border-radius: var(--r-md);
  padding: 18px 20px;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  gap: 12px;
}
.prose-note svg { width: 18px; height: 18px; flex: none; color: var(--brand-accent); margin-top: 3px; }
.prose-note a { color: var(--brand-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Small info band with meta */
.meta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  margin-bottom: 36px;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.meta-band strong { color: var(--text); font-weight: 700; }

/* ==========================================================================
   20. SCROLL REVEAL
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
@media (max-width: 900px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(24px); }
}
[data-reveal="scale"] { transform: scale(0.955); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Reveal word-by-word for headings */
.reveal-words span { display: inline-block; overflow: hidden; vertical-align: bottom; }
.reveal-words span > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.reveal-words.is-visible span > i { transform: translateY(0); }

/* ==========================================================================
   21. MISC UTILITIES
   ========================================================================== */
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }
.flex { display: flex; }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 10px; }
.gap { gap: 18px; }
.gap-lg { gap: 28px; }
.mt-sm { margin-top: 12px; }
.mt { margin-top: 22px; }
.mt-lg { margin-top: 36px; }
.mb { margin-bottom: 22px; }
.accent { color: var(--brand-accent); }
.muted { color: var(--text-muted); }
.on-dark-muted { color: var(--text-dark-muted); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #fff;
}
.bg-ink .tag, .bg-plum .tag { border-color: var(--line-dark); background: rgba(255,255,255,0.05); color: var(--text-dark-muted); }
.tag.is-accent { border-color: var(--brand-accent-line); background: var(--brand-accent-soft); color: var(--brand-accent); }

/* Divider with label */
.divider-label {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}
.divider-label::before, .divider-label::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.bg-ink .divider-label, .bg-plum .divider-label { color: var(--text-dark-muted); }
.bg-ink .divider-label::before, .bg-ink .divider-label::after { background: var(--line-dark); }

/* Value cards with big serif numbers */
.value-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 28px);
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.4s;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-accent-line); }
.value-card .big {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brand-accent-soft);
  -webkit-text-stroke: 1px var(--brand-accent-line);
  color: transparent;
  margin-bottom: 14px;
  transition: -webkit-text-stroke-color 0.4s;
}
.value-card:hover .big { -webkit-text-stroke-color: var(--brand-accent); }
.value-card h4 { margin-bottom: 7px; }
.value-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Timeline-ish process */
.process { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.process-step {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: padding-inline 0.4s var(--ease), background-color 0.4s;
}
.process-step:hover { padding-inline: 12px; background: rgba(255,255,255,0.03); }
.process-step .n {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand-accent);
  line-height: 1;
}
.process-step h4 { color: var(--text-dark); margin-bottom: 6px; }
.process-step p { color: var(--text-dark-muted); font-size: 0.92rem; max-width: 62ch; }
@media (max-width: 640px) { .process-step { grid-template-columns: 44px minmax(0,1fr); gap: 12px; } }

/* Marquee of service names on about/services */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   22. PRELOADER-FREE PAGE FADE
   ========================================================================== */
.page-fade { animation: pageIn 0.6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   23. REDUCED MOTION
   ========================================================================== */
@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;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero h1 .line > span, .hero-sub, .hero-cta, .hero-frame { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .reveal-words span > i { transform: none !important; }
}

/* ==========================================================================
   24. READY-MADE PALETTES  — paste over § 01 to instantly re-skin
   --------------------------------------------------------------------------
   A. EMBER & PLUM (current / default)
      --brand-ink:#100D1A; --brand-ink-soft:#1B1626; --brand-plum:#2B2140;
      --brand-paper:#F5F2F7; --brand-paper-2:#EAE5F0;
      --brand-accent:#FF5C39; --brand-accent-2:#7B61FF;

   B. MIDNIGHT & ELECTRIC BLUE
      --brand-ink:#080D1A; --brand-ink-soft:#101A2E; --brand-plum:#152238;
      --brand-paper:#F2F5FA; --brand-paper-2:#E4EAF4;
      --brand-accent:#2F6BFF; --brand-accent-2:#00C2A8;

   C. CHARCOAL & MUSTARD
      --brand-ink:#131313; --brand-ink-soft:#1E1E1E; --brand-plum:#2A2721;
      --brand-paper:#F6F4EF; --brand-paper-2:#EDE9E0;
      --brand-accent:#E8A33D; --brand-accent-2:#C4553F;

   D. OXBLOOD & ROSE
      --brand-ink:#190A12; --brand-ink-soft:#25121C; --brand-plum:#371B27;
      --brand-paper:#F8F1F2; --brand-paper-2:#F0E3E6;
      --brand-accent:#C9385E; --brand-accent-2:#F0A6B8;

   E. GRAPHITE & SKY
      --brand-ink:#0E1113; --brand-ink-soft:#171C1F; --brand-plum:#1F2A32;
      --brand-paper:#F1F4F6; --brand-paper-2:#E3E9ED;
      --brand-accent:#3AA6F0; --brand-accent-2:#9B7BFF;
   ========================================================================== */
