/* De-Gifted Private School, option 2: "The Torch".
   Marcellus (inscriptional capitals, like the crest's lettering) + Karla (text). Deep forest green, flame amber and bronze, taken from the crest.
   On phones the navigation is a bottom tab bar within thumb reach. */
@font-face { font-family: "Marcellus"; src: url("assets/fonts/marcellus.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("assets/fonts/karla.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b2118; --surface: #12322a; --surface-2: #17402f;
  --ink: #eef3ec; --muted: #a9bdb0; --line: rgba(238, 243, 236, .16); --line-strong: rgba(238, 243, 236, .5);
  --accent: #ffb02e; --accent-ink: #1a1205; --danger: #ff8a7a;
  --flame: #ffb02e; --flame-2: #f06a1d; --bronze: #c2914f; --paper: #eef3ec; --paper-ink: #0b2118; --red: #e0443a;
  --display: "Marcellus", Georgia, serif; --body: "Karla", system-ui, sans-serif;
  --r: 12px; --max: 1240px; --gutter: clamp(20px, 4vw, 56px); --bar: 72px; --tab: 64px;
  --spring: cubic-bezier(.32, .72, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.1rem/1.65 var(--body); -webkit-font-smoothing: antialiased; caret-color: var(--flame); overflow-x: clip; }
::selection { background: var(--flame); color: var(--accent-ink); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.4vw, 6rem); letter-spacing: .01em; text-transform: uppercase; }
h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.12; }
p { margin: 0 0 1rem; max-width: 62ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 4px; }
section { padding-block: clamp(68px, 9.5vw, 140px); }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--flame); color: var(--accent-ink); padding: 10px 16px; z-index: 100; font-weight: 800; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }
.tag { font: 800 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--flame); margin: 0 0 20px; display: inline-flex; align-items: center; gap: 12px; }
.tag::before { content: ""; width: 26px; height: 2px; background: var(--bronze); }
.lede { font-size: 1.28rem; color: var(--muted); max-width: 36em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: 800 1.02rem var(--body); text-decoration: none; cursor: pointer; transition: background .5s var(--spring), color .5s var(--spring), transform .5s var(--spring), border-color .5s var(--spring), box-shadow .5s var(--spring); }
.btn:active { transform: scale(.98); }
.btn:has(.btn__i) { padding: 5px 5px 5px 26px; }
.btn__i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(11, 33, 24, .16); transition: transform .5s var(--spring); }
.btn:hover .btn__i { transform: translate(2px, -2px); }
.btn .i { width: 22px; height: 22px; }
.btn--flame, .btn--primary { background: linear-gradient(135deg, var(--flame), var(--flame-2)); color: var(--accent-ink); box-shadow: 0 14px 34px -14px rgba(240, 106, 29, .7); } .btn--flame:hover, .btn--primary:hover { box-shadow: 0 18px 44px -12px rgba(255, 176, 46, .8); transform: translateY(-2px); }
.btn--line { border-color: var(--line-strong); color: var(--ink); } .btn--line:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--dark { background: var(--paper-ink); color: #fff; } .btn--dark .btn__i { background: var(--flame); color: var(--accent-ink); } .btn--dark:hover { background: #fff; color: var(--paper-ink); }
.btn--ghostdark { border-color: var(--paper-ink); color: var(--paper-ink); } .btn--ghostdark:hover { background: var(--paper-ink); color: #fff; }
.btn--lg { min-height: 62px; font-size: 1.06rem; } .btn--lg .btn__i { width: 52px; height: 52px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(11, 33, 24, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-top: env(safe-area-inset-top); }
.top__in { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; min-height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.logo img { width: 40px; height: 42px; object-fit: contain; }
.logo__words { display: grid; line-height: 1; } .logo__words b { font: 400 1.4rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.logo__words small { font: 800 .72rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a { text-decoration: none; font-weight: 700; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .3s, color .3s; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--flame); color: #fff; }
.nav .nav__cta { background: linear-gradient(135deg, var(--flame), var(--flame-2)); color: var(--accent-ink); padding: 12px 22px; border-radius: 999px; border-bottom: 0; font-weight: 800; transition: transform .4s var(--spring), box-shadow .4s var(--spring); }
.nav .nav__cta:hover { color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 12px 30px -12px rgba(255, 176, 46, .8); }

/* hero */
.hero { position: relative; padding-block: clamp(40px, 6vw, 96px) clamp(60px, 8vw, 120px); overflow: clip; }
.hero__glow { position: absolute; right: -10%; top: -10%; width: min(110vw, 1100px); aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255, 176, 46, .26), rgba(240, 106, 29, .12) 45%, transparent 72%); pointer-events: none; animation: glow 6s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .7; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 28px; } .hero h1 .ln { display: block; } .hero h1 .ln--f { color: var(--flame); }
.hero__sub { font-size: 1.24rem; color: var(--muted); max-width: 30em; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.hero__open { margin: 24px 0 0; font-weight: 800; color: var(--paper); display: flex; align-items: center; gap: 10px; }
.hero__open::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 5px rgba(255, 176, 46, .22); }
.hero__crest { justify-self: center; width: min(100%, 400px); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); animation: float 7s ease-in-out infinite alternate; }
.hero__crest img { width: 100%; height: auto; }
@keyframes float { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

/* the building plate */
.plate { background: var(--surface); border-block: 1px solid var(--line); }
.plate__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.plate h2 { margin-bottom: 22px; } .plate__txt p { color: var(--muted); }
.plate__fig { margin: 0; padding: 12px; border: 1px solid var(--bronze); border-radius: 14px; background: var(--bg); box-shadow: 0 40px 80px -50px #000; }
.plate__fig img { width: 100%; height: auto; border-radius: 6px; }
.plate__fig figcaption { padding: 12px 6px 4px; font-size: .9rem; color: var(--muted); }

/* the school (light band) */
.mission { background: var(--paper); color: var(--paper-ink); }
.mission .tag { color: #8a5a17; } .mission .tag::before { background: #8a5a17; }
.mission__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.mission h2 { margin-bottom: 22px; } .mission__src { color: #4b5c51; font-size: .98rem; }
.offers { list-style: none; margin: 0; padding: 0; }
.offers li { padding: 22px 0; border-top: 1px solid rgba(11, 33, 24, .3); display: grid; gap: 2px; } .offers li:last-child { border-bottom: 1px solid rgba(11, 33, 24, .3); }
.offers b { font: 400 1.45rem/1.15 var(--display); } .offers span { color: #3f5146; }

/* classes as steps */
.stairs__head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 64px); } .stairs__head h2 { margin-bottom: 20px; } .stairs__head p { color: var(--muted); }
.steps3 { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.steps3 li { border-bottom: 1px solid var(--line-strong); }
.steps3 a { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: clamp(16px, 3vw, 40px); align-items: center; padding: clamp(24px, 3.4vw, 42px) 0; text-decoration: none; transition: background .4s var(--spring), padding .4s var(--spring); }
.steps3 a:hover, .steps3 a:focus-visible { background: linear-gradient(90deg, rgba(255, 176, 46, .1), transparent); padding-left: 14px; }
.rn { font: 400 clamp(2.2rem, 4vw, 3.4rem)/1 var(--display); color: var(--bronze); }
.sn b { display: block; font: 400 clamp(1.9rem, 3.4vw, 2.8rem)/1.05 var(--display); } .sn small { font: 800 .76rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--flame); display: block; margin-top: 8px; }
.st { color: var(--muted); } .go { display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid var(--line-strong); border-radius: 50%; transition: background .4s var(--spring), color .4s var(--spring), transform .4s var(--spring); }
.go .i { width: 22px; height: 22px; } .steps3 a:hover .go { background: var(--flame); color: var(--accent-ink); border-color: var(--flame); transform: translateX(4px); }

/* safeguarding */
.safe { background: var(--surface-2); border-block: 1px solid var(--line); }
.safe__head { max-width: 44em; margin-bottom: clamp(30px, 5vw, 60px); } .safe h2 { margin-bottom: 22px; font-size: clamp(3rem, 8vw, 7rem); } .safe__head p { color: var(--muted); font-size: 1.15rem; }
.safe__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.safe__list li { padding: clamp(24px, 3vw, 38px); border: 1px solid var(--bronze); border-radius: var(--r); background: rgba(11, 33, 24, .35); display: grid; gap: 12px; align-content: start; transition: border-color .4s var(--spring), transform .4s var(--spring); }
.safe__list li:hover { border-color: var(--flame); transform: translateY(-3px); }
.safe__list h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); } .safe__list p { margin: 0; color: var(--muted); }

/* parents ask (light cells) */
.parents { background: var(--paper); color: var(--paper-ink); }
.parents .tag { color: #8a5a17; } .parents .tag::before { background: #8a5a17; } .parents__head { margin-bottom: clamp(28px, 4vw, 52px); }
.ask { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1.5px solid var(--paper-ink); border-radius: var(--r); overflow: hidden; }
.ask > div { padding: clamp(22px, 3vw, 38px); border-right: 1.5px solid var(--paper-ink); border-bottom: 1.5px solid var(--paper-ink); display: grid; gap: 10px; align-content: start; }
.ask > div:nth-child(2n) { border-right: 0; } .ask > div:nth-last-child(-n + 2) { border-bottom: 0; }
.ask dt { font: 800 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: #8a5a17; } .ask dd { margin: 0; font-size: 1.1rem; }

/* steps to a place */
.path h2 { margin-bottom: clamp(32px, 5vw, 64px); max-width: 12em; }
.path__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); position: relative; }
.path__row::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; border-top: 1.5px dashed var(--bronze); }
.path__row li { position: relative; padding-top: 44px; }
.dot { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--flame); box-shadow: 0 0 0 6px rgba(255, 176, 46, .14); }
.lab { font: 800 .76rem/1 var(--body); text-transform: uppercase; letter-spacing: .16em; color: var(--flame); display: block; margin-bottom: 10px; }
.path__row h3 { margin-bottom: 8px; } .path__row p { color: var(--muted); font-size: 1rem; }
.path__note { margin: clamp(26px, 4vw, 46px) 0 0; color: var(--muted); font-size: .98rem; }

/* tour band */
.tour { background: linear-gradient(135deg, var(--flame), var(--flame-2)); color: var(--paper-ink); overflow: clip; }
.tour__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.tour h2 { font-size: clamp(3.2rem, 8.6vw, 8rem); text-transform: uppercase; } .tour__side p { font-size: 1.18rem; } .tour__links { display: grid; gap: 14px; justify-items: start; margin-top: 22px; }

/* footer */
.foot { background: #07160f; color: var(--muted); padding: clamp(48px, 7vw, 96px) 0 0; overflow: clip; }
.foot__head { display: flex; align-items: center; gap: 22px; margin-bottom: clamp(32px, 5vw, 56px); } .foot__head img { width: 84px; height: auto; }
.foot__head p { font: 400 clamp(1.4rem, 2.8vw, 2.2rem)/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: #fff; margin: 0; }
.foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.foot h2 { font: 800 .76rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--flame); margin-bottom: 14px; }
.foot p { margin: 0 0 8px; } .foot a { color: #fff; text-underline-offset: 4px; }
.foot__nav { display: grid; gap: 6px; } .foot__nav a { text-decoration: none; } .foot__nav a:hover { text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 26px 0 78px; font-size: .94rem; }
.foot__base p { margin: 0; } .foot__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; } .foot__legal a { color: var(--muted); }

/* WhatsApp */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 999px; background: #1a9b52; color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); transition: transform .4s var(--spring); }
.wa:hover { transform: translateY(-2px); } .wa:active { transform: scale(.98); } .wa .i { width: 26px; height: 26px; }

/* school page */
.vhead { padding-block: clamp(36px, 6vw, 84px) clamp(28px, 4vw, 56px); position: relative; overflow: clip; border-bottom: 1px solid var(--line); }
.vhead::before { content: ""; position: absolute; right: -8%; top: -30%; width: 640px; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255, 176, 46, .2), transparent 70%); pointer-events: none; }
.vhead__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.vhead h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); } .vhead .lede { margin: 20px 0 28px; }
.vhead__bell { justify-self: end; width: min(100%, 200px); filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .5)); } .vhead__bell img { width: 100%; height: auto; }
.vlayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 90px); align-items: start; padding-block: clamp(36px, 5vw, 72px) clamp(72px, 10vw, 130px); }
.vmain h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 18px; }
.bsec { padding: clamp(24px, 3.4vw, 40px) 0 0; margin-top: clamp(24px, 3.4vw, 40px); border-top: 1px solid var(--line-strong); } .bsec:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.rows { margin: 0; } .rows > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rows dt { font: 800 .82rem/1.6 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--flame); } .rows dd { margin: 0; color: var(--muted); }
.note { color: var(--muted); font-size: .96rem; max-width: 62ch; } .note a { color: var(--flame); font-weight: 800; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.slots li { padding: 14px 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); display: grid; gap: 2px; } .slots b { font: 400 1.2rem var(--display); } .slots span { color: var(--muted); }
.vmain .ask { margin-bottom: 4px; color: var(--ink); border-color: var(--line-strong); } .vmain .ask > div { padding: 18px 20px; border-color: var(--line-strong); } .vmain .ask dt { color: var(--flame); }
address { font-style: normal; font-weight: 800; margin-bottom: 8px; }
.map { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); min-height: 380px; overflow: hidden; margin-top: 14px; } .map iframe { width: 100%; height: 420px; border: 0; display: block; }
.map__ph { padding: clamp(22px, 4vw, 44px); display: grid; gap: 18px; align-content: center; min-height: 376px; } .map__ph p { margin: 0; color: var(--muted); }
.glance { position: sticky; top: 100px; border: 1px solid var(--bronze); border-radius: 16px; background: var(--surface); overflow: hidden; }
.glance h2 { font: 800 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .16em; background: var(--bronze); color: #1d1405; padding: 14px 20px; margin: 0; }
.glance dl { margin: 0; padding: 4px 20px 0; } .glance dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.glance dt { font: 800 .72rem/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--flame); margin-bottom: 6px; } .glance dd { margin: 0; font-weight: 700; }
.glance .btn { margin: 20px; } .glance a:not(.btn) { color: var(--flame); font-weight: 800; }

/* admissions */
.rsvp { padding-block: clamp(36px, 6vw, 84px) clamp(72px, 10vw, 130px); }
.rsvp__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.rsvp h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); margin-bottom: 22px; }
.contact { list-style: none; padding: 0; margin: 26px 0 0; display: grid; border-top: 1px solid var(--line-strong); } .contact li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); } .contact a { font-weight: 800; color: var(--flame); } .contact .i { width: 24px; height: 24px; flex: none; color: var(--bronze); }
.rsvp__card { background: var(--surface); border: 1px solid var(--bronze); border-radius: 18px; padding: clamp(22px, 4vw, 48px); box-shadow: 0 40px 80px -50px #000; }
.form .btn--primary { justify-self: start; }
.consent { font-size: .88rem; color: var(--muted); margin: 0; } .consent a { color: var(--flame); font-weight: 800; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form input[type="number"], .form select, .form textarea { background: #0e281f; border-color: var(--line-strong); color: var(--ink); color-scheme: dark; }
.radio span { background: #0e281f; } .radio input:checked + span { background: var(--flame); border-color: var(--flame); color: var(--accent-ink); }
.status { background: var(--surface-2); }

/* policy and 404 */
.legal { padding-block: clamp(40px, 6vw, 84px) clamp(72px, 10vw, 120px); }
.legal__wrap { max-width: 780px; } .legal h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 18px; }
.legal__meta { color: var(--muted); } .legal h2 { font-size: 1.7rem; margin: 40px 0 12px; } .legal p, .legal li { color: #cfdcd2; } .legal a { color: var(--flame); font-weight: 700; }

/* phone polish */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, select, label, input { touch-action: manipulation; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

@media (max-width: 1000px) {
  .hero__grid, .plate__grid, .mission__grid, .tour__grid, .vhead__grid, .rsvp__grid, .vlayout { grid-template-columns: minmax(0, 1fr); }
  .hero__crest { order: -1; justify-self: start; width: 150px; } .vhead__bell { justify-self: start; width: 110px; }
  .glance { position: static; }
  .steps3 a { grid-template-columns: 3.4rem minmax(0, 1fr) auto; } .steps3 .st { grid-column: 2 / 3; grid-row: 2; } .steps3 .go { grid-row: 1; grid-column: 3; }
  .safe__list { grid-template-columns: minmax(0, 1fr); }
  .path__row { grid-template-columns: minmax(0, 1fr); gap: 26px; } .path__row::before { left: 11px; right: auto; top: 12px; bottom: 12px; border-top: 0; border-left: 1.5px dashed var(--bronze); }
  .path__row li { padding: 0 0 0 52px; } .dot { top: 0; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* bottom tab bar (the header must not blur or transform: that would trap the fixed bar inside it) */
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  body { padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom)); }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 0; background: rgba(7, 22, 15, .97); border-top: 1px solid var(--bronze); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .nav a { display: grid; place-items: center; min-height: var(--tab); padding: 0 4px; text-align: center; font-size: .92rem; font-weight: 800; border-bottom: 0; border-top: 3px solid transparent; color: var(--muted); line-height: 1.15; }
  .nav a[aria-current="page"] { color: #fff; border-top-color: var(--flame); background: rgba(255, 176, 46, .08); } .nav a:hover { color: #fff; }
  .nav .nav__cta { border-radius: 0; background: linear-gradient(135deg, var(--flame), var(--flame-2)); color: var(--accent-ink); padding: 0 6px; border-top: 0; } .nav .nav__cta:hover { color: var(--accent-ink); transform: none; box-shadow: none; }
  .wa { bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 14px); right: max(14px, calc(env(safe-area-inset-right) + 10px)); }
  .foot__base { padding-bottom: 30px; }
}
@media (max-width: 640px) {
  .ask { grid-template-columns: minmax(0, 1fr); } .ask > div, .ask > div:nth-child(2n) { border-right: 0; } .ask > div:nth-child(n) { border-bottom: 1.5px solid var(--paper-ink); } .ask > div:last-child { border-bottom: 0; }
  .vmain .ask > div:nth-child(n) { border-bottom: 1px solid var(--line-strong); } .vmain .ask > div:last-child { border-bottom: 0; }
  .rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } .row { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); } .foot__head { align-items: flex-start; flex-direction: column; }
  .wa span { display: none; } .wa { padding: 0; width: 54px; justify-content: center; }
  .hero__sub { font-size: 1.12rem; } .steps3 a { gap: 10px 14px; }
}
@media (hover: none) { .btn:hover, .wa:hover, .safe__list li:hover { transform: none; } }
@media (max-height: 460px) and (orientation: landscape) { :root { --bar: 56px; --tab: 52px; } section { padding-block: 40px; } .hero__crest { width: 110px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero__glow, .hero__crest { animation: none !important; } * { transition-duration: .01ms !important; } }

/* Shared components for both Havilah options: RSVP form, gallery grid, lightbox, reveal.
   Relies on tokens defined by each option: --bg --ink --muted --line --line-strong --accent --accent-ink --surface --surface-2 --r */

[hidden] { display: none !important; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* RSVP form */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 650; font-size: .95rem; padding: 0; }
.field .opt, .hint { color: var(--muted); font-weight: 400; font-size: .88rem; }
.hint { margin: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form input[type="number"], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 12px 14px; min-height: 48px;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.field.has-error input, .field.has-error select { border-color: var(--danger, #c0261c); }
.err { margin: 0; color: var(--danger, #c0261c); font-size: .9rem; font-weight: 600; }
.field--radios, .field--branch { gap: 8px; }
.field--radios, .field--branch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.field--radios legend, .field--branch legend { width: 100%; margin-bottom: 2px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); font-weight: 600; font-size: .95rem; cursor: pointer; }
.radio input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.radio input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-strong); font-weight: 550; }
.status a { text-underline-offset: 3px; font-weight: 700; }
.form button:disabled { opacity: .6; cursor: progress; }
.done { display: grid; gap: 10px; }
.done h2 { font-size: 1.7rem; }
.done p { margin: 0; color: var(--muted); }
.done a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* Gallery grid */
.all__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 600; font-size: .92rem; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.masonry { columns: 3 260px; column-gap: 18px; }
.tile { break-inside: avoid; margin: 0 0 18px; }
.tile__open { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.tile__open img { width: 100%; height: auto; display: block; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.tile__open:hover img, .tile__open:focus-visible img { transform: scale(1.04); }
.tile__open:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tile figcaption { padding-top: 8px; display: grid; gap: 1px; font-size: .95rem; }
.tile figcaption small { color: var(--muted); font-size: .8rem; }
.note { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.note a { color: var(--ink); text-underline-offset: 3px; }

/* Lightbox */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; color: #fff; }
.lb::backdrop { background: rgba(8, 10, 12, .92); }
.lb[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb__fig { margin: 0; display: grid; gap: 10px; justify-items: center; max-height: 100dvh; padding: 24px 0; }
.lb__fig img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: var(--r); }
.lb__fig figcaption { color: #dfe5e8; font-size: .95rem; text-align: center; padding-inline: 12px; }
.lb__nav, .lb__x { background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; justify-self: center; }
.lb__nav:hover, .lb__x:hover { background: rgba(255, 255, 255, .24); }
.lb__nav:focus-visible, .lb__x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb__x { position: absolute; top: 16px; right: 16px; z-index: 2; }
.lb .i { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; }
  .masonry { columns: 2 150px; column-gap: 12px; }
  .lb[open] { grid-template-columns: 1fr; }
  .lb__nav { position: absolute; bottom: 16px; }
  .lb__nav--prev { left: 16px; }
  .lb__nav--next { right: 16px; }
}

/* Picture wrappers must not break layouts that size the image from its parent */
picture { display: contents; }

/* Policy and 404 pages */
.legal { padding-top: clamp(32px, 5vw, 64px); }
.legal__wrap { max-width: 760px; }
.legal h1 { margin-bottom: 8px; }
.legal__meta { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; margin: 30px 0 10px; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--ink); max-width: 68ch; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 0 0 1rem; }
.legal a { text-underline-offset: 3px; font-weight: 600; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.foot__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.consent { margin: 0; font-size: .88rem; color: var(--muted); }
.consent a { color: var(--ink); text-underline-offset: 3px; font-weight: 600; }

/* Click-to-load map */
.map__ph { height: 100%; min-height: 380px; display: grid; align-content: center; justify-items: start; gap: 6px; padding: clamp(20px, 4vw, 40px); }
.map__ph p { max-width: 30em; color: var(--muted); margin: 0; }
.map__ph a:not(.btn) { color: var(--ink); text-underline-offset: 3px; font-weight: 600; }

/* Tap targets: links in lists and footers are at least 44px tall */
.foot__col a, .contact a, .foot a { display: inline-flex; align-items: center; min-height: 44px; }
.contact { gap: 0 !important; }
.foot__col { gap: 0 !important; }

/* Floating WhatsApp collapses to an icon on phones so it never covers content */
@media (max-width: 700px) {
  .wa { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wa .i { width: 26px; height: 26px; }
}
