/* eSKay Productions: the look every page shares (all pages after the landing page).
   Colours and type, the header with the SK dial, the steel divider, the big lit titles,
   and the lit buttons. Each page adds its own sections in its own <style>. */
:root {
  --black: #000;
  --charcoal: #26272b;
  --eggshell: #f0ead6;
  --red: #e0201b;
  --red-hot: #ff2a1c;
  --burgundy: #5a0a15;
  --steel-hi: #f1f2f4;
  --steel: #9a9ea6;
  --steel-lo: #3b3d42;
  --steel-edge: linear-gradient(135deg, #f1f2f4 0%, #8d9199 20%, #2f3034 46%, #c9ccd1 70%, #5d6067 100%);
  --bar-h: 84px;
  --pad: clamp(16px, 2.2vw, 36px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
[id] { scroll-margin-top: 70px; }
body {
  margin: 0;
  min-height: 100svh;
  color: var(--eggshell);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  background: var(--black);
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The logos are stored as cut-outs, so they can be poured in any colour. */
.mark { display: block; background: currentColor; }
.mark-sk {
  aspect-ratio: 1026 / 1059;
  -webkit-mask: url(/assets/logo-sk.webp) center / contain no-repeat;
  mask: url(/assets/logo-sk.webp) center / contain no-repeat;
}
.mark-eskay {
  aspect-ratio: 1358 / 1059;
  -webkit-mask: url(/assets/logo-eskay.webp) center / contain no-repeat;
  mask: url(/assets/logo-eskay.webp) center / contain no-repeat;
}

/* ================= header ================= */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  --badge: 112px; /* size of the SK dial */
  --hang: 44px;   /* how far the dial hangs below the bar */
  --ring: 10px;   /* red showing around the dial */
  height: var(--bar-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); /* equal sides, whatever is in them, so the dial stays dead centre */
  align-items: center;
  --gap: clamp(12px, 2.4vw, 36px);                              /* space between the tabs and the dial */
  --R: calc(var(--badge) / 2 + var(--ring) + 3px);               /* outer edge of the steel ring round the dial */
  --cy: calc(var(--bar-h) + var(--hang) - var(--badge) / 2);     /* how far down the middle of the dial sits */
  --slant: calc(var(--bar-h) * .25);                             /* how far the dividers lean */
  gap: var(--gap);
  padding: 0 var(--pad);
  background:
    radial-gradient(460px 170px at var(--mx, 50%) -50px, rgba(255, 255, 255, .3), transparent 70%),
    linear-gradient(180deg, #ee2c22 0%, #cf1710 52%, #a30d0c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 44px rgba(110, 0, 0, .5);
  transition: height .35s var(--ease-out);
  animation: bar-drop .7s var(--ease-out) both;
}
/* machined steel rail under the red */
.bar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3b3d42, #f1f2f4 16%, #7d8188 33%, #fafafa 50%, #6d7178 67%, #dfe1e4 84%, #3b3d42);
  box-shadow: 0 1px 0 #000;
}
/* the steel ring that curves round the dial inside the bar: it is the dividing line between the dial
   and the tabs next to it, and it meets the half-round below the bar to make one full circle.
   A glint travels round it. */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.bar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--cy);
  z-index: 5;
  width: calc(var(--R) * 2);
  height: calc(var(--R) * 2);
  margin: calc(var(--R) * -1) 0 0 calc(var(--R) * -1);
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from var(--spin), #8d9199, #f1f2f4 8%, #6d7178 22%, #dfe1e4 38%, #7d8188 52%, #fff 60%, #fff 63%, #7d8188 70%, #dfe1e4 84%, #8d9199);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  clip-path: inset(0 0 calc(var(--cy) + var(--R) - var(--bar-h)) 0); /* only the part inside the bar */
  animation: ring-spin 9s linear infinite;
}
@keyframes ring-spin { to { --spin: 360deg; } }
/* the bar swells into a half-round under the dial, steel rail and all */
.bar-bulge {
  --r: calc(var(--badge) / 2 + var(--ring));
  --cy: calc(var(--hang) - var(--badge) / 2);
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 1;
  width: calc(var(--r) * 2 + 6px);
  height: calc(var(--hang) + var(--ring) + 3px);
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(60, 0, 0, .6));
}
.bar-bulge::before, .bar-bulge::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: clip-path .35s var(--ease-out);
}
.bar-bulge::before {
  background: linear-gradient(90deg, #6d7178, #f1f2f4 28%, #fafafa 50%, #dfe1e4 72%, #6d7178);
  clip-path: circle(calc(var(--r) + 3px) at 50% var(--cy));
}
.bar-bulge::after {
  background: linear-gradient(180deg, #a30d0c, #7d090b);
  clip-path: circle(var(--r) at 50% var(--cy));
}
.bar.is-condensed {
  --bar-h: 62px;
  --badge: 76px;
  --hang: 22px;
  --ring: 8px;
  background:
    radial-gradient(460px 170px at var(--mx, 50%) -50px, rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(180deg, rgba(214, 28, 22, .86), rgba(140, 11, 12, .86));
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}

/* the header's tabs. Each word owns its whole slice of the bar, top to bottom. Between two tabs
   runs a leaning groove cut into the bar; next to the dial, the tab ends on the steel ring.
   They are added to every page by /assets/site.js (see "the header's tabs" there), so the list
   lives in one place. .nav-l fills the bar left of the dial, .nav-r the bar to its right. */
.nav { position: relative; z-index: 3; display: grid; align-self: stretch; --under: calc(var(--R) * .95); /* how much of the tab by the dial is hidden behind it */ }
.nav-l { grid-column: 1; grid-row: 1; grid-template-columns: minmax(0, 1.4fr) 0 minmax(0, 1fr); margin: 0 calc((var(--gap) + var(--badge) / 2) * -1) 0 calc(var(--pad) * -1); padding-right: var(--under); }
.nav-r { grid-column: 3; grid-row: 1; grid-template-columns: minmax(0, 1fr) 0 minmax(0, 1.4fr); margin: 0 calc(var(--pad) * -1) 0 calc((var(--gap) + var(--badge) / 2) * -1); padding-left: var(--under); }
.nav-item { position: relative; display: flex; min-width: 0; }
/* each tab reaches half a lean past the groove, and is cut along it */
.nav-l > .nav-item { margin-right: calc(var(--slant) / -2); }
.nav-r > .nav-item { margin-left: calc(var(--slant) / -2); }
.nav-l > .btn { margin: 0 calc(var(--under) * -1) 0 calc(var(--slant) / -2); }
.nav-r > .btn { margin: 0 calc(var(--slant) / -2) 0 calc(var(--under) * -1); }

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding: 0 clamp(6px, 1.2vw, 20px);
  border: 0;
  overflow: hidden;
  cursor: pointer;
  color: #fcf8ea;
  /* three layers: a short bar of light under the word (grows when pointed at), a soft light from above, and the pressed-in shade */
  background:
    linear-gradient(#fcf8ea, #fcf8ea) 50% calc(50% + 15px) / 0 2px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 75%) 0 0 / 100% 0 no-repeat,
    linear-gradient(180deg, rgba(24, 0, 3, .62), rgba(24, 0, 3, .3)) 0 0 / 100% 0 no-repeat;
  background-origin: content-box, border-box, border-box; /* the bar of light centres on the word, not on the whole slice */
  font: inherit;
  font-size: clamp(12px, .95vw, 13.5px);
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: .26em;
  text-indent: .26em; /* balances the space after the last letter, so the word sits dead centre */
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-size .35s var(--ease-out);
}
.nav-item > .btn { flex: 1; }
/* the cuts: along the groove, and (by the dial) along the ring */
.nav-l .nav-item > .btn { padding-right: calc(var(--slant) / 2 + 4px); clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.nav-r .nav-item > .btn { padding-left: calc(var(--slant) / 2 + 4px); clip-path: polygon(0 0, 100% 0, 100% 100%, var(--slant) 100%); }
.nav-l > .btn {
  padding: 0 calc(var(--under) + 4px) 0 calc(var(--slant) / 2 + 4px);
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
  -webkit-mask: radial-gradient(circle at 100% var(--cy), transparent calc(var(--R) - 1.5px), #000 calc(var(--R) - 1px));
  mask: radial-gradient(circle at 100% var(--cy), transparent calc(var(--R) - 1.5px), #000 calc(var(--R) - 1px));
}
.nav-r > .btn {
  padding: 0 calc(var(--slant) / 2 + 4px) 0 calc(var(--under) + 4px);
  clip-path: polygon(0 0, calc(100% - var(--slant)) 0, 100% 100%, 0 100%);
  -webkit-mask: radial-gradient(circle at 0 var(--cy), transparent calc(var(--R) - 1.5px), #000 calc(var(--R) - 1px));
  mask: radial-gradient(circle at 0 var(--cy), transparent calc(var(--R) - 1.5px), #000 calc(var(--R) - 1px));
}
.btn:hover, .btn:focus-visible { outline: none; color: #fff; background-size: 34px 2px, 100% 100%, 100% 0; }
.btn:focus-visible { background-size: 60% 2px, 100% 100%, 100% 0; }
.btn:active { background-size: 34px 2px, 100% 0, 100% 100%; }
/* open, or the page you are on: the slice is pressed in, dark, with its light on */
.btn[aria-expanded="true"], .btn[aria-current="page"] { color: #fff; background-size: 34px 2px, 100% 0, 100% 100%; box-shadow: inset 0 10px 14px -8px rgba(0, 0, 0, .7); }
/* a tab that opens a list: a small arrow that flips when the list is open */
.btn-drop::after {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  margin: -3px 0 0 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s var(--ease-out), margin .3s var(--ease-out);
}
.btn-drop[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(225deg); }
/* the groove between two tabs: a dark cut with a lit edge, leaning the way the ring leans, and
   every few seconds a bead of light slides down it */
.nav-rule { position: relative; z-index: 1; width: 0; pointer-events: none; }
.nav-rule::before, .nav-rule::after { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; transform: skewX(-14deg); }
.nav-r .nav-rule::before, .nav-r .nav-rule::after { transform: skewX(14deg); }
.nav-rule::before {
  background: linear-gradient(90deg, rgba(60, 0, 2, .7) 50%, rgba(255, 214, 204, .55) 50%);
  -webkit-mask: linear-gradient(180deg, transparent 4%, #000 26%, #000 74%, transparent 96%);
  mask: linear-gradient(180deg, transparent 4%, #000 26%, #000 74%, transparent 96%);
}
.nav-rule::after {
  background: linear-gradient(180deg, transparent, #fff 50%, transparent) 0 0 / 100% 34% no-repeat;
  animation: rule-fall 5.2s cubic-bezier(.6, 0, .4, 1) infinite;
}
.nav-r .nav-rule::after { animation-delay: 2.6s; }
@keyframes rule-fall { 0% { background-position: 0 -60%; opacity: 0; } 12% { opacity: 1; } 46% { opacity: 1; } 58%, 100% { background-position: 0 160%; opacity: 0; } }

/* the list that drops out of PORTFOLIOS */
.hubs {
  position: absolute;
  left: var(--pad);
  top: calc(100% + 9px);
  width: 392px;
  text-indent: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .8));
  transition: opacity .2s, transform .3s var(--ease-out), visibility 0s .3s;
}
.nav-r .hubs { left: auto; right: var(--pad); width: 420px; } /* the list on the right hangs from the right */
.hubs.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease-out), visibility 0s; }
.hubs-edge {
  padding: 2px;
  background: var(--steel-edge);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.hubs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #232427 0%, #0c0c0e 100%);
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
}
.hub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 6px 16px 6px 20px;
  font-size: 13px;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--eggshell);
  transition: background .2s, color .2s;
}
li + li .hub-item { box-shadow: inset 0 1px 0 rgba(241, 242, 244, .1); }
a.hub-item::after { /* an arrow: this one goes somewhere */
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
a.hub-item:hover, a.hub-item:focus-visible { outline: none; background: linear-gradient(180deg, #e3261d, #a30d0c); }
a.hub-item[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red-hot); }
/* a hub that is not built yet: greyed out, with "under construction" written on it */
.hub-item.is-soon { color: rgba(240, 234, 214, .34); cursor: not-allowed; }
.hub-item em {
  flex: none;
  padding: 4px 7px 3px;
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: .1em;
  line-height: 1;
  white-space: nowrap;
  color: #17060a;
  background: rgba(240, 234, 214, .55);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

/* the SK badge: a steel-rimmed dial that hangs below the bar */
.bar-logo {
  position: relative;
  z-index: 4;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: var(--badge);
  height: var(--badge);
  margin-bottom: calc(var(--hang) * -1);
  border-radius: 50%;
  color: var(--eggshell);
  text-decoration: none;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .65));
}
.bar-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #f4f5f6, #7b7f86, #26272b, #c9ccd1, #54575d, #f4f5f6, #8a8e95, #2c2d31, #dcdee1, #f4f5f6);
  transition: transform 1.1s var(--ease-out);
}
.bar-logo::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 22%, #33343a 0%, #0d0d0e 62%, #000 100%);
  box-shadow: inset 0 0 22px rgba(224, 32, 27, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.bar-logo .mark { width: 100%; }
/* an unseen disc the size of the ring, so a click anywhere inside the ring is a click on the dial */
.bar-hit { position: absolute; inset: calc((var(--ring) + 3px) * -1); border-radius: 50%; }
/* the SK itself: sized to fill the dial, its strokes thickened a touch, with a soft light behind it */
.bar-mark {
  --fat: calc(var(--badge) * .009);
  position: relative;
  z-index: 1;
  width: 78%;
  margin-top: 3%;
  transition: color .3s;
  filter:
    drop-shadow(var(--fat) 0 0 currentColor) drop-shadow(calc(var(--fat) * -1) 0 0 currentColor)
    drop-shadow(0 var(--fat) 0 currentColor) drop-shadow(0 calc(var(--fat) * -1) 0 currentColor)
    drop-shadow(0 0 calc(var(--badge) * .07) rgba(255, 255, 255, .45));
}
/* "RETURN TO HOME": a small plate that drops out from under the dial while the mouse is on it */
.bar-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + var(--ring) + 12px);
  z-index: 3;
  padding: 2px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -10px);
  background: var(--steel-edge);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: opacity .25s, transform .35s var(--ease-out);
}
.bar-tip span {
  display: block;
  padding: 9px 16px 8px;
  font-size: 12.5px;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--eggshell);
  background: linear-gradient(180deg, #40090f 0%, #17060a 100%);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
@media (hover: hover) {
  .bar-logo:hover .bar-tip { opacity: 1; transform: translate(-50%, 0); }
}
.bar-logo:hover::before, .bar-logo:focus-visible::before { transform: rotate(200deg); }
.bar-logo:hover .bar-mark, .bar-logo:focus-visible .bar-mark { color: var(--red-hot); }
.bar-logo:focus-visible { outline: 2px solid var(--eggshell); outline-offset: 3px; }

/* ================= thin steel divider ================= */
.rule {
  position: relative;
  height: 7px;
  overflow: hidden;
  background: linear-gradient(90deg, #3b3d42, #f1f2f4 16%, #7d8188 33%, #fafafa 50%, #6d7178 67%, #dfe1e4 84%, #3b3d42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(0, 0, 0, .55);
}
.rule::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 28, .5) 30%, #ff2a1c 44%, #fff 50%, #ff2a1c 56%, rgba(255, 42, 28, .5) 70%, transparent);
  animation: glint 5s cubic-bezier(.5, 0, .5, 1) infinite;
}

/* ================= your guide to the archive ================= */
.guide {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vh, 72px) var(--pad) clamp(46px, 7vh, 84px);
  text-align: center;
  background:
    radial-gradient(70% 60% at 50% -5%, rgba(224, 32, 27, .5), transparent 70%),
    radial-gradient(45% 55% at 96% 100%, rgba(90, 10, 21, .75), transparent 72%),
    radial-gradient(40% 50% at 2% 78%, rgba(90, 10, 21, .5), transparent 72%),
    var(--black);
}
.guide-title {
  width: min(100%, 1100px, 118vh);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(4px, .8vw, 12px);
  font-weight: 400;
}
.gt-line {
  display: block;
  font-size: clamp(34px, 8vw, 120px); /* fitted to the title's width by script */
  font-weight: 900;
  font-stretch: 125%;
  line-height: .9;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--eggshell);
  /* eggshell lettering with a hot light that sweeps across it */
  background: linear-gradient(100deg, var(--eggshell) 0%, var(--eggshell) 42%, #fff 47%, #ff6a5e 50%, #fff 53%, var(--eggshell) 58%, var(--eggshell) 100%) 100% 0 / 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(224, 32, 27, .55));
  animation: sheen 5.5s linear infinite;
  transition: transform 1s var(--ease-out), opacity 1s;
}
.gt-line + .gt-line { animation-delay: .35s; }
.js .guide:not(.is-in) .gt-line { opacity: 0; transform: translateX(-9vw); }
.js .guide:not(.is-in) .gt-line + .gt-line { transform: translateX(9vw); }

.guide-main {
  margin-top: clamp(18px, 2.8vh, 32px);
  filter: drop-shadow(0 0 26px rgba(255, 42, 28, .55)) drop-shadow(0 18px 30px rgba(0, 0, 0, .7));
}
.guide-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  max-width: 1100px;
  margin: clamp(20px, 3vh, 34px) auto clamp(12px, 1.8vh, 18px);
  font-size: clamp(11px, 1.4vw, 19px);
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: .3em;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(240, 234, 214, .88);
}
.guide-sub::before, .guide-sub::after {
  content: "";
  flex: 1;
  min-width: 12px;
  height: 1px;
  transition: transform 1.2s .35s var(--ease-out);
}
.guide-sub::before { background: linear-gradient(90deg, transparent, #f1f2f4); transform-origin: right; }
.guide-sub::after { background: linear-gradient(90deg, #f1f2f4, transparent); transform-origin: left; }
.js .guide:not(.is-in) .guide-sub::before, .js .guide:not(.is-in) .guide-sub::after { transform: scaleX(0); }
/* two rows of near-equal width: three short names, then the two long ones */
.guide-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  max-width: 1320px;
  margin: 0 auto;
  filter: drop-shadow(0 0 16px rgba(255, 42, 28, .42)) drop-shadow(0 10px 18px rgba(0, 0, 0, .6));
}

/* a lit button: steel edge, dark red glass, and a lamp inside that drifts until the pointer takes it over */
@property --lx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.lit {
  --lx: 50%;
  --ly: -20%;
  --spot: 260px;
  --cut: 18px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(76px, 9.5vw, 118px);
  padding: 0 clamp(30px, 6vw, 84px);
  font-size: clamp(21px, 3.3vw, 44px);
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55);
  white-space: nowrap;
  color: var(--eggshell);
  background: var(--steel-edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .3s var(--ease-out), filter .3s, opacity .7s;
  animation: lamp 5s ease-in-out infinite alternate;
}
.lit::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), transparent 46%),
    radial-gradient(var(--spot) circle at var(--lx) var(--ly), rgba(255, 128, 108, .98) 0%, rgba(224, 32, 27, .78) 28%, rgba(120, 10, 16, .5) 56%, transparent 80%),
    linear-gradient(180deg, #40090f 0%, #17060a 100%);
  clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px));
}
.lit.is-tracking { animation: none; }
.lit:hover, .lit:focus-visible { --spot: 360px; transform: translateY(-3px); filter: brightness(1.25); outline: none; }
.lit:focus-visible { background: var(--eggshell); }
.lit:active { transform: translateY(1px); filter: brightness(.95); }
.lit-sm {
  --spot: 150px;
  --cut: 12px;
  height: clamp(50px, 5vw, 62px);
  padding: 0 clamp(18px, 2.4vw, 34px);
  font-size: clamp(13px, 1.45vw, 18px);
  font-weight: 800;
  letter-spacing: .1em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .55);
}
.lit-sm:hover, .lit-sm:focus-visible { --spot: 210px; }
.lit-sm:nth-child(even) { animation-direction: alternate-reverse; }
/* a lit button whose page is not built yet: greyed out, with a small tag pinned over its corner.
   Markup: <span class="soon-wrap"><a class="lit is-soon" data-soon>Name</a><span class="soon-tag">Under construction</span></span> */
.soon-wrap { position: relative; display: inline-flex; }
.lit.is-soon, .lit.is-soon:hover, .lit.is-soon:focus-visible, .lit.is-soon:active {
  --spot: 0px;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(1) brightness(.62);
  animation: none;
  color: rgba(240, 234, 214, .6);
}
.soon-tag {
  position: absolute;
  right: -8px;
  top: -10px;
  z-index: 1;
  padding: 5px 9px 4px;
  font-size: clamp(9px, .95vw, 11.5px);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  color: #17060a;
  background: var(--eggshell);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transform: rotate(-4deg);
  transition: opacity .7s .3s;
}
.js .guide:not(.is-in) .soon-tag { opacity: 0; }
/* on the small buttons the tag is smaller too, so it never outgrows its button */
.lit-sm + .soon-tag { right: -6px; top: -8px; padding: 4px 7px 3px; font-size: clamp(7.5px, .78vw, 10px); letter-spacing: .1em; transform: rotate(-3deg); }

/* the middle size: the category buttons on the video pages */
.lit-md {
  --spot: 210px;
  --cut: 15px;
  height: clamp(58px, 7vw, 88px);
  padding: 0 clamp(24px, 3.6vw, 56px);
  font-size: clamp(17px, 2.35vw, 31px);
  letter-spacing: .06em;
}
.lit-md:hover, .lit-md:focus-visible { --spot: 290px; }
.lit-md:nth-child(even) { animation-direction: alternate-reverse; }
.js .guide:not(.is-in) .lit { opacity: 0; transform: translateY(22px); }
.guide-grid .lit:nth-child(2) { transition-delay: .06s; }
.guide-grid .lit:nth-child(3) { transition-delay: .12s; }
.guide-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 1.4vw, 18px); }
.guide-row + .guide-row .lit:nth-child(1) { transition-delay: .18s; }
.guide-row + .guide-row .lit:nth-child(2) { transition-delay: .24s; }
.guide-row + .guide-row .lit:nth-child(3) { transition-delay: .3s; }
.guide.is-in .lit:hover { transition-delay: 0s; }

/* ================= smaller screens ================= */
@media (max-width: 900px) {
  :root { --bar-h: 64px; }
  .btn { letter-spacing: .16em; text-indent: .16em; }
  .nav-r .hubs { left: 8px; right: 8px; width: auto; }
  /* the list hangs below the dial and runs the width of the screen */
  .hubs { position: fixed; left: 8px; right: 8px; top: calc(var(--bar-h) + var(--hang) + var(--ring) + 10px); width: auto; }
  .bar { --badge: 84px; --hang: 28px; --ring: 8px; }
  .bar.is-condensed { --bar-h: 56px; --badge: 68px; --hang: 18px; --ring: 7px; }
  .bar-tip span { font-size: 11px; padding: 8px 13px 7px; }
  .guide-sub { letter-spacing: .22em; }
  .lit { width: 100%; padding: 0 16px; }
  .guide-grid { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .guide-row { display: contents; }
  .lit-sm { width: auto; flex: 1 1 40%; padding: 0 10px; font-size: clamp(10.5px, 3.4vw, 13px); letter-spacing: .08em; }
  .lit-md { width: auto; flex: 1 1 40%; padding: 0 10px; font-size: clamp(13px, 4vw, 17px); }
  .soon-wrap { flex: 1 1 40%; }
  .soon-wrap .lit { flex: 1 1 auto; }
  .soon-tag { right: -4px; }
}

/* phones: the two sections share the bar left of the dial, in slightly tighter lettering */
@media (max-width: 760px) {
  .bar { --pad: 0px; --gap: 6px; }
  /* the lettering grows with the space each side of the dial, up to a comfortable size */
  .btn { font-size: clamp(8px, calc((50vw - var(--badge) / 2 - 42px) / 10.6), 12.5px); font-weight: 700; font-stretch: 92%; letter-spacing: .04em; text-indent: .04em; background-position: 50% calc(50% + 21px), 0 0, 0 0; }
  .nav-l .nav-item > .btn { padding: 0 calc(var(--slant) / 2) 0 0; }
  .nav-r .nav-item > .btn { padding: 0 0 0 calc(var(--slant) / 2); }
  .nav-l > .btn { padding: 0 var(--under) 0 calc(var(--slant) / 2); }
  .nav-r > .btn { padding: 0 calc(var(--slant) / 2) 0 var(--under); }
  /* the arrow moves under the word, so the word gets the whole width of its slice */
  .btn-drop::after { position: absolute; left: 50%; top: calc(50% + 9px); margin: 0 0 0 -3px; }
  .nav-l .btn-drop::after { left: calc(50% - var(--slant) / 4); }
  .nav-r .btn-drop::after { left: calc(50% + var(--slant) / 4); }
  .btn-drop[aria-expanded="true"]::after { margin: 3px 0 0 -3px; }
  .hub-item { min-height: 48px; }
}

@keyframes glint { from { transform: translateX(-110%); } to { transform: translateX(370%); } }
@keyframes sheen { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }
@keyframes lamp { from { --lx: 10%; } to { --lx: 90%; } }
@keyframes bar-drop { from { transform: translateY(-130%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .bar, .rule::after, .gt-line, .lit { animation: none; }
  .nav-rule::after, .bar::before { animation: none; }
  .nav-rule::after { opacity: 0; }
  .btn, .btn-drop::after, .hubs, .hubs.is-open, .hub-item, .bar-logo::before, .bar-tip, .gt-line, .lit, .guide-sub::before, .guide-sub::after { transition: none; }
  html { scroll-behavior: auto; }
}
