/* Self-hosted fonts (SIL Open Font License; see /assets/fonts/OFL.txt). No third-party requests. */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-standard-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-standard-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/dm-mono-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/jost-latin-wght-normal.woff2") format("woff2"); }

/* After Hours — engraved edition. One visual world: a share certificate. Paper, navy ink, gold leaf.
   Colours are sampled from the supplied artwork; every colour is painted explicitly (single theme on purpose). */
:root {
  --paper: #f7f1e1;
  --paper-2: #f1e9d2;
  --card: #fbf8ee;
  --rule: #d8cdb0;
  --rule-2: #b7aa86;

  --ink: #041b34;
  --ink-2: #33465f;
  --ink-3: #5c6a80;
  --navy-2: #0c2a4c;
  --on-navy: #f7f1e1;
  --on-navy-2: #b9c4d6;

  --gold: #c79a3a;
  --gold-hi: #e8c87a;
  --gold-ink: #7f6328;
  --gold-soft: #f3e7c6;

  --open: #1d6b45;
  --open-soft: #dcecdb;
  --shut: #9a2f2a;
  --shut-soft: #f4ddd5;

  /* chart fills, validated against the card surface (lightness band, CVD, contrast) */
  --viz-session: #a97f2a;
  --viz-after: #35528f;
  --viz-off: #e9e1ca;

  --img-bell: url("/assets/img/bell.webp?v=f30e2876");
  --img-hero: url("/assets/img/hero-art.webp?v=740c62ff");
  --img-strip: url("/assets/img/hero-strip.webp?v=45ac76d6");

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 3px;
  --shadow: 0 1px 0 rgba(4, 27, 52, .04), 0 18px 40px -26px rgba(4, 27, 52, .35);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--viz-after); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-hi); color: var(--ink); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -.01em; color: var(--ink); }
h1, h2 { font-optical-sizing: none; font-variation-settings: "opsz" 30; }
h1 { font-size: clamp(2.2rem, 3.5vw, 3.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.95rem, 3.4vw, 2.9rem); line-height: 1.08; }
h3 { font-size: 1.32rem; line-height: 1.2; letter-spacing: 0; font-weight: 700; }
.kw { letter-spacing: -.07em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--gold-ink); }
p { margin: 0; }
.lede { font-size: 1.14rem; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.eyebrow, .tagline {
  font: 500 .78rem/1.2 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink);
  display: flex; align-items: center; gap: .8em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* the bell, used in three places from one image */
.bell-img { display: inline-block; width: 34px; aspect-ratio: 420 / 431; background: var(--img-bell) center / contain no-repeat; flex: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(247, 241, 225, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 4px double var(--ink);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 1.22rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pills { display: flex; gap: 4px; }
.pills a { text-decoration: none; font: 500 .78rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding: 9px 12px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.pills a:hover { color: var(--ink); }
.pills a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; text-decoration: none; cursor: pointer;
  border-radius: var(--radius); padding: 14px 24px; font: 600 .82rem/1.1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--ink); transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-brass { background: var(--ink); color: var(--on-navy); outline: 1px solid rgba(232, 200, 122, .7); outline-offset: -5px; box-shadow: 0 12px 24px -16px rgba(4, 27, 52, .7); }
.btn-brass:hover { transform: translateY(-1px); background: var(--navy-2); }
.btn-brass:focus-visible { outline: 2px solid var(--viz-after); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--card); }
.btn-count { padding: 10px 16px; gap: .8em; }
.btn-count .mono { font-weight: 500; letter-spacing: .04em; font-size: .86rem; }

/* ---------- hero: the supplied frame, copy in its clear centre ---------- */
.hero {
  position: relative; width: min(100%, 1672px); margin-inline: auto; aspect-ratio: 1672 / 941;
  background: var(--img-hero) center / 100% 100% no-repeat;
  display: grid; justify-items: center; align-items: start;
}
.hero-inner { width: min(50%, 760px); margin-top: 6.2%; display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 1.5vw, 22px); text-align: center; }
.hero-bell { width: clamp(64px, 6.6vw, 104px); filter: drop-shadow(0 10px 14px rgba(4, 27, 52, .18)); }
.hero .tagline { justify-content: center; }
.hero .lede { font-size: clamp(.98rem, 1.18vw, 1.12rem); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-strip { display: none; }
.hero-live { display: none; align-items: center; gap: 14px; margin-top: 4px; font: 500 .74rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.hero-live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero-live b { font-weight: 700; }
.hero-live > span { padding-left: 14px; border-left: 1px solid var(--rule-2); }
.hero-live .mono { letter-spacing: .04em; color: var(--ink); font-size: .8rem; }
.hero-live[data-s="closed"] i, .hero-live[data-s="closed"] b { color: var(--shut); }
.hero-live[data-s="open"] i, .hero-live[data-s="open"] b { color: var(--open); }
.hero-live[data-s="ringing"] i, .hero-live[data-s="ringing"] b { color: var(--gold-ink); }
@media (min-width: 1300px) { .hero-live { display: inline-flex; } }
@media (min-width: 1700px) { .hero { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); } }

/* ---------- ornaments and certificate cards ---------- */
.orn { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); color: var(--gold); background: var(--card); padding: 0 10px; line-height: 0; }
.cert {
  position: relative; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--ink), var(--shadow);
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-clock { padding-top: clamp(28px, 4vw, 56px); }
.band { background: var(--paper-2); border-block: 1px solid var(--rule-2); }
.head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- the clock card ---------- */
.clockcard { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding: clamp(26px, 3.4vw, 44px); }
.clock-dial { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.clock-dial > svg { width: min(100%, 220px); height: auto; }
.dial-cap { display: inline-flex; align-items: center; gap: 10px; font: 500 .68rem/1.45 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); text-align: left; }
.dial-cap svg { flex: none; width: 22px; height: 22px; }
.dial-cap span { white-space: pre-line; }
.clock { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.clock-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: .6em; font: 600 .72rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; padding: 8px 12px; border-radius: 2px; border: 1px solid currentColor; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status[data-s="closed"] { color: var(--shut); background: var(--shut-soft); }
.status[data-s="open"] { color: var(--open); background: var(--open-soft); }
.status[data-s="open"] i { animation: ping 2s ease-out infinite; }
.status[data-s="ringing"] { color: var(--gold-ink); background: var(--gold-soft); }
.status[data-s="ringing"] i { animation: ping .9s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.clock-where { font: 500 .72rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.time { display: flex; align-items: baseline; gap: .35em; flex-wrap: wrap; font-family: var(--font-mono); font-variant-numeric: tabular-nums; line-height: 1; }
.time b { font-weight: 400; font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -.05em; color: var(--ink); }
.time span { font: 500 .86rem/1 var(--font-body); color: var(--ink-3); letter-spacing: .16em; }
.verdict { font: italic 500 clamp(1.25rem, 2vw, 1.6rem)/1.25 var(--font-display); color: var(--ink); }
.sim { align-self: flex-start; font: 600 .68rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--gold-hi); border-radius: 2px; padding: 7px 9px; border: 1px solid var(--ink); cursor: pointer; }
.clock-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.clock-side .pair { grid-template-columns: minmax(0, 1fr); }
.clock-side .pair > div + div { border-left: 0; border-top: 1px solid var(--rule-2); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--paper); }
.pair > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pair > div + div { border-left: 1px solid var(--rule-2); }
.k { font: 500 .66rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.v { font: 500 1.02rem/1.25 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.s { font-size: .86rem; line-height: 1.4; color: var(--ink-2); }
.track { display: flex; flex-direction: column; gap: 8px; }
.track-bar { height: 6px; border-radius: 0; background: var(--viz-off); overflow: hidden; border: 1px solid var(--rule-2); }
.track-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-ink), var(--gold)); }
.track-ends { display: flex; justify-content: space-between; gap: 12px; font: 400 .7rem/1.2 var(--font-mono); color: var(--ink-3); }
.clock-foot { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .9rem; color: var(--ink-2); }
.clock-foot b { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; margin: clamp(30px, 4vw, 48px) 0 0; }
.facts div { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 2px solid var(--gold); }
.facts dt { font: 700 1.08rem/1.2 var(--font-display); color: var(--ink); }
.facts dd { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }

/* ---------- the week ---------- */
.wk { position: relative; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--ink), var(--shadow); padding: clamp(16px, 2.6vw, 32px); }
.wk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 1px; flex: none; }
.sw-session { background: var(--viz-session); }
.sw-after { background: var(--viz-after); }
.sw-off { background: var(--viz-off); box-shadow: inset 0 0 0 1px var(--rule-2); }
.sw-now { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.wk-cols { display: grid; grid-template-columns: var(--wk-label, 3.6rem) repeat(48, minmax(0, 1fr)); column-gap: var(--wk-gap, 2px); }
.wk-axis { margin-bottom: 6px; font: 400 .66rem/1 var(--font-mono); letter-spacing: .08em; color: var(--ink-3); }
.wk-axis span { grid-row: 1; white-space: nowrap; }
.wk-grid { display: flex; flex-direction: column; gap: var(--wk-gap, 2px); outline: none; }
.wk-row { align-items: center; }
.wk-day { font: 500 .7rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.wk-row.is-today .wk-day { color: var(--ink); font-weight: 700; }
.cell { aspect-ratio: 1 / 1.12; border-radius: 1px; background: var(--viz-off); }
.cell.on { background: var(--viz-session); }
.cell.after { background: var(--viz-after); }
.cell.is-now { box-shadow: 0 0 0 2px var(--ink); position: relative; z-index: 1; animation: nowpulse 2.4s ease-in-out infinite; }
.cell.is-cursor { box-shadow: 0 0 0 2px var(--viz-after); position: relative; z-index: 2; }
@keyframes nowpulse { 0%, 100% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 0 rgba(4, 27, 52, .35); } 50% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 7px rgba(4, 27, 52, 0); } }
.wk-note { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; pointer-events: none; background: var(--card); padding: 3px 8px; border-radius: 2px; white-space: nowrap; font: 500 .68rem/1 var(--font-body); color: var(--ink-2); letter-spacing: .1em; text-transform: uppercase; }
.wk-bells { margin-top: 8px; font: 400 .66rem/1.2 var(--font-mono); letter-spacing: .06em; color: var(--ink-2); }
.wk-bells > span { grid-row: 1; white-space: nowrap; border-left: 1px solid var(--gold-ink); padding: 3px 0 0 6px; }
.wk-after { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); }
.wk-tip {
  position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); min-width: 150px;
  background: var(--ink); border-radius: 2px; padding: 9px 12px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 3px; white-space: nowrap;
}
.wk-tip b { font: 500 .86rem/1.2 var(--font-mono); color: var(--on-navy); }
.wk-tip span { font-size: .8rem; color: var(--on-navy-2); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.tile { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile + .tile { border-left: 1px solid var(--rule-2); }
.tile .n { font: 600 clamp(1.5rem, 3vw, 2.1rem)/1.05 var(--font-body); letter-spacing: -.01em; color: var(--ink); }
.tile .n small { font-size: .55em; font-weight: 500; color: var(--ink-3); margin-left: .15em; }
.tile .l { font-size: .9rem; line-height: 1.35; color: var(--ink-2); }
details.astable { margin-top: 18px; }
details.astable summary, .faq summary { cursor: pointer; }
details.astable summary { font-size: .9rem; color: var(--ink-2); width: fit-content; }
.tbl-scroll { overflow-x: auto; margin-top: 12px; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
th { font: 500 .66rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
td .mono { color: var(--ink); }

/* ---------- the bell ---------- */
.bell-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 18px; padding: 24px 0; border-top: 1px solid var(--rule-2); }
.steps li:last-child { border-bottom: 1px solid var(--rule-2); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 1.25rem/1 var(--font-display); color: var(--ink); border: 1px solid var(--ink); background: var(--card); box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 4px var(--gold); }
.steps h3 { align-self: center; }
.steps p { grid-column: 2; color: var(--ink-2); max-width: 56ch; }
.streak { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule-2); border-left: 3px solid var(--gold); color: var(--ink-2); }
.streak b { color: var(--ink); }
.console { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--ink), var(--shadow); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.console-bell { position: relative; width: 168px; display: grid; place-items: center; padding-top: 6px; }
.console-bell::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 200, 122, .55), rgba(232, 200, 122, 0)); opacity: 0; transition: opacity .4s ease; }
.console-bell .bell-img { position: relative; width: 150px; transform-origin: 50% 4%; filter: drop-shadow(0 12px 14px rgba(4, 27, 52, .22)); }
.is-ringing .console-bell::before { opacity: 1; }
.is-ringing .bell-swing { animation: swing .42s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-13deg); } to { transform: rotate(13deg); } }
.console-count { font: 400 clamp(2rem, 4.4vw, 2.8rem)/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.console-next { font-size: .96rem; color: var(--ink-2); }
.btn-ring { width: 100%; padding-block: 16px; }
.btn-ring[aria-disabled="true"] { background: var(--paper-2); color: var(--ink-2); box-shadow: none; outline-color: var(--rule-2); border-color: var(--rule-2); cursor: help; }
.btn-ring[aria-disabled="true"]:hover { transform: none; background: var(--paper-2); }
.chip { display: inline-flex; align-items: center; gap: .5em; font: 600 .64rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); border: 1px solid var(--gold); background: var(--gold-soft); border-radius: 2px; padding: 6px 9px; }
.console-note { font-size: .92rem; line-height: 1.5; color: var(--ink-2); text-align: left; border-top: 1px solid var(--rule); padding-top: 16px; width: 100%; }

/* ---------- schedule ---------- */
.sched { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.bellcards { display: flex; flex-direction: column; gap: 14px; }
.bellcard { border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--card); padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; }
.bellcard h3 { font-size: 1.26rem; }
.bellcard .when { grid-column: 1; font-size: .98rem; color: var(--ink-2); }
.bellcard .local { grid-column: 1; font: 400 .76rem/1.4 var(--font-mono); color: var(--ink-3); }
.bellcard .cd { grid-column: 2; grid-row: 1 / span 3; text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.bellcard .cd b { font: 500 1.1rem/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.bellcard.is-next { border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4px var(--gold); }
.daysoff { border: 1px solid var(--rule-2); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.daysoff h3 { padding: 18px 22px; border-bottom: 1px solid var(--rule-2); font-size: 1.16rem; background: var(--paper-2); }
.daysoff ol { list-style: none; margin: 0; padding: 0; }
.daysoff li { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 13px 22px; border-bottom: 1px solid var(--rule); font-size: .98rem; }
.daysoff li:last-child { border-bottom: 0; }
.daysoff .d { font: 400 .8rem/1.3 var(--font-mono); color: var(--ink-2); }
.daysoff .nm { color: var(--ink); }
.daysoff .nm small { display: block; font-size: .84rem; color: var(--ink-3); }
.daysoff .aw { font: 400 .78rem/1.3 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.cap { margin-top: 14px; font-size: .9rem; color: var(--ink-3); max-width: 60ch; }

/* ---------- board ---------- */
.board-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.empty { margin-top: 18px; border: 1px dashed var(--rule-2); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--card); }
.empty h3 { font-size: 1.4rem; }
.empty p { color: var(--ink-2); max-width: 62ch; }
.switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; cursor: pointer; font-size: .98rem; color: var(--ink); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { width: 40px; height: 24px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--ink-3); position: relative; transition: background .15s, border-color .15s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-3); transition: transform .15s, background .15s; }
.switch input:checked + .knob { background: var(--gold-soft); border-color: var(--gold-ink); }
.switch input:checked + .knob::after { transform: translateX(16px); background: var(--gold-ink); }
.switch input:focus-visible + .knob { outline: 2px solid var(--viz-after); outline-offset: 3px; }
.sample { margin-top: 18px; }
.sample-flag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 16px; border-radius: var(--radius) var(--radius) 0 0; background: var(--ink); color: var(--gold-hi); font: 600 .7rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.sample-flag + .tiles { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
.sample .tbl-scroll { margin-top: 0; border-radius: 0 0 var(--radius) var(--radius); border-top: 0; }
.spec { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.spec-copy { display: flex; flex-direction: column; gap: 14px; }
.spec-copy p { color: var(--ink-2); }
.spec-card { background: var(--ink); border-radius: var(--radius); overflow-x: auto; outline: 1px solid rgba(232, 200, 122, .6); outline-offset: -6px; }
.spec-card dl { margin: 0; padding: 14px 6px; min-width: 460px; }
.spec-card div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 14px; padding: 10px 20px; font: 400 .8rem/1.55 var(--font-mono); }
.spec-card dt { color: var(--gold-hi); }
.spec-card dd { margin: 0; color: var(--on-navy-2); }
.spec-card dd b { color: var(--on-navy); font-weight: 500; }

/* ---------- fine print & questions ---------- */
.fine { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.fine .head { position: sticky; top: 96px; margin: 0; }
.fine-body { display: flex; flex-direction: column; gap: 22px; max-width: 66ch; }
.fine-body p { color: var(--ink-2); }
.fine-body b { color: var(--ink); font-weight: 600; }
.fine-body .today { border: 1px solid var(--gold); background: var(--gold-soft); border-radius: var(--radius); padding: 18px 20px; color: var(--ink); box-shadow: inset 0 0 0 3px var(--gold-soft), inset 0 0 0 4px rgba(127, 99, 40, .35); }
.faq { display: flex; flex-direction: column; max-width: 860px; }
.faq details { border-top: 1px solid var(--rule-2); }
.faq details:last-child { border-bottom: 1px solid var(--rule-2); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 2px; font: 700 1.24rem/1.3 var(--font-display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.5rem/1 var(--font-mono); color: var(--gold-ink); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 22px; color: var(--ink-2); max-width: 68ch; }

/* ---------- footer ---------- */
.foot { padding-top: clamp(40px, 6vw, 72px); }
.foot-banner { display: block; width: 100%; height: auto; border: 1px solid var(--ink); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--ink), var(--shadow); }
.foot-band { margin-top: clamp(40px, 6vw, 72px); background: var(--ink); color: var(--on-navy-2); font-size: .92rem; padding-block: 40px 56px; border-top: 3px solid var(--gold); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.foot-mark { font: 700 1.2rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy); margin-bottom: 12px; }
.foot p { max-width: 44ch; }
.foot .k { margin-bottom: 8px; color: var(--gold-hi); }
.foot .mono { color: var(--on-navy); font-size: .8rem; }

/* ---------- prototype controls ---------- */
.proto { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 60; font: 500 .72rem/1.2 var(--font-body); }
.proto summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 2px; background: var(--ink); color: var(--on-navy); border: 1px solid var(--ink); box-shadow: var(--shadow); letter-spacing: .16em; text-transform: uppercase; }
.proto summary::-webkit-details-marker { display: none; }
.proto summary i { width: 7px; height: 7px; border-radius: 50%; background: #63d29b; }
.proto.is-sim summary i { background: var(--gold-hi); }
.proto-menu { position: absolute; right: 0; bottom: calc(100% + 8px); width: 250px; background: var(--ink); border-radius: 3px; box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.proto-menu p { padding: 8px 10px 6px; color: var(--on-navy-2); letter-spacing: .04em; line-height: 1.45; text-transform: none; font-size: .8rem; }
.proto-menu button { text-align: left; background: transparent; border: 0; border-radius: 2px; padding: 9px 10px; color: var(--on-navy-2); cursor: pointer; font: inherit; letter-spacing: .08em; }
.proto-menu button:hover { background: var(--navy-2); color: var(--on-navy); }
.proto-menu button[aria-pressed="true"] { background: var(--navy-2); color: var(--gold-hi); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pills { display: none; }
  .clockcard { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
  .clock-side { grid-column: 1 / -1; }
  .clock-side .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clock-side .pair > div + div { border-top: 0; border-left: 1px solid var(--rule-2); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .bell-grid, .sched, .spec, .fine { grid-template-columns: minmax(0, 1fr); }
  .console, .fine .head { position: static; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  /* phone and small tablet: the frame no longer fits around the copy, so the skyline sits under it instead */
  .hero { aspect-ratio: auto; background: none; display: block; justify-items: stretch; padding-top: 34px; overflow: hidden; }
  .hero-inner { width: auto; margin: 0; padding-inline: var(--gutter); gap: 18px; }
  .hero-bell { width: 84px; }
  .hero .lede { font-size: 1.06rem; }
  .hero-strip { display: block; width: 100%; justify-self: stretch; height: clamp(190px, 52vw, 300px); margin-top: 10px; background: var(--img-strip) center bottom / auto 100% no-repeat; }
}
@media (max-width: 640px) {
  .clockcard { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .clock-dial > svg { width: 180px; }
  .wk { --wk-label: 2.8rem; --wk-gap: 1px; padding-inline: 12px; }
  .cell { aspect-ratio: 1 / 2.6; }
  .cell.is-now, .cell.is-cursor { box-shadow: 0 0 0 1.5px var(--ink); }
  .wk-day { font-size: .58rem; letter-spacing: .04em; }
  .wk-note { font-size: .56rem; padding: 2px 5px; letter-spacing: .04em; }
  .wk-axis .opt, .wk-bells .opt { display: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile + .tile { border-left: 0; border-top: 1px solid var(--rule-2); }
  .board-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-tiles .tile + .tile { border-top: 0; }
  .board-tiles .tile:nth-child(even) { border-left: 1px solid var(--rule-2); }
  .board-tiles .tile:nth-child(n + 3) { border-top: 1px solid var(--rule-2); }
  .pair, .clock-side .pair { grid-template-columns: minmax(0, 1fr); }
  .pair > div + div, .clock-side .pair > div + div { border-left: 0; border-top: 1px solid var(--rule-2); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .bellcard { grid-template-columns: minmax(0, 1fr); }
  .bellcard .cd { grid-column: 1; grid-row: auto; text-align: left; flex-direction: row; align-items: center; gap: 12px; margin-top: 6px; }
  .daysoff li { grid-template-columns: minmax(0, 1fr) auto; }
  .daysoff .d { grid-column: 1 / -1; }
  .btn-count .lbl { display: none; }
  .brand { font-size: 1.05rem; }
  .steps li { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; }
  .steps li::before { width: 36px; height: 36px; font-size: 1.05rem; }
  .spec-card dl { min-width: 0; }
  .spec-card div { grid-template-columns: 4.9rem minmax(0, 1fr); gap: 10px; padding-inline: 14px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
