/* Foreground rails follow the browser-edge film alignment. Titles and prose
   share one vertically centred group; the film subject keeps the other side. */
.copy--chapter {
  --chapter-size: clamp(44px, 4.2vw, 72px);
  --chapter-rail-width: min(500px, 36vw);
  --chapter-heading-width: 100%;
  opacity: var(--scene-opacity, 0);
}
.chapter-layout {
  position: absolute;
  top: max(126px, 13vh);
  bottom: 108px;
  left: var(--gutter);
  width: var(--chapter-rail-width);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vh, 48px);
}
.chapter-hero {
  position: relative;
  width: var(--chapter-heading-width);
  transform: none;
  flex: 0 0 auto;
}
.copy--chapter .chapter-hero h2 {
  font-size: var(--chapter-size);
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: 1.2;
}
.chapter-kicker { display: block; margin-bottom: .26em; font-size: .68em; font-weight: 620; letter-spacing: -.035em; }
.chapter-line { display: block; text-wrap: balance; }
.copy--chapter .chapter-kicker,
.copy--chapter .chapter-line:not(:has(.chapter-mark)),
.identity-palette {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 100%;
}
.copy--chapter .chapter-kicker::before,
.copy--chapter .chapter-line:not(:has(.chapter-mark))::before,
.identity-palette::before {
  content: "";
  position: absolute;
  inset: .03em -.1em .02em;
  z-index: -1;
  background: rgb(9 11 11 / .64);
  pointer-events: none;
}
.chapter-mark {
  display: inline-block;
  position: relative;
  isolation: isolate;
  max-width: 100%;
  padding: .025em .12em .065em .075em;
  margin-left: -.075em;
  color: var(--charcoal);
  font-style: normal;
}
.chapter-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #d7b44a;
  -webkit-mask: url('https://susemies-media-2026.pages.dev/assets/graphics/marker-highlight.svg') 0 0 / 100% 100% no-repeat;
  mask: url('https://susemies-media-2026.pages.dev/assets/graphics/marker-highlight.svg') 0 0 / 100% 100% no-repeat;
  transform: scaleX(var(--scene-opacity, 0));
  transform-origin: left;
}
.chapter-prose {
  position: relative;
  width: 100%;
  max-height: 42vh;
  min-height: 0;
  flex: 0 1 auto;
  margin: 0;
  padding: 0 18px;
  border-left: 1px solid #d7b44a80;
  color: #f5f2eae6;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: -.015em;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #d7b44a99 #090b0b;
  scrollbar-gutter: stable;
  pointer-events: auto;
}
.copy--chapter[aria-hidden="true"] .chapter-prose { pointer-events: none; }
.chapter-prose:focus-visible { outline: 1px solid #d7b44a; outline-offset: 6px; }
.chapter-prose::-webkit-scrollbar { width: 5px; }
.chapter-prose::-webkit-scrollbar-track { background: #090b0b; }
.chapter-prose::-webkit-scrollbar-thumb { background: #d7b44a99; border-radius: 3px; }
.chapter-prose p { margin: 0; }
.chapter-prose p + p { margin-top: 18px; }
.chapter-prose .chapter-manifesto { margin-top: 22px; padding-top: 18px; border-top: 1px solid #f5f2ea26; color: #f5f2eaa6; font-size: .875em; line-height: 1.9; }
.scene--world .chapter-prose,
.scene--relationship .chapter-prose,
.scene--community .chapter-prose,
.scene--origin .chapter-prose,
.scene--business .chapter-prose {
  padding: 16px 20px;
  background: rgb(9 11 11 / .46);
}
.chapter-geometry {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  clip-path: inset(0 calc((1 - var(--scene-opacity, 0)) * 100%) 0 0);
}

/* The compass pivot remains clear to the right of the world statement. */
.scene--world { --chapter-heading-width: min(620px, 43vw); }
.scene--world .chapter-prose { width: min(390px, 100%); }

/* Relationship copy occupies the left reading axis; the two people remain on the right. */
.scene--relationship { --chapter-heading-width: min(560px, 40vw); }
.scene--relationship .chapter-prose { width: min(420px, 100%); }

/* The map's pointing hand stays central-left; both reading columns align at right. */
.scene--community { --chapter-rail-width: min(410px, 35vw); }
.scene--community .chapter-layout { left: auto; right: calc(var(--gutter) + 76px); }

/* Founder: preserve the mechanism study on the right; the full essay scrolls when constrained. */
.scene--origin { --chapter-rail-width: min(490px, 36vw); --chapter-heading-width: min(600px, 42vw); }
.scene--origin .chapter-prose { max-height: 46vh; }
.founder-signature { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start; gap: 16px; margin: 26px 0 4px; }
.founder-signature img { display: block; flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.founder-signature figcaption { text-align: right; color: var(--paper); font-size: 12px; line-height: 1.7; }
.founder-signature figcaption span { display: block; color: #f5f2ea80; font-size: 10px; letter-spacing: .04em; }

/* Identity reads as an annotated column beside the official-mark book. */
.scene--identity { --chapter-rail-width: min(560px, 38vw); }
.scene--identity .chapter-prose { max-height: 46vh; padding: 0; border-left: 0; background: none; }
.identity-palette { display: flex; flex-wrap: wrap; gap: 12px 20px; list-style: none; margin: 20px 0 0; padding: 0; color: #f5f2eabf; font-size: 10px; font-weight: 400; line-height: 1.5; letter-spacing: .02em; }
.identity-palette li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.identity-swatch { display: block; width: 12px; height: 12px; flex: 0 0 12px; border: 1px solid #f5f2ea40; }
.identity-swatch--navy { background: #0f1a2e; }
.identity-swatch--gold { background: #d7b44a; }
.identity-swatch--sage { background: #6f8a86; }
.identity-swatch--paper { background: #f5f2ea; }
.identity-name { padding: 16px 20px; border-left: 1px solid #d7b44a80; background: rgb(9 11 11 / .46); font-size: 15px; line-height: 1.75; }
.identity-name strong { display: block; margin-bottom: 10px; color: #d7b44a; font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.identity-samples { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; margin-top: 18px; padding: 20px; background: #f5f2ea; color: #0f1a2e; }
.identity-sample { display: grid; grid-template-rows: 92px auto; align-content: start; min-width: 0; margin: 0; }
.identity-sample + .identity-sample { padding-left: 20px; border-left: 1px solid #0f1a2e33; }
.identity-sample img { display: block; align-self: start; width: 64px; max-width: 100%; height: auto; margin: 0; padding: 0; background: none; border-radius: 0; object-fit: contain; }
.identity-sample:last-child img { width: 252px; }
.identity-sample h3 { margin: 0 0 8px; color: #0f1a2e; font-size: 12px; font-weight: 650; line-height: 1.6; letter-spacing: .01em; }
.identity-sample p { color: #0f1a2ecc; font-size: 13px; line-height: 1.7; }

/* The workbench's active surface remains beyond the left reading column. */
.scene--business { --film-focus-x: .5; --chapter-rail-width: min(460px, 34vw); --chapter-heading-width: min(640px, 43vw); }
.scene--business .chapter-prose { width: min(410px, 100%); }
.business-axis { margin: 0 0 18px; color: #d7b44a; font: 10px/1.5 monospace; letter-spacing: .1em; }

@media (min-width: 761px) {
  .copy--opening { --copy-center: 52%; --opening-phrase-size: clamp(96px, min(10.8vw, 17.5vh), 176px); }
  .copy--meeting { --copy-center: 52%; --copy-width: min(580px, 44vw); --statement-size: clamp(68px, 7.1vw, 120px); }
  .copy--meeting .copy-content { inset: auto; left: var(--gutter); top: var(--copy-center); width: var(--copy-width); transform: translateY(-50%); }
  .copy--meeting .hero { position: static; width: 100%; transform: none; }
  .copy--meeting .reading-panel { position: static; width: min(390px, 100%); margin-top: 32px; transform: none; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .copy--chapter { --chapter-size: clamp(38px, 4.8vw, 52px); --chapter-rail-width: min(460px, 41vw); }
  .chapter-prose { font-size: 15px; }
  .scene--community { --chapter-rail-width: min(350px, 35vw); }
  .scene--origin, .scene--identity { --chapter-rail-width: min(460px, 41vw); }
  .copy--meeting { --copy-width: min(520px, 50vw); }
}

@media (max-width: 760px) {
  .copy--chapter { --chapter-size: clamp(32px, 9.2vw, 44px); --chapter-top: 28vh; }
  .copy--chapter .chapter-layout { top: var(--chapter-top); right: 24px; bottom: 142px; left: 24px; width: auto; justify-content: flex-start; gap: 20px; }
  .copy--chapter .chapter-hero { position: static; inset: auto; width: 100%; transform: none; flex: 0 0 auto; }
  .copy--chapter .chapter-prose { position: relative; inset: auto; width: 100%; max-height: none; min-height: 0; flex: 0 1 auto; padding: 16px 18px; font-size: 14px; line-height: 1.8; }
  .scene--identity .chapter-prose { padding: 0; }
  .chapter-kicker { font-size: .68em; margin-bottom: .28em; }
  .chapter-geometry { opacity: .26; }
  .scene--world { --chapter-top: 54vh; --film-focus-x: .52; }
  .scene--relationship { --chapter-top: 22vh; --film-focus-x: .80; }
  .scene--relationship .chapter-prose { margin-top: auto; }
  .scene--community { --chapter-top: 53vh; --film-focus-x: .64; }
  .scene--origin { --chapter-top: 23vh; --chapter-size: clamp(30px, 8.3vw, 38px); --film-focus-x: .78; }
  .scene--origin .chapter-prose { margin-top: auto; max-height: 30vh; }
  .scene--identity { --chapter-top: 36vh; --chapter-size: clamp(30px, 8.5vw, 38px); --film-focus-x: .78; }
  .scene--identity .chapter-layout { gap: 16px; }
  .scene--identity .chapter-hero { width: min(300px, 100%); }
  .scene--business { --chapter-top: 25vh; --film-focus-x: .64; }
  .business-axis { margin-bottom: 14px; font-size: 9px; }
  .chapter-prose p + p { margin-top: 16px; }
  .founder-signature img { width: 60px; height: 60px; flex-basis: 60px; }
  .identity-name { padding: 16px 18px; font-size: 14px; }
  .identity-name strong { font-size: 15px; }
  .identity-palette { display: grid; grid-template-columns: max-content max-content; gap: 9px 18px; margin-top: 16px; font-size: 9px; }
  .scene--identity .identity-palette { gap: 7px 18px; margin-top: 12px; }
  .identity-samples { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; padding: 18px; }
  .identity-sample { display: block; }
  .identity-sample + .identity-sample { padding: 20px 0 0; border-left: 0; border-top: 1px solid #0f1a2e33; }
  .identity-sample img { width: 56px; margin-bottom: 15px; }
  .scene--identity .chapter-prose { display: flex; flex-direction: column; gap: 20px; }
  .scene--identity .identity-name { flex: 0 0 auto; }
  .scene--identity .identity-samples { order: -1; flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 0; padding: 16px; }
  .scene--identity .identity-sample { display: grid; grid-template-rows: 60px auto; }
  .scene--identity .identity-sample + .identity-sample { padding: 0 0 0 14px; border-top: 0; border-left: 1px solid #0f1a2e33; }
  .scene--identity .identity-sample img { width: 40px; margin: 0; }
  .scene--identity .identity-sample:last-child img { width: 130px; }
  .scene--identity .identity-sample h3 { font-size: 11px; line-height: 1.5; }
  .scene--identity .identity-sample p { font-size: 11px; line-height: 1.7; }
}
@media (max-width: 760px) and (max-height: 650px) {
  .copy--chapter { --chapter-size: clamp(28px, 8.8vw, 34px); }
  .copy--chapter .chapter-layout { top: 102px; bottom: 132px; gap: 17px; }
  .copy--chapter .chapter-prose { font-size: 13px; line-height: 1.8; }
  .chapter-geometry { display: none; }
  .chapter-kicker { font-size: .7em; }
  .founder-signature { margin-top: 22px; }
  .business-axis { margin-bottom: 10px; font-size: 8px; }
  .scene--identity .chapter-prose { display: flex; flex-direction: column; gap: 24px; }
  .scene--identity .identity-samples { order: -1; margin-top: 0; flex: 0 0 auto; }
  .scene--identity .identity-name { flex: 0 0 auto; }
  .scene--origin .chapter-prose { margin-top: 0; max-height: none; }
}

@media (min-width: 761px) and (max-height: 650px) {
  .copy--chapter { --chapter-size: clamp(36px, min(4.2vw, 10.5vh), 60px); }
  .chapter-prose { font-size: 14px; line-height: 1.8; }
  .chapter-layout { top: 108px; bottom: 82px; gap: 24px; }
  .chapter-prose { max-height: 43vh; }
  .copy--opening { --opening-phrase-size: clamp(84px, min(10.8vw, 20vh), 132px); }
  .copy--meeting .reading-panel { margin-top: 24px; }
}

@media (min-width: 761px) and (max-height: 480px) {
  .copy--chapter { --chapter-size: clamp(30px, 4.3vw, 40px); }
  .copy--chapter .chapter-layout { top: 108px; right: calc(var(--gutter) + 72px); bottom: 62px; left: var(--gutter); width: auto; display: grid; grid-template-columns: .95fr 1.05fr; grid-template-rows: minmax(0, 1fr); align-items: start; gap: 28px; }
  .copy--chapter .chapter-hero { position: static; inset: auto; width: 100%; transform: none; align-self: center; }
  .copy--chapter .chapter-prose { position: relative; inset: auto; width: 100%; max-height: 100%; min-height: 0; font-size: 13px; padding: 16px 18px; }
  .scene--identity .chapter-prose { padding: 0; display: flex; flex-direction: column; gap: 24px; }
  .scene--identity .identity-samples { order: -1; margin-top: 0; flex: 0 0 auto; }
  .scene--identity .identity-name { flex: 0 0 auto; }
  .chapter-kicker { font-size: .68em; }
  .chapter-geometry { opacity: .28; }
  .identity-samples { grid-template-columns: 1fr; padding: 20px; }
  .identity-sample { display: block; }
  .identity-sample + .identity-sample { padding: 24px 0 0; border-left: 0; border-top: 1px solid #0f1a2e33; }
  .identity-sample img { margin-bottom: 15px; }
  .identity-palette { gap: 8px 14px; margin-top: 12px; font-size: 9px; }
  .business-axis { margin-bottom: 10px; font-size: 8px; }
  .copy--opening { --copy-center: 54%; --opening-phrase-size: clamp(72px, min(10vw, 23vh), 102px); }
  .copy--meeting { --statement-size: clamp(42px, min(6vw, 13vh), 60px); }
  .copy--meeting .copy-content { top: 108px; right: calc(var(--gutter) + 72px); bottom: 62px; left: var(--gutter); width: auto; transform: none; display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: center; }
  .copy--meeting .reading-panel { width: 100%; max-height: 100%; margin-top: 0; overflow-y: auto; pointer-events: auto; }
  .copy--meeting[aria-hidden="true"] .reading-panel { pointer-events: none; }

  /* Keep both people clear when the landscape viewport is too short for two reading columns. */
  .scene--relationship { --chapter-size: clamp(28px, 3.8vw, 32px); }
  .scene--relationship .chapter-layout { top: 100px; right: auto; bottom: 62px; width: min(360px, 43vw); display: flex; justify-content: flex-start; gap: 12px; }
  .scene--relationship .chapter-hero { align-self: stretch; }
  .scene--relationship .chapter-prose { width: 100%; max-height: none; flex: 1 1 0; }
}
