/* Shared styles for every Yardvybz page.
   Look modelled on safeertemplate.webflow.io (restyled 2026-10-19): Inter Tight with tight tracking on
   large headings, one gold accent, pill buttons that carry their arrow in a dark circle, rounded
   blocks, and a dark rounded footer with a big wordmark. The mountains photo stays, under a lighter scrim.
   The previous look is in _backup-2026-10-19-before-restyle/.
   2026-10-22: Apple-style touches added (frosted sticky nav, bigger tighter headlines, big-number
   .stat cards, the .seg pill switch, .more links ending in ›). Before them: _backup-2026-10-22-before-apple/. */
:root {
  --bg: #0f0a01;
  --fg: #f8f8f8;
  --muted: #dcd8cf;
  /* Template gold, within a shade of the Jamaican flag's #fed100. Text on it uses --accent-ink. */
  --accent: #febd1a;
  --accent-ink: #1a1200;
  --line: rgba(255,255,255,.14);
  --glass: rgba(15,10,1,.58);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Site-wide background: change this one line and every page follows.
     To give a single page its own, set the same variable on that page's body:
       <body style="--bg-image: url('Temp/other.jpg')">
     The scrim in body{} sits on top either way. */
  --bg-image: url("Temp/mountains.jpg");
  --nav-h: 64px;
}
* { box-sizing: border-box; margin: 0; }
/* Lighter scrim than before (.78/.6/.68), as asked. White text straight on the photo is kept to
   large headings with a shadow; body text sits on the darker glass of main.page, because over the
   white cloud a .42 scrim leaves small white text near 3:1. */
body {
  background:
    linear-gradient(to bottom, rgba(15,10,1,.62) 0%, rgba(15,10,1,.42) 45%, rgba(15,10,1,.58) 100%),
    var(--bg-image) center / cover no-repeat fixed,
    var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
/* The class name is historical (the accent used to be green); it now means "accent colour". */
.green { color: var(--accent); }

/* ---------- Under-construction banner (delete the .construct div from each page to remove) ---------- */
.construct {
  padding: 8px 16px;
  text-align: center;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--accent-ink);
  background: var(--accent);
}

/* ---------- Navigation: wordmark left, pickers in the middle, links and buttons right ---------- */
/* Sticky and frosted, as on apple.com (added 2026-10-22): the bar stays at the top while the page
   scrolls under it, blurred. The dark tint keeps the links readable over the white cloud. */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15,10,1,.62);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: var(--nav-h);
  padding: 8px clamp(16px, 3vw, 40px);
}
.nav nav { display: contents; }
.nav-links { display: flex; align-items: center; gap: clamp(2px, .8vw, 10px); }
.nav-links.left { grid-column: 2; justify-content: center; }
.nav-links.right { grid-column: 3; justify-content: flex-end; }
.nav-links > a:not(.cta):not(.btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
/* underline grows with transform only */
.nav-links > a:not(.cta):not(.btn)::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 8px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--spring);
}
.nav-links > a:not(.cta):not(.btn):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:active { transform: translateY(1px); }

.brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
  transition: transform .4s var(--spring);
}
.brand:hover { transform: translateY(-1px); }
.brand:active { transform: scale(.97); }
.brand b { color: var(--accent); font-weight: 700; }

/* ---------- Buttons ----------
   Pill with the label, and the trailing arrow (the aria-hidden span) in a dark circle, as on the
   template. Buttons without an arrow (Sign in, the store buttons) are plain pills. */
.cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(254,189,26,.55), 0 2px 6px rgba(15,10,1,.3);
  transition: transform .35s var(--spring), opacity .2s ease;
}
.cta:has(> span[aria-hidden="true"]), .btn:has(> span[aria-hidden="true"]) { padding: 4px 4px 4px 22px; }
.cta > span[aria-hidden="true"], .btn > span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
  transition: transform .45s var(--spring);
}
.cta:hover, .btn:hover { transform: translateY(-2px); }
.cta:hover > span[aria-hidden="true"], .btn:hover > span[aria-hidden="true"] { transform: rotate(45deg) scale(1.06); }
.cta:active, .btn:active { transform: scale(.97); }
.btn.ghost {
  background: rgba(255,255,255,.08);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32);
}
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; }

.nav-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  min-height: 44px;
  min-width: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .3s var(--spring);
}
.nav-toggle:hover { transform: scale(1.04); }
.nav-toggle:active { transform: scale(.96); }

/* ---------- Dropdowns (country + parish pickers) ---------- */
.dd { position: relative; }
.dd-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
  cursor: pointer;
  transition: transform .3s var(--spring);
}
.dd-btn:active { transform: translateY(1px); }
.dd-btn::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 8px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--spring);
}
.dd-btn:hover::after, .dd.open .dd-btn::after, .dd.current .dd-btn::after { transform: scaleX(1); }
.dd-btn .here { color: var(--muted); font-weight: 400; }
.dd-btn .caret { font-size: .75em; transition: transform .3s var(--spring); }
.dd.open .caret { transform: rotate(180deg); }
.flag { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); flex: none; }

.dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 240px;
  max-height: min(70dvh, 560px);
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(15,10,1,.96);
  border-radius: 16px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.9), 0 0 0 1px var(--line);
}
.dd.open .dd-menu { display: block; }
.dd-menu.cols { display: none; width: max-content; max-width: calc(100vw - 32px); }
.dd.open .dd-menu.cols { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 0 8px; }
.dd-menu a, .dd-menu .soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}
.dd-menu a:hover { background: rgba(254,189,26,.14); }
.dd-menu a:active { background: rgba(254,189,26,.26); }
.dd-menu a[aria-current] { color: var(--accent); }
.dd-menu .soon { color: var(--muted); font-weight: 400; cursor: default; }
.dd-menu .soon em { font-style: normal; font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.1); }
.dd-menu .all { grid-column: 1 / -1; }

/* 1240, not 1100: with Promote and E-Tickets in the bar (2026-10-25) the links wrapped below that. */
@media (max-width: 1240px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-flex; align-items: center; grid-column: 2; }
  .nav nav {
    display: none;
    position: absolute;
    top: calc(var(--nav-h) + 4px); left: 16px; right: 16px;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(15,10,1,.95);
    border-radius: 20px;
    box-shadow: 0 24px 50px -18px rgba(0,0,0,.9), 0 0 0 1px var(--line);
  }
  .nav.open nav { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links.left, .nav-links.right { grid-column: auto; }
  .nav-links > a:not(.cta):not(.btn) { min-height: 48px; padding: 0 12px; }
  .nav-links > a:not(.cta):not(.btn)::after { bottom: 8px; left: 12px; right: 12px; }
  .nav .btn, .nav .cta { margin-top: 6px; }
  .nav nav { max-height: calc(100dvh - 84px); overflow-y: auto; }
  .dd-btn { width: 100%; min-height: 48px; padding: 0 12px; }
  .dd-btn::after { left: 12px; right: 12px; bottom: 8px; }
  .dd-btn .caret { margin-left: auto; }
  .dd-menu, .dd-menu.cols { position: static; max-height: none; min-width: 0; width: auto; max-width: none; box-shadow: none; background: rgba(255,255,255,.06); margin: 2px 0 6px; }
  .dd.open .dd-menu.cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page layout: content sits in one rounded glass block ---------- */
main.page {
  flex: 1;
  width: calc(100% - 24px);
  max-width: 1120px;
  margin: clamp(16px, 4vh, 40px) auto clamp(40px, 8vh, 96px);
  padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), inset 0 0 0 1px var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* Big, tight headlines with a short line under them and room around both: the apple.com rhythm
   (2026-10-22). Up from clamp(2.5rem, 7vw, 4.5rem); the -0.04em tracking holds the larger size together. */
.page h1 {
  font-size: clamp(2.8rem, 8.5vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: .3em;
  text-wrap: balance;
}
.page h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 1.8em 0 .3em;
  text-wrap: balance;
}
/* Inter Tight is narrow; small text gets a touch of tracking back so it stays easy to read on a phone */
.page p { color: var(--muted); max-width: 62ch; margin-bottom: 1em; letter-spacing: .005em; }
.lead { font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.45; color: var(--fg) !important; max-width: 46ch !important; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 1.6em; }

/* ---------- Big-number cards: a large figure, a small label under it ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin-top: 1.8em; }
.stat {
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(15,10,1,.58);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stat b {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.stat span { display: block; margin-top: 4px; color: var(--muted); font-weight: 500; }
/* Waiting on the live figures: the number fades in rather than jumping from a dash. */
.stat b[data-live] { transition: opacity .3s ease; }
.stat b[data-live].loading { opacity: 0; }

/* ---------- Segmented control: pills in a track, one chosen ---------- */
.seg {
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--spring);
}
.seg button:hover { color: var(--fg); background: rgba(255,255,255,.07); }
.seg button:active { transform: scale(.96); }
.seg button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.seg-panel[hidden] { display: none; }

/* ---------- Product tiles: Post free, Promote, E-Tickets (2026-10-25) ----------
   The three things YardVybz does, as big Apple-style tiles: the clip across the top, a tag,
   a bold title, one line, and a › link. The whole tile is the link. */
.products-page h2 { margin-top: 0; }
.products {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin-top: 1.8em;
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 22px 22px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(15,10,1,.58);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.8), inset 0 0 0 1px var(--line);
  color: var(--fg);
  text-decoration: none;
  transition: transform .4s var(--spring);
}
.product:hover { transform: translateY(-4px); }
.product:active { transform: scale(.985); }
.product video {
  display: block;
  width: calc(100% + 44px);
  margin: 0 -22px 6px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #16130d;
}
.product .tag { align-self: flex-start; }
.product h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.product p { color: var(--muted); margin: 0; flex: 1; }
.product .more { margin-top: 4px; }
.product:hover .more::after { transform: translateX(3px); }

/* ---------- Price lists on the product pages ---------- */
/* auto-fill, not auto-fit: a row of one or two cards keeps the width of a row of three; 300px makes rows of three at most. */
.price-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 1.6em; }
.price-row { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin: 1.8em 0 .1em; }
.price-row + p { margin-top: .2em; }
.price-card {
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(15,10,1,.58);
  box-shadow: inset 0 0 0 1px var(--line);
}
.price-card h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: .2em; }
.price-card .amount { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; color: var(--fg); margin: .3em 0 .2em; }
/* The big price keeps J$ on one line and puts the US$ figure under it, smaller. */
.price-card .amount small { display: block; font-size: .5em; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); margin-top: .15em; }
.price-card p { margin: 0; font-size: .95rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px; top: 14px;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.steps li b { color: var(--fg); }

/* ---------- Plain gold links that end in ›, for the quieter actions ---------- */
.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: transform .3s var(--spring);
}
.more::after { content: "\203A"; margin-left: .3em; transition: transform .3s var(--spring); }
.more:hover::after { transform: translateX(3px); }
.more:active { transform: translateY(1px); }

.panel {
  padding: 24px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px var(--line);
}
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.6em; }
.panel h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: .35em; }
.panel p { margin-bottom: 0; font-size: .95rem; }
.tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(254,189,26,.16);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
}

/* ---------- Video cards (shared card system) ---------- */
.vgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-top: 1.6em; }
.vcard {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: #16130d;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.08);
  text-decoration: none;
  transition: transform .4s var(--spring);
}
.vcard[hidden] { display: none; }
a.vcard:hover { transform: translateY(-4px) scale(1.02); }
a.vcard:active { transform: scale(.98); }
.vcard video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vlabel {
  position: absolute;
  inset: 0 0 auto 0;
  padding: 12px 14px 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.35) 55%, rgba(0,0,0,0));
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.vgo {
  position: absolute;
  right: 10px; bottom: 10px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transition: transform .45s var(--spring);
}
a.vcard:hover .vgo { transform: rotate(45deg); }

/* ---------- Events page listings (2026-11-02) ----------
   Real flyers in the video cards' frame: the name across the top as on the videos, and when,
   where and the price along the bottom over a dark fade, so a bright flyer never hides them. */
.app-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 1.4em;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(254,189,26,.1);
  box-shadow: inset 0 0 0 1px rgba(254,189,26,.35);
}
.app-band p { margin: 0; max-width: 52ch; color: var(--fg); }
.list-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 1.6em; }
/* The phone's own list on a phone, which is the easiest way to pick one of thirteen. Styled to
   sit beside the switch: same height, same pill. */
.parish-pick {
  min-height: 48px;
  max-width: 100%;
  padding: 0 40px 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f8f8f8' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.parish-pick option { background: var(--bg); color: var(--fg); }
.ecard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.einfo {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 40px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.55) 60%, rgba(0,0,0,0));
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.ewhen { font-weight: 600; font-size: .92rem; color: var(--fg); }
.ewhere { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etag {
  align-self: flex-start;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .78rem;
  font-weight: 700;
  text-shadow: none;
}
.etag.off { background: #c2372f; color: #fff; }
.vgrid[aria-busy="true"]:empty::before {
  content: "Loading events…";
  color: var(--muted);
}
.list-note { margin-top: 1.2em; }
.list-more { justify-content: center; }
.list-more button[hidden] { display: none; }

/* ---------- Footer: dark rounded block, links, copyright, big wordmark ---------- */
.footer {
  width: calc(100% - 24px);
  max-width: 1400px;
  margin: 0 auto 12px;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px) 0;
  border-radius: 24px;
  background: rgba(15,10,1,.94);
  color: var(--muted);
  font-size: .95rem;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
/* Wide screens: copyright top left, links top right, wordmark across the bottom (nav comes first in the HTML) */
@media (min-width: 720px) {
  .footer { grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; }
  .footer nav { grid-column: 2; grid-row: 1; grid-template-columns: repeat(4, max-content); gap: 0 40px; }
  .footer p { grid-column: 1; grid-row: 1; padding-top: 10px; }
  .footer-mark { grid-column: 1 / -1; }
}
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  text-decoration: none;
  transition: transform .3s var(--spring);
}
.footer a:hover { color: var(--accent); transform: translateX(3px); }
.footer a:active { transform: translateX(1px); }
.footer p { padding: 20px 0 28px; }
.footer-mark {
  display: block;
  margin-top: 8px;
  padding-top: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
  font-size: clamp(3.6rem, 18vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: .78;
  color: var(--fg);
  white-space: nowrap;
  margin-bottom: -.06em;
  user-select: none;
}
.footer-mark b { color: var(--accent); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
