/* shared by every page; the home page's own styles are at the end */

:root {
  --ink: #4a2a0c;
  --outline: #5b3412;
  --lip: #cf8206;
  --gold: #f7ab12;
  /* frosted glass (used with a 14px backdrop blur) */
  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 55%, rgba(255, 255, 255, 0.32) 100%);
  --glass-edge: rgba(255, 255, 255, 0.6);
  --white: #ffffff;
  /* 1% of the screen width, but never less than 1% of 225px: every
     width-based size uses this, so below a 225px-wide screen nothing
     scales any further */
  --vw: calc(max(225px, 100vw) / 100);
  --header-h: 62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  /* never wider than the screen, so phones can't pan sideways
     (vertical scrolling still works) */
  overflow-x: hidden;
  overflow-x: clip;
}

html {
  /* always show the scrollbar track, so short pages are as wide as long ones
     and nothing shifts sideways between pages */
  overflow-y: scroll;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;   /* no waiting for a double tap */
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: #29a3f0;
}

/* the sky stays put while the page scrolls. A fixed layer rather than
   background-attachment: fixed, which iOS ignores (it would stretch the sky
   over the whole length of the page) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  background: #29a3f0 url("background.webp") center / cover no-repeat;
}

header, main, footer { position: relative; z-index: 1; }
header { z-index: 2; }   /* the wordmark's picture reaches up over the nav; keep the links on top */

/* sunlight: a warm glow in the top-right plus two sets of soft rays
   turning slowly in opposite directions, so the beams shimmer instead
   of visibly rotating */
.sun {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.sun-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 160px at 82% -4%,
      rgba(255, 254, 245, 1) 0, rgba(255, 250, 228, 0.85) 35%, transparent 100%),
    radial-gradient(circle 900px at 82% -4%,
      rgba(255, 246, 215, 0.55) 0, rgba(255, 238, 195, 0.18) 45%, transparent 100%);
  animation: sun-pulse 9s ease-in-out infinite alternate;
}

.sun-rays {
  position: absolute;
  left: 82%;
  top: -4%;
  width: 240vmax;
  height: 240vmax;
  margin: -120vmax 0 0 -120vmax;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.55) 14%, transparent 42%);
          mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.55) 14%, transparent 42%);
  will-change: transform;
}
.sun-rays.a {
  background: repeating-conic-gradient(
    rgba(255, 250, 225, 0) 0deg, rgba(255, 250, 225, 0.26) 3deg,
    rgba(255, 250, 225, 0) 7deg, rgba(255, 250, 225, 0) 17deg);
  animation: sun-spin 260s linear infinite;
}
.sun-rays.b {
  background: repeating-conic-gradient(
    rgba(255, 250, 225, 0) 0deg, rgba(255, 250, 225, 0.16) 5deg,
    rgba(255, 250, 225, 0) 9deg, rgba(255, 250, 225, 0) 29deg);
  animation: sun-spin 380s linear infinite reverse;
}

@keyframes sun-spin { to { transform: rotate(360deg); } }
@keyframes sun-pulse { from { opacity: 0.8; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .sun-glow, .sun-rays { animation: none; }
}

/* candy buttons: glossy two-tone face, a darker-gold lip inside the
   outline, and a squash-and-spring press */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 18px 9px;   /* extra bottom room for the lip */
  white-space: nowrap;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  background: linear-gradient(180deg,
    #ffe98a 0%, #ffd84f 46%,     /* glossy upper half */
    #ffc52e 54%, #f7ab12 100%);  /* richer lower half */
  border: 3px solid var(--outline);
  border-radius: 999px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.75),   /* top shine */
    inset 0 -5px 0 var(--lip),                 /* lip */
    0 5px 10px rgba(10, 50, 100, 0.28);        /* soft drop */
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.75),
    inset 0 -5px 0 var(--lip),
    0 8px 14px rgba(10, 50, 100, 0.3);
}

.btn:active {
  transform: translateY(2px) scale(1.04, 0.92);
  transition-duration: 0.06s;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 var(--lip),
    0 2px 4px rgba(10, 50, 100, 0.25);
}

.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* round icon-only buttons; height matches the text buttons */
.btn-icon { width: var(--btn, 46px); aspect-ratio: 1; padding: 0 0 4px; }
.btn-icon svg { width: 17px; height: 17px; }

/* frosted glass: the header and footer bars, and the window on top of every
   card. Nothing here has a stroke beyond the glass's own thin edge, so it
   doesn't read as a button (brown outline, shine and lip) */
.bar, .nav-glass, .card-top {
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
.bar, .card { box-shadow: 0 8px 24px rgba(10, 50, 100, 0.2); }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(860px, calc(100% - 24px));
  margin: 0 auto;
  border-radius: 999px;
}

/* keyboard focus; the buttons' white ring would vanish on these surfaces */
.bar a:focus-visible, .nav a:focus-visible, .nav-logo:focus-visible, .card a:focus-visible {
  outline: 3px solid var(--outline);
  outline-offset: 2px;
}

/* header */
header { padding-top: 12px; }

/* two pieces of glass either side of the spinning head: pill ends on the
   outside, shallow hollows with rounded tips on the inside. Each inner end is
   a fixed-width SVG cap (22 x 50, scaled with the bar): one copy masks the
   glass to shape, another draws its thin white edge */
.nav {
  --bar-h: calc(var(--header-h) - 12px);
  --cap: calc(var(--bar-h) * 0.44);
  --reach: calc(var(--cap) * 0.55);   /* how far the tips reach into the middle */
  --mouth: 112px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--mouth) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  width: min(860px, calc(100% - 24px));
  height: var(--bar-h);
  margin: 0 auto;
}
.nav-glass {
  grid-row: 1;
  align-self: stretch;
}
.nav-glass.left {
  grid-column: 1 / 3;
  margin-right: calc(var(--reach) * -1);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 50' preserveAspectRatio='none'%3E%3Cpath d='M13 .5C17.1 .5 20.5 3 18.5 5.7C10 17 10 33 18.5 44.3C20.5 47 17.1 49.5 13 49.5' fill='none' stroke='%23fff' stroke-opacity='.6'/%3E%3C/svg%3E") right / var(--cap) 100% no-repeat border-box, var(--glass);
  --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 50' preserveAspectRatio='none'%3E%3Cpath d='M0 0H13C17.5 0 21.25 2.9 18.9 6C10.5 17 10.5 33 18.9 44C21.25 47.1 17.5 50 13 50H0Z'/%3E%3C/svg%3E") right / var(--cap) 100% no-repeat, linear-gradient(#000, #000) left / calc(100% - var(--cap) + 0.5px) 100% no-repeat;
  -webkit-mask: var(--shape);
          mask: var(--shape);
}
.nav-glass.right {
  grid-column: 4 / 6;
  margin-left: calc(var(--reach) * -1);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 50' preserveAspectRatio='none'%3E%3Cg transform='matrix(-1 0 0 1 22 0)'%3E%3Cpath d='M13 .5C17.1 .5 20.5 3 18.5 5.7C10 17 10 33 18.5 44.3C20.5 47 17.1 49.5 13 49.5' fill='none' stroke='%23fff' stroke-opacity='.6'/%3E%3C/g%3E%3C/svg%3E") left / var(--cap) 100% no-repeat border-box, var(--glass);
  --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 50' preserveAspectRatio='none'%3E%3Cg transform='matrix(-1 0 0 1 22 0)'%3E%3Cpath d='M0 0H13C17.5 0 21.25 2.9 18.9 6C10.5 17 10.5 33 18.9 44C21.25 47.1 17.5 50 13 50H0Z'/%3E%3C/g%3E%3C/svg%3E") left / var(--cap) 100% no-repeat, linear-gradient(#000, #000) right / calc(100% - var(--cap) + 0.5px) 100% no-repeat;
  -webkit-mask: var(--shape);
          mask: var(--shape);
}

/* the head between them, a link home: 16 frames in a strip, 12 a second.
   Clicks anywhere flip its direction and make it wobble (see head.js) */
.nav .nav-logo {
  grid-row: 1;
  grid-column: 3;
  position: relative;
  z-index: 1;   /* over the glass, so its blur never picks the head up */
  justify-self: center;
  width: var(--bar-h);
  height: var(--bar-h);
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: url("head-spin.webp") 0 0 / 1600% 100%;
  animation: head-spin 1.3333s steps(16) infinite;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}
.nav .nav-logo:hover { transform: scale(1.06); }
.nav .nav-logo:active { transform-origin: 50% 80%; transform: scale(1.1, 0.88); transition-duration: 0.06s; }
@keyframes head-spin { to { background-position-x: 106.6667%; } }
@media (prefers-reduced-motion: reduce) { .nav .nav-logo { animation: none; } }

.nav a {
  position: relative;   /* in front of the glass, whose mask would cover it */
  grid-row: 1;
  align-self: stretch;   /* the whole height of the bar can be clicked */
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav a:nth-of-type(1) { grid-column: 1; }
.nav a:nth-of-type(2) { grid-column: 2; }
.nav a:nth-of-type(3) { grid-column: 4; }
.nav a:nth-of-type(4) { grid-column: 5; }
/* hover only changes the colour; the shape behind a link belongs to
   the current page */
.nav a:hover { color: #a34a00; }
.nav a:not(.nav-logo):focus-visible { outline-offset: -6px; }
/* current page: sits behind the links, in column --i (set in each page, then
   moved by site.js) */
.nav-highlight {
  position: relative;
  grid-row: 1;
  grid-column: var(--i);
  align-self: stretch;
  margin: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

/* footer */
footer { padding: 32px 0 max(16px, env(safe-area-inset-bottom)); }
footer .bar {
  gap: 10px 20px;
  padding: 10px 14px 10px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}
footer a { color: var(--ink); }
.footer-text { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-social { display: flex; gap: 2px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: color 0.15s ease;
}
footer a:hover { color: #a34a00; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* pages */
main { flex: 1; width: 100%; }
.page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(860px, calc(100% - 24px));
  margin: 0 auto;
  padding-top: 32px;
}

/* card: a frosted glass window on top (art, or the page's title), then a cream
   panel for the text */
.card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  font-size: 1.05rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.card-top {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.card-top img {
  display: block;
  width: auto;
  height: 96px;
  filter: drop-shadow(0 6px 10px rgba(10, 40, 80, 0.35));
}
/* a picture fills the window edge to edge */
.card-top .picture {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  filter: none;
}
/* an icon in a window the same size as the picture ones */
.card-top.wide { aspect-ratio: 1200 / 630; }
.card-top.wide img { position: relative; height: min(58px, 6.6 * var(--vw)); }
.card-top.mail { position: relative; }
.card-top.mail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/deco-contact.svg") center / cover no-repeat;
}
/* over a solid picture, the edge is drawn on top of the picture itself and
   fainter, so it reads as a soft highlight rather than an outline */
.card-top.opaque { position: relative; border: 0; }
.card-top.opaque::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 0;
  border-radius: inherit;
  pointer-events: none;
}
/* flat caution tape laid across a picture's corners; everything scales with --t */
.tape {
  --t: min(88px, 11 * var(--vw));
  position: absolute;
  z-index: 1;
  width: calc(var(--t) * 7);
  height: calc(var(--t) * 0.56);
  background: repeating-linear-gradient(120deg, var(--gold) 0 calc(var(--t) * 0.4), #221a12 calc(var(--t) * 0.4) calc(var(--t) * 0.8));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),    /* sheen along the top edge */
    inset 0 -2px 0 rgba(255, 255, 255, 0.22),  /* fainter along the bottom */
    0 4px 10px rgba(0, 0, 0, 0.4);
}
.tape.top-right { left: calc(100% - var(--t) * 1.3); top: calc(var(--t) * 0.75); transform: translate(-50%, -50%) rotate(20deg); }
.tape.bottom-left { left: calc(var(--t) * 1.3); top: calc(100% - var(--t) * 0.75); transform: translate(-50%, -50%) rotate(24deg); }
/* a page title instead of art */
.card-top.title {
  min-height: 96px;
  padding: 24px 38px;
  place-items: center start;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}
.card-body {
  flex: 1;
  padding: 30px 38px 36px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #fffbf2 0%, #fff5e0 100%);
}
.card h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.01em; }
.card h2 { font-size: 1.3rem; line-height: 1.3; }
.card-body > * + * { margin-top: 14px; }
.card-body > * + h2 { margin-top: 28px; }
.card a:not(.btn) { color: #8a4500; font-weight: 500; overflow-wrap: anywhere; }
.card a:not(.btn):hover { color: var(--ink); }
.card .btn { margin-top: 20px; }

/* contact */
.card .details h1 { font-size: 1.25rem; line-height: 1.3; letter-spacing: 0; }
.details h1 + p { margin-top: 4px; }
.card .story.details .facts { margin-top: 18px; }
.story .actions {   /* two buttons of one size */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: max-content;
  margin-top: 22px;
}
.card .story .btn { margin-top: 0; }

/* about and games: short sections, and the game's facts as a table */
.card .story h2 { font-size: 1.125rem; letter-spacing: -0.01em; }
.story > h2 + p { margin-top: 4px; }
.facts { border-top: 1px solid rgba(91, 52, 18, 0.16); }
.card .story .facts { margin-top: 10px; }
.facts > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(91, 52, 18, 0.16);
  font-size: 0.96rem;
}
.facts dt { font-weight: 700; }

.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: #ffe9b0;
  font-size: 0.85rem;
  font-weight: 700;
}

/* phones */
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .nav { --mouth: 72px; padding: 0 3px; }
  .nav-glass.left { margin-left: -3px; }
  .nav-glass.right { margin-right: -3px; }
  .nav-highlight { margin: 5px 3px; }
  .nav a { padding: 0; font-size: min(0.8rem, 3.25 * var(--vw)); }
  .page { padding-top: 20px; }
  .card-body { padding: 24px 24px 28px; }
  .card-top.title { min-height: 80px; padding: 20px 24px; }
  .card h1 { font-size: 1.7rem; }
  .card .details h1 { font-size: 1.2rem; }
  .story .actions { grid-template-columns: 1fr; width: 100%; }
  .story .btn.light {
    --lip: #e6bf62;
    background: linear-gradient(180deg, #fffdf4 0%, #fff6d8 46%, #ffefbd 54%, #ffe7a0 100%);
  }
  .facts > div { grid-template-columns: 96px 1fr; }
  .details .facts > div { grid-template-columns: 70px 1fr; gap: 10px; }
  footer .bar {
    flex-direction: column;
    border-radius: 28px;
    padding: 10px 16px 14px;
  }
  .footer-social { order: -1; justify-content: center; }
  .footer-text { justify-content: center; }
}

/* contact on small phones */
@media (max-width: 385px) {
  .details .facts > div { grid-template-columns: 1fr; gap: 0; }   /* the address stays on one line */
}

/* very narrow phones: keep the email address on one line */
@media (max-width: 360px) {
  .card-body { padding: 22px 16px 26px; }
  .card-top.title { padding: 18px 16px; }
}

/* ---- home page ---- */

:root {
  /* the hero is a stack: wordmark, then tagline. The wordmark is trimmed
     to its lettering (which fills 10.7%..91.9% of the PNG's height and
     4.2%..95.7% of its width), so the gaps measure from the letters
     themselves. Its size is capped by the screen width, by 68% of the
     height, and by the height left over once --peek is kept for the cards
     below. svh, not dvh: the page scrolls, and the hero shouldn't resize as
     mobile browser bars hide */
  --gap: min(28px, 3vh);
  --peek: 164px;
  --hero-pad: min(24px, 2.5vh);
  --hero-top: min(32px, 4vh);   /* held back from the wordmark's size */
  --screen: 100vh;
  --hero-h: calc(var(--screen) - var(--header-h) - var(--peek));
  --wordmark-full: max(110px, min(720px, calc((100 * var(--vw) - 32px) / 0.915), 0.68 * var(--screen),
    calc((var(--hero-h) - 2 * var(--hero-pad) - var(--hero-top) - 76px - var(--gap)) / 0.8125)));
  /* 85% of what would fit */
  --wordmark-size: calc(var(--wordmark-full) * 0.85);
}
@supports (height: 100svh) { :root { --screen: 100svh; } }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--hero-pad) + 12px) 16px var(--hero-pad);
  gap: var(--gap);
  text-align: center;
  /* clicks on the hero never select text or drag images */
  -webkit-user-select: none;
          user-select: none;
  -webkit-touch-callout: none;
}
.hero img {
  -webkit-user-drag: none;
          user-drag: none;
}
.hero + .page { padding-top: 4px; }

/* studio and game, side by side as equals (stacked on phones), with the
   buttons lined up along the bottom */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* line art behind the icons: orbits for the studio, a tactical display for
   the game */
.pair .card-top { position: relative; }
.pair .card-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/deco-studio.svg") center / cover no-repeat;
}
.pair .card:last-child .card-top::before { background-image: url("/assets/deco-game.svg"); }
.pair .card-top img { position: relative; height: 88px; }
.pair .card-top .phone { height: 110px; }
.pair .card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 26px 28px 30px;
}
.pair .card-body > * { margin-top: 0; }
.pair .card-body h2 { font-size: 1.125rem; letter-spacing: -0.01em; }
.pair .card-body .btn { margin-top: auto; }
.pair .card-body p { margin-bottom: 16px; font-size: 0.94rem; line-height: 1.55; }
@media (max-width: 640px) {
  .pair { grid-template-columns: 1fr; }
  .pair .card-body { padding: 20px 22px 26px; }
  .pair .card-body .btn { align-self: stretch; }
}

.wordmark-stack {
  position: relative;
  /* flow-root keeps the shadow wrapper's margin from merging with the
     trim below, so the trim actually applies */
  display: flow-root;
  width: var(--wordmark-size);
  /* trim the PNG's transparent padding so the box hugs the lettering */
  margin: calc(var(--wordmark-size) * -0.107) 0 calc(var(--wordmark-size) * -0.0806);
}

.wordmark-stack img {
  display: block;
  width: 100%;
  height: auto;
}

/* the drop shadow sits on its own padded wrapper around the base layer:
   the padding gives the shadow room (some mobile browsers clip a shadow
   at the image's edge, which showed as a faint line above the tagline),
   and keeping it apart from the spotlight means moving the spotlight
   never forces the shadow to be redrawn. Negative margins cancel the
   padding so the layout is unchanged */
.wordmark-shadow {
  display: block;
  padding: 0 min(40px, 4 * var(--vw)) 56px;
  margin: 0 calc(-1 * min(40px, 4 * var(--vw))) -56px;
  filter: drop-shadow(0 12px 24px rgba(20, 60, 110, 0.3));
}

/* hover spotlight: a 20% lighter copy, revealed only through a soft
   circle that follows the cursor (desktop only) */
.wordmark-glow {
  display: none;
  position: absolute;
  inset: 0;
  /* its own compositing layer, so redrawing the spotlight touches
     nothing else on the page (the sun keeps animating smoothly) */
  will-change: transform;
  transform: translateZ(0);
  filter: brightness(1.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  --spot: radial-gradient(circle 150px at var(--mx, 50%) var(--my, 50%),
    #000 0%, rgba(0, 0, 0, 0.55) 40%, transparent 100%);
  -webkit-mask-image: var(--spot);
          mask-image: var(--spot);
}

@media (hover: hover) and (pointer: fine) {
  .wordmark-glow { display: block; }
  .wordmark:hover .wordmark-glow { opacity: 1; }
}

/* small tracked caps, two stacked lines */
.tagline {
  width: max-content;   /* sized by its two lines, centred by the column */
  font-size: min(0.8rem, 3.6 * var(--vw));
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(10, 40, 80, 0.35), 0 2px 10px rgba(10, 40, 80, 0.25);
}

.tagline > span { display: block; white-space: nowrap; }

/* a gap 35% the width of a normal space (a full space adds 0.416em) */
.tight-gap { margin-right: 0.146em; }
