/* =====================================================================================================================
   THE STARTER DESIGN: the look every Tenshi template starts from.
   Colours come from four variables written by layout.html.j2 from the template (and the site's own Theme choices):
     --p primary   --a accent   --s page background   --i text
   The body has one of three shapes: .style-clean (light, rounded), .style-bold (square, strong), .style-elegant (serif, calm).
   ===================================================================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--font-body, system-ui, "Segoe UI", sans-serif); color: var(--i); background: var(--s); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--p); }
h1, h2, h3 { font-family: var(--font-head, inherit); line-height: 1.12; margin: 0 0 .5em; color: var(--i); }
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border: 2px solid var(--p); border-radius: 10px;
  background: var(--p); color: #fff; font: 700 1rem/1.2 var(--font-body, inherit); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--p) 70%, transparent); }
.btn-line { background: transparent; color: var(--p); }
.btn-light { background: #fff; color: var(--p); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* Header and menu */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--s) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--i) 10%, transparent); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { font: 800 1.25rem/1 var(--font-head, inherit); color: var(--i); text-decoration: none; }
.brand img { height: 44px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 12px; border-radius: 8px; color: var(--i); text-decoration: none; font-weight: 600; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--p); background: color-mix(in srgb, var(--p) 9%, transparent); }
.menu .menu-call { background: var(--p); color: #fff; margin-left: 8px; }
.menu .menu-call:hover { color: #fff; background: color-mix(in srgb, var(--p) 85%, #000); }
.menu-btn { display: none; margin-left: auto; padding: 8px 14px; font: inherit; font-weight: 700; background: none; border: 1px solid currentColor; border-radius: 8px; color: var(--i); }

/* Sections */
.band { padding: clamp(56px, 9vw, 110px) 0; }
.band:nth-of-type(even) { background: color-mix(in srgb, var(--i) 3%, var(--s)); }
.intro { max-width: 46em; font-size: 1.1rem; margin-bottom: 2em; }
.center { text-align: center; }
.center .intro, .center .prose { margin-inline: auto; }
.empty-note { padding: 20px; border: 2px dashed color-mix(in srgb, var(--i) 25%, transparent); border-radius: 10px; color: color-mix(in srgb, var(--i) 65%, transparent); }
.caption, figcaption { font-size: .9rem; color: color-mix(in srgb, var(--i) 70%, transparent); margin-top: .7em; }

/* Hero */
.hero { padding: clamp(60px, 11vw, 140px) 0; color: #fff; background:
  radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--a) 45%, transparent), transparent 45%),
  linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 65%, #000)); }
.hero h1, .hero .lead, .hero .kicker { color: #fff; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.hero-centered .hero-in, .hero-background .hero-in { grid-template-columns: 1fr; text-align: center; }
.hero-centered .actions, .hero-background .actions { justify-content: center; }
.hero-centered .lead, .hero-background .lead { margin-inline: auto; }
.hero-background { background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.55)), var(--hero-img, none) center / cover, var(--p); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34em; opacity: .95; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 800; }
.hero .btn { background: #fff; color: var(--p); border-color: #fff; }
.hero .btn-line { background: transparent; color: #fff; }
.hero-pic img { border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }

/* Cards (services, team, contact) */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.cards-2 { --cols: 2; } .cards-3 { --cols: 3; } .cards-4 { --cols: 4; }
.card { padding: 26px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 14px 30px -24px rgba(0,0,0,.35); border-top: 4px solid var(--a); }
.card-pic { margin: -26px -26px 18px; width: calc(100% + 52px); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px 14px 0 0; }
.price { font-weight: 800; color: var(--p); }
.person { text-align: center; }
.person img, .person-initial { width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; }
.person-initial { display: grid; place-items: center; font: 800 3rem/1 var(--font-head, inherit); color: #fff; background: var(--p); }
.role { color: var(--p); font-weight: 700; }

/* Testimonials */
.quotes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { margin: 0; padding: 28px; background: #fff; border-radius: 14px; border-left: 5px solid var(--p); }
.quote footer { font-weight: 700; }
.stars { color: #f2a900; letter-spacing: .1em; margin: 0 0 .4em; }

/* Call to action */
.cta { padding: clamp(48px, 7vw, 80px) 0; background: var(--p); color: #fff; }
.cta h2, .cta p { color: #fff; }
.cta-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }

/* Galleries: masonry (columns), grid (equal squares), carousel (sideways scroll) */
.gallery-masonry { columns: 3 260px; column-gap: 14px; }
.gallery-masonry .gallery-item { display: block; margin-bottom: 14px; break-inside: avoid; }
.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery-carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.gallery-carousel .gallery-item { flex: 0 0 min(80%, 520px); scroll-snap-align: start; }
.gallery-item { position: relative; overflow: hidden; border-radius: 12px; }
.gallery-item img { transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 10px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

/* Portfolio and before/after */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { padding: 8px 16px; font: inherit; font-weight: 700; border: 1px solid color-mix(in srgb, var(--i) 20%, transparent); border-radius: 99px; background: #fff; color: var(--i); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--p); border-color: var(--p); color: #fff; }
.portfolio { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.portfolio-masonry { display: block; columns: 3 300px; column-gap: 24px; }
.portfolio-masonry .work { break-inside: avoid; margin-bottom: 24px; }
.work { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 30px -24px rgba(0,0,0,.35); }
.work[hidden] { display: none; }
.work-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-text { padding: 18px 20px 20px; }
.work-cat { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--p); }
.ba { position: relative; overflow: hidden; border-radius: 12px; user-select: none; }
.ba > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { width: 100%; height: 100%; object-fit: cover; }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); pointer-events: none; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; top: 10px; padding: 3px 10px; font-size: .75rem; font-weight: 800; color: #fff; background: rgba(0,0,0,.55); border-radius: 99px; pointer-events: none; }
.ba-tag-b { left: 10px; } .ba-tag-a { right: 10px; }

/* Lightbox (site.js) */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4vh 4vw; background: rgba(10,10,12,.92); }
.lightbox img { max-height: 84vh; width: auto; border-radius: 6px; }
.lightbox p { color: #fff; text-align: center; margin-top: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; top: 50%; } .lb-next { right: 18px; top: 50%; }

/* Forms */
.lead { display: grid; gap: 14px; }
.lead label { display: grid; gap: 6px; font-weight: 700; }
.lead input, .lead textarea, .lead select { font: inherit; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--i) 25%, transparent); border-radius: 10px; background: #fff; color: var(--i); }
.lead .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-note:empty { display: none; }

/* Image, video, text, spacer */
.prose { font-size: 1.08rem; }
.image-block figure { margin-inline: auto; }
.image-block .full { width: 100%; }
.image-block .narrow { width: min(680px, 100% - 40px); }
.image-block img { border-radius: 14px; width: 100%; }
.embed { position: relative; aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
video { width: 100%; border-radius: 12px; }
.spacer-small { height: 24px; } .spacer-medium { height: 60px; } .spacer-large { height: 120px; }

/* Footer */
.bottom { padding: 50px 0 24px; background: var(--i); color: color-mix(in srgb, #fff 80%, transparent); }
.bottom a { color: #fff; }
.bottom-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.bottom-name { font: 800 1.2rem/1.2 var(--font-head, inherit); color: #fff; display: block; margin-bottom: 6px; }
.social { display: flex; flex-wrap: wrap; gap: 14px; align-content: start; }
.made { margin-top: 30px; font-size: .8rem; opacity: .7; }

/* The three shapes */
.style-bold h1, .style-bold h2 { text-transform: uppercase; }
.style-bold .btn, .style-bold .card, .style-bold .quote, .style-bold .work, .style-bold .gallery-item, .style-bold .hero-pic img, .style-bold .menu a { border-radius: 0; }
.style-bold .top { background: var(--i); }
.style-bold .brand, .style-bold .menu a { color: #fff; }
.style-bold .menu-btn { color: #fff; }
.style-elegant h1, .style-elegant h2, .style-elegant h3, .style-elegant .brand { font-family: var(--font-head, Georgia, "Times New Roman", serif); font-weight: 400; }
.style-elegant .hero-in { text-align: center; grid-template-columns: 1fr; }
.style-elegant .hero .actions { justify-content: center; }
.style-elegant .hero .lead { margin-inline: auto; }
.style-elegant .btn { border-radius: 0; background: transparent; color: var(--p); }
.style-elegant .hero .btn, .style-elegant .cta .btn { color: #fff; border-color: #fff; background: transparent; }
.style-elegant .card { border-top-width: 1px; box-shadow: none; border: 1px solid color-mix(in srgb, var(--i) 12%, transparent); }

/* Phones */
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch; padding: 10px 20px 20px; background: var(--s); border-bottom: 1px solid color-mix(in srgb, var(--i) 12%, transparent); }
  .style-bold .menu { background: var(--i); }
  .menu.open { display: flex; }
  .hero-in, .cards { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* =====================================================================================================================
   ATLAS: corporate and confident (in the spirit of Enfold and The7). Re-skins the starter design above; colours still
   come from --p --a --s --i, so the site's Theme choices keep working.
   ===================================================================================================================== */
:root { --at-navy: color-mix(in srgb, var(--p) 55%, var(--i)); --at-line: color-mix(in srgb, var(--i) 11%, transparent); --at-gray: color-mix(in srgb, var(--i) 4%, var(--s)); }
h1, h2, h3 { font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.6rem); text-transform: uppercase; line-height: 1; }
h2 { text-transform: uppercase; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-family: var(--font-body, inherit); font-weight: 700; letter-spacing: -.01em; }
.kicker { color: var(--a); letter-spacing: .2em; }
.band > .wrap > h2 { display: flex; flex-direction: column; }
.band > .wrap > h2::after { content: ""; width: 54px; height: 3px; margin-top: 16px; background: var(--a); }

/* header */
.top { background: var(--s); border-bottom: 1px solid var(--at-line); backdrop-filter: none; }
.top-in { min-height: 80px; }
.brand { font: 600 1.45rem/1 var(--font-head, inherit); text-transform: uppercase; letter-spacing: .04em; color: var(--p); }
.menu a { border-radius: 0; font-size: .92rem; font-weight: 600; padding: 28px 14px; border-bottom: 3px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { background: none; color: var(--p); border-bottom-color: var(--a); }
.menu .menu-call { background: var(--a); color: #fff; border-radius: 4px; padding: 12px 18px; border: 0; margin-left: 14px; }
.menu .menu-call:hover { background: color-mix(in srgb, var(--a) 85%, #000); color: #fff; }

/* buttons */
.btn { border-radius: 4px; padding: 15px 26px; font-weight: 700; letter-spacing: .02em; }
.btn:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--p) 85%, #000); }
.btn-line { color: var(--p); }

/* hero: navy, split, with a corner accent */
.at-hero { position: relative; background: linear-gradient(115deg, var(--at-navy) 0%, var(--p) 100%); padding: clamp(70px, 10vw, 130px) 0 clamp(110px, 12vw, 170px); overflow: hidden; }
.at-hero::after { content: ""; position: absolute; right: 0; top: 0; width: 34%; height: 100%; background: rgba(255, 255, 255, .04); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.at-hero .hero-in { position: relative; z-index: 1; }
.at-hero .btn { background: var(--a); border-color: var(--a); color: #fff; }
.at-hero .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.at-pic { margin: 0; position: relative; }
.at-pic img { border-radius: 6px; aspect-ratio: 5 / 4; object-fit: cover; width: 100%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.at-pic::before { content: ""; position: absolute; left: -16px; bottom: -16px; width: 40%; height: 40%; border-left: 4px solid var(--a); border-bottom: 4px solid var(--a); }
.hero-background.at-hero { background: linear-gradient(115deg, color-mix(in srgb, var(--at-navy) 92%, transparent), color-mix(in srgb, var(--p) 70%, transparent)), var(--hero-img, none) center / cover; }
.at-figs { position: relative; z-index: 2; margin-top: clamp(-80px, -7vw, -60px); }
.at-figs dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; background: var(--s); border-radius: 6px; box-shadow: 0 24px 50px -28px rgba(15, 27, 51, .5); }
.at-figs div { padding: 26px 26px 24px; border-right: 1px solid var(--at-line); }
.at-figs div:last-child { border-right: 0; }
.at-figs dt { font: 600 clamp(2rem, 3.6vw, 2.8rem)/1 var(--font-head, inherit); color: var(--p); }
.at-figs dd { margin: 8px 0 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: color-mix(in srgb, var(--i) 60%, transparent); font-weight: 600; }

/* sections */
.band:nth-of-type(even) { background: var(--at-gray); }
.intro { color: color-mix(in srgb, var(--i) 68%, transparent); }

/* cards with a top rule */
.card { border-radius: 6px; border: 1px solid var(--at-line); border-top: 4px solid var(--p); box-shadow: 0 10px 30px -24px rgba(15, 27, 51, .5); transition: border-color .2s, transform .2s; }
.card:hover { border-top-color: var(--a); transform: translateY(-3px); }
.card-pic { border-radius: 0; margin-top: -26px; }
.card h3::after { content: ""; display: block; width: 30px; height: 2px; margin-top: 10px; background: var(--a); }
.price { color: var(--a); }
.person img, .person-initial { border-radius: 6px; width: 100%; height: auto; aspect-ratio: 1; max-width: 260px; }
.quote { border-radius: 6px; border-left: 4px solid var(--a); box-shadow: 0 10px 30px -24px rgba(15, 27, 51, .5); }
.quote footer { color: var(--p); }
.work { border-radius: 6px; }
.work-cat { color: var(--a); }
.gallery-item, .image-block img, .embed iframe, video, .ba { border-radius: 6px; }
.filters button { border-radius: 4px; }
.lead input, .lead textarea, .lead select { border-radius: 4px; }

/* call to action and a two-tone footer */
.cta { background: var(--a); }
.cta .btn-light { background: var(--at-navy); color: #fff; border-color: var(--at-navy); border-radius: 4px; }
.bottom { background: var(--at-navy); padding-top: 64px; }
.made { background: color-mix(in srgb, var(--at-navy) 80%, #000); width: 100%; max-width: none; margin: 30px 0 -24px; padding: 16px max(20px, calc((100% - 1160px) / 2)); opacity: .85; }

@media (max-width: 760px) {
  .menu a { padding: 12px; border-bottom: 0; }
  .menu { top: 80px; }
  .at-figs div { border-right: 0; border-bottom: 1px solid var(--at-line); }
}

/* bold shape: the header is dark (ink), so the current and hovered menu link stays white rather than the primary colour */
.style-bold .menu a:hover, .style-bold .menu a[aria-current="page"] { color: #fff; }

/* ===================== THE UFO ARCHIVE (ufo.js) =====================
   A night sky over a reading room: deep night header, hero and footer with a faint field of stars, paper-white pages
   for the long reading, one signal green for links and highlights. Tokens: night #0B1026, deep #141B3A, signal #3FD9A6,
   signal ink #0E7A5A, amber #F2B84B, paper #F6F7FB, line #DDE1EC. */
:root { --uf-night: #0B1026; --uf-deep: #141B3A; --uf-signal: #3FD9A6; --uf-sink: #0E7A5A; --uf-amber: #F2B84B; --uf-paper: #F6F7FB; --uf-line: #DDE1EC; }
body { background: var(--uf-paper); }
a { color: var(--uf-sink); }
:focus-visible { outline: 3px solid var(--uf-amber); outline-offset: 2px; }

/* the night: header, hero and footer share a starfield */
.uf-stars, body .style-bold .top, body .top.tc-header, footer, .site-footer, .hero {
  background-color: var(--uf-night);
  background-image: radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.75) 50%, transparent 51%), radial-gradient(1px 1px at 37% 64%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 18%, rgba(255,255,255,.8) 50%, transparent 51%), radial-gradient(1px 1px at 81% 46%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 12%, rgba(255,255,255,.7) 50%, transparent 51%), radial-gradient(1px 1px at 69% 83%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 24% 88%, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(1px 1px at 47% 41%, rgba(255,255,255,.4) 50%, transparent 51%);
  background-size: 420px 260px;
}
body .style-bold .top, body .top.tc-header { border-bottom: 1px solid rgba(63,217,166,.25); box-shadow: 0 8px 24px -16px rgba(0,0,0,.8); }
.top .brand, .top .brand span, .top .brand b { color: #fff !important; font-weight: 800; letter-spacing: .04em; }
.top .brand::before { content: ""; display: inline-block; width: 30px; height: 30px; margin-right: 10px; vertical-align: -8px; border-radius: 50%;
  background: radial-gradient(ellipse 60% 22% at 50% 58%, var(--uf-signal) 60%, transparent 62%), radial-gradient(circle at 50% 42%, rgba(255,255,255,.95) 26%, transparent 28%);
  filter: drop-shadow(0 0 6px rgba(63,217,166,.7)); }
.menu a { color: #E6E9F5; font-weight: 600; letter-spacing: .02em; border-bottom: 3px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; background: none; border-bottom-color: var(--uf-signal); }
.style-bold .menu a:hover, .style-bold .menu a[aria-current="page"] { color: #fff; }
body .top .menu a.tc-cta, body .top .menu a.btn { align-self: center; margin-left: 10px; padding: 9px 16px; border: 1px solid var(--uf-signal); border-radius: 999px;
  background: rgba(63,217,166,.12); color: #fff !important; font-weight: 700; }
body .top .menu a.tc-cta:hover, body .top .menu a.btn:hover { background: var(--uf-signal); color: var(--uf-night) !important; }
@media (max-width: 1240px) {
  .menu-btn { display: block; color: #fff; border-color: rgba(255,255,255,.5); }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px;
    background: var(--uf-night) !important; box-shadow: 0 18px 30px -18px rgba(0,0,0,.7); }
  .menu.open, .menu-btn[aria-expanded="true"] + .menu { display: flex; }
  .menu a { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--uf-signal); padding-left: 14px; border-bottom-color: rgba(255,255,255,.1); }
  body .top .menu a.tc-cta, body .top .menu a.btn { margin: 12px 0 0; justify-content: center; text-align: center; }
}

/* the hero */
.hero, .hero h1, .hero p, .hero .lead { color: #fff; }
.hero .kicker { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .82rem; color: var(--uf-signal) !important; }
.hero h1 { text-shadow: 0 0 28px rgba(63,217,166,.35); }
.hero .btn { background: var(--uf-signal); color: var(--uf-night); border-color: var(--uf-signal); font-weight: 700; }
.hero .btn:hover { background: #6BE8BE; border-color: #6BE8BE; }
.hero.hero-background::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 40% 60% at 80% 0%, rgba(63,217,166,.18), transparent 70%); }

/* sections */
.band:nth-of-type(even) { background: #EDEFF7; }
.band > .wrap > h2::after { background: var(--uf-signal); }
.btn { border-radius: 999px; }
.card, .entry-card { border-color: var(--uf-line); }
.prose h3 { margin-top: 1.6em; }
.prose blockquote { border-left: 3px solid var(--uf-signal); }

/* footer */
footer, .site-footer { color: #CBD1E6; }
footer a, .site-footer a { color: #fff; }
footer h3, footer h4, .site-footer h3, .site-footer h4 { color: var(--uf-signal); }

/* the map (.uf-map) */
.uf-map { height: min(70vh, 620px); border-radius: 10px; overflow: hidden; border: 1px solid var(--uf-line); background: #0B1026; }
.uf-map-keys { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.uf-map-keys button { border: 1px solid var(--uf-line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .88rem; cursor: pointer; }
.uf-map-keys button[aria-pressed="true"] { background: var(--uf-night); color: #fff; border-color: var(--uf-night); }
.uf-map-keys i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.uf-pop b { display: block; margin-bottom: 2px; }
.uf-pop small { color: #555; }

/* the timeline (.uf-tl, static HTML from tools/pages.py) */
.uf-tl { max-width: 860px; }
.uf-tl h3 { position: sticky; top: 0; background: var(--uf-paper); padding: 8px 0; margin: 1.6em 0 .4em; border-bottom: 2px solid var(--uf-signal); z-index: 1; }
.uf-tl ol { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--uf-line); }
.uf-tl li { position: relative; margin: 0 0 14px; padding-left: 12px; }
.uf-tl li::before { content: ""; position: absolute; left: -25px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--uf-signal); box-shadow: 0 0 0 3px rgba(63,217,166,.25); }
.uf-tl .when { font-weight: 700; color: var(--uf-sink); margin-right: 6px; }
.uf-tl .kind { display: inline-block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #555; border: 1px solid var(--uf-line); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.uf-tl p { margin: .2em 0 0; color: #333; font-size: .95rem; }

/* the at-a-glance numbers (.uf-stats) */
.uf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.uf-stats a { display: block; padding: 18px; border-radius: 10px; background: var(--uf-night); color: #fff; text-decoration: none; border: 1px solid rgba(63,217,166,.3); }
.uf-stats a:hover { border-color: var(--uf-signal); }
.uf-stats b { display: block; font-size: 2rem; line-height: 1; color: var(--uf-signal); }
.uf-stats span { font-size: .9rem; color: #CBD1E6; }
