/* Home page (white redesign, 2026-09-24): the living model city hero, the TheSurvey.ai block, method, products index,
   PARASTORE dive and the demo form. Built from explorations/redesign/v3/city.html. */
/* Direction A — "살아 있는 모형 도시 / Living model city", second pass. White ground, navy line-art model that dissolves into
   the page's dot grid, one blue for the survey. Section order and copy follow v2/home.html (reviewed):
   hero → TheSurvey.ai platform → method → products → PARASTORE → demo → footer.
   The hero track ends in the TheSurvey.ai block: it scrolls in over the pinned (veiled) city and the survey's answers fly into its bars. */

/* ---------- hero track ---------- */
.dive { position: relative; }
.stage { position: sticky; top: 0; z-index: 1; height: 100vh; height: 100svh; overflow: hidden; background: #fff; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dive > .spacer { height: 190vh; }
#fx { position: fixed; inset: 0; z-index: 30; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }
/* perf: no permanent will-change layers, and no backdrop blur on the nav over a canvas that repaints every frame */
.nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.95); }

.hero-copy { position: absolute; z-index: 4; left: 0; top: 0; padding-top: clamp(118px, 15.5vh, 150px); pointer-events: none; }
.hero-copy .ctas { pointer-events: auto; }
.hero-copy .h1 { font-size: clamp(44px, 5.5vw, 92px); }
.hero-copy .h1 > span { display: block; white-space: nowrap; }
.hero-copy .sub { margin-top: 24px; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.02em; color: var(--ink-2); }
.hero-copy .ctas { margin-top: 24px; }
.illus { position: absolute; z-index: 4; right: var(--side); bottom: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.88); color: var(--ink-2); font-size: 11px; }

/* the survey chapter: step 02 of the method, with a live tally of answers (dots drawn on #fx) */
.svc { position: absolute; z-index: 4; left: 0; top: clamp(112px, 14.5vh, 140px); pointer-events: none; visibility: hidden; opacity: 0; }
.svc::before { content: ""; position: absolute; z-index: -1; left: -10%; top: -40%; width: 150%; height: 190%; background: radial-gradient(closest-side, rgba(255,255,255,.94), rgba(255,255,255,.86) 55%, rgba(255,255,255,0)); }
.svc-n { display: block; font-family: Pretendard, "Apple SD Gothic Neo", system-ui, sans-serif; font-weight: 300; font-style: normal; font-size: 40px; line-height: 1; color: #AEB8C9; }
.svc-h { margin-top: 8px; font-size: clamp(30px, 2.7vw, 42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.svc-p { margin-top: 12px; max-width: 360px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-2); }
.tally { margin-top: 30px; width: 220px; height: 84px; }
.axis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 220px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--navy); text-align: center; font-size: 11px; color: var(--ink-2); }

/* the TheSurvey.ai block: slides over the pinned city at the end of the hero track */
.plat-sec { overflow-x: clip; position: relative; z-index: 3; min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding-top: 110px; padding-bottom: 72px; }
.plat { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: 48px; align-items: center; }
.plat > div:first-child { position: relative; }
.plat > div:first-child::before { content: ""; position: absolute; z-index: -1; left: -30%; top: -45%; width: 170%; height: 190%; background: radial-gradient(closest-side, rgba(255,255,255,.96), rgba(255,255,255,.9) 50%, rgba(255,255,255,0)); pointer-events: none; }
.plat .h2 { margin-top: 18px; }
.plat .lead { margin-top: 16px; }
.chip { display: inline-block; margin-top: 22px; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; color: var(--blue-ink); background: var(--blue-soft); }
.plat .go { display: inline-flex; margin-top: 26px; gap: 10px; font-size: 15px; border-bottom: 1px solid var(--rule-2); padding: 12px 0 6px; }
.app { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 380px; background: #fff; }
.app aside { border-right: 1px solid var(--rule); background: var(--bg-2); padding: 16px 14px; font-size: 12.5px; color: var(--ink-2); display: grid; align-content: start; gap: 9px; }
.app aside b { font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.app aside b i { width: 16px; height: 16px; border-radius: 4px; background: var(--navy); display: inline-block; position: relative; }
.app aside b i::after { content: ""; position: absolute; right: 3px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.app aside small { margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--ink-3); }
.app .app-main { padding: 16px 20px; }
.app .crumb { font-size: 12px; color: var(--ink-3); }
.app .tabs { display: flex; gap: 18px; margin: 14px 0 18px; font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.app .tabs span { padding-bottom: 9px; }
.app .tabs .on { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--navy); }
.app .q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.app .q .keys { display: flex; gap: 14px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.app .q .keys span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; background: var(--navy); }
.app .q .keys span.b::before { background: #C3CDDD; }
.bars { display: grid; gap: 10px; }
.bars .r { display: grid; grid-template-columns: 110px minmax(0, 1fr) 62px; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink-2); padding-bottom: 6px; }
.bars .t { position: relative; height: 10px; border-radius: 5px; background: var(--bg-3); }
.bars .t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--navy); }
.bars .t i.b { top: 13px; height: 6px; bottom: auto; background: #C3CDDD; }
.bars .r b { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--ink); text-align: right; line-height: 1.35; }
.bars .r b small { display: block; font-size: 11px; color: var(--ink-3); }
.app .quote { margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule); background: var(--bg-2); font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.app .quote em { font-style: normal; font-size: 11.5px; color: var(--ink-3); display: block; margin-bottom: 4px; }
.plat .ex { box-shadow: 0 1px 0 rgba(15,27,51,.02), 0 30px 60px -34px rgba(15,27,51,.35); }

/* ---------- sections ---------- */
.sec { padding-top: clamp(64px, 10vw, 150px); }
.sec-tight { padding-top: clamp(56px, 7vw, 104px); }
.method { display: grid; gap: 30px; padding-top: 34px; border-top: 1px solid var(--rule); }
.steps3 { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.steps3 li { padding: 24px 24px 0 0; }
.steps3 li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.steps3 small { font-family: Pretendard, "Apple SD Gothic Neo", system-ui, sans-serif; font-weight: 300; font-style: normal; font-size: 34px; color: #AEB8C9; }
.steps3 h3 { margin-top: 10px; }
.steps3 p { margin-top: 8px; }
.idx { margin-top: 36px; border-top: 1px solid var(--rule-2); }
.row { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.35fr) 150px 44px; gap: 24px; align-items: center; min-height: 108px; border-bottom: 1px solid var(--rule); }
.row .n { font-family: Pretendard, "Apple SD Gothic Neo", system-ui, sans-serif; font-weight: 300; font-style: normal; font-size: 30px; color: #AEB8C9; }
.row h3 { font-size: clamp(28px, 2.8vw, 42px); font-weight: 700; letter-spacing: -.03em; }
.row p { font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.row p span { display: inline-block; }
.row .g { height: 44px; display: flex; align-items: flex-end; gap: 6px; }
.row .g i { display: block; width: 7px; border-radius: 4px; background: #D3DAE5; }
.row .g i.d { height: 7px; }
.row .g i.b { background: var(--blue); }
.row .go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-2); display: grid; place-items: center; font-family: var(--mono); color: var(--ink-2); }

/* ---------- PARASTORE track ---------- */
.psd { position: relative; margin-top: clamp(64px, 10vw, 150px); }
.psd > .spacer { height: 130vh; }
.psd .anchor { position: absolute; left: 0; top: 80vh; width: 1px; height: 1px; }
#fg { pointer-events: none; }
#store { pointer-events: none; opacity: 0; visibility: hidden; }
.ps-shade { position: absolute; z-index: 3; left: 0; top: 0; width: min(780px, 64%); height: 380px; pointer-events: none; background: radial-gradient(ellipse 100% 100% at 0 0, rgba(255,255,255,.97) 0, rgba(255,255,255,.9) 48%, rgba(255,255,255,0) 100%); }
.ps-shade.b { display: none; top: auto; bottom: 0; height: 200px; width: 100%; background: linear-gradient(to top, rgba(255,255,255,.95), rgba(255,255,255,.7) 55%, rgba(255,255,255,0)); }
.ps-head { position: absolute; z-index: 4; left: 0; top: clamp(96px, 13vh, 124px); }
/* headline: the PARASTORE page's English display line (same .h1 type, section size); the Korean specifics sit under it */
.ps-head .ps-h { margin-top: 16px; font-size: clamp(38px, 3.9vw, 60px); line-height: 1.02; }
.ps-head .ps-h > span { display: block; white-space: nowrap; }
.ps-sub { margin-top: 16px; font-size: clamp(17px, 1.35vw, 20px); font-weight: 600; letter-spacing: -.02em; line-height: 1.4; color: var(--ink); }
.flow3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.flow3 i { font-style: normal; font-family: var(--mono); color: var(--ink-3); }
/* each arrow stays with the label after it, so a wrapped line starts with the arrow instead of ending on one */
.flow3 .fl { display: inline-flex; align-items: center; gap: inherit; white-space: nowrap; }
.ps-ctl { position: absolute; z-index: 5; right: var(--side); top: clamp(104px, 13.8vh, 132px); display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; }
.ps-ctl .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.ps-ctl .ttl { font-size: 14.5px; font-weight: 600; }
.seg { display: flex; gap: 6px; }
.seg button { font: inherit; font-size: 13px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule-2); background: #fff; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ps-hud { position: absolute; z-index: 4; left: var(--side); bottom: 30px; display: flex; gap: 30px; font-family: var(--mono); }
.ps-hud small { display: block; font-size: 11px; letter-spacing: .12em; color: var(--ink-2); }
.ps-hud b { font-weight: 500; font-size: 30px; color: var(--ink); }
.ps-foot { position: absolute; z-index: 4; right: var(--side); bottom: 30px; display: grid; justify-items: end; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.ps-foot .legend { color: var(--ink-2); }

.demo-sec { padding-bottom: clamp(100px, 10vw, 150px); }

@media (max-width: 1000px) {
  .row { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .row p { grid-column: 2; grid-row: 2; margin: -14px 0 20px; }
  .row .g { display: none; }
  .row .go { grid-column: 3; grid-row: 1; }
  .plat { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .plat > div:first-child::before { left: calc(-1 * var(--gut)); right: calc(-1 * var(--gut)); width: auto; top: -70px; height: calc(100% + 140px); background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.95) 70px, rgba(255,255,255,.95) calc(100% - 50px), rgba(255,255,255,0)); }
  /* PARASTORE: controls, HUD and legend stack at the bottom (no clash with the header on tablets) */
  .ps-ctl { top: auto; bottom: 150px; left: var(--gut); right: var(--gut); justify-content: flex-start; }
  .ps-ctl .tag { display: none; }
  .ps-hud { bottom: 76px; }
  .ps-foot { left: var(--gut); right: var(--gut); bottom: 18px; justify-items: start; gap: 6px; }
  .ps-shade.b { display: block; height: 300px; }
}
@media (max-width: 699px) {
  .dive > .spacer { height: 110vh; }
  .psd > .spacer { height: 110vh; }
  .psd .anchor { top: 68vh; }
  .hero-copy { padding-top: 96px; }
  .hero-copy .h1 { font-size: clamp(40px, 11.4vw, 52px); }
  .hero-copy .h1 > span { white-space: normal; }
  .hero-copy .sub { margin-top: 16px; }
  .hero-copy .ctas { margin-top: 18px; }
  .illus { left: var(--gut); right: auto; bottom: 12px; white-space: nowrap; font-size: 10.5px; letter-spacing: .08em; padding: 5px 10px; }
  .svc { top: 86px; }
  .svc-n { font-size: 30px; }
  .svc-h { font-size: 28px; margin-top: 4px; }
  .svc-p { font-size: 15.5px; margin-top: 8px; max-width: 300px; }
  .tally { margin-top: 18px; width: 200px; height: 70px; }
  .axis { width: 200px; }
  .plat-sec { padding-top: 96px; padding-bottom: 56px; }
  .ps-shade { width: 100%; height: 270px; background: linear-gradient(to bottom, rgba(255,255,255,.97), rgba(255,255,255,.9) 60%, rgba(255,255,255,0)); }
  .ps-head { top: 80px; }
  .ps-head .ps-h { font-size: clamp(30px, 8.8vw, 36px); margin-top: 12px; }
  .ps-sub { margin-top: 10px; font-size: 16px; }
  .flow3 { margin-top: 6px; font-size: 13.5px; }
  .ps-ctl { bottom: 128px; }
  .ps-ctl .ttl { display: none; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 0; min-height: 40px; padding: 0 8px; }
  .ps-hud { bottom: 64px; gap: 18px; }
  .ps-hud b { font-size: 21px; }
  .ps-foot { bottom: 14px; font-size: 11.5px; }
  .ps-foot .legend { gap: 12px; font-size: 11.5px; }
  .ps-shade.b { height: 280px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app aside { display: none; }
  .bars .r { grid-template-columns: 84px minmax(0, 1fr) 54px; }
  .steps3 { grid-template-columns: minmax(0, 1fr); }
  .steps3 li, .steps3 li + li { padding: 20px 0 22px; border-left: 0; border-top: 1px solid var(--rule); }
  .eq { flex-direction: column; align-items: stretch; }
  .eq i { text-align: center; }
  .row h3 { font-size: 26px; }
}
/* PARASTORE head on small screens. On phones the store plan starts about a third of the way down the stage, so the head
   gets smaller as the screen gets shorter and stays above the plan and clear of the controls at the bottom. */
@media (max-width: 374px) { .psd .eyebrow { font-size: 11px; letter-spacing: .1em; } :root:lang(en) .ps-sub { font-size: 14px; } }
/* the English legend wraps to two lines here: lift the HUD above it (it still clears the controls) */
@media (max-width: 349px) { :root:lang(en) .ps-hud { bottom: 82px; } }
@media (max-width: 699px) and (max-height: 700px) {
  .ps-shade { height: 220px; }
  .ps-head { top: 76px; }
  .ps-head .ps-h { font-size: 28px; margin-top: 8px; }
  .ps-sub { margin-top: 6px; font-size: 15px; }
  .flow3 { margin-top: 3px; font-size: 12.5px; }
}
@media (max-width: 699px) and (max-height: 600px) {
  .ps-head { top: 72px; }
  .ps-head .ps-h { font-size: 26px; }
  .ps-sub { font-size: 14.5px; }
  .flow3 { gap: 6px; font-size: 12px; }
}
@media (max-width: 374px) and (max-height: 600px) {
  :root:lang(en) .ps-sub { font-size: 13px; }
  .flow3 { max-width: 190px; }
}
/* landscape phones and short tablets: the headline runs on one line */
@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  .ps-shade { height: 200px; }
  .ps-head { top: 88px; }
  .ps-head .ps-h { font-size: 26px; margin-top: 8px; }
  .ps-head .ps-h > span { display: inline; }
  .ps-head .ps-h > span + span { margin-left: .26em; }
  .ps-sub { margin-top: 6px; font-size: 14.5px; }
  .flow3 { margin-top: 3px; gap: 6px; font-size: 12px; max-width: none; }
}
@media (max-width: 760px) and (max-height: 500px) and (orientation: landscape) { .ps-head { top: 74px; } }
/* reduced motion: no pinned scroll range; the city and the store are two still pictures in the normal flow */
@media (prefers-reduced-motion: reduce) {
  .dive > .spacer, .psd > .spacer { height: 0; }
  .stage { position: relative; }
  [data-fade] { transition: none; }
}

.method .go { justify-self: start; display: inline-flex; gap: 10px; font-size: 15px; border-bottom: 1px solid var(--rule-2); padding: 12px 0 6px; }
