/* Mawaqeet — mawaqeet.app. Shared by every version.
   Colours: branding/color/tokens.json. Interface type: the system faces (SF Pro, SF Arabic), with Inter and
   IBM Plex Sans Arabic (OFL, fonts/) only where the system has no SF. Wordmarks use OFL faces only, never SF. */

@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-arabic-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-arabic-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-arabic-medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url("../fonts/alexandria.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --night: #0B1026;
  --cream: #F3EAD3;
  --ember: #FF5A36;
  --playhead: #FF3B30;
  --tag: #2B2B2E;
  --field-night: #0B1029;
  --field-day: #F4F8FE;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-ar: -apple-system, BlinkMacSystemFont, "SF Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --m: clamp(24px, 5vw, 80px);
  --smooth: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.32, .72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--field-night); color: var(--cream);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
:lang(ar) body, body:lang(ar) { font-family: var(--font-ar); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: var(--m); top: -60px; z-index: 20; padding: 10px 16px; border-radius: 99px; background: var(--tag); color: #fff; text-decoration: none; font-size: 15px; }
.skip:focus { top: 16px; }
.wrap { padding-inline: var(--m); }
[data-tone] { opacity: var(--a, 1); }

/* ——— The sky host: a hero, or (scroll versions) a fixed layer behind the page ——— */
/* Ink follows light and dark like DayMomentView: .smooth(duration: 1.2), or .smooth(duration: 0.3) while previewing. */
[data-sky] { --ink: #0B0C10; position: relative; isolation: isolate; color: var(--ink); transition: color var(--spring-ink-ms, 1.2s) var(--spring-ink, var(--smooth));
  background: linear-gradient(#4E7BC6, #6799E8 20%, #78AAF0 40%, #9DC3F6 60%, #DCE8FC 80%, #F4F8FE); }
.js [data-sky] { background: #000; }
[data-sky].previewing { transition-duration: var(--spring-inkPreview-ms, .3s); transition-timing-function: var(--spring-inkPreview, var(--smooth)); }
[data-sky] > .sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }
[data-sky="scroll"] > .sky { position: fixed; height: 100lvh; }
.js [data-sky] > .sky { opacity: 0; transition: opacity .5s ease-out; }
.ready [data-sky] > .sky { opacity: 1; }

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto auto 1fr auto auto; padding: 0 var(--m) clamp(20px, 3.4vh, 40px); }

/* Hero copy */
.intro { padding-top: clamp(16px, 8vh, 112px); max-width: 600px; }
.hero h1 { font-size: clamp(38px, 4.4vw, 66px); font-weight: 500; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; max-width: 11em; }
:lang(ar) .hero h1 { letter-spacing: 0; line-height: 1.25; max-width: 12em; }
.lede { margin-top: 20px; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; max-width: 27em; text-wrap: pretty; }
.intro .get { margin-top: 28px; }

/* Flat fields below the sky */
[data-field="night"] { background: var(--field-night); color: var(--cream); }
[data-field="day"] { background: var(--field-day); color: var(--night); }
.foot[data-field="night"] { background: var(--field-night); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.wordmark img.icon { width: 32px; height: 32px; }
:lang(ar) .wordmark { letter-spacing: 0; font-size: 18px; }
.lang { font-size: 16px; font-weight: 500; text-decoration: none; padding: 8px 0; text-underline-offset: 4px; }
.lang:hover { text-decoration: underline; }

/* ——— Wordmarks (OFL faces only) ——— */
.wm { font-weight: 300; letter-spacing: -.045em; line-height: 1; text-decoration: none; white-space: nowrap; }
.wm .en { font-family: "Inter", sans-serif; font-feature-settings: "ss01", "cv11"; }
.wm .ar { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; }
.wm-light { font-size: 26px; }
.wm-light .ar { font-weight: 300; font-size: 1.04em; }
.wm-pair { display: inline-flex; align-items: baseline; gap: .55em; font-size: 22px; font-weight: 400; letter-spacing: -.03em; }
.wm-pair .ar { font-weight: 400; font-size: 1.12em; }
.wm-pair .sep { width: .2em; height: .2em; border-radius: 50%; background: currentColor; opacity: .5; align-self: center; }
.wm-thin .en { font-weight: 200; letter-spacing: -.055em; }
.wm-thin .ar { font-family: "Alexandria", sans-serif; font-weight: 200; }
.wm-archivo img { height: 30px; width: auto; }
/* Header brand treatments (V1 a–d): one size and one place, so they compare fairly */
.top .wm-light { font-size: 25px; display: inline-flex; align-items: center; gap: 10px; }
.wm-mark .mark { height: .96em; width: auto; flex: none; margin-top: -.22em; }
.wm-pair-light { gap: .5em; }
.wm-pair-light .sep { width: .18em; height: .18em; border-radius: 50%; background: currentColor; opacity: .5; }
.wm-glass img { width: 28px; height: 28px; flex: none; }
.wm-glass .on-dark { display: none; }
[data-scheme="dark"] .wm-glass .on-light, [data-field="night"] .wm-glass .on-light { display: none; }
[data-scheme="dark"] .wm-glass .on-dark, [data-field="night"] .wm-glass .on-dark { display: block; }
.wm-archivo .on-dark { display: none; }
[data-scheme="dark"] .wm-archivo .on-light, [data-field="night"] .wm-archivo .on-light { display: none; }
[data-scheme="dark"] .wm-archivo .on-dark, [data-field="night"] .wm-archivo .on-dark { display: block; }

/* ——— App Store badge: Apple's artwork, never altered. Black on light skies, white on dark; at least 40 px tall, clear space a quarter of its height ——— */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.badge { display: inline-block; padding: 12px; margin: -12px; border-radius: 14px; line-height: 0; }
.badge img { height: 48px; width: auto; }
.badge .on-dark { display: none; }
[data-scheme="dark"] .badge .on-light, [data-field="night"] .badge .on-light { display: none; }
[data-scheme="dark"] .badge .on-dark, [data-field="night"] .badge .on-dark { display: block; }
.soon-note { font-size: 15px; line-height: 1.4; }
.soon-note b { font-weight: 600; }

/* ——— The moment: what the countdown counts to, the countdown, and when ——— */
.moment { align-self: end; padding-top: 32px; }
.caption, .where { font-size: clamp(18px, 1.4vw, 21px); font-weight: 500; min-height: 1.4em; }
.big {
  display: flex; align-items: flex-start; margin: 2px 0 14px -.04em;
  font-size: clamp(88px, min(12.5vw, 20vh), 208px); font-weight: 300; line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
:lang(ar) .big { letter-spacing: 0; margin-inline-start: 0; }
.big { position: relative; }
.big .ch { display: inline-block; position: relative; }
.big .ch-new { display: inline-block; }
.big .ch-old { position: absolute; left: 0; top: 0; width: 100%; text-align: center; pointer-events: none; }
.big .n { direction: ltr; unicode-bidi: isolate; }
.big .u { font-size: .39em; letter-spacing: -.02em; margin: .12em .32em 0 .03em; }
.big .sec { font-size: .27em; letter-spacing: -.01em; opacity: .4; margin-top: .26em; }
:lang(ar) .big .u { margin: .2em .1em 0 .3em; }
/* A preview time (?at=) is labelled at the bottom edge, so a simulated moment is never mistaken for now. */
.preview-note { position: fixed; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 40; margin: 0; padding: 7px 14px; border-radius: 99px;
  background: var(--tag); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.preview-note a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* The city in the place line is a quiet button; its list opens above it. */
.where #where.sw { display: inline-block; }
.where #where.sw > .sw-now { display: inline-block; white-space: nowrap; }
.where #where.sw > .sw-old { white-space: nowrap; }
.city-wrap { position: relative; display: inline-block; margin-inline-start: .3em; }
.city { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; opacity: max(var(--a, .55), var(--a-min, .55)); transition: opacity .2s; }
.city svg { width: 10px; height: 6px; opacity: .8; }
.city:hover { opacity: 1; }
.city-list { position: absolute; bottom: calc(100% + 10px); inset-inline-start: -12px; z-index: 30; width: 340px; max-height: none; overflow: visible;
  padding: 6px; border-radius: 22px; color: var(--night); background: rgb(246, 246, 248);
  box-shadow: inset 0 1px .5px rgba(255, 255, 255, .7), 0 12px 40px rgba(0, 0, 0, .18); transform-origin: 20% 100%; font-size: 16px; font-weight: 400; }
[data-scheme="dark"] .city-list { color: var(--cream); background: rgb(24, 27, 46); box-shadow: inset 0 1px .5px rgba(255, 255, 255, .18), 0 12px 40px rgba(0, 0, 0, .35); }
.city-list { padding: 8px; }
.city-search { width: 100%; height: 38px; margin-bottom: 6px; padding: 0 14px; border: 0; border-radius: 12px; font: inherit; font-size: 16px; color: inherit;
  background: color-mix(in srgb, currentColor 8%, transparent); outline: none; }
.city-search:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, currentColor 35%, transparent); }
.city-search::placeholder { color: inherit; opacity: .5; }
.city-opts { max-height: min(48vh, 340px); overflow-y: auto; overscroll-behavior: contain; }
.city-list .none { margin: 10px 12px; font-size: 15px; opacity: .6; }
.city-list .back .nm { font-weight: 500; }
.where .wx-temp { margin-inline-start: .3em; }
.foot .fine a { text-underline-offset: 2px; }
.city-list .opt { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.city-list .opt:hover, .city-list .opt:focus-visible { background: color-mix(in srgb, currentColor 9%, transparent); outline: none; }
.city-list .opt[aria-selected="true"] .nm { font-weight: 600; }
.city-list .sub { font-size: 13.5px; opacity: .6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.city-list .here { grid-template-columns: 16px 1fr; margin-bottom: 4px; }
.city-list .here svg { width: 13px; height: 13px; grid-row: span 2; color: var(--noon, #4F86D9); }
[data-scheme="dark"] .city-list .here svg { color: #8FB1E8; }
.city-list .here .sub { grid-column: 2; font-size: 13px; white-space: normal; }
.app-top .glyph { position: relative; display: inline-block; width: 18px; height: 18px; flex: none; }
.app-top .glyph > span { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity var(--spring-glyph-ms, .45s) var(--spring-glyph, ease); }
.app-top .glyph svg { width: 14px; height: 14px; }
.app-top .glyph .g-sun, .app-top .glyph.sun .g-moon { opacity: 0; }
.app-top .glyph.sun .g-sun { opacity: 1; }
.inline-moment { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; min-height: 1.5em; }

/* ——— The day dial (the app's DayDial) ——— */
.dial { position: relative; margin-top: clamp(16px, 3vh, 32px); width: min(100%, 680px); height: 94px; padding-top: 30px;
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; border-radius: 8px; }
.dial.dragging { cursor: grabbing; }
.dial canvas { display: block; width: 100%; height: 64px; }
.tag, .skytag { height: 28px; padding: 0 14px; border-radius: 99px; display: inline-flex; align-items: center; gap: 5px;
  background: var(--tag); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tag { position: absolute; top: 0; left: 0; pointer-events: none; }
.tag.glide { transition: transform var(--spring-snappy-ms, .45s) var(--spring-snappy, var(--spring)); }
.tag i { font-style: normal; opacity: .6; font-size: 12px; }
.hint { margin-top: 6px; font-size: 14px; }
.no-js-hide { display: none; }
.js .no-js-hide { display: block; }

/* ——— Phone with a screenshot (placeholder until the real one is dropped into screens/) ——— */
.phone { position: relative; width: var(--w, 300px); aspect-ratio: 1179 / 2556; border-radius: calc(var(--w, 300px) * .155); padding: calc(var(--w, 300px) * .028);
  background: #0c0c0e; flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w, 300px) * .13); }
.phone::after { content: ""; position: absolute; top: calc(var(--w, 300px) * .055); left: 50%; width: 31%; height: calc(var(--w, 300px) * .088);
  margin-left: -15.5%; border-radius: 99px; background: #000; }
.phone.land { width: auto; height: var(--w, 300px); aspect-ratio: 2556 / 1179; border-radius: calc(var(--w, 300px) * .155); padding: calc(var(--w, 300px) * .028); }
.phone.land img { border-radius: calc(var(--w, 300px) * .13); }
.phone.land::after { display: none; }
figure.shot figcaption { margin-top: 14px; font-size: 15px; opacity: .72; }

/* ——— Interface fragments built in HTML (the app's own controls) ——— */
[data-ui] { font-family: var(--font); }
:lang(ar) [data-ui] { font-family: var(--font-ar); }
.qibla-pill { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: 99px; font-size: 19px; font-weight: 500;
  color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); transition: box-shadow .4s var(--smooth), border-color .4s; }
.qibla-pill .arrow { width: 20px; height: 20px; transition: transform .2s linear; }
.qibla-pill.locked { border-color: var(--playhead); box-shadow: 0 0 0 1px var(--playhead); }
.qibla-pill .label { min-width: 7.5em; }
.note-banner { width: min(100%, 380px); padding: 14px 16px; border-radius: 22px; background: rgba(245, 245, 247, .94); color: #111; display: grid; grid-template-columns: 38px 1fr auto; gap: 2px 12px; align-items: center; }
.note-banner img { grid-row: span 2; width: 38px; height: 38px; }
.note-banner b { font-size: 15px; font-weight: 600; }
.note-banner .t { font-size: 13px; opacity: .5; }
.note-banner span:last-child { grid-column: 2 / 4; font-size: 15px; }
.play { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 14px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--cream); color: var(--night); font-size: 16px; font-weight: 600; }
.play svg { width: 18px; height: 18px; }
.play.playing svg { animation: pulse 1.6s var(--smooth) infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ——— Liquid Glass, as near as a browser gets: a clear tint, backdrop blur and saturation, and a soft specular edge.
   Browsers can't refract what's behind (the lensing at the edges), so the edge light is drawn instead. ——— */
.glass { position: relative; background: rgba(255, 255, 255, .1); color: inherit; border: 0; border-radius: 999px;
  -webkit-backdrop-filter: blur(10px) saturate(1.8) brightness(1.06); backdrop-filter: blur(10px) saturate(1.8) brightness(1.06);
  box-shadow: inset 0 1px .5px rgba(255, 255, 255, .45), inset 0 -.5px 1px rgba(255, 255, 255, .14), 0 4px 16px rgba(0, 0, 0, .06); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, .02) 62%, rgba(255, 255, 255, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* TopBar: 38 pt controls, 8 pt apart. HijriDatePill: 14 medium, 14 pt sides, 8 pt gap. QiblaPill: 11 / 14 pt, 7 pt gap. */
.topbar { display: flex; align-items: center; gap: 8px; }
.topbar .spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; height: 38px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.pill.date { gap: 8px; padding: 0 14px; }
.pill.date > svg { width: 14px; height: 14px; }
.pill.qibla { gap: 7px; padding: 0 14px 0 11px; }
.pill.qibla .arrow { width: 15px; height: 15px; transition: transform var(--spring-needle-ms, .45s) var(--spring-needle, var(--spring)), color var(--spring-lock-ms, .28s) var(--spring-lock, ease); }
.pill.qibla .ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--playhead), 0 0 9px rgba(255, 59, 48, .35); opacity: 0; pointer-events: none;
  transition: opacity var(--spring-lock-ms, .28s) var(--spring-lock, ease); }
.pill.qibla.locked .ring { opacity: 1; }
.pill.qibla.locked .arrow { color: var(--playhead); }
.pill.qibla .label { display: inline-block; }
.round { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; }
.round svg { width: 16px; height: 16px; }
.glass-press:active { transform: scale(1.06); }
.app-top { width: min(100%, 393px); padding: 18px 22px 30px; border-radius: 30px; color: #FFF4EE;
  background: linear-gradient(#141B4A, #273070 34%, #3F3F82 68%, #5E4E8A); }
.app-top .line { margin: 18px 2px 0; font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -.4px; }
:lang(ar) .app-top .line { letter-spacing: 0; line-height: 1.4; }

/* ——— Section type ——— */
.h2 { font-size: clamp(30px, 3.2vw, 48px); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
:lang(ar) .h2 { letter-spacing: 0; line-height: 1.3; }
.body { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; max-width: 34em; text-wrap: pretty; }
.h2 + .body { margin-top: 16px; }
.h3 { font-size: clamp(21px, 1.7vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
:lang(ar) .h3 { letter-spacing: 0; line-height: 1.4; }
.body + .h2, .body + .h3 { margin-top: 48px; }
.h3 + .body { margin-top: 10px; }
.fine { font-size: 14px; line-height: 1.5; opacity: .72; }

/* Footer */
.foot { padding: clamp(64px, 10vw, 140px) var(--m) 40px; display: grid; gap: 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.foot nav a { text-decoration: none; opacity: .85; }
.foot nav a:hover { text-decoration: underline; opacity: 1; }

/* ——— Motion ———
   blurReplace (motion.js): the old content sits over the new one while both transition. */
.sw { position: relative; }
.tag.sw { position: absolute; }
.sw > .sw-now { display: block; transform-origin: 0 50%; }
.sw > .sw-old { position: absolute; top: 0; inset-inline: 0; display: block; pointer-events: none; transform-origin: 0 50%; }
[dir="rtl"] .sw > .sw-now, [dir="rtl"] .sw > .sw-old { transform-origin: 100% 50%; }
.tag.sw > .sw-now { display: inline-flex; align-items: center; gap: 5px; transform-origin: 50% 50%; }
.tag.sw > .sw-old { inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; transform-origin: 50% 50%; }
.sw-fade > .sw-old, .sw-fade > .sw-now { transform-origin: 50% 50%; }

/* LaunchReveal: opacity, a 10 px blur and 14 px of rise, .smooth(duration: 0.55), 0.1 s + 60 ms × order, bottom to top.
   Scroll reveals use the same spring, 70 ms apart. */
.js .reveal, .js .rise { opacity: 0; transform: translateY(14px); filter: blur(10px); }
.js .rise { transform: translateY(24px); filter: blur(8px); }
.ready .reveal, .rise.in {
  opacity: 1; transform: none; filter: none;
  transition: opacity var(--spring-launch-ms, .55s) var(--spring-launch, var(--smooth)), transform var(--spring-launch-ms, .55s) var(--spring-launch, var(--smooth)), filter var(--spring-launch-ms, .55s) var(--spring-launch, var(--smooth));
  transition-delay: calc(100ms + var(--i, 0) * 60ms);
}
.rise.in { transition-delay: calc(var(--d, 0) * 70ms); }

/* Press and release on controls (motion.json): 0.97 on spring(0.16), back on spring(0.3, bounce 0.22). */
.badge, .play, .glass-press { transition: transform var(--spring-release-ms, .3s) var(--spring-release, var(--spring)); }
.badge:active, .play:active, .glass-press:active { transform: scale(.97); transition: transform var(--spring-press-ms, .16s) var(--spring-press, ease-out); }
.ready .reveal[data-tone], .rise.in[data-tone] { opacity: var(--a, 1); }

@media (max-width: 720px) {
  .top { height: 64px; }
  .intro { padding-top: 12px; }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .lede { margin-top: 14px; font-size: 18px; }
  .intro .get { margin-top: 22px; }
  .big { font-size: clamp(76px, 25vw, 112px); margin-bottom: 10px; }
  .dial { width: 100%; }
  .badge img { height: 44px; }
}
@media (max-height: 760px) and (min-width: 721px) {
  .intro { padding-top: 8px; }
  .moment { padding-top: 24px; }
  .big { font-size: clamp(80px, 18vh, 160px); margin-bottom: 8px; }
  .dial { margin-top: 12px; }
  .hero .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .rise { transform: none; filter: none; }
  .ready .reveal, .rise.in { transition: opacity .3s ease-out; transition-delay: 0s; }
  .tag.glide { transition: none; }
  .play.playing svg { animation: none; }
}

/* The footer's X link: the logo mark at the footer text's size, in its ink. */
.foot nav .x-link { display: inline-flex; align-items: center; padding: 2px 0; }
.foot nav .x-link svg { width: 14px; height: 14px; display: block; }

/* Footer notes keep a readable measure. */
.foot .fine { max-width: 72ch; }

/* The small footer (main page corner, legal pages): three tidy rows, a clear step down in size and ink. */
.corner { justify-self: end; text-align: end; display: grid; justify-items: end; gap: 3px; line-height: 1.45; }
.corner p { margin: 0; }
.corner .r1 { font-size: 12.5px; }
.corner .r1 nav { display: inline; }
.corner .r2 { font-size: 12px; }
.corner .r3 { font-size: 10.5px; line-height: 1.5; max-width: 96ch; text-wrap: balance; margin-top: 3px; }
/* Links: a hairline underline at low opacity, full on hover and focus; Latin names never break inside. */
.corner a { white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); transition: text-decoration-color .2s ease-out; }
.corner a:hover, .corner a:focus-visible { text-decoration-color: currentColor; }
.corner a:focus-visible { outline-offset: 2px; border-radius: 3px; }
.corner a.x { display: inline-flex; align-items: center; gap: .3em; }
.corner a.x svg { width: .85em; height: .85em; flex: none; }
.corner .cp { white-space: nowrap; }
/* Phones: the © line drops below the links instead of breaking mid-name. */
@media (max-width: 600px) { .corner .cp { display: block; } .corner .cp > [aria-hidden] { display: none; } }
@media (max-width: 860px) { .corner .r1 { font-size: 12px; } .corner .r2 { font-size: 11.5px; } .corner .r3 { font-size: 10px; } }
