/* Casa Palisade — sample site for a FICTIONAL restaurant. Built by Miss No More.
   Identity: deep teal + terracotta + cream, Hudson-sunset gradient.
   Type: Bricolage Grotesque (display) + Figtree (text), both self-hosted (OFL). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks keep layout shift low while the fonts load */
@font-face { font-family: "Display Fallback"; src: local("Arial Bold"), local("Arial"); size-adjust: 96%; ascent-override: 93%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: "Text Fallback"; src: local("Arial"); size-adjust: 99%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }

:root {
  --teal-950: #052726;
  --teal-900: #083534;
  --teal-800: #0d4745;
  --teal-700: #12605c;
  --mint: #9be3d3;
  --terra: #c2532d;
  --terra-deep: #a13f1d;
  --terra-ink: #8f3518;
  --amber: #ffc56b;
  --amber-hi: #ffd591;
  --coral: #ff8a5c;
  --rose: #d9486b;
  --plum: #3a1f4d;
  --cream: #fbf3e4;
  --cream-2: #f4e7d0;
  --card: #fffaf0;
  --ink: #0b2625;
  --body: #3b4c49;
  --line: #e2d3b8;
  --on-dark: #fbf3e4;
  --on-dark-2: #bcd3ce;
  --focus: #0d4745;
  --sunset: linear-gradient(100deg, #ffc56b 0%, #ff8a5c 38%, #d9486b 72%, #5b2a6e 100%);
  --display: "Bricolage Grotesque", "Display Fallback", "Arial Narrow", Arial, sans-serif;
  --text: "Figtree", "Text Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --max: 1200px;
  --header-h: 64px;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: 88px; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--teal-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, figure, table { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
small { font-size: 0.875rem; }

h1, h2 { font-family: var(--display); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(2.25rem, 1.3rem + 4.8vw, 4.5rem); color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.site-header, .hero, .hours, .events, .book, .site-footer, .callbar, .t-note { --focus: var(--amber); }

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprite { position: absolute; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--amber); color: var(--teal-950); font-weight: 700; padding: 12px 18px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.35em;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--text); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 56px; padding-inline: 1.6em; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 0.5em 1.1em; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-sun { background: var(--amber); color: var(--teal-950); }
.btn-sun:hover { background: var(--amber-hi); }
.btn-ghost { border-color: rgba(251, 243, 228, 0.45); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(251, 243, 228, 0.08); }
.btn-terra { background: var(--terra-deep); color: #fff; }
.btn-terra:hover { background: var(--terra-ink); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.btn-cream .ico { transition: transform 0.25s var(--ease); }
.btn-cream:hover .ico { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--teal-950); border-bottom: 1px solid rgba(251, 243, 228, 0.1); color: var(--on-dark); }
.nav { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--on-dark); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.lm-arch { fill: var(--terra); }
.lm-sun { fill: var(--amber); }
.lm-wave { fill: var(--teal-700); }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; white-space: nowrap; }
.sample-badge { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; background: var(--amber); color: var(--teal-950); padding: 3px 8px; border-radius: 6px; }
.nav-toggle { margin-left: auto; display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(251, 243, 228, 0.3); border-radius: 12px; background: transparent; color: var(--on-dark); cursor: pointer; }
.nav-toggle .ico { width: 22px; height: 22px; }
.nav-toggle .ico-close, .nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.nav-menu { width: 100%; padding-bottom: 14px; }
.nav-menu ul { display: flex; flex-direction: column; gap: 2px; }
.nav-menu a:not(.btn) { display: flex; align-items: center; min-height: 44px; padding: 0 4px; text-decoration: none; font-weight: 600; color: var(--on-dark); }
.nav-menu a:not(.btn):hover { color: var(--amber); }
.nav-menu .btn { margin-top: 8px; width: 100%; }
@media (max-width: 379px) {
  .nav { gap: 8px; }
  .logo { gap: 7px; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-text { font-size: 1.05rem; }
  .sample-badge { font-size: 0.625rem; padding: 3px 6px; letter-spacing: 0.08em; }
}
.js .nav-toggle { display: inline-flex; }
.js .nav-menu { display: none; }
.js .nav-menu.is-open { display: block; }

@media (min-width: 900px) {
  .nav { flex-wrap: nowrap; }
  .js .nav-toggle { display: none; }
  .nav-menu, .js .nav-menu { display: block; width: auto; margin-left: auto; padding-bottom: 0; }
  .nav-menu ul { flex-direction: row; align-items: center; gap: 6px; }
  .nav-menu a:not(.btn) { padding: 0 12px; font-size: 0.975rem; }
  .nav-menu .btn { margin: 0 0 0 10px; width: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 0%, #0f4f4c 0%, var(--teal-950) 60%); color: var(--on-dark); padding: 36px 0 56px; overflow: clip; }
.hero-grid { display: grid; gap: 36px; }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
h1 { font-size: clamp(2.9rem, 1.2rem + 9.2vw, 6.6rem); color: var(--on-dark); }
h1 em { font-style: normal; color: var(--amber); display: block; }
.hero-lead { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3rem); line-height: 1.5; color: var(--on-dark-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-call { margin-top: 18px; color: var(--on-dark-2); }
.hero-call a { display: inline-block; padding: 10px 2px; color: var(--on-dark); font-weight: 700; text-underline-offset: 4px; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.hero-fine { margin-top: 10px; font-size: 0.9rem; color: var(--on-dark-2); max-width: 34em; }
.hero-fine strong { color: var(--amber); }

.hero-art { position: relative; }
.arch { position: relative; height: clamp(320px, 88vw, 520px); border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; background: #5b2a6e; box-shadow: 0 0 0 6px rgba(251, 243, 228, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.7); isolation: isolate; }
.scene { width: 100%; height: 100%; }
.layer-sun, .layer-far, .layer-near, .layer-glint { transform: translateY(calc(var(--p, 0) * var(--shift, 0px))); will-change: transform; }
.layer-sun { --shift: 96px; }
.layer-far { --shift: 14px; }
.layer-glint { --shift: 26px; }
.layer-near { --shift: -22px; }
.layer-stars { opacity: 0.75; }
.art-note { margin-top: 12px; text-align: center; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-2); }

@media (min-width: 560px) {
  .hero-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 56px; }
  .arch { height: min(660px, 76vh); min-height: 480px; }
}

/* ---------- Marquee (scroll-linked, not autoplaying) ---------- */
.marquee { background: var(--amber); color: var(--teal-950); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; gap: 0; transform: translateX(calc(var(--m, 0) * -1px)); will-change: transform; }
.marquee-track span { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 1rem + 2.6vw, 2.75rem); letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; }
.marquee-track span::after { content: ""; width: 0.36em; height: 0.36em; border-radius: 50%; background: var(--teal-950); margin: 0 0.7em; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { margin-bottom: 32px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra-ink); margin-bottom: 14px; }
.kicker::before { content: ""; width: 22px; height: 10px; border-radius: 10px 10px 0 0; background: var(--terra); }
.kicker.on-dark { color: var(--amber); }
.kicker.on-dark::before { background: var(--amber); }
@media (min-width: 900px) {
  .section { padding: 120px 0; }
  .section-head { margin-bottom: 48px; }
}

/* ---------- Menu ---------- */
.menu { background: var(--cream); }
.sample-flag { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 16px; border: 1.5px dashed var(--terra-ink); border-radius: 999px; font-weight: 700; font-size: 0.9375rem; color: var(--terra-ink); background: var(--card); }
.sample-flag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terra); }

.tablist { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 26px; isolation: isolate; }
.tab { position: relative; z-index: 1; min-height: 48px; padding: 8px 14px; border: 0; border-radius: 22px; background: transparent; font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--ink); cursor: pointer; transition: color 0.25s; }
.tab:hover { color: var(--terra-ink); }
.tab[aria-selected="true"] { color: var(--cream); }
.tab[aria-selected="true"]:hover { color: #fff; }
.tab-ind { position: absolute; z-index: 0; top: 0; left: 0; width: var(--w, 0); height: var(--h, 0); transform: translate(var(--x, 0), var(--y, 0)); border-radius: 22px; background: var(--teal-800); transition: transform 0.45s var(--ease), width 0.45s var(--ease), height 0.45s var(--ease); }
.tab-ind:not(.is-ready) { transition: none; }
html:not(.js) .tabs { display: none; }
@media (min-width: 620px) {
  .tablist { display: inline-flex; border-radius: 999px; }
  .tab, .tab-ind { border-radius: 999px; }
  .tab { padding-inline: 26px; }
}

.panels { margin-top: 28px; }
.panel { border-radius: var(--r); }
.panel[hidden] { display: none; }
.panel-title { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--ink); margin: 28px 0 8px; }
.js .panel-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dishes { display: grid; gap: 0 56px; }
.dish { padding: 20px 0; border-bottom: 1px solid var(--line); }
.dish-top { display: flex; align-items: baseline; gap: 10px; }
.dish h4 { font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.dots { flex: 1; min-width: 16px; border-bottom: 2px dotted #c9b592; transform: translateY(-4px); }
.price { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--terra-ink); font-variant-numeric: tabular-nums; }
.dish p { margin-top: 6px; max-width: 46ch; }
.tag { display: inline-flex; align-items: center; justify-content: center; min-width: 1.75em; height: 1.75em; padding: 0 0.35em; margin-left: 2px; border-radius: 999px; background: var(--teal-800); color: var(--cream); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em; vertical-align: 0.1em; }
.tag-wide { background: var(--terra-deep); }
.menu-foot { margin-top: 28px; display: grid; gap: 10px; font-size: 0.9375rem; }
.legend .tag { margin: 0 4px 0 10px; }
.legend .tag:first-child { margin-left: 0; }
@media (min-width: 760px) {
  .dishes { grid-template-columns: 1fr 1fr; }
}

@keyframes dish-in { from { opacity: 0; transform: translateY(14px); } }
.js .panel.is-switching .dish { animation: dish-in 0.5s var(--ease) both; }
.js .panel.is-switching .dish:nth-child(2) { animation-delay: 40ms; }
.js .panel.is-switching .dish:nth-child(3) { animation-delay: 80ms; }
.js .panel.is-switching .dish:nth-child(4) { animation-delay: 120ms; }
.js .panel.is-switching .dish:nth-child(5) { animation-delay: 160ms; }
.js .panel.is-switching .dish:nth-child(6) { animation-delay: 200ms; }

/* ---------- Gallery bento ---------- */
.gallery { background: var(--cream-2); }
.bento { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 10px; }
.tile { position: relative; border-radius: var(--r); overflow: hidden; background: var(--teal-800); }
.tile figure, .tile img { width: 100%; height: 100%; }
.tile img { object-fit: cover; transition: transform 0.7s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 12px; border-radius: 999px; background: var(--teal-950); color: var(--cream); font-size: 0.8125rem; font-weight: 700; line-height: 1.3; }
.t-ceviche { grid-column: span 2; grid-row: span 2; }
.t-cocktail { grid-row: span 2; }
.t-paella { grid-column: span 2; }
.t-note { grid-column: span 2; grid-row: auto; background: var(--teal-950); color: var(--on-dark-2); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; font-size: 0.975rem; line-height: 1.5; }
.note-big { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.05; letter-spacing: -0.02em; color: var(--amber); }
.bento .t-tostones { grid-column: span 2; }
@media (min-width: 620px) {
  .bento { grid-auto-rows: 30vw; gap: 14px; }
  .bento .t-tostones { grid-column: auto; }
  .t-note { grid-column: auto; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .t-paella { grid-column: span 2; }
}
@media (min-width: 980px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 16px; }
  .tile { border-radius: var(--r-lg); }
  .tile figcaption { left: 16px; bottom: 16px; font-size: 0.875rem; }
  .t-note { padding: 28px; }
}

/* ---------- Hours + location ---------- */
.hours { background: var(--teal-900); color: var(--on-dark-2); }
.hours h2, .events h2, .book h2 { color: var(--on-dark); }
.hours-grid { display: grid; gap: 56px; }
.hours h2 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.5rem); }
.hours-table { width: 100%; margin-top: 28px; border-collapse: collapse; font-size: 1.0625rem; }
.hours-table th, .hours-table td { padding: 14px 0; border-bottom: 1px solid rgba(251, 243, 228, 0.14); vertical-align: top; text-align: left; }
.hours-table th { font-weight: 600; color: var(--on-dark); padding-right: 12px; }
.nw { white-space: nowrap; }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--amber); font-weight: 700; }
.today-pill { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--amber); color: var(--teal-950); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 0.15em; }
.hours-fine { margin-top: 16px; font-size: 0.9rem; }
.map { position: relative; height: 280px; border-radius: var(--r-lg); overflow: hidden; background: var(--teal-800); border: 1px solid rgba(251, 243, 228, 0.14); }
.map-art { width: 100%; height: 100%; }
.map-label { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; border-radius: 14px; background: var(--teal-950); color: var(--on-dark-2); font-size: 0.9375rem; line-height: 1.4; }
.map-label span { display: block; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.addr { display: flex; gap: 14px; margin-top: 22px; font-style: normal; line-height: 1.55; }
.addr .ico { width: 26px; height: 26px; margin-top: 2px; color: var(--amber); }
.addr strong { color: var(--on-dark); font-family: var(--display); font-size: 1.2rem; }
.find-call { margin-top: 20px; }
@media (min-width: 900px) {
  .hours-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
  .map { height: 340px; }
}

/* ---------- Private events ---------- */
.events { background: linear-gradient(155deg, #3a1f4d 0%, #7d2a52 48%, #a13f1d 100%); color: #fbe9dc; }
.events-grid { display: grid; gap: 40px; }
.events h2 { max-width: 13ch; }
.events-lead { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem); line-height: 1.5; max-width: 34em; color: #fdf1e6; }
.events-actions { margin-top: 28px; }
.events-list { display: grid; gap: 12px; align-content: end; }
.events-list li { padding: 20px 22px; border-radius: var(--r); background: rgba(5, 39, 38, 0.55); border: 1px solid rgba(251, 243, 228, 0.16); }
.events-list strong { display: block; font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.01em; color: var(--amber); }
.events-list span { display: block; margin-top: 4px; color: #fdf1e6; }
@media (min-width: 900px) {
  .events-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 72px; align-items: end; }
}

/* ---------- Book CTA ---------- */
.book { background: var(--teal-950); color: var(--on-dark-2); text-align: center; position: relative; overflow: clip; }
.book::before { content: ""; position: absolute; left: 50%; bottom: -46vmin; width: 92vmin; height: 92vmin; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 138, 92, 0.34) 0%, rgba(217, 72, 107, 0.16) 42%, transparent 68%); pointer-events: none; }
.book-inner { position: relative; }
.book h2 { font-size: clamp(3rem, 1.2rem + 10vw, 8rem); }
.book h2 em { font-style: normal; color: var(--amber); }
.book-actions { display: flex; flex-direction: column; gap: 12px; margin: 36px auto 0; max-width: 420px; }
.book-demo { margin: 32px auto 0; max-width: 40em; font-size: 0.9375rem; padding: 14px 18px; border: 1.5px dashed rgba(255, 197, 107, 0.6); border-radius: var(--r); text-align: left; }
.book-demo strong { color: var(--amber); }
.book-alex { margin-top: 16px; font-size: 0.9375rem; }
@media (min-width: 900px) {
  .book-actions { flex-direction: row; justify-content: center; max-width: none; }
  .book-demo { text-align: center; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--teal-900); color: var(--on-dark-2); font-size: 0.975rem; }
.foot-skyline { width: 100%; height: 56px; fill: var(--teal-900); background: var(--teal-950); }
.foot-grid { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 36px; }
.foot-name { font-family: var(--display); font-weight: 800; font-size: 1.75rem; letter-spacing: -0.03em; color: var(--on-dark); margin-bottom: 6px; }
.foot-h { font-family: var(--text); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; color: var(--amber); margin-bottom: 8px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.foot-links a:hover, .foot-sample a:hover { color: var(--amber); }
.foot-bottom { display: grid; gap: 6px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(251, 243, 228, 0.14); font-size: 0.9rem; }
.foot-sample a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--on-dark); text-underline-offset: 4px; }
@media (min-width: 760px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 48px; }
  .foot-skyline { height: 90px; }
}

/* ---------- Sticky mobile call bar ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--teal-950); border-top: 1px solid rgba(251, 243, 228, 0.16); }
.callbar a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 50px; border-radius: 14px; border: 1.5px solid rgba(251, 243, 228, 0.35); color: var(--on-dark); font-weight: 700; font-size: 0.975rem; text-decoration: none; }
.callbar .callbar-main { background: var(--amber); border-color: var(--amber); color: var(--teal-950); }
@media (min-width: 900px) {
  .callbar { display: none; }
  body { padding-bottom: 0; }
  html { scroll-padding-bottom: 0; }
}

/* ---------- Demo panel ---------- */
.demo { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 22px; border: 0; border-radius: 28px; background: var(--cream); color: var(--body); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6); overflow-y: auto; overscroll-behavior: contain; }
.demo::backdrop { background: rgba(5, 39, 38, 0.72); }
.demo[open] { animation: demo-in 0.4s var(--ease); }
@keyframes demo-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-flag { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-950); background: var(--amber); padding: 4px 10px; border-radius: 6px; }
.demo-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; }
.demo-close:hover { background: #fff; border-color: var(--ink); }
.demo h2 { margin-top: 12px; font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.6rem); }
.demo-note { margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--terra-ink); background: var(--card); font-size: 0.975rem; line-height: 1.5; }
.demo-note strong { color: var(--terra-ink); display: block; }
.demo-form { margin-top: 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.fields[hidden] { display: none; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 0.9rem; color: var(--ink); min-width: 0; }
.field:first-child, .field-wide { grid-column: 1 / -1; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #8a7a5c; border-radius: 12px; background: #fff; font-weight: 500; font-size: 1rem; color: var(--ink); }
.field input::placeholder { color: #5f6b68; opacity: 1; }
.demo-status { margin-top: 12px; font-weight: 700; color: var(--terra-ink); min-height: 1.6em; }
.demo-foot { margin-top: 6px; font-size: 0.875rem; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes sun-in { from { translate: 0 70px; } }
@keyframes twinkle { 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: no-preference) {
  .eyebrow, .hero-lead, .hero-actions, .hero-call, .hero-fine { animation: rise 0.9s var(--ease) both; }
  .hero-lead { animation-delay: 80ms; }
  .hero-actions { animation-delay: 160ms; }
  .hero-call { animation-delay: 220ms; }
  .hero-fine { animation-delay: 280ms; }
  .layer-sun { animation: sun-in 1.8s var(--ease) both; }

  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .bento .reveal { transform: translateY(28px) scale(0.97); }
  .js .bento .reveal.is-in { transform: none; }
  .js .bento .tile:nth-child(2) { transition-delay: 70ms; }
  .js .bento .tile:nth-child(3) { transition-delay: 140ms; }
  .js .bento .tile:nth-child(4) { transition-delay: 210ms; }
  .js .bento .tile:nth-child(6) { transition-delay: 70ms; }
  .js .bento .tile:nth-child(7) { transition-delay: 140ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .layer-sun, .layer-far, .layer-near, .layer-glint { transform: none; }
  .marquee-track { transform: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 4px; }
  .marquee-track span:nth-child(n + 10) { display: none; }
  .tile:hover img { transform: none; }
}

@media print {
  .callbar, .nav-toggle, .marquee { display: none; }
}
