@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&display=swap');

:root {
  --brand-sand: #C4B7A9;
  --brand-taupe: #C7B7A7;
  --bg: #F6F6F6;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --line: rgba(196, 183, 169, 0.3);
  --line-strong: rgba(150, 135, 125, 0.35);
  --ink: #111111;
  --ink-soft: #5c5550;
  --signal: #1a1714;
  --signal-deep: #111111;
  --accent: #C4B7A9;
  --accent-soft: rgba(196, 183, 169, 0.18);
  --shadow: 0 26px 80px rgba(20, 15, 10, 0.09);
  --radius: 28px;
  --radius-sm: 18px;
  --header-height-mobile: 68px;
  --max: 1180px;
  --font-body: "Manrope", "Avenir Next", sans-serif;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-section: "Manrope", "Avenir Next", sans-serif;
  --font-logo: "Montserrat", "Arial Black", Helvetica, sans-serif;
  --text-h1: clamp(2.3rem, 4.8vw, 3.9rem);
  --text-h2: clamp(2rem, 1.62rem + 1.9vw, 3rem);
  --text-h3: clamp(1.18rem, 1.05rem + 0.46vw, 1.34rem);
  --text-h4: clamp(1rem, 0.95rem + 0.22vw, 1.08rem);
  --text-section-title: clamp(1.52rem, 1.26rem + 0.96vw, 1.98rem);
  --text-body: 1rem;
  --text-body-lg: clamp(1.03rem, 0.99rem + 0.25vw, 1.12rem);
  --text-meta: 0.93rem;
  --text-label: 0.85rem;
  --text-kicker: 0.78rem;
  --text-caption: 0.88rem;
  --leading-body: 1.68;
  --leading-copy: 1.72;
  --leading-heading: 1.02;
  --leading-section: 1.18;
  --tracking-tight: -0.04em;
  --tracking-section: -0.03em;
  --tracking-label: 0.1em;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--leading-body);
}

button,
input,
textarea,
select {
  font: inherit;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35));
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-color: rgba(196, 183, 169, 0.6);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: var(--brand-sand);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.78);
  outline-offset: 4px;
}

p,
li {
  font-size: var(--text-body);
  line-height: var(--leading-copy);
  color: var(--ink-soft);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.7rem;
  line-height: var(--leading-section);
  letter-spacing: var(--tracking-section);
  color: var(--ink);
  text-wrap: balance;
  /* Disable optical sizing to prevent variable-font letterform surprises */
  font-optical-sizing: none;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-section);
  font-weight: 800;
}

h1 {
  font-size: clamp(1.95rem, 1.56rem + 1.85vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-section-title);
}

h3 {
  font-size: var(--text-h3);
}

h4 {
  font-size: var(--text-h4);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  width: auto;
  height: auto;
  padding: 0.8rem 1.05rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-sand);
  border-bottom: 1px solid rgba(100, 80, 65, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(20, 15, 10, 0.14);
}

.brand-text {
  display: grid;
  gap: 0.18rem;
  align-content: center;
  min-width: 0;
}

.brand-text strong,
.brand-text span {
  display: block;
  white-space: nowrap;
}

.brand-text strong {
  font-family: var(--font-logo);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-text span {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.22;
  color: #111111;
  text-transform: uppercase;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.nav-toggle::before {
  content: "";
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  font-size: var(--text-meta);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  background: rgba(0, 0, 0, 0.1);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 44px;
  max-width: 100%;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--signal);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(20, 15, 10, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(20, 15, 10, 0.24);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 5.5rem 0 3.4rem;
}

@supports not (overflow: clip) {
  .hero {
    overflow: hidden;
  }
}

.hero-copy h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-optical-sizing: none;
}

.hero-grid,
.split-grid,
.contact-grid,
.article-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.hero-grid > *,
.split-grid > *,
.contact-grid > *,
.article-grid > *,
.card-grid > *,
.story-grid > *,
.faq-grid > *,
.article-cards > *,
.footer-grid > *,
.stats-ribbon > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand-sand);
}

.lede {
  max-width: 58ch;
  font-size: var(--text-body-lg);
  line-height: 1.72;
}

.hero-copy .button-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(196, 183, 169, 0.14);
  border: 1px solid rgba(196, 183, 169, 0.3);
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 700;
}

.hero-panel,
.panel,
.card,
.story-card,
.faq-card,
.stats-ribbon,
.cta-band,
.note,
.contact-card,
.article-sidebar {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow-wrap: break-word;
}

.hero-panel {
  position: relative;
  padding: 1.35rem;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto auto -90px -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 183, 169, 0.35), transparent 66%);
}

.hero-diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7.75rem 2.2rem;
  min-height: 500px;
  padding: 1.7rem 1.45rem;
  border-radius: calc(var(--radius) - 10px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 246, 246, 0.95));
  border: 1px solid rgba(196, 183, 169, 0.2);
  isolation: isolate;
  min-width: 0;
}

.hero-orbit {
  position: absolute;
  inset: 4.2rem 3.2rem;
  border-radius: 50%;
  border: 1px dashed rgba(0, 0, 0, 0.14);
  animation: pulse 8s linear infinite;
}

.hero-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(26vw, 156px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1a1714;
  color: #fff;
  text-align: center;
  padding: 0.95rem;
  box-shadow: 0 20px 50px rgba(20, 15, 10, 0.28);
  z-index: 2;
}

.hero-core strong {
  display: block;
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-core span {
  font-size: var(--text-kicker);
  line-height: 1.5;
  opacity: 0.84;
}

.hero-node {
  position: relative;
  z-index: 1;
  width: min(100%, 172px);
  min-height: 11.75rem;
  padding: 1.05rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(196, 183, 169, 0.2);
  box-shadow: 0 15px 34px rgba(20, 15, 10, 0.08);
  backdrop-filter: blur(8px);
}

.hero-node strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--text-meta);
}

.hero-node span {
  font-size: var(--text-caption);
  line-height: 1.52;
  color: var(--ink-soft);
}

.hero-node.one {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.hero-node.two {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.hero-node.three {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}

.hero-node.four {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.1rem;
  margin-top: 1.4rem;
}

.stat strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.9rem;
  font-family: var(--font-heading);
}

.stat span {
  display: block;
  font-size: var(--text-meta);
  color: var(--ink-soft);
}

.section {
  padding: 2rem 0 4.5rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.7rem;
}

.section-head p {
  max-width: 60ch;
  margin: 0;
  font-size: var(--text-body);
  line-height: var(--leading-copy);
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-optical-sizing: none;
}

.card-grid,
.story-grid,
.faq-grid,
.article-cards {
  display: grid;
  gap: 1.35rem;
}

.card-grid.three,
.article-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two,
.story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 1.55rem;
}

.card .kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: var(--text-kicker);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.card p:last-child,
.story-card p:last-child {
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.card-link:hover {
  color: var(--ink-soft);
}

.split-grid,
.article-grid {
  gap: 1.5rem;
}

.panel,
.article-sidebar,
.contact-card,
.cta-band,
.note {
  padding: 1.6rem;
}

.panel h2,
.note h2,
.contact-card h2,
.article-sidebar h2 {
  font-size: var(--text-section-title);
}

.checklist,
.plain-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.checklist li,
.plain-list li {
  position: relative;
  padding-left: 1.65rem;
}

.checklist li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-sand), var(--brand-taupe));
}

.process {
  counter-reset: step;
}

.process .card h3::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.8rem;
  color: var(--brand-sand);
  font-size: var(--text-kicker);
  font-family: var(--font-body);
  letter-spacing: var(--tracking-label);
}

.quote {
  position: relative;
  padding: 1.7rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1a1714, #111111);
  color: #fff;
  overflow: hidden;
}

.quote::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 183, 169, 0.18), transparent 70%);
}

.quote p,
.quote small {
  color: rgba(255, 255, 255, 0.86);
}

.quote strong {
  display: block;
  margin-bottom: 0.8rem;
  font-family: var(--font-section);
  font-size: clamp(1.06rem, 1rem + 0.24vw, 1.16rem);
  line-height: var(--leading-section);
  letter-spacing: var(--tracking-section);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: var(--text-meta);
  overflow-wrap: anywhere;
}

.breadcrumbs li {
  color: var(--ink-soft);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.55rem;
  color: rgba(0, 0, 0, 0.28);
}

.page-hero {
  padding: 4.2rem 0 2.2rem;
}

.page-hero h1 {
  max-width: 22ch;
  font-family: var(--font-heading);
  font-weight: 700;
  font-optical-sizing: none;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-hero .lede {
  max-width: 64ch;
}

.story-card {
  padding: 1.45rem;
}

.story-card strong {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(196, 183, 169, 0.22);
  color: var(--ink);
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.faq-card {
  padding: 1rem;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-family: var(--font-section);
  font-size: var(--text-h4);
  font-weight: 800;
  line-height: var(--leading-section);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 1rem;
}

.article {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 1.75rem;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
  font-size: var(--text-meta);
  min-width: 0;
  overflow-wrap: anywhere;
}

.article h2 {
  margin-top: 2rem;
}

.article h3 {
  margin-top: 1.6rem;
  font-size: var(--text-h4);
}

.article blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--brand-sand);
  background: rgba(196, 183, 169, 0.1);
  border-radius: 0 16px 16px 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.article a,
.article-sidebar a,
.footer-links a,
.inline-callout a,
.article-cta a,
.related-articles a {
  overflow-wrap: anywhere;
}

/* ===== Article tables — solid, clean, professional ===== */
.table-wrap {
  max-width: 100%;
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(196, 183, 169, 0.25);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 18px rgba(20, 15, 10, 0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
}

/* Header row */
thead tr {
  background: rgba(196, 183, 169, 0.12);
  border-bottom: 2px solid rgba(196, 183, 169, 0.3);
}

th {
  padding: 0.85rem 1.1rem;
  text-align: left;
  vertical-align: bottom;
  font-family: var(--font-body);
  font-size: var(--text-meta);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Body rows */
tbody tr {
  border-bottom: 1px solid rgba(196, 183, 169, 0.18);
  transition: background 0.12s ease;
}

tbody tr:last-child {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(196, 183, 169, 0.1);
}

td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  vertical-align: top;
  font-size: var(--text-meta);
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* First column — slight weight for row labels */
td:first-child {
  font-weight: 700;
  color: var(--ink);
}

/* Scope attribute support for screen readers (already in HTML) */
th[scope="col"] {
  border-bottom: 2px solid rgba(196, 183, 169, 0.3);
}

/* On mobile: ensure table is scrollable without page overflow */
@media (max-width: 760px) {
  .table-wrap {
    margin-left: 0;
    margin-right: 0;
    box-shadow:
      0 4px 18px rgba(20, 15, 10, 0.06),
      inset -6px 0 12px -8px rgba(20, 15, 10, 0.1);
  }

  th,
  td {
    padding: 0.75rem 0.85rem;
    font-size: 0.84rem;
  }

  table {
    min-width: 620px;
  }
}

.note {
  background: linear-gradient(180deg, rgba(196, 183, 169, 0.14), rgba(255, 255, 255, 0.85));
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 1.5rem;
  padding: 1.7rem;
  border-radius: 30px;
  background: linear-gradient(180deg, #1a1714, #111111);
}

.footer-grid p,
.footer-grid a,
.footer-grid li,
.footer-grid h3 {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer .brand-text strong {
  color: #ffffff;
}

.site-footer .brand-text span {
  color: rgba(255, 255, 255, 0.92);
}

.footer-grid h3 {
  font-size: var(--text-h4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-note {
  margin-top: 1.2rem;
  font-size: var(--text-meta);
  color: rgba(255, 255, 255, 0.72);
}

.reveal {
  opacity: 1;
  transform: none;
}

body.js-reveal-ready .reveal.is-pending {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.js-reveal-ready .reveal.in-view,
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.micro-copy {
  font-size: var(--text-meta);
}

.lead-number {
  color: #8a7a6f;
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.article-cta {
  margin-top: 2.2rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(196, 183, 169, 0.1), rgba(196, 183, 169, 0.06));
  border: 1px solid rgba(196, 183, 169, 0.28);
}

.article-cta h3 {
  margin-bottom: 0.5rem;
}

.article-cta p {
  margin: 0 0 1rem;
}

.related-articles {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.related-articles h3 {
  margin-bottom: 1rem;
  font-size: var(--text-h4);
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.related-articles a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.related-articles a:hover {
  text-decoration: underline;
}

.inline-callout {
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  background: rgba(196, 183, 169, 0.1);
  border: 1px solid rgba(196, 183, 169, 0.22);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 0;
}

.site-shell {
  overflow-x: hidden;
}

@keyframes pulse {
  0% {
    transform: scale(0.98);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.02);
    opacity: 1;
  }

  100% {
    transform: scale(0.98);
    opacity: 0.8;
  }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(calc(100% - 2rem), 580px);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(20, 15, 10, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: var(--text-meta);
  color: var(--ink-soft);
  flex: 1 1 220px;
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  min-width: 0;
  flex-shrink: 0;
}

.cookie-actions .button {
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  font-size: var(--text-meta);
  box-shadow: none;
}

@media (max-width: 560px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: min(calc(100% - 1rem), 580px);
    padding: 0.95rem;
  }

  .cookie-banner p {
    flex: 0 1 auto;
  }

  .cookie-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .cookie-actions .button {
    flex: 1 1 0;
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body.js-reveal-ready .reveal.is-pending,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .article-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .article-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 4.4rem;
  }

  .hero-panel {
    order: -1;
  }
}

@media (max-width: 900px) {
  .site-header .container {
    min-height: var(--header-height-mobile);
    padding: 0.7rem 0;
    gap: 0.75rem;
    position: relative;
  }

  .brand {
    flex: 1 1 auto;
    gap: 0.58rem;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .brand-text {
    gap: 0.14rem;
  }

  .brand-text strong {
    font-size: 0.88rem;
    letter-spacing: 0.08em;
  }

  .brand-text span {
    font-size: 0.72rem;
    line-height: 1.18;
    letter-spacing: 0.01em;
  }

  .nav {
    position: static;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0;
    border-radius: 999px;
  }

  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height-mobile);
    width: auto;
    max-height: calc(100dvh - var(--header-height-mobile));
    overflow-y: auto;
    transform: none;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem max(1rem, env(safe-area-inset-right)) 0.9rem max(1rem, env(safe-area-inset-left));
    border-radius: 0 0 22px 22px;
    background: #C4B7A9;
    border: 1px solid rgba(100, 80, 65, 0.18);
    border-left: 0;
    border-right: 0;
    box-shadow: 0 12px 40px rgba(20, 15, 10, 0.16);
    z-index: 200;
  }

  .nav-links a {
    min-height: 44px;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  body::before {
    display: none;
  }

  .site-header .container {
    min-height: var(--header-height-mobile);
    padding: 0.7rem 0;
    gap: 0.75rem;
    position: relative;
  }

  .brand {
    flex: 1 1 auto;
    gap: 0.58rem;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .brand-text {
    gap: 0.14rem;
  }

  .brand-text strong {
    font-size: 0.88rem;
    letter-spacing: 0.08em;
  }

  .brand-text span {
    font-size: 0.72rem;
    line-height: 1.18;
    letter-spacing: 0.01em;
  }

  .nav {
    position: static;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0;
    border-radius: 999px;
  }

  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height-mobile);
    width: 100vw;
    max-height: calc(100dvh - var(--header-height-mobile));
    overflow-y: auto;
    transform: none;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem max(1rem, env(safe-area-inset-right)) 0.9rem max(1rem, env(safe-area-inset-left));
    border-radius: 0 0 22px 22px;
    background: #C4B7A9;
    border: 1px solid rgba(100, 80, 65, 0.18);
    border-left: 0;
    border-right: 0;
    box-shadow: 0 12px 40px rgba(20, 15, 10, 0.16);
    z-index: 200;
  }

  .nav-links a {
    min-height: 44px;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  .card-grid.three,
  .card-grid.two,
  .story-grid,
  .article-cards {
    grid-template-columns: 1fr;
  }

  .stats-ribbon {
    grid-template-columns: 1fr;
  }

  .hero-diagram {
    gap: 7rem 1.3rem;
    min-height: 530px;
  }

  .hero-node {
    min-height: 10.6rem;
    backdrop-filter: none;
  }

  body.js-reveal-ready .reveal.is-pending,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 560px) {
  :root {
    --radius: 22px;
    --radius-sm: 16px;
  }

  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  h2 {
    font-size: clamp(1.42rem, 5.3vw, 1.72rem);
  }

  .hero-copy h1 {
    font-size: clamp(1.72rem, 7vw, 2.16rem);
    line-height: 1.12;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(1.68rem, 7vw, 2rem);
    line-height: 1.13;
  }

  .section-head h2 {
    font-size: clamp(1.55rem, 7vw, 1.96rem);
    line-height: 1.16;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 0.84rem;
    letter-spacing: 0.07em;
  }

  .brand-text span {
    font-size: 0.7rem;
    letter-spacing: 0.005em;
  }

  h3 {
    font-size: clamp(1.08rem, 4.8vw, 1.22rem);
  }

  .hero-node {
    position: static;
    width: auto;
    min-height: 0;
    margin-bottom: 0.9rem;
  }

  .hero-core,
  .hero-orbit {
    position: static;
    transform: none;
    width: auto;
    margin: 0 0 1rem;
  }

  .hero-core {
    min-height: 150px;
    aspect-ratio: auto;
    border-radius: 30px;
  }

  .hero-diagram {
    display: block;
    min-height: auto;
  }

  .cta-band {
    padding: 1.3rem;
  }

  .button-row .button,
  .contact-actions .button {
    flex: 1 1 100%;
  }

  .article {
    padding: 1rem;
    border-radius: var(--radius-sm);
  }

  .article h2 {
    font-size: clamp(1.35rem, 6.4vw, 1.65rem);
    line-height: 1.2;
  }

  .article h3 {
    font-size: clamp(1.08rem, 4.8vw, 1.22rem);
  }

  .article-meta {
    gap: 0.35rem 0.8rem;
  }

  .panel,
  .article-sidebar,
  .contact-card,
  .note,
  .card,
  .story-card {
    padding: 1.15rem;
  }

  .footer-grid {
    padding: 1.25rem;
    border-radius: 22px;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(100% - 1rem, var(--max));
  }

  .site-header .container {
    gap: 0.55rem;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 0.78rem;
    letter-spacing: 0.055em;
  }

  .brand-text span {
    font-size: 0.69rem;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }
}
