/* ==========================================================
   golamrabbinibir.com — main stylesheet
   Colors: the original GR•Nibir palette (black, cream, gold)
   Type: Cormorant Garamond (headings) + Archivo (text), self-hosted
   To change a color, edit the values in :root below.
   ========================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-var.woff2") format("woff2-variations"),
       url("../fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0F0F0F;          /* page background */
  --bg-alt: #141414;      /* alternate section background */
  --surface: #181818;     /* cards, forms */
  --surface-2: #1F1F1F;   /* tags, inputs */
  --text: #F3EFE7;        /* cream text */
  --muted: #9E988E;       /* secondary text */
  --gold: #D4AF3A;        /* accent */
  --gold-hover: #E3C45F;
  --gold-dim: rgba(212, 175, 58, 0.55);
  --line: #2C281C;        /* gold-tinted hairline */
  --line-soft: #242424;
  --on-gold: #0F0F0F;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 4px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
strong { font-weight: 650; color: var(--text); }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; color: var(--text); }
.display { font-size: clamp(3rem, 7vw, 6rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
h3, .h3 { font-size: clamp(1.45rem, 2.1vw, 1.75rem); font-weight: 600; line-height: 1.15; letter-spacing: 0; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 36em; }
.prose { max-width: 38em; }
.prose p { margin-bottom: 1.1em; color: var(--muted); }
.prose p strong { color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.num { font-family: var(--serif); font-weight: 500; line-height: 0.9; letter-spacing: -0.01em; color: var(--gold); }
.head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 44em; }
.head h2 + p { margin-top: 18px; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.text-link { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--gold-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 1em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1.1; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--on-gold); }
.btn--ghost { border-color: var(--gold-dim); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--ink { background: var(--text); color: var(--on-gold); border-color: var(--text); }
.btn--ink:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn--sm { padding: 0.75em 1.2em; font-size: 0.93rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 15, 15, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { font-family: var(--serif); font-size: 1.65rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; color: var(--text); line-height: 1; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand .dot { color: var(--gold); margin: 0 0.06em; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); margin-left: auto; }
.nav-link { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--muted); padding: 6px 0; }
.nav-link:hover { color: var(--text); }
.nav-link[aria-current="page"] { color: var(--gold); }
.nav-cta { display: none; }
.header-cta { flex: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--text); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; margin: 0 auto; transition: transform .2s, background-color .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { margin-left: auto; }
  .nav {
    display: none;
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    padding: 8px var(--gutter) 32px;
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav-link { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--text); }
  .nav-cta { display: inline-flex; margin-top: 28px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
}

/* ---------- Photos (with built-in placeholder) ----------
   Each .photo shows a designed placeholder until the real
   image file exists in assets/img/. */
.photo {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, rgba(212, 175, 58, 0.10), transparent 60%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  margin: 0;
}
.photo--wide { aspect-ratio: 3 / 2; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.photo-fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 8%; }
.photo-fallback .mono { font-family: var(--serif); font-weight: 400; font-size: clamp(4rem, 9vw, 7rem); line-height: 0.8; color: var(--gold); letter-spacing: -0.02em; }
.fallback-stair { position: absolute; left: 0; right: 0; top: 14%; width: 100%; height: 38%; }
.fallback-stair path { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: miter; opacity: 0.7; }
.photo--avatar { border-radius: 50%; aspect-ratio: 1 / 1; flex: none; border-color: var(--gold-dim); }
.photo--avatar .photo-fallback { align-items: center; justify-content: center; padding: 0; }
.photo--avatar .photo-fallback .mono { font-size: 1.9rem; line-height: 1; }
.photo--avatar .fallback-stair { display: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 100px) 0 clamp(100px, 13vw, 180px);
  background: radial-gradient(55% 60% at 0% 0%, rgba(212, 175, 58, 0.07), transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.hero .display { margin-bottom: 28px; }
.hero .actions { margin: 34px 0 30px; }
.platforms { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.platforms li { display: inline-flex; align-items: center; gap: 10px; }
.platforms li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-figure { position: relative; margin: 0; max-width: 450px; justify-self: end; width: 100%; }
.hero-figure::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold-dim); border-radius: var(--radius); }
.hero-figure .photo-fallback { align-items: flex-start; justify-content: flex-start; }
.hero-figure .fallback-stair { top: 46%; }
.protocol-chip {
  position: absolute; left: -32px; bottom: 32px; z-index: 2;
  max-width: 260px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--gold);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.8);
  font-size: 0.88rem; line-height: 1.45; color: var(--muted);
}
.protocol-chip strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.hero-curve { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(90px, 15vw, 210px); z-index: 0; pointer-events: none; clip-path: inset(0 100% 0 0); animation: reveal 1.9s cubic-bezier(.55, .05, .3, 1) .25s forwards; }
.curve-line { fill: none; stroke: var(--gold-dim); stroke-width: 1.5; stroke-linejoin: miter; }
.curve-end { fill: none; stroke: var(--gold); stroke-width: 3; opacity: 0; animation: appear .4s ease-out 2s forwards; }
@keyframes reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes appear { to { opacity: 1; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { justify-self: start; max-width: 380px; margin-right: 18px; }
  .protocol-chip { left: 12px; bottom: 16px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; padding: 30px 24px 28px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat dd { margin: 0; font-size: clamp(3rem, 6vw, 4.8rem); }
.stat dt { color: var(--muted); font-weight: 500; font-size: 0.93rem; line-height: 1.4; max-width: 16em; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split h2 { margin-bottom: 24px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Columns & lists ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 48px); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 48px); }
.col-item { border-top: 1px solid var(--gold-dim); padding-top: 24px; }
.col-item h3 { margin-bottom: 12px; }
.col-item p { color: var(--muted); }
.col-item--big h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 500; }
@media (max-width: 900px) { .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding: 11px 0 11px 24px; border-top: 1px solid var(--line-soft); line-height: 1.45; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.2em; width: 10px; height: 1px; background: var(--gold); }

.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; font-size: 0.82rem; font-weight: 500; padding: 5px 11px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--muted); line-height: 1.3; }
.tags--lg .tag { font-size: 0.98rem; padding: 9px 15px; color: var(--text); }

/* ---------- Results (case study rows) ---------- */
.results { border-top: 1px solid var(--gold-dim); }
.result {
  display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.result .num { display: block; font-size: clamp(3.4rem, 6vw, 5rem); }
.result .metric-label { display: block; margin-top: 10px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.result h3 { margin-bottom: 8px; transition: color .15s; }
.result p { color: var(--muted); margin-bottom: 14px; max-width: 40em; }
.result .go { font-weight: 600; white-space: nowrap; color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.result .go--soon { font-weight: 500; color: var(--muted); text-decoration: none; }
a.result:hover { color: inherit; }
a.result:hover h3 { color: var(--gold); }
@media (max-width: 760px) { .result { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Ventures ---------- */
.ventures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.venture { display: flex; flex-direction: column; gap: 14px; min-height: 360px; padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.venture--featured { border-top: 2px solid var(--gold); }
.venture .since { font-weight: 500; color: var(--gold); font-size: 0.95rem; }
.venture h3 { font-size: clamp(2.6rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -0.015em; }
.venture p { max-width: 30em; color: var(--muted); }
.venture > .btn, .venture-actions { margin-top: auto; align-self: flex-start; }
.venture-actions { padding-top: 8px; }
@media (max-width: 760px) { .ventures { grid-template-columns: 1fr; } .venture { min-height: 0; } }

/* ---------- Quote ---------- */
.quote { margin: 0; max-width: 940px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; text-wrap: pretty; color: var(--text); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 5.5rem; line-height: 0.6; height: 0.42em; color: var(--gold); }
.quote figcaption { margin-top: 26px; font-weight: 600; }
.quote figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.93rem; margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: center;
  padding: clamp(36px, 6vw, 80px);
  background: radial-gradient(70% 120% at 100% 100%, rgba(212, 175, 58, 0.09), transparent 70%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cta-band .photo--avatar { width: clamp(104px, 13vw, 160px); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 34em; }
.cta-band .actions { margin-top: 26px; }
.cta-band-stair { position: absolute; right: 0; bottom: 0; width: min(46%, 520px); height: 60%; pointer-events: none; }
.cta-band-stair path { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0.45; }
.cta-band > *:not(.cta-band-stair) { position: relative; z-index: 1; }
@media (max-width: 680px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(52px, 8vw, 110px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(50% 70% at 0% 0%, rgba(212, 175, 58, 0.06), transparent 70%); }
.page-hero .display { max-width: 14ch; margin-bottom: 24px; }
.page-hero--split .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.page-hero--split .photo { max-width: 430px; justify-self: end; width: 100%; }
@media (max-width: 860px) {
  .page-hero--split .wrap { grid-template-columns: 1fr; }
  .page-hero--split .photo { justify-self: start; max-width: 380px; }
}
.breadcrumb { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--gold-dim); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.byline { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.byline .photo--avatar { width: 64px; }
.byline .photo--avatar .mono { font-size: 1.5rem; }
.byline-text strong { display: block; }
.byline-text span { color: var(--muted); font-size: 0.93rem; }

/* ---------- Timeline (About) ---------- */
.timeline { list-style: none; padding: 0; border-left: 1px solid var(--gold-dim); }
.timeline li { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 28px; padding: 30px 0 30px 34px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 44px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--gold); }
.timeline li:last-child::before { background: var(--gold); }
.timeline .year { font-size: 2.8rem; }
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--muted); margin: 0; max-width: 40em; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Services ---------- */
.svc-list { list-style: none; padding: 0; border-top: 1px solid var(--gold-dim); }
.svc-list li { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) 120px; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.svc-list .svc-name { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2; }
.svc-list .svc-desc { color: var(--muted); }
.svc-list .svc-kind { justify-self: end; }
@media (max-width: 700px) {
  .svc-list li { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .svc-list .svc-desc { grid-column: 1 / -1; grid-row: 2; }
}

.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.term { padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line); }
.term:last-child { border-right: 0; }
.term .num { display: block; font-size: clamp(2.6rem, 4.4vw, 3.4rem); margin-bottom: 12px; }
.term p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 760px) {
  .terms { grid-template-columns: 1fr; }
  .term { border-right: 0; border-bottom: 1px solid var(--line); }
  .term:last-child { border-bottom: 0; }
}

.detail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.detail:first-child { border-top: 1px solid var(--gold-dim); }
.detail h3 { font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 500; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } }

/* ---------- Steps (sequential processes) ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.steps li { border-top: 1px solid var(--gold-dim); padding-top: 22px; }
.steps .n { display: block; font-size: 2.8rem; margin-bottom: 14px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Case study detail ---------- */
.cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.cs-meta div { padding: 16px 16px 16px 0; border-right: 1px solid var(--line); }
.cs-meta div + div { padding-left: 16px; }
.cs-meta div:last-child { border-right: 0; }
.cs-meta dt { font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.cs-meta dd { margin: 4px 0 0; font-weight: 600; }
@media (max-width: 700px) {
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-meta div:nth-child(2) { border-right: 0; }
  .cs-meta div:nth-child(3) { padding-left: 0; }
  .cs-meta div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.cs-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.cs-section h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.cs-section .kicker { display: block; color: var(--gold); font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.cs-section .prose p { color: var(--text); }
@media (max-width: 760px) { .cs-section { grid-template-columns: 1fr; } }
.moves { list-style: none; padding: 0; margin: 8px 0 0; }
.moves li { padding: 16px 0; border-top: 1px solid var(--line); }
.moves li strong { display: block; margin-bottom: 2px; }
.moves li span { color: var(--muted); }
.phases { margin: 0; }
.phases div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.phases dt { font-weight: 600; color: var(--gold); }
.phases dd { margin: 0; color: var(--text); }
@media (max-width: 560px) { .phases div { grid-template-columns: 1fr; gap: 4px; } }
.note { margin-top: 20px; padding: 18px 20px; background: var(--surface); border-left: 2px solid var(--gold); color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 32px; border-top: 1px solid var(--gold-dim); }
.pager a { text-decoration: none; padding: 8px 0; }
.pager span { display: block; color: var(--muted); font-size: 0.9rem; }
.pager strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.pager a:hover strong { color: var(--gold); }
.pager .next { text-align: right; }

/* ---------- Resources ---------- */
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.res-item { display: flex; flex-direction: column; gap: 10px; padding: clamp(26px, 3vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.res-item .format { color: var(--gold); font-weight: 500; font-size: 0.88rem; }
.res-item p { color: var(--muted); margin: 0 0 10px; }
.res-item .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .res-grid { grid-template-columns: 1fr; } }
.stack { list-style: none; padding: 0; border-top: 1px solid var(--gold-dim); }
.stack li { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(130px, 0.8fr) minmax(0, 2fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stack .tool { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.stack .cat { color: var(--gold); font-weight: 500; font-size: 0.93rem; }
.stack .why { color: var(--muted); }
@media (max-width: 700px) { .stack li { grid-template-columns: 1fr; gap: 2px; } }
.upcoming { list-style: none; padding: 0; border-top: 1px solid var(--gold-dim); }
.upcoming li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.upcoming .topic { color: var(--gold); font-weight: 500; font-size: 0.93rem; }
.upcoming strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.25; }
.upcoming span.sum { color: var(--muted); }
@media (max-width: 560px) { .upcoming li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--gold-dim); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 24px 56px 24px 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: linear-gradient(var(--gold), var(--gold)) center / 16px 1.5px no-repeat,
              linear-gradient(var(--gold), var(--gold)) center / 1.5px 16px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold); }
.faq .answer { padding: 0 56px 26px 0; color: var(--muted); max-width: 46em; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact & forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.methods { list-style: none; padding: 0; border-top: 1px solid var(--gold-dim); }
.methods li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.methods .m-label { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2; }
.methods p { margin: 4px 0 8px; color: var(--muted); font-size: 0.97rem; }
.methods a { color: var(--gold); font-weight: 500; word-break: break-word; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form-card h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); margin-bottom: 8px; }
.form { display: grid; gap: 18px; margin-top: 24px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 7px; color: var(--text); }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 14px; border: 1px solid #3A3A3A; border-radius: var(--radius); background: var(--bg);
}
.form input::placeholder, .form textarea::placeholder, .inline-form input::placeholder { color: #6F6A62; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form select option { background: var(--surface); color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 58, 0.18); }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { justify-self: start; }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; max-width: 520px; }
.inline-form input { flex: 1 1 240px; font: inherit; color: var(--text); padding: 13px 14px; border: 1px solid #3A3A3A; border-radius: var(--radius); background: var(--bg); }
.inline-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 58, 0.18); }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0A0A0A; color: var(--muted); padding: clamp(56px, 8vw, 88px) 0 32px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer .brand { display: inline-block; font-size: 2rem; margin-bottom: 18px; }
.footer-about p { max-width: 30em; }
.footer-h { font-family: var(--sans); font-size: 0.93rem; font-weight: 600; color: var(--gold); letter-spacing: 0; margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 0.88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Simple pages (thank you, 404) ---------- */
.simple { min-height: 60vh; display: flex; align-items: center; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
}
