:root {
  --paper: #ffffff;
  --ink: #14171c;
  --muted: #5e646e;
  --line: rgba(20, 23, 28, 0.12);
  --gold: #a97812;
  --gold-2: #e6c56a;
  --wash: #f7f4ee;
  --shadow: 0 24px 60px rgba(20, 23, 28, 0.08);
  --display: "Syne", "Segoe UI", sans-serif;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --ui: "Outfit", "Segoe UI", sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(230, 197, 106, 0.28), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fff 70%, var(--wash) 100%);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(20, 23, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 23, 28, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(#000, transparent 80%);
  z-index: 0;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  z-index: 40;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 12px var(--pad);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { flex: 0 0 auto; }
.brand img { width: min(168px, 42vw); height: auto; }
.primary-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px;
  min-width: 0;
}
.primary-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--wash);
  color: var(--gold);
}
.menu-btn, .solid, .ghost {
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.menu-btn { display: none; min-height: 44px; }
.solid { background: var(--ink); color: #fff; }
.menu-btn:hover, .ghost:hover, .solid:hover { transform: translateY(-1px); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #fff;
  padding: 24px var(--pad) 48px;
  overflow: auto;
  display: none;
}
.overlay.open { display: block; }
.overlay-head { display: flex; justify-content: space-between; align-items: center; }
.overlay h2 { font-family: var(--display); font-size: clamp(40px, 7vw, 84px); margin: 12px 0 8px; letter-spacing: -0.04em; }
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.index-grid a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .35s ease, border-color .35s ease;
}
.index-grid a:hover { transform: translateY(-4px); border-color: var(--gold); }
.index-grid small { color: var(--gold); font-weight: 600; letter-spacing: .14em; }

.wrap { width: min(var(--max), calc(100% - var(--pad) * 2)); margin: 0 auto; position: relative; z-index: 1; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: end; padding: 42px 0 20px; }
.kicker { letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: var(--gold); font-weight: 600; margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.04em; line-height: 1.05; overflow-wrap: break-word; }
.grid > * { min-width: 0; }
img, video { max-width: 100%; height: auto; }
h1 { font-size: clamp(52px, 8vw, 104px); margin: 0 0 16px; }
.lead { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.45; max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.stage { position: relative; }
.stage img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--wash);
}
.ring {
  position: absolute;
  border: 1px solid rgba(169, 120, 18, .45);
  border-radius: 50%;
  pointer-events: none;
}
.ring.a { width: 140px; height: 140px; right: -20px; top: -24px; animation: spin 22s linear infinite; }
.ring.b { width: 70px; height: 70px; left: -16px; bottom: 30px; animation: spin 14s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.marquee { overflow: hidden; border-block: 1px solid var(--line); margin: 28px 0; background: #fff; }
.marquee-track { display: flex; gap: 32px; width: max-content; animation: slide 32s linear infinite; padding: 12px 0; }
.marquee span { font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
@keyframes slide { to { transform: translateX(-50%); } }

.section { padding: 54px 0; }
.section h2 { font-size: clamp(32px, 4vw, 52px); margin: 0 0 12px; }
.sub { color: var(--muted); max-width: 42rem; font-family: var(--serif); }

.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: 1.2fr .8fr; }
.card, .pillar {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
  transition: transform .4s ease, border-color .4s ease;
}
.card:hover, .pillar:hover { transform: translateY(-6px); border-color: rgba(169,120,18,.55); }
.card img, .banner { width: 100%; height: 190px; object-fit: cover; border-radius: 16px; }
.card h3, .pillar h3 { margin: 12px 0 6px; font-size: 26px; }
.meta { color: var(--muted); font-size: 13px; letter-spacing: .04em; }

.pillar strong { font-family: var(--display); font-size: 28px; display: block; }

.quote {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.25;
  margin: 0;
}
.quote span { color: var(--gold); }

.article { width: min(760px, 100%); margin: 0 auto; padding-bottom: 40px; }
.article .banner { height: auto; max-height: 460px; width: 100%; object-fit: cover; border-radius: 28px; margin: 18px 0 28px; }
.article p { font-family: var(--serif); font-size: 1.12rem; }
.article h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 1.6em; }
.drop::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 3.4rem;
  line-height: .85;
  padding-right: 10px;
  color: var(--gold);
}
.pull {
  border-left: 3px solid var(--gold);
  margin: 28px 0;
  padding: 4px 0 4px 18px;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
ol.steps, ul.clean { padding-left: 1.1rem; }
ol.steps li, ul.clean li { margin: .45rem 0; font-family: var(--serif); }

.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.search {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: #fff;
}

.glossary { display: grid; gap: 10px; }
.glossary details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  background: #fff;
}
.glossary summary { cursor: pointer; font-family: var(--display); font-size: 1.2rem; }

.note {
  background: var(--wash);
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: .95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  background: #fff;
  position: relative;
  z-index: 1;
}
.foot {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
  padding: 42px 0 28px;
}
.foot h2 {
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.foot-brand img { width: 150px; height: auto; }
.foot-brand p, .foot-note { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 10px 0 0; }
.foot nav { display: grid; gap: 8px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--gold); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 14px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.reveal { opacity: 0; transform: translateY(16px); animation: rise .8s ease forwards; }
.reveal.d2 { animation-delay: .12s; }
.reveal.d3 { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.index-grid a[aria-current="page"] { border-color: var(--gold); }

@media (max-width: 1080px) {
  .primary-nav a { font-size: 13px; padding: 8px 8px; }
}

@media (max-width: 860px) {
  .hero, .grid.three, .grid.two, .foot { grid-template-columns: 1fr 1fr; }
  .primary-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .card img, .banner { height: 210px; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  .article p { font-size: 1.05rem; }
}

@media (max-width: 640px) {
  .hero, .grid.three, .grid.two, .foot { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
  :root { --pad: 16px; }
  .brand img { width: 132px; }
  .actions .solid, .actions .ghost { width: 100%; justify-content: center; }
  .card { padding: 14px; }
  .pull { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
