/* =============================================================================
   CYCLISTLAW — Design System
   Dark cinematic rider-culture editorial. Near-black canvas, signal-red accent.
   Dials: VARIANCE 8 / MOTION 7 / DENSITY 4.  Theme: dark, locked (one theme).
   Stack: static HTML/CSS/JS. Fonts: Anton (display) + Archivo (UI/body) + JetBrains Mono (stamps).
   ============================================================================= */

/* ------------------------------- Tokens ---------------------------------- */
:root {
  /* Ink / surfaces (warm near-black, never pure #000) */
  --ink:        #0b0b0d;
  --ink-1:      #101013;
  --ink-2:      #16161a;
  --ink-3:      #1e1e23;
  --line:       rgba(255,255,255,0.10);
  --line-2:     rgba(255,255,255,0.16);

  /* Text */
  --bone:       #f4f2ef;   /* primary text */
  --smoke:      #a7a7ad;   /* secondary text */
  --smoke-2:    #6f6f77;   /* muted / meta */

  /* Accent — signal red, drawn from the winged-shield logo */
  --red:        #e4231c;
  --red-hi:     #ff3b2e;   /* hover / bright */
  --red-deep:   #b3160f;
  --red-tint:   rgba(228,35,28,0.14);
  --red-glow:   rgba(228,35,28,0.30);

  /* Type families */
  --font-display: "Anton", "Archivo", system-ui, sans-serif;
  --font-sans:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Rhythm */
  --container: 1280px;
  --container-wide: 1480px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3rem, 5vw, 5rem);
  --radius: 4px;          /* shape lock: sharp/near-sharp everywhere */
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.5s;

  /* Layers */
  --z-nav: 100;
  --z-overlay: 200;
  --z-grain: 300;
}

/* ------------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

/* ------------------------------ Typography -------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.01em; }
h4, h5, h6 { font-family: var(--font-sans); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }

.h-xxl { font-family: var(--font-display); text-transform: uppercase; line-height: 0.9; letter-spacing: 0.005em;
         font-size: clamp(2.6rem, 6.4vw, 6rem); }
.h-xl  { font-family: var(--font-display); text-transform: uppercase; line-height: 0.92;
         font-size: clamp(2.6rem, 6.5vw, 5.5rem); }
.h-lg  { font-family: var(--font-display); text-transform: uppercase; line-height: 0.95;
         font-size: clamp(2rem, 4.5vw, 3.6rem); }
.h-md  { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
         font-size: clamp(1.4rem, 2.4vw, 2rem); text-transform: none; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--smoke); line-height: 1.55; max-width: 56ch; }
.body-lg { font-size: 1.12rem; color: var(--smoke); line-height: 1.65; max-width: 65ch; }
p { max-width: 65ch; }
.text-accent { color: var(--red); }
strong { font-weight: 700; color: var(--bone); }

/* Small mono stamp — used sparingly (eyebrow discipline) */
.stamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.stamp::before { content: ""; width: 1.6rem; height: 1px; background: var(--red); display: inline-block; }

/* ------------------------------- Layout ---------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }
.bg-1 { background: var(--ink-1); }
.bg-2 { background: var(--ink-2); }
.divider-top { border-top: 1px solid var(--line); }

/* ------------------------------- Buttons --------------------------------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 1rem 1.75rem; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn:hover { background: var(--red-hi); transform: translateY(-2px); box-shadow: 0 12px 30px -8px var(--red-glow); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .ico { width: 1.05em; height: 1.05em; transition: transform 0.2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--bone);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { --btn-bg: rgba(255,255,255,0.06); background: rgba(255,255,255,0.06); border-color: var(--bone); box-shadow: none; }
.btn--lg { padding: 1.2rem 2.25rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* Inline text link with animated underline */
.link {
  color: var(--bone); font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s var(--ease);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 2px; color: #fff; }
.link .ico { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.link:hover .ico { transform: translateX(3px); }

/* --------------------------- Header / Nav -------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: 72px; display: flex; align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), height 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11,11,13,0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  height: 64px;
}
.nav { display: flex; align-items: center; gap: 2rem; width: 100%; }
.nav__logo { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav__link {
  font-size: 0.9rem; font-weight: 600; color: var(--smoke); letter-spacing: 0.01em;
  transition: color 0.2s var(--ease); position: relative; padding-block: 0.4rem;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--bone); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--red);
}
.nav__cta { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }
.nav__phone { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; color: var(--bone);
              display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.nav__phone .ico { width: 1em; height: 1em; color: var(--red); }
.nav__phone:hover { color: var(--red-hi); }

/* Dropdown (Practice Areas / Areas We Serve) */
.nav__item { position: relative; }
.nav__item > .nav__link { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav__caret { width: 0.7em; height: 0.7em; transition: transform 0.2s var(--ease); }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 0.35rem); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 0.6rem; min-width: 260px; display: grid; gap: 0.15rem;
  opacity: 0; visibility: hidden; transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}
/* Invisible bridge across the gap so the menu doesn't disappear on the way down */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -0.7rem; height: 0.7rem; }
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* keep the trigger active while the pointer travels to the panel */
.nav__item > .nav__link { position: relative; }
.dropdown a {
  padding: 0.7rem 0.9rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; color: var(--smoke);
  transition: background 0.18s var(--ease), color 0.18s var(--ease); display: flex; align-items: center; justify-content: space-between;
}
.dropdown a:hover { background: var(--ink-3); color: var(--bone); }
.dropdown a .ico { width: 0.9em; height: 0.9em; opacity: 0; transform: translateX(-4px); transition: all 0.18s var(--ease); color: var(--red); }
.dropdown a:hover .ico { opacity: 1; transform: translateX(0); }

/* Hamburger */
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; flex: 0 0 44px; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--bone); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 27px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1);
  background: var(--ink); padding: 96px var(--gutter) 2rem;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
  overflow-y: auto; display: flex; flex-direction: column; gap: 0.25rem;
}
body.menu-open .mobile-nav { transform: translateX(0); }
body.menu-open { overflow: hidden; } /* lock the page behind the open drawer */
.mobile-nav > a:not(.btn):not(.mobile-nav__phone), .mobile-nav__group > summary {
  font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; line-height: 1.2; color: var(--bone);
  padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.mobile-nav__group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.mobile-nav__group > summary::-webkit-details-marker { display: none; }
.mobile-nav__group > summary .nav__caret { width: 1.1rem; height: 1.1rem; color: var(--red); transition: transform 0.25s var(--ease); }
.mobile-nav__group[open] > summary .nav__caret { transform: rotate(180deg); }
.mobile-nav a.sub { display: block; font-family: var(--font-sans); font-size: 1.02rem; font-weight: 600; color: var(--smoke);
  padding: 0.7rem 0 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.mobile-nav a.sub[aria-current="page"] { color: var(--bone); box-shadow: inset 2px 0 0 var(--red); }
.mobile-nav .btn { margin-top: 1.5rem; flex: 0 0 auto; }
.mobile-nav__phone { margin-top: 1rem; font-family: var(--font-mono); color: var(--red-hi); font-size: 1.1rem; text-align: center; }

/* --------------------------------- Hero ---------------------------------- */
.hero { position: relative; min-height: 100dvh; display: flex; flex-direction: column; }
.hero__top { flex: 1 1 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch; }
.hero__content { display: flex; flex-direction: column; justify-content: center; padding: 88px var(--gutter) 1.5rem; max-width: 720px; margin-left: auto; }
.hero__rating { display: inline-flex; align-items: center; margin-top: 1.25rem; transition: transform 0.2s var(--ease); }
.hero__rating:hover { transform: translateY(-2px); }
.hero__rating img { height: 124px; width: auto; }

/* Hero awards marquee (infinite scroll, edge fade, transparent) */
.hero__awards-label { border-top: 1px solid var(--line); margin-top: clamp(1.25rem, 2.5vw, 2rem); padding-top: clamp(1.1rem, 2.2vw, 1.6rem); padding-inline: var(--gutter); text-align: center; font-family: var(--font-mono); font-size: clamp(0.68rem, 1.2vw, 0.8rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--smoke); }
.hero__marquee { position: relative; flex: 0 0 auto; background: transparent;
  padding-block: 1rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.marquee__track { display: flex; align-items: center; gap: clamp(3rem, 6vw, 5.5rem); width: max-content; animation: marquee 44s linear infinite; }
.hero__marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 104px; width: auto; opacity: 0.95; filter: saturate(1.05); flex: 0 0 auto; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero__eyebrow { margin-bottom: 1.5rem; }
.hero__title { margin-bottom: 1.5rem; }
/* Sized so "Insurance Company." holds one line in the desktop column (3-line lockup) */
.hero__title.h-xxl { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.hero__title .l1 { display: block; color: var(--bone); }
.hero__title .l2 { display: block; color: var(--red); }
.hero__sub { color: var(--smoke); font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 46ch; margin-bottom: 1.5rem; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__terms { display: none; } /* phones only: stands in for the hidden sub */
.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 28%; }
.hero__media::before { /* left-edge blend into content */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(11,11,13,0.4) 22%, rgba(11,11,13,0) 55%),
              linear-gradient(0deg, rgba(11,11,13,0.5) 0%, rgba(11,11,13,0) 40%);
}
.hero__tag { position: absolute; z-index: 2; bottom: 2rem; right: var(--gutter); font-family: var(--font-mono);
             font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--smoke); }
.hero__scrim { display: none; }

/* --------------------------- Trust / logo strip -------------------------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-1); }
.trust__inner { display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; justify-content: space-between; padding-block: 1.5rem; }
.trust__rating { display: flex; align-items: center; gap: 0.9rem; }
.trust__rating img { height: 46px; width: auto; }
.trust__stars { display: flex; flex-direction: column; }
.trust__stars b { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.trust__stars span { font-size: 0.78rem; color: var(--smoke); }
.trust__badges { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap; }
.trust__badges img { height: 60px; width: auto; opacity: 0.92; filter: saturate(1); transition: opacity 0.2s var(--ease); }
.trust__badges img:hover { opacity: 1; }

/* -------------------------------- Stat row ------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--ink); padding: 2rem clamp(1rem, 2.5vw, 2rem); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 0.9; color: var(--bone); }
.stat__num .u { color: var(--red); }
.stat__label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke); margin-top: 0.75rem; }

/* Stats CTA row */
.stats-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; }
.stats-cta p { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1; margin: 0; max-width: 22ch; }
.stats-cta p .text-accent { color: var(--red); }

/* ------------------------------ Section head ----------------------------- */
.sec-head { max-width: 60ch; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.sec-head--wide { max-width: none; }
.sec-head--wide .lead { max-width: 60ch; }
.sec-head .lead { margin-top: 1.25rem; }

/* ----------------------------- Founder block ----------------------------- */
.founder { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.founder__media { position: relative; }
.founder__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; border-radius: var(--radius-lg); }
/* Crossfading two-image slideshow */
.founder__slides { position: relative; width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); }
.founder__slides .fslide { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
  object-fit: cover; object-position: center 30%; border-radius: 0; opacity: 0; animation: fslides 14s infinite; }
.founder__slides .fslide:nth-child(2) { animation-delay: 7s; }
.founder__slides .fslide--team { object-position: 20% 30%; }
@keyframes fslides { 0% { opacity: 0; } 4% { opacity: 1; } 46% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .founder__slides .fslide { animation: none; opacity: 0; }
  .founder__slides .fslide:first-child { opacity: 1; }
}
.founder__media .cap { position: absolute; left: 1.25rem; bottom: 1.25rem; right: 1.25rem;
  background: linear-gradient(0deg, rgba(11,11,13,0.9), transparent); padding: 2.5rem 0 0; }
.founder__badges { display: flex; gap: 1.4rem; margin-top: 2rem; flex-wrap: wrap; align-items: center; }
.founder__badges img { height: 116px; width: auto; }
.founder__quote { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.02; margin: 1.5rem 0; }
.founder__quote .text-accent { color: var(--red); }

/* --------------------------- Practice areas grid ------------------------- */
.practice { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 1rem; }
.pa {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 192px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
  border: 1px solid var(--line); background: var(--ink-2);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
  isolation: isolate;
}
.pa:hover { transform: translateY(-4px); border-color: var(--line-2); }
.pa__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: transform 0.6s var(--ease), opacity 0.4s var(--ease); }
.pa:hover .pa__img { transform: scale(1.06); opacity: 0.7; }
.pa::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(11,11,13,0.95) 8%, rgba(11,11,13,0.35) 70%, rgba(11,11,13,0.5) 100%); }
.pa__num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--red); letter-spacing: 0.14em; margin-bottom: auto; }
.pa__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; line-height: 0.98; margin-bottom: 0.5rem; }
.pa__desc { font-size: 0.9rem; color: var(--smoke); margin-bottom: 0.9rem; max-width: 32ch; }
.pa__link { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--bone); display: inline-flex; align-items: center; gap: 0.4rem; text-transform: uppercase; }
.pa__link .ico { width: 1em; height: 1em; color: var(--red); transition: transform 0.2s var(--ease); }
.pa:hover .pa__link .ico { transform: translateX(4px); }
/* Featured (Bicycle + Motorcycle) span two columns each on the top row */
.pa--feature { grid-column: span 2; min-height: 264px; }
.pa--feature .pa__title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.pa--feature .pa__desc { max-width: 44ch; font-size: 1rem; }

/* -------------------------------- Verdicts ------------------------------- */
.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.verdict { border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--ink-1); padding: 2rem; border-radius: 0 0 var(--radius) var(--radius); }
.verdict__amt { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 0.9; color: var(--bone); }
.verdict__type { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-top: 0.75rem; }
.verdict__desc { color: var(--smoke); font-size: 0.92rem; margin-top: 0.75rem; }
.case-studies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.case-study { border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--ink-1); padding: 1.75rem; border-radius: 0 0 var(--radius) var(--radius); }
.case-study__amt { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 0.9; color: var(--bone); }
.case-study__type { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-top: 0.7rem; }
.case-study__desc { color: var(--smoke); font-size: 0.9rem; margin-top: 0.7rem; line-height: 1.5; }

/* --------------------------------- Process ------------------------------- */
.process { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step__n { font-family: var(--font-display); font-size: 2rem; color: var(--red); line-height: 1; min-width: 2.5rem; }
.step__t { font-family: var(--font-sans); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.step__d { color: var(--smoke); font-size: 0.95rem; }

/* ------------------------------ Testimonial ------------------------------ */
.quote-block { max-width: 44ch; }
.quote-block .stamp { margin-bottom: 1.75rem; }
.quote-block blockquote { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.05; }
.quote-block cite { display: block; margin-top: 1.75rem; font-style: normal; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; color: var(--smoke); text-transform: uppercase; }

/* ------------------------------ Service area ----------------------------- */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.area__cols { columns: 2; column-gap: 2rem; }
.area__cols li { break-inside: avoid; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.area__cols a { color: var(--smoke); font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; justify-content: space-between; transition: color 0.18s var(--ease); }
.area__cols a:hover { color: var(--bone); }
.area__cols a .ico { color: var(--red); width: 0.9em; height: 0.9em; opacity: 0; transform: translateX(-4px); transition: all 0.18s var(--ease); }
.area__cols a:hover .ico { opacity: 1; transform: translateX(0); }
.area__map { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.area__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* -------------------------------- CTA band ------------------------------- */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band__inner { position: relative; z-index: 2; max-width: 40ch; margin-inline: auto; }
.cta-band h2 { font-size: clamp(2.4rem, 6vw, 5rem); margin-bottom: 1.25rem; }
.cta-band .lead { margin: 0 auto 2.25rem; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(60% 120% at 50% 0%, var(--red-tint), transparent 70%); }

/* ------------------------------- Reviews --------------------------------- */
.reviews { max-width: 1120px; margin-inline: auto; }
.reviews .sec-head { margin-inline: auto; text-align: center; }
.reviews .sec-head .lead { margin-inline: auto; }
.reviews__embed { margin-top: 2.5rem; }
.reviews__embed .lmr-wrap { border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 70px -30px rgba(0,0,0,0.7); overflow: hidden; background: #fff; }

/* --------------------------- Promise + intake ---------------------------- */
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
/* Let grid children shrink instead of forcing the track wider than the viewport
   (grid tracks default to min-width:auto, which overflows on narrow screens). */
.stats > *, .practice > *, .verdicts > *, .case-studies > *, .promise-grid > *,
.community > *, .community__photos > *, .area > *, .process > *, .founder > *,
.event-cards > *, .form-grid > *, .team-grid > *, .reviews > *,
.contact-grid > *, .layout > * { min-width: 0; }
.quote-block blockquote { overflow-wrap: break-word; }
.intake { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.intake h3 { font-family: var(--font-sans); font-weight: 800; text-transform: none; font-size: 1.35rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.intake p.sub { color: var(--smoke); font-size: 0.92rem; margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--smoke); }
.field input, .field textarea, .field select {
  background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--bone);
  padding: 0.85rem 0.95rem; font: inherit; font-size: 0.95rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: var(--smoke-2); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.field textarea { resize: vertical; min-height: 110px; }
.form__status { margin-top: 1rem; font-size: 0.9rem; min-height: 1.2em; }
.form__status.ok { color: #46d17f; }
.form__status.err { color: var(--red-hi); }
.form__hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form__fineprint { font-size: 0.76rem; color: var(--smoke-2); margin-top: 1rem; line-height: 1.5; }

/* Testimonials CTA row */
.reviews__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.25rem; }

/* Responsive video embed (16:9) */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* In-article images (ported blog posts) */
.prose img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin: 1.75rem 0; }
.prose figure { margin: 1.75rem 0; }
.prose figure img { margin: 0; }
.prose figcaption { color: var(--smoke); font-size: 0.85rem; margin-top: 0.6rem; font-style: italic; }

/* Author byline + E-E-A-T author box (blog posts) */
.byline { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--smoke); margin-bottom: 1.75rem; }
.byline__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex: none; }
.byline a { color: var(--bone); }
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; margin-top: 3rem; padding: 1.75rem; background: var(--ink-1); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); }
.author-box__photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.author-box__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.author-box__name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; line-height: 1; margin: 0.3rem 0; }
.author-box__name a { color: var(--bone); }
.author-box__role { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--smoke); margin-bottom: 0.85rem; }
.author-box__bio { color: var(--smoke); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 560px) { .author-box { grid-template-columns: 1fr; gap: 1rem; } .author-box__photo { width: 90px; height: 90px; } }

/* Blog index */
.blog-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.25rem; }
.blog-list > * { min-width: 0; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ink-1); transition: border-color 0.2s, transform 0.2s; }
.blog-card:hover { border-color: var(--red); transform: translateY(-2px); }
.blog-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }
.blog-card__body { padding: 1.4rem; }
.blog-card__title { font-family: var(--font-sans); font-weight: 800; font-size: 1.1rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--bone); }
.blog-card__excerpt { color: var(--smoke); font-size: 0.92rem; line-height: 1.55; margin-top: 0.6rem; }
.blog-card__more { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
@media (max-width: 680px) { .blog-list { grid-template-columns: 1fr; } }

/* Our Community */
.community { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.community__intro { max-width: 48ch; }
.community__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.community__photos img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.community__photos img:first-child { aspect-ratio: 3 / 4; }
.community__events { margin-top: clamp(2.5rem, 5vw, 4rem); }
.event-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.event-card { border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--ink-1); border-radius: 0 0 var(--radius) var(--radius); padding: 1.6rem; }
.event-card__date { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.event-card__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; line-height: 0.95; margin: 0.55rem 0 0.6rem; color: var(--bone); }
.event-card__desc { color: var(--smoke); font-size: 0.92rem; line-height: 1.5; }

/* Modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4,4,6,0.74); backdrop-filter: blur(4px); animation: modalFade 0.2s ease; }
.modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; background: var(--ink-1); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); animation: modalRise 0.24s cubic-bezier(0.16,0.8,0.3,1); }
.modal__close { position: absolute; top: 0.6rem; right: 0.85rem; background: none; border: none; color: var(--smoke); font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0.25rem 0.5rem; }
.modal__close:hover { color: var(--bone); }
.modal__sub { color: var(--smoke); margin: 0.5rem 0 1.4rem; }
.modal__captcha { margin-top: 1.1rem; }
body.modal-open { overflow: hidden; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal__backdrop, .modal__dialog { animation: none; } }

/* --------------------- Stacked scroll (home only) ------------------------ */
/* beintech-style: each panel sticks at top, next slides up and covers it. */
@media (min-width: 900px) {
  body[data-page="home"] .hero,
  body[data-page="home"] .section {
    position: sticky; top: 0; min-height: 100vh;
    background-color: var(--ink);
    box-shadow: 0 -24px 60px -30px rgba(0,0,0,0.9);
  }
  body[data-page="home"] .section {
    display: flex; flex-direction: column; justify-content: center;
    padding-block: clamp(2rem, 3.2vw, 3.25rem);
  }
  body[data-page="home"] .section.bg-1 { background-color: var(--ink-1); }
  body[data-page="home"] .section.bg-2 { background-color: var(--ink-2); }
  body[data-page="home"] .site-footer { position: relative; z-index: 3; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .hero,
  body[data-page="home"] .section { position: static; min-height: 0; box-shadow: none; }
}

/* --------------------------------- Footer -------------------------------- */
.site-footer { background: var(--ink-1); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__brand img { height: 52px; margin-bottom: 1.25rem; }
.footer__brand p { color: var(--smoke); font-size: 0.9rem; max-width: 34ch; }
.footer__col h5 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--smoke-2); margin-bottom: 1.25rem; }
.footer__col a { display: block; color: var(--smoke); font-size: 0.92rem; font-weight: 500; padding: 0.35rem 0; transition: color 0.18s var(--ease); }
.footer__col a:hover { color: var(--bone); }
.footer__contact a { color: var(--bone); font-weight: 600; }
.footer__socials { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer__socials a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; color: var(--smoke); transition: all 0.2s var(--ease); }
.footer__socials a:hover { color: #fff; border-color: var(--red); background: var(--red); }
.footer__socials .ico { width: 1.1rem; height: 1.1rem; }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer__bar p, .footer__bar a { font-size: 0.8rem; color: var(--smoke-2); }
.footer__bar a:hover { color: var(--smoke); }
.footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__disclaimer { font-size: 0.76rem; color: var(--smoke-2); margin-top: 1.5rem; max-width: 90ch; line-height: 1.6; }

/* ------------------------------- Grain layer ----------------------------- */
.grain { position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* -------------------- Floating contact widget (all pages) ---------------- */
.cwidget { position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: var(--z-overlay); display: flex; flex-direction: column; align-items: flex-end; gap: 0.85rem;
  pointer-events: none; } /* the box spans the closed panel's area: let taps fall through to the page */
.cwidget__fab { pointer-events: auto; }
body.menu-open .cwidget { display: none; }

.cwidget__fab { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; height: 56px;
  padding: 0 1.35rem; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--font-sans);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  box-shadow: 0 14px 34px -10px var(--red-glow), 0 6px 16px -8px rgba(0,0,0,0.6);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease); }
.cwidget__fab:hover { background: var(--red-hi); transform: translateY(-2px); }
.cwidget__fab:active { transform: translateY(0) scale(0.97); }
.cwidget__fab .ico { width: 1.35rem; height: 1.35rem; }
.cwidget__fab .fab-close { display: none; }
.cwidget.open .cwidget__fab .fab-open { display: none; }
.cwidget.open .cwidget__fab .fab-close { display: inline-flex; }
.cwidget.open .cwidget__fab .cwidget__fab-label { display: none; }
/* gentle attention pulse (stops on hover/open/reduced-motion) */
.cwidget__fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(228,35,28,0.5); animation: cpulse 2.8s ease-out infinite; }
.cwidget.open .cwidget__fab::after, .cwidget__fab:hover::after { animation: none; }
@keyframes cpulse { 0% { box-shadow: 0 0 0 0 rgba(228,35,28,0.45); } 70% { box-shadow: 0 0 0 16px rgba(228,35,28,0); } 100% { box-shadow: 0 0 0 0 rgba(228,35,28,0); } }

.cwidget__panel { width: min(320px, calc(100vw - 2rem)); background: var(--ink-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 70px -24px rgba(0,0,0,0.8);
  transform-origin: bottom right; opacity: 0; transform: translateY(12px) scale(0.96); pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease); }
.cwidget.open .cwidget__panel { opacity: 1; transform: none; pointer-events: auto; }
.cwidget__head { padding: 1.2rem 1.25rem; background: linear-gradient(180deg, var(--red-tint), transparent); border-bottom: 1px solid var(--line); }
.cwidget__head b { font-family: var(--font-display); text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.01em; display: block; }
.cwidget__head p { font-size: 0.82rem; color: var(--smoke); margin-top: 0.2rem; max-width: none; }
.cwidget__opt { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--line); transition: background 0.16s var(--ease); }
.cwidget__opt:last-child { border-bottom: 0; }
.cwidget__opt:hover { background: var(--ink-3); }
.cwidget__opt .oico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line-2); color: var(--red); }
.cwidget__opt .oico svg { width: 1.1rem; height: 1.1rem; }
.cwidget__opt b { font-size: 0.92rem; font-weight: 700; display: block; color: var(--bone); }
.cwidget__opt small { font-size: 0.78rem; color: var(--smoke); }

@media (max-width: 560px) {
  .cwidget__fab-label { display: none; }
  .cwidget__fab { padding: 0; width: 56px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cwidget__fab::after { animation: none; }
  .cwidget__panel { transition: opacity 0.01ms; }
}

/* ------------------------------ Scroll reveal ---------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* --------------------------------- Utilities ----------------------------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.hide-mobile { }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 0.75rem 1rem; z-index: 999; }
.skip-link:focus { left: 0; }

/* ============================ Interior pages ============================= */
/* Compact page hero (all non-home pages) */
.page-hero { position: relative; overflow: hidden; padding: clamp(7rem, 11vw, 9.5rem) 0 clamp(2.75rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line); background: var(--ink-1); }
.page-hero__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(11,11,13,0.55) 45%, rgba(11,11,13,0.35) 100%),
              linear-gradient(0deg, var(--ink-1), rgba(16,16,19,0.2)); }
.page-hero > .container-wide { position: relative; z-index: 2; }
/* Service-area (geo) pages: let the image read more clearly (lighter overlay) */
body[data-page="geo"] .page-hero__img { opacity: 0.6; }
body[data-page="geo"] .page-hero::after {
  background: linear-gradient(90deg, rgba(11,11,13,0.9) 0%, rgba(11,11,13,0.5) 42%, rgba(11,11,13,0.12) 100%),
              linear-gradient(0deg, rgba(11,11,13,0.55), transparent 55%); }
.page-hero h1 { margin: 0.75rem 0 1rem; }
.page-hero .lead { margin-bottom: 1.75rem; }
.page-hero__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--smoke-2); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--smoke); }
.breadcrumb a:hover { color: var(--bone); }
.breadcrumb .sep { color: var(--red); }

/* Long-form content */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; margin-top: 2.5rem; }
.prose h3 { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.01em; font-size: 1.25rem; text-transform: none; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--smoke); line-height: 1.7; }
.prose strong { color: var(--bone); }
.prose .intro-lead { font-size: 1.12rem; color: var(--smoke); }
.prose a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red); }
.prose a:hover { color: var(--red-hi); }
.prose ul { display: grid; gap: 0.6rem; margin-top: 1rem; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.7rem; height: 2px; background: var(--red); }

/* Two-column content + sticky aside */
.layout { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.aside { position: sticky; top: 96px; display: grid; gap: 1.25rem; }
.card-box { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.card-box h3 { font-family: var(--font-sans); font-weight: 800; font-size: 1.1rem; text-transform: none; margin-bottom: 0.9rem; }

/* Feature/point list with icon dots */
.points { display: grid; gap: 1.25rem; }
.point { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.point__n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--red); padding-top: 0.15rem; }
.point b { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.point p { color: var(--smoke); font-size: 0.95rem; margin: 0; }

/* FAQ accordion (paired with main.js [data-accordion]) */
.acc { max-width: 78ch; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item:first-child { border-top: 1px solid var(--line); }
.acc__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.3rem 0; font-family: var(--font-sans); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--bone); cursor: pointer; }
.acc__q .acc__ico { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; position: relative; }
.acc__q .acc__ico::before, .acc__q .acc__ico::after { content: ""; position: absolute; background: var(--red); transition: transform 0.3s var(--ease); }
.acc__q .acc__ico::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.acc__q .acc__ico::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.acc__item.open .acc__q .acc__ico::after { transform: translateX(-50%) scaleY(0); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.acc__a p { padding-bottom: 1.3rem; color: var(--smoke); line-height: 1.7; max-width: 68ch; }
.acc__a a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .oico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--red); }
.info-row .oico svg { width: 1.15rem; height: 1.15rem; }
.info-row small { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke-2); }
.info-row b { font-size: 1.02rem; font-weight: 700; }
.info-row a { color: var(--bone); }
.info-row a:hover { color: var(--red-hi); }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); }
.team-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; }
.team-card__body { padding: 1.1rem 1.25rem 1.4rem; }
.team-card h3 { font-family: var(--font-sans); text-transform: none; font-weight: 800; font-size: 1.1rem; margin-bottom: 0.15rem; }
.team-card p { color: var(--red); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* ============================== Arabic / RTL ============================= */
/* Arabic uses Cairo; Latin display faces (Anton) have no Arabic glyphs. */
html[lang="ar"] {
  --font-display: "Cairo", "Archivo", system-ui, sans-serif;
  --font-sans: "Cairo", "Archivo", system-ui, sans-serif;
  --font-mono: "Cairo", "Archivo", system-ui, sans-serif;
}
html[lang="ar"] body { direction: rtl; }
/* Arabic script is cursive: letter-spacing breaks it, uppercase is meaningless */
html[lang="ar"] * { letter-spacing: normal !important; text-transform: none !important; }
html[lang="ar"] .h-xxl, html[lang="ar"] .h-xl, html[lang="ar"] .h-lg,
html[lang="ar"] .display, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.18; }
html[lang="ar"] .hero__title .l1, html[lang="ar"] .hero__title .l2 { line-height: 1.12; }

/* Flip directional arrow icons */
html[dir="rtl"] .btn .ico, html[dir="rtl"] .pa__link .ico, html[dir="rtl"] .link .ico,
html[dir="rtl"] .area__cols a .ico, html[dir="rtl"] .dropdown a .ico,
html[dir="rtl"] .info-row .ico, html[dir="rtl"] .cwidget__opt .oico svg { transform: scaleX(-1); }

/* stamp accent line sits on the correct side automatically (flex reverses) */
html[dir="rtl"] .stamp::before { /* keep */ }

/* Nav */
html[dir="rtl"] .nav__links { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .mobile-nav a.sub { padding: 0.7rem 1rem 0.7rem 0; }
html[dir="rtl"] .mobile-nav a.sub[aria-current="page"] { box-shadow: inset -2px 0 0 var(--red); }

/* Hero split: text column on the right, media on the left */
html[dir="rtl"] .hero__content { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .hero__media::before {
  background: linear-gradient(270deg, var(--ink) 0%, rgba(11,11,13,0.4) 22%, rgba(11,11,13,0) 55%),
              linear-gradient(0deg, rgba(11,11,13,0.5) 0%, rgba(11,11,13,0) 40%); }
html[dir="rtl"] .hero__media img { object-position: 45% 28%; }
html[dir="rtl"] .hero__tag { right: auto; left: var(--gutter); }
html[dir="rtl"] .marquee__track { animation-direction: reverse; }

/* Page hero scrim mirrored */
html[dir="rtl"] .page-hero::after {
  background: linear-gradient(270deg, var(--ink) 0%, rgba(11,11,13,0.55) 45%, rgba(11,11,13,0.35) 100%),
              linear-gradient(0deg, var(--ink-1), rgba(16,16,19,0.2)); }
html[dir="rtl"][lang="ar"] body[data-page="geo"] .page-hero::after {
  background: linear-gradient(270deg, rgba(11,11,13,0.9) 0%, rgba(11,11,13,0.5) 42%, rgba(11,11,13,0.12) 100%),
              linear-gradient(0deg, rgba(11,11,13,0.55), transparent 55%); }

/* Prose list bullets on the right */
html[dir="rtl"] .prose ul li { padding-left: 0; padding-right: 1.6rem; }
html[dir="rtl"] .prose ul li::before { left: auto; right: 0; }
html[dir="rtl"] .prose a, html[dir="rtl"] .acc__a a { text-underline-offset: 3px; }

/* Contact widget to bottom-left in RTL */
html[dir="rtl"] .cwidget { right: auto; left: clamp(1rem, 3vw, 1.75rem); align-items: flex-start; }
html[dir="rtl"] .cwidget__panel { transform-origin: bottom left; }
html[dir="rtl"] .cwidget__head { background: linear-gradient(180deg, var(--red-tint), transparent); }

/* Language switcher — readable pills, current language filled */
.lang-switch { display: inline-flex; align-items: center; gap: 0.3rem; }
.lang-switch a { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.32rem 0.6rem;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--bone);
  font-family: var(--font-sans); font-weight: 700; font-size: 0.76rem; line-height: 1; letter-spacing: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); white-space: nowrap; }
.lang-switch a:hover { border-color: var(--bone); background: rgba(255,255,255,0.06); }
.lang-switch a[aria-current="true"] { background: #fff; color: #111114; border-color: #fff; }
.lang-switch .flag { width: 1.1rem; height: 0.73rem; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,0.18); }
html[lang="ar"] .lang-switch a { font-family: "Cairo", "Archivo", sans-serif; }

/* ================================ Responsive ============================= */
@media (max-width: 1024px) {
  .nav__links { gap: 1.1rem; }
  .practice { grid-template-columns: repeat(2, 1fr); }
  .pa--feature { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn, .nav__phone { display: none; }
  .nav__burger { display: block; }

  /* Hero: shorter photo with the headline riding up over its faded bottom edge,
     so the H1, sub and primary CTA land above the fold on a phone. */
  .hero { min-height: auto; }
  .hero__top { grid-template-columns: 1fr; }
  .hero__media { order: 1; height: clamp(300px, 48svh, 520px); }
  .hero__media img { object-position: 62% 18%; }
  .hero__media::before,
  html[dir="rtl"] .hero__media::before { background: linear-gradient(0deg, var(--ink) 0%, rgba(11,11,13,0.82) 24%, rgba(11,11,13,0) 58%); }
  .hero__tag { display: none; }
  /* Centered stack, pulled up further over the photo's faded edge */
  .hero__content,
  html[dir="rtl"] .hero__content { order: 2; position: relative; z-index: 2; padding: 0 var(--gutter) 2rem;
    margin: -6.5rem auto 0; max-width: 640px; align-items: center; text-align: center; }
  .hero__eyebrow { margin-bottom: 1rem; justify-content: center; }
  .hero__eyebrow::after { content: ""; width: 1.6rem; height: 1px; background: var(--red); display: inline-block; flex: none; }
  .hero__eyebrow::before { flex: none; }
  .hero__title { margin-bottom: 1.1rem; }
  .hero__sub { margin: 0 auto 1.4rem; }
  .hero__actions { justify-content: center; }
  .hero__rating { align-self: center; }
  .hero__rating img { height: 100px; }

  /* Header: language switch centered between logo and menu button */
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav__logo { justify-self: start; }
  .nav__cta { justify-self: center; }
  .nav__burger { justify-self: end; margin-left: 0; }
  .hero__awards-label { margin-top: 0; }
  .marquee__track { gap: 2.5rem; animation-duration: 32s; }
  .marquee__track img { height: 76px; }

  .promise-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder__media { max-width: 460px; }
  .process { grid-template-columns: 1fr; gap: 2rem; }
  .verdicts { grid-template-columns: 1fr; }
  .case-studies { grid-template-columns: repeat(2, 1fr); }
  .community { grid-template-columns: 1fr; }
  .event-cards { grid-template-columns: 1fr; }
  .area { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Touch devices have no hover: show the arrows that hover normally reveals */
@media (hover: none) {
  .area__cols a .ico, .dropdown a .ico { opacity: 1; transform: none; }
  /* Practice cards: no sticky hover lift on touch; a press state instead */
  .pa { -webkit-tap-highlight-color: transparent; }
  .pa:hover { transform: none; border-color: var(--line); }
  .pa:hover .pa__img { transform: none; opacity: 0.55; }
  .pa:active { transform: scale(0.98); border-color: var(--red); transition-duration: 0.1s; }
  .pa:active .pa__img { opacity: 0.75; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.25rem; --section-y: 3.25rem; }
  .nav { gap: 1rem; }
  .nav__burger { margin-right: -10px; } /* optically align the bars with the gutter */

  /* Buttons: full-width, allowed to wrap so long labels never overflow at 320px */
  .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
  .btn--lg { padding: 1.05rem 1.25rem; }
  .hero__actions { flex-direction: column; align-items: stretch; align-self: stretch; gap: 0.75rem; }
  .cta-band__actions, .reviews__cta, .page-hero__actions { gap: 0.75rem; }

  /* iOS zooms into any field under 16px on focus; keep inputs at 16px */
  .field input, .field textarea, .field select { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero__eyebrow { font-size: 0.66rem; letter-spacing: 0.16em; }
  .hero__eyebrow::before, .hero__eyebrow::after { width: 1.1rem; }
  .hero__sub { display: none; } /* phones: headline + CTAs only; sub shows on tablet/desktop */
  .hero__terms { display: block; margin: 0.85rem 0 0; font-family: var(--font-mono); font-size: 0.64rem;
    letter-spacing: 0.03em; text-transform: uppercase; color: var(--smoke); max-width: none; text-wrap: balance; }
  /* Hero fills exactly one screen (svh = with browser toolbars showing): the photo
     flexes to whatever room is left, so the awards strip always lands above the fold. */
  .hero { min-height: 100svh; }
  .hero__top { grid-template-rows: 1fr auto; }
  .hero__media { height: auto; min-height: 210px; }
  .hero__media img { position: absolute; inset: 0; }
  .hero__content { padding-bottom: 1.1rem; }
  .hero__awards-label { padding-top: 0.85rem; }
  .hero__rating { margin-top: 1.25rem; }
  .hero__rating img { height: 96px; }
  .marquee__track img { height: 64px; }
  .hero__marquee { padding-block: 0.6rem 0.9rem; }

  /* Section heads + stats */
  .sec-head { margin-bottom: 1.5rem; }
  .stat { padding: 1.4rem 1rem; }
  .stat__num { font-size: 2.4rem; }
  .stat__label { font-size: 0.66rem; letter-spacing: 0.08em; }
  .stats-cta { margin-top: 1.75rem; gap: 1.25rem; }

  /* Founder: one tidy row of badges instead of three rows of 116px seals */
  .founder__badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; margin-top: 1.5rem; }
  .founder__badges img { width: 100%; height: auto; }
  .founder__quote { margin: 1rem 0; }

  /* Practice areas: features stay full-width; the rest become 2-up tiles */
  .practice { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 0.75rem; }
  .pa--feature { grid-column: 1 / -1; min-height: 230px; }
  .pa { min-height: 150px; padding: 1.1rem; }
  .pa:not(.pa--feature) .pa__title { font-size: 1.2rem; }
  .pa:not(.pa--feature) .pa__desc { display: none; }
  .pa:not(.pa--feature) .pa__link { font-size: 0.7rem; }
  .pa:not(.pa--feature):last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pa--feature .pa__title { font-size: 1.9rem; }

  /* Recognition: compact rows (figure left, detail right) */
  .verdicts { gap: 0.6rem; }
  .verdict { display: grid; grid-template-columns: 5.6rem 1fr; column-gap: 1rem; align-items: center; padding: 1.1rem 1.1rem 1.2rem; }
  .verdict__amt { grid-row: span 2; font-size: 2.1rem; }
  .verdict__type { margin-top: 0; }
  .verdict__desc { margin-top: 0.3rem; font-size: 0.88rem; }

  /* Case studies + events: swipeable, one full card at a time. The gap is two
     gutters wide so the next card starts past the screen edge (no partial cards). */
  .case-studies, .event-cards {
    display: grid; grid-auto-flow: column; grid-template-columns: none;
    grid-auto-columns: calc(100vw - 2 * var(--gutter)); column-gap: calc(2 * var(--gutter));
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 0.25rem; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; }
  .case-studies::-webkit-scrollbar, .event-cards::-webkit-scrollbar { display: none; }
  .case-study, .event-card { scroll-snap-align: start; scroll-snap-stop: always; }
  p.swipe-hint { display: flex; margin-top: 0.9rem; }

  /* Process */
  .step { gap: 1rem; padding: 1.3rem 0; }
  .step__n { font-size: 1.6rem; min-width: 2rem; }

  /* Service area lists */
  .area__cols { columns: 1; }
  .area__cols a { padding-block: 0.2rem; }
  .area__map { aspect-ratio: 1 / 1; }

  /* Promise */
  .quote-block blockquote { font-size: 1.7rem; }
  .intake { padding: 1.25rem; }

  /* Interior page hero */
  .page-hero { padding: 6.25rem 0 2.25rem; }
  .page-hero h1 { margin: 0.6rem 0 0.85rem; font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .page-hero .lead { font-size: 1rem; margin-bottom: 1.4rem; }
  .breadcrumb { font-size: 0.64rem; letter-spacing: 0.1em; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .layout { gap: 2.5rem; }
  .prose h2 { margin-top: 2rem; }
  .card-box { padding: 1.25rem; }
  .acc__q { padding: 1.1rem 0; gap: 1rem; }

  /* Practice-area pages: hero centered like the homepage, with the photo visible */
  body[data-page="practice"] .page-hero { text-align: center; padding-bottom: 2.5rem; }
  body[data-page="practice"] .page-hero__img { opacity: 0.55; object-position: center 30%; }
  body[data-page="practice"] .page-hero::after {
    background: linear-gradient(0deg, var(--ink-1) 0%, rgba(16,16,19,0.78) 42%, rgba(11,11,13,0.5) 100%); }
  body[data-page="practice"] .page-hero .lead { margin-inline: auto; max-width: 34ch; color: var(--bone); }
  /* auto margins center the trail but stay "safe" if it ever overflows */
  body[data-page="practice"] .breadcrumb > :first-child { margin-left: auto; }
  body[data-page="practice"] .breadcrumb > :last-child { margin-right: auto; }

  /* Intro reads as a lead-in, then the "How we help" points become cards */
  body[data-page="practice"] .prose .intro-lead { font-size: 1.05rem; line-height: 1.6; color: var(--bone);
    padding-left: 1rem; border-left: 2px solid var(--red); }
  body[data-page="practice"] .points { gap: 0.6rem; margin-top: 1.25rem; }
  body[data-page="practice"] .point { gap: 0.75rem; padding: 1rem 1.1rem; background: var(--ink-1);
    border: 1px solid var(--line); border-radius: var(--radius); }
  body[data-page="practice"] .point b { font-size: 1rem; }
  body[data-page="practice"] .point p { font-size: 0.92rem; line-height: 1.55; }
  body[data-page="practice"] .aside { gap: 0.75rem; }
  .cta-band h2 { font-size: 2.3rem; }

  /* Footer: practice + areas side by side, brand + contact full width */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer__brand, .footer__contact { grid-column: 1 / -1; }
  .footer__col a { font-size: 0.88rem; padding: 0.4rem 0; }
  .footer__bar { margin-top: 2rem; }

  .trust__inner { justify-content: center; gap: 1.5rem; }
}

/* Short phones (iPhone SE/mini): tighten the hero so the awards strip still makes the fold */
@media (max-width: 560px) and (max-height: 720px) {
  .hero__media { min-height: 150px; }
  .hero__title.h-xxl { font-size: 2.35rem; }
  .hero__eyebrow { margin-bottom: 0.7rem; }
  .hero__title { margin-bottom: 0.9rem; }
  .hero__rating { margin-top: 0.9rem; }
  .hero__rating img { height: 82px; }
}

/* Swipe hint under the carousels (mobile only) */
.swipe-hint { display: none; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke-2); }
.swipe-hint .ico { width: 1em; height: 1em; color: var(--red); }
.carousel-dots { display: inline-flex; align-items: center; gap: 0.15rem; margin-right: auto; }
.carousel-dots button { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; }
.carousel-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2);
  transition: width 0.25s var(--ease), background 0.25s var(--ease); }
.carousel-dots button[aria-current="true"]::before { width: 22px; border-radius: 4px; background: var(--red); }

@media (max-width: 360px) {
  .h-xxl { font-size: 2.35rem; }
  .practice { grid-template-columns: 1fr; }
  .stat__num { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
