/* palette: bg=#E7E0D2 fg=#1A1714 accent=#8E2A2E */
/* fonts: display="Libre Caslon Display" body="Lato" mono="Courier Prime" */

:root {
  --bg:        #E7E0D2;   /* sepia cream — dominant background */
  --bg-alt:    #DCD2BF;   /* deeper sand for alternating sections */
  --bg-card:   #F2EDE2;   /* lighter card surface */
  --fg:        #1A1714;   /* near-black ink */
  --fg-soft:   #3B342C;   /* slightly softer ink */
  --muted:     #726957;   /* secondary text */
  --accent:    #8E2A2E;   /* sealing-wax red */
  --accent-deep: #6E1F23; /* darker wax red for hover */
  --accent-lite: #C8524E; /* wax red lifted for dark backgrounds */
  --ink-band:  #241517;   /* deep oxblood dark band */
  --cream-on-dark: #ECE5D7;
  --border:    rgba(26, 23, 20, 0.14);
  --border-strong: rgba(26, 23, 20, 0.28);
  --shadow:    0 4px 24px -4px rgba(36, 21, 23, 0.10);
  --shadow-lg: 0 18px 52px -12px rgba(36, 21, 23, 0.20);
  --serif:   'Libre Caslon Display', 'Libre Caslon Text', ui-serif, Georgia, serif;
  --serif-text: 'Libre Caslon Text', ui-serif, Georgia, serif;
  --sans:    'Lato', ui-sans-serif, system-ui, sans-serif;
  --mono:    'Courier Prime', ui-monospace, 'Courier New', monospace;
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  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; }
::selection { background: var(--accent); color: var(--bg); }

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

.section { padding: clamp(72px, 12vw, 160px) 0; }
.section--tight { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; }
h2.display {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
h3 { letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
em { font-style: italic; color: var(--accent); }

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: var(--fg-soft);
  max-width: 62ch;
}
.muted { color: var(--muted); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: 9999px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), opacity 0.4s var(--ease);
}
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border-strong); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); transform: translateY(-2px); }
.btn--light { background: var(--cream-on-dark); color: var(--ink-band); }
.btn--light:hover { background: var(--accent-lite); color: var(--cream-on-dark); transform: translateY(-2px); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  transition: gap 0.35s var(--ease), color 0.35s var(--ease);
}
.arrow-link .arw { transition: transform 0.35s var(--ease); }
.arrow-link:hover { color: var(--accent); gap: 14px; }
.arrow-link:hover .arw { transform: translateX(4px); }

/* ---------- arch motif ---------- */
.arch { border-radius: 240px 240px 16px 16px; overflow: hidden; }
.arch--soft { border-radius: 180px 180px 18px 18px; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(231, 224, 210, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(26,23,20,0.04), 0 10px 30px -22px rgba(36,21,23,0.5);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding-left: 0.26em;
  line-height: 1;
}
.brand span { color: var(--accent); }
.nav { display: none; gap: 38px; align-items: center; }
.nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.header__cta { display: none; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
}

/* hamburger */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--fg);
  transition: transform 0.4s var(--ease), opacity 0.3s 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); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 76px 0 0;
  z-index: 95;
  background: var(--bg);
  padding: 40px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a span { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-right: 14px; letter-spacing: 0.1em; }
.mobile-menu .btn { margin-top: 28px; justify-content: center; }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 56px 0;
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
  width: 100%;
}
.hero__title {
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0 0 28px;
}
.hero__sub { max-width: 46ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}
.hero__media .arch { width: 100%; height: 100%; }
.hero__media img { animation: heroZoom 9s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero__tag {
  position: absolute;
  left: -8px; bottom: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  max-width: 220px;
  line-height: 1.5;
}
.hero__tag strong { color: var(--accent); display: block; font-size: 1.5rem; font-family: var(--serif); letter-spacing: 0; margin-bottom: 2px; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: 64px; }
  .hero__media { margin: 0; max-width: none; }
}

/* ---------- services / cards ---------- */
.sec-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.sec-head__text { max-width: 60ch; }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 48px; }
}

.cards { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 5 / 4; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.card__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 16px; }
.card h3 { font-size: 1.7rem; line-height: 1.12; margin-bottom: 12px; }
.card p { font-size: 1rem; color: var(--muted); line-height: 1.65; margin-bottom: 22px; }
.card .arrow-link { margin-top: auto; }

/* service card with arch (home 3-up, mirrors product panels) */
.svc {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 28px 38px;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc__media { aspect-ratio: 3 / 4; max-width: 230px; margin: 0 auto 26px; }
.svc__media .arch { width: 100%; height: 100%; }
.svc__media img { transition: transform 0.9s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.06); }
.svc h3 { font-size: 1.55rem; margin-bottom: 12px; }
.svc p { font-size: 1rem; color: var(--muted); line-height: 1.62; margin-bottom: 22px; }

/* ---------- manifesto / dark band ---------- */
.band {
  background: var(--ink-band);
  color: var(--cream-on-dark);
}
.band .eyebrow { color: var(--accent-lite); }
.band .eyebrow::before { background: var(--accent-lite); }
.manifesto {
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}
.manifesto p {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.manifesto em { color: var(--accent-lite); }
.manifesto .sig {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 229, 215, 0.6);
  margin-top: 34px;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 7rem;
  line-height: 0.6;
  color: var(--accent-lite);
  display: block;
  margin-bottom: 8px;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 40px 26px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; }
.stat__num span { color: var(--accent); }
.stat__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

/* ---------- editorial feature (projects) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.feature + .feature { margin-top: clamp(48px, 7vw, 96px); }
.feature__media { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feature__media:hover img { transform: scale(1.04); }
.feature__cat { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.feature h3 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px; }
.feature p { color: var(--fg-soft); }
.feature__meta { display: flex; gap: 28px; flex-wrap: wrap; margin: 24px 0 26px; }
.feature__meta div span { display: block; }
.feature__meta .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.feature__meta .v { font-family: var(--serif-text); font-size: 1.15rem; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 60px; }
  .feature--flip .feature__media { order: 2; }
}

/* ---------- principles (numbered list) ---------- */
.principles { display: grid; grid-template-columns: 1fr; gap: 0; }
.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.principle:last-child { border-bottom: 1px solid var(--border); }
.principle__no { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--accent); padding-top: 8px; }
.principle h3 { font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 1.02rem; margin: 0; max-width: 64ch; }
@media (min-width: 820px) {
  .principle { grid-template-columns: 90px minmax(0, 0.9fr) 1.1fr; gap: 40px; align-items: center; }
  .principle p { padding-top: 0; }
}

/* ---------- voices / testimonials ---------- */
.voices { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 820px) { .voices { grid-template-columns: repeat(2, 1fr); } }
.voice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.voice blockquote { font-family: var(--serif-text); font-size: 1.3rem; line-height: 1.5; margin: 0 0 26px; letter-spacing: -0.005em; }
.voice__who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--cream-on-dark);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.voice__who .n { font-weight: 700; font-size: 0.98rem; line-height: 1.2; }
.voice__who .r { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.ph-note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 22px; opacity: 0.75; }

/* ---------- faq ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq details {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq summary .ico::before, .faq summary .ico::after {
  content: ""; position: absolute; background: var(--accent);
  left: 50%; top: 50%;
}
.faq summary .ico::before { width: 2px; height: 16px; transform: translate(-50%,-50%); transition: transform 0.35s var(--ease); }
.faq summary .ico::after { width: 16px; height: 2px; transform: translate(-50%,-50%); }
.faq details[open] summary .ico::before { transform: translate(-50%,-50%) scaleY(0); }
.faq details p { color: var(--muted); max-width: 72ch; margin: 0 0 22px; padding-right: 36px; }

/* ---------- cta band ---------- */
.cta-band { background: var(--ink-band); color: var(--cream-on-dark); text-align: center; }
.cta-band .eyebrow { color: var(--accent-lite); justify-content: center; }
.cta-band .eyebrow::before { background: var(--accent-lite); }
.cta-band h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 16ch; margin: 0 auto 26px; }
.cta-band p { color: rgba(236,229,215,0.72); max-width: 54ch; margin: 0 auto 36px; }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.info-block { margin-bottom: 30px; }
.info-block .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.info-block .v { font-size: 1.08rem; color: var(--fg-soft); line-height: 1.6; }
.info-block a:hover { color: var(--accent); }

form.lead-form { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; }
.field label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 15px 16px;
  width: 100%;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(142, 42, 46, 0.12);
}
.field--row { display: grid; gap: 22px; }
@media (min-width: 620px) { .field--row { grid-template-columns: 1fr 1fr; } }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.form-consent { font-size: 0.86rem; color: var(--muted); max-width: 46ch; }
.form-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- footer ---------- */
.footer { background: var(--ink-band); color: var(--cream-on-dark); padding: clamp(64px, 8vw, 104px) 0 40px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; } }
.footer__brand { font-family: var(--serif); font-size: 1.7rem; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 20px; }
.footer__brand span { color: var(--accent-lite); }
.footer__tag { color: rgba(236,229,215,0.66); max-width: 34ch; font-size: 0.98rem; line-height: 1.6; }
.footer__col h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-lite); margin-bottom: 20px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.footer__col a, .footer__col li { color: rgba(236,229,215,0.78); font-size: 0.98rem; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--cream-on-dark); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  margin-top: clamp(48px, 7vw, 80px); padding-top: 28px;
  border-top: 1px solid rgba(236,229,215,0.16);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: rgba(236,229,215,0.56);
}
.footer__bottom a:hover { color: var(--cream-on-dark); }

/* ---------- cookie popup ---------- */
.cookie-popup {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 24px;
  background: rgba(36, 21, 23, 0.42);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card {
  background: var(--bg); padding: 32px 34px; max-width: 480px;
  border-radius: 14px; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px); transition: transform 0.4s var(--ease);
}
.cookie-popup[data-open="true"] .cookie-popup__card { transform: none; }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin: 0; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button {
  padding: 12px 24px; border: 1px solid var(--border-strong); border-radius: 9999px;
  font-size: 14px; font-weight: 700; flex: 1; transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.cookie-popup__actions button:hover { border-color: var(--fg); }
.cookie-popup__actions button:last-child { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cookie-popup__actions button:last-child:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- prose (legal + page intros) ---------- */
.page-head { padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 20px; max-width: 18ch; }
.page-head p { max-width: 58ch; color: var(--fg-soft); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.01em; margin: 48px 0 16px; }
.prose h3 { font-size: 1.3rem; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--fg-soft); font-size: 1.04rem; line-height: 1.75; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose .updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- thanks ---------- */
.thanks { min-height: calc(100vh - 76px); display: flex; align-items: center; text-align: center; }
.thanks__inner { max-width: 640px; margin: 0 auto; }
.thanks h1 { font-size: clamp(2.8rem, 8vw, 6rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 22px; }
.thanks .mark { font-family: var(--serif); font-size: 5rem; color: var(--accent); line-height: 1; margin-bottom: 20px; }

/* small helpers */
.center { text-align: center; }
.mt-l { margin-top: clamp(40px, 6vw, 72px); }
.divider-note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
