/* Bluebell International School, option 2: "Bell Schedule".
   Bricolage Grotesque + IBM Plex Mono. White, ink and one cobalt; chalk yellow only for the bell clapper and the "today" marker.
   The page is built like a school timetable: ruled cells, mono times, a week of opening hours, an age ruler. */
@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/plexmono.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #eceeff;
  --ink: #0d1033; --muted: #494d75; --line: rgba(13, 16, 51, .16); --line-strong: rgba(13, 16, 51, .55);
  --accent: #2b3fe0; --accent-ink: #ffffff; --danger: #b3261e;
  --cob: #2b3fe0; --cob-deep: #1b2bb0; --yel: #ffcf33;
  --display: "Bricolage Grotesque", system-ui, sans-serif; --body: "Bricolage Grotesque", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r: 0px; --max: 1260px; --gutter: clamp(18px, 3.6vw, 48px); --bar: 68px;
  --spring: cubic-bezier(.32, .72, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.08rem/1.6 var(--body); -webkit-font-smoothing: antialiased; caret-color: var(--cob); overflow-x: clip; }
::selection { background: var(--yel); color: var(--ink); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -.045em; line-height: .92; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 9.2vw, 9rem); }
h2 { font-size: clamp(2.5rem, 6vw, 5.4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.05; letter-spacing: -.03em; }
p { margin: 0 0 1rem; max-width: 60ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 4px; }
section { padding-block: clamp(64px, 9vw, 130px); }
.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(--ink); color: #fff; padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cob); outline-offset: 3px; }
.tag { font: 400 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; display: inline-flex; align-items: center; gap: 10px; }
.tag::before { content: ""; width: 10px; height: 10px; background: var(--yel); border: 2px solid var(--ink); border-radius: 50%; }
.lede { font-size: 1.28rem; color: var(--muted); max-width: 34em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 0 24px; border: 2px solid var(--ink); font: 700 1.02rem var(--body); text-decoration: none; cursor: pointer; transition: background .4s var(--spring), color .4s var(--spring), transform .4s var(--spring), box-shadow .4s var(--spring); }
.btn:active { transform: translate(2px, 2px); }
.btn:has(.btn__i) { padding: 0 0 0 24px; }
.btn__i { display: grid; place-items: center; width: 52px; align-self: stretch; border-left: 2px solid currentColor; transition: background .4s var(--spring); }
.btn .i { width: 22px; height: 22px; }
.btn--primary { background: var(--cob); color: #fff; border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); } .btn--primary:hover { background: var(--ink); box-shadow: 5px 5px 0 var(--yel); }
.btn--primary:active { box-shadow: 2px 2px 0 var(--ink); }
.btn--line { background: #fff; color: var(--ink); } .btn--line:hover { background: var(--ink); color: #fff; }
.btn--yel { background: var(--yel); color: var(--ink); border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); } .btn--yel:hover { background: #fff; }
.btn--ghost { border-color: #fff; color: #fff; background: transparent; } .btn--ghost:hover { background: #fff; color: var(--cob-deep); }
.btn--lg { min-height: 62px; font-size: 1.08rem; } .btn--lg .btn__i { width: 62px; }

/* header: a row of ruled cells */
.top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 2px solid var(--ink); }
.top__in { display: flex; align-items: stretch; min-height: var(--bar); width: 100%; }
.logo { display: flex; align-items: center; gap: 12px; padding: 0 clamp(16px, 2.4vw, 32px); text-decoration: none; border-right: 2px solid var(--ink); }
.logo img { width: 38px; height: 40px; object-fit: contain; }
.logo__words { display: grid; line-height: 1; } .logo__words b { font: 800 1.45rem/1 var(--display); letter-spacing: -.04em; }
.logo__words small { font: 400 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav { display: flex; align-items: stretch; flex: 1; }
.nav a { display: flex; align-items: center; gap: 9px; padding: 0 clamp(14px, 2.2vw, 30px); text-decoration: none; font-weight: 600; border-right: 1px solid var(--line-strong); transition: background .3s var(--spring); }
.nav a small { font: 400 .68rem/1 var(--mono); color: var(--accent); }
.nav a:hover { background: var(--surface-2); } .nav a[aria-current="page"] { background: var(--ink); color: #fff; } .nav a[aria-current="page"] small { color: var(--yel); }
.nav .nav__cta { margin-left: auto; background: var(--cob); color: #fff; font-weight: 700; border-right: 0; border-left: 2px solid var(--ink); padding: 0 clamp(18px, 2.6vw, 36px); }
.nav .nav__cta:hover { background: var(--ink); }
.menu-btn { display: none; }

/* hero */
.hero { padding: 0 0 clamp(48px, 7vw, 100px); position: relative; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 12) 100%; }
.ticker { margin: 0; max-width: none; background: var(--ink); color: #fff; font: 400 .8rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 13px 0; }
.ticker__in { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; }
.ticker [data-open]::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--yel); margin-right: 10px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); gap: clamp(20px, 3vw, 56px); align-items: center; padding-top: clamp(40px, 6vw, 84px); }
.hero h1 { margin-bottom: 30px; } .hero h1 .ln { display: block; } .hero h1 .ln--b { color: var(--cob); }
.hero__sub { font-size: 1.28rem; color: var(--muted); max-width: 30em; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: center; }
.hero__bell { display: grid; justify-items: center; gap: 12px; }
.bellbtn { background: none; border: 0; padding: 0; cursor: pointer; width: min(100%, 340px); }
.bellbtn svg { width: 100%; height: auto; overflow: visible; }
.swing { transform-origin: 200px 14px; }
.bellbtn:hover .swing { animation: ringhint 1.1s ease-in-out; }
.bellbtn.is-ringing .swing { animation: ring 2.4s cubic-bezier(.36, .07, .19, .97); }
.bellcap { font: 400 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; text-align: center; }
@keyframes ringhint { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(5deg); } 65% { transform: rotate(-4deg); } }
@keyframes ring { 0% { transform: rotate(0); } 12% { transform: rotate(16deg); } 28% { transform: rotate(-14deg); } 44% { transform: rotate(10deg); } 60% { transform: rotate(-7deg); } 76% { transform: rotate(4deg); } 90% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }

/* the week */
.week { background: var(--surface-2); border-block: 2px solid var(--ink); }
.week__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); align-items: end; }
.week__head h2 { margin-bottom: 22px; } .week__head p { color: var(--muted); }
.week__now { font: 400 .92rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink) !important; border: 2px solid var(--ink); background: #fff; display: inline-block; padding: 10px 14px; }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; }
.days li { display: grid; grid-template-rows: 1fr auto; gap: 8px; height: clamp(200px, 26vw, 300px); }
.days .slot { background: var(--cob); border: 2px solid var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 4px; font: 400 .78rem/1 var(--mono); text-align: center; position: relative; transform-origin: bottom; }
.days .slot b { font-weight: 400; display: block; }
.days .day { order: 2; font: 700 .9rem/1 var(--body); text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.days .off .slot { background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(13, 16, 51, .2) 7px 9px), #fff; color: var(--muted); justify-content: center; height: 44px; align-self: end; }
.days .off { grid-template-rows: 1fr auto; } .days .off .slot { margin-top: auto; }
.days li.is-today .slot { background: var(--ink); box-shadow: 0 -8px 0 var(--yel); } .days li.is-today .day { color: var(--accent); }
.days li.is-today.off .slot { background: #fff; box-shadow: 0 -8px 0 var(--yel); }

/* age ruler */
.ages__head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 64px); } .ages__head h2 { margin-bottom: 22px; } .ages__head p { color: var(--muted); }
.ruler { border: 2px solid var(--ink); }
.ruler__ages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); border-bottom: 2px solid var(--ink); }
.ruler__ages a { display: grid; justify-items: center; align-content: center; gap: 2px; padding: 18px 2px; text-decoration: none; border-right: 1px solid var(--line-strong); transition: background .25s var(--spring), color .25s var(--spring); height: 100%; }
.ruler__ages li:last-child a { border-right: 0; }
.ruler__ages b { font: 800 clamp(1.3rem, 2.6vw, 2.2rem)/1 var(--display); letter-spacing: -.04em; } .ruler__ages span { font: 400 .7rem/1 var(--mono); text-transform: uppercase; color: var(--muted); letter-spacing: .02em; }
.ruler__ages a:hover, .ruler__ages a:focus-visible { background: var(--cob); color: #fff; } .ruler__ages a:hover span, .ruler__ages a:focus-visible span { color: #dfe3ff; }
.ruler__bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); }
.bar { padding: 22px 20px 26px; display: grid; gap: 6px; align-content: start; border-right: 1px solid var(--line-strong); }
.bar b { font: 800 1.5rem/1 var(--display); letter-spacing: -.03em; } .bar span { color: var(--muted); font-size: .98rem; line-height: 1.4; }
.bar--n { grid-column: 1 / 5; background: var(--surface-2); } .bar--p { grid-column: 5 / 11; } .bar--s { grid-column: 11 / 17; background: var(--surface-2); border-right: 0; }
.ruler:has(a[data-s="n"]:hover) .bar--n, .ruler:has(a[data-s="n"]:focus-visible) .bar--n, .ruler:has(a[data-s="p"]:hover) .bar--p, .ruler:has(a[data-s="p"]:focus-visible) .bar--p, .ruler:has(a[data-s="s"]:hover) .bar--s, .ruler:has(a[data-s="s"]:focus-visible) .bar--s { background: var(--yel); }
.ruler:has(a[data-s="n"]:hover) .bar--n span, .ruler:has(a[data-s="p"]:hover) .bar--p span, .ruler:has(a[data-s="s"]:hover) .bar--s span { color: var(--ink); }

/* safeguarding */
.safe { background: var(--ink); color: #fff; }
.safe .tag { color: #b9c2ff; } .safe__head { max-width: 46em; margin-bottom: clamp(32px, 5vw, 64px); } .safe h2 { margin-bottom: 24px; font-size: clamp(3rem, 8vw, 7.4rem); } .safe__head p { color: #c6cbee; font-size: 1.15rem; }
.safe__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid #fff; }
.safe__list li { padding: clamp(22px, 3vw, 40px); border-right: 2px solid #fff; display: grid; gap: 14px; align-content: start; } .safe__list li:last-child { border-right: 0; }
.safe__list .q { font: 400 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); background: var(--yel); padding: 6px 9px; justify-self: start; }
.safe__list h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); } .safe__list p { margin: 0; color: #c6cbee; }

/* parents ask: shared markup, ruled cells */
.parents__head { margin-bottom: clamp(28px, 4vw, 52px); }
.ask { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 2px solid var(--ink); }
.ask > div { padding: clamp(22px, 3vw, 40px); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); display: grid; gap: 12px; align-content: start; }
.ask > div:nth-child(2n) { border-right: 0; } .ask > div:nth-last-child(-n + 2) { border-bottom: 0; }
.ask dt { font: 400 .8rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.ask dd { margin: 0; font-size: 1.12rem; line-height: 1.5; }

/* steps */
.steps { background: var(--surface-2); border-block: 2px solid var(--ink); }
.steps h2 { margin-bottom: clamp(32px, 5vw, 64px); max-width: 11em; }
.steps__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); background: #fff; }
.steps__row li { padding: clamp(22px, 2.6vw, 34px); border-right: 2px solid var(--ink); display: grid; gap: 14px; align-content: start; transition: background .4s var(--spring), color .4s var(--spring); }
.steps__row li:last-child { border-right: 0; } .steps__row li:hover { background: var(--cob); color: #fff; }
.steps__row li:hover .lab { color: var(--yel); } .steps__row li:hover p { color: #e4e7ff; }
.lab { font: 400 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); } .steps__row h3 { font-size: 1.9rem; } .steps__row p { margin: 0; color: var(--muted); font-size: 1rem; }
.steps__note { margin: 24px 0 0; color: var(--muted); font-size: .98rem; }

/* tour band */
.tour { background: var(--cob); color: #fff; overflow: clip; }
.tour__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.tour h2 { font-size: clamp(3.4rem, 9.4vw, 9rem); } .tour__side p { font-size: 1.2rem; color: #e4e7ff; } .tour__links { display: grid; gap: 14px; justify-items: start; margin-top: 22px; }

/* footer */
.foot { background: var(--ink); color: #c6cbee; padding: clamp(48px, 7vw, 96px) 0 0; overflow: clip; }
.foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot h2 { font: 400 .76rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--yel); 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__word { font: 800 clamp(5rem, 24vw, 22rem)/.74 var(--display); letter-spacing: -.06em; color: var(--cob); margin: clamp(56px, 8vw, 96px) 0 0; max-width: none; user-select: none; white-space: nowrap; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding: 22px 0 78px; border-top: 2px solid #fff; font-size: .94rem; position: relative; background: var(--ink); }
.foot__base p { margin: 0; } .foot__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* 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; background: #1a9b52; color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .3s var(--spring), box-shadow .3s var(--spring); }
.wa:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); } .wa:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); } .wa .i { width: 26px; height: 26px; }

/* school page */
.vhead { padding-block: clamp(36px, 6vw, 80px) clamp(24px, 4vw, 48px); border-bottom: 2px solid var(--ink); background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 12) 100%; }
.vhead__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.vhead .lede { margin: 20px 0 30px; } .vhead__bell { width: min(100%, 220px); justify-self: end; } .vhead__bell svg { 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.4vw, 2.9rem); margin-bottom: 18px; letter-spacing: -.035em; }
.bsec { padding: clamp(24px, 3.4vw, 40px) 0 0; margin-top: clamp(24px, 3.4vw, 40px); border-top: 2px solid var(--ink); } .bsec:first-child { margin-top: 0; }
.rows { margin: 0; } .rows > div { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line-strong); }
.rows dt { font: 400 .86rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; } .rows dd { margin: 0; color: var(--muted); }
.note { color: var(--muted); font-size: .96rem; max-width: 62ch; } .note a { color: var(--accent); font-weight: 700; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.slots li { padding: 14px 18px; border: 2px dashed var(--line-strong); display: grid; gap: 2px; } .slots b { font-weight: 800; letter-spacing: -.02em; } .slots span { color: var(--muted); }
.vmain .ask { margin-bottom: 4px; } .vmain .ask > div { padding: 18px 20px; }
address { font-style: normal; font-weight: 700; margin-bottom: 8px; }
.map { background: var(--surface-2); border: 2px solid var(--ink); 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: 90px; border: 2px solid var(--ink); background: #fff; box-shadow: 8px 8px 0 var(--ink); }
.glance h2 { font: 400 .8rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; background: var(--cob); color: #fff; padding: 14px 20px; margin: 0; }
.glance dl { margin: 0; padding: 6px 20px 0; } .glance dl > div { padding: 14px 0; border-bottom: 1px solid var(--line-strong); }
.glance dt { font: 400 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 6px; } .glance dd { margin: 0; font-weight: 600; }
.glance .btn { margin: 20px; } .glance a:not(.btn) { color: var(--accent); font-weight: 700; }

/* 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(3.2rem, 7vw, 6.4rem); margin-bottom: 22px; }
.contact { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); } .contact li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-strong); } .contact a { font-weight: 700; color: var(--accent); } .contact .i { width: 24px; height: 24px; flex: none; }
.rsvp__card { background: #fff; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: clamp(22px, 4vw, 48px); }
.form .btn--primary { justify-self: start; }
.consent { font-size: .88rem; color: var(--muted); margin: 0; } .consent a { color: var(--accent); font-weight: 700; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form input[type="number"], .form select, .form textarea { border-width: 2px; border-color: var(--ink); }
.radio span { border-width: 2px; border-color: var(--ink); }

/* policy and 404 pages */
.legal { padding-block: clamp(40px, 6vw, 84px) clamp(72px, 10vw, 120px); }
.legal__wrap { max-width: 780px; } .legal h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin-bottom: 18px; }
.legal__meta { color: var(--muted); font: 400 .9rem var(--mono); } .legal h2 { font-size: 1.8rem; margin: 40px 0 12px; letter-spacing: -.03em; } .legal p, .legal li { color: #2a2e57; } .legal a { color: var(--accent); font-weight: 600; }

@media (max-width: 1000px) {
  .hero__grid, .week__grid, .tour__grid, .vhead__grid, .rsvp__grid, .vlayout { grid-template-columns: minmax(0, 1fr); }
  .hero__bell { order: -1; display: flex; align-items: center; gap: 16px; justify-content: flex-start; } .bellbtn { width: 104px; flex: none; }
  .vhead__bell { justify-self: start; width: 120px; }
  .glance { position: static; }
  .ruler__ages { grid-template-columns: repeat(8, minmax(0, 1fr)); } .ruler__ages li { border-bottom: 1px solid var(--line-strong); } .ruler__ages li:nth-child(n+9) { border-bottom: 0; }
  .ruler__ages li:nth-child(8) a { border-right: 0; }
  .ruler__bars { grid-template-columns: minmax(0, 1fr); } .bar--n, .bar--p, .bar--s { grid-column: 1; border-right: 0; border-bottom: 1px solid var(--line-strong); } .bar--s { border-bottom: 0; }
  .safe__list, .steps__row { grid-template-columns: minmax(0, 1fr); } .safe__list li, .steps__row li { border-right: 0; border-bottom: 2px solid #fff; } .safe__list li:last-child { border-bottom: 0; }
  .steps__row li { border-bottom-color: var(--ink); } .steps__row li:last-child { border-bottom: 0; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* menu */
  .top__in { justify-content: space-between; }
  .menu-btn { display: grid; place-items: center; width: var(--bar); border: 0; border-left: 2px solid var(--ink); background: #fff; cursor: pointer; padding: 0; }
  .burger { position: relative; width: 26px; height: 16px; } .burger i { position: absolute; left: 0; right: 0; height: 3px; background: var(--ink); transition: transform .5s var(--spring), top .5s var(--spring), opacity .3s; }
  .burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 7px; } .burger i:nth-child(3) { top: 14px; }
  .menu-btn[aria-expanded="true"] .burger i:nth-child(1) { top: 7px; transform: rotate(45deg); } .menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; } .menu-btn[aria-expanded="true"] .burger i:nth-child(3) { top: 7px; transform: rotate(-45deg); }
  .nav { position: fixed; left: 0; right: 0; top: calc(var(--bar) + 2px); bottom: 0; z-index: 29; background: var(--cob); flex-direction: column; align-items: stretch; padding: 0 0 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .35s var(--spring), transform .35s var(--spring), visibility 0s .35s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { color: #fff; font: 800 clamp(2.4rem, 11vw, 3.6rem)/1 var(--display); letter-spacing: -.04em; padding: 26px var(--gutter); border-right: 0; border-bottom: 2px solid rgba(255, 255, 255, .35); }
  .nav a small { color: var(--yel); font-size: .8rem; align-self: flex-start; margin-top: 8px; } .nav a:hover { background: var(--cob-deep); } .nav a[aria-current="page"] { background: var(--ink); }
  .nav .nav__cta { margin: 24px var(--gutter) 0; padding: 20px 24px; background: var(--yel); color: var(--ink); border: 2px solid var(--ink); font-size: 1.4rem; letter-spacing: -.02em; box-shadow: 5px 5px 0 var(--ink); }
}
@media (max-width: 640px) {
  .ruler__ages { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ruler__ages li:nth-child(n) { border-bottom: 1px solid var(--line-strong); } .ruler__ages li:nth-child(n+13) { border-bottom: 0; } .ruler__ages li:nth-child(4n) a { border-right: 0; } .ruler__ages li:nth-child(8) a { border-right: 0; }
  .ask { grid-template-columns: minmax(0, 1fr); } .ask > div, .ask > div:nth-child(2n) { border-right: 0; } .ask > div:nth-child(n) { border-bottom: 2px solid var(--ink); } .ask > div:last-child { border-bottom: 0; }
  .days { gap: 4px; } .days .slot { font-size: .72rem; padding: 6px 1px; } .days .day { font-size: .72rem; letter-spacing: 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); } .wa span { display: none; } .wa { padding: 0; width: 54px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .swing { animation: none !important; } html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }

/* phone polish: notch and home-bar safe areas, no tap flash or double-tap delay, page does not scroll behind the open menu */
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) { html.nav-open { overflow: hidden; } .nav { overscroll-behavior: contain; padding-bottom: max(40px, env(safe-area-inset-bottom)); } }
@media (hover: none) { .btn:hover, .wa:hover, .top__tour:hover { transform: none; } }
@media (max-height: 460px) and (orientation: landscape) { :root { --bar: 56px; } section { padding-block: 40px; } .hero__bell .bellbtn, .hero__art { max-height: 220px; width: auto; } }

/* 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; }
}
