/* Australia42 — From Orbit */

:root {
  --night: #04070d;
  --deep: #071224;
  --star: #eef2f9;
  --muted: #93a1b8;
  --dim: #64738c;
  --aurora: #7fd4c9;
  --gold: #e3c988;
  --green: #79e0a8;
  --amber: #e8c47a;
  --red: #e88a7a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(180deg, #020408 0%, #04070d 40%, #071224 100%);
  color: var(--star);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* bold in the book font uses the real loaded weight, never a smeared fake */
strong, b { font-weight: 500; font-synthesis: none; }
strong em, em strong { font-synthesis: none; }

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* earth limb */
.limb {
  position: fixed;
  left: 50%;
  bottom: -82vw;
  width: 120vw;
  height: 120vw;
  margin-left: -60vw;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(3, 5, 9, 0) 61%,
    rgba(64, 140, 190, 0.25) 68.2%,
    rgba(127, 212, 201, 0.38) 69.4%,
    rgba(30, 80, 140, 0.1) 72%,
    rgba(3, 5, 9, 0) 78%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: limbrise 2.8s 0.9s ease-out forwards;
}
@keyframes limbrise { to { opacity: 1; } }

/* nav */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 14px 12px 24px;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 40px rgba(2, 4, 9, 0.5);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  white-space: nowrap;
  view-transition-name: site-nav;
}
.wordmark { font-family: 'Instrument Serif', Georgia, serif; font-size: 20px; color: var(--star); text-decoration: none; letter-spacing: 0.005em; }
.wordmark em { font-style: italic; color: var(--gold); font-size: 0.6em; position: relative; top: -0.62em; margin-left: 1px; }
.nav-rule { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.12); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #6b7a91;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: #b3bfd1; background: rgba(255, 255, 255, 0.04); }
.nav-links a.active { color: var(--star); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
/* The Book is lifted without shouting: brighter, a small gold book, a faint gold edge */
.nav-links a.nav-book, .nav-sheet a.nav-book { display: inline-flex; align-items: center; gap: 6px; color: #dfe5ee; }
.nav-links a.nav-book { box-shadow: inset 0 0 0 1px rgba(227, 201, 136, 0.28); }
.nav-links a.nav-book:hover { color: var(--star); box-shadow: inset 0 0 0 1px rgba(227, 201, 136, 0.5); }
.nav-links a.nav-book.active { color: var(--star); background: rgba(227, 201, 136, 0.1); box-shadow: inset 0 0 0 1px rgba(227, 201, 136, 0.55); }
.nav-book svg { flex: none; color: var(--gold); }
.nav-sheet a.nav-book { display: flex; gap: 12px; color: #e8edf4; }
.nav-sheet a.nav-book svg { width: 22px; height: 22px; }
.nav-tools { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.nav-pill, .nav-menu {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  font: 500 14px 'Instrument Sans', sans-serif;
  color: #c3cddc;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-pill:hover, .nav-menu:hover { color: var(--star); background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.18); }
.nav-menu { color: var(--star); }
.nav a:focus-visible, .nav button:focus-visible, .nav-sheet a:focus-visible, .sitemap a:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; }
.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(2, 4, 8, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-sheet-inner {
  position: absolute;
  top: 84px;
  right: max(16px, calc(50% - 400px));
  width: min(420px, calc(100% - 32px));
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: rgba(10, 15, 25, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ns-primary { display: flex; flex-direction: column; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.ns-primary a { font-family: 'Instrument Serif', Georgia, serif; font-size: 26px; color: #c3cddc; text-decoration: none; padding: 9px 16px; border-radius: 14px; min-height: 44px; }
.ns-more { display: flex; flex-direction: column; }
.ns-more a { font-size: 16px; color: #93a1b8; text-decoration: none; padding: 11px 16px; border-radius: 12px; min-height: 44px; }
.nav-sheet a:hover { color: var(--star); background: rgba(255, 255, 255, 0.05); }
.nav-sheet a.active { color: var(--star); background: rgba(255, 255, 255, 0.06); }
html.sheet-open .nav-sheet { opacity: 1; pointer-events: auto; }
html.sheet-open .nav-sheet-inner { transform: none; }
@media (max-width: 900px) {
  .nav { left: 16px; right: 16px; transform: none; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 18px; }
  .nav-links, .nav-rule { display: none; }
  .nav-tools { margin-left: auto; }
  .nav-sheet-inner { right: 16px; }
}
@media (max-width: 480px) {
  .nav-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-pill { width: 40px; height: 40px; justify-content: center; padding: 0; }
  .nav-menu { min-height: 40px; }
}

/* page transitions: one sky, the content crossfades */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms cubic-bezier(0.4, 0, 1, 1) both vt-out; }
::view-transition-new(root) { animation: 520ms cubic-bezier(0.22, 1, 0.36, 1) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
.page-sub .limb { animation: none; opacity: 1; }

/* hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  gap: 28px;
}
.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 1.02;
  max-width: 1000px;
  text-wrap: balance;
  opacity: 0;
  animation: rise 1.4s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero p {
  font-size: 19px;
  line-height: 1.6;
  color: #a5b2c6;
  max-width: 620px;
  opacity: 0;
  animation: rise 1.4s 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  opacity: 0;
  animation: rise 1.4s 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  padding: 15px 32px;
  font-size: 15px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
/* the start buttons: deep purple, white text (Nicholas's brief, 12 October) */
.btn-primary {
  min-height: 48px;
  padding: 14px 28px;
  font-size: 17px;
  background: #482569;
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(196, 160, 240, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 40px rgba(72, 37, 105, 0.55);
}
.btn-primary:hover { background: #55307a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 20px 50px rgba(110, 60, 160, 0.5); }
.btn { min-height: 44px; }
.btn:focus-visible { outline: 2px solid #71b7ff; outline-offset: 3px; }
.btn-glass {
  color: var(--star);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* module */
main { position: relative; z-index: 1; }

.module {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 32px 40px;
}
.module-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(147, 161, 184, 0.14);
  margin-bottom: 30px;
}
.module-kicker { display: flex; gap: 12px; font-size: 14px; margin-bottom: 10px; }
.module-kicker strong { color: var(--aurora); font-weight: 600; }
.module-kicker span { color: #4a586e; }
.module h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 46px; }
.module-sub { font-size: 16px; color: var(--muted); margin-top: 8px; }
.module-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 7px; }
.lg { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lg-g { background: var(--green); box-shadow: 0 0 10px var(--green); }
.lg-a { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.lg-r { background: var(--red); box-shadow: 0 0 10px var(--red); }
.chip {
  padding: 7px 14px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(127, 212, 201, 0.05) 100%) rgba(2, 4, 8, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 26px 60px rgba(2, 4, 9, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.35s;
}
.tile:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 40px 80px rgba(2, 4, 9, 0.65), 0 0 44px rgba(127, 212, 201, 0.08);
}
.tile::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 14px;
  width: 55%;
  height: 30px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  filter: blur(6px);
  border-radius: 50%;
  pointer-events: none;
}

.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile-label { font-size: 13.5px; font-weight: 500; color: #aeb9cc; }
.light { width: 78px; height: 70px; flex: none; margin: -16px -18px -16px 0; }

.tile-value { display: flex; align-items: baseline; gap: 10px; }
.tile-value strong { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 38px; color: var(--star); }
.tile-value span { font-size: 14px; }
.d-good { color: var(--green); } .d-bad { color: var(--red); } .d-watch { color: var(--amber); } .d-flat { color: var(--muted); }

.tile svg.spark { width: 100%; height: 36px; display: block; }

.tile-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
.tile-foot .cadence-tag { color: var(--gold); }

.band-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 900px) { .band-row { grid-template-columns: 1fr; } }

.band-wrap { display: flex; align-items: center; gap: 24px; }
.band-value { font-family: 'Instrument Serif', Georgia, serif; font-size: 44px; }
.band-viz { flex: 1; position: relative; height: 40px; }
.band-track { position: absolute; inset: 15px 0; background: rgba(90, 106, 132, 0.25); border-radius: 999px; }
.band-zone { position: absolute; top: 15px; bottom: 15px; left: 33%; width: 17%; background: rgba(121, 224, 168, 0.35); border-radius: 999px; box-shadow: 0 0 14px rgba(121, 224, 168, 0.3); }
.band-needle { position: absolute; top: 7px; left: 46%; width: 2px; height: 26px; background: var(--star); box-shadow: 0 0 10px rgba(238, 242, 249, 0.9); border-radius: 2px; }
.band-mark { position: absolute; top: -6px; font-size: 11px; color: var(--dim); }

.context-tile {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
  border-color: rgba(147, 161, 184, 0.2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.context-tile::before { display: none; }
.context-item { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.context-label { font-size: 12px; color: var(--dim); }
.context-value { font-family: 'Instrument Serif', Georgia, serif; font-size: 28px; color: var(--muted); }
.context-sep { width: 1px; align-self: stretch; background: rgba(147, 161, 184, 0.14); }
.context-note { font-size: 12px; color: var(--dim); max-width: 140px; line-height: 1.5; }

.placeholder {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 32px;
  border-top: 1px solid rgba(147, 161, 184, 0.1);
}
.placeholder h3 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 32px; margin-bottom: 10px; }
.placeholder p { color: var(--muted); font-size: 16px; }

.foot-mark { font-family: 'Instrument Serif', Georgia, serif; color: var(--muted); }
.foot-mark em { font-style: italic; color: var(--gold); font-size: 0.62em; position: relative; top: -0.5em; margin-left: 1px; }

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 60px;
  font-size: 13px;
  color: var(--dim);
}
.sitemap { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 20px 40px; padding: 30px 0 28px; margin-bottom: 8px; border-top: 1px solid rgba(147, 161, 184, 0.12); }
.sitemap h2 { font: 600 12.5px 'Instrument Sans', sans-serif; color: #7d8ba2; margin: 0 0 8px; }
.sitemap a { display: block; font-size: 14px; color: #93a1b8; text-decoration: none; padding: 5px 0; }
.sitemap a:hover { color: var(--star); }
@media (max-width: 560px) { .sitemap { grid-template-columns: 1fr 1fr; } }

@media (max-width: 720px) {
  .module h2 { font-size: 34px; }
  .module-side { align-items: flex-start; }
}

/* ---------------- page structure ---------------- */

.page-overview {
  height: 100vh;
  overflow: hidden;
}

.hero-solo {
  min-height: 100vh;
  justify-content: flex-start;
  padding: 17vh 24px 0;
}

.page-sub main:not(.book-view):not(.letter):not(.dataroom) {
  padding-top: 110px;
}

.wordmark { text-decoration: none; }

.solo-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 90px 32px 120px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.solo-section h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 52px;
}
.solo-section p {
  font-size: 18px;
  line-height: 1.7;
  color: #a5b2c6;
}
.solo-section .solo-dim { font-size: 15px; color: var(--dim); }


/* ---------------- hero plate (landing) ---------------- */

.hero-plate {
  position: fixed;
  top: 26vh;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../img/hero-limb2.jpg) center bottom / cover no-repeat transparent;
  filter: brightness(1.04) saturate(1.06) contrast(1.04);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  z-index: 0;
  opacity: 0;
  animation: platefade 3s 0.5s ease-out forwards;
}
@keyframes platefade { to { opacity: 1; } }

/* the same sky behind every inner page: still, dimmed, words on top */
.hero-plate.backdrop { opacity: 1; animation: none; filter: brightness(0.78) saturate(0.98); }
.backdrop-lights { opacity: 0.9; transition: opacity 1.2s; }
body.reading .backdrop-lights { opacity: 0.45; }
.backdrop-scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.35) 0%, rgba(4, 7, 13, 0.1) 45%, rgba(4, 7, 13, 0.32) 100%);
}

#citylights {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(64% 40% at 50% 26%, rgba(2, 4, 8, 0.42) 0%, rgba(2, 4, 8, 0.16) 55%, rgba(2, 4, 8, 0) 100%),
    linear-gradient(180deg, rgba(2, 4, 8, 0.5) 0%, rgba(2, 4, 8, 0) 20%);
}

.page-overview .hero h1,
.page-overview .hero p { text-shadow: 0 2px 30px rgba(2, 4, 8, 0.8); }

/* ---------------- module framings (review) ---------------- */

.framing-note {
  margin: 70px 0 0;
  padding: 16px 22px;
  font-size: 14px;
  color: var(--muted);
  background: rgba(127, 212, 201, 0.05);
  border: 1px dashed rgba(127, 212, 201, 0.2);
  border-radius: 14px;
}

.framing { margin-top: 64px; }
.framing-head { margin-bottom: 22px; max-width: 720px; }
.framing-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--aurora);
  margin-bottom: 8px;
}
.framing-head h3 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 30px; margin-bottom: 8px; }
.framing-head p { font-size: 14.5px; line-height: 1.6; color: var(--dim); }

.light-inline { flex: none; }

/* B: head to head */
.hh { border-top: 1px solid rgba(147, 161, 184, 0.14); }
.hh-row {
  display: grid;
  grid-template-columns: 1fr 72px 1.2fr 1fr;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(147, 161, 184, 0.08);
}
.hh-star { display: flex; align-items: center; justify-content: center; }
.hh-head { padding: 10px 0; font-size: 12.5px; color: var(--dim); border-bottom: 1px solid rgba(147, 161, 184, 0.14); }
.hh-head .hh-aus, .hh-head .hh-oecd { font-weight: 600; color: var(--muted); }
.hh-aus { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; padding-right: 28px; }
.hh-head .hh-aus { display: block; }
.hh-oecd { text-align: left; padding-left: 28px; }
.hh-aus strong, .hh-oecd strong { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 24px; color: var(--star); }
.hh-aus em, .hh-oecd em { font-style: normal; font-size: 12px; margin-left: 0; color: var(--dim); }
.hh-oecd strong { color: var(--muted); }
.hh-none { color: #3a4658 !important; }
.hh-oecd em { color: #3a4658; font-size: 12px; }
.hh-mid { display: flex; align-items: center; justify-content: center; }
.hh-name { font-size: 14px; font-weight: 500; color: #aeb9cc; text-align: center; }

/* C: the ledger */
.lg { border-top: 1px solid rgba(147, 161, 184, 0.14); }
.lg-row {
  display: grid;
  grid-template-columns: 48px 1.6fr 150px 160px 110px;
  gap: 20px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(147, 161, 184, 0.08);
}
.lg-light { display: flex; justify-content: center; }
.lg-body { display: flex; flex-direction: column; gap: 3px; }
.lg-name { font-size: 15.5px; font-weight: 500; color: var(--star); }
.lg-copy { font-size: 13px; line-height: 1.5; color: var(--dim); }
.lg-spark svg { width: 100%; height: 30px; display: block; }
.lg-val { text-align: right; }
.lg-val strong { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 24px; color: var(--star); }
.lg-val em { font-style: normal; font-size: 12.5px; margin-left: 8px; }
.lg-cad { font-size: 12px; color: var(--dim); text-align: right; }

/* D: the dossier */
.ds { border-top: 1px solid rgba(147, 161, 184, 0.14); }
.ds-row { border-bottom: 1px solid rgba(147, 161, 184, 0.08); }
.ds-bar {
  display: grid;
  grid-template-columns: 44px 1fr 200px 30px;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
}
.ds-name { font-size: 15px; font-weight: 500; color: #aeb9cc; }
.ds-val { text-align: right; }
.ds-val strong { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 22px; color: var(--star); }
.ds-val em { font-style: normal; font-size: 12px; margin-left: 8px; }
.ds-chev { color: var(--dim); display: flex; justify-content: center; transition: transform 0.3s; }
.ds-row.open .ds-chev { transform: rotate(180deg); }
.ds-detail {
  display: none;
  padding: 6px 44px 24px 60px;
}
.ds-row.open .ds-detail { display: block; }
.ds-bigspark { width: 100%; height: 90px; display: block; margin-bottom: 14px; }
.ds-copy { font-size: 14.5px; line-height: 1.65; color: var(--muted); max-width: 620px; margin-bottom: 12px; }
.ds-meta { display: flex; gap: 24px; font-size: 12px; color: var(--dim); }

/* E: the spread */
.sp { border-top: 1px solid rgba(147, 161, 184, 0.14); padding-top: 8px; }
.sp-axis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dim);
  padding: 10px 0 14px 220px;
}
.sp-axis-mid { color: var(--muted); }
.sp-row {
  display: grid;
  grid-template-columns: 200px 1fr 60px;
  gap: 20px;
  align-items: center;
  padding: 8px 0;
}
.sp-name { font-size: 14px; font-weight: 500; color: #aeb9cc; text-align: right; }
.sp-track { position: relative; height: 34px; }
.sp-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(147, 161, 184, 0.12);
}
.sp-mid {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 1px;
  background: rgba(147, 161, 184, 0.3);
}
.sp-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.sp-gap { font-size: 12.5px; color: var(--dim); }

@media (max-width: 900px) {
  .lg-row { grid-template-columns: 40px 1fr 120px; }
  .lg-spark, .lg-cad { display: none; }
  .sp-row { grid-template-columns: 120px 1fr 50px; }
  .sp-axis { padding-left: 140px; }
}


/* framings sit on the same glass as the tiles */
.framing-panel {
  position: relative;
  overflow: hidden;
  padding: 14px 32px 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(127, 212, 201, 0.05) 100%) rgba(2, 4, 8, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 26px 60px rgba(2, 4, 9, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.framing-panel::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 14px;
  width: 45%;
  height: 30px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  filter: blur(6px);
  border-radius: 50%;
  pointer-events: none;
}
.hh.framing-panel { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.lg.framing-panel, .ds.framing-panel, .sp.framing-panel { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.sp.framing-panel { padding-bottom: 26px; }

/* ---------------- the clock ---------------- */

.clock {
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 32px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 44px;
}
.clock-head h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 46px; margin: 10px 0 14px; }
.clock-head p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 560px; margin: 0 auto; }

.clock-face { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.clock-counter {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(56px, 8.6vw, 124px);
  line-height: 1;
  color: var(--star);
  display: flex;
  align-items: flex-start;
  text-shadow: 0 0 60px rgba(227, 201, 136, 0.14);
}
.clock-counter .od-sep { display: inline-block; height: 1em; line-height: 1; }
.clock-counter .od-sep { color: var(--gold); }
.clock-counter .od-sep:not(:first-child) { color: #55637a; }
.od-col {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  position: relative;
}
.od-strip {
  display: inline-block;
  white-space: pre-line;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  line-height: 1;
}

.clock-tick {
  font-size: 17px;
  color: #b9e3d3;
  animation: tickpulse 1s ease-in-out infinite;
}
@keyframes tickpulse { 50% { opacity: 0.6; } }

.clock-controls {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.clock-slider-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
}
.clock-slider-cap { font-size: 15px; color: var(--muted); }
.clock-year { font-family: 'Instrument Serif', Georgia, serif; font-size: 34px; color: var(--gold); }
.clock-since { display: none; }

#clock-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 30px;
  background: transparent;
  cursor: pointer;
}
#clock-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(90, 106, 132, 0.35);
}
#clock-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff 0%, #e3c988 45%, rgba(227, 201, 136, 0.2) 100%);
  box-shadow: 0 0 18px rgba(227, 201, 136, 0.8), 0 0 40px rgba(227, 201, 136, 0.3);
  border: none;
}
#clock-slider::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(90, 106, 132, 0.35); }
#clock-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: radial-gradient(circle at 40% 35%, #ffffff 0%, #e3c988 45%, rgba(227, 201, 136, 0.2) 100%);
  box-shadow: 0 0 18px rgba(227, 201, 136, 0.8), 0 0 40px rgba(227, 201, 136, 0.3);
}

.clock-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; align-items: center; }
.clock-chip {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.clock-chip:hover { color: var(--star); }
.clock-chip.active { color: var(--star); border-color: rgba(227, 201, 136, 0.5); }
.clock-rates-cap { font-size: 13px; color: var(--dim); margin-right: 4px; }

.clock-fine {
  font-size: 11px;
  line-height: 1.6;
  color: #46536a;
  max-width: 560px;
}


/* F: the spread, opened */
.spf-item { border-bottom: 1px solid rgba(147, 161, 184, 0.07); }
.spf-item:last-child { border-bottom: none; }
.spf-bar { cursor: pointer; }
.spf-bar .sp-name { transition: color 0.25s; }
.spf-bar:hover .sp-name { color: var(--star); }
.spf-end { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.spf-chev { color: var(--dim); display: inline-flex; transition: transform 0.3s; }
.spf-item.open .spf-chev { transform: rotate(180deg); }
.spf-detail { display: none; padding: 4px 60px 22px 220px; }
.spf-item.open .spf-detail { display: block; }
.spf-grid { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; margin-bottom: 12px; }
.spf-stats { display: flex; gap: 28px; }
.spf-stat { display: flex; flex-direction: column; gap: 3px; }
.spf-stat em { font-style: normal; font-size: 11.5px; color: var(--dim); }
.spf-stat strong { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 22px; color: var(--star); }
.spf-spark { width: 100%; height: 44px; display: block; }
.spf-copy { font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 560px; margin-bottom: 10px; }
.spf-meta { display: flex; gap: 22px; font-size: 11.5px; color: var(--dim); }
.spf .sp-row { grid-template-columns: 200px 1fr 90px; }
@media (max-width: 900px) { .spf-detail { padding: 4px 20px 20px 140px; } }


/* book page: two volumes */
.book-section { max-width: 980px; }
.book-objects {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  margin: 14px 0 6px;
}
@media (max-width: 760px) { .book-objects { grid-template-columns: 1fr; } }
.book-card { gap: 10px; padding: 30px 30px 26px; }
.book-card-kicker { font-size: 13px; font-weight: 600; color: var(--aurora); }
.book-card h3 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 32px; }
.book-card-copy { font-size: 15px; line-height: 1.65; color: var(--muted); }
.book-card-meta { display: flex; gap: 20px; font-size: 12.5px; color: var(--dim); margin-top: 6px; }
.book-card-cta { margin-top: 12px; }
.book-btn-disabled { opacity: 0.6; cursor: default; font-size: 13.5px; padding: 11px 20px; }

/* the brand: Australia to the power of 42, everywhere */
.p42 { font-size: 0.58em; position: relative; top: -0.72em; margin-left: 0.04em; font-style: italic; color: var(--gold); line-height: 0; }

/* sunrise over the limb, Overview only */
#sunrise { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* the Living Almanac */
.alm-title { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; }
.module-sub { max-width: 620px; }
.lg-n { background: #5a6a84; box-shadow: 0 0 8px #5a6a84; }
.legend { flex-wrap: wrap; justify-content: flex-end; }
.alm-grid { align-items: stretch; }
.alm-tile { gap: 10px; }
.alm-tile:hover { transform: none; }
.alm-id { display: block; font-size: 11.5px; font-weight: 500; color: #5f6e86; font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.module .alm-name { font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 400; line-height: 1.4; color: #8e9bb0; margin: -2px 0 2px; }
.alm-tile .tile-value strong { font-size: 40px; line-height: 1; }
.alm-when { font-size: 13.5px; color: #c3cddc; margin: -2px 0 0; }
.alm-unit { font-size: 12.5px; color: var(--dim); margin: -6px 0 0; }
.alm-note { font-size: 13px; line-height: 1.5; color: #8e9bb0; margin: 0; }
.alm-grey .alm-note { font-size: 14px; color: #aeb9cc; }
.alm-judge { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: grid; gap: 9px; }
.alm-judge div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; }
.alm-judge dt { font-size: 12px; color: var(--dim); }
.alm-judge dd { margin: 0; font-size: 14px; font-weight: 500; color: #c9d2e0; }
.alm-judge dd small { display: block; font-size: 12px; font-weight: 400; color: var(--dim); margin-top: 2px; line-height: 1.45; }
.mv-good { color: var(--green) !important; } .mv-bad { color: var(--red) !important; } .mv-flat { color: var(--amber) !important; } .mv-none { color: #93a1b8 !important; font-weight: 400 !important; }
.alm-foot { margin-top: auto; padding-top: 12px; gap: 14px; line-height: 1.5; align-items: flex-end; }
.alm-foot a { color: var(--aurora); text-decoration: none; }
.alm-foot a:hover { text-decoration: underline; }
.alm-book { text-align: right; flex: none; max-width: 48%; }
.alm-rules { max-width: 760px; margin: 70px 0 20px; }
.module .alm-rules h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 32px; margin-bottom: 14px; }
.alm-rules p { font-size: 15.5px; line-height: 1.65; color: #aeb9cc; margin: 0 0 12px; }
.alm-rules a { color: var(--gold); }
@media (max-width: 760px) { .module-side { align-items: flex-start; } .legend { justify-content: flex-start; } }

.hero-aside { margin-top: 18px; font-size: 15px; color: var(--muted); }
.hero-aside a { color: var(--star); text-decoration: underline; text-decoration-color: rgba(238, 242, 249, 0.35); text-underline-offset: 3px; }
.hero-aside a:hover { text-decoration-color: currentColor; }

/* the Clock: links and assumptions */
.clock-title { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; margin: 8px 0 12px; }
.clock-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin-top: 22px; }
.clock-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: #b9c4d4; text-decoration: underline; text-decoration-color: rgba(185, 196, 212, 0.35); text-underline-offset: 4px; }
.clock-links a:hover { color: var(--star); }
.clock-method { position: relative; z-index: 1; max-width: 760px; margin: 40px auto 0; padding: 0 22px 40px; scroll-margin-top: 110px; }
.clock-method h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 34px; margin-bottom: 12px; }
.clock-method h3 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 24px; margin: 28px 0 10px; }
.clock-method p, .clock-method dd { font-size: 16px; line-height: 1.65; color: #b9c4d4; }
.clock-method dl { display: grid; gap: 12px; margin: 18px 0; }
.clock-method dl div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; }
.clock-method dt { font-size: 14px; font-weight: 600; color: var(--gold); padding-top: 3px; }
.clock-method a { color: #71b7ff; }
.clock-table { border-collapse: collapse; margin: 8px 0; font-size: 15px; }
.clock-table th, .clock-table td { padding: 7px 18px 7px 0; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #c9d2e0; }
.clock-table th { font-size: 12.5px; font-weight: 600; color: #7d8ba2; }
@media (max-width: 560px) { .clock-method dl div { grid-template-columns: 1fr; gap: 2px; } }

/* The Living Almanac: groups, cards, method */
.alm-how { margin-top: 12px; }
.alm-how a, .alm-rules a { color: #71b7ff; }
.alm-jump { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: -10px 0 28px; }
.alm-jump a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; color: #b9c4d4; text-decoration: underline; text-decoration-color: rgba(185, 196, 212, 0.3); text-underline-offset: 4px; }
.alm-jump a:hover { color: var(--star); }
.alm-group { margin-bottom: 46px; scroll-margin-top: 110px; }
.alm-group-h { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 30px; margin-bottom: 18px; }
.alm-group-h span { font-family: 'Instrument Sans', sans-serif; font-size: 13px; color: var(--dim); margin-left: 8px; }
.module .alm-name { font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 400; line-height: 1.4; color: #8e9bb0; margin: -2px 0 2px; }
.alm-tile { scroll-margin-top: 120px; }
.alm-tile:focus { outline: none; }
.alm-tile:focus-visible, .alm-tile:target { border-color: rgba(113, 183, 255, 0.6); }
.alm-when span { color: var(--dim); }
.alm-state { font-size: 15px; font-weight: 500; margin: 0; }
.alm-judge div { grid-template-columns: 92px 1fr; }
.alm-method summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-size: 13.5px; color: #71b7ff; }
.alm-method p { font-size: 13px; line-height: 1.5; color: #8e9bb0; margin: 4px 0 8px; }
.alm-actions { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; font-size: 12px; color: var(--dim); line-height: 1.5; }
.alm-actions a { display: inline-flex; flex-direction: column; min-height: 44px; justify-content: center; font-size: 14px; font-weight: 500; color: #71b7ff; text-decoration: none; }
.alm-actions a:hover { text-decoration: underline; }
.alm-actions a small { font-size: 12px; font-weight: 400; color: #8e9bb0; }
.alm-actions > a { text-align: right; align-items: flex-end; max-width: 48%; }
.alm-src, .alm-freq { display: block; }
.alm-actions a:focus-visible, .alm-jump a:focus-visible, .alm-method summary:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; }
@media (max-width: 400px) { .clock-counter { font-size: 13.5vw; } }
.land-lift { transition: opacity 1.2s; }
body.reading .land-lift { opacity: 0.5 !important; }

/* Home: the Teaser as a small purple pill under the three main buttons */
.hero-aside { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
.hero-aside .teaser-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; background: rgba(72, 37, 105, 0.55); border: 1px solid rgba(196, 160, 240, 0.6); box-shadow: 0 8px 26px rgba(72, 37, 105, 0.4); transition: background 0.2s, transform 0.3s; }
.hero-aside .teaser-pill:hover { background: #482569; transform: translateY(-1px); }
.hero-aside .teaser-pill:focus-visible { outline: 2px solid #71b7ff; outline-offset: 3px; }
.hero-aside span { font-size: 14px; color: var(--muted); }

.hero-bookmark { margin-top: 4px; }
.hero-bookmark a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; color: var(--gold); text-decoration: underline; text-decoration-color: rgba(227, 201, 136, 0.4); text-underline-offset: 4px; }
.ns-more a.ns-bookmark { color: var(--gold); }

.alm-downloads { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.alm-downloads a { display: inline-flex; align-items: center; min-height: 44px; }
.alm-alt { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: #9fb0c6; }
.alm-alt strong { font: 400 20px/1 'Instrument Serif', serif; color: var(--star, #e8edf5); margin-right: 4px; }
.alm-alt a { color: #71b7ff; }

/* Almanac cards: the value, where it stands against 16 October 2026, then a quiet footer */
.alm-tile .tile-value { margin-top: 6px; }
.alm-when { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: #9fb0c6; }
.alm-vs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.alm-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.3; color: #d6deea; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.alm-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #8e9bb0; }
.alm-pill--good { color: #a6ecc4; background: rgba(64, 190, 120, 0.12); border-color: rgba(64, 190, 120, 0.4); }
.alm-pill--good::before { background: #5fd398; }
.alm-pill--bad { color: #ffb3a8; background: rgba(240, 96, 80, 0.12); border-color: rgba(240, 96, 80, 0.4); }
.alm-pill--bad::before { background: #f07a6a; }
.alm-pill--none { color: #9fb0c6; }
.alm-vs-note { font-size: 12.5px; line-height: 1.45; color: #8e9bb0; }
.alm-tile .alm-method { margin-top: 10px; }
.alm-foot { margin-top: auto; padding-top: 18px; }
.alm-meta { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: #7f8ca2; }
.alm-links { display: flex; flex-wrap: wrap; gap: 8px; }
.alm-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #cfe3ff; text-decoration: none; background: rgba(113, 183, 255, 0.07); border: 1px solid rgba(113, 183, 255, 0.22); transition: background 0.2s, border-color 0.2s; }
.alm-links a:hover { background: rgba(113, 183, 255, 0.16); border-color: rgba(113, 183, 255, 0.45); }
.alm-links a:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; }
@media (max-width: 760px) { .alm-links a { min-height: 44px; } }

/* the Day Zero line near the top of the Almanac */
.alm-dayzero { max-width: 760px; margin: 18px 0 0; padding: 14px 18px; font-size: 15px; line-height: 1.6; color: #c9d3e1; background: rgba(227, 201, 136, 0.06); border: 1px solid rgba(227, 201, 136, 0.28); border-radius: 14px; }
.alm-dayzero strong { color: var(--gold); font-weight: 500; }
.alm-grey .alm-vs { flex-direction: column; align-items: flex-start; }
.alm-grey .alm-vs-note { font-size: 14px; line-height: 1.55; color: #b9c4d4; }

/* the Clock's "Slide me" hint, under the knob, until the slider is first moved */
.clock-slide { position: relative; padding-bottom: 34px; }
.clock-hint { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--gold); background: rgba(227, 201, 136, 0.08); border: 1px solid rgba(227, 201, 136, 0.35); transition: opacity 0.4s; animation: clock-nudge 2.4s ease-in-out infinite; }
.clock-hint.gone { opacity: 0; animation: none; }
@keyframes clock-nudge { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(-6px); } 90% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .clock-hint { animation: none; } }

/* Feedback: a small form over the page, so readers don't need a mail app */
.fb-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(2, 4, 9, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fb-wrap[hidden] { display: none; }
html.fb-open { overflow: hidden; }
.fb { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px 28px 24px; color: #eef2f9; background: rgba(14, 19, 30, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.fb h2 { margin: 0 0 6px; font: 400 32px/1.1 'Instrument Serif', Georgia, serif; }
.fb-lede { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: #b9c4d4; }
.fb-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 999px; font-size: 26px; line-height: 1; color: #b9c4d4; background: transparent; cursor: pointer; }
.fb-x:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.fb-field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13.5px; font-weight: 500; color: #c9d3e1; }
.fb-field em { font-style: normal; font-weight: 400; color: #8e9bb0; }
.fb-field textarea, .fb-field input { width: 100%; box-sizing: border-box; padding: 12px 14px; font: 400 16px/1.5 'Instrument Sans', sans-serif; color: #eef2f9; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; }
.fb-field textarea { resize: vertical; min-height: 130px; }
.fb-field textarea:focus, .fb-field input:focus { outline: 2px solid #71b7ff; outline-offset: 1px; border-color: transparent; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-msg { min-height: 20px; margin: 0 0 6px; font-size: 14px; color: #ffb3a8; }
.fb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.fb-send { min-height: 46px; padding: 0 26px; border-radius: 999px; font: 600 15px 'Instrument Sans', sans-serif; color: #fff; background: #482569; border: 1px solid rgba(196, 160, 240, 0.6); cursor: pointer; }
.fb-send:hover { background: #573081; }
.fb-send:disabled { opacity: 0.6; cursor: default; }
.fb-send:focus-visible, .fb-x:focus-visible, .fb-mail:focus-visible { outline: 2px solid #71b7ff; outline-offset: 2px; }
.fb-mail { font-size: 13.5px; color: #8e9bb0; }
@media (max-width: 560px) { .fb-row { grid-template-columns: 1fr; } .fb { padding: 24px 18px 20px; } }

/* Home buttons on phones: stacked full width, one line each, text centred */
@media (max-width: 600px) {
  .cta-row { flex-direction: column; align-items: stretch; width: min(340px, 100%); margin-left: auto; margin-right: auto; gap: 12px; }
  .cta-row .btn { width: 100%; min-height: 52px; padding: 0 24px; }
}
