/* The Rolling Game-Masters Guild homepage. Direction A: vintage and crafty guildhall. Values come from DESIGN.md. */

:root {
  /* Colour (DESIGN.md §2) */
  --paper: #F3EBDD;
  --paper-deep: #E6D9C2;
  --paper-light: #FBF6EC;
  --ink: #172A4F;
  --ink-deep: #0F1D38;
  --ink-soft: #3E4E6E;
  --vermilion: #C41E3A;
  --vermilion-deep: #9E1830;
  --sea: #2C7A7B;
  --on-vermilion: #FFF6E8;
  --on-ink: #F3EBDD;
  --on-ink-soft: #C9D1E3;

  /* Paper grain and fibre, drawn as SVG noise. Not a gradient, not an image file. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .40 0 0 0 0 .20 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='900' height='900' filter='url(%23m)'/%3E%3C/svg%3E");
  --speck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23s)'/%3E%3C/svg%3E");

  /* Type (DESIGN.md §3). Grenze supplies only the capital I; everything else falls through to Grenze Gotisch. */
  --font-display: "Grenze", "Grenze Gotisch", "Palatino Linotype", serif;
  --font-text: "Alegreya", Georgia, "Times New Roman", serif;
  --step-small: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  --step-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --step-lead: clamp(1.3125rem, 1.1rem + 0.8vw, 1.75rem);
  --step-title: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem);
  --step-head: clamp(2rem, 0.9rem + 4.4vw, 5.5rem);
  --step-display: clamp(4.25rem, 1rem + 9vw, 10.5rem);

  /* Space (DESIGN.md §4) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px; --space-11: 160px;
  --gutter: var(--space-4);
  --section: var(--space-9);
  --tear: 24px;
  --max: 1280px;

  /* Motion (DESIGN.md §10) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;
}
@media (min-width: 600px) { :root { --gutter: var(--space-6); --section: var(--space-10); --tear: 40px; } }
@media (min-width: 1100px) { :root { --gutter: var(--space-7); --section: var(--space-11); --tear: 52px; } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: var(--space-5); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a, button, input, select, textarea, label { touch-action: manipulation; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--vermilion); color: var(--on-vermilion); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 3px; }
.ink :focus-visible { outline-color: var(--on-ink); }
.ink .paper :focus-visible { outline-color: var(--vermilion); }

.skip {
  position: absolute; left: var(--space-4); top: var(--space-4); z-index: 50;
  padding: var(--space-3) var(--space-5);
  background: var(--ink); color: var(--on-ink); font-weight: 800;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Surfaces */
.paper { background-color: var(--paper); background-image: var(--grain), var(--fibre); }
.ink { background-color: var(--ink); background-image: var(--speck); color: var(--on-ink); }
.sea { background-color: var(--sea); background-image: var(--speck); }
.wax { background-color: var(--vermilion); background-image: var(--speck); color: var(--on-vermilion); }

/* Layout */
.wrap {
  position: relative;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section, .hero, .foot { position: relative; }
main > section { overflow-x: clip; }
.pitch, .how, .packages, .bring, .why, .perfect, .book, .happens, .details { padding-block: var(--section) calc(var(--section) + var(--tear)); }

/* Torn paper between sections: the drawn edge takes the colour of the section that follows. */
.tear { position: absolute; left: 0; bottom: -1px; width: 100%; height: var(--tear); display: block; fill: currentColor; z-index: 2; pointer-events: none; }
.tear--ink { color: var(--ink); }
.tear--paper { color: var(--paper); }
.tear--sea { color: var(--sea); }
.tear--wax { color: var(--vermilion); }
.tear--top { color: var(--ink); top: calc(-1 * var(--tear) + 1px); bottom: auto; }

/* Type */
.h-display {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.005em;
  text-wrap: balance;
}

/* Buttons and links (DESIGN.md §5) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 44px;
  border: 0; border-radius: 0;
  font-family: var(--font-text); font-weight: 800; font-size: var(--step-body); line-height: 1.1; text-align: center; text-decoration: none;
  cursor: pointer;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { transform: translateY(1px); }
.btn:active { transform: scale(0.98); }
/* The notched shape clips outlines, so focus is drawn inside the button. */
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 4px currentColor; } /* taste-skill-ignore: a focus ring drawn inside the notched shape, not a resting shadow */
.btn--wax { background: var(--vermilion); color: var(--on-vermilion); }
.btn--wax:hover { background: var(--vermilion-deep); }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: var(--ink-deep); }
.btn--bar { width: 100%; padding-inline: 22px; }
.textlink {
  display: inline-flex; align-items: center; min-height: 48px;
  font-weight: 800; color: var(--ink);
  text-decoration: underline; text-decoration-style: dashed; text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: color var(--fast) var(--ease);
}
.textlink:hover { color: var(--vermilion-deep); }

/* Tipped-in photo plates */
.plate { position: relative; }
.plate__mat {
  background: var(--paper-deep); padding: 14px;
  clip-path: polygon(0% 1%, 4% 0%, 9% 1.2%, 15% 0.2%, 22% 1%, 30% 0%, 38% 1.1%, 46% 0.3%, 55% 1.2%, 63% 0.1%, 71% 1%, 80% 0.2%, 88% 1.1%, 95% 0%, 100% 1%, 99.2% 8%, 100% 17%, 99% 27%, 100% 38%, 99.3% 50%, 100% 61%, 99% 72%, 100% 83%, 99.2% 93%, 100% 99%, 95% 100%, 87% 98.9%, 78% 100%, 69% 99%, 60% 100%, 51% 98.8%, 42% 100%, 33% 99%, 24% 100%, 15% 98.9%, 7% 100%, 0% 99%, 0.8% 90%, 0% 79%, 1% 68%, 0% 56%, 0.9% 44%, 0% 33%, 1% 21%, 0% 10%);
}
.plate img { width: 100%; height: auto; object-fit: cover; }
.plate__seal { position: absolute; width: 112px; height: 112px; left: -36px; bottom: -32px; transform: rotate(-14deg); }

/* HERO: the guild's map (DESIGN.md §7) */
.hero { overflow: clip; padding-bottom: calc(var(--space-10) + var(--tear)); }
.hero__map { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__map .contour { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: 0.13; }
.hero__map .water { fill: var(--sea); opacity: 0.14; }
.hero__map .route { fill: none; stroke: var(--vermilion); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; opacity: 0.75; }
.hero__top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5); padding-right: var(--gutter); }
.banner {
  display: inline-block;
  padding: 22px 64px 26px var(--gutter);
  background: var(--vermilion); color: var(--on-vermilion);
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); line-height: 1;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 50%, 100% 100%, 0 100%);
}
.banner { transition: background-color var(--fast) var(--ease); }
.banner:hover { background: var(--vermilion-deep); }
.banner:focus-visible { outline: none; box-shadow: inset 0 0 0 4px var(--on-vermilion); } /* taste-skill-ignore: focus ring inside the clipped banner */
.hero__nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); padding-top: 14px; }
.hero__nav a {
  display: inline-flex; align-items: center; min-height: 48px;
  font-weight: 800; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.hero__nav a:hover { color: var(--vermilion-deep); }
.hero__nav a[aria-current="page"] { color: var(--vermilion-deep); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); align-items: center; margin-top: var(--space-6); }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-display); line-height: 0.82; letter-spacing: -0.01em; }
.hero__title span { display: block; }
.hero__title span + span { color: var(--vermilion); margin-left: 0.42em; }
.hero__copy { display: grid; gap: var(--space-3); max-width: 62ch; margin-top: var(--space-6); }
.hero__promise { font-weight: 800; font-style: italic; font-size: var(--step-title); line-height: 1.1; color: var(--vermilion); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-6); }
.hero__note { flex-basis: 100%; font-style: italic; color: var(--ink-soft); font-size: var(--step-small); }
.plate--hero { transform: rotate(2deg); }
.plate--hero img { aspect-ratio: 4 / 5; object-position: 50% 55%; animation: settle 4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.plate--hero .plate__seal { animation: stamp 700ms var(--ease) 500ms both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-14deg) scale(1.4); } to { opacity: 1; transform: rotate(-14deg) scale(1); } }
.plate__compass { position: absolute; right: -6px; top: -64px; width: 124px; height: 124px; transform: rotate(-2deg); }

/* PITCH: navy field */
.pitch__title { text-align: center; color: var(--on-ink); max-width: 15em; margin-inline: auto; }
.pitch__note { text-align: center; font-style: italic; font-size: var(--step-lead); line-height: 1.4; max-width: 34em; margin: var(--space-6) auto 0; }
.stops {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6);
  margin-top: var(--space-9); text-align: center;
}
.stops::before { /* the dotted road the stops sit on */
  content: ""; position: absolute; left: 12%; right: 12%; top: 30px;
  border-top: 5px dotted var(--vermilion);
}
.stop { position: relative; display: grid; justify-items: center; gap: var(--space-2); }
.stop__mark { width: 64px; height: 64px; color: var(--on-ink); background-color: var(--ink); background-image: var(--speck); padding: 4px; }
.stop dt { font-family: var(--font-display); font-weight: 800; font-size: var(--step-title); line-height: 1.05; margin-top: var(--space-3); }
.stop dd { color: var(--on-ink-soft); font-size: var(--step-small); }
.pitch__story { max-width: 900px; margin: var(--space-10) auto 0; }
.pitch__story > p { max-width: 62ch; margin-inline: auto; }

.plate--left { width: min(100%, 560px); margin: 0 auto var(--space-8); transform: rotate(-2deg); }
.plate--left img { aspect-ratio: 4 / 3; object-position: 60% 50%; }
.pitch__story p + p { margin-top: var(--space-5); }
.pitch__story > .pitch__kicker { max-width: none; text-align: center; font-style: italic; font-weight: 800; font-size: var(--step-lead); line-height: 1.35; text-wrap: balance; }

/* HOW IT WORKS: a trail across the map */
.ribbon { text-align: center; }
.ribbon span {
  display: inline-block;
  padding: 18px 72px 22px;
  background: var(--vermilion); color: var(--on-vermilion);
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-title); line-height: 1.05;
  clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 50%, 100% 100%, 0 100%, 30px 50%);
}
.trail { position: relative; margin-top: var(--space-9); container-type: inline-size; }
.trail__steps { position: relative; display: flex; flex-direction: column; gap: var(--space-9); }
.step {
  position: relative;
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-5); align-items: start;
  width: min(100%, 560px);
  padding: var(--space-5);
}
/* The trail: a dotted path drawn only in the gaps, from each die to the next. */
.step::after {
  content: ""; position: absolute; top: 136px; bottom: -112px;
  background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M2 2C2 60 98 40 98 98' fill='none' stroke='%23C41E3A' stroke-width='4' stroke-dasharray='1 14' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  pointer-events: none;
}
.step:nth-child(1)::after { left: 72px; width: calc(96cqw - 560px); }
.step:nth-child(2)::after {
  left: calc(72px - (84cqw - 560px)); width: calc(84cqw - 560px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M98 2C98 60 2 40 2 98' fill='none' stroke='%23C41E3A' stroke-width='4' stroke-dasharray='1 14' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.step:nth-child(3)::after {
  left: 42px; width: 60px; bottom: calc(-1 * var(--space-8) - 6px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 2C10 40 90 60 50 98' fill='none' stroke='%23C41E3A' stroke-width='4' stroke-dasharray='1 14' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.step:nth-child(1) { margin-left: 2%; }
.step:nth-child(2) { align-self: flex-end; margin-right: 2%; }
.step:nth-child(3) { margin-left: 14%; }
.die { width: 96px; height: 96px; --tilt: -8deg; transform: rotate(var(--tilt)); }
.step:nth-child(2) .die { --tilt: 7deg; }
.step:nth-child(3) .die { --tilt: -4deg; }
.die rect { fill: var(--vermilion); stroke: var(--ink); stroke-width: 5; }
.die circle { fill: var(--on-vermilion); }
.step__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); }
.step h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--step-title); line-height: 1.05; text-wrap: balance; }
.step__who { font-style: italic; color: var(--ink-soft); font-size: var(--step-small); }
.step p { margin-top: var(--space-3); }
.trail__end {
  position: relative; display: flex; align-items: center; justify-content: flex-start; gap: var(--space-4);
  margin-top: var(--space-8); margin-left: 14%; padding-left: calc(var(--space-5) + 41px);
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); line-height: 1; color: var(--vermilion);
}
.trail__x { width: 0.7em; height: 0.7em; flex: none; }
.trail__x path { stroke: var(--vermilion); stroke-width: 7; stroke-linecap: round; fill: none; }

/* PACKAGES: the commission ticket on the navy field */
.packages__head { text-align: center; }
.packages__head .h-display { color: var(--on-ink); }
.packages__addons { max-width: 60ch; margin: var(--space-5) auto 0; }
.packages__body {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); align-items: start;
  margin-top: var(--space-9);
}
.plate--dice { margin-top: var(--space-9); margin-right: -72px; transform: rotate(-5deg); z-index: 0; }
.plate--dice img { aspect-ratio: 3 / 2; }
.ticket { --notch: var(--ink); position: relative; z-index: 1; display: grid; grid-template-columns: 5fr 3fr; color: var(--ink); }
.wax .ticket { --notch: var(--vermilion); }
.ticket__main, .ticket__stub { background-color: var(--paper); background-image: var(--grain), var(--fibre); }
.ticket__main { padding: var(--space-7); display: grid; gap: var(--space-6); }
.ticket__title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-title); line-height: 1; text-wrap: balance; }
.ticket__packages { display: grid; gap: var(--space-3); }
.pkg {
  position: relative; display: grid; gap: var(--space-2);
  padding: var(--space-5) var(--space-5) var(--space-5) calc(var(--space-5) + 32px);
  background: var(--paper-deep);
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.pkg input { position: absolute; left: var(--space-5); top: calc(var(--space-5) + 6px); width: 20px; height: 20px; margin: 0; accent-color: var(--vermilion); }
.pkg:hover { background: #DCCDB2; }
.pkg:has(input:checked) { background: var(--ink); color: var(--on-ink); }
.pkg:has(input:focus-visible) { outline: 3px solid var(--vermilion); outline-offset: 3px; }
.pkg input:focus-visible { outline: none; }
.pkg__head { display: flex; justify-content: space-between; gap: var(--space-4); font-family: var(--font-display); font-weight: 800; font-size: var(--step-title); line-height: 1.05; }
.pkg__price { font-variant-numeric: tabular-nums; }
.pkg__desc { max-width: 60ch; }
.ticket__extras { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.extra { display: grid; gap: var(--space-2); align-content: start; }
.extra label { font-weight: 800; }
.extra__note { font-size: var(--step-small); color: var(--ink-soft); }
.check { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-3); min-height: 48px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--vermilion); flex: none; }
select, input[type="text"], input[type="email"], input[type="date"], input[type="number"], textarea {
  width: 100%; color: var(--ink);
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  background: var(--paper-light);
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
}
textarea { resize: vertical; min-height: 120px; }
.ticket__stub {
  position: relative;
  border-left: 6px dotted var(--notch);
  padding: var(--space-7) var(--space-5);
  display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: var(--space-3);
  text-align: center;
}
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; left: -17px; width: 28px; height: 28px; border-radius: 50%; background: var(--notch); }
.ticket__stub::before { top: -14px; }
.ticket__stub::after { bottom: -14px; }
.ticket__total { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); line-height: 0.95; color: var(--vermilion); font-variant-numeric: tabular-nums; }
.ticket__summary { font-size: var(--step-small); color: var(--ink-soft); margin-bottom: var(--space-4); }

/* WHAT I BRING: the quest scroll on the sea */
.bring { overflow: clip; }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.waves path { fill: none; stroke: var(--paper); stroke-width: 4; stroke-linecap: round; opacity: 0.35; }
.scroll { max-width: 780px; margin-inline: auto; }
.scroll__rod { height: 30px; margin-inline: -28px; background: var(--ink); border-radius: 999px; position: relative; z-index: 1; }
.scroll__sheet { margin-block: -12px; padding: calc(var(--space-8) + 12px) var(--space-8); }
.scroll__title { text-align: center; }
.scroll__cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-7); margin-top: var(--space-7); }
.scroll__group h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--step-title); line-height: 1; color: var(--vermilion); margin-bottom: var(--space-4); }
.scroll__group ul { display: grid; gap: var(--space-3); }
.scroll__group li { position: relative; padding-left: var(--space-6); }
.scroll__group li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 10px; height: 10px; background: var(--vermilion); transform: rotate(45deg); }

/* WHY PARENTS LOVE IT: letter and photo on the desk */
.why__desk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.letter {
  position: relative; z-index: 1;
  display: grid; gap: var(--space-5);
  margin-left: 6%; padding: var(--space-8) var(--space-8) var(--space-7);
  background-color: var(--paper-light); background-image: var(--grain);
  transform: rotate(-1deg);
}
.letter__lead { font-style: italic; font-weight: 800; font-size: var(--step-lead); color: var(--vermilion-deep); margin-top: calc(-1 * var(--space-3)); }
.letter__sign { font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); line-height: 1; color: var(--vermilion); margin-top: var(--space-3); }
.letter__role { margin-top: calc(-1 * var(--space-3)); font-style: italic; font-size: var(--step-small); color: var(--ink-soft); }
.plate--why { z-index: 2; margin: var(--space-9) 0 0 -64px; transform: rotate(4deg); }
.plate--why img { aspect-ratio: 4 / 5; object-position: 50% 40%; }
.plate--why .plate__seal { left: auto; right: -28px; bottom: auto; top: -36px; transform: rotate(12deg); }

/* PERFECT FOR: the vermilion playbill */
.perfect { overflow: clip; }
.perfect__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr); align-items: center; gap: var(--space-6); }
.perfect__d20 { grid-column: 1; grid-row: 1; justify-self: center; width: min(100%, 240px); height: auto; aspect-ratio: 1; color: var(--on-vermilion); opacity: 0.3; transform: rotate(-12deg); }
.playbill { grid-column: 2; grid-row: 1; text-align: center; }
.perfect__title { font-style: italic; font-weight: 800; font-size: var(--step-lead); }
.playbill__list { margin-top: var(--space-5); display: grid; gap: var(--space-4); }
.playbill__list li { font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); line-height: 1; text-wrap: balance; }
.playbill__list li + li::before { content: ""; display: block; width: 12px; height: 12px; margin: 0 auto var(--space-4); background: var(--on-vermilion); transform: rotate(45deg); }
.plate--library { grid-column: 3; grid-row: 1; transform: rotate(5deg); }
.plate--library img { aspect-ratio: 4 / 3; }

/* OFFSITE: a sealed letter on a photo */
.offsite { overflow: clip; background: var(--ink); }
.offsite__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.offsite__wrap { min-height: 90svh; display: flex; justify-content: flex-end; align-items: center; padding-block: var(--space-9); }
.missive { position: relative; width: min(100%, 440px); padding: var(--space-8) var(--space-6) var(--space-6); display: grid; gap: var(--space-5); transform: rotate(-1.5deg); }
.missive__seal { position: absolute; width: 96px; height: 96px; left: 50%; top: -48px; transform: translateX(-50%) rotate(-8deg); }
.missive__title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-title); line-height: 1.05; text-align: center; text-wrap: balance; }

/* BOOK: the reply card */
.book__stack { max-width: 820px; display: grid; gap: var(--space-7); }
.book__intro { text-align: center; font-style: italic; font-size: var(--step-lead); line-height: 1.35; max-width: 30em; margin-inline: auto; }
.reply { position: relative; color: var(--ink); padding: var(--space-8); transform: rotate(0.5deg); }
.reply__seal { position: absolute; width: 104px; height: 104px; right: -26px; top: -40px; transform: rotate(10deg); }
.reply__title { margin-bottom: var(--space-6); padding-right: var(--space-8); }
.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 800; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.req { font-weight: 400; font-style: italic; font-size: var(--step-small); color: var(--ink-soft); }
.field__err { font-size: var(--step-small); color: var(--vermilion-deep); font-weight: 800; }
.form__status { font-size: var(--step-small); }
.form__status:empty { display: none; }
.book__alt { text-align: center; }
.book__alt a { text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; transition: color var(--fast) var(--ease); }
.book__alt a:hover { color: var(--on-ink-soft); }

/* FOOTER: the guild's sign-off */
.foot { padding-block: var(--space-10) var(--space-7); text-align: center; }
.foot__inner { display: grid; justify-items: center; gap: var(--space-5); }
.foot__compass { width: 88px; height: 88px; }
.foot__sign { font-family: var(--font-display); font-weight: 800; font-size: var(--step-display); line-height: 0.9; text-wrap: balance; }
.foot__name { font-style: italic; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6); }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; transition: color var(--fast) var(--ease); }
.foot__links a:hover { color: var(--vermilion-deep); }
.foot__stamp { width: 88px; height: 88px; padding: 6px; background: var(--paper-deep); transform: rotate(-4deg); }
.foot__imprint { font-size: var(--step-small); color: var(--ink-soft); }
.foot__back a { font-style: italic; font-weight: 800; font-size: var(--step-lead); color: var(--vermilion); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color var(--fast) var(--ease); }
.foot__back a:hover { color: var(--vermilion-deep); }

/* ===== Sticky bar (wider screens) and Top button (phones), DESIGN.md §7 ===== */
.stickybar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: var(--space-6);
  padding: env(safe-area-inset-top, 0px) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 0;
  background-color: var(--paper); background-image: var(--grain);
  transform: translateY(calc(-100% - 20px)); visibility: hidden;
  transition: transform 320ms var(--ease), visibility 0s linear 320ms;
}
.stickybar.is-shown { transform: none; visibility: visible; transition: transform 320ms var(--ease), visibility 0s; }
.stickybar__tear { position: absolute; left: 0; top: 100%; width: 100%; height: 14px; display: block; fill: var(--paper); transform: scaleY(-1); pointer-events: none; }
.stickybar__mark {
  flex: none;
  padding: 12px 44px 14px max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--vermilion); color: var(--on-vermilion);
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-body); line-height: 1; text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%);
  transition: background-color var(--fast) var(--ease);
}
.stickybar__mark:hover { background: var(--vermilion-deep); }
.stickybar__mark:focus-visible { outline: none; box-shadow: inset 0 0 0 4px var(--on-vermilion); } /* taste-skill-ignore: focus ring inside the clipped banner */
.stickybar__nav { margin-left: auto; }
.stickybar__nav ul { display: flex; gap: 0 var(--space-5); }
.stickybar__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 800; font-size: var(--step-small); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.stickybar__nav a:hover { color: var(--vermilion-deep); }
.stickybar__nav a[aria-current="page"] { color: var(--vermilion-deep); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.stickybar__cta { min-height: 44px; padding-inline: 28px; font-size: var(--step-small); }
@media (min-width: 760px) { html { scroll-padding-top: 88px; } }
@media (max-width: 1099px) {
  .stickybar { gap: var(--space-5); }
  .stickybar__cta { display: none; }
  .stickybar__mark { font-size: var(--step-small); padding-right: 36px; }
  .stickybar__nav ul { gap: 0 var(--space-4); }
  .stickybar__nav a { letter-spacing: 0.03em; }
}

.totop { display: none; }
@media (max-width: 759px) {
  .stickybar { display: none; }
  .totop {
    position: fixed; z-index: 30;
    right: max(var(--space-4), env(safe-area-inset-right, 0px));
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    background: var(--ink); color: var(--on-ink);
    font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
    box-shadow: 0 0 0 3px var(--paper); /* taste-skill-ignore: a paper ring so the button reads on navy fields too, not a shadow */
    opacity: 0; scale: 0.8; visibility: hidden;
    transition: opacity 240ms var(--ease), scale 240ms var(--ease), visibility 0s linear 240ms;
  }
  .totop.is-shown { opacity: 1; scale: 1; visibility: visible; transition: opacity 240ms var(--ease), scale 240ms var(--ease), visibility 0s; }
  .totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  .totop:active { scale: 0.94; }
  .totop:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .stickybar, .stickybar.is-shown { transform: none; transition: visibility 0s; }
  .totop, .totop.is-shown { scale: 1; transition: opacity 120ms linear, visibility 0s; }
}

/* ===== Team-building page (DESIGN.md §12) ===== */
.tb-hero__title {
  position: relative; max-width: 15em;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 0.2rem + 6.5vw, 7rem); line-height: 0.92; letter-spacing: -0.005em;
  text-wrap: balance; margin-top: var(--space-6);
}
.tb-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-8); align-items: center; margin-top: var(--space-7); }
.tb-hero__words { display: grid; gap: var(--space-5); max-width: 34em; }
.tb-hero__lead { font-style: italic; font-weight: 800; font-size: var(--step-lead); line-height: 1.35; color: var(--vermilion-deep); }
.tb-hero .hero__actions { margin-top: var(--space-3); }
.plate--tb { transform: rotate(1.5deg); }
.plate--tb img { aspect-ratio: 16 / 10; object-position: center; }

.happens__title { text-align: center; color: var(--on-ink); }
.log {
  max-width: 860px; margin: var(--space-8) auto 0;
  padding: var(--space-8);
  display: grid; gap: var(--space-5);
  color: var(--ink);
  clip-path: polygon(0% 1%, 4% 0%, 9% 1.2%, 15% 0.2%, 22% 1%, 30% 0%, 38% 1.1%, 46% 0.3%, 55% 1.2%, 63% 0.1%, 71% 1%, 80% 0.2%, 88% 1.1%, 95% 0%, 100% 1%, 99.6% 8%, 100% 17%, 99.5% 27%, 100% 38%, 99.6% 50%, 100% 61%, 99.5% 72%, 100% 83%, 99.6% 93%, 100% 99%, 95% 100%, 87% 98.9%, 78% 100%, 69% 99%, 60% 100%, 51% 98.8%, 42% 100%, 33% 99%, 24% 100%, 15% 98.9%, 7% 100%, 0% 99%, 0.4% 90%, 0% 79%, 0.5% 68%, 0% 56%, 0.4% 44%, 0% 33%, 0.5% 21%, 0% 10%);
}
.log__open { font-size: var(--step-lead); line-height: 1.4; }
.log__party { display: grid; gap: var(--space-4); margin-block: var(--space-3); }
.log__party li {
  display: flex; align-items: center; gap: var(--space-4);
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-title); line-height: 1.1;
}
.log__party li:nth-child(2) { padding-left: var(--space-7); }
.log__party li:nth-child(3) { padding-left: var(--space-9); }
.log__mark { flex: none; width: 44px; height: 44px; color: var(--vermilion); }
.happens__close { max-width: 30em; margin: var(--space-8) auto 0; text-align: center; font-style: italic; font-weight: 800; font-size: var(--step-lead); line-height: 1.35; text-wrap: balance; }

.marker { width: 96px; height: 96px; transform: rotate(-8deg); }
.step:nth-child(2) .marker { transform: rotate(9deg); }
.step:nth-child(3) .marker { transform: rotate(-3deg); }
.why-works .step:nth-child(3)::after { display: none; }

.details__title { text-align: center; color: var(--on-vermilion); }
.ticket--static { max-width: 1040px; margin: var(--space-8) auto 0; }
.ticket--static .ticket__main { gap: var(--space-5); }
.ticket--static .ticket__title { font-size: var(--step-head); line-height: 0.95; text-wrap: balance; }

/* Seals stamp onto the trail and the party's d20s roll in, as the homepage dice do. */
.js .why-works .step[data-reveal] .marker { opacity: 0; scale: 1.5; transition: opacity 500ms var(--ease) calc(var(--delay, 0ms) + 150ms), scale 500ms var(--ease) calc(var(--delay, 0ms) + 150ms); }
.js .why-works .step[data-reveal].is-in .marker { opacity: 1; scale: 1; }
.js .log[data-reveal] .log__mark { rotate: -180deg; scale: 0.5; transition: rotate 800ms var(--ease), scale 800ms var(--ease); }
.js .log[data-reveal] li:nth-child(2) .log__mark { transition-delay: 120ms; }
.js .log[data-reveal] li:nth-child(3) .log__mark { transition-delay: 240ms; }
.js .log[data-reveal].is-in .log__mark { rotate: 0deg; scale: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .why-works .step[data-reveal] .marker, .js .log[data-reveal] .log__mark { rotate: none; scale: none; transition: opacity 200ms linear; }
}

@media (max-width: 1099px) {
  .tb-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: var(--space-7); }
  .ticket--static .ticket__title { font-size: var(--step-title); }
}
@media (max-width: 759px) {
  .tb-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-9); }
  .tb-hero .btn { width: 100%; }
  .plate--tb { width: 92%; margin: 0 auto; }
  .log { padding: var(--space-7) var(--space-5); }
  .log__party li:nth-child(2), .log__party li:nth-child(3) { padding-left: 0; }
  .log__mark { width: 36px; height: 36px; }
  .log__party li { font-size: var(--step-lead); }
  .marker { width: 64px; height: 64px; }
}

/* Section entrances (DESIGN.md §10) */
.js [data-reveal] {
  opacity: 0; translate: 0 24px;
  transition: opacity 640ms var(--ease), translate 640ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js .step[data-reveal] .die { transform: rotate(calc(var(--tilt) - 200deg)) scale(0.6); transition: transform 900ms var(--ease) calc(var(--delay, 0ms) + 120ms); }
.js .step[data-reveal].is-in .die { transform: rotate(var(--tilt)); }

/* Tablet */
@media (max-width: 1099px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: var(--space-7); }
  .stops { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-8); }
  .stops::before { display: none; }
  .packages__body { grid-template-columns: minmax(0, 1fr); }
  .plate--dice { width: 60%; margin: 0 auto -48px; }
  .ticket { grid-template-columns: 3fr 2fr; }
  .why__desk { grid-template-columns: minmax(0, 1fr); }
  .letter { margin-left: 0; }
  .plate--why { width: 60%; margin: -24px 0 0 auto; }
  .perfect__stage { grid-template-columns: minmax(0, 1fr); }
  .perfect__d20 { display: none; }
  .playbill, .plate--library { grid-column: 1; grid-row: auto; }
  .plate--library { width: 70%; margin: var(--space-7) auto 0; }
  .step::after { display: none; }
  .trail__steps { gap: var(--space-7); border-left: 5px dotted var(--vermilion); margin-left: 46px; padding-left: 0; }
  .step, .step:nth-child(1), .step:nth-child(2), .step:nth-child(3) { width: auto; margin: 0 0 0 -50px; align-self: stretch; background: none; }
  .trail__end { margin-left: 0; padding-left: 0; }
}

/* Phone */
@media (max-width: 759px) {
  .hero__top { flex-direction: column; gap: 0; }
  .banner { padding: 16px 44px 18px var(--gutter); }
  .hero__nav { padding-left: var(--gutter); }
  .hero__nav ul { gap: 0 var(--space-4); padding-top: var(--space-2); }
  .hero__nav a { font-size: var(--step-small); letter-spacing: 0.02em; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-9); margin-top: var(--space-4); }
  .hero__title { font-size: var(--step-display); }
  .hero .btn { width: 100%; }
  .plate--hero { width: 86%; margin: 0 auto; }
  .plate__compass { width: 88px; height: 88px; top: -44px; }
  .plate__seal { width: 84px; height: 84px; left: -22px; bottom: -24px; }

  .stops { gap: var(--space-6) var(--space-4); }
  .stop__mark { width: 52px; height: 52px; }
  .plate--left { margin-bottom: var(--space-7); }
  .pitch__story { margin-top: var(--space-8); }
  .ticket__total { font-size: var(--step-display); }
  .plate--why .plate__seal { right: -6px; }

  .ribbon span { padding: 14px 40px 18px; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%, 18px 50%); }
  .trail__steps { margin-left: 32px; }
  .step, .step:nth-child(1), .step:nth-child(2), .step:nth-child(3) { grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-4); margin-left: -36px; padding: 0; }
  .die { width: 64px; height: 64px; }

  .plate--dice { width: 80%; margin-bottom: -32px; }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket__main { padding: var(--space-5); }
  .ticket__extras { grid-template-columns: minmax(0, 1fr); }
  .ticket__stub { border-left: 0; border-top: 6px dotted var(--notch); padding: var(--space-8) var(--space-5) var(--space-6); }
  .ticket__stub::before { left: -14px; top: -17px; }
  .ticket__stub::after { left: auto; right: -14px; top: -17px; bottom: auto; }

  .scroll__rod { margin-inline: -8px; height: 24px; }
  .scroll__sheet { padding: calc(var(--space-7) + 12px) var(--space-5); }
  .scroll__cols { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }

  .letter { padding: var(--space-7) var(--space-5); transform: rotate(-0.5deg); }
  .plate--why { width: 78%; }

  .plate--library { width: 86%; }

  .offsite__photo { position: relative; height: 60svh; }
  .offsite { background: var(--ink); }
  .offsite__wrap { min-height: 0; display: block; padding-block: 0 calc(var(--space-9) + var(--tear)); margin-top: -40px; }
  .missive { width: 100%; transform: rotate(-0.5deg); }

  .reply { padding: var(--space-7) var(--space-5) var(--space-5); transform: rotate(0.3deg); }
  .reply__seal { width: 76px; height: 76px; right: -10px; top: -30px; }
  .reply__title { padding-right: var(--space-7); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate--hero img, .plate--hero .plate__seal { animation: none; }
  .js [data-reveal], .js [data-reveal].is-in { translate: none; transition: opacity 200ms linear; }
  .js .step[data-reveal] .die, .js .step[data-reveal].is-in .die { transform: rotate(var(--tilt)); transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
