/* Opening Lead homepage, version 3: an evening at the table. */

:root {
  --ink: #1a1410;
  --ink-2: #4a3e34;
  --paper: #ffffff;
  --red: #c8202f;
  --red-deep: #a01a27;
  --oxblood: #5b1320;
  --wood: #c79a6d;
  --night: #1b1009;
  --serif: "Gloock", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
  --stage-h: 900px;
  --travel: 850px;
  --paper-shadow: 0 1px 1px rgba(50, 24, 6, 0.16), 0 3px 6px -2px rgba(50, 24, 6, 0.18), 0 22px 40px -18px rgba(50, 24, 6, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--wood);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 4px;
  background: var(--ink); color: #ffffff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.h1:focus, section[tabindex="-1"]:focus { outline: none; }

/* The table: it never moves. The evening passes over it. */
.page { position: relative; isolation: isolate; overflow-x: clip; }
.table { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.table-wood {
  position: absolute; inset: 0;
  background: var(--wood) url("assets/table.jpg") center / cover no-repeat;
}
.light { position: absolute; inset: 0; will-change: opacity; }
.light--day {
  background:
    radial-gradient(90% 75% at 14% 8%, rgba(255, 251, 240, 0.5), rgba(255, 251, 240, 0) 62%),
    radial-gradient(70% 60% at 92% 96%, rgba(70, 36, 10, 0.16), rgba(70, 36, 10, 0) 70%);
}
.light--day::after {
  content: ""; position: absolute; inset: -12%;
  background: url("assets/window-light.svg") center / cover no-repeat;
  transform: translate(var(--sun-x, 0px), var(--sun-y, 0px));
}
.light--warm { background: linear-gradient(180deg, rgba(255, 164, 72, 0.2), rgba(214, 102, 36, 0.26)); opacity: 0; }
.light--dusk { background: radial-gradient(125% 105% at 50% 38%, rgba(30, 13, 3, 0.62), rgba(14, 6, 1, 0.9)); opacity: 0; }
.light--lamp {
  background: radial-gradient(58% 52% at 50% 40%, rgba(255, 190, 112, 0.27), rgba(255, 168, 86, 0.08) 48%, rgba(255, 160, 80, 0) 72%);
  opacity: 0;
}

/* The trail: a dotted route drawn across the evening. */
.trail { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.trail-line { fill: none; stroke: var(--red); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 0.1 13; opacity: 0.9; }
.trail-reveal { fill: none; stroke: #ffffff; stroke-width: 18; stroke-linecap: round; }
html:not(.js) .trail { display: none; }

main, .foot { position: relative; }
section { position: relative; }

/* Shared type */
.h1 {
  font: 400 clamp(56px, min(7.3vw, calc(var(--stage-h) * 0.13)), 122px) / 0.95 var(--serif);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.h2 {
  font: 400 clamp(40px, 4.5vw, 70px) / 1.02 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.paper {
  background: var(--paper);
  box-shadow: var(--paper-shadow);
}

/* Header */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px var(--gutter);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  font: 800 21px/1 var(--sans); letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.wordmark--light { color: #ffffff; }
.mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); }
.nav-link { font: 600 17px/1 var(--sans); color: var(--ink); text-decoration: none; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 4px;
  background: var(--ink); color: #ffffff;
  font: 700 17px/1 var(--sans); text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--red-deep); }

/* The round stamp: the main action. */
.stamp {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 164px; height: 164px; border-radius: 50%;
  color: #ffffff; text-decoration: none;
}
.stamp-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: rotate(15deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  filter: drop-shadow(3px 7px 9px rgba(60, 20, 6, 0.34)) drop-shadow(1px 1px 1px rgba(60, 20, 6, 0.3));
}
.stamp:hover .stamp-art { transform: rotate(-8deg) scale(1.03); }
.stamp-ring text { font: 700 14px var(--sans); letter-spacing: 0.1em; fill: #ffffff; }
.stamp-label {
  position: relative; display: block; text-align: center;
  font: 800 20px/1.05 var(--sans); letter-spacing: -0.005em;
}
.stamp-label > span { display: block; }
.stamp:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 19px/1.2 var(--sans); color: var(--ink);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.arrow-link svg { width: 22px; height: 22px; transition: transform 0.3s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

/* Objects on the table */
.prop {
  position: absolute; z-index: 3; pointer-events: none;
  height: auto;
  filter: drop-shadow(12px 18px 16px rgba(58, 28, 6, 0.34)) drop-shadow(2px 3px 3px rgba(58, 28, 6, 0.26));
  will-change: transform;
}

/* 1. The hero */
.hero-runway { position: relative; }
.hero.is-pin .hero-runway { height: calc(var(--stage-h) + var(--travel)); }
.hero-stage { position: relative; height: var(--stage-h); min-height: 620px; }
.hero.is-pin .hero-stage { position: sticky; top: 0; }
.hero-light {
  position: absolute; left: 0; top: 0; width: 70%; height: 90%; pointer-events: none;
  background: radial-gradient(60% 60% at 30% 38%, rgba(255, 250, 240, 0.4), rgba(255, 250, 240, 0) 72%);
}

.hero-copy {
  position: absolute; z-index: 4;
  left: var(--gutter); top: calc(var(--stage-h) * 0.18);
  width: min(56vw, 800px);
}
.h1 { max-width: 7.6em; }
.lede {
  margin-top: clamp(18px, calc(var(--stage-h) * 0.03), 30px);
  max-width: 30em;
  font-size: 21px; line-height: 1.55; font-weight: 500;
  text-shadow: 0 0 18px rgba(255, 246, 232, 0.9), 0 0 2px rgba(255, 246, 232, 0.8);
}
.actions {
  display: flex; align-items: center; gap: 34px;
  margin-top: clamp(22px, calc(var(--stage-h) * 0.04), 42px);
}

.deal-runway, .deal { display: contents; }
.record {
  position: absolute; z-index: 4; margin: 0;
  left: 45%; bottom: calc(var(--stage-h) * 0.07);
  width: clamp(240px, 19.5vw, 290px);
  padding: 20px 26px 22px;
  background: var(--paper);
  box-shadow: var(--paper-shadow);
  transform: rotate(-4deg);
}
.record-seat {
  font: 800 16px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1.5px solid var(--ink);
}
.record-hand {
  list-style: none; margin: 0; padding: 0;
  font: 400 clamp(30px, 2.6vw, 40px)/1.22 var(--serif);
  font-variant-numeric: lining-nums;
}
.record-hand li { display: flex; align-items: center; gap: 0.42em; }
.pip { width: 0.62em; height: 0.62em; flex: none; fill: var(--ink); }
.is-red .pip { fill: var(--red); }
.ranks { display: flex; gap: 0.32em; }
.rank { display: inline-block; min-width: 0.6em; text-align: center; }
.glyph { position: relative; will-change: opacity; }
.glyph::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 0.06em; height: 3px; border-radius: 2px;
  background: var(--red); opacity: var(--cue, 1);
}
html:not(.js) .glyph { opacity: 0.2; }
html:not(.js) .glyph::after { opacity: 0; }

.landing {
  position: absolute; z-index: 5;
  right: calc(var(--gutter) + 4.5vw); top: calc(var(--stage-h) * 0.17);
  width: clamp(168px, 14vw, 210px);
}
.spot { position: relative; width: 100%; aspect-ratio: 225 / 350; perspective: 1700px; perspective-origin: 50% 30%; }
.card3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotate(-4deg); --sd: 0; --go: 0; --gx: 0px; }
.js .card3d { opacity: 0; }
.face { position: absolute; inset: 0; overflow: hidden; border-radius: 5.6% / 3.6%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face--front { transform: translateZ(0.8px); }
.face--back { transform: rotateY(180deg) translateZ(0.8px); }
.art { display: block; width: 100%; height: 100%; }
.edge { position: absolute; top: 1.6%; bottom: 1.6%; width: 1.6px; background: #dcdcdf; }
.edge--l { left: -0.8px; transform: rotateY(90deg); }
.edge--r { right: -0.8px; transform: rotateY(90deg); }
.shade { position: absolute; inset: 0; background: #0c0c0e; opacity: var(--sd); pointer-events: none; }
.glare {
  position: absolute; top: -20%; bottom: -20%; left: -100%; width: 300%;
  background: linear-gradient(104deg, rgba(255, 255, 255, 0) 41%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 59%);
  opacity: var(--go); transform: translateX(var(--gx)); pointer-events: none;
}
.card3d.is-flat { transform-style: flat; }
.card3d.is-flat .face--back, .card3d.is-flat .edge, .card3d.is-flat .glare, .card3d.is-flat .shade { display: none; }
.card3d.is-flat .face--front { transform: none; backface-visibility: visible; -webkit-backface-visibility: visible; }
.shadow { position: absolute; inset: 0; border-radius: 7% / 4.5%; background: #2c1405; pointer-events: none; will-change: transform, opacity; }
.shadow--soft { filter: blur(16px); opacity: 0.46; transform: translate(10px, 16px) rotate(-4deg); }
.shadow--contact { inset: 1.5%; filter: blur(2.5px); opacity: 0.55; transform: translate(2px, 3px) rotate(-4deg); }
.js .shadow { opacity: 0; }

.caption {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  margin-top: 34px; padding: 9px 14px 10px;
  background: var(--paper);
  box-shadow: 0 1px 1px rgba(50, 24, 6, 0.16), 0 10px 18px -10px rgba(50, 24, 6, 0.45);
  font: 700 17px/1.35 var(--sans);
  transform: rotate(-1.5deg);
}
.js .caption { opacity: 0; visibility: hidden; }
.caption-lead { display: inline-flex; align-items: baseline; gap: 6px; }
.caption-lead svg { width: 0.8em; height: 0.8em; align-self: center; fill: var(--ink); }
.caption a { color: var(--red-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.caption a:hover { color: var(--ink); }

.prop--cup { width: clamp(190px, 18vw, 280px); right: -4vw; top: calc(var(--stage-h) * 0.6); }
.prop--glasses { width: clamp(250px, 24vw, 370px); left: -3.5vw; bottom: calc(var(--stage-h) * -0.035); transform: rotate(-9deg); }
.prop--pencil { height: clamp(230px, 20vw, 300px); width: auto; left: 72%; bottom: calc(var(--stage-h) * 0.02); transform: rotate(64deg); }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero.is-pin .hero-copy > *, .hero.is-flow .hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero.is-pin .hero-copy > :nth-child(2), .hero.is-flow .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero.is-pin .hero-copy > :nth-child(3), .hero.is-flow .hero-copy > :nth-child(3) { animation-delay: 0.24s; }
.hero.is-pin .record, .hero.is-flow .record { animation: fade 0.9s 0.3s ease-out both; }

/* 2. Why: a sheet from the score pad */
.why { padding: clamp(90px, 13vh, 170px) var(--gutter) clamp(100px, 15vh, 190px); }
.sheet {
  position: relative; z-index: 2;
  max-width: 1080px; margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) clamp(26px, 5.5vw, 92px) clamp(44px, 5vw, 76px);
  background: var(--paper);
  box-shadow: var(--paper-shadow);
  transform: rotate(-1.1deg);
}
.sheet::before {
  content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px;
  background: url("assets/torn.svg") repeat-x left bottom / 360px 14px;
}
.sheet .h2 { max-width: 15.5em; font-size: clamp(36px, 4.1vw, 62px); }
.sheet-cols {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px);
  margin-top: clamp(28px, 3.5vw, 44px); padding-top: clamp(24px, 3vw, 36px);
  border-top: 3px solid var(--ink);
  color: var(--ink-2);
}
.sheet-cols::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: -12px; width: 1.5px;
  background: var(--ink); transform: translateX(-50%);
}
.for-list {
  list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0;
  display: grid; gap: 12px;
  font-weight: 700; font-size: 21px; line-height: 1.35;
}
.for-list li { display: flex; align-items: center; gap: 16px; }
.tick { width: 34px; height: 26px; flex: none; color: var(--red); }
.prop--biscuits { width: clamp(200px, 20vw, 300px); right: -3vw; top: 58%; }

/* 3. What we're building: four cards laid out on the table, every one readable at rest */
.trick-runway { position: relative; }
.trick-stage {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 40px;
  width: min(1440px, 100%); margin: 0 auto; padding: clamp(80px, 12vh, 140px) var(--gutter);
}
.trick-intro { position: relative; z-index: 12; }
.trick-intro p { margin-top: 26px; max-width: 24em; font-weight: 500; }
.suit-track { display: flex; gap: 18px; margin-top: 36px; }
.suit-dot { width: 30px; height: 30px; fill: var(--ink); }
.suit-dot.is-red { fill: var(--red); }

.pile { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pcard {
  position: relative;
  padding: 56px 46px 58px;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--paper-shadow);
  transform: rotate(var(--r, 0deg));
}
.pcard:nth-of-type(1) { --r: -2.4deg; }
.pcard:nth-of-type(2) { --r: 1.8deg; }
.pcard:nth-of-type(3) { --r: -1.2deg; }
.pcard:nth-of-type(4) { --r: 2.6deg; }
.pcard h3 { font: 400 clamp(32px, 3vw, 44px)/1.05 var(--serif); margin-bottom: 18px; max-width: 10em; }
.pcard p { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.pcard-pip { position: absolute; width: 28px; height: 28px; fill: var(--ink); }
.pcard.is-red .pcard-pip { fill: var(--red); }
.pcard-pip--tl { left: 20px; top: 20px; }
.pcard-pip--br { right: 20px; bottom: 20px; transform: rotate(180deg); }
.steps { list-style: none; margin: 22px 0 0; padding: 0 0 0 4px; display: grid; gap: 8px; font: 700 16px/1.3 var(--sans); }
.steps li { position: relative; display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.steps li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.steps .is-done::before { background: var(--ink); border-color: var(--ink); }
.steps .is-here { color: var(--red-deep); }
.steps .is-here::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(200, 32, 47, 0.18); }
.sizes { display: flex; align-items: baseline; gap: 16px; margin-top: 22px; font-family: var(--serif); color: var(--ink); }
.sizes span:nth-child(1) { font-size: 22px; }
.sizes span:nth-child(2) { font-size: 32px; }
.sizes span:nth-child(3) { font-size: 44px; }
.coach-note {
  grid-column: 1 / -1; justify-self: center;
  position: relative;
  max-width: 400px; padding: 22px 26px 24px;
  background: #ffffff; border-radius: 6px;
  box-shadow: var(--paper-shadow);
  transform: rotate(-1.5deg);
  font-size: 19px; line-height: 1.5;
}
.coach-note-label, .lg-coach-label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font: 800 16px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-deep);
}
.coach-note-label svg, .lg-coach-label svg { width: 18px; height: 18px; fill: var(--red); }

/* 3b. The coach: a note on the table, one suit for each line */
.coach { padding: clamp(10px, 2vh, 30px) 0; }
.coach-wrap {
  position: relative; z-index: 2;
  width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
}
.coach-intro { grid-column: 1 / 6; }
.coach-intro .h2 { max-width: 8em; }
.coach-card {
  grid-column: 7 / -1;
  padding: 32px 38px 34px;
  background: var(--paper); color: var(--ink);
  box-shadow: var(--paper-shadow);
  transform: rotate(1.2deg);
}
.coach-card .coach-note-label { margin-bottom: 18px; }
.coach-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.coach-points li, .coach-promise { display: flex; align-items: flex-start; gap: 14px; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.coach-pip { width: 20px; height: 20px; flex: none; margin-top: 4px; fill: var(--ink); }
.coach-pip.is-red { fill: var(--red); }
.coach-promise { margin-top: 22px; padding-top: 20px; border-top: 1.5px solid var(--ink); font-weight: 700; color: var(--ink); }

/* 4. Make the opening lead */
.lg { padding: clamp(100px, 14vh, 180px) 0 clamp(110px, 15vh, 190px); }
.lg-wrap { position: relative; z-index: 2; width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto; }
.lg-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.lg-intro { grid-column: 1 / 8; }
.lg-intro p { margin-top: 20px; max-width: 30em; font-weight: 500; }
.inline-pip { display: inline-block; width: 0.7em; height: 0.7em; vertical-align: -0.04em; margin-left: 0.06em; fill: var(--red-deep); }
.lg-auction {
  grid-column: 9 / -1;
  padding: 22px 24px 18px;
  background: var(--paper); color: var(--ink);
  box-shadow: var(--paper-shadow);
  transform: rotate(1.4deg);
}
.lg-auction-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font: 800 16px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.lg-auction-head span { font-weight: 600; letter-spacing: 0.02em; text-transform: none; font-size: 16px; color: var(--ink-2); }
.lg-auction table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.lg-auction th { text-align: left; font: 700 16px/1.2 var(--sans); color: var(--ink-2); padding: 8px 6px; border-bottom: 2px solid var(--ink); }
.lg-auction th small { font-weight: 600; font-size: 16px; }
.lg-auction td { padding: 8px 6px; height: 2.3em; font: 400 22px/1 var(--serif); font-variant-numeric: lining-nums; }
.lg-auction td.pass { font: 500 18px/1 var(--sans); color: var(--ink-2); }
.bid-pip { display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.08em; vertical-align: -0.04em; fill: var(--red); }
.lg-auction-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid #dad6d0; font: 600 16px/1.4 var(--sans); color: var(--ink-2); }
.lg-auction-foot strong { color: var(--ink); }

.lg-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: start; }
.lg-table {
  grid-column: 1 / 9; position: relative;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto minmax(250px, auto) auto;
  grid-template-areas: "x east y" "north center south" "hand hand hand";
  column-gap: 20px; row-gap: 22px;
  padding: 30px 30px 34px;
}
.lg-seat { display: flex; align-items: center; gap: 12px; }
.lg-seat-name { font: 800 16px/1.2 var(--sans); letter-spacing: 0.02em; color: var(--ink); text-shadow: 0 0 10px rgba(255, 244, 228, 0.8); }
.lg-seat-name small { display: block; font-weight: 600; font-size: 16px; color: var(--ink); margin-top: 2px; }
.lg-seat--east { grid-area: east; justify-self: center; flex-direction: column; gap: 8px; }
.lg-seat--north { grid-area: north; flex-direction: column; justify-content: center; gap: 8px; }
.lg-seat--south { grid-area: south; flex-direction: column; justify-content: center; gap: 8px; }
.lg-fan { position: relative; flex: none; width: 150px; height: 150px; }
.lg-fan--east { transform: rotate(180deg); }
.lg-fan--north { transform: rotate(90deg); }
.lg-fan--south { transform: rotate(-90deg); }
.lg-back {
  position: absolute; left: calc(50% - 19px); top: 22px;
  display: block; width: 38px; height: 58px; padding: 2.5px; border-radius: 4px;
  background: #ffffff; box-shadow: 0 1px 2px rgba(40, 18, 4, 0.45);
  transform-origin: 50% 190%; transform: rotate(calc((var(--i) - 6) * 6.5deg));
}
.lg-back::before {
  content: ""; display: block; width: 100%; height: 100%; border-radius: 2.5px;
  background-color: var(--oxblood);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 6px);
}
.lg-center { grid-area: center; display: grid; place-items: center; }
.lg-slot {
  position: relative; width: 118px; height: calc(118px * 350 / 225); border-radius: 9px;
  border: 1.5px dashed rgba(26, 20, 16, 0.5);
  display: grid; place-items: center;
  font: 700 16px/1.3 var(--sans); color: var(--ink); text-align: center;
}
.lg-slot-empty { padding: 0 10px; }
.lg-played {
  position: absolute; inset: -1.5px; border-radius: 9px;
  background: #ffffff; color: var(--ink);
  transform: rotate(-3deg);
  box-shadow: 0 2px 2px rgba(40, 18, 4, 0.25), 0 22px 34px -16px rgba(40, 18, 4, 0.7);
}
.lg-played.is-red { color: var(--red); }
.lg-played .lg-idx { position: absolute; top: 8%; left: 0; width: 46%; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 400 38px/0.9 var(--serif); }
.lg-played .lg-pip { width: 26px; height: 26px; }
.lg-played .lg-big { position: absolute; right: 10%; bottom: 8%; width: 36%; height: auto; aspect-ratio: 1; }

.lg-hand-area { grid-area: hand; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lg-hand-label { font: 700 17px/1.3 var(--sans); color: var(--ink); text-align: center; text-shadow: 0 0 10px rgba(255, 244, 228, 0.8); }
.lg-hand { --w: 86px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 16px; padding-top: 22px; }
.lg-suit { display: flex; }
.lg-card {
  position: relative; flex: none;
  width: var(--w); height: calc(var(--w) * 350 / 225);
  padding: 0; border: 1px solid #cfd0d4; border-radius: calc(var(--w) * 0.075);
  background: #ffffff; color: var(--ink);
  cursor: pointer; font: inherit; text-align: left;
  box-shadow: 0 1px 1px rgba(40, 18, 4, 0.3), 0 12px 24px -14px rgba(40, 18, 4, 0.8);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s ease;
}
.lg-card + .lg-card { margin-left: calc(var(--w) * -0.47); }
.lg-card.is-red { color: var(--red); }
.lg-card:hover { transform: translateY(-12px); }
.lg-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; transform: translateY(-12px); z-index: 3; }
.lg-card.is-led { transform: translateY(-22px); box-shadow: 0 0 0 3px var(--red), 0 16px 28px -12px rgba(40, 18, 4, 0.85); }
.lg-idx {
  position: absolute; top: 7%; left: 0; width: 46%;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font: 400 calc(var(--w) * 0.34)/0.9 var(--serif); font-variant-numeric: lining-nums;
}
.lg-pip { width: calc(var(--w) * 0.2); height: calc(var(--w) * 0.2); fill: currentColor; }
.lg-big { position: absolute; right: 9%; bottom: 7%; width: 33%; height: 33%; fill: currentColor; }

.lg-coach {
  grid-column: 9 / -1; position: sticky; top: 24px;
  min-height: 340px; display: flex; flex-direction: column;
  padding: 28px 28px 26px;
  background: var(--paper); color: var(--ink);
  box-shadow: var(--paper-shadow);
  transform: rotate(-0.8deg);
}
.lg-coach-lead { margin-bottom: 14px; font: 400 27px/1.2 var(--serif); text-wrap: balance; }
.lg-tag {
  display: inline-block; margin-left: 10px; padding: 5px 9px 6px; border-radius: 2px;
  background: var(--red); color: #ffffff;
  font: 700 16px/1 var(--sans); letter-spacing: 0.04em; vertical-align: 0.2em;
}
.lg-coach-msg { font-size: 19px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.lg-again {
  align-self: flex-start; margin-top: auto; padding: 18px 0 0;
  border: 0; background: none; color: var(--red-deep);
  font: 700 17px/1.2 var(--sans);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
  cursor: pointer;
}
.lg-again:hover { color: var(--ink); }
.prop--cup2 { width: clamp(180px, 16vw, 250px); right: -4vw; bottom: 6%; }

/* 5. Here to grow the game: a photograph of the card room on the table */
.room { padding: clamp(100px, 14vh, 180px) 0 clamp(100px, 14vh, 170px); }
.room-wrap {
  position: relative; z-index: 2;
  width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
}
.room-print {
  grid-column: 1 / 9; grid-row: 1;
  margin: 0; padding: 14px 14px 52px;
  background: var(--paper);
  box-shadow: var(--paper-shadow);
  transform: rotate(-2deg);
}
.room-photo { overflow: hidden; aspect-ratio: 1672 / 941; background: #d9cdb9; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.room-copy { position: relative; grid-column: 9 / -1; grid-row: 1; align-self: center; padding-left: 12px; }
.room-copy::before {
  content: ""; position: absolute; inset: -90px -70px -90px -60px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 246, 228, 0.72), rgba(255, 246, 228, 0.42) 55%, rgba(255, 246, 228, 0));
}
.room-copy p { margin-top: 22px; font-weight: 500; max-width: 22em; text-shadow: 0 0 16px rgba(255, 244, 226, 0.8); }
.notes {
  grid-column: 1 / -1; grid-row: 2;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px;
  margin-top: -40px; padding: 0 8%;
}
.note {
  position: relative;
  padding: 30px 30px 34px;
  background: var(--paper);
  box-shadow: var(--paper-shadow);
  transform: rotate(var(--r, 0deg));
}
.note:nth-child(1) { --r: 1.6deg; }
.note:nth-child(2) { --r: -1.2deg; margin-top: 40px; }
.note:nth-child(3) { --r: 2deg; }
.note:nth-child(4) { --r: -1.6deg; margin-top: 40px; }
.note-pip { width: 26px; height: 26px; fill: var(--ink); margin-bottom: 14px; }
.note-pip.is-red { fill: var(--red); }
.note h3 { font: 400 28px/1.12 var(--serif); margin-bottom: 12px; }
.note p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* 6. Who we are: prints on the table as the evening comes in */
.team { padding: clamp(110px, 15vh, 190px) 0 clamp(90px, 12vh, 150px); color: #ffffff; }
.team-wrap { position: relative; z-index: 2; width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto; }
.team-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(44px, 6vw, 72px); }
.team-why { font: 400 clamp(26px, 2.5vw, 36px)/1.2 var(--serif); }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.person { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.3fr); gap: 26px; align-items: start; }
.print { padding: 11px 11px 38px; background: var(--paper); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3), 0 24px 40px -18px rgba(0, 0, 0, 0.7); transform: rotate(-3.5deg); }
.person:nth-child(2) .print { transform: rotate(2.5deg); }
.portrait { aspect-ratio: 4 / 5; background: #e6e1da; display: grid; place-items: end center; overflow: hidden; }
.portrait svg { width: 74%; fill: #cbc2b7; }
.person-note { padding: 24px 26px 26px; background: var(--paper); color: var(--ink); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3), 0 24px 40px -18px rgba(0, 0, 0, 0.7); transform: rotate(1deg); }
.person:nth-child(2) .person-note { transform: rotate(-0.8deg); }
.person-note h3 { font: 400 30px/1.1 var(--serif); }
.role { margin-top: 6px; font: 700 16px/1.3 var(--sans); color: var(--red-deep); }
.bio { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.link { display: inline-block; margin-top: 14px; font: 700 16px/1.2 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.prop--glasses2 { width: clamp(220px, 21vw, 320px); left: -3vw; bottom: 2%; transform: rotate(-12deg); }

/* 7. Help us get this right: the lamp is on */
.contact { padding: clamp(120px, 17vh, 210px) 0 clamp(110px, 15vh, 180px); color: #ffffff; text-align: center; }
.contact-wrap { position: relative; z-index: 2; width: min(880px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.contact-lede { max-width: 32em; margin: 28px auto 0; font-size: 22px; line-height: 1.6; }
.contact-wrap > p:not(.contact-lede) { max-width: 32em; margin: 16px auto 0; font-size: 20px; color: #ffffff; }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 62px; margin-top: 50px; }
.stamp--big { width: 214px; height: 214px; }
.stamp--big .stamp-label { font-size: 25px; }
.stamp--big:focus-visible { outline-color: #ffffff; }
.contact-email { font: 700 20px/1.2 var(--sans); color: #ffffff; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.contact-email:focus-visible, .foot a:focus-visible, .team a:focus-visible { outline-color: #ffffff; }

.foot { padding: 34px var(--gutter) 44px; color: #ffffff; }
.foot-wrap {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px;
}
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 16px; color: #f1e6da; }
.foot-links a { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }

/* Without JavaScript the table stays in daylight, so the evening sections carry their own darkness. */
html:not(.js) .team, html:not(.js) .contact, html:not(.js) .foot { background: rgba(27, 16, 9, 0.9); }

/* Laptops */
@media (max-width: 1180px) {
  .lg-hand { --w: 74px; }
  .people { grid-template-columns: 1fr; max-width: 760px; }
  .notes { gap: 20px; }
}

/* Phones and small tablets */
@media (max-width: 899px) {
  body { font-size: 18px; }
  .bar { padding: 16px var(--gutter); }
  .nav-link { display: none; }
  .wordmark { font-size: 19px; }
  .mark { width: 30px; height: 30px; }
  .btn--small { padding: 12px 16px; font-size: 16px; }

  .hero-stage { height: auto; min-height: 0; padding: 104px var(--gutter) 40px; }
  .hero-light { width: 100%; height: 60%; }
  .hero-copy { position: relative; left: auto; top: auto; width: auto; }
  .h1 { font-size: clamp(46px, 12.6vw, 78px); max-width: 8em; }
  .lede { font-size: 19px; }
  .actions { gap: 26px; }
  .stamp { width: 132px; height: 132px; }
  .stamp-label { font-size: 17px; }

  .deal-runway { display: block; position: relative; margin-top: 40px; }
  .hero.is-flow .deal-runway { height: var(--deal-runway, auto); }
  .deal { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; padding-bottom: 20px; position: relative; }
  .hero.is-flow .deal { position: sticky; top: var(--deal-top, 16px); }
  .record { position: relative; left: auto; bottom: auto; width: auto; padding: 16px 16px 18px; }
  .record-hand { font-size: clamp(24px, 7.2vw, 34px); }
  .landing { position: relative; right: auto; top: auto; width: 100%; max-width: 170px; justify-self: center; margin-top: 28px; }
  .caption { font-size: 16px; gap: 2px 10px; margin-top: 26px; padding: 7px 11px 8px; }
  .prop--cup { width: 150px; right: -48px; top: auto; bottom: 30%; }
  .prop--glasses { display: none; }
  .prop--pencil { display: none; }

  .sheet-cols { grid-template-columns: 1fr; row-gap: 18px; }
  .sheet-cols::before { display: none; }
  .for-list { font-size: 19px; }
  .prop--biscuits { width: 170px; right: -60px; top: -40px; }

  .trick-stage { grid-template-columns: 1fr; padding: 80px var(--gutter); gap: 36px; }
  .pile { display: flex; flex-direction: column; gap: 24px; }
  .pcard { padding: 48px 30px 50px; }
  .coach-note { justify-self: stretch; }

  .coach-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  .coach-card { padding: 26px 24px 28px; transform: rotate(0.6deg); }
  .coach-points li, .coach-promise { font-size: 18px; }

  .lg-top, .lg-body { display: flex; flex-direction: column; align-items: stretch; }
  .lg-top { gap: 32px; }
  .lg-auction { transform: none; }
  .lg-body { gap: 24px; }
  .lg-table { padding: 20px 12px 26px; column-gap: 8px; grid-template-rows: auto minmax(200px, auto) auto; }
  .lg-fan { width: 96px; height: 96px; }
  .lg-back { left: calc(50% - 12px); top: 14px; width: 24px; height: 37px; padding: 2px; border-radius: 3px; }
  .lg-slot { width: 92px; height: calc(92px * 350 / 225); }
  .lg-played .lg-idx { font-size: 30px; }
  .lg-played .lg-pip { width: 20px; height: 20px; }
  .lg-hand { --w: 70px; gap: 18px 12px; padding-top: 18px; }
  .lg-card + .lg-card { margin-left: calc(var(--w) * -0.52); }
  .lg-coach { position: static; min-height: 0; transform: none; }
  .prop--cup2 { width: 130px; right: -52px; bottom: auto; top: 30px; }

  .room-wrap { display: flex; flex-direction: column; gap: 32px; }
  .room-print { padding: 10px 10px 34px; }
  .room-copy { padding-left: 0; }
  .notes { grid-template-columns: 1fr; margin-top: 0; padding: 0; gap: 20px; }
  .note:nth-child(2), .note:nth-child(4) { margin-top: 0; }

  .person { grid-template-columns: 120px 1fr; gap: 18px; }
  .prop--glasses2 { width: 170px; left: auto; right: -60px; bottom: -10px; }

  .contact-lede { font-size: 19px; }
  .stamp--big { width: 180px; height: 180px; }
  .foot-wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .person { grid-template-columns: 1fr; gap: 14px; }
  .print { width: 62%; max-width: 230px; }
}

@media (max-width: 370px) {
  .lg-hand { --w: 64px; }
  .lg-table { padding: 18px 10px 24px; column-gap: 4px; }
  .lg-fan { width: 78px; height: 78px; }
  .lg-back { left: calc(50% - 10px); top: 11px; width: 20px; height: 30px; }
  .lg-slot { width: 84px; height: calc(84px * 350 / 225); }
  .deal { gap: 12px; }
}
