/* Home (index.html): the Signal design study's #/signal page.
   Ported from the study's signal.css, landing.css, styles.css (hero scene,
   FORMA, workflow, closing band), forma.css and journeys.css, dark theme.
   Tokens, header, footer, buttons, eyebrows and section headings come from
   signal-site.css; this file holds only what is particular to Home.
   Departures from the study, on the brief's "not so purple" rule: the closing
   band and the evidence card sit on --surface instead of the violet --tint. */

/* ── The Signal entrance ─────────────────────────────────────────────── */
.signal-home { position: relative; overflow: hidden; text-align: center; border-bottom: 1px solid var(--line); }
.signal-home .signal-hero { height: clamp(280px, 47vh, 520px); touch-action: pan-y; background: var(--paper); }
.signal-home .signal-hero > canvas,
.signal-home .signal-hero > .glyph-art-poster { -webkit-mask-image: linear-gradient(transparent, #000 11%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 11%, #000 84%, transparent); }
.signal-copy { position: relative; z-index: 1; padding: 0 24px 35px; }
.signal-copy h1 { font-size: clamp(43px, 4.65vw, 67px); line-height: 1.08; letter-spacing: -.056em; font-weight: 600; max-width: 920px; margin: 0 auto 18px; }
.signal-copy h1 em { font-family: var(--serif); font-weight: 400; color: var(--violet); }
.signal-lede { max-width: 650px; margin: 0 auto 19px; font-size: 15px; line-height: 1.7; }
.signal-platforms { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 auto 24px; color: #f0f0ed; }
.signal-platforms > span { font-size: 11px; color: #a7a9ae; margin-right: 4px; }
.signal-platforms a { display: inline-flex; gap: 7px; align-items: center; min-height: 36px; padding: 6px 11px; background: #1a1c1f; border: 1px solid #36393e; border-radius: var(--radius-xs); font-size: 12px; transition: border-color .2s, background .2s; }
.signal-platforms a:hover { border-color: #6b6d74; background: #222429; }
.signal-platforms .sg-icon { width: 14px; height: 14px; color: #c5c7ce; }
.signal-actions { justify-content: center; }
.signal-actions .sg-btn { min-height: 46px; font-size: 13px; }
.signal-actions .sg-btn--accent { background: #c8bbfa; border-color: #c8bbfa; color: var(--violet-ink); }
.signal-actions .signal-rooms { background: #1a1c1f; color: #f0f0ed; border-color: #424249; }
.signal-actions .sg-btn:hover { border-color: #d3c9f7; }
.signal-fine { margin: 15px auto 0; font-size: 11px; color: #a8a8ae; }
.signal-fine a { text-decoration: underline; text-decoration-color: #5b5d68; text-underline-offset: 3px; }
.signal-fine a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ── What's new ──────────────────────────────────────────────────────── */
.latest-section { padding: 52px 0 58px; }
.latest-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.latest-heading h2 { font-size: 28px; margin: 0; }
.latest-heading .sg-eyebrow { margin-bottom: 12px; }
.latest-heading > a { font-size: 12px; white-space: nowrap; }
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; margin: 0; padding: 0; }
.latest-grid > li { display: flex; min-width: 0; }
.latest-note { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; align-items: start; width: 100%; }
.note-mark { display: flex; width: 100%; align-items: center; justify-content: space-between; color: var(--violet); margin-bottom: 20px; }
.note-mark > span { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 10px; color: var(--muted); }
.latest-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10px; letter-spacing: .035em; color: var(--muted); }
.latest-meta > span::before { content: '·'; margin-right: 10px; }
.latest-note h3 { font-size: 17px; line-height: 1.4; letter-spacing: -.02em; margin: 13px 0 10px; max-width: 330px; transition: color .15s; }
.latest-note p { font-size: 12px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 20px; }
.latest-note > .sg-text-link { margin-top: auto; font-size: 11px; }
.latest-note:hover h3 { color: var(--violet); }

/* ── What it does ────────────────────────────────────────────────────── */
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-grid article { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 29px; display: flex; align-items: start; flex-direction: column; }
.capability-grid article > .sg-icon { color: var(--violet); width: 24px; height: 24px; margin-bottom: 24px; }
.capability-grid h3 { font-size: 17px; letter-spacing: -.015em; margin-bottom: 12px; }
.capability-grid p { font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
.capability-grid .sg-text-link { font-size: 11px; margin-top: auto; gap: 8px; }
.hosting-note { display: flex; align-items: center; gap: 17px; border-bottom: 1px solid var(--line); padding: 22px 0; }
.hosting-note > .sg-icon { color: var(--muted); flex: none; }
.hosting-note p { margin: 0; font-size: 12px; max-width: 880px; }
.hosting-note strong { color: var(--ink); font-weight: 500; }
.hosting-note a { text-decoration: underline; text-underline-offset: 3px; }
.hosting-note a:hover { color: var(--ink); }

/* ── Where you use it ────────────────────────────────────────────────── */
.surface-tabs { display: flex; gap: 7px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.surface-tabs button { display: flex; align-items: center; gap: 9px; background: transparent; border: 1px solid transparent; border-radius: var(--radius-xs); color: var(--muted); padding: 12px 18px; font-size: 13px; min-height: 44px; }
.surface-tabs button:hover { color: var(--ink); }
.surface-tabs button.selected { background: var(--tint); color: var(--violet); border-color: var(--line); }
.surface-tabs .sg-icon { width: 17px; height: 17px; }
.surface-description { display: flex; justify-content: space-between; align-items: center; gap: 50px; padding: 28px 0; }
.surface-description h3 { font-size: 21px; margin-bottom: 10px; }
.surface-description p { font-size: 13px; line-height: 1.7; max-width: 580px; margin: 0; }
.surface-description > span { display: flex; gap: 7px; align-items: center; font-size: 10px; color: var(--muted); white-space: nowrap; }
.surface-description > span > .sg-icon { width: 14px; height: 14px; }
.surface-window { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); box-shadow: 0 18px 70px #00000008; text-align: left; }
.surface-titlebar { border-bottom: 1px solid var(--line); padding: 17px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 11px; }
.surface-titlebar span { display: flex; align-items: center; gap: 9px; }
.surface-titlebar span:last-child { font-size: 10px; color: var(--muted); }
.surface-titlebar .sg-icon { width: 15px; height: 15px; }
.surface-titlebar b { font-weight: 400; }
.surface-work-grid { display: grid; grid-template-columns: 1fr 1.12fr; min-height: 360px; }
.surface-chat { padding: 28px; min-width: 0; }
.surface-message { display: flex; align-items: start; gap: 12px; margin-bottom: 24px; }
.surface-avatar { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: #ddded0; color: #32382b; font-size: 9px; }
.surface-avatar.is-agent { background: none; overflow: visible; }
.surface-avatar.is-agent img { width: 26px; height: 26px; object-fit: contain; }
.surface-message strong { font-weight: 500; font-size: 11px; display: flex; gap: 9px; align-items: center; }
.surface-message strong small { font-size: 8px; border: 1px solid var(--line); padding: 0 4px; border-radius: 3px; font-weight: 400; color: var(--muted); }
.surface-message p { font-size: 12px; line-height: 1.7; margin: 7px 0 0; color: var(--ink); }
.surface-file { display: flex; align-items: center; gap: 13px; font-size: 11px; border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 15px; margin: 0 0 18px 38px; }
.surface-file span { flex: 1; }
.surface-file small { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }
.surface-file > .sg-icon { width: 17px; height: 17px; }
.scene-example-controls { margin-left: 38px; }
.scene-example-controls > .sg-btn { font-size: 11px; min-height: 40px; }
.surface-result { padding: 20px 25px 12px; background: var(--soft); border-left: 1px solid var(--line); min-width: 0; }
.surface-result-label { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); margin-bottom: 16px; }
.sample-invitation { position: relative; isolation: isolate; background: #e5ebc6; color: #2b3430; padding: 25px 30px; min-height: 260px; overflow: hidden; border-radius: var(--radius-xs); transition: background .8s; }
.sample-invitation.soft { background: #e7def4; }
.sample-invitation > span { font-size: 8px; letter-spacing: .08em; }
.sample-invitation h3 { font-size: 63px; letter-spacing: -.08em; font-weight: 500; margin: 14px 0 6px; line-height: 1; }
.sample-invitation p { font-size: 13px; color: inherit; line-height: 1.4; margin-bottom: 24px; }
.sample-invitation strong, .sample-invitation > small { display: block; font-size: 9px; font-weight: 400; }
.sample-invitation > small { margin-top: 5px; font-size: 8px; }
.sample-orbit { position: absolute; z-index: -1; right: 6%; top: 75px; width: 130px; height: 130px; background: radial-gradient(circle at 30% 25%, #fdffd7, #9cba8a 55%, #517465); border-radius: 50%; box-shadow: inset -15px -15px 24px #4b635933; }
.soft .sample-orbit { background: radial-gradient(circle at 30% 25%, #f5e9ff, #b59ecb 55%, #746887); }
.surface-result-note { font-size: 9px; margin: 12px 0 0; }
.surface-next { display: flex; gap: 25px; justify-content: space-between; padding-top: 22px; font-size: 12px; }
.surface-caption { display: flex; justify-content: space-between; gap: 25px; margin-top: 18px; font-size: 10px; color: var(--muted); }
.surface-caption b { font-weight: 600; color: var(--ink); }

/* The room's file renders as a light document, as in the study. */
.room-plan { padding: 27px 30px; background: #e8e3f1; color: #2b2b37; border: 1px solid #bdb4cc; box-shadow: 0 20px 42px #16131b18; border-radius: 2px; }
.room-plan p, .room-plan small, .room-plan .plan-vote small { color: #5b586a; }
.room-plan .sg-eyebrow { color: #2b2b37; }
.room-plan .plan-vote { border-top-color: #b8afc8; }
.room-plan .plan-choice button { border-color: #b8afc8; color: #5b586a; }
.room-plan .plan-choice .selected { background: var(--tint); color: var(--violet); border-color: var(--tint); }
.room-plan .sg-eyebrow { font-size: 8px; margin-bottom: 12px; }
.room-plan h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -.02em; margin-bottom: 8px; }
.room-plan > p { font-size: 11px; }
.plan-vote { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 17px; }
.plan-vote > div:first-child > strong { font-size: 10px; font-weight: 500; }
.plan-vote small { display: block; font-size: 8px; color: var(--muted); margin: 4px 0 14px; }
.attendance-row { display: flex; align-items: center; gap: 15px; font-size: 10px; margin: 12px 0; }
.attendance-row > span:first-child { width: 49px; }
.attendance-track { flex: 1; height: 5px; border-radius: 4px; background: var(--soft); }
.attendance-track i { display: block; height: 100%; border-radius: 4px; background: var(--violet); }
.attendance-row strong { font-size: 9px; font-weight: 400; }
.plan-choice { display: flex; gap: 6px; margin-top: 21px; }
.plan-choice button { font-size: 10px; min-height: 36px; border: 1px solid var(--line); background: transparent; border-radius: 5px; padding: 6px 12px; color: var(--muted); }
.plan-choice .selected { background: var(--tint); color: var(--violet); }
/* The card's dark muted text (#5b586a on #e8e3f1, 5.3:1), never the page ink:
   the page ink is near-white and vanished on the lavender card. */
.room-plan .plan-decision { font-size: 10px; margin: 10px 0 0; color: #5b586a; }
@media (max-width: 768px) { .plan-choice button { min-height: 44px; } }

.discord-scene { display: grid; grid-template-columns: 195px 1fr; background: #22242b; color: #eeeef1; }
.discord-scene aside { background: #1c1e24; padding: 27px 20px; display: flex; flex-direction: column; gap: 18px; font-size: 11px; color: #9498a4; }
.discord-scene aside strong { font-size: 9px; font-weight: 500; color: #c1c3cb; margin-bottom: 5px; }
.discord-scene aside .selected { background: #323440; padding: 7px; margin: -7px; color: #ececf2; border-radius: 4px; }
.discord-scene aside small { font-size: 9px; margin-top: auto; line-height: 1.8; }
.discord-scene .surface-chat { padding: 28px 35px; max-width: 720px; width: 100%; }
.discord-scene .surface-message p { color: #d9dbe2; }
.discord-scene .mention { background: #53498066; color: #c9c0ff; padding: 1px 3px; border-radius: 3px; }
.discord-attachment { margin-left: 38px; max-width: 365px; border: 1px solid #464850; border-radius: 6px; overflow: hidden; }
.discord-attachment-art { padding: 20px 24px; background: #d6dec9; color: #28372d; }
.discord-attachment-art > span { font-size: 7px; letter-spacing: .07em; }
.discord-attachment-art strong { display: block; font-family: var(--serif); font-size: 29px; line-height: 1.1; font-weight: 400; margin: 17px 0; }
.discord-attachment-art small { font-size: 9px; }
.discord-attachment > div:last-child { display: flex; align-items: center; gap: 7px; font-size: 10px; padding: 12px; background: #292b33; }
.discord-attachment > div:last-child span { margin-left: auto; font-size: 8px; color: #aeb0ba; }
.discord-attachment .sg-icon { width: 15px; height: 15px; }
.discord-reply { display: flex; justify-content: space-between; color: #8f93a0; background: #30333c; margin-top: 25px; border-radius: 5px; font-size: 11px; padding: 14px; }

/* ── Make it. Change it. Come back. / the recorded result ─────────────── */
.landing-evidence { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.landing-evidence h2 { font-size: 39px; line-height: 1.17; }
.landing-evidence p:not(.sg-eyebrow) { font-size: 14px; }
.landing-evidence p a:not(.sg-text-link) { text-decoration: underline; text-underline-offset: 3px; }
.landing-evidence p a:not(.sg-text-link):hover { color: var(--ink); }
.landing-evidence p.evidence-label { font-size: 10px; letter-spacing: .02em; }
.landing-evidence p.evidence-more { font-size: 12px; }
.landing-evidence .evidence-label b { font-weight: 600; color: var(--ink); }
.landing-evidence .sg-actions { margin-top: 8px; }
.landing-evidence .sg-btn { font-size: 12px; }
.evidence-links { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.evidence-links li { font-size: 12px; color: var(--muted); padding: 11px 0; border-bottom: 1px solid var(--line); }
.evidence-links a { color: var(--ink); text-decoration: underline; text-decoration-color: #5b5d68; text-underline-offset: 3px; }
.evidence-links a:hover { color: var(--violet); text-decoration-color: currentColor; }
.evidence-links span { font-size: 11px; }
.evidence-more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: -28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }
.evidence-more > span { color: var(--muted); }
.evidence-more .sg-text-link { font-size: 12px; }

.evidence-object { display: block; min-height: 310px; perspective: 900px; padding: 15px 25px; }
.evidence-stack { position: relative; min-height: 330px; transform: rotateY(-12deg) rotateX(8deg) rotateZ(-3deg); transition: transform .5s; }
.evidence-object:hover .evidence-stack, .evidence-object:focus-visible .evidence-stack { transform: rotateY(-6deg) rotateX(5deg) rotateZ(-1deg); }
.evidence-stack > div { position: absolute; inset: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; }
.evidence-stack > div:first-child { transform: translate(24px, 24px); opacity: .4; }
.evidence-stack > div:nth-child(2) { transform: translate(12px, 12px); opacity: .7; }
.evidence-stack > div:last-child { padding: 18px; background: var(--soft); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; color: var(--ink); }
.evidence-stack span { font-size: 9px; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); letter-spacing: .04em; }
.evidence-stack span:last-child { color: var(--ink); font-size: 11px; letter-spacing: 0; justify-content: flex-start; }
.evidence-stack span .sg-icon { width: 13px; height: 13px; }
.evidence-stack img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top center; border-radius: 5px; border: 1px solid var(--line); }

/* The FORMA figure (the study's hero scene, in its section). */
.hero-scene { height: 620px; position: relative; perspective: 1600px; isolation: isolate; text-align: left; }
.scene-message { position: absolute; left: 0; top: 18%; width: 290px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); padding: 15px 18px; border-radius: var(--radius-md); font-size: 12px; z-index: 3; transform: rotate(-3deg); animation: message-drift 11s ease-in-out infinite; }
.scene-message small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.scene-message .scene-timing { display: block; margin-top: 4px; font-size: 9px; letter-spacing: .015em; }
.scene-plane { position: absolute; left: 5%; top: 36%; width: 88%; transform: rotateY(-12deg) rotateX(9deg) rotateZ(-4deg); box-shadow: 12px 40px 70px #0000004d; transition: transform .65s cubic-bezier(.2, .8, .2, 1); border: 1px solid #ffffffaa; border-radius: var(--radius-md); overflow: hidden; background: #fff; color: #24242c; z-index: 2; animation: plane-drift 10s ease-in-out infinite; }
.hero-scene:hover .scene-plane, .hero-scene:focus-within .scene-plane { transform: rotateY(0) rotateX(0) rotateZ(0); animation-play-state: paused; }
.plane-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 9px 15px; background: #fff; font-size: 10px; color: #656471; border-bottom: 1px solid #e8e6e1; }
.plane-toolbar span:first-child { display: flex; align-items: center; gap: 6px; }
.plane-toolbar .sg-icon { width: 14px; height: 14px; }
.scene-status { position: absolute; right: -8px; bottom: 29px; border: 1px solid var(--line); background: var(--surface); padding: 13px 18px; border-radius: var(--radius-md); z-index: 4; box-shadow: var(--shadow); font-size: 12px; display: flex; gap: 12px; align-items: center; }
.scene-status small { color: var(--muted); font-size: 12px; }
.scene-status .status-symbol { display: grid; place-items: center; background: #c5db93; color: #263925; width: 31px; height: 31px; border-radius: 50%; flex: none; }
.scene-status .status-symbol .sg-icon { width: 16px; height: 16px; }
.scene-controls { display: flex; justify-content: center; gap: 6px; padding-top: 12px; position: absolute; bottom: -9px; left: 10%; right: 0; z-index: 5; }
.scene-controls button { border: 0; background: transparent; border-radius: 6px; padding: 9px 12px; font-size: 11px; min-height: 36px; color: var(--ink); }
.scene-controls button:hover { background: var(--soft); }
.scene-controls button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@keyframes plane-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes message-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* The fictional FORMA page (the study's forma, forma.css layout). */
.forma { background: #e8eeb9; color: #222a1c; min-height: 240px; padding: 27px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr auto; column-gap: 6%; container-type: inline-size; transition: background .6s; }
.forma.revised { background: #e7def7; }
.forma-label { grid-column: 1 / -1; grid-row: 1; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; display: flex; justify-content: space-between; }
.forma h3 { grid-column: 1; grid-row: 2; min-width: 0; font-family: Arial, sans-serif; font-size: clamp(44px, 4vw, 67px); font-weight: 800; letter-spacing: -.065em; margin: 25px 0 5px; color: inherit; }
.forma p { grid-column: 1; grid-row: 3; align-self: start; min-width: 0; font-size: 11px; color: #384631; max-width: 200px; margin: 0; }
.forma-orb { grid-column: 2; grid-row: 2 / 4; align-self: center; width: clamp(44px, 27cqw, 180px); aspect-ratio: 1; margin: 8px 0; border-radius: 50%; background: repeating-radial-gradient(ellipse at 30% 25%, #667852 0, #667852 2px, #d1d88b 3px, #d1d88b 7px); box-shadow: 10px 15px 25px #26392518; transform: rotate(-20deg); }
.forma.revised .forma-orb { background: repeating-radial-gradient(ellipse at 30% 25%, #5d4b77 0, #5d4b77 2px, #b7a0cf 3px, #b7a0cf 7px); }
.forma-date { grid-column: 1 / -1; grid-row: 4; display: flex; align-items: center; justify-content: space-between; margin-top: 26px; font-size: 10px; border-top: 1px solid #4354343b; padding-top: 12px; }
@container (max-width: 400px) {
  .forma h3 { grid-column: 1 / -1; }
  .forma-orb { grid-row: 3; }
}

/* ── Plans ───────────────────────────────────────────────────────────── */
.pricing-usage { font-size: 12px; line-height: 1.7; max-width: 900px; margin: 26px 0 0; }
.pricing-usage b { color: var(--ink); font-weight: 600; }
.pricing-usage a { color: var(--violet); }
.pricing-credits { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.pricing-credits h3 { font-size: 19px; margin: 0 0 6px; }
.pricing-credits p { font-size: 13px; line-height: 1.65; margin: 0; max-width: 720px; }
.pricing-credits .sg-btn { flex: none; }
.pricing-more { margin: 0; font-size: 13px; }

/* ── Last start ──────────────────────────────────────────────────────── */
.cta-band { text-align: center; padding: 105px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; margin: 60px 0; }
.cta-band h2 { font-size: 52px; margin-bottom: 23px; }
.cta-band p { margin: 22px 0 0; font-size: 12px; }
.cta-band p a { text-decoration: underline; text-decoration-color: #5b5d68; text-underline-offset: 3px; }
.cta-band p a:hover { color: var(--ink); }

/* ── Widths ──────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hero-scene { height: 550px; }
  .scene-status { right: 0; bottom: 18px; }
  .scene-message { width: 245px; left: 2%; top: 17%; }
  .scene-controls { bottom: -30px; }
}
@media (max-width: 1050px) {
  .surface-description { gap: 20px; }
  .surface-description > span { white-space: normal; max-width: 175px; }
  .landing-evidence { gap: 35px; }
}
@media (max-width: 900px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .surface-work-grid { grid-template-columns: 1fr 1fr; }
  .surface-chat { padding: 22px; }
  .surface-result { padding: 18px; }
  .surface-file, .scene-example-controls { margin-left: 0; }
  .sample-invitation { padding: 22px; }
  .sample-invitation h3 { font-size: 52px; }
  .sample-orbit { width: 90px; height: 90px; top: 105px; }
  .surface-description { align-items: start; }
  .surface-description > span { max-width: 150px; }
  .latest-grid { gap: 22px; }
  .hero-scene { height: 500px; }
  .scene-plane { top: 42%; left: 0; width: 100%; }
  .scene-message { top: 21%; font-size: 11px; width: 235px; }
  .hero-scene .forma { padding: 20px; min-height: 205px; }
  .hero-scene .forma h3 { font-size: 45px; }
  .scene-status { bottom: 10px; font-size: 10px; padding: 10px; }
  .scene-controls { left: 0; bottom: -42px; }
  .pricing-credits { flex-direction: column; align-items: start; gap: 16px; }
}
@media (max-width: 640px) {
  .signal-home .signal-hero { height: clamp(250px, 40vh, 340px); }
  .signal-copy { padding: 0 19px 33px; }
  .signal-copy h1 { font-size: 41px; max-width: 370px; margin-bottom: 18px; }
  .signal-lede { font-size: 14px; line-height: 1.65; max-width: 355px; margin-bottom: 16px; }
  .signal-break { display: none; }
  .signal-platforms { gap: 8px; margin-bottom: 21px; }
  .signal-platforms > span { display: none; }
  .signal-platforms a { min-height: 44px; padding: 7px 10px; font-size: 12px; }
  .signal-actions { gap: 9px; }
  .signal-actions .sg-btn { font-size: 12px; padding: 11px 13px; min-height: 44px; }
  .signal-fine { font-size: 11px; line-height: 1.6; }
  .signal-fine a { display: inline-block; min-height: 24px; }

  .latest-section { padding: 35px 0; }
  .latest-heading { gap: 15px; margin-bottom: 20px; }
  .latest-heading h2 { font-size: 24px; }
  .latest-heading > a { font-size: 11px; min-height: 44px; }
  .latest-grid { grid-template-columns: 1fr; gap: 0; }
  .latest-note { display: grid; grid-template-columns: 32px 1fr; gap: 0 13px; padding: 19px 0; }
  .note-mark { grid-row: 1 / 5; display: block; margin: 0; }
  .note-mark > .sg-icon { width: 19px; height: 19px; }
  .note-mark > span { display: none; }
  .latest-meta, .latest-note h3, .latest-note p, .latest-note > .sg-text-link { grid-column: 2; }
  .latest-note h3 { font-size: 15px; margin: 7px 0; }
  .latest-note p { font-size: 11px; -webkit-line-clamp: 2; margin-bottom: 12px; }

  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { padding: 23px; position: relative; padding-left: 65px; }
  .capability-grid article > .sg-icon { position: absolute; left: 23px; top: 27px; width: 20px; height: 20px; }
  .capability-grid p { font-size: 12px; margin-bottom: 16px; }
  .capability-grid .sg-text-link { min-height: 32px; }
  .hosting-note { align-items: start; }
  .hosting-note p { font-size: 11px; }

  .surface-tabs { gap: 2px; justify-content: space-between; }
  .surface-tabs button { padding: 10px 8px; font-size: 11px; gap: 6px; }
  .surface-tabs .sg-icon { width: 15px; height: 15px; }
  .surface-description { display: block; padding: 23px 0; }
  .surface-description h3 { font-size: 20px; }
  .surface-description p { font-size: 12px; }
  .surface-description > span { margin-top: 16px; max-width: none; font-size: 10px; }
  .surface-titlebar { padding: 14px 15px; font-size: 10px; gap: 10px; }
  .surface-titlebar span:last-child { font-size: 9px; }
  .surface-titlebar b { display: none; }
  .surface-work-grid { grid-template-columns: 1fr; }
  .surface-chat { padding: 23px 20px 10px; }
  .surface-message { margin-bottom: 20px; }
  .surface-message p { font-size: 12px; }
  .surface-message strong { font-size: 11px; }
  .surface-file { margin-left: 38px; padding: 12px; }
  .scene-example-controls { margin: 0 0 18px 38px; }
  .surface-result { border-left: 0; border-top: 1px solid var(--line); padding: 20px; }
  .sample-invitation { min-height: 260px; padding: 25px; }
  .sample-invitation h3 { font-size: 63px; }
  .sample-orbit { width: 115px; height: 115px; top: 97px; }
  .surface-next { flex-direction: column; gap: 15px; font-size: 12px; }
  .surface-next .sg-text-link { min-height: 32px; }
  .surface-caption { flex-direction: column; gap: 6px; font-size: 10px; }
  .discord-scene { grid-template-columns: 1fr; }
  .discord-scene aside { display: none; }
  .discord-scene .surface-chat { padding: 23px 18px; }
  .discord-attachment { margin-left: 0; }
  .room-plan { padding: 22px; }
  .room-plan h3 { font-size: 26px; }

  .landing-evidence { grid-template-columns: 1fr; gap: 25px; }
  .landing-evidence h2 { font-size: 34px; }
  .landing-evidence > div > p:not(.sg-eyebrow):not(.evidence-label) { font-size: 13px; }
  .evidence-object { padding: 15px 25px 20px 0; }
  .evidence-stack { min-height: 255px; }
  .evidence-links li { font-size: 12px; }
  .evidence-more { margin-top: 0; }
  .evidence-more .sg-text-link { min-height: 32px; }

  /* The FORMA scene stacks instead of floating (journeys.css). */
  .hero-scene.in-section { height: auto; display: flex; flex-direction: column; gap: 12px; perspective: none; margin: 0; }
  .hero-scene.in-section .scene-message,
  .hero-scene.in-section .scene-plane,
  .hero-scene.in-section .scene-status,
  .hero-scene.in-section .scene-controls { position: relative; inset: auto; left: auto; right: auto; top: auto; bottom: auto; width: auto; transform: none; animation: none; }
  .hero-scene.in-section .scene-controls { order: -1; justify-content: flex-start; padding-top: 0; }
  .hero-scene .forma { padding: 22px; }
  .hero-scene .forma h3 { font-size: 56px; }
  .scene-controls button { min-height: 44px; }

  .pricing-usage { font-size: 12px; }
  .cta-band { margin: 20px 0 30px; padding: 56px 22px; }
  .cta-band h2 { font-size: 35px; }
  .cta-band p a { display: inline-block; min-height: 32px; }
}
@media (max-width: 360px) {
  .signal-copy h1 { font-size: 37px; }
  .signal-platforms { gap: 5px; }
  .signal-platforms a { padding: 6px 8px; }
  .signal-actions .sg-btn { font-size: 11px; padding: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-plane, .scene-message { animation: none; }
  .scene-plane { transform: none; }
  .evidence-stack, .sample-invitation, .forma { transition: none; }
}
