/* Our Story: layered systems, company narrative and approved founder portrait. */
.story-flow .internal-hero { padding:128px 0 104px; min-height:540px; }
.story-flow .story-page-title { position:relative; z-index:1; max-width:610px; }
.story-flow .internal-hero h1 { font-size:clamp(42px,5vw,68px); }
.story-flow .internal-hero p:not(.eyebrow) { max-width:440px; margin:32px 0 0; font-size:15px; line-height:1.85; }
.story-flow .story-architecture { position:absolute; width:600px; height:auto; right:-120px; top:50%; transform:translateY(-50%); pointer-events:none; mask-image:linear-gradient(90deg,transparent,black 22%,black 88%,transparent); }
.story-flow .story-company-intro { display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); gap:88px; padding:32px 0 96px; }
.story-flow .story-section-heading h2 { max-width:300px; font-size:32px; }
.story-flow .story-company-copy p { margin:0 0 24px; }
.story-flow .story-company-copy p:first-child { font-size:27px; line-height:1.5; letter-spacing:-.025em; color:#edf2f5; }
.story-flow .story-company-copy p:last-child { margin-bottom:0; }
.story-flow .story-direction { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:96px; padding:64px 0; border-block:1px solid #b5d8f026; }
.story-flow .story-direction h2 { font-size:36px; margin-bottom:32px; }
.story-flow .story-direction p { margin:0 0 24px; }
.story-flow .story-direction p:last-child { margin-bottom:0; }
.story-flow .direction-lines { display:grid; grid-template-columns:1fr 48px; align-content:center; align-items:center; gap:20px; color:#b6d4e9; font-size:12px; letter-spacing:.16em; }
.story-flow .direction-lines span { grid-column:1; }
.story-flow .direction-lines i { grid-column:1; height:1px; background:linear-gradient(90deg,#1c5d88,#b6d4e933); }
.story-flow .direction-icon { width:48px; height:48px; grid-column:2; grid-row:1/6; stroke:#83badd; stroke-width:1; opacity:.6; }
.story-flow .story-founder { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:88px; padding:104px 0 88px; align-items:start; }
.story-flow .founder-portrait { position:relative; padding-top:8px; }
.story-flow .founder-portrait-card { position:relative; }
.story-flow .founder-portrait-card::before { content:""; position:absolute; inset:0 15% 80px -10%; z-index:-1; background:radial-gradient(ellipse,#0b5d8c55,transparent 70%); }
.story-flow .founder-portrait img { display:block; width:100%; max-width:390px; height:auto; aspect-ratio:1; object-fit:cover; border:1px solid #b5d8f026; }
.story-flow .portrait-rule { height:2px; background:var(--spectrum); opacity:.7; margin-top:20px; max-width:390px; }
.story-flow .founder-portrait p { margin:24px 0 0; font-size:26px; color:#edf2f5; letter-spacing:-.025em; }
.story-flow .founder-portrait p span { display:block; margin-top:8px; font-size:11px; color:#aebbc5; letter-spacing:.14em; }
.story-flow .founder-narrative h2 { font-size:36px; margin-bottom:32px; }
.story-flow .founder-narrative p { margin:0 0 24px; }
.story-flow .founder-narrative p:last-child { margin-bottom:0; }
.story-flow .founder-narrative strong { font-weight:600; color:#edf2f5; }
.story-flow .story-page-close { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:64px; align-items:center; border-top:1px solid #b5d8f026; padding-top:56px; }
.story-flow .story-page-close h2 { font-size:clamp(28px,3vw,40px); max-width:640px; }
@media(max-width:1100px) {
 .story-flow .internal-hero { min-height:500px; padding-block:104px; }
 .story-flow .internal-hero h1 { font-size:clamp(42px,5.7vw,60px); }
 .story-flow .story-architecture { width:550px; right:-130px; opacity:.8; }
 .story-flow .story-company-intro,.story-flow .story-founder { gap:56px; }
 .story-flow .story-direction { gap:64px; }
}
@media(max-width:820px) {
 .story-flow .internal-hero { min-height:450px; padding-block:80px; }
 .story-flow .internal-hero h1 { font-size:clamp(38px,5.8vw,48px); }
 .story-flow .story-architecture { width:490px; right:-150px; opacity:.55; }
 .story-flow .story-company-intro { grid-template-columns:1fr; gap:28px; padding-bottom:64px; }
 .story-flow .story-section-heading h2 { max-width:600px; }
 .story-flow .story-company-copy p { max-width:650px; }
 .story-flow .story-direction { gap:40px; }
 .story-flow .story-founder { gap:40px; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); padding-block:72px; }
 .story-flow .founder-narrative h2 { font-size:30px; }
 .story-flow .story-page-close { grid-template-columns:1fr; gap:28px; }
 .story-flow .story-page-close .button { justify-self:start; }
}
@media(max-width:540px) {
 .story-flow .internal-hero { min-height:0; padding:56px 0 8px; }
 .story-flow .internal-hero h1 { font-size:clamp(33px,9.2vw,48px); }
 .story-flow .internal-hero p:not(.eyebrow) { margin-top:24px; }
 .story-flow .story-architecture { position:relative; top:auto; right:auto; transform:none; width:115%; margin:-8px -7.5% -32px; opacity:.8; }
 .story-flow .story-company-intro { padding-top:16px; }
 .story-flow .story-company-copy p:first-child { font-size:23px; }
 .story-flow .story-direction { grid-template-columns:1fr; gap:36px; padding-block:48px; }
 .story-flow .story-direction h2 { font-size:30px; }
 .story-flow .direction-lines { max-width:340px; }
 .story-flow .story-founder { grid-template-columns:1fr; gap:44px; padding-top:64px; }
 .story-flow .founder-portrait img { max-width:340px; }
 .story-flow .portrait-rule { max-width:340px; }
 .story-flow .story-page-close { padding-top:40px; }
}

/* Depth pass: Cape Town opening, system layers and a shorter visible narrative. */
.story-flow .story-page-hero { position:relative; isolation:isolate; display:grid; align-items:center; min-height:660px; padding-block:128px; }
.story-flow .story-landscape { position:absolute; inset:0; z-index:-1; pointer-events:none; overflow:hidden; }
.story-flow .story-landscape img { width:100%; height:100%; object-fit:cover; object-position:65% center; }
.story-flow .story-landscape::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#000d19eb,#000d19aa 35%,#000d1922 75%,#000d1944),linear-gradient(0deg,#000d19,transparent 35%,#000d1933); }
.story-flow .story-page-title { max-width:660px; }
.story-flow .internal-hero h1 { font-size:clamp(48px,5.6vw,76px); text-shadow:0 4px 30px #000d1955; }
.story-flow .internal-hero p:not(.eyebrow) { max-width:440px; font-size:17px; color:#e0e8ee; }
.story-flow .story-company-intro { padding-top:24px; padding-bottom:72px; }
.story-flow .story-company-copy p:first-child { font-size:30px; }
.story-flow .story-direction { position:relative; isolation:isolate; overflow:clip; align-items:center; padding-block:72px; min-height:420px; }
.story-flow .direction-atmosphere { position:absolute; inset:0 -10%; z-index:-1; pointer-events:none; overflow:hidden; mask-image:linear-gradient(180deg,transparent,black 20%,black 75%,transparent); }
.story-flow .direction-atmosphere img { width:100%; height:100%; object-fit:cover; object-position:75% center; opacity:.22; }
.story-flow .direction-atmosphere::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#000d19,transparent 70%,#000d1977); }
.story-flow .direction-visual { position:relative; }
.story-flow .direction-visual .story-architecture { position:relative; top:auto; right:auto; transform:none; width:125%; max-width:500px; margin:-36px -12.5% -24px; opacity:1; mask-image:none; }
.story-flow .direction-lines { grid-template-columns:1fr 48px; gap:12px; padding-inline:12px; }
.story-flow .story-founder { position:relative; isolation:isolate; align-items:center; padding-block:96px; }
.story-flow .story-founder::before { content:""; position:absolute; inset:0 -10%; z-index:-1; pointer-events:none; background:radial-gradient(ellipse at 20% 45%,#07578138,transparent 55%),radial-gradient(ellipse at 85% 65%,#49327c12,transparent 60%); }
.story-flow .founder-portrait img { border-color:#83badd55; box-shadow:0 30px 90px #00091288; }
.story-flow .founder-portrait-card::before { inset:-40px -20px -12px -44px; border:1px solid #83badd22; background:linear-gradient(135deg,#0a578133,transparent 70%); }
.story-flow .founder-narrative p:first-of-type { color:#edf2f5; font-size:23px; line-height:1.6; letter-spacing:-.025em; }
.story-flow .story-disclosure { border-top:1px solid #83badd44; margin-top:32px; }
.story-flow .story-disclosure summary { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:56px; padding:16px 0; list-style:none; cursor:pointer; color:#e0e8ee; font-size:14px; }
.story-flow .story-disclosure summary::-webkit-details-marker { display:none; }
.story-flow .story-disclosure summary span { font-size:18px; color:#83badd; transition:transform .2s; }
.story-flow .story-disclosure[open] summary span { transform:rotate(90deg); }
.story-flow .story-disclosure summary:hover { color:#fff; }
.story-flow .story-disclosure summary:focus-visible { outline:2px solid #b6d4e9; outline-offset:5px; }
.story-flow .story-disclosure > div { padding:8px 0 0; }
.story-flow .story-disclosure p { font-size:17px; }
@media(max-width:1100px) {
 .story-flow .story-page-hero { min-height:610px; padding-block:112px; }
 .story-flow .internal-hero h1 { font-size:clamp(46px,5.7vw,62px); }
 .story-flow .story-direction { min-height:380px; }
 .story-flow .founder-portrait-card::before { inset:-28px -12px -12px -20px; }
}
@media(max-width:820px) {
 .story-flow .story-page-hero { min-height:560px; padding-block:96px; }
 .story-flow .internal-hero h1 { font-size:clamp(40px,6.4vw,52px); }
 .story-flow .story-landscape img { object-position:62% center; }
 .story-flow .story-landscape::after { background:linear-gradient(90deg,#000d19e0,#000d1966),linear-gradient(0deg,#000d19,transparent 40%); }
 .story-flow .story-company-copy p:first-child { font-size:27px; }
 .story-flow .story-direction { min-height:0; padding-block:56px; }
 .story-flow .story-founder { padding-block:72px; }
 .story-flow .founder-narrative p:first-of-type { font-size:21px; }
}
@media(max-width:540px) {
 .story-flow .story-page-hero { min-height:540px; padding-block:64px 160px; }
 .story-flow .internal-hero h1 { font-size:clamp(33px,9.2vw,48px); }
 .story-flow .internal-hero p:not(.eyebrow) { font-size:16px; max-width:300px; }
 .story-flow .story-landscape img { object-position:67% center; }
 .story-flow .story-landscape::after { background:linear-gradient(180deg,#000d19eb, #000d19b0 35%, #000d1950 65%,#000d19 100%); }
 .story-flow .story-company-copy p:first-child { font-size:24px; }
 .story-flow .direction-visual { max-width:350px; justify-self:center; width:100%; }
 .story-flow .direction-visual .story-architecture { margin:-32px -12.5% -20px; }
 .story-flow .direction-lines { margin-bottom:8px; }
 .story-flow .founder-portrait { margin-inline:12px; }
 .story-flow .founder-portrait-card::before { right:auto; bottom:auto; width:calc(min(100%,340px) + 32px); aspect-ratio:1; }
 .story-flow .story-disclosure p { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) { .story-flow .story-disclosure summary span { transition:none; } }
@media(max-width:540px) {
 .story-flow .story-page-title::before { content:""; position:absolute; inset:-24px -24px -40px; z-index:-1; pointer-events:none; background:linear-gradient(90deg,#000d19bb,#000d1988 80%,#000d1955); mask-image:linear-gradient(180deg,black 70%,transparent); }
}

/* Image-only correction: use David's approved About Me portrait unchanged. */
.story-flow .story-portrait-hero img { position:absolute; right:0; top:0; width:min(58%,820px); height:100%; object-fit:cover; object-position:center 35%; mask-image:linear-gradient(90deg,transparent,black 20%,black 93%,transparent); }
.story-flow .story-portrait-hero::after { background:linear-gradient(90deg,#000d19 15%,#000d19c4 38%,#000d1922 68%,#000d1900),linear-gradient(0deg,#000d19,transparent 30%,transparent 85%,#000d1944); }
@media(max-width:820px) { .story-flow .story-portrait-hero img { width:70%; object-position:55% 30%; } }
@media(max-width:540px) {
 .story-flow .story-portrait-hero img { width:100%; object-position:50% 28%; mask-image:linear-gradient(180deg,transparent,black 22%,black 80%,transparent); }
 .story-flow .story-portrait-hero::after { background:linear-gradient(180deg,#000d19c4,#000d1977 45%,#000d191a 72%,#000d19 100%); }
}

/* Story artwork: origins unfolding into systems, within the approved composition. */
.story-flow main#main-content { max-width:none; width:100%; }
.story-flow .story-illustrated-hero img { position:absolute; display:block; right:calc((100% - min(100%,1560px))/2 - 80px); top:0; width:min(78%,1100px); height:100%; object-fit:contain; object-position:center; }
.story-flow .story-illustrated-hero::after { background:linear-gradient(90deg,#000d19 10%,#000d19c4 35%,#000d1900 68%),linear-gradient(0deg,#000d19,transparent 25%,transparent 90%,#000d1922); }
.story-flow .direction-atmosphere img { opacity:.65; }
@media(max-width:820px) {
 .story-flow .story-illustrated-hero img { width:110%; right:-24%; }
 .story-flow .story-illustrated-hero::after { background:linear-gradient(90deg,#000d19cc,#000d1955 58%,transparent),linear-gradient(0deg,#000d19,transparent 30%); }
}
@media(max-width:540px) {
 .story-flow .story-illustrated-hero img { width:150%; height:68%; top:auto; bottom:-16px; right:-30%; }
 .story-flow .story-illustrated-hero::after { background:linear-gradient(180deg,#000d19 5%,#000d19bb 30%,transparent 60%,#000d19 100%); }
}
