/* ==========================================================================
   Happy Café — shared design system
   Coffee + cream palette, editorial serif display, warm grain.
   ========================================================================== */

:root {
  /* Palette */
  --cream: #f5ecdf;
  --cream-soft: #faf5ee;
  --paper: #fffaf3;
  --sand: #ead9c3;
  --latte: #d6b48e;
  --caramel: #b47a46;
  --crema: #c98f55;
  --mocha: #7a4e31;
  --coffee: #4a2c1c;
  --espresso: #2a180f;
  --ink: #1d110a;
  --line: rgba(42, 24, 15, 0.14);
  --line-strong: rgba(42, 24, 15, 0.28);
  --muted: rgba(42, 24, 15, 0.66);
  --on-dark: #f6ecdf;
  --on-dark-muted: rgba(246, 236, 223, 0.68);
  --ok: #4f7a3c;
  --closed: #a34a2b;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Allura", "Brush Script MT", cursive;

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 22px;
  --radius-lg: 34px;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-soft: 0 18px 50px -24px rgba(42, 24, 15, 0.45);
  --shadow-lift: 0 30px 70px -30px rgba(42, 24, 15, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  overflow-x: clip;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* warm film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.09 0 0 0 0 0.05 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@media (max-width: 860px), (pointer: coarse) { body::after { animation: none; inset: 0; } }
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--caramel); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--espresso); color: var(--cream);
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
}
.display-xl { font-size: clamp(3.1rem, 9.2vw, 9.6rem); line-height: 0.88; letter-spacing: -0.035em; }
.display-l  { font-size: clamp(2.6rem, 6.6vw, 6.4rem); line-height: 0.92; letter-spacing: -0.03em; }
.display-m  { font-size: clamp(2.1rem, 4.4vw, 4.2rem); }
.display-s  { font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.05; }
.display em, h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--mocha); }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1;
  color: var(--caramel);
  letter-spacing: 0;
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mocha);
}
.kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--caramel); box-shadow: 0 0 0 4px rgba(180, 122, 70, .18);
}
.lead { font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.65; color: var(--muted); max-width: 46ch; }
.on-dark .lead, .on-dark p { color: var(--on-dark-muted); }
.on-dark .kicker { color: var(--latte); }
.on-dark h2, .on-dark h3 { color: var(--on-dark); }
.on-dark h2 em, .on-dark h3 em { color: var(--latte); }

/* split-text line masks (give descenders room) */
.split-line { padding-bottom: 0.12em; margin-bottom: -0.12em; }
[data-split] > div, .hero-title > div, .course-title > div { padding-bottom: 0.12em; margin-bottom: -0.12em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(84px, 13vw, 180px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 72px); }
.section-head.center { text-align: center; justify-items: center; }
.on-dark { background: var(--espresso); color: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--espresso); --fg: var(--cream); --fill: var(--caramel);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 10px 8px 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap;
  transition: color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn .btn-ico {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--fg); color: var(--bg); flex: none;
  transition: transform .55s var(--ease-out);
}
.btn:hover .btn-ico { transform: rotate(-45deg); }
.btn .btn-ico svg { width: 16px; height: 16px; }
.btn-light { --bg: var(--cream-soft); --fg: var(--espresso); --fill: var(--latte); }
.btn-ghost {
  --bg: transparent; --fg: var(--espresso); --fill: var(--espresso);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-ghost:hover { color: var(--cream); }
.btn-ghost .btn-ico { background: var(--espresso); color: var(--cream); }
.on-dark .btn-ghost { --fg: var(--on-dark); --fill: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(246,236,223,.35); }
.on-dark .btn-ghost:hover { color: var(--espresso); }
.on-dark .btn-ghost .btn-ico { background: var(--cream); color: var(--espresso); }
.btn-sm { min-height: 44px; padding: 6px 8px 6px 18px; font-size: 0.88rem; }
.btn-sm .btn-ico { width: 30px; height: 30px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

.link-underline {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link-underline:hover { background-size: 100% 1.5px; }

/* ---------- Status pill ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255, 250, 243, 0.72); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.82rem; font-weight: 600; color: var(--espresso);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); position: relative; }
.status-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid currentColor; color: var(--ok); opacity: .5; animation: ping 2s var(--ease-out) infinite;
}
.is-closed .status-dot { background: var(--closed); }
.is-closed .status-dot::after { color: var(--closed); }
@keyframes ping { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform .6s var(--ease-out), background-color .4s, box-shadow .4s;
}
.site-header.is-scrolled {
  background: rgba(245, 236, 223, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-110%); }
.nav {
  width: 100%; max-width: 1480px; margin: 0 auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--espresso); }
.brand-mark { width: 42px; height: 42px; color: var(--coffee); }
.brand-word { display: grid; line-height: 1; }
.brand-word small { font-family: var(--font-script); font-size: 1.15rem; color: var(--caramel); margin-bottom: -4px; padding-left: 2px; }
.brand-word strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; }
.steam path { stroke-dasharray: 14; animation: steam 2.8s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .4s; }
.steam path:nth-child(3) { animation-delay: .8s; }
@keyframes steam {
  0% { stroke-dashoffset: 14; opacity: 0; }
  40% { opacity: 1; }
  100% { stroke-dashoffset: -14; opacity: 0; }
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 6px; border-radius: 999px; background: rgba(255,250,243,.55); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); }
.nav-links a {
  display: block; padding: 9px 16px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; color: var(--coffee);
  transition: background-color .35s, color .35s;
}
.nav-links a:hover { background: rgba(42,24,15,.06); }
.nav-links a.is-active { background: var(--espresso); color: var(--cream); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--espresso); color: var(--cream); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle i { display: block; width: 18px; height: 1.6px; background: currentColor; transition: transform .4s var(--ease-out); }
.nav-open .nav-toggle i:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav-open .nav-toggle i:last-child { transform: translateY(-3.3px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--espresso); color: var(--on-dark);
  padding: calc(var(--nav-h) + 30px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path .8s var(--ease-in-out);
  visibility: hidden;
}
.nav-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.nav-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
.nav-open .brand { color: var(--on-dark); }
.nav-open .brand-mark { color: var(--latte); }
.nav-open .nav-toggle { background: var(--cream); color: var(--espresso); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mobile-menu li a { font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; display: inline-block; }
.mobile-menu li a em { font-style: italic; color: var(--latte); font-weight: 400; }
.mobile-menu .mm-foot { display: grid; gap: 16px; color: var(--on-dark-muted); font-size: .95rem; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-hide-m { display: none; }
}
@media (max-width: 520px) {
  .nav-actions .btn { display: none; }
}

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor, .cursor-dot { display: none; }
@media (pointer: fine) {
  .cursor, .cursor-dot {
    display: grid; position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none;
    border-radius: 50%; place-items: center;
  }
  .cursor {
    width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border: 1.5px solid rgba(42,24,15,.45);
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, border-color .35s;
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cream);
  }
  .cursor span { opacity: 0; transition: opacity .25s; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--espresso); }
  .cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(180,122,70,.16); border-color: transparent; }
  .cursor.is-label { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--espresso); border-color: transparent; }
  .cursor.is-label span { opacity: 1; }
  .cursor.on-dark-area { border-color: rgba(246,236,223,.5); }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 150; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 42%, #5b3a24 0%, #2a180f 50%, #120a05 100%);
  color: var(--on-dark);
  clip-path: circle(150% at 50% 42%);
}
.pl-glow { position: absolute; left: 50%; top: 42%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,190,120,.22), rgba(255,190,120,0)); animation: pl-pulse 3.2s ease-in-out infinite; }
@keyframes pl-pulse { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .7; } }
.pl-beans { position: absolute; inset: 0; pointer-events: none; }
.pl-bean { position: absolute; width: 26px; fill: #6b3a1c; opacity: .6; animation: pl-float 9s ease-in-out infinite; }
.pl-bean path { fill: none; stroke: #2a140a; stroke-width: 3; stroke-linecap: round; }
.pl-bean:nth-child(1) { left: 12%; top: 22%; width: 34px; animation-delay: -1s; }
.pl-bean:nth-child(2) { left: 80%; top: 16%; width: 22px; animation-delay: -3s; filter: blur(1.5px); }
.pl-bean:nth-child(3) { left: 70%; top: 70%; width: 40px; animation-delay: -5s; }
.pl-bean:nth-child(4) { left: 20%; top: 74%; width: 24px; animation-delay: -2s; filter: blur(2px); }
.pl-bean:nth-child(5) { left: 88%; top: 46%; width: 30px; animation-delay: -6s; }
.pl-bean:nth-child(6) { left: 6%; top: 50%; width: 20px; animation-delay: -4s; filter: blur(1px); }
.pl-bean:nth-child(7) { left: 36%; top: 10%; width: 18px; animation-delay: -7s; filter: blur(2.5px); }
.pl-bean:nth-child(8) { left: 58%; top: 86%; width: 26px; animation-delay: -8s; }
@keyframes pl-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(14px, -26px) rotate(40deg); }
  66% { transform: translate(-12px, -10px) rotate(-25deg); }
}
.pl-center { position: relative; display: grid; justify-items: center; gap: 6px; margin-top: -4vh; }
.pl-cup { width: clamp(150px, 22vmin, 220px); overflow: visible; }
.pl-glass { fill: rgba(255,255,255,.05); stroke: #f1e2cc; stroke-width: 3.5; stroke-linejoin: round; }
.pl-handle { fill: none; stroke: #f1e2cc; stroke-width: 3.5; stroke-linecap: round; }
.pl-shine { stroke: rgba(255,255,255,.28); stroke-width: 5; stroke-linecap: round; }
.pl-saucer { fill: #3b2416; stroke: #c8955e; stroke-width: 2; }
#plFoam { fill: #f6e7cf; }
.pl-steam path { fill: none; stroke: rgba(246,236,223,.55); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 22 60; animation: pl-steam 2.4s linear infinite; opacity: 0; transition: opacity .8s; }
.pl-steam path:nth-child(2) { animation-delay: -.8s; }
.pl-steam path:nth-child(3) { animation-delay: -1.6s; }
.preloader.is-warm .pl-steam path { opacity: 1; }
@keyframes pl-steam { from { stroke-dashoffset: 82; } to { stroke-dashoffset: 0; } }
.pl-word { display: grid; justify-items: center; line-height: 1; text-align: center; }
.pl-word small { font-family: var(--font-script); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--crema); margin-bottom: -6px; }
.pl-word strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.03em; color: var(--on-dark); }
.pl-word span { margin-top: 12px; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600; }
.pl-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.pl-status { display: flex; align-items: center; gap: 10px; font-size: .82rem; letter-spacing: .06em; color: var(--on-dark-muted); padding-bottom: 14px; }
.pl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crema); box-shadow: 0 0 0 5px rgba(201,143,85,.2); flex: none; }
.pl-count { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(3.4rem, 9vw, 7.5rem); line-height: .9; color: var(--latte); font-variant-numeric: tabular-nums; }
.pl-count sup { font-size: .32em; vertical-align: top; margin-left: 4px; color: var(--on-dark-muted); }
.preloader-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--caramel), var(--latte)); transform-origin: left; transform: scaleX(0); }
html.is-loaded .preloader { pointer-events: none; }
@media (max-width: 600px) { .pl-status { font-size: .74rem; } }

/* ---------- Page transition ---------- */
.page-wipe {
  position: fixed; inset: 0; z-index: 140; pointer-events: none;
  background: var(--espresso);
  visibility: hidden; opacity: 0;
  display: grid; place-items: center;
}
.page-wipe .brand-mark { width: 70px; height: 70px; color: var(--latte); }

/* ---------- Marquee ---------- */
.marquee { overflow: clip; white-space: nowrap; user-select: none; }
.marquee-track { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); will-change: transform; }
.marquee-item { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: 1.1; letter-spacing: -0.03em; }
.marquee-item.outline { color: transparent; -webkit-text-stroke: 1.2px var(--mocha); font-style: italic; font-weight: 400; }
.marquee-bean { width: clamp(22px, 3vw, 40px); height: auto; color: var(--caramel); flex: none; }

/* ---------- Dialog / forms ---------- */
.modal {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--paper); color: var(--espresso);
  box-shadow: 0 40px 120px -30px rgba(29,17,10,.6);
  overflow: auto;
}
.modal::backdrop { background: rgba(29, 17, 10, 0.55); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .55s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.modal-head { position: relative; padding: 34px 34px 10px; }
.modal-head h3 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.modal-head p { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); transition: transform .4s var(--ease-out), background-color .3s;
}
.modal-close:hover { transform: rotate(90deg); background: var(--sand); }
.modal-body { padding: 18px 34px 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--coffee); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--cream-soft);
  transition: border-color .3s, box-shadow .3s, background-color .3s; font-size: 1rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--caramel); background: #fff; box-shadow: 0 0 0 4px rgba(180,122,70,.15); }
.field .err { min-height: 1em; font-size: .78rem; color: var(--closed); }
.field.has-error input, .field.has-error select { border-color: var(--closed); }
.form-note { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); margin: 0; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-top: 6px; }
.form-success { display: none; text-align: center; padding: 10px 0 6px; }
.form-success .tick { width: 76px; height: 76px; margin: 0 auto 16px; color: var(--ok); }
.form-success h4 { font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 8px; font-weight: 500; }
.form-success p { color: var(--muted); margin: 0 0 18px; }
.is-sent .form-grid { display: none; }
.is-sent .form-success { display: block; }
@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .modal-head { padding: 28px 22px 6px; }
  .modal-body { padding: 14px 22px 26px; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: clip; background: var(--ink); color: var(--on-dark); padding: clamp(70px, 10vw, 130px) 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-top h4 { margin: 0 0 14px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--latte); font-weight: 600; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--on-dark-muted); }
.footer-top a:hover { color: var(--on-dark); }
.footer-tag { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 22px; }
.footer-tag em { color: var(--latte); }
.footer-word {
  margin-top: clamp(50px, 8vw, 100px);
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.05em;
  font-size: clamp(5rem, 21vw, 22rem); line-height: .78; text-align: center; color: var(--cream);
  display: flex; justify-content: center; overflow: clip; padding-bottom: .06em;
}
.footer-word em { color: var(--caramel); font-weight: 400; }
.footer-word span { display: inline-block; }
.footer-bottom { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--on-dark-muted); font-size: .82rem; border-top: 1px solid rgba(246,236,223,.12); padding-top: 20px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal helpers ---------- */
.reveal-img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; }
[data-fade] { will-change: transform, opacity; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body::after { animation: none; }
}
