/* =========================================================================
   SZAMOT  /  "Fireclay Kiln"
   A pressed-clay glaze-test board for a wood-fired courtyard bistro.
   Palette: canvas #EDE3D6 / ink #2A1A12 / primary #9C4A28 / accent #E2531C
   Display: Hepta Slab   Body: Spline Sans
   ========================================================================= */

:root {
  --canvas:   #EDE3D6;
  --canvas-2: #E4D6C4;   /* deeper clay for pressed tiles */
  --canvas-3: #D8C6B0;   /* tile rim / debossed edge */
  --ink:      #2A1A12;
  --ink-soft: #5A4334;
  --primary:  #9C4A28;
  --accent:   #E2531C;   /* kiln-flame vermilion */
  --ember:    #F4843B;
  --bone:     #FBF4EA;   /* fired-glaze highlight */
  --line:     rgba(42, 26, 18, 0.14);
  --line-2:   rgba(42, 26, 18, 0.08);

  --shadow-press: inset 0 2px 0 rgba(42,26,18,.10), inset 0 -2px 6px rgba(255,255,255,.45), inset 0 8px 18px rgba(42,26,18,.10);
  --shadow-lift:  0 18px 50px -28px rgba(42,26,18,.55);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;

  --display: "Hepta Slab", Georgia, serif;
  --body: "Spline Sans", system-ui, -apple-system, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--canvas);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.04; margin: 0; letter-spacing: -0.01em; }

/* ---------- clay-grain background texture (procedural, no asset) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(156,74,40,.05) 0 1px, transparent 1px),
    radial-gradient(circle at 62% 71%, rgba(42,26,18,.05) 0 1px, transparent 1px),
    radial-gradient(circle at 84% 38%, rgba(156,74,40,.045) 0 1px, transparent 1px);
  background-size: 7px 7px, 9px 9px, 11px 11px;
}

/* ---------- layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--body);
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}

/* witness-cone glyph / the pyrometric cone bullet (signature accent) */
.cone {
  --cw: .52em;
  width: var(--cw);
  height: calc(var(--cw) * 1.5);
  flex: 0 0 auto;
  background: linear-gradient(180deg, var(--ember), var(--accent));
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  border-radius: 1px;
  transform: translateY(.06em);
  box-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.cone--lean { transform: translateY(.06em) rotate(14deg); }   /* a slumped, fired cone */

/* =========================================================================
   PRESSED CLAY TILE  / the core motif (debossed terracotta test tile)
   ========================================================================= */
.tile {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(216,198,176,.25)),
    var(--canvas-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-press);
  border: 1px solid rgba(255,255,255,.4);
  outline: 1px solid var(--line-2);
  outline-offset: -1px;
}
/* thumb-print pressed edge: a soft inner stroke that reads as squeezed clay */
.tile::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: calc(var(--radius) - 5px);
  border: 1px dashed rgba(42,26,18,.16);
  pointer-events: none;
}

/* heading stamped into a tile */
.stamp {
  display: inline-block;
  padding: .5em .95em;
  border-radius: 10px;
  background: var(--canvas-2);
  box-shadow: var(--shadow-press);
  color: var(--ink);
}

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
.site-header.scrolled {
  background: rgba(237,227,214,.86);
  backdrop-filter: blur(10px) saturate(1.05);
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -26px rgba(42,26,18,.6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 14px;
}
.brand { display: inline-flex; align-items: baseline; gap: .5ch; font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: -.01em; color: var(--ink); }
.brand .dot { color: var(--accent); }
.brand small { font-family: var(--body); font-weight: 500; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--primary); transform: translateY(-.15em); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); position: relative; padding-block: 4px; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width .25s ease; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .8rem; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .5ch;
  background: var(--ink);
  color: var(--bone);
  padding: .58em 1.05em;
  border-radius: 9px;
  font-size: .86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lift);
  transition: transform .2s ease, background .2s ease;
}
.header-cta:hover { transform: translateY(-2px); background: var(--primary); }

/* lang toggle */
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.3); }
.lang-toggle button { padding: .34em .66em; font-size: .76rem; font-weight: 600; letter-spacing: .04em; background: transparent; color: var(--ink-soft); border: 0; }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }

.nav-toggle { display: none; }

/* =========================================================================
   HERO / maker's mark pressed into wet fireclay
   ========================================================================= */
.hero {
  position: relative;
  padding-top: clamp(28px, 5vw, 60px);
  padding-bottom: clamp(40px, 7vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(22px, 3vw, 48px);
  align-items: stretch;
}
.hero-stamp {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 3.4vw, 52px);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.32), rgba(216,198,176,.22)),
    var(--canvas-2);
  box-shadow: var(--shadow-press);
  overflow: hidden;
}
/* faint chamotte speckle inside the slab */
.hero-stamp::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(42,26,18,.06) 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 70% 60%, rgba(156,74,40,.06) 0 1.2px, transparent 1.4px);
  background-size: 13px 13px, 17px 17px;
}
/* kiln-flame vermilion stroke along the lower edge */
.hero-stamp::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, transparent, var(--accent) 18%, var(--ember) 50%, var(--accent) 82%, transparent);
  box-shadow: 0 0 18px 1px rgba(226,83,28,.55);
  animation: flameGlow 4.2s ease-in-out infinite;
}
@keyframes flameGlow {
  0%, 100% { opacity: .65; filter: brightness(.95); }
  50%      { opacity: 1;   filter: brightness(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stamp::after { animation: none; opacity: .85; }
}

.hero-eyebrow { margin-bottom: 1.1rem; }
.hero h1 {
  font-size: clamp(3.3rem, 11vw, 7.2rem);
  letter-spacing: -.03em;
  line-height: .9;
  color: var(--ink);
  /* debossed maker's mark */
  text-shadow:
    0 1px 0 rgba(255,255,255,.5),
    0 -1px 1px rgba(42,26,18,.5);
  position: relative;
}
.hero h1 .fired { color: var(--primary); }
.hero-sub {
  margin-top: 1.4rem;
  max-width: 32ch;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--ink-soft);
}
.hero-tagtile {
  margin-top: 1.7rem;
  align-self: flex-start;
  padding: .7em 1.05em;
  border-radius: 10px;
  background: var(--canvas);
  box-shadow: var(--shadow-press);
  font-style: italic;
  font-size: .96rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .7ch;
}
.hero-actions { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6ch;
  padding: .8em 1.4em;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { background: var(--accent); color: var(--bone); box-shadow: 0 14px 32px -16px rgba(226,83,28,.85); }
.btn--primary:hover { transform: translateY(-2px); background: var(--ember); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { transform: translateY(-2px); background: var(--ink); color: var(--bone); box-shadow: inset 0 0 0 1.5px var(--ink); }

.hero-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  min-height: 340px;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(42,26,18,.42));
  pointer-events: none;
}
.hero-caption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  color: var(--bone);
  font-size: .82rem;
  letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: .6ch;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}

/* rating chip floating on hero media */
.rating-chip {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(251,244,234,.94);
  border-radius: 10px;
  padding: .5em .8em;
  display: flex; align-items: center; gap: .55ch;
  box-shadow: var(--shadow-lift);
  font-size: .82rem; font-weight: 600; color: var(--ink);
}
.rating-chip .stars { color: var(--accent); letter-spacing: 1px; }
.rating-chip .count { color: var(--ink-soft); font-weight: 500; }

/* =========================================================================
   KILN TEMPERATURE BAND / gradient separator with read-outs
   ========================================================================= */
.kiln-band {
  background: linear-gradient(90deg, var(--primary), var(--accent) 48%, var(--ember));
  color: var(--bone);
  position: relative;
  z-index: 1;
}
.kiln-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  padding-block: clamp(20px, 3vw, 34px);
}
.kiln-read { display: flex; align-items: baseline; gap: .55ch; }
.kiln-temp { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1; letter-spacing: -.02em; }
.kiln-label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.kiln-band .divider { width: 1px; height: 30px; background: rgba(251,244,234,.4); flex: 0 0 auto; }
@media (max-width: 720px) { .kiln-band .divider { display: none; } }

/* =========================================================================
   INTRO / STORY
   ========================================================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.intro h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 1.1rem; }
.intro p { color: var(--ink-soft); margin-block: 0 1rem; max-width: 46ch; }
.intro p strong { color: var(--ink); font-weight: 600; }
.intro-media {
  position: relative;
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
}
.intro-media img { width: 100%; height: 100%; object-fit: cover; }

.fact-row { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.6rem; }
.fact { display: flex; flex-direction: column; }
.fact b { font-family: var(--display); font-size: 1.45rem; color: var(--primary); }
.fact span { font-size: .82rem; color: var(--ink-soft); }

/* =========================================================================
   MENU GLAZE-TEST BOARD / grid of pressed test tiles
   ========================================================================= */
.board-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.board-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-block: .7rem .6rem; }
.board-head p { color: var(--ink-soft); }

.board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.test-tile {
  grid-column: span 4;
  padding: clamp(18px, 1.8vw, 26px);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.test-tile:hover { transform: translateY(-4px); }
.test-tile .tile-photo {
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  box-shadow: 0 10px 26px -18px rgba(42,26,18,.7);
}
.test-tile .tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.test-tile:hover .tile-photo img { transform: scale(1.05); }
.test-tile h3 { font-size: 1.32rem; display: flex; align-items: center; gap: .55ch; margin-bottom: .35rem; }
.test-tile p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.test-tile .tile-tag { margin-top: auto; padding-top: .9rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); font-weight: 600; }

/* span variety for board rhythm */
.test-tile.wide { grid-column: span 8; flex-direction: row; gap: clamp(18px, 2vw, 28px); align-items: stretch; }
.test-tile.wide .tile-photo { flex: 0 0 44%; aspect-ratio: auto; margin-bottom: 0; }
.test-tile.wide .tile-body { display: flex; flex-direction: column; }

@media (max-width: 880px) {
  .test-tile, .test-tile.wide { grid-column: span 12; }
  .test-tile.wide { flex-direction: column; }
  .test-tile.wide .tile-photo { flex: none; aspect-ratio: 16/9; }
}

/* =========================================================================
   APERITIVO STRIP
   ========================================================================= */
.aperitivo { background: var(--ink); color: var(--bone); }
.aperitivo .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.aperitivo .ap-copy h2 { color: var(--bone); font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1rem; }
.aperitivo .ap-copy p { color: rgba(251,244,234,.78); max-width: 42ch; }
.aperitivo .eyebrow { color: var(--ember); }
.aperitivo .ap-media {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 5 / 4; box-shadow: 0 26px 60px -30px rgba(0,0,0,.8);
}
.aperitivo .ap-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .aperitivo .container { grid-template-columns: 1fr; } }

/* =========================================================================
   GALLERY / fired-sample mosaic
   ========================================================================= */
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(26px, 3.5vw, 44px); }
.gallery-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.gallery-head p { color: var(--ink-soft); max-width: 38ch; }
/* 6-tile mosaic via explicit grid-template-areas, so it always forms a clean
   rectangle regardless of image aspect ratios. DOM order of figures:
   1 salad(m-big) 2 tartare 3 croquettes 4 carbonara(m-wide) 5 broad-bean(m-tall) 6 soup(m-wide) */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 18vw, 210px);
  gap: clamp(12px, 1.4vw, 18px);
  grid-template-areas:
    "big big tar cro"
    "big big car car"
    "bea bea soup soup";
}
.mosaic figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; box-shadow: var(--shadow-lift); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic figure:nth-child(1) { grid-area: big; }   /* salad */
.mosaic figure:nth-child(2) { grid-area: tar; }    /* tartare */
.mosaic figure:nth-child(3) { grid-area: cro; }    /* croquettes */
.mosaic figure:nth-child(4) { grid-area: car; }    /* carbonara */
.mosaic figure:nth-child(5) { grid-area: bea; }    /* broad-bean */
.mosaic figure:nth-child(6) { grid-area: soup; }   /* soup */
@media (max-width: 820px) {
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(150px, 40vw, 200px);
    grid-template-areas:
      "big big"
      "tar cro"
      "car car"
      "bea soup";
  }
}

/* =========================================================================
   VISIT  / hours, contact, map (pressed tiles)
   ========================================================================= */
.visit-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(22px, 3vw, 40px);
  align-items: stretch;
}
.visit-col { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 26px); }
.info-tile { padding: clamp(22px, 2.6vw, 32px); }
.info-tile h3 { font-size: 1.25rem; display: flex; align-items: center; gap: .55ch; margin-bottom: 1rem; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; color: var(--ink-soft); padding-bottom: .55rem; border-bottom: 1px dashed var(--line); }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list li b { color: var(--ink); font-weight: 600; }
.contact-line { display: flex; align-items: center; gap: .6ch; font-size: 1rem; color: var(--ink); margin-bottom: .7rem; }
.contact-line a { font-weight: 600; color: var(--primary); }
.contact-line a:hover { text-decoration: underline; }

.map-tile { padding: 10px; overflow: hidden; min-height: 380px; display: flex; }
.map-tile iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: 10px; filter: saturate(1.02); }

@media (max-width: 880px) { .visit-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   RESERVE CTA
   ========================================================================= */
.reserve { text-align: center; }
.reserve .tile { max-width: 760px; margin-inline: auto; padding: clamp(34px, 5vw, 64px); }
.reserve h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.reserve p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 1.8rem; }
.reserve-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--ink); color: rgba(251,244,234,.82); padding-block: clamp(48px, 6vw, 76px) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(26px, 4vw, 56px); }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: var(--bone); display: inline-flex; align-items: baseline; gap: .4ch; }
.footer-brand .dot { color: var(--accent); }
.footer-col h4 { font-family: var(--body); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); margin-bottom: 1rem; font-weight: 600; }
.footer-col a, .footer-col p { color: rgba(251,244,234,.78); font-size: .94rem; margin: 0 0 .55rem; display: block; }
.footer-col a:hover { color: var(--bone); }
.footer-blurb { color: rgba(251,244,234,.7); font-size: .94rem; max-width: 40ch; margin-top: 1rem; }
.footer-bottom { margin-top: clamp(34px, 5vw, 56px); padding-top: 1.6rem; border-top: 1px solid rgba(251,244,234,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; color: rgba(251,244,234,.6); }
.disclaimer { max-width: 62ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   REVEAL CONTRACT  (gated on html.js ONLY / never hides without JS)
   ========================================================================= */
html.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
html.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   RESPONSIVE / header + hero collapse
   ========================================================================= */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; order: -1; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media { aspect-ratio: 16/10; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    width: 42px; height: 38px; align-items: center; justify-content: center;
    background: var(--canvas-2); border: 0; border-radius: 9px; box-shadow: var(--shadow-press);
  }
  .nav-toggle span { width: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
  .nav {
    position: absolute; top: 100%; right: var(--gutter); left: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--canvas);
    border-radius: 14px; padding: .5rem;
    box-shadow: var(--shadow-lift), 0 0 0 1px var(--line);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s ease, opacity .25s ease;
  }
  .nav.open { max-height: 460px; opacity: 1; pointer-events: auto; padding: .5rem; }
  .nav a { padding: .8rem 1rem; border-radius: 9px; }
  .nav a:hover { background: var(--canvas-2); }
  .nav a::after { display: none; }
  .nav .header-cta { margin-top: .3rem; justify-content: center; }
}
@media (min-width: 721px) {
  .nav .header-cta { display: none; }   /* CTA shown in header bar instead */
}

/* utility */
.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; }
