/* =========================================================================
   Advisers Group  |  advisersgroup.net
   Design tokens, base type, layout primitives, components, page-specific
   styles, motion, and print.

   Built under the impeccable skill (pbakaus/impeccable). Type-led,
   editorial restraint. One accent color. No card grids. No stock imagery.
   ========================================================================= */

/* -----------------------------------------------------------------
   1. Tokens
   ----------------------------------------------------------------- */
:root {
  /* Color — OKLCH, neutrals tinted toward the brand hue (warm red, hue 25).
     No pure black, no pure white. */
  --ink-900:    oklch(0.18 0.012 25);
  --ink-800:    oklch(0.26 0.011 25);
  --ink-700:    oklch(0.34 0.010 25);
  --ink-500:    oklch(0.52 0.008 25);
  --ink-400:    oklch(0.62 0.007 25);
  --ink-300:    oklch(0.78 0.006 25);
  --ink-200:    oklch(0.88 0.005 60);

  --paper:      oklch(0.982 0.012 80);
  --paper-2:    oklch(0.962 0.018 78);
  --paper-3:    oklch(0.94 0.024 76);
  --paper-ink:  oklch(0.94 0.014 60);

  --rule:       oklch(0.84 0.012 60);
  --rule-soft:  oklch(0.90 0.010 60);

  --accent:     oklch(0.60 0.18 28);
  --accent-ink: oklch(0.45 0.15 28);
  --accent-bg:  oklch(0.96 0.04 30);

  --focus:      oklch(0.55 0.18 250);

  /* Type — Source Serif 4 (display, opsz+wght+ital). Inter (body). */
  --font-display: "Source Serif 4", "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Type scale */
  --t-xs:   0.75rem;   /* 12 */
  --t-sm:   0.875rem;  /* 14 */
  --t-base: 1rem;      /* 16 */
  --t-lg:   1.125rem;  /* 18 */
  --t-xl:   1.375rem;  /* 22 */
  --t-2xl:  1.75rem;   /* 28 */
  --t-3xl:  2.25rem;   /* 36 */
  --t-4xl:  3rem;      /* 48 */
  --t-5xl:  4rem;      /* 64 */
  --t-6xl:  5.5rem;    /* 88 */

  /* Spacing — 4pt base */
  --s-1:  0.25rem;   --s-2:  0.5rem;   --s-3:  0.75rem;
  --s-4:  1rem;      --s-5:  1.25rem;  --s-6:  1.5rem;
  --s-8:  2rem;      --s-10: 2.5rem;   --s-12: 3rem;
  --s-16: 4rem;      --s-20: 5rem;     --s-24: 6rem;
  --s-32: 8rem;      --s-40: 10rem;    --s-48: 12rem;

  /* Layout */
  --container-wide: 1180px;
  --container-text: 680px;
  --container-narrow: 580px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -----------------------------------------------------------------
   2. Reset (minimal, modern)
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
ul, ol { padding: 0; }
:where(ul, ol):not([class]) { padding-left: 1.25em; }
strong { font-weight: 600; }

/* -----------------------------------------------------------------
   3. Base
   ----------------------------------------------------------------- */
html {
  font-size: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11", "kern";
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Focus ring  — visible, distinct from accent */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--paper);
}

/* -----------------------------------------------------------------
   4. Typography primitives
   ----------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--ink-900);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 48, "wght" 480;
}

h2 {
  font-size: clamp(1.75rem, 3vw + 0.75rem, var(--t-3xl));
  line-height: 1.1;
  letter-spacing: -0.014em;
  font-variation-settings: "opsz" 36, "wght" 500;
}

h3 {
  font-size: clamp(1.25rem, 1.6vw + 0.6rem, var(--t-xl));
  line-height: 1.22;
  letter-spacing: -0.008em;
  font-variation-settings: "opsz" 18, "wght" 560;
}

h4 {
  font-size: var(--t-base);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-900);
}

p { text-wrap: pretty; }

a:not([class]) {
  color: var(--ink-900);
  text-decoration: underline;
  text-decoration-color: var(--ink-300);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 160ms var(--ease);
}
a:not([class]):hover {
  text-decoration-color: var(--accent);
}

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-12) 0; }

/* Eyebrow — small all-caps label used above sections */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* Lead paragraph — the first paragraph after H1 on long-form pages */
.lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1vw + 1rem, var(--t-xl));
  line-height: 1.42;
  font-variation-settings: "opsz" 14, "wght" 380;
  color: var(--ink-800);
  letter-spacing: -0.002em;
  max-width: 56ch;
}

/* Roman numeral indices used as section markers (I, II, III) */
.numeral {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-block;
  font-feature-settings: "tnum";
}

/* Tabular ledger text — for addresses, hours, license, etc. */
.ledger {
  font-family: var(--font-body);
  font-feature-settings: "tnum", "ss01", "cv11";
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink-800);
  letter-spacing: 0.005em;
}

/* -----------------------------------------------------------------
   5. Layout primitives
   ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--text {
  max-width: var(--container-text);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3.5rem, 6vw, 7rem);
  border-top: 1px solid var(--rule);
}

.section--tight { padding-block: clamp(2.5rem, 4vw, 4.5rem); }
.section--loose { padding-block: clamp(5rem, 9vw, 11rem); }
.section--first { border-top: 0; }

/* Tinted-paper section — used to break the monotone with subtle warmth.
   Full-bleed background; container inside keeps content gutter consistent. */
.section--tinted {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.section--accent {
  background: var(--accent-bg);
  border-top: 1px solid var(--rule);
}

.section__head {
  margin-bottom: clamp(2rem, 3vw, 3.5rem);
  display: grid;
  gap: var(--s-3);
}

/* -----------------------------------------------------------------
   6. Skip link
   ----------------------------------------------------------------- */
.skip {
  position: absolute;
  top: 0;
  left: 0;
  padding: var(--s-3) var(--s-4);
  background: var(--ink-900);
  color: var(--paper);
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 180ms var(--ease);
  z-index: 100;
}
.skip:focus { transform: translateY(0); }

/* -----------------------------------------------------------------
   7. Site nav
   ----------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
          backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.nav[data-scrolled="true"] {
  border-bottom-color: var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  height: 68px;
}

.brand {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-variation-settings: "opsz" 14, "wght" 600;
  letter-spacing: -0.012em;
  color: var(--ink-900);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
}


.nav__links {
  display: none;
  gap: var(--s-8);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  padding-block: var(--s-3);
  position: relative;
  letter-spacing: 0.005em;
  transition: color 160ms var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--s-3) - 4px);
  height: 1px;
  background: var(--ink-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}
.nav__links a:hover { color: var(--ink-900); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav .nav__cta { display: none; }
.nav__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-900);
  background: transparent;
}
.nav__menu[aria-expanded="true"] { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }

@media (min-width: 760px) {
  .nav__links { display: flex; }
  .nav .nav__cta { display: inline-flex; }
  .nav__menu { display: none; }
}

/* Mobile drawer */
.drawer {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--paper);
  z-index: 40;
  padding: var(--s-8) var(--gutter);
  flex-direction: column;
  gap: var(--s-2);
  border-top: 1px solid var(--rule);
}
.drawer[data-open="true"] { display: flex; }
.drawer a {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32, "wght" 480;
  font-size: var(--t-3xl);
  text-decoration: none;
  color: var(--ink-900);
  padding-block: var(--s-2);
  letter-spacing: -0.014em;
  border-bottom: 1px solid var(--rule-soft);
}
.drawer .btn {
  margin-top: var(--s-6);
  align-self: flex-start;
}
@media (min-width: 760px) {
  .drawer { display: none !important; }
}

/* -----------------------------------------------------------------
   8. Buttons
   ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6ch;
  padding: 0.95rem 1.5rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
  cursor: pointer;
}
.btn--primary {
  background: var(--ink-900);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent);
}
.btn--primary:active { transform: translateY(0.5px); }

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  padding-inline: 0;
  text-decoration: underline;
  text-decoration-color: var(--ink-300);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.btn--ghost:hover {
  text-decoration-color: var(--accent);
  color: var(--accent);
}
.btn--ghost .btn__arrow { transition: transform 200ms var(--ease); }
.btn--ghost:hover .btn__arrow { transform: translateX(3px); }

.btn--outline {
  border: 1px solid var(--ink-900);
  background: transparent;
  color: var(--ink-900);
}
.btn--outline:hover {
  background: var(--ink-900);
  color: var(--paper);
}
.btn--outline .btn__arrow { transition: transform 200ms var(--ease); }
.btn--outline:hover .btn__arrow { transform: translateX(3px); }

.btn--small { padding: 0.6rem 1rem; min-height: 40px; font-size: var(--t-xs); }

/* -----------------------------------------------------------------
   9. Hero
   ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 9vw, 9rem);
  text-align: center;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(18, 18, 18, 0.45) 0%, rgba(18, 18, 18, 0.85) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.hero .eyebrow {
  color: var(--paper-3);
}

.hero .btn--primary {
  background: var(--paper);
  color: var(--ink-900);
  text-shadow: none;
}
.hero .btn--primary:hover {
  background: var(--accent);
  color: var(--paper);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.hero__title {
  font-size: clamp(2.125rem, 3vw + 1rem, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48, "wght" 480;
  max-width: 32ch;
  margin-inline: auto;
  text-wrap: balance;
  color: var(--paper);
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 48, "wght" 500;
  color: var(--accent);
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, var(--t-lg));
  line-height: 1.55;
  color: var(--paper-2);
  max-width: 46ch;
  margin-top: var(--s-4);
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-10);
}

.hero__micro {
  font-size: var(--t-sm);
  color: var(--paper-3);
  letter-spacing: 0.005em;
}
.hero__micro::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 0.7ch;
  vertical-align: 1px;
}



/* Hero band — single editorial line between hero and services. */
.heroband {
  padding-block: clamp(3rem, 5vw, 5.5rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.heroband__line {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 0.875rem, 2.25rem);
  line-height: 1.22;
  letter-spacing: -0.014em;
  font-variation-settings: "opsz" 30, "wght" 440;
  color: var(--ink-900);
  max-width: 30ch;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
.heroband__line em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 30, "wght" 460;
}

/* Per-service hero mark (small, distinctive, restrained). */
.service-mark {
  width: 56px;
  height: 56px;
  display: block;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

/* Hero meta strip — small ledger row beneath hero */
.hero__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4) var(--s-8);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: var(--s-6) var(--s-8);
  background: rgba(18, 18, 18, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: left;
  margin-inline: auto;
}
.hero__meta dt {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin-bottom: var(--s-1);
}
.hero__meta dd {
  font-size: var(--t-sm);
  color: var(--paper);
  font-feature-settings: "tnum", "ss01", "cv11";
}
@media (min-width: 640px) {
  .hero__meta { grid-template-columns: repeat(4, 1fr); }
}

/* -----------------------------------------------------------------
   10. Services preview row (home + services index)
   ----------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.services__item {
  padding-block: var(--s-10) var(--s-8);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.services__item:first-child { border-top: 0; padding-top: 0; }

.services__num {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-feature-settings: "tnum";
}

.services__title {
  font-size: clamp(1.5rem, 2.4vw + 0.6rem, var(--t-3xl));
  line-height: 1.05;
  letter-spacing: -0.018em;
}

.services__body {
  color: var(--ink-700);
  font-size: var(--t-base);
  line-height: 1.6;
  max-width: 56ch;
}

.services__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5ch;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-900);
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-top: var(--s-2);
}
.services__link::after {
  content: "→";
  display: inline-block;
  transition: transform 200ms var(--ease);
}
.services__link:hover { color: var(--accent); }
.services__link:hover::after { transform: translateX(3px); }

@media (min-width: 880px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(2rem, 3.5vw, 4rem);
  }
  .services__item {
    border-top: 0;
    border-left: 1px solid var(--rule);
    padding: 0 0 0 clamp(1.25rem, 2vw, 2rem);
  }
  .services__item:first-child { border-left: 0; padding-left: 0; }
}

/* -----------------------------------------------------------------
   11. Trust block — "the firm at a glance" ledger
   ----------------------------------------------------------------- */
.glance {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6) var(--s-12);
}
.glance__item {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-3);
}
.glance__label {
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
  display: block;
  margin-bottom: var(--s-2);
}
.glance__value {
  font-size: var(--t-sm);
  color: var(--ink-900);
  font-feature-settings: "tnum", "ss01", "cv11";
  line-height: 1.5;
}
@media (min-width: 640px) {
  .glance { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .glance { grid-template-columns: repeat(4, 1fr); gap: var(--s-8) var(--s-10); }
}

/* -----------------------------------------------------------------
   13. FAQ
   ----------------------------------------------------------------- */

/* Security-tape feature on the home page. Product-first, not a card. */
.product-spotlight {
  padding-block: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.product-spotlight__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.product-spotlight__media {
  margin: 0;
}

.product-spotlight__media img {
  width: 100%;
  height: clamp(18rem, 38vw, 28rem);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.product-spotlight__media figcaption {
  margin-top: var(--s-3);
  color: var(--ink-500);
  font-size: var(--t-xs);
  line-height: 1.5;
}

.product-spotlight__copy {
  max-width: 38rem;
}

.product-spotlight__label {
  color: var(--accent-ink);
  font-size: var(--t-sm);
  font-weight: 600;
  margin-bottom: var(--s-4);
}

.product-spotlight__copy h2 {
  max-width: 16ch;
}

.product-spotlight__intro {
  color: var(--ink-700);
  font-size: var(--t-lg);
  line-height: 1.6;
  max-width: 54ch;
  margin-top: var(--s-6);
}

.product-spotlight__facts {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: var(--s-8);
  border-top: 1px solid var(--rule);
}

.product-spotlight__facts > div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) 1fr;
  gap: var(--s-4);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
}

.product-spotlight__facts dt {
  color: var(--ink-500);
  font-size: var(--t-sm);
}

.product-spotlight__facts dd {
  color: var(--ink-900);
  font-size: var(--t-sm);
  font-weight: 500;
}

.product-spotlight__cta {
  margin-top: var(--s-8);
}

@media (min-width: 800px) {
  .product-spotlight__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}

.faq {
  max-width: 65ch;
}
.faq__item {
  border-top: 1px solid var(--rule);
}
.faq__item:last-of-type { border-bottom: 1px solid var(--rule); }
.faq__item > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, var(--t-xl));
  font-variation-settings: "opsz" 22, "wght" 540;
  letter-spacing: -0.008em;
  color: var(--ink-900);
  line-height: 1.3;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--t-xl);
  color: var(--accent);
  line-height: 1;
  transform-origin: center;
  transition: transform 240ms var(--ease);
  display: inline-block;
  width: 1ch;
  text-align: center;
}
.faq__item[open] > summary::after { transform: rotate(45deg); }
.faq__answer {
  padding: 0 0 var(--s-6) 0;
  color: var(--ink-700);
  font-size: var(--t-base);
  line-height: 1.65;
  max-width: 60ch;
}
.faq__answer p + p { margin-top: var(--s-3); }

/* -----------------------------------------------------------------
   14. Final CTA section
   ----------------------------------------------------------------- */
.final {
  padding-block: clamp(5rem, 10vw, 11rem);
  border-top: 1px solid var(--rule);
}
.final__inner {
  display: grid;
  gap: var(--s-8);
  align-items: end;
  grid-template-columns: 1fr;
}
.final__line {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40, "wght" 460;
  font-size: clamp(1.875rem, 2.6vw + 0.875rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink-900);
  text-wrap: balance;
}
.final__line em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 40, "wght" 480;
}
.final__aside {
  font-size: var(--t-sm);
  color: var(--ink-500);
  max-width: 32ch;
  line-height: 1.6;
}
@media (min-width: 880px) {
  .final__inner {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: var(--s-16);
    align-items: end;
  }
}

/* -----------------------------------------------------------------
   15. Footer
   ----------------------------------------------------------------- */
.footer {
  margin-top: auto;
  background: var(--ink-900);
  color: var(--paper-ink);
  padding-block: clamp(3rem, 6vw, 5rem) var(--s-8);
}
.footer a { color: var(--paper); }
.footer a:hover { color: var(--paper); text-decoration-color: var(--accent); }

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-10);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 14%, transparent);
}

.footer__brand {
  display: grid;
  gap: var(--s-3);
  max-width: 32ch;
}
.footer__brand .brand {
  color: var(--paper);
  font-size: var(--t-2xl);
  font-variation-settings: "opsz" 28, "wght" 540;
}
.footer__tag {
  font-size: var(--t-sm);
  color: color-mix(in oklab, var(--paper) 65%, transparent);
  line-height: 1.55;
}

.footer__col h4 {
  color: color-mix(in oklab, var(--paper) 70%, transparent);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.footer__col ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.footer__col a {
  font-size: var(--t-sm);
  text-decoration: none;
  color: color-mix(in oklab, var(--paper) 90%, transparent);
}
.footer__col a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.18em; }

.footer__addr {
  font-size: var(--t-sm);
  font-feature-settings: "tnum", "ss01", "cv11";
  line-height: 1.55;
  color: color-mix(in oklab, var(--paper) 80%, transparent);
}
.footer__addr + .footer__addr { margin-top: var(--s-4); }
.footer__addr-label {
  display: block;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
  margin-bottom: var(--s-1);
}

.footer__cta {
  display: grid;
  gap: var(--s-3);
  align-items: start;
}
.footer__cta .btn--primary {
  background: var(--paper);
  color: var(--ink-900);
}
.footer__cta .btn--primary:hover {
  background: var(--accent);
  color: var(--paper);
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  padding-top: var(--s-6);
  font-size: var(--t-xs);
  color: color-mix(in oklab, var(--paper) 50%, transparent);
  letter-spacing: 0.005em;
}

@media (min-width: 720px) {
  .footer__top {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--s-8);
  }
  .footer__bottom {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }
}

/* -----------------------------------------------------------------
   16. Long-form pages — service detail, about, generic article
   ----------------------------------------------------------------- */
.article {
  padding-block: clamp(3.5rem, 6vw, 6rem) clamp(4rem, 9vw, 9rem);
}
.article__breadcrumb {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--s-8);
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  text-decoration: none;
  font-weight: 500;
}
.article__breadcrumb:hover { color: var(--accent); }

.article__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  max-width: var(--container-text);
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.article__numeral {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-feature-settings: "tnum";
}
.article__title {
  font-size: clamp(1.875rem, 2.4vw + 1rem, 3rem);
  line-height: 1.08;
  letter-spacing: -0.016em;
  font-variation-settings: "opsz" 36, "wght" 500;
}

.article__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}
.article__body {
  max-width: var(--container-text);
}
.article__body h2 {
  margin-top: var(--s-12);
  margin-bottom: var(--s-4);
}
.article__body h2:first-child { margin-top: 0; }
.article__body h3 {
  margin-top: var(--s-8);
  margin-bottom: var(--s-2);
}
.article__body p {
  font-size: var(--t-base);
  line-height: 1.7;
  color: var(--ink-800);
  max-width: 68ch;
}
.article__body p + p { margin-top: var(--s-4); }
.article__body ul,
.article__body ol {
  margin-top: var(--s-3);
  padding-left: 1.4em;
  max-width: 68ch;
}
.article__body li { line-height: 1.7; color: var(--ink-800); padding-left: 0.4em; }
.article__body li + li { margin-top: var(--s-2); }
.article__body ol { font-feature-settings: "tnum"; }
.article__body strong { color: var(--ink-900); font-weight: 600; }

.article__cta {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: var(--s-8);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--s-3);
  max-width: var(--container-text);
}
.article__cta-line {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw + 0.5rem, var(--t-3xl));
  line-height: 1.14;
  letter-spacing: -0.014em;
  font-variation-settings: "opsz" 36, "wght" 480;
  color: var(--ink-900);
  max-width: 26ch;
  text-wrap: balance;
}
.article__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  align-items: center;
  margin-top: var(--s-3);
}

.aside {
  max-width: 280px;
  display: grid;
  gap: var(--s-6);
  align-self: start;
  position: sticky;
  top: 96px;
}
.aside__block {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-3);
}
.aside__label {
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
  margin-bottom: var(--s-2);
  display: block;
}
.aside__value {
  font-size: var(--t-sm);
  color: var(--ink-800);
  line-height: 1.55;
}

@media (min-width: 980px) {
  .article__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
    gap: clamp(3rem, 5vw, 6rem);
  }
}

/* -----------------------------------------------------------------
   16a. Technical product page
   ----------------------------------------------------------------- */
.product-entry {
  margin-top: clamp(3.5rem, 6vw, 6rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
.product-entry__copy {
  display: grid;
  gap: var(--s-3);
  max-width: 64ch;
}
.product-entry__title {
  font-size: clamp(1.5rem, 2vw + 0.75rem, var(--t-3xl));
}
.product-entry__body {
  color: var(--ink-700);
  line-height: 1.65;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}
.product-hero__copy {
  display: grid;
  gap: var(--s-5);
  max-width: 42rem;
  min-width: 0;
}
.product-hero__copy > .btn { justify-self: start; }
.product-hero__title {
  font-size: clamp(2.5rem, 5vw + 0.5rem, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
}
.product-hero__media {
  margin: 0;
  min-width: 0;
}
.product-hero__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}
.product-hero__media figcaption,
.product-detail__media figcaption {
  margin-top: var(--s-3);
  color: var(--ink-500);
  font-size: var(--t-xs);
  line-height: 1.5;
}
.product-formats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
}
.product-formats li {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--ink-800);
  font-size: var(--t-sm);
  font-feature-settings: "tnum";
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.product-detail__content {
  min-width: 0;
}
.product-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.product-section:first-child {
  padding-top: 0;
  border-top: 0;
}
.product-section__heading {
  font-size: clamp(1.5rem, 2vw + 0.65rem, var(--t-3xl));
}
.product-section__body {
  display: grid;
  gap: var(--s-4);
  max-width: 68ch;
}
.product-section__body p,
.product-section__body li {
  color: var(--ink-800);
  line-height: 1.7;
}
.product-section__body ul {
  padding-left: 1.25rem;
}
.product-section__body li + li {
  margin-top: var(--s-3);
}
.product-section__body strong {
  color: var(--ink-900);
}
.spec-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.42fr) minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.spec-list dt {
  color: var(--ink-500);
  font-size: var(--t-sm);
}
.spec-list dd {
  color: var(--ink-900);
  font-size: var(--t-sm);
  font-feature-settings: "tnum", "ss01", "cv11";
}
.product-detail__media {
  margin: 0;
  min-width: 0;
}
.product-detail__media img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}
.source-note {
  color: var(--ink-500);
  font-size: var(--t-sm);
  line-height: 1.6;
}

@media (min-width: 760px) {
  .product-entry {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .product-section {
    grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
}
@media (min-width: 900px) {
  .product-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.34fr);
  }
}

@media print {
  .product-page .js .reveal,
  .product-page .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .product-page .article__breadcrumb,
  .product-page .footer,
  .product-page .product-hero__copy > .btn,
  .product-page .product-detail > aside {
    display: none !important;
  }
  .product-page .article {
    padding-block: 0 !important;
  }
  .product-hero {
    grid-template-columns: 1fr 0.8fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    break-inside: avoid;
  }
  .product-hero__title { font-size: 2.5rem; }
  .product-hero__media img { max-height: 22rem; }
  .product-detail { display: block; }
  .product-section { grid-template-columns: 10rem 1fr; padding-block: 1.25rem; }
  .product-section { break-inside: avoid; }
  .product-hero__media img, .product-detail__media img { border-radius: 0; }
  .product-detail__media { position: static; }
  .product-page .article__cta { display: none; }
}

/* Other-services strip (bottom of each service page) */
.other-services {
  margin-top: clamp(3rem, 5vw, 5rem);
  padding-top: var(--s-8);
  border-top: 1px solid var(--rule);
}
.other-services__label {
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
  margin-bottom: var(--s-4);
  display: block;
}
.other-services__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  list-style: none;
  padding: 0;
}
.other-services__list a {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-variation-settings: "opsz" 22, "wght" 500;
  letter-spacing: -0.008em;
  text-decoration: none;
  color: var(--ink-900);
  display: inline-flex;
  gap: 0.6ch;
  align-items: baseline;
}
.other-services__list a:hover { color: var(--accent); }
.other-services__list a::after {
  content: "→";
  font-family: var(--font-body);
  font-size: var(--t-base);
  color: var(--ink-500);
  transition: transform 200ms var(--ease);
}
.other-services__list a:hover::after { color: var(--accent); transform: translateX(3px); }
@media (min-width: 720px) {
  .other-services__list { grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-8); }
}

/* -----------------------------------------------------------------
   17. Contact page
   ----------------------------------------------------------------- */
.contact {
  padding-block: clamp(3.5rem, 6vw, 6rem) clamp(4rem, 9vw, 9rem);
}
.contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  max-width: var(--container-text);
}
.contact__addresses {
  display: grid;
  gap: var(--s-10);
}
.contact__addr {
  display: grid;
  gap: var(--s-2);
}
.contact__addr-label {
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}
.contact__addr-value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw + 0.6rem, var(--t-xl));
  font-variation-settings: "opsz" 22, "wght" 480;
  letter-spacing: -0.01em;
  line-height: 1.28;
  color: var(--ink-900);
}
.contact__addr-meta {
  font-size: var(--t-sm);
  font-feature-settings: "tnum", "ss01", "cv11";
  color: var(--ink-700);
  margin-top: var(--s-2);
}

.contact__channels {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
}
.contact__channel {
  display: grid;
  grid-template-columns: 1.4em 1fr;
  align-items: baseline;
  gap: var(--s-3);
  font-size: var(--t-base);
  color: var(--ink-800);
}
.contact__channel-icon {
  width: 16px;
  height: 16px;
  color: var(--ink-500);
  align-self: center;
}
.contact__channel a { text-decoration: none; color: var(--ink-900); border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.contact__channel a:hover { border-color: var(--accent); color: var(--accent); }
.contact__channel-meta { color: var(--ink-500); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; }

/* -----------------------------------------------------------------
   18. About page
   ----------------------------------------------------------------- */
.about__principles {
  margin-top: clamp(2.5rem, 4vw, 4rem);
  display: grid;
  gap: var(--s-8);
  grid-template-columns: 1fr;
  counter-reset: principle;
}
.about__principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4) var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
  counter-increment: principle;
}
.about__principle::before {
  content: counter(principle, upper-roman) ".";
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-top: 0.4em;
  font-feature-settings: "tnum";
}
.about__principle-body h3 {
  margin-bottom: var(--s-2);
}
.about__principle-body p {
  color: var(--ink-700);
  line-height: 1.65;
  max-width: 56ch;
}

@media (min-width: 720px) {
  .about__principles { grid-template-columns: 1fr; gap: var(--s-10); }
  .about__principle { grid-template-columns: 4ch 1fr; gap: var(--s-4) var(--s-12); }
}

/* -----------------------------------------------------------------
   19. Reveal (intersection observer)
   Gated on `.js` so users without JavaScript see content fully visible.
   ----------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* -----------------------------------------------------------------
   20. Print
   ----------------------------------------------------------------- */
@media print {
  :root {
    --paper: white;
    --ink-900: #111;
    --ink-800: #222;
    --ink-700: #333;
    --ink-500: #555;
    --rule: #aaa;
  }
  .nav, .drawer, .skip, .footer__cta, .final, .nav__cta { display: none !important; }
  body { background: white; color: black; }
  a { text-decoration: underline !important; color: black !important; }
  .hero, .article, .contact { padding-block: 1rem !important; }
  .section { padding-block: 1.5rem !important; border-color: #aaa !important; }
  .footer { background: white !important; color: black !important; padding-block: 1rem !important; }
  .footer__top { border-bottom-color: #aaa !important; }
  .footer__col a { color: black !important; }
}
