/* =========================================================================
   GOOD STUFF VENTURES — "The Idea Board"
   -------------------------------------------------------------------------
   Concept: an imagineers' brainstorming whiteboard. Different teammates have
   attacked the board in different marker colors and different handwriting;
   sticky notes are pinned at angles; simple wireframe doodles sketch out
   storylines; annotations (circles, underlines, cross-outs) draw themselves
   in as you scroll, as if someone is marking the board up live.

   Type system (three voices on one board):
     • Caveat        — big marker handwriting (headline energy, quotes)
     • Kalam         — sticky-note / margin handwriting (a second person)
     • IBM Plex Mono — "typed" labels, nav, buttons, folios
     • Fraunces      — editorial headlines (the printed matter pinned up)
     • Newsreader    — long reading copy

   Ink palette (dry-erase primaries):
     board #f4f4f1 · ink #161616 · red #E03E2D · blue #2D6AE3
     green #169E46 · orange #F28A17
   Sticky notes: yellow #FFE259 · pink #FFB7D6 · lime #D8F266

   TABLE OF CONTENTS
   1  Tokens & reset          8  Buttons
   2  The board (backgrounds) 9  Lab flip-book (Interaction #1)
   3  Type & inks            10  Founder
   4  Annotations (draw-on)  11  Treasure map (Interaction #2)
   5  Stickies, pins, cards  12  Closing & footer
   6  Header                 13  Contact + single project
   7  Hero                   14  Reveals, motion, reduced-motion
   ========================================================================= */

/* ---- 1. Tokens & reset ------------------------------------------------- */

:root {
  --board: #f4f4f1;
  --board-line: rgba(22, 22, 22, 0.045);
  --ink: #161616;
  --ink-soft: rgba(22, 22, 22, 0.72);
  --ink-faint: rgba(22, 22, 22, 0.38);

  --m-red: #e03e2d;
  --m-blue: #2d6ae3;
  --m-green: #169e46;
  --m-orange: #f28a17;

  --sticky-yellow: #ffe259;
  --sticky-pink: #ffb7d6;
  --sticky-lime: #d8f266;

  --paper: #ffffff;
  --dark: #141414;
  --dark-line: rgba(255, 255, 255, 0.06);

  --font-marker: "Caveat", cursive;
  --font-note: "Kalam", cursive;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-display: "Fraunces", serif;
  --font-body: "Newsreader", serif;

  --step--1: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  --step-0: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --step-1: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem);
  --step-2: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  --step-3: clamp(2.3rem, 1.8rem + 2.6vw, 3.8rem);
  --step-4: clamp(3rem, 2.1rem + 4.6vw, 5.6rem);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.08), 0 10px 24px rgba(0, 0, 0, 0.1);
  --shadow-sticky: 0 2px 3px rgba(0, 0, 0, 0.1), 0 14px 26px rgba(0, 0, 0, 0.14);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.gs-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  padding: 0.6rem 1rem;
  z-index: 999;
}

.gs-skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

:focus-visible {
  outline: 3px solid var(--m-blue);
  outline-offset: 3px;
}

/* ---- 2. The board ------------------------------------------------------ */
/* Faint dry-erase grid on every light section; a chalk-dark grid on the
   dark ones. The grid is deliberately just-visible — it reads as texture. */

.gs-board,
.gs-main {
  background-color: var(--board);
  background-image:
    linear-gradient(var(--board-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--board-line) 1px, transparent 1px);
  background-size: 34px 34px;
}

.gs-section {
  position: relative;
  padding: clamp(4rem, 9vh, 7.5rem) 0;
}

.gs-section__inner {
  width: min(72rem, 92vw);
  margin: 0 auto;
}

.gs-section__inner--narrow {
  width: min(46rem, 92vw);
}

/* Dashed dry-erase divider between board areas. */
.gs-section--ruled {
  border-top: 2px dashed rgba(22, 22, 22, 0.22);
}

.gs-dark {
  background-color: var(--dark);
  background-image:
    linear-gradient(var(--dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 34px 34px;
  color: #fff;
}

/* ---- 3. Type & inks ---------------------------------------------------- */

.gs-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.gs-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
  max-width: 24ch;
}

.gs-section__inner--narrow .gs-h2 {
  max-width: none;
}

.gs-prose {
  color: var(--ink-soft);
  max-width: 62ch;
}

.gs-prose p {
  margin: 0 0 1.1em;
}

.gs-prose p:last-child {
  margin-bottom: 0;
}

/* Marker voices — apply to any text to hand it to a different teammate. */
.gs-marker {
  font-family: var(--font-marker);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.gs-note-hand {
  font-family: var(--font-note);
  line-height: 1.35;
}

.gs-ink-red    { --ink-c: var(--m-red);    color: var(--m-red); }
.gs-ink-blue   { --ink-c: var(--m-blue);   color: var(--m-blue); }
.gs-ink-green  { --ink-c: var(--m-green);  color: var(--m-green); }
.gs-ink-orange { --ink-c: var(--m-orange); color: var(--m-orange); }

/* Big Caveat display line used for section intros in marker voice. */
.gs-scrawl {
  font-family: var(--font-marker);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1;
  margin: 0 0 0.6rem;
}

/* ---- 4. Annotations — strokes that draw themselves --------------------- */
/* <span class="gs-annot gs-annot--circle gs-ink-red" data-annot>word<svg…>
   The SVG path uses pathLength="1": dasharray/dashoffset of 1 means one
   transition draws any stroke regardless of real length. */

.gs-annot {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  color: inherit; /* the TEXT keeps its color; only the stroke takes ink */
}

.gs-annot svg {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}

.gs-annot--circle svg {
  inset: -0.28em -0.42em;
  width: calc(100% + 0.84em);
  height: calc(100% + 0.56em);
}

.gs-annot--underline svg,
.gs-annot--strike svg {
  left: -0.15em;
  right: -0.15em;
  width: calc(100% + 0.3em);
  height: 0.42em;
}

.gs-annot--underline svg { bottom: -0.22em; }
.gs-annot--strike svg    { top: 50%; transform: translateY(-50%); height: 0.5em; }

.gs-annot path {
  fill: none;
  stroke: var(--ink-c, currentColor);
  stroke-width: 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.gs-annot.is-inked path {
  transition: stroke-dashoffset 0.9s var(--ease-out) 0.15s;
  stroke-dashoffset: 0;
}

/* Colored marker words keep their ink on the text too. */
.gs-annot.gs-ink-red,
.gs-annot.gs-ink-blue,
.gs-annot.gs-ink-green,
.gs-annot.gs-ink-orange {
  color: var(--ink-c);
}

.gs-annot--underline,
.gs-annot--strike {
  color: inherit; /* underlined/struck words stay in the text's own color */
}

/* A crossed-out word with the "correction" scribbled above it. */
.gs-fix {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.gs-fix__over {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 0.1em);
  transform: translateX(-50%) rotate(-4deg);
  font-family: var(--font-marker);
  font-weight: 700;
  font-size: 0.85em;
  line-height: 1;
  color: var(--ink-c, var(--m-red));
  opacity: 0;
  translate: 0 0.3em;
}

.gs-annot.is-inked .gs-fix__over,
.is-inked .gs-fix__over {
  transition: opacity 0.4s ease 0.85s, translate 0.4s var(--ease-out) 0.85s;
  opacity: 1;
  translate: 0 0;
}

/* Whiteboard doodles (wireframe storyline sketches). Every stroke carries
   pathLength="1" and draws in sequence via --doodle-i. */
.gs-doodle path,
.gs-doodle line,
.gs-doodle rect,
.gs-doodle circle,
.gs-doodle ellipse {
  fill: none;
  stroke: var(--ink-c, var(--ink));
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.gs-doodle.is-inked path,
.gs-doodle.is-inked line,
.gs-doodle.is-inked rect,
.gs-doodle.is-inked circle,
.gs-doodle.is-inked ellipse {
  transition: stroke-dashoffset 0.8s var(--ease-out) calc(var(--doodle-i, 0) * 0.28s);
  stroke-dashoffset: 0;
}

.gs-doodle text {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  fill: var(--ink-soft);
  stroke: none;
  opacity: 0;
}

.gs-doodle.is-inked text {
  transition: opacity 0.5s ease calc(var(--doodle-i, 0) * 0.28s + 0.3s);
  opacity: 1;
}

.gs-doodle .gs-doodle__hand {
  font-family: var(--font-marker);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  fill: var(--ink-c, var(--ink));
}

/* ---- 5. Stickies, pins, pinned cards ----------------------------------- */

.gs-pin {
  position: absolute;
  top: -9px;
  left: 50%;
  margin-left: -9px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.85) 0 12%, transparent 42%),
    radial-gradient(circle at 50% 50%, var(--pin-c, #d21f0f) 0 62%, color-mix(in srgb, var(--pin-c, #d21f0f) 55%, #000) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 5px 7px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.gs-pin--red    { --pin-c: #e03e2d; }
.gs-pin--blue   { --pin-c: #2d6ae3; }
.gs-pin--green  { --pin-c: #169e46; }
.gs-pin--orange { --pin-c: #f28a17; }

.gs-sticky {
  position: relative;
  background: var(--sticky-yellow);
  font-family: var(--font-note);
  font-weight: 400;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.35;
  color: var(--ink);
  padding: 1.6rem 1.5rem 1.9rem;
  box-shadow: var(--shadow-sticky);
  rotate: -2deg;
  /* a faint darker lip along the top edge, like the pad's glue strip */
  background-image: linear-gradient(rgba(0, 0, 0, 0.045), transparent 14%);
}

.gs-sticky p {
  margin: 0;
}

.gs-sticky--pink { background-color: var(--sticky-pink); rotate: 2.2deg; }
.gs-sticky--lime { background-color: var(--sticky-lime); rotate: -1.4deg; }

/* Pinned white card — the "printed matter" tacked to the board. */
.gs-card {
  position: relative;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.5rem 1.6rem;
}

/* Tilt utilities — scatter things at slight angles like a real board. */
.gs-tilt-1 { rotate: -2deg; }
.gs-tilt-2 { rotate: 1.6deg; }
.gs-tilt-3 { rotate: -1deg; }
.gs-tilt-4 { rotate: 2.4deg; }

/* ---- 6. Header --------------------------------------------------------- */

.gs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}

.gs-header__inner {
  width: min(80rem, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.gs-header__brand {
  text-decoration: none;
}

.gs-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.gs-lockup .gs-mark {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--m-red); /* the mark drawn in red marker */
  flex: none;
}

.gs-lockup__word {
  font-family: var(--font-marker);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
  white-space: nowrap;
}

.gs-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  margin: 0;
  padding: 0;
}

.gs-nav__list a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0.1rem;
}

.gs-nav__list a:hover {
  color: var(--m-red);
}

.gs-nav__cta {
  border: 2px solid var(--m-blue);
  color: var(--m-blue) !important;
  padding: 0.55rem 1.1rem !important;
}

.gs-nav__cta:hover {
  background: var(--m-blue);
  color: #fff !important;
}

@media (max-width: 767px) {
  .gs-lockup__word { display: none; }
  .gs-nav__list { gap: 0.9rem; }
  .gs-nav__list a { font-size: 0.72rem; letter-spacing: 0.14em; }
}

/* ---- 7. Hero ----------------------------------------------------------- */

.gs-hero {
  position: relative;
  padding: clamp(4rem, 10vh, 8rem) 0 clamp(4rem, 9vh, 7rem);
  overflow: hidden;
}

.gs-hero__grid {
  width: min(80rem, 94vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.gs-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.6rem;
}

.gs-hero__title .gs-hero__line {
  display: block;
}

/* "good stuff." handed to the red marker. */
.gs-hero__marker {
  font-family: var(--font-marker);
  font-weight: 700;
  font-size: 1.06em;
  line-height: 1;
}

.gs-hero__tagline {
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.4;
  max-width: 26ch;
  margin: 0 0 1rem;
}

.gs-hero__desc {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 2.2rem;
}

.gs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Scattered sticky column. */
.gs-hero__stickies {
  display: grid;
  gap: 2.2rem;
  padding-top: 1.5rem;
}

.gs-hero__stickies .gs-sticky {
  max-width: 21rem;
  justify-self: end;
}

.gs-hero__stickies .gs-sticky:nth-child(2) {
  justify-self: start;
  margin-left: clamp(0rem, 3vw, 2.5rem);
}

/* Hero entrance — lines pop on like marker strokes landing. */
[data-hero-line] {
  opacity: 0;
  translate: 0 1.1rem;
  rotate: 0.4deg;
}

body.is-loaded [data-hero-line] {
  transition: opacity 0.7s ease, translate 0.8s var(--ease-out), rotate 0.8s var(--ease-out);
  opacity: 1;
  translate: 0 0;
  rotate: 0deg;
}

body.is-loaded .gs-hero__line:nth-child(1) { transition-delay: 0.05s; }
body.is-loaded .gs-hero__line:nth-child(2) { transition-delay: 0.22s; }
body.is-loaded .gs-hero__tagline           { transition-delay: 0.45s; }
body.is-loaded .gs-hero__desc              { transition-delay: 0.6s; }
body.is-loaded .gs-hero__actions           { transition-delay: 0.75s; }

@media (max-width: 1023px) {
  .gs-hero__grid { grid-template-columns: 1fr; }
  .gs-hero__stickies {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    padding-top: 0.5rem;
  }
  .gs-hero__stickies .gs-sticky,
  .gs-hero__stickies .gs-sticky:nth-child(2) {
    justify-self: stretch;
    margin-left: 0;
    max-width: none;
  }
}

/* ---- 8. Buttons --------------------------------------------------------- */

.gs-button,
.gs-button--ghost {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, color 0.2s ease;
}

.gs-button {
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
}

.gs-button:hover {
  transform: translateY(-2px) rotate(-0.5deg);
}

.gs-button--ghost {
  background: transparent;
  color: var(--m-red);
  border: 2px solid var(--m-red);
}

.gs-button--ghost:hover {
  background: var(--m-red);
  color: #fff;
  transform: translateY(-2px) rotate(0.5deg);
}

/* ---- 9. The Lab flip-book — Signature Interaction #1 -------------------- */
/* Reskinned for the board: each page is a big white sheet pinned to the
   whiteboard; entries are small pinned cards; the teaser tier is a giant
   lime sticky. The 3D page-turn mechanics are unchanged (see flipbook.js):
   the FLAT layout below is the default; everything pinned/3D lives under
   .gs-lab.is-armed only. */

.gs-lab {
  padding-top: clamp(4rem, 9vh, 7.5rem);
}

.gs-lab__intro {
  margin-bottom: 2.5rem;
}

.gs-lab__intro .gs-scrawl {
  color: var(--m-green);
  font-size: var(--step-3);
}

/* Base (flat, no-JS / reduced-motion / short viewports) ------------------ */
.gs-book-stage {
  position: relative;
}

.gs-book {
  display: grid;
  gap: 3rem;
  width: min(64rem, 94vw);
  margin: 0 auto;
}

.gs-book__controls {
  display: none;
}

.gs-page {
  position: relative;
}

.gs-page__paper {
  position: relative;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  padding: clamp(1.6rem, 4vw, 3rem);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* every sheet gets a pushpin; colors rotate per page */
.gs-page__paper::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  margin-left: -9px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.85) 0 12%, transparent 42%),
    radial-gradient(circle at 50% 50%, var(--pin-c, #e03e2d) 0 62%, color-mix(in srgb, var(--pin-c, #e03e2d) 55%, #000) 100%);
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.gs-page:nth-child(1) { --pin-c: #e03e2d; }
.gs-page:nth-child(2) { --pin-c: #f28a17; }
.gs-page:nth-child(3) { --pin-c: #2d6ae3; }

.gs-page--teaser .gs-page__paper {
  background: var(--sticky-lime);
  background-image: linear-gradient(rgba(0, 0, 0, 0.04), transparent 12%);
}

.gs-page__folio {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  margin: 0 0 0.4rem;
}

.gs-page__tier {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

/* each tier written by a different teammate's marker */
.gs-page[data-stage="good-stuff"]           .gs-page__tier { color: var(--m-green); }
.gs-page[data-stage="in-development"]       .gs-page__tier { color: var(--m-blue); }
.gs-page[data-stage="something-is-cooking"] .gs-page__tier { color: var(--m-red); }

.gs-page__tierline {
  font-family: var(--font-note);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}

.gs-page__entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.6rem;
  align-content: start;
}

/* Entries = little pinned cards, scattered at angles. */
.gs-entry {
  position: relative;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.gs-page--teaser .gs-entry {
  background: #fdfef4;
}

.gs-entry::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 1.1rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.85) 0 12%, transparent 42%),
    radial-gradient(circle at 50% 50%, var(--pin-c, #169e46) 0 62%, color-mix(in srgb, var(--pin-c, #169e46) 55%, #000) 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.gs-entry:nth-child(4n+1) { rotate: -1.3deg; --pin-c: #169e46; }
.gs-entry:nth-child(4n+2) { rotate: 1.1deg;  --pin-c: #2d6ae3; }
.gs-entry:nth-child(4n+3) { rotate: -0.7deg; --pin-c: #f28a17; }
.gs-entry:nth-child(4n+4) { rotate: 1.6deg;  --pin-c: #e03e2d; }

.gs-entry__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gs-entry__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.15;
  margin: 0;
}

.gs-entry__title a {
  text-decoration: none;
}

.gs-entry__title a:hover {
  color: var(--m-red);
}

.gs-entry__desc {
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.55;
  margin: 0;
}

.gs-entry__note {
  font-family: var(--font-note);
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--m-orange);
  padding-left: 0.7rem;
  margin: 0;
}

.gs-entry__link {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--m-blue);
  text-decoration: none;
  margin-top: auto;
}

.gs-entry__link:hover {
  text-decoration: underline;
}

/* Art-directed placeholder — a lime sticky carrying the shot brief. */
.gs-placeholder {
  position: relative;
  margin: 0;
  background: var(--sticky-lime);
  background-image: linear-gradient(rgba(0, 0, 0, 0.045), transparent 14%);
  box-shadow: var(--shadow-sticky);
  rotate: -1.2deg;
  padding: 1.1rem 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 9rem;
}

.gs-placeholder__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--m-red);
}

.gs-placeholder__brief {
  font-family: var(--font-note);
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* Armed (pinned 3D book) ------------------------------------------------- */
.gs-lab.is-armed .gs-book-stage {
  height: calc(var(--gs-pages, 3) * 110vh + 40vh);
}

.gs-lab.is-armed .gs-book {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  perspective: 1800px;
  perspective-origin: 50% 45%;
  width: auto;
  margin: 0;
  gap: 0;
}

.gs-lab.is-armed .gs-page {
  position: absolute;
  inset: 0;
  margin: auto;
  height: min(76svh, 46rem);
  width: min(62rem, 92vw);
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

.gs-lab.is-armed .gs-page__paper {
  height: 100%;
  overflow: hidden;
}

/* page-turn shading tied to --turn (set by flipbook.js) */
.gs-lab.is-armed .gs-page__paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(0, 0, 0, 0.28), transparent 55%);
  opacity: calc(var(--turn, 0) * 0.9);
}

.gs-lab.is-armed .gs-page__entries {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.6rem 0.4rem 1rem;
}

.gs-lab.is-armed .gs-page__head,
.gs-lab.is-armed .gs-page__entries,
.gs-lab.is-armed .gs-entry__media {
  will-change: transform;
}

.gs-lab.is-armed .gs-book__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  z-index: 30;
}

.gs-book__btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  padding: 0.65rem 1.1rem;
  cursor: pointer;
}

.gs-book__btn:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
}

.gs-book__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.gs-book__count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

/* Armed, small screens: entries become a horizontal snap shelf. */
@media (max-width: 767px) {
  .gs-lab.is-armed .gs-page {
    width: 94vw;
    height: min(80svh, 44rem);
  }
  .gs-lab.is-armed .gs-page__entries {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1.2rem;
  }
  .gs-lab.is-armed .gs-entry {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

/* ---- 10. Founder -------------------------------------------------------- */

.gs-founder {
  border-top: 2px dashed rgba(22, 22, 22, 0.22);
}

.gs-founder__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.gs-founder__media .gs-placeholder {
  min-height: 22rem;
  rotate: -1.8deg;
}

.gs-founder__media .gs-placeholder::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  margin-left: -9px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.85) 0 12%, transparent 42%),
    radial-gradient(circle at 50% 50%, #2d6ae3 0 62%, #12244e 100%);
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
}

.gs-founder__media img {
  box-shadow: var(--shadow-card);
  rotate: -1.8deg;
}

.gs-founder__facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.gs-founder__facts li {
  background: var(--paper);
  box-shadow: var(--shadow-card);
  padding: 0.9rem 1rem 1rem;
  font-family: var(--font-note);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.gs-founder__facts li:nth-child(odd)  { rotate: -0.8deg; }
.gs-founder__facts li:nth-child(even) { rotate: 0.9deg; }

.gs-founder__facts li span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

@media (max-width: 1023px) {
  .gs-founder__grid { grid-template-columns: 1fr; }
  .gs-founder__media { max-width: 26rem; }
}

/* ---- 11. Treasure map — Signature Interaction #2 ------------------------ */
/* Reskinned as a whiteboard wireframe: the trail is a blue dry-erase dashed
   line, waypoints are marker-circled labels with pinned note cards, and the
   traveller is a red pushpin riding the line. */

.gs-map {
  border-top: 2px dashed rgba(22, 22, 22, 0.22);
}

.gs-map__intro .gs-scrawl {
  color: var(--m-blue);
  font-size: var(--step-3);
}

.gs-map__stage {
  position: relative;
  width: min(70rem, 94vw);
  margin: 3rem auto 0;
  color: var(--ink);
}

.gs-map__svg {
  display: block;
  width: 100%;
  height: auto;
}

.gs-map__trail {
  stroke: var(--m-blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 14 13; /* dry-erase dashed line */
  opacity: 0.85;
}

.gs-map__decor {
  color: var(--ink);
}

.gs-map__marker-halo {
  fill: rgba(224, 62, 45, 0.16);
}

.gs-map__marker-pin {
  fill: url(#gsPinGrad);
}

.gs-map__marker {
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.3));
}

.gs-map__waypoints {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gs-waypoint {
  position: absolute;
  transform: translate(-50%, -50%);
}

.gs-waypoint__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 0;
  padding: 0.3rem 0.4rem;
  cursor: pointer;
  font: inherit;
}

.gs-waypoint__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid var(--m-blue);
  background: var(--board);
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
  flex: none;
}

.gs-waypoint.is-reached .gs-waypoint__dot {
  background: var(--m-blue);
  transform: scale(1.15);
}

.gs-waypoint__name {
  font-family: var(--font-marker);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.9rem);
  line-height: 1;
  color: var(--ink);
  transition: color 0.25s ease;
}

.gs-waypoint.is-reached .gs-waypoint__name {
  color: var(--m-blue);
}

/* teammates trade markers along the route */
.gs-waypoint:nth-child(4n+2) .gs-waypoint__dot  { border-color: var(--m-green); }
.gs-waypoint:nth-child(4n+2).is-reached .gs-waypoint__dot { background: var(--m-green); }
.gs-waypoint:nth-child(4n+2).is-reached .gs-waypoint__name { color: var(--m-green); }
.gs-waypoint:nth-child(4n+3) .gs-waypoint__dot  { border-color: var(--m-orange); }
.gs-waypoint:nth-child(4n+3).is-reached .gs-waypoint__dot { background: var(--m-orange); }
.gs-waypoint:nth-child(4n+3).is-reached .gs-waypoint__name { color: var(--m-orange); }
.gs-waypoint:nth-child(4n+4) .gs-waypoint__dot  { border-color: var(--m-red); }
.gs-waypoint:nth-child(4n+4).is-reached .gs-waypoint__dot { background: var(--m-red); }
.gs-waypoint:nth-child(4n+4).is-reached .gs-waypoint__name { color: var(--m-red); }

/* The description = a small pinned index card that unfolds. */
.gs-waypoint__desc {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: 15.5rem;
  margin: 0;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  padding: 0.85rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  rotate: -1deg;
  opacity: 0;
  translate: 0 0.4rem;
  pointer-events: none;
  transition: opacity 0.3s ease, translate 0.35s var(--ease-out);
  z-index: 5;
}

.gs-waypoint.is-flipped .gs-waypoint__desc {
  left: auto;
  right: 0;
  rotate: 1deg;
}

.gs-waypoint.is-active .gs-waypoint__desc,
.gs-waypoint__btn:hover + .gs-waypoint__desc,
.gs-waypoint__btn:focus-visible + .gs-waypoint__desc,
.gs-waypoint__btn[aria-expanded="true"] + .gs-waypoint__desc {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

/* Mobile: compact map on top, waypoints unfold as a vertical trail. */
@media (max-width: 767px) {
  .gs-map__stage {
    display: grid;
    gap: 1.5rem;
  }
  .gs-map__svg {
    max-height: 44vh;
  }
  .gs-waypoint {
    position: static;
    transform: none;
  }
  .gs-map__waypoints {
    display: grid;
    gap: 0.4rem;
    border-left: 3px dashed var(--m-blue);
    padding-left: 1.1rem;
    margin-left: 0.4rem;
  }
  .gs-waypoint__desc {
    position: static;
    width: auto;
    display: none;
    margin-top: 0.35rem;
  }
  .gs-waypoint.is-active .gs-waypoint__desc,
  .gs-waypoint__btn[aria-expanded="true"] + .gs-waypoint__desc {
    display: block;
    opacity: 1;
    translate: 0 0;
  }
}

/* ---- 12. Closing & footer ----------------------------------------------- */

.gs-closing {
  text-align: center;
}

.gs-closing__line {
  font-family: var(--font-marker);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.1;
  max-width: 22ch;
  margin: 0 auto 2rem;
}

.gs-closing__line .gs-annot { color: var(--m-red); }

.gs-footer {
  background: var(--dark);
  background-image:
    linear-gradient(var(--dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 34px 34px;
  color: #fff;
  padding: clamp(3rem, 7vh, 5rem) 0 2rem;
}

.gs-footer__inner {
  width: min(72rem, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.gs-footer__brand {
  display: grid;
  gap: 1rem;
}

.gs-footer__mark {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--m-red);
}

.gs-footer__closing {
  font-family: var(--font-marker);
  font-weight: 600;
  font-size: var(--step-1);
  margin: 0;
  max-width: 30ch;
}

.gs-footer__details {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.gs-footer__address {
  font-style: normal;
  margin: 0 0 0.5rem;
}

.gs-footer__contact a {
  color: var(--sticky-yellow);
  text-decoration: none;
}

.gs-footer__contact a:hover {
  text-decoration: underline;
}

.gs-footer__legal {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  padding-top: 1.2rem;
  margin: 0;
}

/* ---- 13. Sections 2–5, contact, single project --------------------------- */

.gs-premise {
  border-top: 2px dashed rgba(22, 22, 22, 0.22);
}

.gs-premise__note {
  margin-top: 2rem;
  max-width: 18rem;
}

/* Story: photos pinned like reference shots. */
.gs-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.gs-photo {
  position: relative;
  margin: 0;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  padding: 0.7rem 0.7rem 0.4rem;
}

.gs-photo::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  margin-left: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.85) 0 12%, transparent 42%),
    radial-gradient(circle at 50% 50%, var(--pin-c, #169e46) 0 62%, color-mix(in srgb, var(--pin-c, #169e46) 55%, #000) 100%);
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.gs-photo--tall { rotate: -1.6deg; --pin-c: #169e46; }

.gs-photo--offset {
  rotate: 2deg;
  --pin-c: #f28a17;
  margin-top: 2rem;
  margin-left: clamp(1rem, 4vw, 3rem);
}

.gs-photo figcaption {
  font-family: var(--font-note);
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.2rem;
}

/* Tech note: dark board with the quote in white marker. */
.gs-tech {
  padding-bottom: 0;
}

.gs-tech__callout {
  margin: clamp(3rem, 7vh, 5rem) 0 0;
  padding: clamp(4rem, 10vh, 7rem) 6vw;
  text-align: center;
}

.gs-tech__callout p {
  font-family: var(--font-marker);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.15;
  max-width: 22ch;
  margin: 0 auto 1.4rem;
}

.gs-tech__callout::after {
  content: "";
  display: block;
  width: 8rem;
  height: 6px;
  margin: 0 auto;
  background: var(--m-orange);
  border-radius: 3px;
  rotate: -0.5deg;
}

/* Start with the story: the wireframe storyline doodle. */
.gs-start__doodle {
  margin: 2.5rem auto 0;
  max-width: 46rem;
}

.gs-start__doodle svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Contact — a worksheet pinned to the board. */
.gs-contact .gs-form {
  position: relative;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  rotate: -0.6deg;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2rem;
  display: grid;
  gap: 1.2rem;
}

.gs-contact .gs-form::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  margin-left: -9px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.85) 0 12%, transparent 42%),
    radial-gradient(circle at 50% 50%, #e03e2d 0 62%, #5e150c 100%);
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
}

.gs-form__row {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.gs-form__row label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.gs-form__row input,
.gs-form__row textarea {
  font-family: var(--font-note);
  font-size: 1.15rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px dashed rgba(22, 22, 22, 0.35);
  padding: 0.5rem 0.1rem;
}

.gs-form__row input:focus,
.gs-form__row textarea:focus {
  outline: none;
  border-bottom-color: var(--m-blue);
  border-bottom-style: solid;
}

.gs-form__hp {
  position: absolute;
  left: -9999px;
}

.gs-form__actions {
  margin: 0.5rem 0 0;
}

.gs-form__fineprint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin: 0.5rem 0 0;
}

.gs-form__fineprint a { color: var(--ink-soft); }

.gs-form-status {
  font-family: var(--font-note);
  font-size: 1.1rem;
  padding: 1rem 1.2rem;
  background: var(--sticky-yellow);
  box-shadow: var(--shadow-sticky);
  rotate: -1deg;
}

.gs-form-status--success { background: var(--sticky-lime); }
.gs-form-status--error   { background: var(--sticky-pink); }

.gs-contact__aside {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* Single project view */
.gs-project__media {
  margin: 1.5rem 0;
}

.gs-project__media img {
  box-shadow: var(--shadow-card);
  rotate: -1deg;
}

.gs-project__back {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---- 14. Reveals, motion, reduced motion --------------------------------- */

[data-reveal] {
  opacity: 0;
  translate: 0 1.4rem;
}

[data-reveal].is-visible {
  transition: opacity 0.7s ease, translate 0.8s var(--ease-out);
  opacity: 1;
  translate: 0 0;
}

[data-reveal-delay="1"].is-visible { transition-delay: 0.15s; }
[data-reveal-delay="2"].is-visible { transition-delay: 0.3s; }
[data-reveal-delay="3"].is-visible { transition-delay: 0.45s; }

/* Stickies land with a tiny settle, like they were just slapped on. */
.gs-sticky[data-reveal] {
  translate: 0 1rem;
  scale: 0.96;
}

.gs-sticky[data-reveal].is-visible {
  transition: opacity 0.5s ease, translate 0.6s var(--ease-out), scale 0.6s var(--ease-out);
  translate: 0 0;
  scale: 1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-hero-line],
  [data-reveal],
  .gs-sticky[data-reveal] {
    opacity: 1 !important;
    translate: 0 0 !important;
    rotate: none;
    scale: 1 !important;
    transition: none !important;
  }

  .gs-sticky[data-reveal] { rotate: -2deg; }
  .gs-sticky--pink[data-reveal] { rotate: 2.2deg; }
  .gs-sticky--lime[data-reveal] { rotate: -1.4deg; }

  /* Annotations & doodles render fully drawn, no animation. */
  .gs-annot path,
  .gs-doodle path,
  .gs-doodle line,
  .gs-doodle rect,
  .gs-doodle circle,
  .gs-doodle ellipse {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .gs-doodle text,
  .gs-fix__over {
    opacity: 1 !important;
    transition: none !important;
  }

  .gs-button:hover,
  .gs-button--ghost:hover {
    transform: none;
  }
}

/* ---- 15. Small addenda --------------------------------------------------- */

/* Quiet mark fallback for entries with no image and no shot brief. */
.gs-entry__markfill {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--board);
  border: 2px dashed rgba(22, 22, 22, 0.18);
}

.gs-entry__markfill .gs-mark {
  width: 3rem;
  height: 3rem;
  color: var(--ink-faint);
}

.gs-page__empty {
  font-family: var(--font-note);
  color: var(--ink-soft);
  margin: 0;
}

.gs-mark {
  display: block;
}

/* Map doodles need thicker strokes (they scale down with the viewBox). */
.gs-map__doodles path {
  stroke-width: 5;
}

/* =========================================================================
   MULTI-PAGE ADDITIONS — v2
   1. Logo +50%           2. Hamburger menu      3. Square sticky notes
   4. Mobile photo wrap   5. Page-nav cards      6. Lab mobile fix
   7. Founder stickies    8. Page-level headings
   ========================================================================= */

/* ---- 1. Logo +50% ------------------------------------------------------ */

.gs-lockup .gs-mark {
  width: 3.15rem;   /* was 2.1rem */
  height: 3.15rem;
}

.gs-lockup__word {
  font-size: 2.3rem; /* was 1.55rem */
}

.gs-header__inner {
  padding: 0.9rem 0; /* slightly taller for the bigger mark */
}

.gs-footer__mark {
  width: 3.9rem;   /* footer mark also +50%: was 2.6rem */
  height: 3.9rem;
}

/* ---- 2. Hamburger menu -------------------------------------------------- */

.gs-hamburger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 2px solid var(--ink);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  z-index: 200;
  flex: none;
}

.gs-hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
  transform-origin: center;
}

/* X state */
.gs-hamburger[aria-expanded="true"] .gs-hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.gs-hamburger[aria-expanded="true"] .gs-hamburger__bar:nth-child(2) {
  opacity: 0;
}
.gs-hamburger[aria-expanded="true"] .gs-hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .gs-hamburger {
    display: flex;
  }

  /* The nav panel — slides in from the right as a full-screen overlay. */
  .gs-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(18rem, 85vw);
    background: var(--board);
    background-image:
      linear-gradient(var(--board-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--board-line) 1px, transparent 1px);
    background-size: 34px 34px;
    border-left: 2px solid var(--ink);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
    z-index: 150;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    overflow-y: auto;
    padding: 5rem 0 2rem;
  }

  .gs-nav.is-open {
    transform: translateX(0);
  }

  .gs-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
  }

  .gs-nav__list li {
    width: 100%;
    border-bottom: 1px dashed rgba(22, 22, 22, 0.2);
  }

  .gs-nav__list a {
    display: block;
    padding: 1.1rem 1.6rem;
    font-size: 1rem;
    letter-spacing: 0.18em;
  }

  .gs-nav__cta {
    margin: 1.2rem 1.6rem 0;
    display: inline-block;
    border: 2px solid var(--m-blue);
    color: var(--m-blue) !important;
    padding: 0.75rem 1.2rem !important;
    width: calc(100% - 3.2rem);
    text-align: center;
  }

  /* Backdrop when nav is open */
  .gs-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 140;
  }

  .gs-nav-backdrop.is-visible {
    display: block;
  }
}

/* ---- 3. Square sticky notes -------------------------------------------- */
/* Override the rectangular padding with equal sides + aspect-ratio.        */

.gs-sticky {
  aspect-ratio: 1 / 1;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* The hero stickies sit in a grid so they size naturally to the column.    */
.gs-hero__stickies .gs-sticky {
  width: 100%;
  max-width: 21rem;
}

/* Premise aside note — constrain it so it's not wall-to-wall.              */
.gs-premise__note .gs-sticky {
  max-width: 16rem;
}

/* ---- 4. Mobile: text wraps around pinned photos ------------------------- */

@media (max-width: 767px) {
  .gs-story__grid {
    display: block; /* collapse the two-column grid */
  }

  .gs-story__media {
    /* First photo floats right, text wraps around it */
  }

  .gs-photo--tall {
    float: right;
    width: 48%;
    margin: 0 0 1rem 1.2rem;
    rotate: -1deg;
  }

  .gs-photo--offset {
    float: right;
    clear: right;
    width: 42%;
    margin: 0 0 1rem 1.2rem;
    rotate: 1.5deg;
  }

  /* Clearfix after the story section so the next section starts clean */
  .gs-story__grid::after {
    content: "";
    display: table;
    clear: both;
  }

  .gs-founder__grid {
    display: block;
  }

  .gs-founder__media {
    float: right;
    width: 45%;
    margin: 0 0 1rem 1.2rem;
    max-width: none;
  }

  .gs-founder__grid::after {
    content: "";
    display: table;
    clear: both;
  }
}

/* ---- 5. Page navigation cards (homepage) -------------------------------- */

.gs-pagenav {
  overflow: hidden;
}

.gs-pagenav__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.2rem;
  margin-top: 2rem;
}

.gs-pagenav__card {
  position: relative;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.8rem 2.2rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.gs-pagenav__card:nth-child(1) { rotate: -1.2deg; }
.gs-pagenav__card:nth-child(2) { rotate: 0.8deg; }
.gs-pagenav__card:nth-child(3) { rotate: -0.6deg; }
.gs-pagenav__card:nth-child(4) { rotate: 1.4deg; }

.gs-pagenav__card:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.gs-pagenav__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0;
}

.gs-pagenav__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.25;
  margin: 0;
}

.gs-pagenav__sub {
  font-family: var(--font-note);
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.gs-pagenav__arrow {
  font-family: var(--font-marker);
  font-size: 1.8rem;
  line-height: 1;
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--ink-soft);
  transition: color 0.2s ease, transform 0.2s ease;
  display: block;
}

.gs-pagenav__card:hover .gs-pagenav__arrow {
  color: var(--m-red);
  transform: translateX(4px);
}

.gs-pagenav__card--cta {
  background: var(--dark);
  color: #fff;
  background-image:
    linear-gradient(var(--dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 34px 34px;
}

.gs-pagenav__card--cta .gs-pagenav__arrow {
  color: var(--sticky-yellow);
}

/* ---- 6. Lab mobile fix — tab switcher replaces 3D flip-book on mobile --- */
/* On mobile (≤ 767px) the 3D flip-book is replaced with a tab bar at the  */
/* top (one button per stage) and a visible single-stage card grid below.   */
/* JS (main.js) sets data-active-stage on .gs-lab, tabs add .is-active.     */

@media (max-width: 767px) {
  /* Prevent the JS from ever arming the 3D flip-book on mobile. */
  .gs-lab.is-armed .gs-book-stage {
    height: auto !important;
  }

  .gs-lab.is-armed .gs-book {
    position: static !important;
    height: auto !important;
    perspective: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .gs-lab.is-armed .gs-page {
    position: static !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    transform-style: flat !important;
  }

  .gs-lab.is-armed .gs-page__paper {
    height: auto !important;
    overflow: visible !important;
  }

  .gs-lab.is-armed .gs-page__paper::after {
    display: none;
  }

  .gs-lab.is-armed .gs-page__entries {
    overflow: visible !important;
  }

  .gs-lab.is-armed .gs-book__controls {
    display: none !important;
  }

  /* Tab switcher */
  .gs-lab__tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    border: 2px solid var(--ink);
  }

  .gs-lab__tab {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: transparent;
    border: 0;
    border-right: 2px solid var(--ink);
    padding: 0.8rem 0.4rem;
    cursor: pointer;
    color: var(--ink-soft);
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
  }

  .gs-lab__tab:last-child { border-right: 0; }

  .gs-lab__tab.is-active,
  .gs-lab__tab:hover {
    background: var(--ink);
    color: #fff;
  }

  /* Show/hide pages by stage */
  .gs-page { display: block; }

  .gs-lab[data-active-stage] .gs-page {
    display: none;
  }

  .gs-lab[data-active-stage="good-stuff"] .gs-page[data-stage="good-stuff"],
  .gs-lab[data-active-stage="in-development"] .gs-page[data-stage="in-development"],
  .gs-lab[data-active-stage="something-is-cooking"] .gs-page[data-stage="something-is-cooking"] {
    display: block;
  }
}

/* Desktop: hide the tab UI */
@media (min-width: 768px) {
  .gs-lab__tabs { display: none; }
}

/* ---- 7. Founder page extras -------------------------------------------- */

.gs-founder__stickies {
  margin-top: 2rem;
}

/* ---- 8. Page-level h1 size (inner pages use gs-h2 style on h1) --------- */

.gs-section h1.gs-h2 {
  /* same as .gs-h2 — already inherits it; marker here for clarity */
}
