/* Victorroti Private Secondary School, option 1: "The Star Chart".
   Bodoni Moda (display, high contrast) + Figtree (text). Midnight blue and one gold, from the school's blue sign and its gold star badge.
   A V-shaped constellation is the identity (V for Victorroti); the six classes are stars on a rising line. */
@font-face { font-family: "Bodoni Moda"; src: url("assets/fonts/bodoni.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("assets/fonts/bodoni-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #061428; --surface: #0b2040; --surface-2: #11305c;
  --ink: #eaf0fb; --muted: #a3b3cf; --line: rgba(234, 240, 251, .16); --line-strong: rgba(234, 240, 251, .5);
  --accent: #f4c14e; --accent-ink: #1b1300; --danger: #ff9a8a;
  --gold: #f4c14e; --gold-deep: #c9962a; --sign: #1d56b8; --paper: #eaf0fb; --paper-ink: #061428;
  --display: "Bodoni Moda", Georgia, serif; --body: "Figtree", system-ui, sans-serif;
  --r: 14px; --max: 1240px; --gutter: clamp(20px, 4.2vw, 56px); --bar: 76px;
  --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(--gold); overflow-x: clip; }
::selection { background: var(--gold); color: var(--accent-ink); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -.015em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(3.6rem, 9.4vw, 8.6rem); font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 4.8vw, 4.2rem); }
h3 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.1; }
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(--gold); color: var(--accent-ink); padding: 10px 16px; z-index: 100; border-radius: 8px; font-weight: 800; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.tag { font: 800 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 20px; display: inline-flex; align-items: center; gap: 12px; }
.tag::before { content: ""; width: 22px; height: 22px; background: url("assets/img/star.svg") center / contain no-repeat; }
.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(6, 20, 40, .18); transition: transform .5s var(--spring); }
.btn:hover .btn__i { transform: translate(2px, -2px); }
.btn .i { width: 22px; height: 22px; }
.btn--gold, .btn--primary { background: var(--gold); color: var(--accent-ink); box-shadow: 0 16px 40px -16px rgba(244, 193, 78, .65); } .btn--gold:hover, .btn--primary:hover { background: #fff; 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--lg { min-height: 62px; font-size: 1.06rem; } .btn--lg .btn__i { width: 52px; height: 52px; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--gold); text-decoration-thickness: 2px; text-decoration-color: rgba(244, 193, 78, .4); transition: text-decoration-color .3s; }
.textlink:hover { text-decoration-color: currentColor; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); 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: 42px; height: 42px; }
.logo__words { display: grid; line-height: 1; } .logo__words b { font: 600 1.55rem/1 var(--display); letter-spacing: -.01em; }
.logo__words small { font: 800 .7rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); 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(--gold); color: #fff; }
.nav .nav__cta { background: var(--gold); color: var(--accent-ink); padding: 12px 22px; border-radius: 999px; border-bottom: 0; font-weight: 800; transition: background .4s var(--spring), transform .4s var(--spring); }
.nav .nav__cta:hover { background: #fff; color: var(--accent-ink); } .nav .nav__cta:active { transform: scale(.97); }
.menu-btn { display: none; }

/* hero */
.hero { position: relative; padding-block: clamp(40px, 6vw, 100px) clamp(60px, 8vw, 120px); overflow: clip; background: radial-gradient(90% 70% at 85% 0%, #0f356b 0, transparent 60%), var(--bg); }
.hero__sky { position: absolute; right: -4%; top: 2%; width: min(78vw, 880px); opacity: .85; pointer-events: none; }
.hero__sky svg { width: 100%; height: auto; overflow: visible; }
.cs { transform-box: fill-box; transform-origin: center; animation: twinkle 4.2s ease-in-out infinite; }
.cs2 { animation-delay: -.8s; } .cs3 { animation-delay: -1.6s; } .cs4 { animation-delay: -2.4s; } .cs5 { animation-delay: -3.2s; } .cs6 { animation-delay: -1.1s; } .cs7 { animation-delay: -2s; } .cd { animation-duration: 3s; }
@keyframes twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.82); opacity: .75; } }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 84px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero__sub { font-size: 1.24rem; color: var(--muted); max-width: 29em; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.hero__facts { list-style: none; margin: clamp(30px, 4vw, 52px) 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hero__facts b { display: block; font: 600 1.15rem/1.2 var(--display); } .hero__facts span { font-size: .9rem; color: var(--muted); }
.porthole { margin: 0; justify-self: end; width: min(100%, 460px); }
.porthole__ring { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); padding: 10px; background: var(--surface); box-shadow: 0 0 0 10px rgba(244, 193, 78, .12), 0 40px 80px -40px #000; }
.porthole__ring img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 40%; border-radius: 50%; }
.porthole figcaption { margin-top: 18px; text-align: center; font-size: .9rem; color: var(--muted); }

/* day or boarding */
.ways { background: var(--surface); border-block: 1px solid var(--line); }
.ways__head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 60px); } .ways__head h2 { margin-bottom: 20px; } .ways__head p { color: var(--muted); }
.ways__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 36px); }
.way { padding: clamp(26px, 3.4vw, 46px); border: 1px solid var(--line-strong); border-radius: 22px; background: var(--bg); display: grid; gap: 14px; align-content: start; }
.way--b { background: var(--sign); border-color: var(--sign); }
.way h3 { font-size: clamp(2rem, 3.6vw, 3rem); } .way p { color: var(--muted); margin: 0; } .way--b p { color: #d6e3fa; }
.way ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; } .way li { padding-left: 22px; position: relative; } .way li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.way--b .textlink { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }

/* classes: six stars on a rising line */
.chart__head { max-width: 42em; margin-bottom: clamp(32px, 5vw, 64px); } .chart__head h2 { margin-bottom: 20px; } .chart__head p { color: var(--muted); }
.stars { list-style: none; margin: 0; padding: 0 0 20px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; min-height: 300px; background: url("assets/img/chartline.svg") center / 100% 90% no-repeat; }
.stars li { display: grid; justify-items: center; gap: 6px; text-align: center; padding-top: 14px; }
.stars li:nth-child(1) { margin-bottom: 0; } .stars li:nth-child(2) { margin-bottom: 36px; } .stars li:nth-child(3) { margin-bottom: 72px; } .stars li:nth-child(4) { margin-bottom: 116px; } .stars li:nth-child(5) { margin-bottom: 160px; } .stars li:nth-child(6) { margin-bottom: 200px; }
.stars li::before { content: ""; width: 38px; height: 38px; background: url("assets/img/star.svg") center / contain no-repeat; filter: drop-shadow(0 0 12px rgba(244, 193, 78, .6)); order: 2; }
.stars__n { font: 600 clamp(1.3rem, 2.4vw, 2rem)/1 var(--display); order: 1; } .stars small { order: 3; font: 800 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.chart__links { display: flex; flex-wrap: wrap; gap: 4px 30px; margin-top: 18px; }

/* exams (light band) */
.exams { background: var(--paper); color: var(--paper-ink); }
.exams .tag { color: #0b2c63; } .exams .tag::before { filter: brightness(.55); }
.exams__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.exams h2 { margin-bottom: 22px; } .exams h2 em { color: var(--sign); } .exams__src { color: #364763; font-size: 1.02rem; }
.exams__lab { font: 800 .76rem/1 var(--body); text-transform: uppercase; letter-spacing: .16em; color: #0b2c63; margin-bottom: 16px; }
.subjects { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.subjects li { padding: 12px 20px; border: 1.5px solid var(--paper-ink); border-radius: 999px; font-weight: 700; background: #fff; }
.exams__note { margin: 18px 0 0; font-size: .95rem; color: #364763; }

/* safeguarding */
.safe { background: var(--sign); }
.safe .tag { color: #fff; } .safe__head { max-width: 46em; margin-bottom: clamp(30px, 5vw, 60px); } .safe h2 { margin-bottom: 22px; font-size: clamp(3rem, 8vw, 7rem); } .safe__head p { color: #d6e3fa; font-size: 1.15rem; }
.safe__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.safe__list li { padding: clamp(22px, 2.6vw, 34px); border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r); display: grid; gap: 12px; align-content: start; transition: background .4s var(--spring), transform .4s var(--spring); }
.safe__list li:hover { background: rgba(255, 255, 255, .08); transform: translateY(-3px); }
.safe__list h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); } .safe__list p { margin: 0; color: #d6e3fa; }

/* parents ask */
.parents__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.parents h2 { margin-bottom: 20px; } .parents__grid > div:first-child p { color: var(--muted); }
.ask { margin: 0; border-top: 1px solid var(--line-strong); }
.ask > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ask dt { font: 600 1.4rem/1.15 var(--display); color: var(--gold); } .ask dd { margin: 0; color: #cfdaed; }

/* steps */
.steps { background: var(--surface); border-block: 1px solid var(--line); }
.steps h2 { margin-bottom: clamp(32px, 5vw, 64px); max-width: 12em; }
.steps__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; }
.steps__row::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; border-top: 1.5px dashed rgba(244, 193, 78, .5); }
.steps__row li { position: relative; padding-right: 8px; }
.steps__n { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--accent-ink); font: 600 1.4rem/1 var(--display); margin-bottom: 22px; }
.steps__row h3 { margin-bottom: 8px; font-size: 1.7rem; } .steps__row p { color: var(--muted); font-size: 1rem; }
.steps__note { margin: clamp(26px, 4vw, 46px) 0 0; color: var(--muted); font-size: .98rem; }

/* come and see */
.come { background: linear-gradient(135deg, #0f356b, var(--bg)); }
.come__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.come h2 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); margin-bottom: 22px; } .come__addr { font-size: 1.15rem; color: var(--muted); max-width: 28em; }
.come__links { display: grid; gap: 14px; justify-items: start; }

/* footer */
.foot { background: #030c1a; color: var(--muted); padding: clamp(48px, 7vw, 96px) 0 0; overflow: clip; }
.foot__motto { font: italic 500 clamp(2.6rem, 8vw, 7rem)/1 var(--display); color: var(--gold); margin: 0 0 clamp(32px, 5vw, 64px); max-width: none; }
.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(--gold); 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, .5); transition: transform .4s var(--spring); }
.wa:hover { transform: translateY(-2px); } .wa:active { transform: scale(.98); } .wa .i { width: 26px; height: 26px; }

/* school page */
.vhead { position: relative; padding-block: clamp(36px, 6vw, 84px) clamp(28px, 4vw, 56px); overflow: clip; border-bottom: 1px solid var(--line); }
.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(3.2rem, 7vw, 6rem); } .vhead .lede { margin: 20px 0 28px; }
.vhead__art { justify-self: end; width: min(100%, 220px); } .vhead__art img { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.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(--gold); } .rows dd { margin: 0; color: var(--muted); }
.note { color: var(--muted); font-size: .96rem; max-width: 62ch; } .note a { color: var(--gold); 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: 600 1.2rem var(--display); } .slots span { color: var(--muted); }
.vmain .ask { margin-bottom: 4px; } .vmain .ask > div { padding: 18px 0; }
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(--gold); border-radius: 18px; background: var(--surface); overflow: hidden; }
.glance h2 { font: 800 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .16em; background: var(--gold); color: var(--accent-ink); 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(--gold); margin-bottom: 6px; } .glance dd { margin: 0; font-weight: 700; }
.glance .btn { margin: 20px; } .glance a:not(.btn) { color: var(--gold); 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(3rem, 6.4vw, 5.6rem); 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(--gold); } .contact .i { width: 24px; height: 24px; flex: none; color: var(--gold-deep); }
.rsvp__card { background: var(--surface); border: 1px solid var(--gold); border-radius: 20px; 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(--gold); 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: #081a35; border-color: var(--line-strong); color: var(--ink); color-scheme: dark; }
.radio span { background: #081a35; } .radio input:checked + span { background: var(--gold); border-color: var(--gold); 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.6rem, 5vw, 4.4rem); margin-bottom: 18px; }
.legal__meta { color: var(--muted); } .legal h2 { font-size: 1.7rem; margin: 40px 0 12px; } .legal p, .legal li { color: #cdd9ee; } .legal a { color: var(--gold); 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); }
.wa { right: max(18px, calc(env(safe-area-inset-right) + 12px)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px)); }
.foot__base { padding-bottom: max(78px, calc(env(safe-area-inset-bottom) + 70px)); }

@media (max-width: 1000px) {
  .hero__grid, .exams__grid, .parents__grid, .come__grid, .vhead__grid, .rsvp__grid, .vlayout { grid-template-columns: minmax(0, 1fr); }
  .hero__sky { right: -30%; top: 0; width: 120vw; opacity: .5; } .porthole { justify-self: center; width: min(86%, 380px); order: -1; }
  .hero__facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vhead__art { justify-self: start; width: 110px; } .glance { position: static; }
  .ways__grid, .safe__list { grid-template-columns: minmax(0, 1fr); }
  .stars { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; background: none; gap: 18px 10px; padding-bottom: 0; } .stars li:nth-child(n) { margin-bottom: 0; padding: 18px 0; border-top: 1px solid var(--line); }
  .steps__row { grid-template-columns: minmax(0, 1fr); gap: 26px; } .steps__row::before { left: 22px; right: auto; top: 22px; bottom: 22px; border-top: 0; border-left: 1.5px dashed rgba(244, 193, 78, .5); }
  .steps__row li { padding: 0 0 0 68px; } .steps__n { position: absolute; left: 0; top: 0; margin: 0; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* menu */
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; }
  .burger { position: relative; width: 26px; height: 16px; } .burger i { position: absolute; left: 0; right: 0; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--spring), top .5s var(--spring); }
  .burger i:first-child { top: 1px; } .burger i:last-child { top: 12px; }
  .menu-btn[aria-expanded="true"] .burger i:first-child { top: 7px; transform: rotate(45deg); } .menu-btn[aria-expanded="true"] .burger i:last-child { top: 7px; transform: rotate(-45deg); }
  .nav { position: fixed; left: 0; right: 0; top: calc(var(--bar) + env(safe-area-inset-top)); bottom: 0; z-index: 29; background: var(--bg); flex-direction: column; align-items: flex-start; gap: 4px; padding: 26px var(--gutter) max(40px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .35s var(--spring), transform .35s var(--spring), visibility 0s .35s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { font: 500 clamp(2.4rem, 10vw, 3.4rem)/1.1 var(--display); padding: 10px 0; border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--gold); font-style: italic; }
  .nav .nav__cta { font: 800 1.05rem var(--body); margin-top: 18px; padding: 16px 28px; }
  html.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .ask > div, .rows > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } .row { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); } .stars { grid-template-columns: minmax(0, 1fr); }
  .wa span { display: none; } .wa { padding: 0; width: 54px; justify-content: center; }
  .logo__words small { letter-spacing: .1em; }
}
@media (hover: none) { .btn:hover, .wa:hover, .safe__list li:hover { transform: none; } }
@media (max-height: 460px) and (orientation: landscape) { :root { --bar: 60px; } section { padding-block: 40px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cs { 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; }
}
