@import url("/flow-tokens.css");
/* Selected Flow 4: open, artwork-led routes through the existing product. */
:root { --kin-bg:var(--flow-ink); --kin-panel:var(--flow-surface); --kin-paper:var(--flow-paper); --kin-muted:var(--flow-muted); --kin-red:var(--flow-red); }
:focus-visible { outline:2px solid var(--flow-focus); outline-offset:4px; }
.site-header { min-height:72px; padding-inline:var(--flow-page-gutter); }
.site-nav a { display:inline-flex; align-items:center; min-height:44px; }
.site-header .site-menu summary { min-height:44px; border-radius:var(--flow-radius-public); }
.home-hero { display:block; max-width:1600px; min-height:0; margin:auto; padding:52px var(--flow-page-gutter) 36px; }
.hero-copy { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:12px 7vw; max-width:none; padding-bottom:40px; }
.hero-copy>.eyebrow { grid-column:1/-1; margin-bottom:0; }
.hero-copy h1 { max-width:10ch; margin:8px 0 0; font-size:clamp(72px,7.4vw,112px); line-height:1.08; }
.hero-copy h1 span { display:block; }
.hero-entry { min-width:0; padding-top:8px; }
.hero-deck { max-width:47ch; font-size:18px; margin-bottom:22px; }
.hero-actions { gap:10px; align-items:start; }
.hero-actions>.text-link { flex-basis:100%; font-size:13px; }
.beta-note { margin-top:10px; font-size:12px; }
.mini-entry { position:relative; max-width:100%; }
.mini-badge { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 12px; list-style:none; color:var(--flow-paper); border:1px solid var(--flow-control-border); border-radius:2px; font-size:12px; font-weight:500; cursor:pointer; }
.mini-badge::-webkit-details-marker { display:none; }
.mini-badge>span:last-child { margin-left:6px; }
.mini-entry[open] .mini-badge { background:var(--flow-surface-raised); border-color:var(--flow-paper); }
.mini-availability { position:absolute; z-index:35; top:calc(100% + 8px); right:0; width:290px; max-width:calc(100vw - 32px); padding:18px; background:var(--flow-surface); border:1px solid var(--flow-control-border); font-size:13px; line-height:1.5; box-shadow:0 12px 25px #0007; }
.mini-availability p { color:var(--flow-muted); margin:10px 0; }
.mini-availability a { display:inline-flex; min-height:44px; align-items:center; text-underline-offset:4px; }
.study-feature { position:relative; max-width:none; padding-top:18px; border-top:1px solid var(--flow-rule); }
.study-panels { position:relative; display:block; }
.study-result { margin:0; transform:none; }
.study-result .art-window { height:clamp(340px,43vw,590px); aspect-ratio:auto; border:1px solid var(--flow-rule); }
.study-result .art-window canvas,.study-result .art-window svg { object-fit:contain; }
.study-result .art-label { padding:10px 0; min-height:38px; }
.study-result .art-caption { padding:10px 0; }
.study-source { position:absolute; z-index:2; left:20px; bottom:50px; width:clamp(96px,13vw,168px); margin:0; padding:10px; transform:none; border:1px solid var(--flow-control-border); background:var(--flow-ink); }
.study-source .art-label { min-height:0; font-size:9px; padding-bottom:6px; }
.study-source .art-caption { min-height:0; font-size:10px; padding-top:6px; }
.study-connector { display:none; }
.study-controls { padding-top:6px; }
.study-selectors { gap:5px; }
.study-selectors button { min-height:44px; padding:6px 14px; font-size:13px; border:1px solid transparent; }
.study-selectors button[aria-pressed=true] { border-color:var(--flow-control-border); background:var(--flow-surface); }
.section-block { padding:72px var(--flow-page-gutter); }
.section-heading { grid-template-columns:minmax(150px,.34fr) minmax(0,1fr); gap:32px; margin-bottom:36px; }
.section-heading h2,.story-band h2 { max-width:26ch; font:500 clamp(30px,3.3vw,50px)/1.15 var(--kin-ui); letter-spacing:-.035em; text-wrap:pretty; }
.section-heading p { max-width:58ch; margin-top:18px; }
.workflow .step-number { font:500 13px var(--kin-ui); margin-bottom:28px; }
.tool-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.tool-card { min-height:205px; }
.story-band { grid-template-columns:minmax(150px,.34fr) minmax(0,1fr); gap:32px; }
.story-band h2 { margin-bottom:24px; }
.updates-signup h2 { font:500 clamp(32px,4vw,52px)/1.15 var(--kin-ui); letter-spacing:-.035em; }
.marketing-footer { padding-inline:var(--flow-page-gutter); }
.footer-links a { min-height:44px; }
.page-hero { max-width:1600px; margin:auto; padding:56px var(--flow-page-gutter) 42px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px 7vw; align-items:end; }
.page-hero>.eyebrow { grid-column:1/-1; margin:0; }
.page-hero h1 { font-size:clamp(56px,7vw,94px); line-height:1.12; margin:0; max-width:14ch; }
.page-hero .page-lead { font-size:19px; max-width:54ch; }
.page-route { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:8px 25px; margin-top:20px; padding-top:18px; border-top:1px solid var(--flow-rule); }
.page-route a { min-height:44px; display:inline-flex; align-items:center; color:var(--flow-paper); font-size:13px; text-underline-offset:5px; }
.page-content { max-width:1440px; padding:44px var(--flow-page-gutter) 88px; }
.page-content h2 { font:500 clamp(27px,3.1vw,42px)/1.2 var(--kin-ui); letter-spacing:-.025em; max-width:30ch; }
.page-content h3 { line-height:1.35; }
.page-content>section:not(.release-day) { margin-bottom:24px; padding-block:32px; }
.founder-pair { max-width:none; }
.founder-profile { padding-right:32px; }
.founder-profile+.founder-profile { padding-left:32px; }
.founder-profile h3 { font:500 32px/1.15 var(--kin-ui); }
.founder-socials { padding-top:28px; }
.ethos-grid { max-width:none; gap:0 50px; }
.ethos-grid h3 { color:var(--flow-paper); }
.updates-list { max-width:1280px; }
.release-date { font:500 13px/1.6 var(--kin-ui); color:var(--flow-muted); letter-spacing:0; }
.release-entry { margin-bottom:10px; }
.release-entry h3 { max-width:46ch; font-size:22px; line-height:1.3; }
.release-entry p { font-size:16px; line-height:1.7; }
.guide-intro { grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr); align-items:end; }
.guide-intro h1 { font-size:clamp(44px,4.8vw,68px); max-width:16ch; margin:16px 0 20px; }
.guide-intro .page-lead { font-size:17px; }
.guide-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:48px; align-items:start; }
.guide-sidebar { position:sticky; top:96px; max-height:calc(100dvh - 115px); overflow:auto; padding-right:16px; scrollbar-width:thin; }
.guide-index>summary { min-height:44px; font-size:14px; font-weight:600; cursor:pointer; }
.guide-jumps { display:grid; gap:26px; border:0; padding:12px 0; margin:0; }
.guide-jumps>div { display:grid; }
.guide-jumps .small-label { display:block; font-size:10px; margin-bottom:8px; color:var(--flow-muted); }
.guide-jumps a { display:flex; align-items:center; min-height:40px; font-size:13px; text-decoration:none; border-left:2px solid transparent; padding-left:10px; }
.guide-jumps a[aria-current=location] { color:var(--flow-paper); border-color:var(--flow-red); background:var(--flow-surface); }
.guide-studio-link { display:flex; align-items:center; min-height:44px; margin-top:16px; font-size:13px; }
.guide-reading { min-width:0; }
.guide-task-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--flow-rule); margin-bottom:40px; }
.guide-task-grid a { display:flex; flex-direction:column; padding:22px 18px 22px 0; gap:8px; text-decoration:none; border-bottom:1px solid var(--flow-rule); }
.guide-task-grid a:nth-child(even) { padding-left:20px; border-left:1px solid var(--flow-rule); }
.guide-task-grid span { color:var(--flow-muted); font-size:11px; }
.guide-task-grid strong { font-size:18px; font-weight:550; }
.guide-task-grid small { color:var(--flow-muted); font-size:13px; }
.guide-topic { margin:0; padding:0; border-bottom:1px solid var(--flow-rule); }
.guide-topic>summary { display:flex; gap:12px; justify-content:space-between; align-items:center; min-height:64px; padding:16px 0; list-style:none; cursor:pointer; font-size:18px; font-weight:550; }
.guide-topic>summary::after { content:'+'; flex:0 0 20px; color:var(--flow-muted); font-size:24px; font-weight:400; }
.guide-topic[open]>summary::after { content:'−'; }
.guide-topic>summary::-webkit-details-marker { display:none; }
.guide-topic[hidden] { display:none; }
.page-content section.guide-section,.page-content section.effect-category { max-width:none; margin:0; padding:12px 0 30px; border:0; }
.guide-section h2,.effect-category>h2 { font-size:24px; line-height:1.3; margin-bottom:20px; }
.effect-entry { padding-block:25px; }
.guide-search-results { margin:0 0 30px; padding:20px; border:1px solid var(--flow-control-border); background:var(--flow-surface); }
.guide-search-results h2 { font-size:22px; }
.guide-search-results a { display:inline-flex; min-height:36px; align-items:center; }
.guide-section,.effect-entry,.guide-topic,.effect-category { scroll-margin-top:100px!important; }
.guide-family-index { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.guide-family-index a { padding:8px 12px; border:1px solid var(--flow-control-border); font-size:13px; min-height:44px; display:flex; align-items:center; text-decoration:none; }
/* Focused tools share the same open source → controls → result vocabulary. */
body[data-tool] { --accent:var(--flow-red); --signal:var(--flow-red); }
body[data-tool] main.tool { max-width:1600px; grid-template-columns:minmax(300px,380px) minmax(0,1fr); gap:0 40px; margin:auto; }
body[data-tool] .intro { padding:40px 0 32px; }
body[data-tool] .intro h1 { font-size:clamp(38px,4.5vw,62px); line-height:1.1; text-transform:none; }
body[data-tool] .intro p { max-width:70ch; }
body[data-tool] .step { padding-block:24px; }
body[data-tool] .step .n { display:inline; color:var(--flow-muted); font:12px var(--flow-font-mono); margin-right:4px; }
body[data-tool] .step legend { font-size:16px; }
body[data-tool] .stage { top:92px; padding-top:16px; }
body[data-tool] .stage::before { content:'Preview / output'; color:var(--flow-muted); font-size:11px; letter-spacing:.1em; text-transform:uppercase; }
body[data-tool] button,body[data-tool] input:not([type=checkbox]):not([type=radio]),body[data-tool] select { min-height:44px; }
body[data-tool] .drop { background:var(--flow-surface); border-color:var(--flow-control-border); padding-block:40px; }
@media(min-width:901px) { body[data-tool] .rail { top:72px; height:calc(100dvh - 72px); } }
@media(max-width:1060px) { .guide-layout { grid-template-columns:190px minmax(0,1fr); gap:30px; } .hero-copy { gap:12px 5vw; } }
@media(max-width:820px) {
 .home-hero { padding-top:40px; }.hero-copy { display:block; padding-bottom:30px; }.hero-copy h1 { font-size:76px; margin:20px 0 24px; }.hero-deck { max-width:55ch; }.study-result .art-window { height:400px; }.study-source { width:125px; }
 .section-heading,.story-band { grid-template-columns:1fr; gap:16px; }.tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.page-hero { grid-template-columns:1fr; gap:20px; }.page-hero h1 { font-size:72px; }.page-hero .page-lead { font-size:18px; }.page-route { gap:4px 20px; margin-top:10px; }
 .guide-layout { grid-template-columns:1fr; gap:24px; }.guide-sidebar { position:static; max-height:none; padding:0; border-block:1px solid var(--flow-rule); }.guide-index:not([open])+.guide-studio-link { display:none; }.guide-jumps { grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }.guide-intro h1 { font-size:54px; }.guide-index>summary { min-height:48px; }.guide-studio-link { margin:0 0 15px; }
 body[data-tool] main.tool { gap:0 24px; grid-template-columns:minmax(260px,340px) minmax(0,1fr); }
}
@media(max-width:560px) {
 .site-header { min-height:64px; }.home-hero { padding-top:38px; }.hero-copy h1 { font-size:68px; }.hero-deck { font-size:16px; line-height:1.55; }.hero-actions { gap:8px; }.mini-badge { font-size:11px; padding-inline:9px; gap:6px; }.mini-badge img { width:17px; height:17px; }.mini-badge>span:last-child { margin-left:0; }.mini-availability { left:auto; right:0; }
 .study-result .art-window { height:330px; }.study-source { left:12px; bottom:52px; width:96px; padding:7px; }.study-source .art-caption { font-size:9px; }.study-selectors { gap:0; }.study-selectors button { font-size:11px; padding-inline:9px; }.study-topline { align-items:center; }.study-kicker { font-size:9px; }.art-label-detail { font-size:10px; }
 .section-block { padding-block:48px; }.section-heading h2,.story-band h2 { font-size:30px; }.section-heading { margin-bottom:28px; }.workflow { grid-template-columns:1fr; }.workflow article:nth-child(n) { min-height:0; padding:22px 0; border-left:0; border-bottom:1px solid var(--flow-rule); }.workflow article:last-child { border-bottom:0; }.workflow .step-number { margin-bottom:16px; }.tool-grid { grid-template-columns:1fr; }.tool-card:nth-child(n) { padding:24px 0; border-left:0; min-height:0; border-bottom:1px solid var(--flow-rule); }.tool-card .small-label { margin:0; }.tool-card h3 { margin-bottom:0; }
 .page-hero { padding-top:40px; padding-bottom:30px; }.page-hero h1 { font-size:60px; }.page-hero .page-lead { font-size:17px; }.page-content { padding-top:28px; }.page-content h2 { font-size:28px; }.founder-profile:nth-child(n) { padding:28px 0; }.founder-profile+.founder-profile { border-left:0; }.release-entry h3 { font-size:20px; }.release-entry p { font-size:15px; }
 .guide-intro h1 { font-size:46px; max-width:15ch; }.guide-jumps { grid-template-columns:1fr; gap:16px; }.guide-jumps a { min-height:44px; }.guide-task-grid { grid-template-columns:1fr; margin-bottom:28px; }.guide-task-grid a:nth-child(n) { border-left:0; padding:20px 0; }.guide-topic>summary { font-size:16px; }.guide-topic .guide-section h2,.guide-topic .effect-category h2 { font-size:23px; }.guide-search-results { padding:16px; }.guide-search-results a { min-height:44px; }
 body[data-tool] main.tool { grid-template-columns:1fr; }.intro { gap:14px; }body[data-tool] .intro { padding-top:30px; }body[data-tool] .stage { position:static; }.footer-links { justify-content:start; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
/* Keep the full study and its controls within a useful first desktop view. */
@media(min-width:821px) {
 .home-hero { padding-top:36px; }
 .hero-copy { padding-bottom:28px; }
 .hero-copy h1 { font-size:clamp(72px,6.7vw,100px); }
 .study-result .art-window { height:clamp(340px,29vw,460px); }
}
.guide-intro h1 { font-family:var(--kin-ui); font-weight:500; font-size:clamp(38px,3.9vw,56px); line-height:1.13; letter-spacing:-.035em; max-width:22ch; }
@media(max-width:560px) { .guide-intro h1 { font-size:38px; } }
.story-band :focus-visible { outline-color:var(--flow-ink); }
.guide-search button:disabled { color:var(--flow-muted); cursor:default; }
.guide-search-row { flex-wrap:nowrap; }
.guide-search-row input { flex:1 1 0; width:0; }
/* Preserve native source geometry as its canvas changes from 480×360 fallback
   to the 960×400 / 480×400 live study. The thumbnail remains width-bounded. */
.study-source .art-window { aspect-ratio:auto; height:auto; }
.study-source .art-window canvas { position:relative; inset:auto; height:auto; object-fit:contain; }
/* WebKit's effective focused-tool container colour was black despite a light
   body foreground. Give the working shell an explicit, scoped Flow foreground. */
body[data-tool] .shell, body[data-tool] .page,
body[data-tool] .intro h1, body[data-tool] .step legend,
body[data-tool] .drop-main { color:var(--flow-paper); }
body[data-tool] { --on-accent:var(--flow-on-red); }

@media(max-width:900px) { body[data-tool] .rail { top:72px; height:auto; max-height:none; } }
@media(max-width:560px) { body[data-tool] .rail { top:64px; } }
/* Owner-approved rounded controls; structural rules retain their square form. */
.studio-cta,.signup-row button,.signup-row input,.guide-search input,.guide-search button { border-radius:var(--flow-radius-public); }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.site-header { min-height:82px; padding-inline:4%; }
.home-hero { padding:52px 6% 20px; }
.hero-copy { position:relative; grid-template-columns:1fr 1fr; gap:0 5%; padding-bottom:40px; }
.hero-copy>.eyebrow { position:absolute; top:0; left:0; font-size:11px; }
.hero-copy h1 { margin:32px 0 18px; font-size:clamp(72px,7.4vw,112px); line-height:.97; letter-spacing:-.035em; }
.hero-entry { padding-top:28px; }
.hero-deck { font-size:20px; line-height:1.4; max-width:48ch; margin-bottom:32px; }
.hero-actions>.text-link { margin-top:14px; }
.beta-note { margin-top:24px; }
.study-feature { padding-top:0; border-top:0; }
.study-panels { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.study-result { grid-column:1/-1; position:relative; }
.study-result .art-window { position:relative; height:clamp(280px,25.7vw,410px); border-radius:8px; overflow:hidden; }
.study-result .art-window>img { display:block; width:100%; height:100%; object-fit:cover; }
.study-result .art-window>canvas { object-fit:cover; }
#study-output { transition:none; }
#study-output-fallback[aria-hidden=true] { visibility:hidden; }
.study-result .art-label { position:absolute; z-index:3; bottom:18px; left:18px; min-height:0; padding:7px 8px; color:var(--flow-paper); background:#0d0e10dd; font:10px var(--flow-font-mono); text-transform:uppercase; }
.study-source { position:static; display:flex; align-items:center; gap:10px; width:auto; margin:0; padding:0; border:0; background:none; }
.study-source .art-window { width:64px; height:48px; flex:0 0 64px; border:1px solid var(--flow-rule); }
.study-source .art-window img { display:block; width:100%; height:100%; object-fit:cover; }
.study-source .art-window canvas { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.study-source figcaption { display:grid; gap:4px; }
.study-source .art-label,.study-source .art-caption { padding:0; font:11px var(--kin-ui); min-height:0; }
.study-source .art-label { color:var(--flow-muted); }
.study-controls { position:relative; display:flex; align-items:center; justify-content:flex-end; margin-top:-48px; margin-left:45%; min-height:48px; padding:0; gap:16px; flex-wrap:wrap; }
.study-selectors { display:flex; gap:12px; }
.study-selectors button { padding:8px 0; font-size:11px; border:0; border-bottom:2px solid transparent; border-radius:0; color:var(--flow-muted); }
.study-selectors button[aria-pressed=true] { border-color:var(--flow-red); background:none; color:var(--flow-paper); }
.study-status { margin-top:16px; max-width:55ch; font-size:10px; }
@media(max-width:820px) {
 .home-hero { padding:38px 5% 16px; }.hero-copy { display:block; padding-bottom:28px; }.hero-copy>.eyebrow { position:static; }.hero-copy h1 { margin:20px 0 28px; font-size:80px; }.hero-entry { padding:0; }.hero-deck { font-size:18px; margin-bottom:24px; }.study-result .art-window { height:330px; }
 .study-controls { margin:14px 0 0; justify-content:space-between; }.study-status { margin-top:14px; }
}
@media(max-width:560px) {
 .site-header { min-height:70px; padding-inline:16px; }.site-header .studio-cta { font-size:12px; padding-inline:12px; }.home-hero { padding:36px 20px 16px; }.hero-copy h1 { font-size:70px; }.hero-deck { font-size:16px; line-height:1.5; }.hero-copy { padding-bottom:28px; }.beta-note { margin-top:22px; }.study-panels { grid-template-columns:1fr; gap:12px; }.study-result .art-window { height:310px; }.study-result .art-label { left:10px; bottom:12px; font-size:9px; }.study-controls { gap:10px; }.study-selectors { width:100%; justify-content:space-between; gap:8px; }.study-selectors button { font-size:11px; }.study-source .art-caption { font-size:10px; }
}

/* Match the approved Flow header and Anton scale rather than the earlier variant. */
.site-header { display:flex; gap:36px; }.site-wordmark { margin-right:auto; }.site-nav { margin-left:auto; }
.hero-copy h1 { font-size:86px; line-height:1.09; letter-spacing:-.012em; }.hero-deck { font-size:18px; line-height:1.55; }
@media(max-width:820px) { .hero-copy h1 { font-size:80px; }.site-header { gap:20px; } }
@media(max-width:560px) { .hero-copy h1 { font-size:68px; }.hero-deck { font-size:16px; }.site-header { gap:12px; }.site-wordmark { margin-right:auto; } }
/* Home hero second line (30 Oct copy): quieter, and after the actions on phones so Open Studio stays in the first view. */
.hero-deck.hero-deck-detail { font-size:16px; color:var(--flow-muted,#a0a6af); }
@media(max-width:560px) { .hero-entry { display:flex; flex-direction:column; } .hero-entry > .hero-deck-detail { order:3; margin-top:18px; } .hero-entry > .beta-note { order:4; } }

/* Put the real preview before the secondary explanation, without removing copy. */
.home-hero > .hero-deck-detail { max-width: 70ch; margin: 24px 0 8px; }
@media (max-width: 560px) {
 .home-hero { padding-top: 22px; }
 .hero-copy { padding-bottom: 18px; }
 .home-hero .hero-copy h1 { max-width: none; font-size: clamp(46px, 12.8vw, 60px); margin: 14px 0 16px; }
 .hero-entry > .hero-deck { margin-bottom: 16px; }
 .hero-entry > .beta-note { margin-top: 12px; margin-bottom: 0; }
 .hero-actions > .text-link { margin-top: 4px; }
 .home-hero > .hero-deck-detail { margin-top: 20px; }
}

.study-feature[data-study="particles"] .study-source { display: none; }
.study-feature[data-study="particles"] .study-controls { margin-top: 0; margin-left: 0; }
@media (max-width: 820px) {
 .study-controls { margin-left: 0; margin-top: 10px; justify-content: flex-start; }
 .study-selectors { flex-wrap: wrap; justify-content: flex-start; gap: 4px 16px; }
}
