/* Connected Canvas: a shared material, deliberate color regions and easier browsing. */
:root{--canvas-band:#ebede8;--canvas-raised:#fff;--canvas-sticky:#f6f7f3;--panel-dose:14%;--panel-base:var(--bg);--library-sticky-top:96px}
:root[data-theme=dark]{--canvas-band:#121514;--canvas-raised:#1b1e1d;--canvas-sticky:#191d1b;--panel-dose:17%}

/* Offset panels sit behind artifacts. Text columns retain a calm canvas. */
:is(.work-section,.workflow-showcase,.about-section,.methodology-section,.contact-section)>.section-atmosphere{display:block;inset:-48px -24px;mask-image:none;contain:paint}
:is(.work-section,.workflow-showcase,.about-section,.methodology-section,.contact-section)>.section-atmosphere:before{animation:none;will-change:auto;transform:none;opacity:1;inset:0;background:none}
.canvas-panel{position:absolute;pointer-events:none;display:block;--panel-color:var(--accent-cyan);--panel-rotation:2deg;width:76%;height:68%;top:20%;right:-2%;border-radius:32px;background:color-mix(in srgb,var(--panel-color) var(--panel-dose),var(--panel-base));transform:rotate(var(--panel-rotation));animation:canvas-panel-drift 32s ease-in-out infinite alternate;animation-play-state:paused}
.is-in-view:not(.is-document-hidden)>.section-atmosphere>.canvas-panel{animation-play-state:running;will-change:transform}
.work-section>.section-atmosphere .canvas-panel{display:none}
.selected-work{position:relative;isolation:isolate}
.selected-figure{position:relative;isolation:isolate}
.selected-figure:before{content:'';position:absolute;z-index:-1;top:76px;left:18px;right:-18px;bottom:32px;border-radius:24px;background:color-mix(in srgb,var(--accent-pink) var(--panel-dose),var(--panel-base));transform:rotate(-3deg);pointer-events:none}
.selected-studies .selected-study:nth-child(3){padding-top:0}
.workflow-showcase>.section-atmosphere .canvas-panel{--panel-color:var(--accent-cyan);--panel-rotation:2deg;right:0;top:22%;height:64%;width:88%}
.workflow-lab{background:color-mix(in srgb,var(--accent-cyan) 4%,var(--canvas-raised))}
.about-section>.section-atmosphere .canvas-panel{display:none}
.about-heading{position:relative;isolation:isolate}
.about-heading>.canvas-panel{--panel-color:var(--accent-yellow);--panel-rotation:-3deg;z-index:-1;top:100px;left:-24px;right:-20px;bottom:-24px;width:auto;height:auto;animation-duration:38s}
.about-section.is-in-view:not(.is-document-hidden) .about-heading>.canvas-panel{animation-play-state:running;will-change:transform}
.about-profile-panel{background:color-mix(in srgb,var(--accent-yellow) 5%,var(--canvas-raised))}
.methodology-section>.section-atmosphere .canvas-panel{display:none}
.methodology-section>.section-atmosphere:before{background:radial-gradient(ellipse 65% 110px at 18% 0,color-mix(in srgb,var(--accent-yellow) 7%,transparent),transparent)}
.capabilities-section{background:linear-gradient(180deg,var(--bg),var(--canvas-band) 120px)}
.stack-section{background:linear-gradient(180deg,var(--canvas-band),var(--canvas-band) calc(100% - 120px),var(--bg))}
.stack-marquee{background:var(--canvas-raised)}
.contact-section>.section-atmosphere .canvas-panel{--panel-color:var(--accent-green);--panel-rotation:-3deg;top:16%;left:10%;right:auto;width:90%;height:72%;animation-duration:40s}
.contact-section>.section-atmosphere:before{background:radial-gradient(ellipse 70% 140px at 68% 0,color-mix(in srgb,var(--accent-green) 9%,transparent),transparent)}
.contact-actions{background:var(--canvas-raised)}
.contact-section{overflow:clip}
.canvas-mark{position:absolute;left:-4%;bottom:-4%;width:clamp(280px,43vw,640px);height:76%;background:var(--fg);opacity:.035;mask:url('/images/kr-imprint.svg?v=kr-connected-1') center/contain no-repeat;pointer-events:none}
@keyframes canvas-panel-drift{from{transform:translate3d(0,-4px,0) rotate(var(--panel-rotation))}to{transform:translate3d(-8px,6px,0) rotate(var(--panel-rotation))}}

/* Dividers support the composition with a lighter visual weight. */
.section-divider{opacity:.5;gap:24px}
.section-divider svg{width:80px;height:20px}
.section-divider>span{opacity:.6}

/* Independent, progressive previews retain the original image and its full case study. */
.preview-switch{display:flex;align-items:center;gap:4px;padding:4px;width:fit-content;max-width:100%;border:1px solid var(--line);border-radius:12px;background:var(--canvas-raised);margin-bottom:14px}
.preview-switch[hidden],[data-preview-panel][hidden]{display:none!important}
.preview-switch button{min-height:44px;padding:9px 14px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:14px;line-height:1.4;cursor:pointer}
.preview-switch button[aria-pressed=true]{background:color-mix(in srgb,var(--accent-cyan) 12%,var(--canvas-raised));color:var(--accent-cyan)}
.preview-switch button:hover{color:var(--fg)}
.project-view{min-width:0;width:100%}
.project-view>[data-preview-panel]{min-width:0}
.preview-output{padding:24px;border:1px solid var(--strong-line);border-radius:16px;background:var(--canvas-raised);color:var(--fg);min-height:260px}
.preview-output dl{display:grid;gap:20px;margin:0}
.preview-output dt{font-size:13px;line-height:1.6;color:var(--accent-cyan);margin-bottom:8px}
.preview-output dd{font-size:18px;line-height:1.55;font-weight:500;margin:0}
.preview-output>p{font-size:14px;line-height:1.8;color:var(--muted);margin:20px 0 12px;max-width:65ch}
.preview-output>.text-link{font-size:14px;min-height:44px;gap:12px}
.preview-output svg{width:16px;height:16px;flex:none}
.selected-study .selected-image,.selected-study:first-child .selected-image{aspect-ratio:16/10;min-height:0;max-height:none;background:var(--canvas-raised)}
.selected-study .selected-category,.story-brief dt,.story-brief a{font-size:14px}
.selected-study .story-brief>div{grid-template-columns:112px minmax(0,1fr)}
.selected-copy h4,.selected-study:first-child h4{font-size:clamp(27px,2.6vw,36px)}

/* A sticky library toolbar stays inside Work, below the actual site header. */
.work-section{overflow:visible}
.work-toolbar{position:sticky;top:var(--library-sticky-top);z-index:12;background:var(--canvas-sticky);border:1px solid var(--strong-line);border-radius:14px;padding:12px 16px;margin-block:20px 16px;box-shadow:none}
.work-toolbar .result-count{font-size:14px;line-height:1.6;margin:0;flex:none}
.filter-button{font-size:14px;background:transparent}
.filter-button>span{font-size:13px}
.project-group{scroll-margin-top:200px}
.group-heading h3{font-size:clamp(24px,2.8vw,34px)}
.group-heading p,.group-count,.carousel-footer,.project-picker button{font-size:14px}
.work-section .evidence-note{font-size:14px;line-height:1.8;max-width:75ch}

/* Compact library cards show less duplicated copy, with larger evidence on demand. */
.project-carousel .project-card{opacity:1;transform:none;filter:none;transition:border-color 240ms var(--studio-ease)}
.project-carousel .project-card.is-spotlight,.project-carousel .project-card:focus-within{opacity:1;transform:none;filter:none}
.project-carousel .project-card .project-stage-card{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:0;padding:0;min-height:0;border-radius:16px;transform:none;background:var(--canvas-raised);box-shadow:none}
.project-carousel .project-card.is-spotlight .project-stage-card{border-color:var(--accent-cyan)}
.project-card .project-visual.has-screenshot{display:block;padding:20px;min-height:0;background:var(--canvas-raised);border:0;border-bottom:1px solid var(--line)}
.project-card .visual-top{margin-bottom:16px;gap:12px;flex-wrap:wrap}
.project-card .platform-label,.project-card .study-index{font-size:13px}
.work-section .project-carousel .project-card .card-screenshot{display:flex;align-items:center;justify-content:center;height:200px;min-height:0;aspect-ratio:auto;padding:12px;background:var(--bg);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.project-carousel .card-screenshot img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;transform:none;filter:none}
.project-card .preview-link{font-size:14px;min-height:44px}
.project-carousel .project-card .project-copy{display:flex;flex-direction:column;justify-content:start;gap:12px;padding:22px;min-height:0;background:var(--canvas-raised)}
.project-card .preview-switch button{font-size:13px;padding-inline:10px}
.project-card .project-copy h4{font-size:26px;line-height:1.2;margin:0;max-width:30ch}
.project-card .project-meta{font-size:14px;margin:0}
.project-card .card-summary{font-size:15px;line-height:1.75;color:var(--muted);margin:0;max-width:65ch}
.project-card .card-technologies{margin:0;gap:8px}
.project-card .card-technologies li,.project-card .verification,.project-card .case-action{font-size:13px;line-height:1.6}
.project-card .card-bottom{padding-top:16px;margin-top:0;gap:12px;flex-wrap:wrap}
.project-card .case-action{min-height:44px;display:inline-flex;align-items:center;gap:10px}
.project-card .preview-output{min-height:230px;padding:20px}
.project-card .preview-output dd{font-size:17px}

/* Supporting labels remain legible across the whole interface. */
.hero-identity span,.hero-caption,.portrait-platforms,.about-profile dt,.about-profile dd,.about-priorities span,.method-disclosure,.method-art .method-output,.capability-tools,.capability-evidence-label,.stack-note,.contact-email-help,.contact-actions .location{font-size:14px}
.workflow-lab-role{font-size:12px;line-height:1.5}
.workflow-lab-node strong{font-size:14px;line-height:1.5}
.workflow-lab-status{font-size:13px;line-height:1.6}
.capability-tile .capability-evidence a,.ecosystem-groups dd,.stack-marquee small{font-size:14px;line-height:1.75}
.method-node span{font-size:13px}
.method-step h3{font-size:25px}
.method-step p,.method-step .method-lead{font-size:15px}
.footer-links a,.site-footer small{font-size:13px}

@media(max-width:1100px){
 .selected-study .story-brief>div{grid-template-columns:1fr;gap:8px}
 .project-card .project-copy h4{font-size:24px}
 .project-carousel .project-card .project-stage-card{display:flex;flex-direction:column}
 .work-section .project-carousel .project-card .card-screenshot{height:220px}
 .canvas-panel{width:90%}
}
@media(max-width:760px){
 :root{--library-sticky-top:84px;--panel-dose:12%}
 :root[data-theme=dark]{--panel-dose:16%}
 :is(.work-section,.workflow-showcase,.about-section,.methodology-section,.contact-section)>.section-atmosphere{inset:-32px -16px}
 .canvas-panel{border-radius:24px;--panel-rotation:1deg}
 .selected-figure:before{top:72px;left:8px;right:-8px;bottom:40px;transform:rotate(-2deg)}
 .selected-studies .selected-study:nth-child(3){padding-top:0}
 .about-heading>.canvas-panel{top:96px;left:-8px;right:-8px;bottom:-18px;--panel-rotation:-1deg}
 .workflow-showcase>.section-atmosphere .canvas-panel{width:98%;height:80%;top:12%;--panel-rotation:1deg}
 .contact-section>.section-atmosphere .canvas-panel{width:96%;height:65%;left:1%;top:24%;--panel-rotation:-1deg}
 .canvas-mark{width:95%;height:50%;left:-12%;bottom:28%;opacity:.03}
 .work-toolbar{padding:10px;gap:10px;top:var(--library-sticky-top);border-radius:12px}
 .work-toolbar .filters{gap:6px;flex-wrap:wrap}
 .filter-button{min-height:44px;padding:8px 10px;font-size:13px}
 .work-toolbar .result-count{font-size:13px}
 .project-card .project-visual.has-screenshot{padding:16px}
 .project-carousel .project-card .project-copy{padding:20px;gap:12px}
 .project-card .project-copy h4{font-size:24px}
 .work-section .project-carousel .project-card .card-screenshot{height:190px;padding:8px}
 .preview-switch{gap:2px;width:100%;justify-content:start}
 .preview-switch button{padding:8px 10px;font-size:13px}
 .preview-output{padding:20px;min-height:0}
 .preview-output dd{font-size:17px}
 .preview-output>p{font-size:14px}
 .project-card .preview-output{padding:16px}
 .selected-copy h4,.selected-study:first-child h4{font-size:28px}
 .hero-caption{gap:12px;font-size:12px}
 .portrait-platforms{font-size:13px}
 .about-profile dt,.about-profile dd,.about-priorities span{font-size:13px}
 .workflow-lab-role{font-size:11px}
 .workflow-lab-node strong{font-size:13px}
 .method-art .method-output{font-size:13px}
 .contact-actions .location{font-size:13px}
}
@media(max-width:540px){.work-toolbar .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.work-toolbar .filter-button{display:flex;justify-content:space-between;align-items:center}}
@media(max-width:380px){
 .filter-button{padding-inline:8px;font-size:12px}
 .preview-switch button{font-size:12px;padding-inline:8px}
 .project-card .visual-top{align-items:start}
 .project-card .study-index{font-size:12px}
 .project-card .project-copy h4{font-size:22px}
}
@media(prefers-reduced-motion:reduce){
 .canvas-panel{animation:none!important;transform:rotate(var(--panel-rotation));will-change:auto}
 .project-carousel .project-card{transition:none}
}
@media print{.canvas-panel,.canvas-mark{display:none}.work-toolbar{position:static}.preview-switch{display:none}.selected-figure:before{display:none}.project-carousel .project-card{opacity:1}}

.work-section>.section-heading .section-aside{font-size:14px;line-height:1.65}
.work-section .work-toolbar{padding:12px 16px}
@media(max-width:760px){.work-section .work-toolbar{padding:10px}}

/* Solid section grounds: stable, full-width surfaces around the existing content grid. */
:root{--projects-ground:#e9ede9;--about-ground:#f0eee5}
:root[data-theme=dark]{--projects-ground:#111615;--about-ground:#1d211e}
.solid-section-band{position:relative;isolation:isolate;border-block:1px solid var(--line)}
.solid-projects{background:var(--projects-ground)}
.solid-about{background:var(--about-ground)}
.solid-section-band+section>.section-atmosphere{inset-block-start:0}
:is(.work-section,.about-section)>.section-atmosphere{display:none}
.solid-projects .selected-figure:before{content:none}
.solid-about .about-profile-panel{background:var(--canvas-raised)}
@media print{.solid-section-band{background:white;border:0}}

/* Featured narratives sit on the section ground, with a shared editorial rhythm. */
.selected-work .selected-study .selected-copy{gap:24px}
.selected-story-heading{display:grid;gap:10px}
.selected-work .selected-study .selected-category{color:var(--muted);font-size:14px;line-height:1.6}
.selected-work .selected-copy h4{font-size:clamp(26px,2.5vw,34px);font-weight:650;line-height:1.22;letter-spacing:-.025em;max-width:30ch;margin:0}
.selected-work .story-brief{margin:0;gap:0;border-bottom:1px solid var(--line)}
.selected-work .story-brief>div{min-height:88px;padding:18px 0;gap:16px;align-items:start}
.selected-work .story-brief dt{font-size:13px;font-weight:600;line-height:1.75}
.selected-work .story-brief dt:before{content:none}
.selected-work .story-brief dd{font-size:15px;line-height:1.75}
.selected-work .story-brief>div:last-child{min-height:68px;padding-block:12px;align-items:center}
.selected-work .story-brief a{min-height:44px;text-underline-offset:5px}
.selected-work .story-brief a:is(:hover,:focus-visible){text-decoration:underline}
.selected-work .selected-action{color:var(--fg);font-size:14px;font-weight:600;gap:16px;min-height:48px;margin:0;padding:6px 0;border-bottom:1px solid var(--strong-line)}
.selected-work .selected-action svg{color:var(--accent-cyan)}
.selected-work .selected-action:is(:hover,:focus-visible){color:var(--accent-cyan);border-color:var(--accent-cyan)}
@media(min-width:1101px){.selected-study:not(:first-child) .selected-story-heading h4{min-height:2.44em}}
@media(max-width:1100px){.selected-work .story-brief>div{min-height:0;gap:8px}}
@media(max-width:760px){.selected-work .selected-copy h4{font-size:28px}.selected-work .selected-study .selected-copy{gap:22px}.selected-work .story-brief>div{padding-block:16px}.selected-work .story-brief>div:last-child{padding-block:10px;min-height:0}}

/* The image and its inspection label form one accessible link. */
.workflow-preview-link{display:block;min-width:0;color:inherit;text-decoration:none;border-radius:14px}
.workflow-preview-link:focus-visible{outline:2px solid var(--focus);outline-offset:5px}
.preview-caption{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding-top:8px;font-size:14px;line-height:1.65}
.selected-preview-caption{justify-content:space-between;padding-top:12px}
.preview-evidence{color:var(--muted)}
.preview-caption .preview-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--accent-cyan);font-size:14px}
.preview-caption svg{width:16px;height:16px;flex:none}
.workflow-preview-link:is(:hover,:focus-visible) .preview-link{text-decoration:underline;text-underline-offset:5px}
.workflow-preview-link:focus-visible :is(.selected-image,.card-screenshot){border-color:var(--focus)}

/* Sampled owner pink: exact accents, readable text shades in each theme. */
.method-timeline .method-step:nth-child(2) .method-node span,
.method-step:nth-child(2) .method-art .method-output,
.capability-tile:nth-child(3) .capability-evidence-label,
.capability-tile:nth-child(3) .capability-evidence a:is(:hover,:focus-visible){color:var(--accent-pink-text)}

/* Card copy inherits the card surface, without legacy text backplates. */
.project-carousel .project-card .project-copy{--reading-surface:transparent}
.project-copy :is(h4,p,dl){background-color:transparent}

/* Portrait and orbital art form one composition at every breakpoint. */
.hero{overflow:clip;align-items:start}
.hero .hero-copy{align-self:start}
.hero>.hero-portrait{width:min(100%,380px);align-self:start}
.hero>.hero-portrait>.kinetic-orbits{position:absolute;z-index:-1;left:50%;right:auto;top:-4%;width:220%;max-width:none;height:auto;aspect-ratio:780/440;transform:translateX(-57.6923%);opacity:.9;mask-image:linear-gradient(90deg,transparent,#000 14%,#000 88%,transparent);pointer-events:none}
.hero .portrait-stage{background:var(--canvas-raised,var(--surface))}
.hero .portrait-stage:before{background:radial-gradient(ellipse 65% 100% at 100% 36%,color-mix(in srgb,var(--accent-cyan) 12%,transparent),transparent 80%)}
.hero>.hero-portrait .portrait-brand{left:20px;top:20px;width:36px;height:36px}
.hero .portrait-platforms{justify-content:center;gap:22px;padding:18px 0 0;font-size:12px}
.hero>.section-atmosphere:has(.orbital-starfield){display:block;inset:0;mask-image:none;overflow:hidden}
.hero .orbital-starfield{mask-image:linear-gradient(90deg,transparent 25%,rgba(0,0,0,.18) 52%,#000 76%),linear-gradient(180deg,transparent,#000 8%,#000 85%,transparent);mask-composite:intersect}
@media(max-width:1100px){.hero>.hero-portrait{width:min(100%,310px)}.hero .portrait-platforms{gap:16px;font-size:11px}}
@media(max-width:760px){.hero>.hero-portrait{width:min(100%,330px);align-self:start}.hero>.hero-portrait>.kinetic-orbits{top:-3%;width:210%;opacity:.8}.hero .portrait-platforms{gap:20px;font-size:12px}.hero .orbital-starfield{mask-image:linear-gradient(180deg,transparent 20%,#000 55%,#000 80%,transparent)}}
.hero>.section-atmosphere:before{content:none}

/* Open portrait hero: staggered vertical placement, anchored orbital art. */
.hero{grid-template-columns:minmax(0,3fr) minmax(0,2fr);column-gap:48px}
.hero-identity{margin-top:20px}
.hero-description{max-width:50ch}
.hero>.hero-portrait{width:min(100%,420px);margin-top:64px;justify-self:end}
.hero .portrait-stage{aspect-ratio:auto;overflow:visible;border-radius:0;background:transparent}
.hero .portrait-stage:before{content:none}
.hero>.hero-portrait .portrait-photo{position:relative;left:auto;bottom:auto;width:100%;height:480px;max-height:none;object-fit:contain;object-position:center bottom;mask-image:linear-gradient(180deg,#000 0%,#000 92%,transparent 100%)}
.hero>.hero-portrait>.kinetic-orbits{top:-1%;width:215%;opacity:.85}
.hero .portrait-platforms{padding-top:14px;gap:22px}
@media(max-width:1100px){.hero{column-gap:32px}.hero>.hero-portrait{width:min(100%,360px);margin-top:56px}.hero>.hero-portrait .portrait-photo{height:420px}}
@media(max-width:760px){.hero{grid-template-columns:minmax(0,1fr)}.hero>.hero-portrait{grid-column:1;grid-row:2;width:min(100%,340px);margin-top:0;justify-self:center}.hero>.hero-portrait .portrait-photo{height:auto}.hero>.hero-portrait>.kinetic-orbits{top:-2%;width:210%}.hero .portrait-platforms{padding-top:10px;gap:20px}}
