/* ==========================================================================
   Accounting Firm Coach — website
   Source: realizejason/accounting-firm-coach (templates/sponsors-page is the
   shipped reference). The page is the green promo desktop: stack as the logo,
   cells as nav, every block of content in a window, data in sheets.
   Mobile-first. Breakpoints: 720px (tablet), 960px (desktop).
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "ABC Social"; src: url("/assets/fonts/ABCSocial-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ABC Social"; src: url("/assets/fonts/ABCSocial-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "ABC Social"; src: url("/assets/fonts/ABCSocial-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PP Supply Mono"; src: url("/assets/fonts/PPSupplyMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PP Supply Mono"; src: url("/assets/fonts/PPSupplyMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Tokens — nine colors, each with one job ---------- */
:root {
  --c-jet: #0E0E0E;      /* type, borders, dark surfaces */
  --c-cream: #FEFFEE;    /* light surface, taskbar */
  --c-white: #FFFFFF;    /* cells, windows, sheets */
  --c-olive: #EFF0D8;    /* gutters, title bars */
  --c-green: #00AA69;    /* the fill handle, the active cell, the desktop */
  --c-cyan: #00AED6;     /* selection */
  --c-red: #F45344;      /* on air (the Jason dot), errors — only */
  --c-yellow: #FFC501;   /* the highlighted cell: the word that matters */
  --c-pink: #FECDE0;     /* rare accent fill */

  --line-structure: #0E0E0E;
  --line-sheet: rgba(14, 14, 14, 0.22);
  --grid-line-color: rgba(254, 255, 238, 0.28); /* on green */

  --win-shadow: 8px 8px 0 rgba(14, 14, 14, 0.12);
  --handle-shadow: 0 0 0 .5px rgba(14, 14, 14, .18), 0 1px 2px rgba(14, 14, 14, .22);

  --ff-sans: "ABC Social", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ff-mono: "PP Supply Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-snap: cubic-bezier(.2, .9, .2, 1);
  --ease-boop: cubic-bezier(.34, 1.56, .64, 1);

  --tilt: 0.45deg;
  --edge: 16px;           /* page edge; desktop is 72px like the template */
  --max: 1296px;
  --gw: 36px;             /* sheet gutter */
  --cell-b: 3px;          /* cell border at page scale on phones */
}
@media (min-width: 720px) { :root { --edge: 40px; --gw: 48px; --cell-b: 3.5px; } }
@media (min-width: 960px) { :root { --edge: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: var(--ff-sans); font-size: 16px; line-height: 1.5; font-weight: 400;
  color: var(--c-jet);
  /* the desktop: gridlines to every edge */
  background-color: var(--c-green);
  background-image: linear-gradient(var(--grid-line-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
  background-size: 72px 40px;
  overflow-x: clip;
  text-wrap: pretty;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--c-cyan); color: var(--c-jet); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--c-cyan); }
:focus-visible { outline: 3px solid var(--c-cyan); outline-offset: 2px; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
p strong, p b { font-weight: 500; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
ul { margin: 0; padding-left: 1.1em; }
li + li { margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--c-jet); color: var(--c-cream); padding: 8px 14px; font-family: var(--ff-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.skip:focus { top: 8px; color: var(--c-cream); }

.page { width: 100%; max-width: calc(var(--max) + var(--edge) * 2); margin: 0 auto; padding-left: var(--edge); padding-right: var(--edge); }
main.page { flex: 1; padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 48px; }
@media (min-width: 720px) { main.page { padding-top: 64px; padding-bottom: 96px; gap: 56px; } }

/* ---------- Mono voice ---------- */
.mono { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
.mono-dim { opacity: .6; }
.tag {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-family: var(--ff-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
  background: var(--c-jet); color: var(--c-cream); padding: 6px 12px;
}

/* ---------- The cell ---------- */
.cell {
  position: relative;
  display: block;
  background: var(--c-white); color: var(--c-jet);
  border: var(--cell-b) solid var(--c-jet);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1;
}
.cell--inv { background: var(--c-jet); color: var(--c-cream); }
.cell--hl { background: var(--c-yellow); }

/* The fill handle: green square, white ring, one per frame */
.handle::after {
  content: "";
  position: absolute; right: -9px; bottom: -9px;
  width: 15px; height: 15px;
  background: var(--c-green);
  border: 2.5px solid var(--c-white);
  box-shadow: var(--handle-shadow);
  pointer-events: none;
}
.handle--sm::after { right: -8px; bottom: -8px; width: 13px; height: 13px; }

/* Headline — a stack of cells, borders merged, each hugging its text */
.headline { display: flex; flex-direction: column; align-items: flex-start; font-size: clamp(30px, 6.4vw, 64px); max-width: 100%; }
.headline .cell { border-width: clamp(3px, .4vw, 4px); padding: .26em .42em .28em; letter-spacing: -0.035em; max-width: 100%; }
.headline .cell + .cell { margin-top: calc(clamp(3px, .4vw, 4px) * -1); }
.headline--xl { font-size: clamp(36px, 8vw, 88px); }
.headline--sm { font-size: clamp(24px, 4.4vw, 44px); }
.headline .cell.kicker { font-size: .38em; letter-spacing: -0.02em; padding: .55em .8em .6em; border-width: clamp(2.5px, .3vw, 3px); line-height: 1.2; }

/* Typed text: a 3px block caret, steps() blink, out of the text flow */
.caret { display: inline-block; width: 3px; height: .92em; margin-right: -3px; background: var(--c-jet); vertical-align: -0.1em; animation: afc-caret 1s steps(1) infinite; }
.cell--inv .caret { background: var(--c-cream); }
@keyframes afc-caret { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }

/* ---------- Header: stack as the logo, cells as the nav ---------- */
.top { padding-top: 24px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 720px) { .top { padding-top: 40px; } }
@media (min-width: 960px) { .top { padding-top: 56px; flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 32px; } }

.logo { display: inline-flex; flex-direction: column; align-items: stretch; align-self: flex-start; text-decoration: none; color: var(--c-jet); font-size: 26px; }
.logo:hover { color: var(--c-jet); }
.logo span { border: 3px solid var(--c-jet); background: var(--c-white); padding: 7px 14px 8px 12px; font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.logo span + span { margin-top: -3px; }
.logo span:last-child { position: relative; }
.logo span:last-child::after { content: ""; position: absolute; right: -8px; bottom: -8px; width: 13px; height: 13px; background: var(--c-green); border: 2.5px solid var(--c-white); box-shadow: var(--handle-shadow); }
@media (min-width: 720px) {
  .logo { font-size: 38px; min-width: 220px; }
  .logo span { border-width: 3.5px; padding: 10px 19px 10px 16px; }
  .logo span + span { margin-top: -3.5px; }
}

.nav { display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; padding: 3px 0 0 3px; }
.nav a {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  min-height: 46px;
  padding: 10px 8px;
  background: var(--c-white); color: var(--c-jet);
  border: 3px solid var(--c-jet);
  font-size: 15px; font-weight: 500; letter-spacing: -0.02em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  position: relative;
  transition: background-color 120ms var(--ease-snap);
}
.nav a { margin: -3px 0 0 -3px; }
@media (max-width: 559px) { .nav a { flex-basis: 30%; } .nav a:nth-child(n+4) { flex-basis: 45%; } }
.nav a:hover { background: var(--c-yellow); color: var(--c-jet); }
.nav a[aria-current="page"] { background: var(--c-jet); color: var(--c-cream); z-index: 1; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; right: -9px; bottom: -9px; width: 15px; height: 15px; background: var(--c-green); border: 2.5px solid var(--c-white); box-shadow: var(--handle-shadow); }
@media (min-width: 480px) { .nav a { font-size: 17px; padding: 12px 14px; } }
@media (min-width: 720px) {
  .nav { width: auto; align-self: flex-start; flex-wrap: nowrap; padding: 0; }
  .nav a { flex: 0 0 auto; font-size: 20px; padding: 13px 22px; border-width: 3.5px; margin: 0; }
  .nav a + a { margin-left: -3.5px; }
}
@media (min-width: 720px) and (max-width: 1099px) { .nav a { font-size: 17px; padding: 12px 16px; } }
@media (min-width: 1200px) { .nav a { font-size: 22px; padding: 14px 26px; } }

/* ---------- The window ---------- */
.win {
  position: relative;
  background: var(--c-white); color: var(--c-jet);
  border: 1.5px solid var(--c-jet);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--win-shadow);
  display: flex; flex-direction: column;
  min-width: 0;
}
.tilt-l { rotate: calc(var(--tilt) * -1); }
.tilt-r { rotate: var(--tilt); }
.tilt-l-sm { rotate: -0.3deg; }
.tilt-r-sm { rotate: 0.3deg; }
@media (max-width: 719px) { .tilt-l, .tilt-l-sm { rotate: -0.3deg; } .tilt-r, .tilt-r-sm { rotate: 0.3deg; } }

.win__bar { display: flex; align-items: stretch; height: 40px; flex-shrink: 0; background: var(--c-olive); border-bottom: 1px solid var(--c-jet); }
.win__title { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0 14px; background: var(--c-white); border-right: 1px solid var(--c-jet); font-size: 14px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__title .dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--c-red); }
.win__ctrls { margin-left: auto; display: flex; flex-shrink: 0; }
.win__ctrls span { width: 40px; border-left: 1px solid var(--c-jet); display: flex; align-items: center; justify-content: center; }
.win__ctrls svg { width: 12px; height: 12px; }
@media (min-width: 720px) {
  .win__bar { height: 44px; }
  .win__title { font-size: 15px; padding: 0 16px; }
  .win__ctrls span { width: 44px; }
}
.win__body { position: relative; flex: 1; min-width: 0; }
.win__pad { padding: 24px 20px; }
@media (min-width: 720px) { .win__pad { padding: 36px; } }

/* The Jason window: the host as an open app, footage cover-fit on the face */
.jason .win__body { position: relative; overflow: hidden; background: var(--c-jet); min-height: 280px; }
.jason .win__body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* ---------- The sheet: column letters and row numbers always show ---------- */
.sheet { display: grid; grid-template-columns: var(--gw) var(--cols, 1fr); font-size: 16px; }
.sh-corner, .sh-col { background: var(--c-olive); border-bottom: 1px solid var(--c-jet); height: 32px; font-family: var(--ff-mono); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.sh-corner { border-right: 1px solid var(--c-jet); }
.sh-col + .sh-col { border-left: 1px solid var(--c-jet); }
.sh-row { display: contents; }
.sh-n { background: var(--c-olive); border-right: 1px solid var(--c-jet); border-bottom: 1px solid var(--line-sheet); font-family: var(--ff-mono); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.sh-c { min-width: 0; padding: 18px 20px; border-bottom: 1px solid var(--line-sheet); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.sh-c + .sh-c { border-left: 1px solid var(--line-sheet); }
.sh-row:last-child > * { border-bottom: none; }
.sh-c--top { justify-content: flex-start; }
.sh-c--flush { padding: 0; }
.sh-c--flush img { width: 100%; height: 100%; object-fit: cover; }
.sh-c--hl { background: var(--c-yellow); }
.sh-c--live { box-shadow: inset 0 0 0 3px var(--c-green); }
@media (min-width: 720px) { .sh-c { padding: 24px; } }

/* Phones: each row's cells stack beside the row number, under one merged column header. */
@media (max-width: 719px) {
  .sheet { grid-template-columns: var(--gw) 1fr; }
  .sheet--wide .sh-col:not(:nth-child(2)) { display: none; }
  .sheet--wide .sh-col:nth-child(2) { font-size: 0; }
  .sheet--wide .sh-col:nth-child(2)::after { content: attr(data-span); font-size: 13px; }
  .sheet--wide .sh-row { display: grid; grid-column: 1 / -1; grid-template-columns: var(--gw) 1fr; border-bottom: 1px solid var(--line-sheet); }
  .sheet--wide .sh-row:last-child { border-bottom: none; }
  .sheet--wide .sh-row > * { border-bottom: none; }
  .sheet--wide .sh-n { grid-row: 1 / span 6; align-items: flex-start; padding-top: 20px; }
  .sheet--wide .sh-c { grid-column: 2; border-left: none; }
  .sheet--wide .sh-c + .sh-c { border-top: 1px solid var(--line-sheet); }
}

/* Sponsors roster on phones: one compact block per sponsor, A–D in reading order */
@media (max-width: 719px) {
  .sponsors .sh-c { padding: 4px 16px; gap: 0; }
  .sponsors .sh-c + .sh-c { border-top: none !important; }
  .sponsors .sh-c[data-col="A"] { padding-top: 16px; }
  .sponsors .sh-c[data-col="C"] { padding-top: 8px; }
  .sponsors .sh-c[data-col="D"] { padding-bottom: 16px; }
  .sponsors .sh-n { padding-top: 18px; }
}

/* ---------- Tech: app database category preview ---------- */
.appdb { display: flex; flex-direction: column; gap: 40px; }
.appdb-note { max-width: none; margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--c-jet); background: var(--c-olive); }
.appdb-cat { display: block; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.appdb-blurb { font-size: 15px; line-height: 1.4; opacity: .7; }
.appdb-btn, .appdb-lock {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border: 2.5px solid var(--c-jet); background: var(--c-white); color: var(--c-jet);
  font-family: var(--ff-sans); font-size: 16px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; cursor: pointer;
}
.appdb-btn:hover { background: var(--c-cyan); color: var(--c-jet); }
.is-viewing .appdb-btn { background: var(--c-jet); color: var(--c-cream); }
/* the open category is the selected row: cyan */
.is-viewing > .sh-c { background: var(--c-cyan); }
.is-locked .appdb-cat, .is-locked .appdb-blurb, .is-locked .appdb-num b { opacity: .45; }
.appdb-lock { background: var(--c-yellow); }
.appdb-lock:hover { background: var(--c-white); color: var(--c-jet); }
.appdb-app { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.appdb-why { font-size: 15px; line-height: 1.45; }
.rating { display: inline-flex; align-self: flex-start; padding: 5px 10px; border: 2px solid var(--c-jet); font-family: var(--ff-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.rating--leader { background: var(--c-green); color: var(--c-cream); }
.rating--contender { background: var(--c-white); }
.rating--watching { background: var(--c-olive); }
.rating--laggard { background: var(--c-jet); color: var(--c-cream); }
.rating--unrated { background: transparent; border-style: dashed; }
.appdb-sheet .sh-c { padding: 14px 18px; }
@media (max-width: 719px) { .appdb-sheet .sh-c { padding: 8px 16px; } .appdb-sheet .sh-c[data-col="A"] { padding-top: 16px; } }
/* the category table: row 1 is a header row; counts sit in narrow columns */
.appdb-head > .sh-c { padding-top: 10px !important; padding-bottom: 10px !important; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: var(--c-cream); }
.appdb-head .rating { font-size: 11px; padding: 4px 7px; letter-spacing: .04em; }
.appdb-list .sh-c { padding: 14px 18px; }
.appdb-list .appdb-num { align-items: center; padding-left: 6px; padding-right: 6px; text-align: center; }
.appdb-num b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.appdb-total b { font-size: 28px; }
.appdb-act { align-items: stretch; }
.appdb-list .appdb-btn, .appdb-list .appdb-lock { width: 100%; white-space: nowrap; font-size: 15px; padding: 0 12px; }
.appdb-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
a.appdb-app { color: var(--c-jet); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a.appdb-app:hover { background: var(--c-yellow); }
a.appdb-app::after { content: " \2197"; font-size: .8em; }
.appdb-move { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border: 1.5px solid var(--c-jet); }
.appdb-move--up { background: var(--c-green); color: var(--c-cream); }
.appdb-move--up::before { content: "\2191 "; }
.appdb-move--down { background: var(--c-white); }
.appdb-move--down::before { content: "\2193 "; }
@media (max-width: 1099px) and (min-width: 720px) {
  .appdb-head .rating { font-size: 9.5px; padding: 3px 4px; }
  .appdb-list .appdb-blurb { display: none; }
}
/* phones: one block per category — name + total, a strip of the four counts, the button */
@media (max-width: 719px) {
  .appdb-head { display: none !important; }
  .appdb-list .sh-row { grid-template-columns: var(--gw) repeat(4, minmax(0, 1fr)); }
  .appdb-list .sh-c { border-top: none !important; padding: 6px 12px; }
  .appdb-list .sh-c[data-col="A"] { grid-column: 2 / span 3; grid-row: 1; padding-top: 14px; }
  .appdb-list .appdb-blurb { display: none; }
  .appdb-list .appdb-total { grid-column: 5; grid-row: 1; padding-top: 14px; align-items: flex-end; }
  .appdb-list .appdb-num:not(.appdb-total) { grid-row: 2; padding: 4px 4px 8px; gap: 4px; }
  .appdb-list .appdb-num[data-col="C"] { grid-column: 2; }
  .appdb-list .appdb-num[data-col="D"] { grid-column: 3; }
  .appdb-list .appdb-num[data-col="E"] { grid-column: 4; }
  .appdb-list .appdb-num[data-col="F"] { grid-column: 5; }
  .appdb-list .appdb-num[data-label]::after { content: attr(data-label); order: 2; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; opacity: .6; }
  .appdb-list .appdb-num.appdb-total::after { display: none; }
  .appdb-list .appdb-total b::after { content: " apps"; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; font-weight: 400; }
  .appdb-list .appdb-num:not(.appdb-total) b { font-size: 18px; }
  .appdb-list .appdb-act { grid-column: 2 / -1; grid-row: 3; padding-bottom: 14px; }
  .appdb-list .sh-n { grid-row: 1 / span 3; }
  /* a full category runs thousands of px tall: tilted, its corners would swing off-screen */
  .appdb-sheet { rotate: none; }
  .appdb-sheet .appdb-head { display: none !important; }
}

/* Tech: the database teaser — a real sheet, pixelated past reading, that
   points at the email field. Column letters and tabs stay crisp. */
.teaser { display: flex; flex-direction: column; width: 100%; max-width: 540px; justify-self: center; color: var(--c-jet); text-decoration: none; transition: transform 220ms var(--ease-boop), box-shadow 220ms var(--ease-snap); }
.teaser:hover, .teaser:focus-visible { color: var(--c-jet); transform: translate(-4px, -4px); box-shadow: 12px 12px 0 rgba(14, 14, 14, .16); }
.teaser__cols { display: grid; grid-template-columns: var(--tcols, 34fr 130fr 100fr 112fr 264fr); height: 28px; background: var(--c-olive); border-bottom: 1px solid var(--c-jet); font-family: var(--ff-mono); font-size: 12px; }
.teaser__cols span { display: flex; align-items: center; justify-content: center; }
.teaser__cols span + span { border-left: 1px solid var(--c-jet); }
.teaser__sheet { position: relative; aspect-ratio: 96 / 125; overflow: hidden; background: var(--c-white); }
.teaser__sheet img { width: 100%; height: 100%; image-rendering: pixelated; }
/* the sheet runs on past the frame: fade it into more rows */
.teaser__sheet::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .55)); pointer-events: none; }
.teaser__cta { position: absolute; z-index: 1; left: 50%; top: 46%; translate: -50% -50%; rotate: -1.2deg; white-space: nowrap; font-size: clamp(20px, 2.4vw, 28px); padding: .55em .8em .6em; box-shadow: 8px 8px 0 rgba(14, 14, 14, .18); }
.teaser__cta::after { content: ""; position: absolute; right: -9px; bottom: -9px; width: 15px; height: 15px; background: var(--c-green); border: 2.5px solid var(--c-white); box-shadow: var(--handle-shadow); }
.teaser:hover .teaser__cta { background: var(--c-jet); color: var(--c-cream); }
.teaser__foot { display: flex; align-items: stretch; height: 34px; border-top: 1px solid var(--c-jet); background: var(--c-olive); font-size: 13px; }
.teaser__tabs { flex: 1; min-width: 0; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.teaser__tab { flex: 0 0 auto; display: flex; align-items: center; padding: 0 12px; border-right: 1px solid var(--c-jet); white-space: nowrap; font-weight: 500; }
.teaser__tab.is-on { background: var(--c-white); box-shadow: inset 0 -3px 0 var(--c-green); }
.teaser__count { flex: 0 0 auto; display: flex; align-items: center; padding: 0 12px; background: var(--c-jet); color: var(--c-cream); font-family: var(--ff-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 899px) { .teaser:hover { transform: none; } }
@media (max-width: 719px) { .hide-sm { display: none; } }
/* landscape version (newsletter bonus): wider sheet, a two-cell headline as the call */
.teaser--wide { max-width: none; --tcols: 34fr 150fr 120fr 112fr 624fr; }
.teaser--wide .teaser__sheet { aspect-ratio: 2 / 1; }
.teaser--wide .teaser__cta { display: flex; flex-direction: column; align-items: flex-start; padding: 0; background: none; border: 0; box-shadow: none; font-size: clamp(22px, 3.4vw, 44px); white-space: normal; width: max-content; max-width: 90%; }
.teaser--wide .teaser__cta .cell { padding: .3em .45em .32em; border-width: clamp(3px, .4vw, 4px); letter-spacing: -0.035em; box-shadow: 8px 8px 0 rgba(14, 14, 14, .18); }
.teaser--wide .teaser__cta .cell + .cell { margin-top: calc(clamp(3px, .4vw, 4px) * -1); }
.teaser--wide .teaser__cta::after { right: -9px; bottom: -9px; }
.teaser--wide:hover .teaser__cta { background: none; color: inherit; }
.teaser--wide:hover .teaser__cta .cell--hl { background: var(--c-jet); color: var(--c-cream); }
@media (max-width: 719px) { .teaser--wide .teaser__sheet { aspect-ratio: 4 / 3; } .teaser--wide .teaser__sheet img { object-fit: cover; object-position: left top; } .teaser--wide .teaser__cols { display: none; } }

/* Sponsor logo marks (black, transparent PNGs, all 300px tall) */
.sponsor-logo { display: inline-flex; align-items: center; max-width: 100%; }
.sponsor-logo img { display: block; height: calc(30px * var(--s, 1)); width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
/* --s per logo (set in the page): equal visual area, so wide wordmarks don't outshout compact ones */
.sponsor-logo--hero img { height: calc(clamp(52px, 7vw, 84px) * var(--s, 1)); }
.sponsor-logo:hover img { opacity: .75; }

/* ---------- Buttons are cells that press ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  min-height: 54px;
  padding: 14px 24px;
  background: var(--c-jet); color: var(--c-cream);
  border: 3px solid var(--c-jet);
  font-family: var(--ff-sans); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 120ms var(--ease-snap), color 120ms var(--ease-snap), translate 120ms var(--ease-snap);
}
.btn:hover { background: var(--c-cyan); color: var(--c-jet); }
.btn:active { translate: 0 2px; box-shadow: inset 0 2px 0 rgba(14, 14, 14, .10); }
.btn--white { background: var(--c-white); color: var(--c-jet); }
.btn--block { display: flex; width: 100%; align-self: stretch; }
@media (min-width: 720px) { .btn { font-size: 20px; padding: 16px 28px; } }

/* ---------- Forms: a sheet with labels in A and entries in B ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.sheet--form { --cols: minmax(110px, 30%) 1fr; border: 1px solid var(--c-jet); }
.sheet--form .sh-c { padding: 0; }
.sheet--form .sh-n + .sh-c { padding: 0 14px; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.sheet--form label { display: block; }
.entry {
  width: 100%; height: 100%; min-height: 54px;
  padding: 14px;
  border: 0; border-radius: 0;
  background: var(--c-white); color: var(--c-jet);
  font-family: var(--ff-sans); font-size: 17px; font-weight: 500; letter-spacing: -0.02em;
  -webkit-appearance: none; appearance: none;
}
.entry::placeholder { color: var(--c-jet); opacity: .45; }
.entry:focus { outline: none; box-shadow: inset 0 0 0 3px var(--c-green); position: relative; z-index: 1; }
select.entry {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M 2 4 L 6 8 L 10 4' fill='none' stroke='%230E0E0E' stroke-width='1.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
select.entry:invalid { color: rgba(14, 14, 14, .45); }
@media (max-width: 479px) {
  .sheet--form { --cols: 1fr; }
  .sheet--form .sh-row { display: grid; grid-column: 1 / -1; grid-template-columns: var(--gw) 1fr; border-bottom: 1px solid var(--line-sheet); }
  .sheet--form .sh-row:last-child { border-bottom: none; }
  .sheet--form .sh-row > * { border-bottom: none; }
  .sheet--form .sh-n { grid-row: 1 / span 2; }
  .sheet--form .sh-c { grid-column: 2; border-left: none; }
  .sheet--form .sh-n + .sh-c { padding: 10px 14px 0; }
  .sheet--form .sh-c + .sh-c { border-left: none; }
  .sheet--form .sh-col:not(:nth-child(2)) { display: none; }
}
.form-fine { font-size: 14px; line-height: 1.45; }
/* newsletter signup: one merged stack of cells — pitch, what you get, the fields,
   Subscribe. Every cell overlaps the one above by its border width, so each shared
   edge is a single 3px line; the stack tilts as one unit. */
.signup-cells { display: flex; flex-direction: column; align-self: start; width: 100%; --b: 3px; }
.cell-perks { list-style: none; margin: 0; padding: 0; display: contents; }
.cell-stack-item {
  display: flex; align-items: center; width: 100%; min-height: 60px; margin: calc(var(--b) * -1) 0 0;
  padding: 0 20px;
  border: var(--b) solid var(--c-jet); border-radius: 0;
  background: var(--c-white); color: var(--c-jet);
  font-family: var(--ff-sans); font-size: 19px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2;
  -webkit-appearance: none; appearance: none;
}
/* Tech: the access form stands alone now the promo image is gone */
.signup-solo { max-width: 760px; }

/* A headline that carries its pitch: the h1's cells, then one smaller cell
   attached underneath, all in one stack (shared edges, one tilt). */
.headline--pitch > h1 { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; margin: 0; font: inherit; }
.headline .headline__sub {
  margin: calc(clamp(3px, .4vw, 4px) * -1) 0 0; max-width: min(100%, 26em);
  padding: .6em .75em .65em; border-width: clamp(3px, .4vw, 4px);
  font-size: clamp(19px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance;
}

/* Newsletter: headline + signup on the left, a pile of past issues on the right */
.nl-hero { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .nl-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.nl-col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.nl-col > .tag { margin-bottom: -16px; rotate: 1deg; }
.nl-hero .headline--xl { font-size: clamp(36px, 7.4vw, 64px); }
@media (min-width: 960px) { .nl-hero .headline--xl { font-size: clamp(40px, 3.7vw, 54px); } .nl-hero .headline:not(.headline--xl) { font-size: clamp(32px, 2.9vw, 42px); } }
/* the pile: this week's issue in the middle, the nine before it scattered
   around it — offsets are % of a sheet, so the scatter scales with the column */
.nl-pile { position: relative; width: 100%; max-width: 600px; justify-self: center; padding: 24% 0 30%; }
.nl-pile__stack { position: relative; width: 60%; margin: 0 auto; }
.nl-sheet { width: 100%; }
.nl-sheet .win__body { aspect-ratio: 10 / 13; overflow: hidden; }
.nl-sheet .win__body img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nl-sheet:not(.nl-sheet--top) { position: absolute; inset: 0; z-index: calc(10 - var(--i)); box-shadow: 4px 4px 0 rgba(14, 14, 14, .1); translate: var(--dx) var(--dy); rotate: var(--r); }
.nl-sheet--top { position: relative; z-index: 11; rotate: .5deg; box-shadow: 10px 10px 0 rgba(14, 14, 14, .16); }
/* hover: each sheet nudges out of the pile a little (and the front one lifts) */
.nl-sheet { transition: translate 260ms var(--ease-boop), rotate 260ms var(--ease-boop), box-shadow 200ms var(--ease-snap); }
@media (hover: hover) {
  .nl-sheet:not(.nl-sheet--top):hover { translate: calc(var(--dx) * 1.12) calc(var(--dy) * 1.12 - 8px); rotate: calc(var(--r) * 1.25); box-shadow: 8px 8px 0 rgba(14, 14, 14, .16); }
  .nl-sheet--top:hover { translate: -4px -6px; rotate: -.4deg; box-shadow: 14px 14px 0 rgba(14, 14, 14, .18); }
}
.nl-sheet:nth-child(1) { --dx: -34%; --dy: -27%; --r: -6deg; }
.nl-sheet:nth-child(2) { --dx: 33%; --dy: -23%; --r: 5deg; }
.nl-sheet:nth-child(3) { --dx: -36%; --dy: 24%; --r: 4deg; }
.nl-sheet:nth-child(4) { --dx: 35%; --dy: 27%; --r: -5deg; }
.nl-sheet:nth-child(5) { --dx: 0%; --dy: -31%; --r: 1.5deg; }
.nl-sheet:nth-child(6) { --dx: -24%; --dy: -6%; --r: -9deg; }
.nl-sheet:nth-child(7) { --dx: 24%; --dy: 4%; --r: 8deg; }
.nl-sheet:nth-child(8) { --dx: -6%; --dy: 30%; --r: -2deg; }
.nl-sheet:nth-child(9) { --dx: 10%; --dy: -12%; --r: 11deg; }
/* what you get: a cell stack laid across the foot of this week's issue */
.nl-perks { position: absolute; z-index: 20; left: 50%; bottom: 8%; translate: -50% 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; --b: 3px; box-shadow: 8px 8px 0 rgba(14, 14, 14, .16); }
.js .nl-perks.boop { translate: -50% 32px; }
.js .nl-perks.boop.is-in { translate: -50% 0; }
.nl-perks > li:first-child { margin-top: 0; }
.nl-perks .cell-perk { background: var(--c-white); padding-right: 20px; white-space: nowrap; }
@media (max-width: 719px) { .nl-perks { bottom: 4%; } .nl-perks .cell-perk { min-height: 46px; font-size: 17px; } .nl-perks .perk-n { width: 44px; } }

/* the signup fields: big, easy targets */
.signup-cells .cell-input, .signup-cells .cell-submit { min-height: 80px; font-size: 24px; padding: 0 24px; }
@media (min-width: 720px) { .signup-cells .cell-input, .signup-cells .cell-submit { min-height: 96px; font-size: 28px; padding: 0 28px; } }
.signup-cells select.cell-input { padding-right: 56px; background-position: right 24px center; background-size: 16px; }
.cell-pitch { padding: 18px 20px; font-size: 24px; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.cell-perk { gap: 0; padding: 0; background: var(--c-olive); min-height: 52px; font-size: 18px; }
.cell-perk .perk-n { align-self: stretch; display: flex; align-items: center; justify-content: center; width: 52px; flex-shrink: 0; margin-right: 16px; background: var(--c-jet); color: var(--c-cream); font-family: var(--ff-mono); font-size: 14px; }
.cell-input::placeholder { color: var(--c-jet); opacity: .45; }
.cell-input:focus { outline: none; position: relative; z-index: 1; box-shadow: inset 0 0 0 3px var(--c-green); }
select.cell-input { cursor: pointer; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M 2 4 L 6 8 L 10 4' fill='none' stroke='%230E0E0E' stroke-width='1.75'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; background-size: 13px; }
select.cell-input:invalid { color: rgba(14, 14, 14, .45); }
.cell-submit { position: relative; min-height: 64px; background: var(--c-yellow); color: var(--c-jet); cursor: pointer; text-align: left; font-size: 21px; transition: background-color 120ms var(--ease-snap), color 120ms var(--ease-snap); }
.cell-submit::after { content: ""; position: absolute; right: -9px; bottom: -9px; width: 15px; height: 15px; background: var(--c-green); border: 2.5px solid var(--c-white); box-shadow: var(--handle-shadow); }
.cell-submit:hover { background: var(--c-jet); color: var(--c-cream); }
.cell-submit:active { translate: 0 2px; }
.signup-cells .form-status { margin-top: 14px; }
/* playful email check: a small note cell clipped to the bottom of the field */
.field-note { display: none; margin: calc(var(--b) * -1) 0 0; padding: 10px 24px 11px; border: var(--b) solid var(--c-jet); background: var(--c-cream); font-size: 17px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.field-note.is-on { display: block; }
.field-note.is-bad { background: var(--c-white); color: var(--c-red); }
.field-note.is-good { background: var(--c-cream); box-shadow: inset 6px 0 0 var(--c-green); }
.field-note button { font: inherit; color: inherit; background: var(--c-yellow); border: 2px solid var(--c-jet); padding: 0 6px; cursor: pointer; }
.cell-input.is-bad { box-shadow: inset 0 0 0 3px var(--c-red); position: relative; z-index: 1; }
.cell-input.is-shake { animation: afc-shake 360ms var(--ease-snap); }
@keyframes afc-shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
@media (prefers-reduced-motion: reduce) { .cell-input.is-shake { animation: none; } }
@media (min-width: 720px) {
  .cell-stack-item { min-height: 64px; font-size: 20px; padding: 0 24px; }
  .cell-pitch { padding: 22px 24px; font-size: 30px; }
  .cell-perk { padding: 0; min-height: 54px; font-size: 19px; }
  .cell-submit { min-height: 72px; font-size: 22px; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { display: none; border: 3px solid var(--c-jet); padding: 12px 16px; font-weight: 500; }
.form-status.is-ok { display: block; background: var(--c-white); box-shadow: inset 0 0 0 3px var(--c-green); }
.form-status.is-err { display: block; background: var(--c-white); border-color: var(--c-red); color: var(--c-red); }

/* ---------- Stat cells: mono eyebrow over one number ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat .cell { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.035em; padding: .2em .36em .24em; border-width: clamp(3px, .4vw, 4px); }

/* ---------- Layout ---------- */
.grid-2 { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .grid-2--7-5 { grid-template-columns: 7fr 5fr; }
  .grid-2--5-7 { grid-template-columns: 5fr 7fr; }
  .grid-2--center { align-items: center; }
}
.col { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.prose > * + * { margin-top: 16px; }
.lede { font-size: 18px; }
@media (min-width: 720px) { .lede { font-size: 20px; } }
.big { font-size: clamp(24px, 3.2vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
.big--sm { font-size: clamp(20px, 2.2vw, 26px); }
.sponsor-hero-cell { gap: 16px; }
.foot .sh-c > a { display: block; }
.sh-c--empty { background: var(--c-white); }
.name { font-size: clamp(26px, 3.6vw, 40px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.sponsor-name { font-size: clamp(26px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; text-decoration: none; }
.sponsor-hero { font-size: clamp(56px, 8vw, 96px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; text-decoration: none; }
.url { font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Footer: the taskbar — every page, socials at the right ---------- */
.taskbar {
  display: flex; flex-wrap: wrap; align-items: stretch;
  background: var(--c-cream); color: var(--c-jet);
  border-top: 1px solid var(--c-jet);
  font-size: 14px; font-weight: 500; letter-spacing: -0.02em;
}
.taskbar a { text-decoration: none; }
.taskbar__chip { display: flex; align-items: center; height: 46px; padding: 0 16px; background: var(--c-jet); color: var(--c-cream); flex-shrink: 0; }
.taskbar__chip:hover { color: var(--c-cream); }
.taskbar__chip b { position: relative; border: 1.5px solid var(--c-cream); padding: 1px 8px; font-weight: 500; }
.taskbar__chip b::after { content: ""; position: absolute; right: -3.5px; bottom: -3.5px; width: 6px; height: 6px; background: var(--c-green); }
.taskbar__apps { flex: 1 1 0; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.taskbar__apps::-webkit-scrollbar { display: none; }
.taskbar__apps a { display: flex; align-items: center; height: 46px; padding: 0 16px; border-right: 1px solid var(--c-jet); white-space: nowrap; opacity: .6; }
.taskbar__apps a:hover { opacity: 1; color: var(--c-jet); background: var(--c-white); }
.taskbar__apps a[aria-current="page"] { opacity: 1; background: var(--c-white); font-weight: 700; }
.taskbar__socials { display: flex; align-items: stretch; flex-shrink: 0; }
.taskbar__socials a { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-left: 1px solid var(--c-jet); color: var(--c-jet); }
.taskbar__socials a:hover { background: var(--c-yellow); color: var(--c-jet); }
.taskbar__socials svg { width: 20px; height: 20px; }
@media (max-width: 719px) {
  .taskbar__apps { flex-wrap: wrap; overflow: visible; }
  .taskbar__chip { height: auto; align-self: stretch; }
  .taskbar__apps a { flex: 1 1 24%; justify-content: center; padding: 0 6px; border-bottom: 1px solid var(--c-jet); margin-bottom: -1px; font-size: 13px; }
  .taskbar__apps a:nth-child(4n), .taskbar__apps a:last-child { border-right: none; }
}
@media (max-width: 899px) {
  .taskbar__socials { flex: 1 0 100%; border-top: 1px solid var(--c-jet); }
  .taskbar__socials a { flex: 1; border-left: none; }
  .taskbar__socials a + a { border-left: 1px solid var(--c-jet); }
}

/* ---------- Home: full-bleed video hero, before the desktop starts ---------- */
.hero {
  position: relative;
  height: calc(100vh - 56px); height: calc(100svh - 56px);
  min-height: 520px;
  background: var(--c-jet);
  overflow: hidden;
  border-bottom: 1px solid var(--c-jet);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* a flat tint (no gradient) so white outline nav reads on bright frames */
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(14, 14, 14, 0.18); pointer-events: none; }
.hero__copy { z-index: 1; }
.hero__name { position: relative; z-index: 1; margin: 0 0 -3px; font-size: 16px; padding: 8px 14px; }
@media (min-width: 720px) { .hero__name { font-size: 18px; padding: 9px 16px; } }
@media (min-width: 960px) { .hero__copy { display: flex; flex-direction: column; align-items: flex-end; } .hero__name { align-self: flex-end; } }
.hero__copy { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 40px; }
@media (min-width: 720px) { .hero__copy { padding-bottom: 64px; } }
.headline--hero { font-size: clamp(34px, 6vw, 76px); }
/* Jason sits left of centre in most shots: on wide screens the words go where he isn't */
@media (min-width: 960px) { .hero__copy .headline--hero { margin-left: auto; align-items: flex-end; } .headline--hero .cell.kicker { align-self: flex-end; } }
.headline--hero .cell { white-space: normal; }

/* ---------- Home: the top bar — outline over the video, solid after it ---------- */
/* --p runs 0 → 1 across the end of the hero (site.js, scroll-linked). Everything
   in the bar is a function of it — background, ink, fills, tilt, padding — so the
   bar eases from outline-over-video to locked-and-solid instead of snapping. */
.topbar {
  --p: 0;
  /* --q: colour progress, done in the first third of the range; --p keeps driving geometry */
  --q: min(1, calc(var(--p) * 3));
  --ink: color-mix(in srgb, var(--c-jet) calc(var(--q) * 100%), var(--c-white));
  --fill: color-mix(in srgb, var(--c-white) calc(var(--q) * 100%), transparent);
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: calc(22px - 10px * var(--p)) 0 calc(16px - 4px * var(--p));
}
@media (min-width: 720px) { .topbar { padding: calc(32px - 18px * var(--p)) 0 calc(18px - 4px * var(--p)); } }
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--q);
  background-color: var(--c-green);
  background-image: linear-gradient(var(--grid-line-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
  background-size: 72px 40px;
  border-bottom: 1px solid var(--c-jet);
}
.topbar__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
@media (max-width: 1023px) { .topbar__inner { flex-direction: column; gap: calc(12px - 4px * var(--p)); } }

/* The mark: a stack over the video; site.js re-lays it into the row cell by cell
   as --p advances (it pins the cells absolutely and interpolates their boxes). */
.logo-morph { display: inline-flex; flex-direction: column; align-items: stretch; align-self: flex-start; justify-self: start; text-decoration: none; font-weight: 500; letter-spacing: -0.035em; line-height: 1; font-size: 16px; rotate: calc(-0.5deg * (1 - var(--p))); }
.logo-morph:hover { color: inherit; }
.logo-morph > span { position: relative; display: block; white-space: nowrap; padding: 7px 13px 8px 11px; border: 2px solid var(--ink); color: var(--ink); background: var(--fill); }
.logo-morph > span + span { margin-top: -2px; }
.logo-morph.is-row { flex-direction: row; }
.logo-morph.is-row > span + span { margin-top: 0; margin-left: -2px; }
.logo-morph.is-manual { display: block; position: relative; justify-self: start; }
.logo-morph.is-manual > span { position: absolute; margin: 0; }
@media (min-width: 720px) { .logo-morph { font-size: 20px; } }
.logo-morph > span:last-child::after { content: ""; position: absolute; right: -7px; bottom: -7px; width: 11px; height: 11px; background: var(--c-green); border: 2px solid var(--c-white); box-shadow: var(--handle-shadow); opacity: calc((var(--p) - 0.85) * 7); }

.nav--top { width: 100%; padding: 2px 0 0 2px; flex-wrap: nowrap; rotate: calc(0.4deg * (1 - var(--p))); }
.nav--top a, .nav--top a:nth-child(n+4) { flex: 1 1 auto; flex-basis: auto; }
.nav--top a { transition: none; min-height: 40px; margin: -2px 0 0 -2px; font-size: 14px; padding: 8px 6px; border-width: 2px; border-color: var(--ink); color: var(--ink); background: var(--fill); }
.nav--top a:hover { background: var(--c-white); color: var(--c-jet); }
.is-solid .nav--top a:hover { background: var(--c-cyan); color: var(--c-jet); }
/* yellow hover on the inner pages only (the home bar keeps white / cyan) */
.topbar--locked .nav--top a:hover { background: var(--c-yellow); color: var(--c-jet); }
.nav--top a[aria-current="page"] {
  background: color-mix(in srgb, var(--c-jet) calc(var(--q) * 100%), var(--c-white));
  color: color-mix(in srgb, var(--c-cream) calc(var(--q) * 100%), var(--c-jet));
}
.nav--top a[aria-current="page"]::after { opacity: calc((var(--p) - 0.85) * 7); }
/* phones: six cells won't fit one row — two rows of three, merged borders */
@media (max-width: 1023px) {
  .nav--top { flex-wrap: wrap; }
  .nav--top a, .nav--top a:nth-child(n+4) { flex: 1 1 30%; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .topbar { --nav-h: 46px; }
  .nav--top { flex-wrap: nowrap; }
  .nav--top a, .nav--top a:nth-child(n+4) { flex: 1 1 auto; font-size: 16px; }
}
@media (min-width: 1024px) {
  .nav--top { width: auto; padding: 0; }
  .nav--top a { flex: 0 0 auto; font-size: 16px; padding: 10px 16px; margin: 0; }
  .nav--top a + a { margin-left: -2px; }
}
/* Phones and tablets: the bar is only ever the mark + a Menu cell, over the
   video and locked alike. Menu opens the nav as a dropdown sheet of full-width cells. */
.topbar__menu { display: none; }
@media (max-width: 1023px) {
  .topbar__inner { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 0; align-items: start; }
  .topbar__inner > .nav--top { grid-column: 1 / -1; }
  .nav--top { display: none; }
  .topbar__menu {
    display: block; align-self: start;
    min-height: 37px; padding: 0 14px;
    background: var(--fill); color: var(--ink);
    border: 2px solid var(--ink);
    font-family: var(--ff-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    cursor: pointer;
  }
  .topbar__menu[aria-expanded="true"] { background: var(--c-jet); color: var(--c-cream); border-color: var(--c-jet); }
  /* open: the nav drops below the bar as a stack of solid cells */
  .menu-open .nav--top {
    display: flex; position: absolute; top: 100%; left: var(--edge); right: var(--edge); width: auto;
    max-height: none; opacity: 1; overflow: visible;
    flex-direction: column; flex-wrap: nowrap; padding: 2px 0 0; margin-top: 8px; rotate: 0deg;
    box-shadow: var(--win-shadow);
  }
  .menu-open .nav--top a { background: var(--c-white); color: var(--c-jet); border-color: var(--c-jet); }
  .menu-open .nav--top a[aria-current="page"] { background: var(--c-jet); color: var(--c-cream); }
  .menu-open .nav--top a:hover { background: var(--c-cyan); color: var(--c-jet); }
  .topbar--locked.menu-open .nav--top a:hover { background: var(--c-yellow); }
  .menu-open .nav--top a, .menu-open .nav--top a:nth-child(n+4) { flex: 0 0 auto; min-height: 52px; font-size: 18px; margin: -2px 0 0; justify-content: flex-start; padding: 12px 16px; }
}

.topbar ~ main.page { padding-top: 104px; }
html:has(.topbar) { scroll-padding-top: 76px; }

/* ---------- Home hero: nothing sits dead square ----------
   The stack leans in toward the centre of the frame (right of frame = positive,
   left of frame = negative). Cells inside a stack share one edge and one angle —
   the stack tilts as a unit; the name label is a separate element and tilts on its own. */
.headline--hero { rotate: -0.6deg; transform-origin: 0 100%; }
.hero__name { rotate: -1.2deg; }
@media (min-width: 960px) {
  .headline--hero { rotate: 0.6deg; transform-origin: 100% 100%; }
  .hero__name { rotate: 1.2deg; }
}

/* ---------- Home: the channel cards — newsletter, YouTube, Office Hours ---------- */
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.channel { text-decoration: none; color: var(--c-jet); transition: transform 220ms var(--ease-boop), box-shadow 220ms var(--ease-snap); }
/* lift uses `transform`, not `translate`: the scroll-in boop owns `translate`, and would pin it */
.channel:hover, .channel:focus-visible { color: var(--c-jet); transform: translate(-5px, -5px) scale(1.02); box-shadow: 13px 13px 0 rgba(14, 14, 14, 0.16); }
.channel__body { transition: background-color 120ms var(--ease-snap); }
/* the card you're on: its lower panel takes the highlight */
.channel:hover .channel__body, .channel:focus-visible .channel__body, .channel:active .channel__body { background: var(--c-yellow); }
/* hovering the card turns its buttons white; hovering a button itself turns it black */
.channel:hover .channel__cta, .channel:focus-visible .channel__cta { background: var(--c-white); }
.channel .channel__cta:hover { background: var(--c-jet); color: var(--c-cream); }
.channel__media { aspect-ratio: 4 / 5; overflow: hidden; border-bottom: 1px solid var(--c-jet); background: var(--c-jet); }
.channel__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.channel__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.channel__body p { font-size: 16px; }
.channel__cta { align-self: flex-start; font-size: 18px; padding: 12px 16px; margin-top: 4px; transition: background-color 120ms var(--ease-snap); }
@media (min-width: 720px) { .channel__body { padding: 24px; } }
/* a card with two destinations (Office Hours): the card itself isn't a link, each button is */
.channel__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.channel__ctas .channel__cta { margin-top: 0; text-decoration: none; color: var(--c-jet); }
/* Phones and small tablets: a swipeable row, the next card peeking in */
@media (max-width: 899px) {
  .channels {
    display: flex; gap: 16px;
    margin: 0 calc(var(--edge) * -1); padding: 4px var(--edge) 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--edge);
    scrollbar-width: none;
  }
  .channels::-webkit-scrollbar { display: none; }
  .channel { flex: 0 0 min(78%, 340px); scroll-snap-align: start; }
  .channel:hover { transform: none; }
}

/* ---------- Windows boop onto the desktop as they scroll in ---------- */
.js .boop { translate: 0 32px; opacity: 0; }
.js .boop.is-in { translate: 0 0; opacity: 1; transition: translate 420ms var(--ease-boop), opacity 0s; }

/* ---------- Page bits ---------- */
.hero-jason { min-height: 340px; }
@media (min-width: 960px) { .hero-jason { min-height: 520px; height: 100%; } }
.appdb-img { aspect-ratio: 1; }
.about-photo { background: var(--c-white); display: flex; align-items: flex-end; justify-content: center; padding-top: 24px; }
.about-photo img { width: 100%; max-width: 440px; }
.preview { max-width: 520px; }
.preview .win__body img { width: 100%; }
.section-cell { align-self: center; margin: 0; font-size: clamp(28px, 4.4vw, 52px); font-weight: 500; }
.section-cell .cell { padding: .3em .55em .32em; border-width: clamp(3px, .4vw, 4px); letter-spacing: -0.035em; }
.plus-row { display: flex; align-items: stretch; font-size: clamp(22px, 3vw, 32px); align-self: center; }
.plus-row .gutter { display: flex; align-items: center; justify-content: center; width: 1.9em; background: var(--c-jet); color: var(--c-cream); border: var(--cell-b) solid var(--c-jet); font-family: var(--ff-mono); font-size: .8em; }
.plus-row .cell { border-left: none; padding: .3em .55em .32em; }
.quote-cells { display: flex; flex-direction: column; align-items: flex-start; font-size: clamp(20px, 2.4vw, 26px); }
.quote-cells .cell { padding: .4em .6em .45em; line-height: 1.15; }
.quote-cells .cell + .cell { margin-top: calc(var(--cell-b) * -1); }
.contact-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.email { word-break: break-word; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .boop { translate: none; opacity: 1; }
  .js .nl-perks.boop { translate: -50% 0; }
}
