/* Layout and scroll presentation only. Brand colors and type come from the existing DS. */
.ssq-home { background: var(--paper); overflow-x: clip; }
/* Sections already have a 76px scroll margin; avoid a second nav-height offset. */
html:has(.ssq-home) { scroll-padding-top: 0; }
.home-page { font-family: var(--font-sans); color: var(--fg); background: var(--paper); overflow: visible; }
.home-page main { outline: none; }
.home-page .navlink { color: var(--fg-secondary); text-decoration: none; position: relative; }
.home-page .navlink:hover { color: var(--fg); }
.home-page .home-shell { width: min(100% - 96px, 1200px); margin-inline: auto; }
.home-page .home-journey { position: relative; background-color: var(--paper); transition: background-color .45s ease; }
.home-page.has-story-stage .home-journey:is([data-active-scene="2"], [data-active-scene="4"]) { background-color: var(--ink-25); }
.home-page .home-hero { background-color: var(--ink-1000); color: var(--fg); min-height: max(710px, calc(100svh - 66px)); display: flex; flex-direction: column; position: relative; }
.home-page .hero-layout { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-block: 76px 52px; }
.home-page .hero-copy:focus-within { opacity: 1 !important; }
.home-page .home-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; font-family: var(--font-mono); font-size: 11px; line-height: 1.7; font-weight: var(--weight-medium); letter-spacing: .13em; color: var(--fg-muted); }
.home-page .hero-actions { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.home-page .home-button { min-height: 46px; padding: 12px 20px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; font: 13px/1.5 var(--font-mono); text-decoration: none; transition: background .2s; }
.home-page .home-button-light, .home-page .home-button-dark { color: var(--fg-on-accent); background: var(--accent-fill); border: 1px solid var(--accent-fill); }
.home-page .home-button-light:hover, .home-page .home-button-dark:hover { color: var(--fg-on-accent); background: var(--accent-fill-hover); }
.home-page .home-text-link { color: var(--fg-secondary); display: inline-flex; gap: 14px; text-decoration: none; font: 13px var(--font-mono); padding-block: 14px; }
.home-page .home-text-link:hover { color: var(--fg); }
.home-page .hero-visual { width: 100%; min-width: 0; max-width: 540px; justify-self: end; }
.home-page .hero-bottom { display: flex; align-items: center; justify-content: space-between; min-height: 79px; border-top: 1px solid var(--border); font: 10px/1.7 var(--font-mono); color: var(--fg-muted); letter-spacing: .06em; gap: 20px; }
.home-page .hero-bottom a { display: flex; align-items: center; gap: 12px; color: var(--fg-secondary); text-decoration: none; padding-block: 20px; }
.home-page .scroll-mark { width: 27px; height: 34px; border: 1px solid var(--border-strong); border-radius: 16px; display: grid; place-items: center; font-size: 16px; color: var(--fg); }

/* A quiet frame: the illustration carries the meaning, without repeated labels. */
.home-page .scene-figure { margin: 0; color: var(--fg); border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--paper); overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr); aspect-ratio: 1; }
.home-page .scene-ecosystem { background: var(--ink-1000); }
.home-page .figure-art { min-width: 0; min-height: 0; display: grid; place-items: center; padding: 28px; container-type: size; }
.home-page .figure-art > svg { width: 100%; height: 100%; display: block; overflow: visible; }
.home-page .story-diagram text { font-family: var(--font-mono); font-weight: 400; }
.home-page .story-diagram .diagram-label { font-size: 12px; letter-spacing: 1px; fill: var(--ink-600); }
.home-page .story-diagram .diagram-note { font-size: 10px; letter-spacing: .6px; fill: var(--fg-muted); }
.home-page .story-diagram .diagram-core { font-size: 12px; letter-spacing: .5px; fill: var(--fg); }
.home-page .story-diagram .diagram-row { font-size: 10.5px; letter-spacing: .3px; fill: var(--ink-600); }
.home-page:is([lang="ko"], [lang="ja"]) .story-diagram text { letter-spacing: .03em; }
.home-page .figure-art > .hero-art { width: min(100%, 100cqh, var(--art-size, 420px)) !important; max-width: 420px !important; margin: 0; }
/* Original hero styles, kept separate from the scroll movement on its parent. */
@keyframes ssqDraw { to { stroke-dashoffset: 0; } }
@keyframes ssqNodeIn { from { opacity: 0; transform: translate(-50%,-50%) scale(.78); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes ssqHubIn { from { opacity: 0; transform: translate(-50%,-50%) scale(.7); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
.home-page .ssq-link { stroke: var(--ink-600); stroke-width: 1.4; fill: none; stroke-dasharray: 200; stroke-dashoffset: 200; animation: ssqDraw .85s var(--ease-out) forwards; }
.home-page .ssq-node { position: absolute; opacity: 0; transform: translate(-50%,-50%) scale(.78); animation: ssqNodeIn .5s var(--ease-out) forwards; display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--ink-900); border: 1px solid var(--ink-700); border-radius: var(--radius-sm); white-space: nowrap; z-index: 2; }
.home-page .ssq-hub { opacity: 0; transform: translate(-50%,-50%) scale(.7); animation: ssqHubIn .6s var(--ease-out) .15s forwards; }

.home-page .story-layout { padding-block: 86px 60px; }
.home-page .story-copy { width: min(100%, 610px); margin-inline: auto; }
.home-page .story-section { padding: 62px 0 84px; border-bottom: 1px solid var(--border); }
.home-page .story-section:last-child { border-bottom: 0; }
/* Static/mobile reading keeps the original alternating full-width sections. */
.home-page:not(.has-story-stage) .story-section { position: relative; isolation: isolate; }
.home-page:not(.has-story-stage) .story-section:is(#who, #commitment)::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); background: var(--ink-25); z-index: -1; }
.home-page .chapter-eyebrow { display: flex; align-items: center; gap: 15px; color: var(--fg-muted); font: 11px/1.5 var(--font-mono); letter-spacing: .12em; margin: 0 0 29px; }
.home-page .chapter-number { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border-strong); color: var(--fg); border-radius: var(--radius-sm); letter-spacing: 0; }
.home-page .story-section.is-active .chapter-number { background: var(--accent-fill); color: var(--fg-on-accent); border-color: var(--accent-fill); }
.home-page .story-section h2.t-h1 { margin: 0 0 25px !important; }
.home-page .story-lead { margin: 0 0 30px; }
.home-page .inline-scene { margin: 30px 0; }
.home-page .service-list { border-top: 1px solid var(--border); }
.home-page .service-row { padding: 23px 0; display: grid; grid-template-columns: 1fr 24px; gap: 20px; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--border); transition: background .2s; }
.home-page .service-row h3 { font-family: var(--font-display); font-size: 20px; font-weight: var(--weight-semibold); margin: 0 0 8px; letter-spacing: -.01em; }
.home-page .service-row p { color: var(--fg-secondary); font-size: var(--text-body-sm); line-height: 1.65; margin: 0; }
.home-page .service-row > span:last-child { font-size: 20px; color: var(--accent); padding-top: 1px; transition: transform .2s; }
.home-page .service-row:hover { color: var(--fg); background: var(--ink-25); }
.home-page .service-row:hover > span:last-child { transform: translate(3px,-3px); }
.home-page .principle-list { list-style: none; padding: 0; margin: 16px 0 0; }
.home-page .principle-list li { padding: 23px 0 24px; border-top: 1px solid var(--border); }
.home-page .principle-list h3 { font-family: var(--font-display); font-size: 18px; line-height: 1.5; font-weight: var(--weight-medium); margin: 0 0 9px; }
.home-page .principle-list p { font-size: var(--text-body-sm); line-height: 1.7; color: var(--fg-secondary); margin: 0; }
.home-page .story-link { display: inline-flex; align-items: center; gap: 25px; font: 13px/1.7 var(--font-mono); color: var(--accent); text-decoration: none; margin-top: 27px; padding: 10px 0; border-bottom: 1px solid var(--border-strong); }
.home-page .story-link:hover { color: var(--fg); border-color: var(--fg); }

.home-page .story-stage-layer[hidden] { display: none; }
.home-page .story-stage-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.home-page .story-stage { position: sticky; top: var(--stage-top, 100px); width: min(46vw - 44px, 540px, 100svh - 170px); margin-left: max(48px, calc((100% - 1200px) / 2)); transform: translate3d(var(--stage-shift, 0px), 0, 0) scale(var(--stage-scale, 1)); will-change: transform; }
.home-page .stage-panels { display: grid; position: relative; }
.home-page .stage-panels .scene-figure { grid-area: 1/1; opacity: 0; visibility: hidden; }
.home-page .stage-panels .scene-figure.is-active { opacity: 1; visibility: visible; }
.home-page .channel-shutter { position: absolute; inset: 1px; border-radius: calc(var(--radius-md) - 1px); z-index: 1; overflow: hidden; pointer-events: none; }
.home-page .channel-shutter > span { position: absolute; left: 0; width: 100%; height: calc(50% + 1px); background: var(--ink-1000); transform: scaleY(0); }
.home-page .channel-shutter-top { top: 0; transform-origin: top; }
.home-page .channel-shutter-bottom { bottom: 0; transform-origin: bottom; }
.home-page .chapter-navigation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 12px; pointer-events: auto; }
.home-page .chapter-link { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 4px 0 8px; color: var(--fg-secondary); font-size: 12px; text-align: center; text-decoration: none; border-bottom: 2px solid var(--border); }
.home-page .chapter-link[aria-current="step"] { color: var(--fg); font-weight: var(--weight-semibold); border-bottom-color: var(--fg); }
.home-page .chapter-link:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.home-page .story-stage.is-intro .chapter-navigation { visibility: hidden; pointer-events: none; }
.home-page.has-story-stage .story-copy { width: 48%; margin-left: 52%; margin-right: 0; }
.home-page.has-story-stage .hero-visual { visibility: hidden; }
.home-page.has-story-stage .inline-scene { display: none; }
.home-page.has-story-stage .story-section { min-height: 87svh; padding-block: 84px 110px; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; opacity: .64; transition: opacity .35s ease; }
.home-page.has-story-stage .story-section:is(.is-active, :hover, :focus-within) { opacity: 1; }
.home-page.has-story-stage .story-section > * { width: 100%; }
.home-page.has-story-stage .story-section > .story-link { width: fit-content; }

.home-page .home-contact { background: var(--ink-25); border-top: 1px solid var(--border); padding-top: 100px; }
.home-page .contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; padding-bottom: 80px; }
.home-page .contact-copy { padding-top: 38px; }
.home-page .contact-email { display: block; width: fit-content; color: var(--fg-secondary); margin-top: 20px; font: 12px/1.7 var(--font-mono); text-decoration: none; }
.home-page .contact-note { border-top: 1px solid var(--border); padding-block: 23px; display: flex; gap: 20px; justify-content: space-between; font: 10px/1.7 var(--font-mono); color: var(--fg-muted); letter-spacing: .04em; }
.home-page .contact-note a { color: var(--fg-secondary); text-decoration: none; }
.home-page[lang="ko"] :is(h1,h2,h3,p) { word-break: keep-all; }

/* A compact footer signature, aligned with the contact section above. */
.home-page footer .ft-in, .home-page footer .ft-bot { width: min(100% - 96px, 1200px); padding-inline: 0; }
.home-page footer .ft-in { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 64px; padding-block: 56px 8px; }
.home-page footer .ft-brand, .home-page footer .ft-col { min-width: 0; }
.home-page footer .ft-logo { width: 144px; max-width: 100%; height: auto; margin-bottom: 20px; }
.home-page footer .ft-tag { max-width: 38ch; margin-bottom: 18px; }
.home-page footer .ft-addr { line-height: 1.9; overflow-wrap: anywhere; }
.home-page footer .ft-bot { margin-top: 32px; padding-block: 20px 24px; }
@media (max-width: 900px) {
  .home-page footer .ft-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .home-page footer .ft-brand { grid-column: 1 / -1; }
  .home-page footer .ft-link { min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 1060px), (max-height: 699px) {
  .home-page .hero-layout { gap: 30px; padding-block: 70px; }
  .home-page .story-layout { padding-top: 66px; }
  .home-page .story-section { padding-block: 54px 70px; }
}
@media (max-width: 1060px) {
  .home-page .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .home-page .hero-copy { max-width: 610px; }
  .home-page .hero-visual { max-width: 475px; justify-self: center; }
}
@media (max-width: 760px) {
  .home-page .home-shell { width: calc(100% - 44px); }
  .home-page footer .ft-in, .home-page footer .ft-bot { width: calc(100% - 44px); }
  .home-page footer .ft-in { padding-top: 40px; gap: 28px 20px; }
  .home-page footer .ft-logo { width: 132px; margin-bottom: 18px; }
  .home-page footer .ft-bot { margin-top: 28px; align-items: flex-start; }
  .home-page .contact-layout { grid-template-columns: 1fr; gap: 20px; }
  .home-page .contact-copy { padding-top: 0; }
  .home-page .home-contact { padding-top: 64px; }
  .home-page .contact-note { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .ssq-home .home-page footer > :is(.ft-in, .ft-bot) { padding-inline: 0 !important; }
  .ssq-home .home-page header.home-hero > .hero-layout { padding: 56px 0 38px !important; }
  .ssq-home .home-page header.home-hero > .hero-bottom { padding: 0 !important; }
  .ssq-home .home-page section.story-section > div { padding: 0 !important; }
  .ssq-home .home-page section.home-contact > .contact-layout { padding: 0 0 50px !important; }
  .ssq-home .home-page section.home-contact > .contact-note { padding: 22px 0 !important; }
  .home-page .hero-actions { gap: 20px; }
  .home-page .home-eyebrow { font-size: 10px; }
  .home-page .figure-art { padding: 14px; }
  .home-page .story-diagram .diagram-label { font-size: 15px; letter-spacing: 0; }
  .home-page .story-diagram .diagram-note { font-size: 12px; letter-spacing: 0; }
  .home-page .story-diagram .diagram-core { font-size: 13px; letter-spacing: 0; }
  .home-page .story-diagram .diagram-row { font-size: 12px; letter-spacing: 0; }
  .home-page .scene-figure { width: 100%; height: 360px; min-height: 0; aspect-ratio: auto; }
  .home-page .figure-art > .hero-art { width: min(100%, 100cqh, var(--art-size, 230px)) !important; }
  .home-page .ssq-node { padding: 6px 7px !important; gap: 4px !important; }
  .home-page .ssq-node span { font-size: 9px !important; }
  .home-page .ssq-node svg { width: 12px !important; height: 12px !important; }
  .home-page .ssq-hub { width: 100px !important; height: 100px !important; }
  .home-page .ssq-hub span { font-size: 7px !important; }
  .home-page .service-row { grid-template-columns: 1fr 20px; gap: 14px; }
  .home-page .story-link { font-size: 12px; gap: 15px; }
}
@media (max-width: 360px) {
  .home-page footer .ft-label { min-height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.ssq-home) { scroll-behavior: auto; }
  .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; }
  .home-page .ssq-link { stroke-dashoffset: 0; }
  .home-page .ssq-node, .home-page .ssq-hub { opacity: 1; transform: translate(-50%,-50%); }
  .home-page .ssq-pulse, .home-page .dgm-pulse { display: none; }
}
@media print {
  .home-page .story-stage-layer, .home-page > nav, .home-page .hero-actions, .home-page .hero-bottom, .home-page footer { display: none !important; }
  .home-page .hero-visual { visibility: visible !important; }
  .home-page .inline-scene { display: block !important; max-width: 360px; break-inside: avoid; }
  .home-page .home-shell { width: 100%; }
  .home-page .story-copy { width: 100% !important; margin: 0 !important; }
  .home-page .story-section { display: block !important; min-height: 0 !important; padding: 30px 0 !important; opacity: 1 !important; transition: none !important; }
  .home-page .home-hero { min-height: 0; }
  .home-page .hero-layout { display: block; padding: 20px 0; }
  .home-page .hero-visual { max-width: 360px; }
}
