/* Rootly Media. The page's own markup, themed over scrollcraft.css tokens.
   Deep forest ground, bone ink, the logo's mustard as the one accent. */
:root {
  --sc-canvas:      #0e1a15;
  --sc-surface:     #16261f;
  --sc-ink:         #efe9dc;
  --sc-ink-soft:    #a6b3a6;
  --sc-accent:      #d9bd4c;
  --sc-accent-ink:  #17190d;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-shadow-color: 158 30% 3%;
  --plate: #16261f;
  --plate-edge: color-mix(in oklab, var(--sc-ink) 14%, transparent);
  --shore-h: 26px;
}
body { padding-bottom: var(--shore-h); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------- the bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sc-5);
  padding: var(--sc-3) var(--sc-gutter);
  background: linear-gradient(to bottom, color-mix(in oklab, var(--sc-canvas) 82%, transparent), transparent);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar__mark img { width: 88px; height: auto; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .35)); }
.index ol { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sc-2); justify-content: center; }
.index a {
  display: inline-flex; align-items: baseline; gap: 0.4em;
  padding: 0.35rem 0.6rem; border-radius: var(--sc-r-pill);
  font-size: var(--sc-t-xs); letter-spacing: var(--sc-track-wide); text-transform: uppercase; text-decoration: none;
  color: var(--sc-ink-soft); transition: color var(--sc-d-fast) var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out);
}
.index a:hover { color: var(--sc-ink); }
.index a[aria-current="true"] { color: var(--sc-accent-ink); background: var(--sc-accent); }
.index__no { font-variant-numeric: tabular-nums; }
.index__t { display: none; }
@media (min-width: 1100px) { .index__t { display: inline; } }
.bar__actions { display: flex; align-items: center; gap: var(--sc-4); }
.bar__signin { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); text-decoration: none; }
.bar__signin:hover { color: var(--sc-ink); text-decoration: underline; }

.cta {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: 0.85rem 1.35rem; border-radius: var(--sc-r-pill);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm); letter-spacing: 0.01em; text-decoration: none;
  box-shadow: var(--sc-e1); transition: transform var(--sc-d-fast) var(--sc-ease-out), box-shadow var(--sc-d-fast) var(--sc-ease-out), filter var(--sc-d-fast) var(--sc-ease-out);
}
.cta:hover { filter: brightness(1.06); box-shadow: var(--sc-e2); }
.cta:active { transform: scale(0.97); }
.cta--bar { padding: 0.6rem 1.05rem; }
@media (max-width: 860px) {
  .bar { grid-template-columns: auto 1fr auto; gap: var(--sc-3); }
  .index { display: none; }
  .bar__signin { display: none; }
  .bar__mark img { width: 68px; }
}

/* ------------------------------------------------------------ the label --
   The schema every object carries: number, title, one line of fact. Set on
   an opaque plate so it reads on any picture without a scrim. */
.label {
  background: var(--plate); color: var(--sc-ink);
  padding: var(--sc-4) var(--sc-5) var(--sc-5);
  border-radius: var(--sc-r-sm);
  box-shadow: var(--sc-e2), var(--sc-edge);
  max-width: 34rem;
}
.label__no {
  display: block; font-size: var(--sc-t-xs); letter-spacing: var(--sc-track-wide); text-transform: uppercase;
  color: var(--sc-accent); margin-bottom: var(--sc-2);
}
.label__title {
  font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-xl); line-height: 1.05; letter-spacing: var(--sc-track-snug);
  margin: 0; text-wrap: balance;
}
.label__meta { margin: var(--sc-2) 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.5; text-wrap: pretty; }
.label--plain { background: transparent; box-shadow: none; padding: 0; max-width: none; }
.label--plain .label__title { font-size: var(--sc-t-3xl); letter-spacing: var(--sc-track-tight); }

.print {
  background: #f3efe6; padding: 10px; border-radius: 3px;
  box-shadow: var(--sc-e3);
}
.print img { width: 100%; height: auto; border-radius: 2px; }

/* ------------------------------------------------------------- No. 01 -- */
.hero { position: relative; }
.hero__stage { position: relative; height: 100vh; height: 100svh; overflow: clip; }
.hero__far { position: absolute; inset: -8% 0; }
.hero__far img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__dusk {
  position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--sc-canvas) 55%, transparent) 50%, var(--sc-canvas));
}
.hero__near {
  position: absolute; right: var(--sc-gutter); bottom: 12%; width: clamp(16rem, 30vw, 30rem); margin: 0;
  transform-origin: bottom right;
}
.label--hero { position: absolute; left: var(--sc-gutter); top: clamp(5.5rem, 16vh, 9rem); }
.hero__intro {
  position: absolute; left: var(--sc-gutter); bottom: clamp(2rem, 7vh, 4rem); margin: 0;
  max-width: 34ch; font-size: var(--sc-t-lg); line-height: 1.4; letter-spacing: var(--sc-track-snug);
  color: var(--sc-ink); text-wrap: pretty;
}
@media (max-width: 860px) {
  .hero__near { width: 40vw; right: var(--sc-gutter); bottom: 32%; }
  .label--hero { top: 5.2rem; max-width: 20rem; }
  .hero__intro { font-size: var(--sc-t-base); max-width: 30ch; bottom: 2.4rem; }
  .hero__dusk { height: 60%; }
}

/* ------------------------------------------------------------- No. 02 -- */
.rail {
  display: flex; align-items: center; gap: clamp(2rem, 4vw, 4rem);
  height: 100vh; height: 100svh; padding: 0 var(--sc-gutter);
  width: max-content;
}
.rail__lead { flex: 0 0 auto; width: clamp(18rem, 28vw, 26rem); }
.rail__lead .label__no { margin-bottom: var(--sc-4); }
.rail__lead .sc-body { margin-top: var(--sc-4); }
.rail__item { flex: 0 0 auto; width: clamp(20rem, 34vw, 34rem); }
.rail__item .label { margin-top: var(--sc-4); max-width: none; }
.rail__note { flex: 0 0 auto; width: clamp(18rem, 26vw, 24rem); padding-right: var(--sc-8); }
.rail__note .sc-body { margin-top: var(--sc-3); }
/* Items settle in sequence as the rail travels: arriving, not loading. */
@media (prefers-reduced-motion: no-preference) {
  .rail__item { opacity: clamp(0.55, calc((var(--sc-p, 1) - var(--settle, 0)) * 4 + 0.55), 1); transition: none; }
  .rail__item:nth-of-type(1) { --settle: -1; }
  .rail__item:nth-of-type(2) { --settle: 0.06; }
  .rail__item:nth-of-type(3) { --settle: 0.2; }
  .rail__item:nth-of-type(4) { --settle: 0.34; }
  .rail__item:nth-of-type(5) { --settle: 0.48; }
}
@media (prefers-reduced-motion: reduce) {
  .rail { height: auto; padding-block: var(--sc-8); align-items: flex-start; }
}
@media (max-width: 860px) {
  .rail { gap: 1.5rem; }
  .rail__lead { width: 72vw; }
  .rail__item { width: 78vw; }
  .rail__note { width: 72vw; padding-right: var(--sc-6); }
}

/* ------------------------------------------------------------- No. 07 -- */
.door .sc-stage__poster { z-index: 0; }
.label--door {
  position: absolute; left: var(--sc-gutter); bottom: clamp(2.5rem, 10vh, 6rem); z-index: var(--sc-z-copy);
}
@media (max-width: 860px) { .label--door { right: var(--sc-gutter); bottom: 3rem; } }

/* ------------------------------------------------------------- No. 08 -- */
.film__wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 0.8fr); gap: var(--sc-6); align-items: end; }
.film__frame { position: relative; margin: 0; border-radius: var(--sc-r-sm); overflow: clip; background: #000; box-shadow: var(--sc-e3); aspect-ratio: 16 / 9; }
.film__frame img, .film__frame video { width: 100%; height: 100%; object-fit: cover; }
.film__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 1.3rem 0.8rem 0.9rem; border: 0; border-radius: var(--sc-r-pill);
  background: var(--plate); color: var(--sc-ink); font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm);
  box-shadow: var(--sc-e2), var(--sc-edge); cursor: pointer;
  transition: transform var(--sc-d-fast) var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out);
}
.film__play:hover { background: color-mix(in oklab, var(--plate) 80%, var(--sc-accent)); }
.film__play:active { transform: translate(-50%, -50%) scale(0.97); }
.film__play-ring {
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--sc-accent);
  position: relative;
}
.film__play-ring::after {
  content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 0.42rem 0 0.42rem 0.7rem; border-color: transparent transparent transparent var(--sc-accent-ink);
}
.film--playing .film__play { display: none; }
.label--film { align-self: end; }
@media (max-width: 860px) {
  .film__wrap { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- No. 09 -- */
.method__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--sc-7) var(--sc-8); align-items: start; }
.method__list { margin: 0; display: grid; gap: var(--sc-6); }
.method__step { display: grid; grid-template-columns: 6rem 1fr; gap: var(--sc-4); padding-top: var(--sc-4); border-top: 1px solid var(--sc-hairline); }
.method__step dt { font-family: var(--sc-font-display); font-weight: 600; color: var(--sc-accent); letter-spacing: var(--sc-track-snug); }
.method__step dd { margin: 0; color: var(--sc-ink-soft); max-width: 46ch; text-wrap: pretty; }
@media (max-width: 860px) {
  .method__wrap { grid-template-columns: 1fr; gap: var(--sc-6); }
  .method__step { grid-template-columns: 1fr; gap: var(--sc-2); }
}

/* ------------------------------------------------------------- No. 10 -- */
.coast { position: relative; }
.coast__frame { margin: 0; height: 100vh; height: 100svh; overflow: clip; }
.coast__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.coast__copy {
  position: absolute; inset: auto 0 0 0; padding: 0 var(--sc-gutter) clamp(3rem, 8vh, 5rem);
  display: grid; grid-template-columns: minmax(0, 34rem) 1fr; gap: var(--sc-6); align-items: end;
}
.shore-echo { justify-self: end; width: min(100%, 44rem); }
.shore-echo__line { margin: 0 0 var(--sc-3); font-family: var(--sc-font-display); font-size: var(--sc-t-lg); color: var(--sc-ink); text-shadow: 0 1px 2px rgb(0 0 0 / .45); text-wrap: balance; }
.shore-echo__band {
  position: relative; height: 4.5rem; border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 55%, transparent);
}
@media (max-width: 860px) {
  .coast__copy { grid-template-columns: 1fr; gap: var(--sc-4); padding-bottom: 3rem; }
  .shore-echo { justify-self: stretch; }
  .shore-echo__band { height: 3.2rem; }
}

/* ------------------------------------------------------------- No. 11 -- */
.plate { min-height: 100vh; min-height: 100svh; display: grid; }
.plate__inner { display: grid; grid-template-rows: 1fr auto; padding: clamp(6rem, 18vh, 10rem) var(--sc-gutter) var(--sc-6); gap: var(--sc-9); }
.label--plate { max-width: 40rem; align-self: center; justify-self: start; padding: var(--sc-6) var(--sc-7) var(--sc-7); }
.label--plate .label__title { font-size: var(--sc-t-2xl); }
.plate__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-5); margin-top: var(--sc-6); }
.plate__signin { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.plate__signin:hover { color: var(--sc-ink); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-5); border-top: 1px solid var(--sc-hairline); padding-top: var(--sc-5); }
.foot__mark { width: 84px; height: auto; }
.foot__line { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.foot__links { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: var(--sc-5); font-size: var(--sc-t-sm); }
.foot__links a { color: var(--sc-ink-soft); text-decoration: none; }
.foot__links a:hover { color: var(--sc-ink); text-decoration: underline; }

/* ------------------------------------------------------- the shoreline --
   Fixed at the bottom edge for the whole page. site.js plants a seedling per
   listing passed. Seedlings are buttons: the shoreline is also the index. */
.shore {
  position: fixed; inset: auto 0 0 0; height: var(--shore-h); z-index: var(--sc-z-chrome);
  background: color-mix(in oklab, var(--sc-canvas) 88%, transparent);
  backdrop-filter: blur(6px);
}
.shore__horizon { position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: color-mix(in oklab, var(--sc-ink) 40%, transparent); }
.seed {
  position: absolute; bottom: 8px; width: 22px; height: 22px; margin-left: -11px;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  transform-origin: 50% 100%;
  transform: scaleY(0); opacity: 0;
  transition: transform 700ms var(--sc-ease-out), opacity 300ms var(--sc-ease-out);
}
.seed.is-planted { transform: scaleY(1); opacity: 1; }
.seed svg { width: 100%; height: 100%; display: block; overflow: visible; }
.seed:hover svg, .seed:focus-visible svg { color: var(--sc-accent); }
.seed:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; border-radius: 4px; }
.seed__tip {
  position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -4px);
  white-space: nowrap; padding: 0.3rem 0.55rem; border-radius: var(--sc-r-sm);
  background: var(--plate); color: var(--sc-ink); font-size: var(--sc-t-xs); letter-spacing: 0.02em;
  box-shadow: var(--sc-e2); opacity: 0; pointer-events: none;
  transition: opacity var(--sc-d-fast) var(--sc-ease-out);
}
.seed:hover .seed__tip, .seed:focus-visible .seed__tip { opacity: 1; }
/* The echo inside the coast section: the same seedlings, grown up. */
.shore-echo__band .seed { width: 44px; height: 44px; margin-left: -22px; bottom: 0; cursor: default; }
.shore-echo__band .seed__tip { display: none; }
@media (prefers-reduced-motion: reduce) {
  .seed { transition: none; }
}

/* ---------------------------------------------------------- the signup --
   A sheet over the page holding the portal's own signup form. */
.join { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: var(--sc-4); }
.join[hidden] { display: none; }
.join__backdrop { position: absolute; inset: 0; background: color-mix(in oklab, var(--sc-canvas) 78%, transparent); backdrop-filter: blur(8px); }
.join__panel {
  position: relative; width: min(100%, 30rem); max-height: calc(100vh - 2rem); max-height: calc(100svh - 2rem);
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: #ffffff; color: #16241f; border-radius: var(--sc-r-lg); box-shadow: var(--sc-e3);
  animation: join-in 260ms var(--sc-ease-out);
}
@keyframes join-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .join__panel { animation: none; } }
.join__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sc-4); padding: var(--sc-4) var(--sc-5) 0; }
.join__title { margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-lg); color: #17332c; }
.join__close { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: #eef3ee; color: #17332c; cursor: pointer; transition: background-color var(--sc-d-fast) var(--sc-ease-out); }
.join__close:hover { background: #dfe9e2; }
.join__close svg { width: 1.1rem; height: 1.1rem; }
.join__frame { width: 100%; height: min(34rem, calc(100svh - 6rem)); border: 0; display: block; background: #ffffff; }
body.join-open { overflow: hidden; }
