@import url("/brand/tokens.css");

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/brand/fonts/instrument-sans-latin.ttf") format("truetype");
}
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/brand/fonts/anton-latin.woff2") format("woff2");
}

:root {
  --r-red: var(--peers-brand-red, #ff3b1f);
  --r-red-dark: var(--peers-brand-link, #b32112);
  --r-paper: var(--peers-brand-white, #fff);
  --r-white: var(--peers-brand-white, #fff);
  --r-ink: var(--peers-brand-ink, #111);
  --r-muted: #454545;
  --r-line: #171717;
  --r-soft-line: #d2d2d2;
  --r-tint: #f4f4f4;
  --r-blue: var(--r-red-dark);
  --r-font: var(--peers-brand-body, "Instrument Sans", system-ui, sans-serif);
  --r-display: var(--peers-brand-display, "Anton", Impact, "Arial Narrow", sans-serif);
  --r-ease: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
.reason-page { margin: 0; background: var(--r-paper); color: var(--r-ink); font: 400 17px/1.55 var(--r-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; color-scheme: light; overflow-x: clip; }
.reason-page *, .reason-page *::before, .reason-page *::after { box-sizing: border-box; }
.reason-page [hidden] { display: none !important; }
.reason-page a { color: inherit; text-underline-offset: 4px; }
.reason-page button { font: inherit; }
.reason-page img { display: block; max-width: 100%; }
.reason-page h1, .reason-page h2, .reason-page h3, .reason-page p { margin: 0; }
.reason-page h1, .reason-page h2, .reason-page h3 { text-wrap: balance; }
.reason-page h2 { font-size: clamp(2.2rem, 4.2vw, 4.1rem); font-weight: 600; line-height: .98; letter-spacing: -.055em; }
.reason-page h3 { font-size: 1.42rem; font-weight: 650; line-height: 1.12; letter-spacing: -.035em; }
.reason-page :focus-visible, .reason-docs :focus-visible { outline: 3px solid var(--r-red); outline-offset: 5px; }
.reason-page ::selection { background: var(--r-ink); color: var(--r-red); }
.reason-page section[id], .reason-docs [id] { scroll-margin-top: 100px; }
.shell { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 124px; }
.section-label, .eyebrow { color: var(--r-red-dark); font-size: .73rem; font-weight: 750; letter-spacing: .15em; line-height: 1.2; text-transform: uppercase; }
.section-label { margin-bottom: 24px !important; }
.small-note { color: var(--r-muted); font-size: .86rem; }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-size: .92rem; font-weight: 700; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.text-link-dark { color: var(--r-ink); }
.text-link-light { color: var(--r-white); }
.button, .reason-docs .connect-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 54px; padding: 14px 22px; border: 2px solid var(--r-ink); border-radius: 2px; background: var(--r-ink); color: var(--r-white); font: 700 .92rem/1.1 var(--r-font); text-decoration: none; cursor: pointer; transition: transform .2s var(--r-ease), background-color .2s var(--r-ease), color .2s var(--r-ease); }
.button:hover, .reason-docs .connect-button:hover { background: var(--r-red-dark); border-color: var(--r-red-dark); color: var(--r-white); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-small { min-height: 42px; padding: 10px 15px; font-size: .8rem; }
.button-dark { background: var(--r-ink); color: var(--r-red); }
.button-dark:hover { background: var(--r-white); border-color: var(--r-white); color: var(--r-ink); }
.button-red { background: var(--r-red); color: var(--r-ink); border-color: var(--r-red); }
.button-red:hover { background: var(--r-white); border-color: var(--r-white); color: var(--r-ink); }
.reason-page a.button { color: var(--r-white); }
.reason-page a.button-dark { color: var(--r-red); }
.reason-page a.button-red { color: var(--r-ink); }
.reason-page a.button:hover, .reason-page a.button-dark:hover, .reason-page a.button-red:hover { color: var(--r-ink); }
.actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.reason-page .brand { display: inline-flex; align-items: center; gap: 9px; color: var(--r-ink); text-decoration: none; white-space: nowrap; }
.brand img { flex: none; }
.brand-wordmark { width: auto; height: 24px; }
.site-head { position: sticky; top: 0; z-index: 20; background: var(--r-red); border-bottom: 2px solid var(--r-ink); }
.nav-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: .88rem; font-weight: 650; }
.desktop-nav a { text-decoration: none; }
.desktop-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.mobile-nav { display: none; }
.mobile-nav summary { cursor: pointer; list-style: none; font-weight: 750; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.reason-page .skip-link { position: fixed; top: 10px; left: 10px; z-index: 40; transform: translateY(-180%); padding: 12px; background: var(--r-ink); color: var(--r-white); }
.reason-page .skip-link:focus { transform: translateY(0); }

/* Poster hero: the message leads, with the connection artwork as the lower field. */
.hero-poster { overflow: clip; background: var(--r-red); color: var(--r-ink); }
.hero-poster-inner { padding-top: 42px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { color: var(--r-ink); margin-bottom: 26px; }
.hero-copy h1 { max-width: 1280px; font-family: var(--r-display); font-size: clamp(4.1rem, 8.5vw, 8.8rem); font-weight: 400; line-height: 1.05; letter-spacing: -.025em; }
.hero-copy h1 span { display: block; }
.hero-copy h1 span:last-child { padding-left: 12vw; }
.hero-footer { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 22px; padding-bottom: 40px; }
.hero-description { max-width: 58ch; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.42; }
.hero-footer .actions { flex: none; }
.connection-art { position: relative; width: min(100%, 1160px); margin: 22px auto 0; padding: 0 34px; }
.connection-art img { width: 100%; height: auto; min-height: 300px; object-fit: cover; object-position: center; }
.art-label { position: absolute; z-index: 1; color: var(--r-ink); font-size: .72rem; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; }
.art-label b { font-weight: 800; }
.art-label-a { top: 25%; left: -2px; transform: rotate(-8deg); }
.art-label-b { top: 45%; right: -12px; transform: rotate(7deg); text-align: right; }

.assistant-band { background: var(--r-white); border-block: 2px solid var(--r-ink); }
.assistant-row { min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.assistant-row h2 { font-size: clamp(1.55rem, 2.6vw, 2.4rem); }
.assistant-row p { margin-top: 7px; color: var(--r-muted); font-size: .94rem; }
.assistant-logos { display: flex; align-items: stretch; gap: 8px; }
.assistant-logos a { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--r-soft-line); background: var(--r-white); font-weight: 700; text-decoration: none; }
.assistant-logos a:hover { border-color: var(--r-ink); }
.assistant-logos small { display: block; color: var(--r-muted); font-size: .64rem; font-weight: 500; line-height: 1.1; }
.assistant-logos img { width: 27px; height: 27px; }

.manifesto { display: grid; grid-template-columns: minmax(0, 1.2fr) .8fr; gap: 80px; align-items: end; background: var(--r-paper); }
.manifesto-copy { max-width: 780px; }
.manifesto-copy h2 { max-width: 12ch; }
.manifesto-copy > p:last-child { max-width: 50ch; margin-top: 30px; color: var(--r-muted); }
.manifesto-mark { justify-self: end; font-family: var(--r-display); font-size: clamp(10rem, 22vw, 23rem); line-height: .6; color: var(--r-red); transform: rotate(-12deg); }
.how-section { background: var(--r-white); border-block: 2px solid var(--r-ink); }
.section-intro { max-width: 850px; }
.section-intro > p:last-child { margin-top: 20px; color: var(--r-muted); }
.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 74px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--r-ink); }
.process-list li { min-height: 310px; padding: 22px 24px 25px 0; border-right: 1px solid var(--r-ink); }
.process-list li + li { padding-left: 22px; }
.process-list li:last-child { border-right: 0; }
.process-number { display: block; margin-bottom: 84px; color: var(--r-red-dark); font-family: var(--r-display); font-size: 2.4rem; line-height: 1; }
.process-list h3 { max-width: 13ch; }
.process-list p { max-width: 27ch; margin-top: 14px; color: var(--r-muted); font-size: .94rem; line-height: 1.45; }

.example-section { background: var(--r-red); border-bottom: 2px solid var(--r-ink); }
.example-section .section-label { color: var(--r-ink); }
.example-section .section-intro > p:last-child { color: var(--r-ink); }
.scenario-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 44px; }
.scenario-button { padding: 12px 15px; border: 1px solid var(--r-ink); border-radius: 0; background: transparent; color: var(--r-ink); font-size: .88rem; font-weight: 700; cursor: pointer; }
.scenario-button:hover, .scenario-button[aria-pressed="true"] { background: var(--r-ink); color: var(--r-red); }
.scenario { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 28px; margin-top: 18px; padding: 38px; border: 2px solid var(--r-ink); background: var(--r-paper); }
.role-label { display: block; margin-bottom: 16px; color: var(--r-red-dark); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.scenario h3 { max-width: 16ch; font-size: clamp(1.45rem, 2.5vw, 2.35rem); }
.scenario-side p { max-width: 36ch; margin-top: 18px; color: var(--r-muted); line-height: 1.45; }
.scenario-connection { align-self: center; color: var(--r-red-dark); font-family: var(--r-display); font-size: 4.5rem; line-height: 1; }
.scenario-reason { grid-column: 1 / -1; display: grid; grid-template-columns: 190px 1fr; gap: 20px; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--r-ink); }
.scenario-reason > span { color: var(--r-red-dark); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.scenario-reason p { font-weight: 650; }

.intelligence-section { background: var(--r-white); border-bottom: 2px solid var(--r-ink); }
.intelligence-section .section-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; max-width: none; }
.intelligence-section .section-intro > p { max-width: 29ch; margin: 0; }
.intelligence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 70px; border-top: 2px solid var(--r-ink); }
.intelligence-block { min-height: 410px; padding: 30px 40px 34px 0; border-right: 1px solid var(--r-ink); }
.intelligence-block + .intelligence-block { padding-left: 40px; border-right: 0; }
.large-symbol { display: block; color: var(--r-red-dark); font-family: var(--r-display); font-size: 5rem; line-height: .75; }
.intelligence-block h3 { margin-top: 55px; font-size: clamp(1.8rem, 3vw, 3rem); }
.intelligence-block > p { max-width: 47ch; margin-top: 18px; color: var(--r-muted); }
.intelligence-block .text-link { margin-top: 28px; }
.intelligence-block blockquote { margin: 27px 0 0; font-family: var(--r-display); font-size: 2rem; line-height: 1; }

.story-section { background: var(--r-ink); color: var(--r-white); }
.story-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(330px, .75fr); gap: 100px; padding-block: 130px; }
.story-visual { position: sticky; top: 120px; align-self: start; }
.story-visual .section-label { color: var(--r-red); }
.story-visual h2 { max-width: 9ch; }
.story-display { position: relative; display: grid; min-height: 300px; margin-top: 32px; border: 1px solid #555; background: #161616; overflow: hidden; }
.story-stage { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 25px; opacity: 0; transform: translateY(12px); transition: opacity .45s var(--r-ease), transform .45s var(--r-ease); }
.story-stage.is-active { opacity: 1; transform: translateY(0); }
.story-stage .role-label { color: var(--r-red); }
.story-stage p { max-width: 18ch; font-family: var(--r-display); font-size: clamp(1.8rem, 3.2vw, 3.25rem); line-height: 1.12; }
.story-chip { align-self: flex-start; padding: 6px 9px; border: 1px solid var(--r-red); color: var(--r-red); font-size: .72rem; font-weight: 700; }
.story-visual > .small-note { margin-top: 14px; color: #b6b6b2; }
.story-beats article { min-height: 230px; padding-block: 18px 54px; border-bottom: 1px solid #555; }
.story-beats article:last-child { border-bottom: 0; }
.step-number { display: block; color: var(--r-red); font-family: var(--r-display); font-size: 2.6rem; line-height: 1; }
.story-beats h3 { margin-top: 26px; font-size: clamp(1.7rem, 3vw, 3rem); }
.story-beats p { max-width: 43ch; margin-top: 14px; color: #cecec9; }
.story-beats .text-link { margin-top: 20px; }

.control-section { background: var(--r-paper); border-bottom: 2px solid var(--r-ink); }
.control-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 100px; }
.control-layout > div > p:not(.section-label) { max-width: 47ch; margin-top: 25px; color: var(--r-muted); }
.control-layout > div > .text-link { margin-top: 28px; }
.control-detail { padding-top: 9px; }
.control-detail h3 { padding-top: 22px; border-top: 1px solid var(--r-ink); }
.control-detail h3 + p { margin: 9px 0 30px; color: var(--r-muted); }
.organizer-callout { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: end; }
.organizer-callout > div > p:not(.section-label) { max-width: 52ch; margin-top: 25px; color: var(--r-muted); }
.organizer-callout .button { margin-top: 28px; }
.organizer-statement { padding: 30px; background: var(--r-red); }
.organizer-statement p { font-family: var(--r-display); font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.05; text-transform: uppercase; }
.organizer-statement p span { display: block; padding-left: 12%; }
.organizer-statement small { display: block; max-width: 30ch; margin-top: 35px; font-size: .85rem; }
.closing { padding-block: 120px; background: var(--r-ink); color: var(--r-white); }
.closing .shell { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.closing h2 { max-width: 9ch; color: var(--r-red); font-family: var(--r-display); font-size: clamp(4rem, 10vw, 10rem); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; }
.footer { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 35px; min-height: 115px; }
.footer > p, .footer > small { color: var(--r-muted); font-size: .86rem; }
.footer nav { display: flex; justify-content: end; gap: 20px; font-size: .86rem; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }

/* Shared reason page hooks. These keep the how-it-works and organizer pages on the same red rules. */
.page-hero { padding-block: 95px 85px; }
.page-hero h1 { max-width: 900px; margin-top: 18px; font-family: var(--r-display); font-size: clamp(4rem, 8vw, 8rem); font-weight: 400; line-height: 1.05; }
.page-hero .lead { max-width: 62ch; margin-top: 28px; color: var(--r-muted); font-size: 1.15rem; }
.page-hero .actions { margin-top: 28px; }
.reading-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding-block: 105px; border-top: 2px solid var(--r-ink); }
.reading-section > div > p { max-width: 51ch; margin-top: 20px; color: var(--r-muted); }
.reading-section h3 { margin-top: 0; }
.reading-section details { padding-block: 22px; border-top: 1px solid var(--r-ink); }
.reading-section details:first-child { border-top: 2px solid var(--r-ink); }
.reading-section summary { cursor: pointer; font-size: 1.15rem; font-weight: 700; }
.reading-section details p { margin-top: 15px; color: var(--r-muted); }
.steps { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--r-red); }
.step { position: relative; padding: 0 0 30px 28px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: -8px; top: 3px; width: 13px; height: 13px; border: 2px solid var(--r-red); border-radius: 50%; background: var(--r-paper); }
.step-number { color: var(--r-red-dark); font-size: .76rem; font-weight: 800; letter-spacing: .1em; }
.step h3 { margin-top: 8px; font-size: 1.25rem; }
.step p { margin-top: 8px; color: var(--r-muted); }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin: 28px 0; padding: 18px 20px; border: 1px solid var(--r-red); background: #fff0ec; }
.callout .ico { width: 25px; height: 25px; display: grid; place-items: center; background: var(--r-red); color: var(--r-ink); font-weight: 800; }
.callout p { margin: 0; }
.sample-panel { padding: 24px; border: 1px solid var(--r-ink); background: var(--r-white); }
.sample-panel .role-label { margin-bottom: 8px; }
.sample-panel p { margin-top: 8px; }
.sample-panel .text-link { margin-top: 18px; }
.reason-page .plain-list { margin: 18px 0; padding-left: 22px; }
.reason-page .plain-list li + li { margin-top: 8px; }
.reason-page code, .reason-page pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.reason-page .sample-prompt { display: block; padding: 18px; border-left: 3px solid var(--r-red); background: var(--r-ink); color: var(--r-white); white-space: pre-wrap; }
.reason-page .availability-note { color: var(--r-muted); font-size: .85rem; }

/* Docs and API pages may have their own denser layout, but share the same palette. */
.reason-docs { min-height: 100vh; background: var(--r-paper); color: var(--r-ink); }
.reason-docs .page-title, .reason-docs h2, .reason-docs h3 { color: var(--r-ink); }
.reason-docs .onboarding { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding-block: 80px; }
.reason-docs .onboarding h1 { font-family: var(--r-display); font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 400; line-height: 1.05; text-transform: uppercase; }
.reason-docs .onboarding > p { max-width: 64ch; margin-top: 25px; color: var(--r-muted); }
.reason-docs .connect-step { margin-top: 32px; padding: 24px; border: 1px solid var(--r-ink); background: var(--r-white); }
.reason-docs .connect-step h3 { margin-bottom: 10px; }
.reason-docs .connect-code { display: block; margin-top: 14px; padding: 15px; overflow-x: auto; background: var(--r-ink); color: var(--r-white); }
.reason-docs .copy-status { margin-top: 8px; color: var(--r-muted); font-size: .86rem; }
.reason-docs .connect-button { margin-top: 18px; }
.reason-docs .onboarding-note { margin-top: 25px; color: var(--r-muted); }
.reason-docs .onboarding-note p { margin-top: 8px; }
.reason-docs .onboarding-note a { color: var(--r-red-dark); }
.reason-docs .onboarding nav { display: flex; gap: 18px; margin-top: 20px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .desktop-nav { gap: 15px; font-size: .8rem; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list li:nth-child(2) { border-right: 0; }
  .process-list li:nth-child(n + 3) { border-top: 1px solid var(--r-ink); }
  .process-list li:nth-child(3) { padding-left: 0; }
  .assistant-row { align-items: flex-start; flex-direction: column; padding-block: 30px; }
  .story-layout { gap: 60px; }
  .control-layout, .organizer-callout { gap: 55px; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 36px, 620px); }
  .section { padding-block: 82px; }
  .site-head { position: relative; }
  .nav-row { min-height: 66px; }
  .desktop-nav, .nav-row > .button { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { padding: 9px 0 9px 12px; }
  .mobile-nav nav { position: absolute; top: calc(100% + 11px); right: 0; display: grid; min-width: 235px; padding: 10px; border: 2px solid var(--r-ink); background: var(--r-white); box-shadow: 5px 5px 0 var(--r-ink); }
  .mobile-nav nav a { padding: 11px 12px; font-weight: 700; text-decoration: none; }
  .mobile-nav nav a:hover { background: var(--r-red); }
  .hero-poster-inner { padding-top: 45px; }
  .hero-copy h1 { font-size: clamp(3.5rem, 16vw, 6.5rem); line-height: .88; }
  .hero-copy h1 span:last-child { padding-left: 7vw; }
  .hero-footer { display: block; margin-top: 25px; padding-bottom: 45px; }
  .hero-description { font-size: 1rem; }
  .hero-footer .actions { margin-top: 25px; }
  .connection-art { margin-top: 45px; padding: 0 3px 15px; }
  .connection-art img { min-height: 200px; }
  .art-label { font-size: .63rem; }
  .art-label-a { top: 4%; left: -5px; }
  .art-label-b { top: 9%; right: -5px; }
  .assistant-row { gap: 24px; }
  .assistant-logos { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .assistant-logos a { min-height: 48px; }
  .manifesto, .control-layout, .organizer-callout, .reading-section { grid-template-columns: 1fr; gap: 44px; }
  .manifesto-copy h2 { max-width: 14ch; }
  .manifesto-mark { justify-self: start; font-size: 9rem; }
  .process-list { grid-template-columns: 1fr; margin-top: 50px; }
  .process-list li, .process-list li + li, .process-list li:nth-child(3) { min-height: auto; padding: 22px 0 30px; border-right: 0; border-top: 1px solid var(--r-ink); }
  .process-list li:first-child { border-top: 0; }
  .process-number { margin-bottom: 35px; }
  .scenario { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
  .scenario-connection { justify-self: start; transform: rotate(90deg); }
  .scenario-reason { grid-template-columns: 1fr; gap: 10px; }
  .intelligence-section .section-intro { display: block; }
  .intelligence-section .section-intro > p { margin-top: 18px; }
  .intelligence-grid { grid-template-columns: 1fr; margin-top: 45px; }
  .intelligence-block, .intelligence-block + .intelligence-block { min-height: auto; padding: 30px 0 44px; border-right: 0; border-bottom: 1px solid var(--r-ink); }
  .intelligence-block:last-child { border-bottom: 0; }
  .story-layout { grid-template-columns: 1fr; gap: 50px; padding-block: 85px; }
  .story-visual { position: relative; top: auto; }
  .story-display { min-height: 235px; margin-top: 35px; }
  .story-beats article { min-height: auto; padding-bottom: 40px; }
  .closing { padding-block: 85px; }
  .closing .shell { display: block; }
  .closing .button { margin-top: 35px; }
  .footer { grid-template-columns: 1fr 1fr; gap: 22px 18px; padding-block: 28px; }
  .footer nav { grid-column: 1 / -1; justify-content: start; flex-wrap: wrap; }
  .footer > small { justify-self: end; }
  .page-hero { padding-block: 60px; }
  .page-hero h1 { font-size: clamp(3.3rem, 14vw, 6rem); }
  .reason-docs .onboarding { width: min(100% - 36px, 620px); padding-block: 55px; }
}
@media (max-width: 420px) {
  .actions { align-items: stretch; flex-direction: column; }
  .actions .button, .actions .text-link { width: 100%; }
  .hero-copy h1 { font-size: 3.65rem; }
  .hero-copy h1 span:last-child { padding-left: 0; }
  .connection-art img { min-height: 145px; }
  .scenario-controls { display: grid; }
  .scenario-button { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reason-page *, .reason-page *::before, .reason-page *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .story-stage { transform: none; }
}

/* Final composition pass: keep the promise, connection, and action together. */
.reason-page { overflow-x: clip; }
.hero-poster-inner { padding-top: 26px; }
.hero-copy h1 { font-size: clamp(4.2rem, 7.8vw, 8rem); line-height: 1.05; }
.connection-art { width: 100%; margin: 10px 0 0; padding: 0; }
.connection-art img { height: clamp(240px, 22vw, 320px); min-height: 0; object-fit: cover; object-position: center 43%; }
.hero-footer { margin-top: 20px; padding-bottom: 30px; gap: 36px; }
.hero-footer .actions { flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-description { max-width: 66ch; font-weight: 500; }
.reason-page a.button-dark { color: var(--r-white); }
.reason-page a.button:hover { color: var(--r-white); }
.reason-page a.button-dark:hover, .reason-page a.button-red:hover { color: var(--r-ink); }
.hero-poster :focus-visible, .site-head :focus-visible, .example-section :focus-visible { outline-color: var(--r-ink); }
.page-hero h1 { font-weight: 400; line-height: 1.06; font-size: clamp(48px, 6.8vw, 92px); }
@media (max-width: 680px) {
  .hero-poster-inner { display: flex; flex-direction: column; padding-top: 30px; }
  .hero-copy { order: 0; }
  .hero-copy h1 { font-size: clamp(42px, 12vw, 72px); line-height: 1.08; }
  .hero-copy h1 span, .hero-copy h1 span:last-child { display: inline; padding-left: 0; }
  .hero-footer { order: 1; margin-top: 24px; padding-bottom: 0; }
  .hero-footer .actions { flex-direction: row; align-items: center; gap: 18px; margin-top: 22px; }
  .hero-footer .actions .button, .hero-footer .actions .text-link { width: auto; }
  .connection-art { order: 2; margin-top: 24px; }
  .connection-art img { height: auto; min-height: 0; object-fit: contain; }
  .page-hero h1 { font-size: clamp(42px, 10vw, 66px); }
}

.reason-docs main a:not(.button):not(.connect-button) { color: var(--r-red-dark); text-underline-offset: 4px; }
.reason-docs .onboarding h1 { text-transform: none; }
.story-beats .step-number { color: var(--r-red); font-size: 2.6rem; font-weight: 400; }
.closing a.button { background: var(--r-red); border-color: var(--r-red); color: var(--r-ink); }
.closing a.button:hover { background: var(--r-white); border-color: var(--r-white); color: var(--r-ink); }

/* Connect dialog: opened by every "Add Peers to your AI" link; the link itself still points at the setup page. */
.button-watch { gap: 12px; padding-top: 12px; padding-bottom: 12px; background: transparent; color: var(--r-ink); }
.button-watch:hover, .reason-page a.button-watch:hover { background: var(--r-white); border-color: var(--r-white); color: var(--r-ink); }
.reason-page a.button-watch { color: var(--r-ink); }
.watch-play { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding-left: 2px; border-radius: 50%; background: var(--r-ink); color: var(--r-red); }
.watch-length { font-weight: 500; opacity: .7; }
.video-dialog { width: min(1120px, calc(100% - 32px)); max-width: none; margin: auto; padding: 0; overflow: visible; border: 2px solid var(--r-ink); background: var(--r-ink); box-shadow: 12px 12px 0 var(--r-red); }
.video-dialog.is-tall { width: min(calc(100vw - 40px), calc((100vh - 120px) * 9 / 16)); box-shadow: 8px 8px 0 var(--r-red); }
.video-dialog::backdrop { background: rgba(17, 17, 17, .78); }
.video-dialog-player { display: block; width: 100%; height: auto; max-height: calc(100vh - 96px); aspect-ratio: 16 / 9; background: var(--r-ink); }
.video-dialog.is-tall .video-dialog-player { max-height: none; aspect-ratio: 9 / 16; }
.video-dialog-close { position: absolute; top: -48px; right: -6px; margin: 0; }
.video-dialog-close button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--r-white); font-size: 34px; line-height: 1; cursor: pointer; }
.video-dialog-close button:hover { color: var(--r-red); }
.connect-dialog { width: min(600px, calc(100% - 32px)); max-width: none; margin: auto; padding: 32px 32px 28px; border: 2px solid var(--r-ink); background: var(--r-white); color: var(--r-ink); box-shadow: 12px 12px 0 var(--r-red); font: 400 17px/1.55 var(--r-font); }
.connect-dialog::backdrop { background: rgba(17, 17, 17, .62); }
.connect-dialog-close { position: absolute; top: 10px; right: 10px; margin: 0; }
.connect-dialog-close button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--r-ink); font-size: 30px; line-height: 1; cursor: pointer; }
.connect-dialog-close button:hover { color: var(--r-red-dark); }
.connect-dialog h2 { margin-top: 0; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.connect-dialog-lead { margin-top: 14px; max-width: 46ch; color: var(--r-muted); }
.connect-dialog-url { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 20px; }
.connect-dialog-url code { min-width: 0; padding: 15px 16px; overflow-x: auto; border: 1px solid var(--r-ink); background: var(--r-tint); font-size: .86rem; white-space: nowrap; }
.connect-dialog-url .button { min-height: 50px; }
.connect-dialog-open { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.connect-dialog-open .button { gap: 10px; min-height: 50px; }
.connect-dialog-open .button img { width: 22px; height: 22px; }
.connect-dialog-open .button-outline { grid-column: 1 / -1; background: var(--r-white); color: var(--r-ink); }
.connect-dialog-open .button-outline:hover { background: var(--r-ink); color: var(--r-white); }
.connect-dialog .copy-status { min-height: 1.3em; margin-top: 10px; font-size: .82rem; font-weight: 700; color: var(--r-red-dark); }
.connect-dialog-note { margin-top: 12px; font-size: .9rem; color: var(--r-muted); }
.connect-dialog .text-link { margin-top: 18px; }
@media (max-width: 560px) {
  .connect-dialog { padding: 26px 18px 22px; }
  .connect-dialog-url, .connect-dialog-open { grid-template-columns: 1fr; }
  .connect-dialog-url .button, .connect-dialog-open .button { width: 100%; }
}

/* Space-owner stories (/for-organizers#stories). */
.owner-section { border-bottom: 2px solid var(--r-ink); }
.owner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.owner-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--r-ink); background: var(--r-white); }
.owner-plan { color: var(--r-red-dark); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.owner-card h3 { font-size: 1.3rem; line-height: 1.15; }
.owner-card > p:not(.owner-plan):not(.owner-goal) { color: var(--r-muted); font-size: .92rem; line-height: 1.5; }
.owner-example { margin-top: auto; padding: 14px; background: var(--r-red); color: var(--r-ink); }
.owner-example span { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.owner-example p { margin-top: 6px; font-size: .9rem; font-weight: 600; line-height: 1.4; }
.owner-goal { font-size: .9rem; line-height: 1.45; }
.owner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
@media (max-width: 1100px) { .owner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.owner-photo { margin: -24px -24px 4px; background: var(--r-red); border-bottom: 1px solid var(--r-ink); }
.owner-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 680px) { .owner-grid { grid-template-columns: 1fr; } }
