/* ==========================================================================
   machupicchu.fun — Editorial luxury design system
   Inca stonework × Andean textiles × magazine editorial
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,0..100,0..1&family=Inter+Tight:wght@300..800&display=swap');

:root {
  --stone-950: #0F0E0C; --stone-900: #1C1A16; --stone-800: #2A2620;
  --stone-700: #403A30; --stone-500: #6B6358; --stone-400: #8E867A;
  --stone-300: #B3AB9D; --stone-200: #D9D3C6; --stone-100: #EDE7D9;
  --stone-50:  #F7F2E4; --stone-0:   #FFFDF5;

  --terracotta: #B8472D; --terracotta-dark: #8E331E; --terracotta-light: #D86A47;
  --gold: #C49A2E; --gold-dark: #97751C; --gold-light: #E3BC51;
  --emerald: #2F5D3F; --emerald-dark: #1E3E29;
  --lapis: #1F3A5F;

  --bg-primary: var(--stone-50); --bg-elevated: var(--stone-0);
  --bg-dark: var(--stone-950); --bg-section: var(--stone-100);

  --ink-primary: var(--stone-950); --ink-secondary: var(--stone-700);
  --ink-muted: var(--stone-500); --ink-on-dark: var(--stone-50);

  --rule-strong: var(--stone-900);
  --rule-soft: rgba(15,14,12,0.12);
  --rule-hair: rgba(15,14,12,0.07);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Inter Tight", system-ui, -apple-system, sans-serif;

  --t-mono: 0.78rem; --t-meta: 0.875rem; --t-body: 1.0625rem;
  --t-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  --t-h4: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --t-h2: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  --t-h1: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  --t-display: clamp(3rem, 2rem + 5vw, 6.5rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;
  --s-9: 6rem; --s-10: 8rem;

  --container: 1280px; --container-narrow: 760px; --container-wide: 1480px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms; --dur-base: 320ms; --dur-slow: 600ms;
}

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

html { scroll-behavior: smooth; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-primary);
  background: var(--bg-primary);
  font-feature-settings: "ss01", "cv11", "tnum";
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; background-repeat: no-repeat; background-size: cover; }
::selection { background: var(--terracotta); color: var(--stone-0); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 360; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: var(--t-h2); font-weight: 380; letter-spacing: -0.028em; margin-top: var(--s-7); margin-bottom: var(--s-4); line-height: 1.02; }
h3 { font-size: var(--t-h3); font-weight: 420; margin-top: var(--s-6); margin-bottom: var(--s-3); }
h4 { font-size: var(--t-h4); font-weight: 500; margin-top: var(--s-5); margin-bottom: var(--s-2); letter-spacing: -0.015em; }

.article-body > h2:not(:first-child)::before {
  content: "";
  display: block;
  width: 28px; height: 28px;
  margin-bottom: var(--s-3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23B8472D' stroke-width='1.4'%3E%3Cpath d='M11 1h10v10h10v10H21v10H11V21H1V11h10z'/%3E%3Ccircle cx='16' cy='16' r='2.2' fill='%23B8472D' stroke='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
}

p { margin-bottom: var(--s-4); max-width: 70ch; }
p.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-secondary); font-weight: 350; max-width: 50ch; }
p.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 5.2em;
  float: left;
  line-height: 0.85;
  padding-right: 0.15em;
  padding-top: 0.08em;
  color: var(--terracotta);
}

a { color: var(--terracotta-dark); text-decoration: none; border-bottom: 1px solid currentColor; transition: color var(--dur-fast); }
a:hover { color: var(--stone-950); }

.eyebrow, .label {
  font-family: var(--font-body);
  font-size: var(--t-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; display: inline-block; }

.chapter-num {
  font-family: var(--font-display);
  font-size: var(--t-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--terracotta);
}

.quechua {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "WONK" 1, "SOFT" 50, "opsz" 144;
  color: var(--terracotta);
}

.pill {
  display: inline-block;
  padding: 0.15em 0.7em;
  background: var(--stone-200);
  color: var(--stone-900);
  font-size: 0.82em;
  font-weight: 500;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.pill.terracotta { background: var(--terracotta); color: var(--stone-0); }
.pill.gold { background: var(--gold); color: var(--stone-950); }
.pill.emerald { background: var(--emerald); color: var(--stone-0); }
.pill.outline { background: transparent; border: 1px solid var(--rule-strong); color: var(--ink-primary); }

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

.section { padding-block: var(--s-9); position: relative; }
.section-tight { padding-block: var(--s-7); }
.section-dark { background: var(--bg-dark); color: var(--ink-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--ink-on-dark); }
.section-dark .eyebrow { color: var(--gold-light); }
.section-cream { background: var(--bg-section); }

.editorial-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (min-width: 900px) {
  .editorial-wrap { grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-7); }
  .editorial-aside { padding-top: 0.4em; border-right: 1px solid var(--rule-soft); padding-right: var(--s-5); position: sticky; top: 100px; align-self: start; }
}

/* Decorative rules */
.rule-step {
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14' preserveAspectRatio='none'%3E%3Cpath fill='%231C1A16' d='M0 7h6V4h6V1h6v3h6v3h6V4h6V1h6v3h6v3h6V4h6V1h6v3h6v3h6v3h-6v3h-6V8h-6V5h-6v3h-6v3H6V8H0z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 60px 14px;
  opacity: 0.85;
  margin-block: var(--s-6);
}
.rule-thin { height: 1px; background: var(--rule-strong); margin-block: var(--s-6); }
.rule-dot { display: flex; align-items: center; justify-content: center; gap: var(--s-3); margin-block: var(--s-6); }
.rule-dot::before, .rule-dot::after { content: ""; flex: 1; height: 1px; background: var(--rule-soft); }
.rule-dot-mark { width: 12px; height: 12px; border: 1.5px solid var(--terracotta); transform: rotate(45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.9em 1.6em;
  font-family: var(--font-body);
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::after { content: "→"; font-family: var(--font-display); transition: transform var(--dur-base) var(--ease-out); }
.btn:hover::after { transform: translateX(4px); }
.btn-primary { background: var(--stone-950); color: var(--stone-0); border-color: var(--stone-950); }
.btn-primary:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--stone-0); }
.btn-secondary { background: transparent; color: var(--stone-950); border-color: var(--stone-950); }
.btn-secondary:hover { background: var(--stone-950); color: var(--stone-0); }
.btn-ghost { background: transparent; color: var(--ink-on-dark); border-color: var(--stone-500); }
.btn-ghost:hover { background: var(--stone-50); color: var(--stone-950); }

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 228, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
  transition: background var(--dur-base);
}
.site-header.scrolled { background: rgba(247, 242, 228, 0.98); }
.nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-5); padding-block: var(--s-3); }

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--stone-950);
  border: none;
}
.brand-dot { color: var(--terracotta); }
.brand-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--stone-950);
  color: var(--stone-0);
  padding: 0.2em 0.6em;
  margin-left: 0.4em;
  vertical-align: 0.3em;
}

.nav-menu { display: flex; align-items: center; gap: var(--s-5); list-style: none; padding: 0; justify-self: center; }
.nav-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--stone-800);
  border: none;
  position: relative;
  padding-block: 0.2em;
}
.nav-menu a::after {
  content: ""; position: absolute; inset: auto 0 -2px 0;
  height: 1px; background: var(--terracotta);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-menu a:hover { color: var(--terracotta-dark); }
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-menu a.active { color: var(--terracotta-dark); }
.nav-menu a.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--stone-950); border: 1px solid var(--stone-950);
  padding: 0.55em 1em; transition: all var(--dur-fast);
}
.nav-cta:hover { background: var(--stone-950); color: var(--stone-0); }

.nav-toggle {
  display: none; width: 32px; height: 32px;
  background: transparent; border: none; cursor: pointer; padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 4px; right: 4px;
  height: 1.5px; background: var(--stone-950);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav { grid-template-columns: auto auto; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-menu {
    position: fixed; inset: 64px 0 0 0;
    background: var(--stone-50);
    flex-direction: column; align-items: flex-start;
    padding: var(--s-6) var(--s-5);
    gap: var(--s-4);
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease-out);
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { font-size: 1.5rem; font-family: var(--font-display); font-weight: 400; }
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 880px);
  padding-block: var(--s-9) var(--s-8);
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; filter: contrast(1.05) saturate(0.85); }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,14,12,0.5) 0%, rgba(15,14,12,0.3) 40%, rgba(15,14,12,0.85) 100%),
              linear-gradient(110deg, rgba(15,14,12,0.55) 0%, transparent 60%);
  z-index: 1;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23F7F2E4' stroke-width='0.6' opacity='0.06'%3E%3Cpath d='M40 0v15h15v15H40v20H25V30H10V15h15V0zM40 50h15v15H40V80H25V65H10V50h15z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--s-6); height: 100%;
  align-content: end;
  min-height: inherit;
  padding-top: var(--s-7);
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr auto; align-items: end; gap: var(--s-7); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 280;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--stone-0);
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  font-variation-settings: "WONK" 1, "SOFT" 30;
  color: var(--gold-light);
  font-weight: 320;
}
.hero-meta {
  display: flex; flex-direction: column; gap: var(--s-3);
  align-items: flex-start; text-align: left; min-width: 280px;
}
.hero-meta-block {
  border-top: 1px solid rgba(247,242,228,0.25);
  padding-top: var(--s-3);
  font-family: var(--font-body); font-size: 0.8rem;
  color: var(--stone-200);
  text-transform: uppercase; letter-spacing: 0.15em;
  display: grid; grid-template-columns: auto 1fr;
  gap: var(--s-3); width: 100%; min-width: 280px;
}
.hero-meta-block strong { color: var(--stone-0); font-weight: 600; }
.hero-lead {
  font-size: var(--t-lead); max-width: 48ch;
  color: var(--stone-200); font-weight: 320;
  line-height: 1.45; margin-top: var(--s-5);
}
.hero-marquee {
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 1px solid rgba(247,242,228,0.2);
  border-bottom: 1px solid rgba(247,242,228,0.2);
  padding-block: var(--s-3); overflow: hidden;
  background: rgba(15,14,12,0.6);
}
.hero-marquee-track {
  display: flex; gap: var(--s-7);
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display); font-size: 0.95rem;
  letter-spacing: 0.1em; color: var(--stone-200);
  width: max-content;
}
.hero-marquee-track span { display: inline-flex; align-items: center; gap: var(--s-4); }
.hero-marquee-track span::after { content: "◆"; color: var(--terracotta-light); font-size: 0.6em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Page header (non-home) */
.page-head { padding-block: var(--s-8) var(--s-7); background: var(--bg-primary); border-bottom: 1px solid var(--rule-soft); position: relative; }
.page-head::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 240px; height: 240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='%23B8472D' stroke-width='0.6' opacity='0.3'%3E%3Cpath d='M80 0v60h60v60h60v60h-60v60H80v-60H20v-60h60V0z'/%3E%3Cpath d='M100 40v40h40v40h-40v40H60v-40H20v-40h40V40z' opacity='0.5'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
  background-position: top right; pointer-events: none; opacity: 0.5;
}
.page-head .crumbs {
  font-family: var(--font-body); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: var(--s-4);
}
.page-head .crumbs a { color: inherit; border: none; }
.page-head .crumbs a:hover { color: var(--terracotta); }
.page-head h1 { font-size: var(--t-h1); font-weight: 320; letter-spacing: -0.035em; max-width: 18ch; }
.page-head .head-meta {
  margin-top: var(--s-5); padding-top: var(--s-3);
  border-top: 1px solid var(--rule-soft);
  display: flex; flex-wrap: wrap; gap: var(--s-5);
  font-family: var(--font-body); font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted);
}
.page-head .head-meta strong { color: var(--ink-primary); font-weight: 600; }

/* Article body */
.article-body { max-width: 68ch; }
.article-body p { font-size: 1.0625rem; line-height: 1.7; margin-bottom: 1.1em; }
.article-body p.lead {
  font-size: var(--t-lead); line-height: 1.45;
  color: var(--ink-secondary); font-weight: 350;
  margin-bottom: var(--s-5); max-width: 52ch;
}
.article-body h2 { margin-top: 2.5em; }
.article-body h3 { margin-top: 2em; }
.article-body ul, .article-body ol { margin-block: var(--s-4); padding-left: 1.4em; max-width: 68ch; }
.article-body li { margin-bottom: 0.45em; line-height: 1.6; }
.article-body ul li::marker { color: var(--terracotta); }
.article-body strong { color: var(--ink-primary); font-weight: 600; }
.article-body em { font-style: italic; }

.pull-quote {
  margin: var(--s-7) 0;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 360; line-height: 1.25;
  letter-spacing: -0.018em; color: var(--ink-primary);
}
.pull-quote::before {
  content: "“"; display: block;
  font-size: 2.4em; color: var(--terracotta);
  line-height: 0.4; margin-bottom: 0.05em;
}

.callout {
  margin: var(--s-6) 0;
  padding: var(--s-5);
  background: var(--bg-section);
  border-left: 3px solid var(--terracotta);
  position: relative;
}
.callout-label {
  font-family: var(--font-body); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--terracotta-dark);
  margin-bottom: var(--s-2);
}
.callout p:last-child { margin-bottom: 0; }
.callout.gold { border-color: var(--gold); }
.callout.gold .callout-label { color: var(--gold-dark); }
.callout.emerald { border-color: var(--emerald); }
.callout.emerald .callout-label { color: var(--emerald-dark); }
.callout.dark { background: var(--bg-dark); color: var(--ink-on-dark); border-color: var(--terracotta); }
.callout.dark .callout-label { color: var(--gold-light); }
.callout.dark a { color: var(--gold-light); }

/* Stats row */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-5); margin: var(--s-7) 0;
  padding-block: var(--s-6);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.8rem + 2.5vw, 4rem);
  font-weight: 320; line-height: 0.95;
  letter-spacing: -0.04em; color: var(--terracotta);
  display: block; margin-bottom: 0.2em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-body); font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-secondary);
  line-height: 1.4;
}

/* Cards */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5); margin-block: var(--s-6);
}
.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--bg-elevated); padding: var(--s-5);
  border: 1px solid var(--rule-soft);
  transition: all var(--dur-base) var(--ease-out);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: var(--s-3);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 0; height: 2px; background: var(--terracotta);
  transition: width var(--dur-base) var(--ease-out);
}
.card:hover::before { width: 100%; }
.card:hover { border-color: var(--rule-strong); transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgba(15,14,12,0.25); }
.card-num {
  font-family: var(--font-display); font-size: 0.85rem;
  font-weight: 500; color: var(--terracotta);
  letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
}
.card h3 { font-size: 1.35rem; font-weight: 420; margin: 0; line-height: 1.15; }
.card p { font-size: 0.95rem; color: var(--ink-secondary); line-height: 1.55; margin: 0; }
.card-link {
  margin-top: auto; padding-top: var(--s-3);
  font-family: var(--font-body); font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-primary);
  border: none; display: inline-flex; align-items: center;
  gap: 0.4em; width: max-content;
}
.card-link::after { content: "→"; font-family: var(--font-display); transition: transform var(--dur-fast); }
.card-link:hover { color: var(--terracotta); }
.card-link:hover::after { transform: translateX(4px); }

.card.featured {
  background: var(--bg-dark); color: var(--ink-on-dark);
  border-color: var(--stone-900); grid-column: span 2;
}
.card.featured h3 { color: var(--stone-0); }
.card.featured p { color: var(--stone-300); }
.card.featured .card-link { color: var(--stone-0); }
.card.featured .card-num { color: var(--gold-light); }
@media (max-width: 700px) { .card.featured { grid-column: span 1; } }

/* Tables */
.tbl-wrap { margin: var(--s-6) 0; overflow-x: auto; border: 1px solid var(--rule-strong); }
table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 0.95rem; }
thead { background: var(--stone-950); color: var(--stone-0); }
th {
  font-family: var(--font-body); font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; text-align: left;
  padding: var(--s-3) var(--s-4);
  border-right: 1px solid var(--stone-700);
}
th:last-child { border-right: none; }
td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-hair);
  vertical-align: top;
}
td:last-child { border-right: none; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-section); }

/* Figure / image */
figure { margin: var(--s-7) 0; position: relative; }
figure.full-bleed { margin-inline: calc(50% - 50vw); max-width: 100vw; }
figure img { width: 100%; display: block; background: var(--stone-200); }
figure.framed img { border: 1px solid var(--rule-strong); }
figure.tall img { aspect-ratio: 3/4; object-fit: cover; }
figure.wide img { aspect-ratio: 16/9; object-fit: cover; }
figure.square img { aspect-ratio: 1/1; object-fit: cover; }
figcaption {
  margin-top: var(--s-3);
  font-family: var(--font-body); font-size: 0.82rem;
  color: var(--ink-muted); font-style: italic;
  line-height: 1.4; max-width: 60ch;
}
figcaption strong {
  font-style: normal; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-primary); font-size: 0.76rem;
}

.photo-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-3); margin: var(--s-6) 0; }
.photo-grid figure { margin: 0; }
.pg-6 { grid-column: span 6; }
.pg-4 { grid-column: span 4; }
.pg-8 { grid-column: span 8; }
.pg-12 { grid-column: span 12; }
@media (max-width: 700px) { .photo-grid figure { grid-column: span 12 !important; } }

.img-placeholder {
  position: relative;
  background: var(--stone-200);
  background-image: linear-gradient(135deg, rgba(15,14,12,0.04) 25%, transparent 25%, transparent 50%, rgba(15,14,12,0.04) 50%, rgba(15,14,12,0.04) 75%, transparent 75%);
  background-size: 24px 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); font-family: var(--font-body);
  font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; text-align: center;
  padding: var(--s-5); aspect-ratio: 16/9;
}
.img-placeholder::before {
  content: "▲"; display: block;
  font-size: 1.5rem; color: var(--stone-400);
  margin-bottom: var(--s-2);
}
.img-placeholder.tall { aspect-ratio: 3/4; }
.img-placeholder.square { aspect-ratio: 1/1; }
.img-placeholder.wide { aspect-ratio: 16/9; }
.img-placeholder.cinema { aspect-ratio: 21/9; }

/* Timeline */
.timeline {
  margin: var(--s-6) 0; padding-left: var(--s-6);
  position: relative; border-left: 1px solid var(--rule-strong);
}
.timeline-item { padding-bottom: var(--s-6); position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute;
  left: calc(var(--s-6) * -1 - 5px); top: 0.4em;
  width: 11px; height: 11px;
  background: var(--terracotta); transform: rotate(45deg);
}
.timeline-date {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--terracotta);
  margin-bottom: 0.2em; display: block;
}
.timeline-item h4 { margin-top: 0; margin-bottom: var(--s-2); }

/* Step list */
.steps {
  counter-reset: step; list-style: none; padding: 0;
  margin: var(--s-6) 0; display: grid; gap: var(--s-4);
}
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: auto 1fr;
  gap: var(--s-4); align-items: baseline;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule-soft);
}
.steps li:last-child { border-bottom: none; padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 320;
  color: var(--terracotta); line-height: 0.9;
  font-variant-numeric: tabular-nums; min-width: 1.8em;
}

/* TOC */
.toc { margin: var(--s-6) 0; padding: var(--s-5); background: var(--bg-section); border-top: 2px solid var(--stone-950); }
.toc-label {
  font-family: var(--font-body); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: var(--s-3);
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: grid; gap: var(--s-2); }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 2.2em 1fr; gap: var(--s-2); }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 500;
  color: var(--terracotta); font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.toc a { color: var(--ink-primary); border: none; font-size: 0.95rem; }
.toc a:hover { color: var(--terracotta); }

/* FAQ */
.faq-list { border-top: 1px solid var(--rule-strong); margin: var(--s-6) 0; }
.faq-item { border-bottom: 1px solid var(--rule-strong); padding: var(--s-4) 0; }
.faq-item summary {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  font-weight: 420; cursor: pointer; list-style: none;
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--s-4); align-items: baseline;
  color: var(--ink-primary); transition: color var(--dur-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 300;
  color: var(--terracotta);
  transition: transform var(--dur-base) var(--ease-out);
  line-height: 0.8;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--terracotta); }
.faq-item .faq-body {
  padding-top: var(--s-3);
  font-size: 1.0125rem; color: var(--ink-secondary);
  line-height: 1.65; max-width: 68ch;
}
.faq-item .faq-body p { margin-bottom: var(--s-3); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* Form */
.form-grid { display: grid; gap: var(--s-4); max-width: 560px; margin-top: var(--s-5); }
.form-row { display: flex; flex-direction: column; gap: var(--s-2); }
.form-row label {
  font-family: var(--font-body); font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-secondary);
}
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--font-body); font-size: 1rem;
  padding: var(--s-3); background: var(--bg-elevated);
  border: 1px solid var(--rule-strong); border-radius: 0;
  color: var(--ink-primary);
  transition: border-color var(--dur-fast); width: 100%;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184,71,45,0.15);
}
.form-row textarea { min-height: 140px; resize: vertical; font-family: var(--font-body); }
.form-status { font-family: var(--font-body); font-size: 0.9rem; padding: var(--s-3); margin-top: var(--s-3); }
.form-status.success { background: rgba(47,93,63,0.1); color: var(--emerald-dark); border-left: 3px solid var(--emerald); }
.form-status.error { background: rgba(184,71,45,0.1); color: var(--terracotta-dark); border-left: 3px solid var(--terracotta); }

/* Footer */
.site-footer {
  background: var(--bg-dark); color: var(--ink-on-dark);
  padding: var(--s-8) 0 var(--s-5) 0;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14' preserveAspectRatio='none'%3E%3Cpath fill='%23F7F2E4' d='M0 7h6V4h6V1h6v3h6v3h6V4h6V1h6v3h6v3h6V4h6V1h6v3h6v3h6v3h-6v3h-6V8h-6V5h-6v3h-6v3H6V8H0z'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 60px 14px;
}
.footer-top {
  display: grid; grid-template-columns: 1fr;
  gap: var(--s-6); padding-block: var(--s-5);
  border-bottom: 1px solid rgba(247,242,228,0.1);
}
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.footer-brand h3 {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 320; color: var(--stone-0);
  letter-spacing: -0.025em; line-height: 1; margin-bottom: var(--s-3);
}
.footer-brand h3 span { color: var(--terracotta-light); font-style: italic; }
.footer-brand p { font-size: 0.9rem; color: var(--stone-300); max-width: 32ch; line-height: 1.55; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-light);
  margin-bottom: var(--s-3);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.footer-col a {
  color: var(--stone-200); border: none;
  font-size: 0.92rem; transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--stone-0); }

.footer-bottom {
  padding-top: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-3);
  align-items: flex-start; font-size: 0.82rem; color: var(--stone-400);
}
@media (min-width: 900px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom a { color: var(--stone-300); border: none; }
.footer-bottom a:hover { color: var(--stone-0); }
.footer-disclaimer { font-size: 0.78rem; color: var(--stone-400); line-height: 1.55; max-width: 80ch; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mb-0 { margin-bottom: 0 !important; }
.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
:target { scroll-margin-top: 100px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-marquee-track { animation: none; }
}

@media print {
  .site-header, .site-footer, .hero-marquee, .nav-toggle, .btn { display: none !important; }
  body { background: white; color: black; }
  a { color: black; }
}
