/* ============================================================
   H2H Protocol — legal & informational pages
   Inherits the Khader International design language:
   navy + gold, Georgia + Arial, dark theme, editorial spacing.
   ============================================================ */

:root {
  /* Palette — mirrors Khader's tokens */
  --bg:             #1E2632;
  --bg-deep:        #161C26;
  --bg-band:        #2C3645;     /* header + footer band */
  --bg-band-edge:   rgba(255, 255, 255, 0.06);

  --gold:           #C8A24A;
  --gold-soft:      #D6BB72;
  --gold-dim:       rgba(200, 162, 74, 0.32);
  --gold-line:      rgba(200, 162, 74, 0.18);
  --gold-tint:      rgba(200, 162, 74, 0.05);
  --gold-tint-2:    rgba(200, 162, 74, 0.08);

  --silver:         #C9CCD3;
  --silver-dim:     #9CA0AA;
  --silver-low:     #7A7E87;

  --text:           #E8E5DC;
  --text-muted:     #A8ACB5;
  --text-dim:       #6B6F78;

  --hairline:       rgba(255, 255, 255, 0.08);
  --hairline-warm:  rgba(232, 229, 220, 0.06);

  /* Warning accent — kept distinct (amber) for safety + warn callouts */
  --warn:           #F5B341;
  --warn-bg:        rgba(245, 179, 65, 0.08);
  --warn-border:    rgba(245, 179, 65, 0.45);

  /* Type */
  --serif:         Georgia, "Times New Roman", Cambria, serif;
  --sans:          -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;
  --sans-display:  Arial, Helvetica, sans-serif;

  /* Layout */
  --max-w:                900px;       /* narrower than Khader — better for long-form legal prose */
  --max-w-wide:          1200px;        /* used for header + footer */
  --section-gap:          120px;
  --section-gap-mobile:    72px;
  --gutter:                32px;
  --gutter-mobile:         20px;
  --header-h:              122px;
  --brand-h:                80px;       /* wordmark height — smaller, optically matches Khader's KHADER lockup */
  --brand-aspect:          2.944;       /* h2h_logo.png native ratio (630 / 214) */
  --brand-gap-left:         26px;       /* gap before the logo (cut on the left of the wordmark) */
  --brand-gap-right:        12px;       /* gap after the logo (cut on the right of the wordmark) */
  --brand-sit:               0.75;      /* fraction of wordmark sitting above the gold separator (0.5 = centered) */

  /* Motion */
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --dur:         320ms;
  --dur-slow:    720ms;
}

/* ------------------------------------------------------------
   Reset
   ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

[id] { scroll-margin-top: 24px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

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

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

a:hover {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 1px;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

strong { font-weight: 600; color: var(--text); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--gold-tint);
  border: 1px solid var(--gold-line);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.92em;
  color: var(--silver);
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg-band);
  box-shadow: 0 1px 0 var(--bg-band-edge) inset;
  opacity: 0;
  animation: fadeIn 600ms var(--ease-out) 200ms forwards;
}

/* Gold separator under header — split around the brand-mark */
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  top: 100%;
  height: 1px;
  background: var(--gold);
  pointer-events: none;
}
.site-header::before {
  /* Left segment: viewport edge → wordmark left − left-cut */
  left: 0;
  width: calc(max(var(--gutter), (100vw - var(--max-w-wide)) / 2 + var(--gutter)) - var(--brand-gap-left));
}
.site-header::after {
  /* Right segment: wordmark right + right-cut → viewport edge */
  right: 0;
  left: calc(max(var(--gutter), (100vw - var(--max-w-wide)) / 2 + var(--gutter)) + var(--brand-h) * var(--brand-aspect) + var(--brand-gap-right));
}

.header-inner {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.header-nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.header-nav a {
  font-family: var(--sans-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.header-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.header-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold-dim);
}

.header-nav a[aria-current="page"]:hover {
  border-bottom-color: var(--gold);
}

/* ------------------------------------------------------------
   Brand mark — H2H lockup straddles header / body boundary
   ------------------------------------------------------------ */

.brand-mark-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  pointer-events: none;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand-mark {
  display: inline-block;
  pointer-events: auto;
  border-bottom: none;
  padding: calc(var(--header-h) - var(--brand-h) * var(--brand-sit)) 0 0;   /* position so 62% of wordmark sits above the gold separator */
  opacity: 0;
  animation: fadeIn 700ms var(--ease-out) 300ms forwards;
  transition: opacity var(--dur) var(--ease);
}

.brand-mark:hover { border-bottom: none; opacity: 0.88; }

.brand-mark-logo {
  height: var(--brand-h);
  width: auto;
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.5));
}

@keyframes fadeIn { to { opacity: 1; } }

/* ------------------------------------------------------------
   Section system
   ------------------------------------------------------------ */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section + .section { margin-top: var(--section-gap); }

/* First section on a sub-page — clears the brand-mark overhang past the header */
.section--head {
  padding-top: calc(var(--brand-h) * (1 - var(--brand-sit)) + 48px);
}

.eyebrow {
  font-family: var(--sans-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
  padding-left: 18px;
  position: relative;
}

.eyebrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 1em;
  background: var(--gold);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform 900ms var(--ease-out) 200ms;
}

.eyebrow.is-static::before,
.reveal.is-visible .eyebrow::before {
  transform: translateY(-50%) scaleY(1);
}

/* Page headline */
.page-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 0 0 16px;
}

.page-dates {
  font-family: var(--sans-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-low);
  margin: 0 0 56px;
}

.page-dates strong { color: var(--silver); font-weight: 600; }
.page-dates .sep { color: var(--text-dim); margin: 0 10px; }

/* Section H1 — used by Contact / About pages (parallels .page-title but a touch tighter) */
.section-h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--text);
}

/* ------------------------------------------------------------
   Contact page — intro + form, single centered column
   ------------------------------------------------------------ */

.contact-head { padding-bottom: 0; }

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-intro { margin-bottom: 56px; }

.contact-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--silver-dim);
  margin: 28px 0 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {
  font-family: var(--sans-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.contact-input,
.contact-textarea {
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.contact-input::placeholder,
.contact-textarea::placeholder { color: var(--text-dim); }

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(200, 162, 74, 0.025);
}

.contact-textarea {
  resize: vertical;
  min-height: 160px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
}

.contact-submit {
  align-self: flex-start;
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 14px 36px;
  font-family: var(--sans-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: var(--gold);
  color: var(--bg);
  outline: none;
}

.contact-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 16px 0 0;
}

.contact-note a {
  color: var(--silver-dim);
  border-bottom-color: var(--gold-dim);
}

.contact-note a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ------------------------------------------------------------
   About page — editorial layout
   Hero lead → numbered chapters → Promise card → Signoff
   ------------------------------------------------------------ */

/* Hero — full-width split card: eyebrow + title on left, lead paragraphs on right */
.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(48px, 6vw, 112px);
  align-items: center;
  max-width: none;
  margin: calc(var(--brand-h) * (1 - var(--brand-sit)) + 48px) clamp(20px, 2.5vw, 56px) 0;
  padding: clamp(56px, 6vw, 92px) clamp(40px, 5vw, 88px);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: linear-gradient(135deg, #242C3A 0%, #161C26 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-card-left  { min-width: 0; }
.hero-card-right { min-width: 0; }

.hero-card .section-h1 {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.12;
}

.hero-card .eyebrow { margin-bottom: 24px; }

.about-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.55;
  letter-spacing: -0.003em;
  color: var(--silver);
  margin: 0;
}

.about-lead + .about-lead { margin-top: 18px; }

/* Gold divider between hero and chapters */
.about-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 96px auto 0;
  opacity: 0.6;
}

/* Chapter grid — three editorial cards spanning the full viewport width */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 48px);
  max-width: none;
  margin: 96px 0 0;
  padding: 0 clamp(20px, 2.5vw, 56px);
}

.chapter-card {
  display: flex;
  flex-direction: column;
  padding: 44px 36px 40px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.012);
  transition:
    border-color var(--dur) var(--ease),
    background    var(--dur) var(--ease),
    transform     var(--dur) var(--ease);
}

.chapter-card:hover {
  border-color: var(--gold-line);
  background: var(--gold-tint);
  transform: translateY(-3px);
}

.chapter-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--silver-low);
  margin: 0 0 14px;
  display: block;
}

.chapter-eyebrow {
  font-family: var(--sans-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  padding-left: 14px;
  position: relative;
  align-self: flex-start;
}

.chapter-eyebrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 1em;
  background: var(--gold);
  transform: translateY(-50%);
}

.chapter-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0 0 22px;
}

.chapter-body { flex: 1; }

.chapter-body p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.chapter-body p:last-child { margin-bottom: 0; }

/* Pull quote inside a card — soft rule above + italic serif statement */
.chapter-card .pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.55;
  letter-spacing: -0.003em;
  color: var(--silver);
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--gold-line);
}

/* Promise — vow card, centered, gold-tinted */
.about-promise {
  max-width: 800px;
  margin: 128px auto 0;
  padding: 64px clamp(36px, 5vw, 72px);
  border: 1px solid var(--gold-line);
  background: var(--gold-tint);
  border-radius: 4px;
  text-align: center;
  position: relative;
}

.about-promise::before {
  /* Subtle gold accent at top center — a seal-like flourish */
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold);
}

.promise-eyebrow {
  font-family: var(--sans-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
  display: inline-block;
}

.promise-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 32px;
}

.promise-body p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 1.55;
  color: var(--text);
  margin: 0 auto 18px;
  max-width: 600px;
}

.promise-body p:last-child { margin-bottom: 0; }

/* Signoff — signed by the team */
.about-signoff {
  max-width: var(--max-w);
  margin: 88px auto 0;
  padding: 32px var(--gutter) 0;
  border-top: 1px solid var(--hairline);
  text-align: right;
}

.signoff-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.5;
  color: var(--silver);
  margin: 0;
  letter-spacing: 0.01em;
}

/* About page — collapse hero split + 3-up chapter grid on tablet/mobile */
@media (max-width: 960px) {
  .hero-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: clamp(40px, 5vw, 56px) clamp(28px, 4vw, 44px);
  }
  .chapters-grid {
    grid-template-columns: 1fr;
    max-width: var(--max-w);
    gap: 20px;
    margin-top: 80px;
  }
  .chapter-title { font-size: clamp(22px, 3vw, 26px); }
  .chapter-body p { font-size: 16px; }
}

@media (max-width: 720px) {
  .about-divider { margin-top: 64px; }
  .chapters-grid { margin-top: 64px; }
  .chapter-card { padding: 36px 28px 32px; }
  .about-promise {
    margin-top: 88px;
    padding: 44px clamp(24px, 5vw, 36px);
  }
  .about-signoff { margin-top: 72px; padding-top: 24px; }
}

/* ------------------------------------------------------------
   Long-form article (legal docs)
   ------------------------------------------------------------ */

.article {
  font-family: var(--sans);
}

.article > p:first-child { margin-top: 0; }

.article p {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--text);
  margin: 0 0 18px;
}

.article h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.008em;
  color: var(--text);
  margin: 64px 0 20px;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
}

.article h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 32px;
}

.article h3 {
  font-family: var(--sans-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 32px 0 12px;
  padding-left: 18px;
  position: relative;
}

.article h3::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 1em;
  background: var(--gold);
  transform: translateY(-50%);
}

.article ul,
.article ol {
  padding-left: 22px;
  margin: 14px 0 18px;
}

.article li {
  margin: 8px 0;
  line-height: 1.7;
  color: var(--text);
}

.article ul li::marker,
.article ol li::marker { color: var(--gold); }

.article blockquote {
  border-left: 2px solid var(--gold);
  background: var(--gold-tint);
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: 0 4px 4px 0;
}

.article blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  margin: 6px 0;
}

.article blockquote strong {
  font-family: var(--sans-display);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-right: 6px;
}

/* Callout blocks */
.callout {
  background: var(--gold-tint);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  padding: 24px 26px;
  margin: 0 0 36px;
}

.callout h2 {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
  font-family: var(--sans-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 18px !important;
  position: relative;
}

.callout h2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 1em;
  background: var(--gold);
  transform: translateY(-50%);
}

.callout p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 10px;
}

.callout p:last-child { margin-bottom: 0; }

.callout ul { margin: 4px 0 0; padding-left: 22px; }
.callout li { font-size: 15.5px; line-height: 1.7; }

/* Safety / warning variant — amber accent instead of gold */
.callout--warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

.callout--warn h2 { color: var(--warn); }
.callout--warn h2::before { background: var(--warn); }

.callout--warn strong { color: var(--warn); }

/* Step block — used in delete-account for procedure boxes */
.step-block {
  background: var(--gold-tint);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  padding: 24px 26px;
  margin: 20px 0;
}

.step-block h3 {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

.step-block ol,
.step-block ul {
  margin: 0;
}

.step-block p { margin: 0 0 8px; }

/* ------------------------------------------------------------
   Legal hub — document grid (home page)
   ------------------------------------------------------------ */

.intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 72px;
}

.intro-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.5;
  color: var(--silver);
  margin: 0;
}

/* Wrap that holds the 4-card grid on the left and the hero art on the right */
.docs-wrap {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  /* Asymmetric margin — left matches hero card, right is tighter so the hero art bleeds further toward the viewport edge */
  margin: 0 clamp(4px, 0.6vw, 12px) 0 clamp(20px, 2.5vw, 56px);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  /* Flex-grow so the 4 cards expand to take all remaining row width */
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.docs-art {
  /* Fixed-size logo column — does NOT compete with the cards for space */
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.docs-art img {
  display: block;
  width: 100%;
  max-width: clamp(260px, 26vw, 440px);
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.5));
}

@media (max-width: 1040px) {
  .docs-wrap { display: block; }
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1 1 auto;
  }
  .docs-art { display: none; }   /* hide the hero art on tablet/mobile — cards take full focus */
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 32px 32px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.012);
  color: inherit;
  border-bottom: 1px solid var(--hairline);   /* override the global a underline */
  text-decoration: none;
  transition:
    border-color var(--dur) var(--ease),
    background    var(--dur) var(--ease),
    transform     var(--dur) var(--ease);
}

.doc-card:hover,
.doc-card:focus-visible {
  border-color: var(--gold-line);
  background: var(--gold-tint);
  transform: translateY(-3px);
  outline: none;
}

.doc-card-eyebrow {
  font-family: var(--sans-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 14px;
  position: relative;
  margin: 0;
  align-self: flex-start;
}

.doc-card-eyebrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 1em;
  background: var(--gold);
  transform: translateY(-50%);
}

.doc-card-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 1.9vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0;
}

.doc-card-desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.doc-card-arrow {
  font-family: var(--sans-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap var(--dur) var(--ease);
}

.doc-card:hover .doc-card-arrow { gap: 16px; }
.doc-card:hover .doc-card-title { color: var(--gold-soft); }

/* ------------------------------------------------------------
   Footer — 3-column (place / wordmark / contact)
   ------------------------------------------------------------ */

footer.site-footer {
  margin-top: 56px;
  padding: 64px var(--gutter) 48px;
  position: relative;
  background: var(--bg-band);
  border-top: 1px solid var(--gold);
  box-shadow: 0 1px 0 var(--bg-band-edge) inset;
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
  text-align: left;
}

.footer-col { display: flex; flex-direction: column; }

.footer-col--center {
  align-items: center;
  text-align: center;
}

.footer-col--right {
  text-align: left;
  padding-left: clamp(32px, 12vw, 184px);
}

.footer-detail {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  margin: 0;
  padding-left: 0;             /* flush-left with the eyebrow gold tick above */
}

.footer-link {
  color: var(--silver);
  border-bottom: 1px solid var(--gold-dim);
  font-style: normal;
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.footer-logo {
  width: 220px;
  max-width: 72%;
  height: auto;
  margin: 0 auto 14px;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.footer-place {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin: 0 0 40px;
}

.footer-legal {
  font-family: var(--sans-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}

/* ------------------------------------------------------------
   Reveal animations
   ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 880px) {
  .docs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    justify-items: center;
  }
  .footer-col,
  .footer-col--right { text-align: center; align-items: center; padding-left: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --header-h: 88px; --brand-h: 62px; --brand-gap-left: 18px; --brand-gap-right: 8px; }

  .header-nav { gap: 22px; }
  .header-nav a { font-size: 12px; letter-spacing: 0.16em; }

  .section { padding: 0 var(--gutter-mobile); }
  .section--head { padding-top: calc(var(--brand-h) * (1 - var(--brand-sit)) + 32px); }
  .section + .section { margin-top: var(--section-gap-mobile); }

  .page-title { font-size: 28px; }
  .article h2 { font-size: 22px; margin: 48px 0 16px; padding-top: 36px; }
  .article p { font-size: 16px; }

  .callout, .step-block { padding: 20px 22px; }

  footer.site-footer {
    padding: 48px var(--gutter-mobile) 32px;
    margin-top: 40px;
  }
  .footer-logo { width: 180px; margin-bottom: 24px; }
  .footer-place { margin-bottom: 32px; font-size: 14px; }
}

@media (max-width: 480px) {
  :root { --header-h: 64px; --brand-h: 46px; --brand-gap-left: 13px; --brand-gap-right: 6px; }
  .page-title { font-size: 24px; }
  .footer-logo { width: 160px; }
  .doc-card { padding: 28px 24px 24px; }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal .eyebrow::before { transform: translateY(-50%) scaleY(1); }
  .site-header, .brand-mark { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   Print
   ------------------------------------------------------------ */

@media print {
  html, body { background: #fff; color: #000; }
  .site-header, .brand-mark-rail { position: static; background: none; }
  .site-header::before, .site-header::after { display: none; }
  .header-nav a { color: #000; }
  .section--head { padding-top: 24px; }
  .article h2, .page-title { color: #000; }
  .article h3, .eyebrow { color: #8a6f2a; }
  .callout, .step-block { background: #f9f3e0; border-color: #c8a24a; }
  .article blockquote { background: #f9f3e0; border-left-color: #8a6f2a; }
  footer.site-footer { background: none; border-top-color: #000; }
  a { color: #000; border-bottom-color: #000; }
}
