/* ==========================================================================
   Studio Terra - interior decor store & studio, demo website
   Register: warm editorial. Cream, forest green, clay, charcoal.
   Typography: Fraunces (display) + DM Sans (interface)
   ========================================================================== */

:root {
  --cream: #faf7f2;
  --cream-2: #f2ece2;
  --paper: #ffffff;
  --charcoal: #1c1b19;
  --forest: #2f3a33;
  --forest-2: #3d4b41;
  --clay: #b08968;
  --clay-soft: #d7bfa6;
  --sage: #9aa893;
  --ink: #26241f;
  --body: #5a5449;
  --muted: #8a8276;
  --line: #e4dccf;

  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "DM Sans", system-ui, -apple-system, sans-serif;

  --shell: 1280px;
  --gutter: 24px;
  --r: 4px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 50px -24px rgba(28, 27, 25, 0.3);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--cream);
  color: var(--body);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; background: var(--cream-2); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  color: var(--ink);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: -0.015em;
}

::selection { background: var(--clay); color: #fff; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 50%; top: -80px; transform: translateX(-50%); z-index: 300; background: var(--forest); color: var(--cream); padding: 12px 22px; font-size: 0.85rem; transition: top 0.2s; }
.skip-link:focus { top: 0; }

.eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--clay); margin-bottom: 16px; }
.section-title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-bottom: 18px; }
.section-title em { font-style: italic; color: var(--forest); }
.lede { font-size: 1.04rem; color: var(--muted); max-width: 62ch; }

.section { padding: clamp(60px, 8vw, 110px) 0; }
.section-head { max-width: 740px; margin-bottom: clamp(34px, 4.5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border: 1px solid var(--forest); border-radius: var(--r);
  background: var(--forest); color: var(--cream);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.25s var(--ease);
}
.btn:hover { background: var(--forest-2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-clay { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn-clay:hover { background: #9c7857; border-color: #9c7857; }
.btn-light { background: transparent; border-color: rgba(250, 247, 242, 0.46); color: var(--cream); }
.btn-light:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn-sm { padding: 10px 20px; font-size: 0.72rem; }
.btn svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */

.announce { background: var(--forest); color: var(--cream-2); text-align: center; font-size: 0.78rem; letter-spacing: 0.08em; padding: 10px var(--gutter); }
.announce a { color: var(--clay-soft); text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: baseline; gap: 9px; }
.logo .name { font-family: var(--font-display); font-size: 1.44rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.logo .tag { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--clay); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 0.86rem; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--clay); transition: width 0.3s var(--ease); }
.nav a:hover::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 18px; height: 1.6px; background: var(--ink);
  transform: translateX(-50%); transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { content: ""; left: 0; transform: translateY(-6px); }
.nav-toggle span::after { content: ""; left: 0; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { padding: clamp(32px, 5vw, 56px) 0 clamp(50px, 7vw, 88px); }
.hero-frame { position: relative; }
.hero-frame > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }
.hero-card {
  background: var(--cream); padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-lg); max-width: 580px;
  margin-top: -90px; margin-left: clamp(0px, 4vw, 56px); position: relative; z-index: 2;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--clay); }
.hero p { font-size: 1.04rem; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--forest); line-height: 1; }
.hero-meta span { font-size: 0.78rem; color: var(--muted); }

/* ---------- Rooms ---------- */

.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.room { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); background: var(--cream-2); }
.room img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.room:hover img { transform: scale(1.07); }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 27, 25, 0.78) 2%, transparent 50%); }
.room span.label { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff; }
.room span.label strong { display: block; font-family: var(--font-display); font-size: 1.22rem; font-weight: 500; }
.room span.label em { font-style: normal; font-size: 0.76rem; opacity: 0.78; }

/* ---------- Products ---------- */

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 22px; }
.prod { background: transparent; }
.prod-media { position: relative; aspect-ratio: 1 / 1.08; overflow: hidden; border-radius: var(--r-lg); background: var(--cream-2); margin-bottom: 14px; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.prod:hover .prod-media img { transform: scale(1.06); }
.prod .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--cream); color: var(--forest);
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.prod .quick {
  position: absolute; inset: auto 12px 12px; z-index: 2;
  padding: 11px; border: 0; border-radius: var(--r);
  background: var(--cream); color: var(--ink); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s;
}
.prod:hover .quick, .prod:focus-within .quick { opacity: 1; transform: none; }
.prod .quick:hover { background: var(--clay); color: #fff; }
.prod h3 { font-size: 1.04rem; margin-bottom: 2px; }
.prod .meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 7px; }
.prod .price { font-family: var(--font-display); font-size: 1.08rem; color: var(--forest); font-weight: 600; }

/* ---------- Before / after ---------- */

.ba { background: var(--forest); color: rgba(250, 247, 242, 0.78); }
.ba h2, .ba h3 { color: var(--cream); }
.ba .lede { color: rgba(250, 247, 242, 0.72); }
.ba-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 4vw, 54px); align-items: center; }
.ba-stage {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg);
  overflow: hidden; background: var(--charcoal); user-select: none;
}
.ba-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-stage .after { clip-path: inset(0 0 0 var(--split, 50%)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%);
  width: 2px; background: var(--cream); z-index: 3; pointer-events: none;
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--cream);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.ba-handle::before {
  content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2; color: var(--forest); font-size: 1.1rem; font-weight: 700;
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; z-index: 4; appearance: none; -webkit-appearance: none; background: transparent;
}
.ba-tag {
  position: absolute; top: 14px; z-index: 3;
  background: rgba(28, 27, 25, 0.72); color: #fff; backdrop-filter: blur(6px);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
}
.ba-tag.l { left: 14px; }
.ba-tag.r { right: 14px; }
.ba-facts { display: grid; gap: 1px; background: rgba(215, 191, 166, 0.25); margin-top: 26px; border-radius: var(--r); overflow: hidden; }
.ba-facts div { background: var(--forest); padding: 16px 18px; display: flex; justify-content: space-between; gap: 14px; font-size: 0.92rem; }
.ba-facts dt { color: rgba(250, 247, 242, 0.68); }
.ba-facts dd { color: var(--cream); font-weight: 600; }

/* ---------- Projects ---------- */

.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.proj { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.proj:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.proj img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proj-body { padding: 24px 22px 26px; }
.proj .loc { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin-bottom: 8px; }
.proj h3 { font-size: 1.22rem; margin-bottom: 10px; }
.proj p { font-size: 0.92rem; margin-bottom: 16px; }
.proj dl { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.proj dl b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--forest); }
.proj dl span { font-size: 0.76rem; color: var(--muted); }

/* ---------- Services ---------- */

.services { background: var(--cream-2); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.svc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.3s var(--ease); }
.svc:hover { border-color: var(--clay); transform: translateY(-5px); }
.svc.featured { background: var(--forest); border-color: var(--forest); color: rgba(250, 247, 242, 0.78); }
.svc.featured h3, .svc.featured .amount { color: var(--cream); }
.svc.featured .inc li { color: rgba(250, 247, 242, 0.78); }
.svc.featured .inc svg { color: var(--clay-soft); }
.svc .pill { align-self: flex-start; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--clay); color: #fff; margin-bottom: 16px; }
.svc h3 { font-size: 1.32rem; margin-bottom: 8px; }
.svc > p { font-size: 0.9rem; margin-bottom: 18px; }
.svc .amount { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.svc .per { font-size: 0.78rem; color: var(--muted); margin-bottom: 22px; display: block; }
.svc.featured .per { color: rgba(250, 247, 242, 0.6); }
.inc { display: grid; gap: 11px; margin-bottom: 26px; }
.inc li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.9rem; }
.inc svg { width: 17px; height: 17px; flex: none; color: var(--clay); margin-top: 4px; }
.svc .btn { margin-top: auto; }

/* ---------- Philosophy ---------- */

.philo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 60px); align-items: center; }
.philo-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.philo-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.philo-media figure:nth-child(1) { aspect-ratio: 3 / 4; }
.philo-media figure:nth-child(2) { aspect-ratio: 3 / 4; margin-top: 32px; }
.values { display: grid; gap: 18px; margin-top: 26px; }
.values li { display: flex; gap: 15px; align-items: flex-start; }
.values .num { font-family: var(--font-display); font-size: 1.4rem; color: var(--clay); line-height: 1.1; flex: none; width: 34px; }
.values strong { display: block; font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); font-weight: 500; }
.values span { font-size: 0.92rem; }

/* ---------- Quote ---------- */

.big-quote { background: var(--clay); color: #fff; }
.big-quote blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2.3rem); line-height: 1.34; font-style: italic; max-width: 22ch; margin-bottom: 24px; }
.big-quote cite { font-style: normal; font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }
.big-quote cite span { display: block; letter-spacing: 0; text-transform: none; opacity: 0.74; margin-top: 4px; }
.bq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 5vw, 60px); align-items: center; }
.bq-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }

/* ---------- Consultation ---------- */

.consult { background: var(--cream); }
.consult-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); font-size: 0.95rem; transition: border-color 0.22s, box-shadow 0.22s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(47, 58, 51, 0.1); }
.field textarea { resize: vertical; min-height: 104px; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-status { display: none; padding: 13px 16px; border-radius: var(--r); background: #eef6ee; border: 1px solid #c3debf; color: #2f5d34; font-size: 0.9rem; }
.form-status.is-visible { display: block; }

.studio-card { background: var(--forest); color: rgba(250, 247, 242, 0.76); border-radius: var(--r-lg); padding: clamp(26px, 3.6vw, 38px); }
.studio-card h3 { color: var(--cream); font-size: 1.4rem; margin-bottom: 12px; }
.studio-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); margin-bottom: 22px; }
.studio-card dl { display: grid; gap: 9px; font-size: 0.92rem; margin-top: 16px; }
.studio-card dl div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dotted rgba(215, 191, 166, 0.28); padding-bottom: 7px; }
.studio-card dt { color: var(--clay-soft); }
.studio-card dd { color: var(--cream); }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.faq-item { background: var(--cream); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 50px 22px 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--clay); line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .answer { padding: 0 50px 24px 0; font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--charcoal); color: rgba(250, 247, 242, 0.6); padding: clamp(48px, 6vw, 76px) 0 26px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(250, 247, 242, 0.12); }
.footer-grid .logo .name { color: var(--cream); }
.footer-grid p { font-size: 0.9rem; margin-top: 15px; max-width: 38ch; }
.footer-grid h4 { font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay-soft); margin-bottom: 15px; }
.footer-grid ul { display: grid; gap: 9px; }
.footer-grid ul a { font-size: 0.9rem; transition: color 0.2s; }
.footer-grid ul a:hover { color: var(--clay-soft); }
.footer-base { padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; }
.footer-base a { color: var(--clay-soft); }

.demo-ribbon { background: var(--clay); color: #fff; text-align: center; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; padding: 10px var(--gutter); }
.demo-ribbon a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .nav {
    position: fixed; inset: 76px 0 auto; z-index: 80;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 22px;
    transform: translateY(-130%); transition: transform 0.4s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
  .header-right .btn { display: none; }
  .header-right .btn-sm { display: inline-flex; }
  .ba-wrap, .consult-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { margin-top: -50px; margin-left: 0; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .prod h3 { font-size: 0.94rem; }
  .hero-card { margin-top: -28px; padding: 24px 20px; }
  .philo-media figure:nth-child(2) { margin-top: 0; }
  .header-right .btn-sm { display: none; }
}

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


/* ==========================================================================
   Mobile header overflow fix
   The header bar only has room for the logo and the menu toggle on a phone,
   so every call-to-action is hidden there and re-rendered inside the menu.
   ========================================================================== */

.nav a.nav-cta { display: none; }

.header-inner { min-width: 0; }
.logo { min-width: 0; }

@media (max-width: 1000px) {
  /* --- Mobile header: CTA moves into the menu panel --- */
  .header-right .btn { display: none !important; }
  .nav a.nav-cta {
    display: block;
    margin-top: 16px;
    padding: 15px 20px;
    text-align: center;
    background: var(--forest);
    border: 1px solid var(--forest);
    border-radius: var(--r);
    color: var(--cream);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .nav a.nav-cta::after { display: none; }

  /* The sticky header uses backdrop-filter, which makes it the containing
     block for this fixed panel. translateY() therefore measures from the
     header, not the viewport, so the slide alone cannot be trusted to push the
     menu off screen - hide it explicitly as well. */
  .nav {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.25s var(--ease),
                visibility 0.25s var(--ease);
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}
