/* palette: bg=#1A0A11 fg=#F0E4CC accent=#C9A35B */
/* fonts: display="Bodoni Moda" body="Lato" mono="IBM Plex Mono" */

:root {
  --bg: #1A0A11;
  --bg-alt: #B68A7E;
  --bg-deep: #0F0509;
  --surface: #2A1219;
  --fg: #F0E4CC;
  --fg-soft: #D8CAB0;
  --muted: #8A7565;
  --accent: #C9A35B;
  --accent-deep: #8C6E2E;
  --border: rgba(240, 228, 204, 0.14);
  --border-strong: rgba(240, 228, 204, 0.28);
  --serif: 'Bodoni Moda', 'Times New Roman', ui-serif, serif;
  --sans: 'Lato', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(3.5rem, 10vw, 9rem); letter-spacing: -0.035em; font-weight: 300; }
h2 { font-size: clamp(2.5rem, 6vw, 5rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -0.015em; }
h4 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: italic; color: var(--accent); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--muted { color: var(--muted); }

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 60ch;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

section { position: relative; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); color: #2A1219; }
.section--alt .eyebrow { color: #6F3727; }
.section--alt em { color: #6F3727; }
.section--deep { background: var(--bg-deep); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 10, 17, 0.65);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  transition: box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header[data-scrolled="true"] {
  background: rgba(15, 5, 9, 0.88);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 32px -12px rgba(0,0,0,0.6);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.brand__mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-2px);
}
.nav { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; gap: 36px; }
}
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}
.header__cta {
  display: none;
}
@media (min-width: 1100px) {
  .header__cta { display: inline-flex; }
}

/* Mobile menu toggle */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}
@media (min-width: 960px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 80px 0 0 0;
  background: var(--bg-deep);
  z-index: 90;
  padding: 48px 32px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.mobile-menu[data-open="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--fg);
}
.mobile-menu nav a:hover { color: var(--accent); }
.mobile-menu__foot {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--bg);
  background: var(--accent);
  border-radius: 9999px;
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--accent); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn--ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn--lg { padding: 18px 36px; font-size: 13px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.text-link::after { content: '→'; transition: transform .3s var(--ease); }
.text-link:hover { gap: 16px; }
.text-link:hover::after { transform: translateX(4px); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(60px, 9vw, 120px);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 9s var(--ease) forwards;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,5,9,0.55) 0%, rgba(15,5,9,0.35) 40%, rgba(15,5,9,0.92) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(201,163,91,0.18) 0%, rgba(15,5,9,0) 60%);
  z-index: 1;
}
@keyframes heroZoom {
  from { transform: scale(1.10); }
  to   { transform: scale(1); }
}
.hero__inner {
  position: relative;
  width: 100%;
  display: grid;
  gap: 28px;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
}
.hero__eyebrow .rule {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--accent);
}
.hero__title {
  max-width: 18ch;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border-strong);
}
.hero__meta-item .eyebrow { display: block; margin-bottom: 6px; color: var(--fg-soft); }
.hero__meta-item p { font-family: var(--serif); font-size: 1.1rem; color: var(--fg); }
.hero__scroll {
  position: absolute;
  right: 32px;
  bottom: 32px;
  display: none;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  writing-mode: vertical-rl;
}
@media (min-width: 960px) { .hero__scroll { display: inline-flex; } }

/* Hero — page header (interior pages) */
.page-hero {
  padding: clamp(140px, 18vw, 220px) 0 clamp(60px, 8vw, 120px);
  border-bottom: 1px solid var(--border);
}
.page-hero__row {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .page-hero__row { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 64px; }
}
.page-hero__title { max-width: 18ch; }
.page-hero__lede { padding-bottom: 8px; }

/* Section heading bar */
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: auto 1fr auto; align-items: end; gap: 48px; }
}
.section-head__title { max-width: 22ch; }
.section-head__lede { max-width: 48ch; }

/* Work grid */
.work-grid {
  display: grid;
  gap: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .work-grid { grid-template-columns: 1fr 1fr; } }

.work-card { display: block; }
.work-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}
.work-card:nth-child(odd) .work-card__media { aspect-ratio: 4 / 3; }
.work-card:nth-child(3) .work-card__media { aspect-ratio: 1 / 1; }
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease), filter .6s var(--ease);
  filter: saturate(0.95) contrast(1.02);
}
.work-card:hover .work-card__media img { transform: scale(1.05); filter: saturate(1.06); }
.work-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 10px;
  border-bottom: 1px solid var(--border);
}
.work-card__title { font-family: var(--serif); font-size: 1.5rem; }
.work-card__year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.work-card__desc {
  margin-top: 12px;
  color: var(--fg-soft);
  font-size: 0.96rem;
  line-height: 1.65;
}
.work-card__tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-card__tags span:not(:last-child)::after {
  content: '·';
  margin-left: 14px;
  opacity: 0.6;
}

/* Deep-dive case */
.case {
  background: var(--bg-alt);
  color: #2A1219;
}
.case .eyebrow { color: #6F3727; }
.case__row {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .case__row { grid-template-columns: 1fr 1fr; }
}
.case__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #2A1219;
  position: relative;
}
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding-top: 16px; }
.case__title { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: 28px; max-width: 18ch; }
.case__lede { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.5; color: #4A2419; margin-bottom: 28px; }
.case__body p { margin-bottom: 18px; color: #3A1B14; max-width: 52ch; }
.case__stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(42, 18, 25, 0.25);
}
.case__stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  color: #2A1219;
}
.case__stat-label {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6F3727;
}
.case__deck {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.case__deck > div {
  aspect-ratio: 1 / 1;
  background: #2A1219;
  overflow: hidden;
}
.case__deck img { width: 100%; height: 100%; object-fit: cover; }

/* Manifesto */
.manifesto {
  background: var(--bg-deep);
  text-align: center;
  padding: clamp(120px, 18vw, 220px) 0;
  position: relative;
}
.manifesto::before {
  content: '"';
  position: absolute;
  top: clamp(60px, 8vw, 100px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(8rem, 14vw, 14rem);
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.55;
}
.manifesto__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto;
}
.manifesto__quote em { color: var(--accent); }
.manifesto__attr {
  margin-top: 56px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Approach / numbered list */
.approach {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .approach { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .approach { grid-template-columns: repeat(4, 1fr); } }

.approach__item {
  padding: 36px 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  transition: transform .35s var(--ease), border-color .3s var(--ease);
}
.approach__item:hover { transform: translateY(-4px); border-color: var(--accent); }
.approach__num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
  line-height: 1;
}
.approach__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.approach__desc {
  color: var(--fg-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Services list */
.services-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.service-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
@media (min-width: 900px) {
  .service-row {
    grid-template-columns: 80px 1fr 1.2fr auto;
    align-items: start;
    gap: 48px;
  }
}
.service-row__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.service-row__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.service-row__desc { color: var(--fg-soft); max-width: 56ch; }
.service-row__price {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Studio principles (text-only) */
.principles {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .principles { grid-template-columns: 1fr 1fr; gap: 64px 80px; } }
.principle__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.principle__title::before {
  content: '— ';
  color: var(--accent);
}
.principle p { color: var(--fg-soft); }

/* Team monogram */
.team {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team__card {
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .3s var(--ease);
}
.team__card:hover { border-color: var(--accent); }
.avatar {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--bg);
  background: var(--accent);
  border-radius: 4px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.team__card:nth-child(2) .avatar { background: var(--bg-alt); color: #2A1219; }
.team__card:nth-child(3) .avatar { background: var(--accent-deep); color: var(--fg); }
.team__card:nth-child(4) .avatar { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
.team__name { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 4px; }
.team__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.team__bio { color: var(--fg-soft); font-size: 0.93rem; line-height: 1.65; }

/* CTA */
.cta {
  text-align: left;
  padding: clamp(100px, 14vw, 180px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta__row {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .cta__row { grid-template-columns: 1.5fr 1fr; gap: 80px; }
}
.cta h2 { max-width: 16ch; }
.cta__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cta__contact {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
}

/* Contact form */
.contact-grid {
  display: grid;
  gap: clamp(40px, 5vw, 80px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}
.contact-info { display: grid; gap: 32px; }
.contact-info__block .eyebrow { display: block; margin-bottom: 8px; }
.contact-info__block p { font-family: var(--serif); font-size: 1.2rem; color: var(--fg); }
.contact-info__block a:hover { color: var(--accent); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  padding: 12px 0;
  font-size: 1rem;
  color: var(--fg);
  transition: border-color .3s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; font-family: var(--sans); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field--row { grid-template-columns: 1fr 1fr; gap: 22px; display: grid; }
@media (max-width: 600px) { .field--row { grid-template-columns: 1fr; } }
.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.checkbox input { margin-top: 4px; accent-color: var(--accent); }
.checkbox a { color: var(--fg-soft); border-bottom: 1px solid var(--border-strong); }

/* Footer */
.footer {
  background: var(--bg-deep);
  padding: clamp(60px, 8vw, 96px) 0 32px;
  border-top: 1px solid var(--border);
}
.footer__row {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-bottom: 56px;
}
@media (min-width: 800px) {
  .footer__row { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px; }
}
.footer__brand .brand { font-size: 28px; margin-bottom: 20px; }
.footer__brand p { color: var(--fg-soft); max-width: 36ch; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__col a { color: var(--fg-soft); transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--accent); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Cookie popup */
.cookie-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
@media (min-width: 800px) {
  .cookie-popup { align-items: center; }
}
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: auto; }
.cookie-popup__card {
  background: var(--bg);
  color: var(--fg);
  padding: 36px 36px 32px;
  max-width: 520px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 24px 80px -20px rgba(0,0,0,0.7);
}
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.cookie-popup h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 14px;
}
.cookie-popup p {
  font-size: 0.93rem;
  color: var(--fg-soft);
  line-height: 1.65;
  margin: 0;
}
.cookie-popup p a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.cookie-popup__actions button {
  padding: 12px 24px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  color: var(--fg);
  border-radius: 9999px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.cookie-popup__actions button:last-child {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.cookie-popup__actions button:hover { border-color: var(--accent); color: var(--accent); }
.cookie-popup__actions button:last-child:hover { background: transparent; color: var(--accent); }

/* Legal pages */
.legal {
  padding: clamp(140px, 16vw, 200px) 0 clamp(80px, 10vw, 120px);
}
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 32px; }
.legal h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 56px 0 20px; }
.legal h3 { font-size: 1.2rem; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--fg-soft); margin-bottom: 14px; line-height: 1.8; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.legal__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

/* Thanks page */
.thanks {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
}
.thanks__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.thanks h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 24px; }
.thanks p { color: var(--fg-soft); font-size: 1.15rem; margin-bottom: 40px; }

/* Marquee */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 32px 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 56px;
  animation: scrollX 38s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--fg-soft);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee__track span::after {
  content: '✦';
  color: var(--accent);
  font-style: normal;
}
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Index column */
.index-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.index-list__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 800px) {
  .index-list__row { grid-template-columns: 80px 1.2fr 2fr auto; gap: 32px; align-items: baseline; }
}
.index-list__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.index-list__name { font-family: var(--serif); font-size: 1.4rem; }
.index-list__detail { color: var(--fg-soft); }
.index-list__year { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.14em; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; }
  .marquee__track { animation: none; }
}
