/* ============================================================
   KapturBox — The Engraved Studio
   Ink on sky. One accent. Zero radius.
   ============================================================ */

:root {
  --sky-hi: #fdfbf5;
  --sky-mid: #f7f2e6;
  --sky-lo: #eef0ee;
  --ink: #2b2620;
  --ink-60: rgba(43, 38, 32, 0.62);
  --ink-40: rgba(43, 38, 32, 0.4);
  --hairline: rgba(43, 38, 32, 0.16);
  --paper: #fbf7ec;
  --pink: #ed188f;
  --font-display: "IM Fell English", serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  /* shared vertical beat for content sections */
  --section-y: 64px;
  --section-rule: 36px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(to bottom, var(--sky-hi) 0%, var(--sky-mid) 55%, var(--sky-lo) 100%)
    fixed;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- shared vocabulary ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-60);
}
.eyebrow--center { text-align: center; }

.section-title {
  max-width: 760px;
  margin: 14px auto 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  text-align: center;
}

/* outline CTAs — same grammar as the hero / masthead door */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}
.btn--outline {
  color: var(--ink);
  background: transparent;
  padding: 14px 20px;
  border: 1px solid var(--hairline);
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}
.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--pink);
  color: var(--ink);
}
.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* engraved spot artifacts: section emblems drawn from the plate set */
.stop-spot {
  display: block;
  width: 104px;
  height: auto;
  margin: 0 auto 24px;
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.stop-spot--seal { width: 84px; filter: grayscale(1); } /* seal ink, not a fourth pink */

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

/* ---------- masthead ---------- */

.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 30px 30px;
  z-index: 40;
  background: linear-gradient(to bottom, var(--sky-hi) 30%, rgba(253, 251, 245, 0));
}
.wordmark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
}
.masthead-nav {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  max-width: min(720px, 72vw);
}
.masthead-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink-60);
  text-decoration: none;
  padding-bottom: 2px;
  white-space: nowrap;
}
.masthead-nav a:hover, .masthead-nav a:focus-visible { color: var(--ink); }
.masthead-nav a.masthead-cta {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.masthead-nav a.masthead-cta:hover,
.masthead-nav a.masthead-cta:focus-visible { border-bottom-color: var(--pink); }
@media (max-width: 900px) {
  .masthead-nav { max-width: none; gap: 10px 16px; }
  .masthead-nav a:not(.masthead-cta) { font-size: 10px; }
}
@media (max-width: 640px) {
  .masthead-nav a:not(.masthead-cta) { display: none; }
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- hero ---------- */

.stop--hero { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 24px; }
/*
  Banknote / pencil-plate ink for the hero title.
  Fine crosshatch + warm metal gradient, clipped to glyphs —
  same family as the Hermes engraving, not a pink highlight.
*/
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(38px, 4.9vw, 62px);
  line-height: 1.12;
  margin-bottom: 22px;
  max-width: 18ch;
  /* fallback if background-clip fails */
  color: #e4ddd0;
  background-color: #e4ddd0;
  background-image:
    /* fine dollar-bill hatch */
    repeating-linear-gradient(
      -18deg,
      rgba(0, 0, 0, 0) 0 1.5px,
      rgba(25, 27, 26, 0.22) 1.5px 2.5px
    ),
    repeating-linear-gradient(
      72deg,
      rgba(0, 0, 0, 0) 0 2px,
      rgba(25, 27, 26, 0.12) 2px 3px
    ),
    /* warm engraved silver / cream metal */
    linear-gradient(
      165deg,
      #f6f0e4 0%,
      #d9d0c0 38%,
      #f0e9db 62%,
      #c4bbaa 100%
    );
  background-size: 4px 4px, 5px 5px, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* etched into the plate */
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35))
          drop-shadow(0 -0.5px 0 rgba(255, 248, 235, 0.12));
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-copy h1 {
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor;
    filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  /* keep texture; no extra motion was applied */
}
.lede { font-size: 17px; max-width: 46ch; color: var(--ink); margin-bottom: 28px; opacity: 0.88; }
.stat { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; }
/* banknote ink — use capital I (not digit 1): Fell’s lining I matches B height */
.stat-number {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 4.8vw, 60px);
  line-height: 1;
  letter-spacing: 0.02em;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3));
}
.stat-glyph {
  display: inline-block;
  color: #e4ddd0;
  background-color: #e4ddd0;
  background-image:
    repeating-linear-gradient(
      -18deg,
      rgba(0, 0, 0, 0) 0 1.5px,
      rgba(25, 27, 26, 0.18) 1.5px 2.5px
    ),
    linear-gradient(165deg, #f6f0e4 0%, #d2c9b8 50%, #e8e1d3 100%);
  background-size: 4px 4px, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .stat-glyph {
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor;
  }
  .stat-number { filter: none; }
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-60);
}
/* still cutout is the plate (dark mode = still only; no dark video matte) */
.hero-art {
  position: relative;
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  line-height: 0;
}
.hero-art img {
  position: relative;
  z-index: 0;
  display: block;
  width: auto;
  max-height: 78vh;
  max-width: 100%;
  height: auto;
  /* keep the pink envelope crisp on charcoal */
  filter: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}
.hero-secondary {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-60);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
  transition: border-bottom-color 200ms ease, color 200ms ease;
}
.hero-secondary:hover,
.hero-secondary:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--pink);
}

/* living plate: fills the still’s box; masked by the still’s own alpha so
   registration is perfect. Video ground is floored to page charcoal. */
.hero-motion {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill; /* match still plate box exactly */
  object-position: center center;
  mix-blend-mode: multiply;
  /* default (light): dedicated mask */
  -webkit-mask-image: url(assets/hermes-mask.png);
  mask-image: url(assets/hermes-mask.png);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  pointer-events: none;
}

/* entrance: one orchestrated arrival, then never again */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-copy h1 { animation: rise 0.7s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy .lede { animation: rise 0.7s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy .stat { animation: rise 0.7s 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy .hero-actions { animation: rise 0.7s 0.44s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-art img, .hero-art .hero-motion { animation: rise 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy h1, .hero-copy .lede,
  .hero-copy .stat, .hero-copy .hero-actions,
  .hero-art img, .hero-art .hero-motion { animation: none; }
}

/* ---------- brands — cream plate + black ink, YC marquee ----------
   Horizontal auto-scroll lives here. Work frieze sits after How we run
   so the two horizontal motions are not stacked. */

.stop--brands {
  --brand-paper: #f3ede1;
  --brand-ink: #2b2620;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 36px 0 32px;
  background: var(--brand-paper);
  border-top: 1px solid rgba(43, 38, 32, 0.12);
  border-bottom: 1px solid rgba(43, 38, 32, 0.12);
  position: relative;
}
.stop--brands::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.stop--brands .eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  color: rgba(43, 38, 32, 0.48);
  letter-spacing: 0.04em;
}
.brand-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}
.brand-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: brand-marquee 30s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.brand-marquee:hover .brand-marquee-track {
  animation-play-state: paused;
}
@keyframes brand-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track { animation: none; }
  .brand-marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }
  .brand-marquee-track {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 24px;
  }
  .brand-marquee-track .brand-field[aria-hidden="true"] { display: none; }
}

.brand-field {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0 72px;
  margin: 0;
  padding: 4px 48px;
}
.brand-field li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: auto;
  min-width: 120px;
  height: 96px;
  padding: 0 8px;
}
.brand-field img {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 72px;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.82;
  transition: opacity 200ms ease;
  transform: translateZ(0);
}
.brand-field li:hover img { opacity: 1; }
body.flat .stop.stop--brands {
  padding: 40px 0 36px;
  max-width: none;
}
/* keep brands plate tight; don't inherit huge section padding */
body.flat .stop.stop--hero {
  padding-left: 24px;
  padding-right: 24px;
}
/* ---------- section rhythm — one beat for every content section ----------
   Brands keeps its cream plate edge. Dark sections share the same vertical
   padding and a short hairline chapter mark (except reviews, which follows
   brands' bottom border). */

body.flat .stop.stop--reviews,
body.flat .stop.stop--work,
body.flat .stop.stop--about,
body.flat .stop.stop--join {
  padding-top: var(--section-y, 120px);
  padding-bottom: var(--section-y, 120px);
}

.stop--reviews,
.stop--work,
.stop--about,
.stop--join {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}

/* longer centered hairline above work / about / join */
.stop--work::before,
.stop--about::before,
.stop--join::before {
  content: "";
  display: block;
  width: min(420px, 72vw);
  height: 1px;
  margin: 0 auto var(--section-rule);
  background: var(--hairline);
}

/* section CTAs after decks / frieze */
.stop--reviews .section-cta,
.stop--work .section-cta {
  margin-top: 40px;
}

/* ---------- deck: the quotes slide side to side ---------- */

.deck { display: flex; overflow: hidden; }
.deck > * {
  flex: 0 0 100%;
  min-width: 0;
  transform: translateX(calc(var(--di, 0) * -100%));
  transition: transform 520ms cubic-bezier(0.3, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .deck > * { transition: none; }
}

.deck-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 38px;
}
.deck-btn {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.deck-btn:hover { border-color: var(--ink); }
.deck-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink-60);
  min-width: 52px;
  text-align: center;
}

/* auto-advance countdown — hairline that fills before the next step */
.auto-meter {
  width: min(160px, 40%);
  height: 1px;
  margin: 18px auto 0;
  background: var(--hairline);
  overflow: hidden;
}
.auto-meter-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.auto-meter.is-running .auto-meter-fill {
  animation: auto-meter-fill var(--auto-ms, 7s) linear forwards;
}
.auto-meter.is-paused .auto-meter-fill {
  animation-play-state: paused;
}
@keyframes auto-meter-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .auto-meter { display: none; }
}

/* ---------- reviews ---------- */

.stop--reviews { max-width: 800px; }
.stop--reviews .eyebrow { margin-bottom: 40px; }
.stop--reviews blockquote p {
  font-family: var(--font-display);
  font-style: normal; /* the swash italic was pretty but hard to read */
  font-size: clamp(23px, 2.7vw, 34px);
  line-height: 1.4;
  text-align: center;
  margin-bottom: 34px;
}
.stop--reviews footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-60);
}
.stop--reviews footer img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  /* full color — faces are exhibits, not etching */
  filter: none;
  flex: none;
}
.stop--reviews footer strong {
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}

/* ---------- work: denser frieze of bare sends ----------
   Tall email crops, quiet wall labels. Infinite horizontal loop
   (originals + clone set); chevrons / auto step one panel. */

.stop--work .eyebrow { margin-bottom: 6px; }
.stop--work .section-title {
  margin-bottom: 48px;
}

.frieze-rack {
  max-width: 1240px;
  margin: 0 auto;
}
/* desktop page mode: chevrons in side columns, sends in the middle */
body.page .frieze-rack {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  max-width: 1280px;
  padding: 0 8px;
}
.frieze-viewport {
  overflow: hidden;
  min-width: 0;
}
body.page .frieze-viewport {
  grid-column: 2;
  grid-row: 1;
}
.frieze {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: max-content;
  will-change: transform;
  padding: 12px 0 8px; /* room for hover lift without clipping */
}
/* locked box — never let hover / GSAP / clones change tile size */
.frieze-item {
  flex: none;
  width: 228px;
  height: 520px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #0e100f;
}
/* lift the window only — transform stays off the loop item box */
.email-window {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0e100f;
  transition: transform 240ms ease;
}
.frieze-item:hover .email-window {
  transform: translateY(-3px);
}
.email-window img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  /* no child transforms that could reflow the loop */
  pointer-events: none;
}

/* edge chevrons — own columns beside the sends, never over creative */
.frieze-edge {
  display: none;
  grid-row: 1;
  align-self: center;
  width: 44px;
  height: 72px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}
body.page .frieze-edge { display: flex; align-items: center; justify-content: center; }
.frieze-edge--prev { grid-column: 1; }
.frieze-edge--next { grid-column: 3; }
.frieze-edge:hover,
.frieze-edge:focus-visible {
  border-color: var(--ink-60);
  background: rgba(243, 237, 225, 0.06);
}
/* loop never ends — keep chevrons live */
.frieze-edge:disabled {
  opacity: 1;
  cursor: pointer;
}
.frieze-edge span {
  display: block;
  margin-top: -4px; /* optical center on Fell glyphs */
}

/* countdown under the frieze (same auto-meter grammar as reviews) */
body.page .frieze-meter {
  display: block;
  grid-column: 2;
  grid-row: 2;
  margin-top: 22px;
  justify-self: center;
}
body.flat:not(.page) .frieze-meter { display: none; }

/* ---------- about: editorial split — copy left, faces right ---------- */

.stop--about {
  max-width: 1120px;
  width: min(1120px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 48px 64px;
  align-items: center;
}
.about-copy-col {
  min-width: 0;
}
.about-title {
  margin: 0 0 24px;
  max-width: 14ch;
  text-align: left;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.08;
}
.about-copy {
  max-width: 36em;
  margin: 0;
  text-align: left;
}
.about-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1em;
}
.about-copy p:last-child { margin-bottom: 0; }
.stop--about .cta-block {
  margin-top: 32px;
  text-align: left;
}
.stop--about .section-cta {
  margin-top: 20px;
  text-align: left;
}

/* Sam + Joel on top, Aidan below — full color, framed plates */
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
  margin: 0;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}
.founders .founder {
  margin: 0;
  width: 100%;
  text-align: center;
}
.founders .founder--partner {
  grid-column: 1 / -1;
  max-width: 190px;
  justify-self: center;
}
.founder-frame {
  position: relative;
  overflow: hidden;
  background: #121412;
  border: 1px solid var(--hairline);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.2),
    0 14px 32px rgba(0, 0, 0, 0.28);
  /* slight warm lift so full-color faces sit on charcoal */
  isolation: isolate;
}
.founder-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(243, 237, 225, 0.06);
  background: linear-gradient(
    160deg,
    rgba(243, 237, 225, 0.06) 0%,
    transparent 42%,
    rgba(0, 0, 0, 0.12) 100%
  );
}
.founders img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 168 / 200;
  object-fit: cover;
  object-position: center 18%;
  filter: none;
  transform: scale(1.01);
  transition: transform 320ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .founders figure:hover img {
    transform: scale(1.04);
  }
}
.founders figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink-60);
  margin-top: 12px;
  line-height: 1.35;
}
.founders figcaption strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 2px;
}

.cta-block { margin-top: 40px; }

@media (max-width: 860px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-copy-col {
    text-align: center;
  }
  .about-title,
  .about-copy,
  .stop--about .cta-block,
  .stop--about .section-cta {
    text-align: center;
  }
  .about-title {
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
  }
  .about-copy {
    margin-left: auto;
    margin-right: auto;
  }
  .founders {
    justify-self: center;
    max-width: 360px;
  }
}

/* ---------- join: outing collage + hire door ---------- */

.stop--join {
  width: min(1320px, calc(100% - 48px));
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  /* vertical padding set in section rhythm block above */
}
/* polaroid wall — wide board, cream mats, clear gaps, hand-hung tilts */
.outing-collage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 26px 22px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 12px 20px;
}
.outing {
  --tilt: 0deg;
  --hang: 0px;
  --note-tilt: -1deg;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 110px) / 6); /* 6 across on wide screens */
  max-width: 190px;
  margin: 0;
  margin-top: var(--hang);
  padding: 9px 9px 10px;
  background: #f3ede1;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.1),
    0 10px 26px rgba(0, 0, 0, 0.28);
  transform: rotate(var(--tilt));
}
.outing img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  height: auto;
  object-fit: cover;
  filter: none;
  background: #1a1c1b;
  flex: none;
}
/* handwritten strip — Caveat only (the “oysters” hand).
   Type-law exception: only used on polaroid mats. */
.outing-note {
  display: block;
  margin: 11px 3px 2px;
  min-height: 1.45em;
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: rgba(12, 22, 40, 0.78);
  text-align: center;
  transform: rotate(var(--note-tilt));
  user-select: none;
  -webkit-font-smoothing: antialiased;
  /* long names like “TRUE Invitational” */
  overflow-wrap: anywhere;
  hyphens: manual;
}

/* irregular hang line — like real polaroids on a wall */
.outing:nth-child(6n+1) { --tilt: -2.4deg; --hang: 4px;  --note-tilt: 1.2deg; }
.outing:nth-child(6n+2) { --tilt: 1.8deg;  --hang: 22px; --note-tilt: -1.5deg; }
.outing:nth-child(6n+3) { --tilt: -1.2deg; --hang: 0;    --note-tilt: 0.8deg; }
.outing:nth-child(6n+4) { --tilt: 2.6deg;  --hang: 16px; --note-tilt: -2deg; }
.outing:nth-child(6n+5) { --tilt: -1.9deg; --hang: 8px;  --note-tilt: 1.6deg; }
.outing:nth-child(6n+6) { --tilt: 1.4deg;  --hang: 20px; --note-tilt: -0.9deg; }
/* second-pass variation so rows don't tile the same way */
.outing:nth-child(7)  { --tilt: 2.1deg;  --hang: 6px;  --note-tilt: -1.8deg; }
.outing:nth-child(8)  { --tilt: -2.8deg; --hang: 18px; --note-tilt: 1.1deg; }
.outing:nth-child(11) { --tilt: -1.6deg; --hang: 12px; --note-tilt: 2deg; }
.outing:nth-child(13) { --tilt: 2.4deg;  --hang: 2px;  --note-tilt: -1.3deg; }
.outing:nth-child(15) { --tilt: -2deg;   --hang: 14px; --note-tilt: 0.6deg; }

.join-title {
  margin: 0 auto 40px;
  font-size: clamp(28px, 3.6vw, 44px);
  max-width: 18ch;
}
.join-copy {
  max-width: 28em;
  margin: 40px auto 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
}
.stop--join .cta-block { margin-top: 28px; text-align: center; }

.colophon {
  margin-top: 64px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink-40);
}

@media (max-width: 1100px) {
  .outing {
    flex-basis: calc((100% - 88px) / 5);
    max-width: 180px;
  }
}

@media (max-width: 900px) {
  .outing {
    flex-basis: calc((100% - 66px) / 4);
    max-width: 180px;
  }
}

@media (max-width: 700px) {
  .outing-collage {
    gap: 18px 14px;
    padding: 16px 4px 12px;
  }
  .outing {
    flex-basis: calc((100% - 28px) / 3);
    max-width: none;
    padding: 7px 7px 24px;
  }
  .outing:nth-child(odd)  { --hang: 0; }
  .outing:nth-child(even) { --hang: 10px; }
}

@media (max-width: 480px) {
  .outing {
    flex-basis: calc((100% - 14px) / 2);
    padding: 6px 6px 22px;
  }
}



/* ============================================================
   FLAT — the base document layout, always on.
   JS adds .page on capable desktops; rules marked :not(.page)
   are the plain fallback (mobile, reduced motion, no JS).
   ============================================================ */

body.flat .stage { position: static; }
body.flat .world { position: static; }
body.flat .track,
body.flat .scroll-hint { display: none; }
body.flat .stop {
  position: static;
  padding: var(--section-y) 24px;
  max-width: 100%;
}
body.flat .stop > * { margin-left: auto; margin-right: auto; }
body.flat .cloud { display: none; } /* page-mode clouds live in #sky instead */

body.flat:not(.page) .stop--hero {
  min-height: auto;
  grid-template-columns: 1fr;
  padding-top: 100px;
  padding-bottom: 40px;
  gap: 28px;
  max-width: 640px;
}
body.flat:not(.page) .hero-art {
  justify-self: center;
  order: 2;
}
body.flat:not(.page) .hero-copy { order: 1; }
body.flat:not(.page) .hero-art img {
  max-height: min(52vh, 420px);
  margin: 0 auto;
}
body.flat:not(.page) .stop--reviews { max-width: 720px; }
body.flat:not(.page) .stop--about {
  max-width: 100%;
  width: 100%;
}
body.flat:not(.page) .stop--join {
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* mobile work strip: swipe horizontally, don't stack 10 tall emails */
body.flat:not(.page) .frieze-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  margin: 0 -8px;
  padding: 0 8px 8px;
}
body.flat:not(.page) .frieze {
  width: max-content;
  flex-wrap: nowrap;
  justify-content: flex-start;
  padding: 8px 4px 12px;
  gap: 14px;
}
body.flat:not(.page) .frieze-item {
  width: min(72vw, 260px);
  height: min(58vh, 420px);
  margin-top: 0;
  scroll-snap-align: start;
}
body.flat:not(.page) .email-window {
  height: 100%;
}
body.flat:not(.page) .frieze-edge { display: none !important; }
body.flat:not(.page) .frieze-item--clone { display: none; }

/* ============================================================
   MOBILE — phone + small tablet (flat mode is the live path)
   ============================================================ */
@media (max-width: 820px) {
  :root {
    --section-y: 56px;
    --section-rule: 28px;
  }

  body {
    overflow-x: hidden;
  }

  .masthead {
    padding: 14px 16px 18px;
    align-items: center;
  }
  .wordmark { font-size: 12px; }
  .masthead-nav {
    max-width: none;
    gap: 0;
  }

  .stop--hero {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .hero-copy h1 {
    font-size: clamp(30px, 8.2vw, 40px);
    max-width: none;
    margin-bottom: 16px;
  }
  .lede {
    font-size: 15px;
    max-width: none;
    margin-bottom: 20px;
  }
  .stat-number {
    font-size: clamp(36px, 10vw, 48px);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 22px;
  }
  .hero-actions .btn {
    text-align: center;
  }
  .hero-secondary {
    align-self: center;
  }
  .hero-art img {
    max-height: min(48vh, 360px) !important;
  }

  body.flat .stop {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* brands full-bleed still, tighten vertical */
  body.flat .stop.stop--brands {
    padding: 28px 0 24px;
  }
  .brand-field {
    gap: 0 28px;
  }
  .brand-field img {
    height: 28px;
  }

  .stop--reviews {
    max-width: none !important;
  }
  .stop--reviews .eyebrow { margin-bottom: 24px; }
  .stop--reviews blockquote p {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.4;
    margin-bottom: 24px;
  }
  .stop--reviews footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .stop--reviews footer img {
    width: 72px;
    height: 72px;
  }
  .deck-nav { margin-top: 28px; gap: 14px; }
  .auto-meter { margin-top: 14px; width: min(140px, 50%); }

  .stop--work .section-title {
    font-size: clamp(24px, 6.5vw, 34px);
    margin-bottom: 28px;
    padding: 0 4px;
  }
  .frieze-rack {
    max-width: none;
    padding: 0;
  }

  .stop--about {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px;
    padding-right: 16px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-copy-col,
  .about-title,
  .about-copy,
  .stop--about .cta-block {
    text-align: center;
  }
  .about-title {
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(26px, 7vw, 34px);
  }
  .about-copy {
    margin-left: auto;
    margin-right: auto;
  }
  .about-copy p { font-size: 15px; }
  .founders {
    justify-self: center;
    max-width: 300px;
    gap: 14px 12px;
  }
  .founders .founder--partner {
    max-width: 140px;
  }
  .founders figcaption { font-size: 10px; }
  .founders figcaption strong { font-size: 12px; }
  .stop--about .cta-block { text-align: center; }
  .stop--about .btn { width: 100%; max-width: 280px; text-align: center; box-sizing: border-box; }

  .stop--join {
    width: 100% !important;
    max-width: 100% !important;
  }
  .join-title {
    font-size: clamp(26px, 7vw, 34px);
    max-width: 14ch;
    margin-bottom: 28px;
  }
  .outing-collage {
    gap: 14px 12px;
    padding: 12px 0 8px;
  }
  .outing {
    flex-basis: calc((100% - 12px) / 2);
    max-width: none;
    padding: 5px 5px 8px;
    /* calmer hang on small screens so nothing clips */
    --hang: 0px !important;
    --tilt: 0deg !important;
  }
  .outing:nth-child(even) {
    --tilt: 1.2deg !important;
  }
  .outing:nth-child(odd) {
    --tilt: -1.2deg !important;
  }
  .outing-note {
    font-size: 12px;
    margin: 8px 2px 2px;
    min-height: 1.2em;
  }
  .join-copy {
    font-size: clamp(20px, 5.5vw, 28px);
    margin-top: 28px;
    padding: 0 8px;
  }
  .stop--join .cta-block .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    box-sizing: border-box;
  }

  .section-cta .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    box-sizing: border-box;
  }

  .stop--work::before,
  .stop--about::before,
  .stop--join::before {
    width: min(280px, 70vw);
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .outing {
    flex-basis: calc((100% - 12px) / 2);
  }
  body.flat:not(.page) .frieze-item {
    width: min(78vw, 280px);
    height: min(52vh, 380px);
  }
  body.flat:not(.page) .email-window {
    height: 100%;
  }
  .hero-copy h1 {
    font-size: clamp(28px, 8.5vw, 34px);
  }
}

/* ============================================================
   PAGE MODE — traditional vertical scroll.
   Hero: charcoal + aquatint grain (slightly stronger at top). No city/clouds.
   ============================================================ */

body.page .stage { position: relative; z-index: 1; }

#sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: opacity;
}
body.page .cloud {
  display: block;
  position: absolute;
  left: 0; top: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
  will-change: transform;
}
body.page .cloud--plate {
  border-radius: 0;
  background: none;
  height: auto;
  max-width: none;
}

/* city horizon retired — flat charcoal + grain + Hermes only */
body.page .horizon,
body.flat .horizon {
  display: none !important;
}

/* hero: two columns; leave a beat before the cream trust plate */
body.page .stop--hero {
  min-height: 92svh;
  max-width: 1240px;
  margin: 0 auto;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 56px;
  gap: 32px 40px; /* a little more air between type and Hermes */
}

body.page .stop--reviews {
  max-width: none;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--section-y, 120px);
  padding-bottom: var(--section-y, 120px);
}
body.page .stop--reviews .deck { width: min(800px, 92vw); }
body.page .stop--about {
  max-width: 1120px;
  width: min(1120px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--section-y, 120px);
  padding-bottom: var(--section-y, 120px);
}
body.page .stop--join {
  max-width: 1320px;
  width: min(1320px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--section-y, 120px);
  padding-bottom: var(--section-y, 120px);
}
body.page .stop--work {
  padding-top: var(--section-y, 120px);
  padding-bottom: var(--section-y, 120px);
}

/* quiet arrival for flowing sections
   join uses opacity only — transform on the section un-centered the wall */
body.page .stop--brands,
body.page .stop--about {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.page .stop--join {
  opacity: 0;
  transition: opacity 0.8s ease;
}
body.page .stop.is-in { opacity: 1; transform: none; }

/* ============================================================
   DARK MODE — the approved engraved-night direction.
   Tokens flip and engravings invert to white-line plates.
   ============================================================ */

body.dark {
  --sky-hi: #191b1a;
  --sky-mid: #191b1a;
  --sky-lo: #191b1a;
  --ink: #f3ede1;
  --ink-60: rgba(243, 237, 225, 0.65);
  --ink-40: rgba(243, 237, 225, 0.42);
  --hairline: rgba(243, 237, 225, 0.18);
  --paper: #242724;
  --grain: 0.11; /* hero default; main.js eases toward 0.07 on scroll */
  /* the etched sky: one flat charcoal ground */
  background: #191b1a;
}
body.dark::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: var(--grain, 0.07);
  pointer-events: none;
}
body.dark .masthead {
  background: linear-gradient(to bottom, var(--sky-hi) 30%, rgba(25, 27, 26, 0));
}

/* Page and flat modes both load native night plates. */
body.dark .hero-motion {
  /* stage isolates stacking — blend is a no-op; cut with the STILL’s alpha
     (same asset as the plate underneath → no dark rectangular matte). */
  mix-blend-mode: normal;
  -webkit-mask-image: url(assets/hermes-dark.png);
  mask-image: url(assets/hermes-dark.png);
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
body.dark .stop-spot { mix-blend-mode: normal; filter: invert(1); }
body.dark .stop-spot--seal { filter: grayscale(1) invert(1); }

/* logos ship as white on transparent — do not invert */
