@font-face { font-family: 'Pretendard'; src: url(../assets/fonts/ui.78e89a5c39.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(../assets/fonts/mono.199b7868ab.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'D2Coding'; src: url(../assets/fonts/d2.71dc154477.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'D2Coding'; src: url(../assets/fonts/d2b.fac4819b54.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Park Input'; src: url(../assets/fonts/input.deb473c576.woff2) format('woff2'); font-weight: 400; font-display: swap; }
/* HAZE division sites, shared grammar.
   One skeleton for hazepark.com, hazecanvas.com, hazesound.com and hazestory.com.
   Three fixed layout classes, never fluid.
     S  phones and small tablets, up to 1023 px, column up to 600
     M  1024 to 1439, 960 column, 12 tracks
     L  1440 and up, 1312 column, 12 tracks
   Each site's own stylesheet sets the palette, the display faces and the hero.
   Everything below is shared and must stay the same across the four. */

:root {
  /* division colors, the same on every site so the switch reads the same */
  --c-park: #ffd400;
  --c-park-on: #0a0a0a;
  --c-canvas: #ff2b14;
  --c-canvas-on: #0a0a0a;
  --c-sound: #2b3cff;
  --c-sound-on: #ffffff;
  --c-story: #ec008c;
  --c-story-on: #ffffff;

  --f-ui: 'Pretendard', system-ui, -apple-system, 'Segoe UI', 'Malgun Gothic', sans-serif;

  /* S class */
  --wrap: min(calc(100% - 32px), 600px);
  --gap: 16px;
  --hd: 44px;
  --sw: 40px;
  --header-height: calc(var(--hd) + var(--sw) + env(safe-area-inset-top, 0px) + 1px);
  --sec: 88px;
  --t-display: 46px;
  --t-h2: 34px;
  --t-h3: 22px;
  --t-lede: 17px;
  --t-body: 16px;
  --t-small: 14px;
  --t-label: 12px;
  --t-big: 56px;
}
@media (min-width: 1024px) {
  :root {
    --header-height: calc(var(--hd) + env(safe-area-inset-top, 0px) + 1px);
    --wrap: 960px;
    --gap: 24px;
    --hd: 64px;
    --sec: 120px;
    --t-display: 76px;
    --t-h2: 52px;
    --t-h3: 26px;
    --t-lede: 19px;
    --t-body: 16.5px;
    --t-small: 14.5px;
    --t-label: 12px;
    --t-big: 72px;
  }
}
@media (min-width: 1440px) {
  :root {
    --wrap: 1312px;
    --gap: 32px;
    --sec: 144px;
    --t-display: 112px;
    --t-h2: 72px;
    --t-h3: 30px;
    --t-lede: 21px;
    --t-body: 17.5px;
    --t-small: 15px;
    --t-label: 12.5px;
    --t-big: 96px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.restoring { visibility: hidden; opacity: 0; scroll-behavior: auto; }
:where(section[id], main[id], footer[id]) { scroll-margin-top: calc(var(--header-height) + 16px); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body, var(--f-ui));
  font-size: var(--t-body);
  line-height: 1.55;
  font-kerning: normal;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
.l-ko body { word-break: keep-all; overflow-wrap: normal; line-height: 1.65; }
:where(h1, h2, h3, p, dd, figcaption, .product-desc, .cn-d,
       .lay-d, .fact .fs) { text-wrap: balance; }
.run-prov { overflow-wrap: anywhere; }
/* Keep a short semantic unit together without forcing a phone-only break. */
.phrase { display: inline-block; max-width: 100%; vertical-align: top; }
.break-wide { display: none; }
@media (min-width: 1024px) { .break-wide { display: initial; } }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: var(--wrap); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

.label { font-family: var(--f-ui); font-size: var(--t-label); font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.l-en .label { text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
/* single-weight display faces must never be smeared into a fake bold */
.fd { font-synthesis: none; }

/* Dark code surfaces use the same scrollbar in every division and theme. */
:where(pre, .code, .run textarea) {
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #484844 #141414;
}
:where(pre, .code, .run textarea)::-webkit-scrollbar { width: 8px; height: 8px; }
:where(pre, .code, .run textarea)::-webkit-scrollbar-track { background: #141414; }
:where(pre, .code, .run textarea)::-webkit-scrollbar-thumb {
  background: #484844; border: 2px solid #141414; border-radius: 8px;
}
:where(pre, .code, .run textarea)::-webkit-scrollbar-thumb:hover { background: #686862; }
:where(pre, .code, .run textarea)::-webkit-scrollbar-corner { background: #141414; }
/* Engines with WebKit pseudo-elements otherwise prefer the standard properties. */
@supports selector(::-webkit-scrollbar) {
  :where(pre, .code, .run textarea) { scrollbar-width: auto; scrollbar-color: auto; }
}

:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; padding-top: env(safe-area-inset-top, 0px); padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.hd-in { display: grid; grid-template-columns: auto 1fr; grid-template-rows: var(--hd) var(--sw); align-items: center; column-gap: 12px; }
.hd-home { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-family: var(--f-ui); font-weight: 900; font-size: 17px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.hd-home { font-size: 15px; }
.hd-home { position: relative; min-height: 30px; align-items: center; }
.hd-away { font-size: 16px; line-height: 1; }
@media (hover: hover) and (pointer: fine) {
  .hd-haze { transition: filter .3s ease, opacity .3s ease; }
  .hd-away { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s ease; font-size: 26px; }
  .hd-home:hover .hd-haze, .hd-home:focus-visible .hd-haze { filter: blur(4px); opacity: .18; }
  .hd-home:hover .hd-away, .hd-home:focus-visible .hd-away { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-home .hd-haze, .hd-home .hd-away { transition: none; }
  .hd-home:hover .hd-haze, .hd-home:focus-visible .hd-haze { filter: none; opacity: 1; }
  .hd-home .hd-away { position: static; display: inline; opacity: 0; font-size: 16px; }
  .hd-home:hover .hd-away, .hd-home:focus-visible .hd-away { opacity: 1; }
}
@media (hover: none) {
  .hd-home .hd-haze { filter: none; opacity: 1; }
  .hd-home .hd-away { position: static; display: inline; opacity: 1; }
}
.hd-in { height: calc(var(--hd) + var(--sw)); }
.ctl { justify-self: end; display: flex; align-items: center; gap: 10px; }
.sw { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: var(--sw); margin-inline: -16px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .sw { margin-inline: 0; } }

.sw-i {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; height: 100%; padding: 0 6px;
  font-family: var(--f-ui); font-size: 13px; font-weight: 800; letter-spacing: .04em; line-height: 1;
  text-decoration: none; color: var(--ink);
  box-shadow: inset 0 3px 0 var(--dc);
  transition: background-color .15s, color .15s;
}
.sw-i + .sw-i { border-left: 1px solid var(--line); }
.sw-n { font-weight: 600; font-size: 10.5px; letter-spacing: .02em; color: var(--mute); font-variant-numeric: tabular-nums; }
.sw-i:hover { background: var(--dc); color: var(--dc-on); }
.sw-i:hover .sw-n { color: inherit; }
.sw-i[aria-current='page'] { background: var(--dc); color: var(--dc-on); box-shadow: none; }
.sw-i[aria-current='page'] .sw-n { color: inherit; }
.sw-park { --dc: var(--c-park); --dc-on: var(--c-park-on); }
.sw-canvas { --dc: var(--c-canvas); --dc-on: var(--c-canvas-on); }
.sw-sound { --dc: var(--c-sound); --dc-on: var(--c-sound-on); }
.sw-story { --dc: var(--c-story); --dc-on: var(--c-story-on); }

.seg { display: inline-flex; border: 1.5px solid var(--ink); height: 30px; }
.seg > * {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 0 8px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
  font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .03em; line-height: 1;
}
.seg > * + * { border-left: 1.5px solid var(--ink); }
.seg > [aria-current='true'], .seg > [aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.seg > :not([aria-current='true']):not([aria-pressed='true']):hover { background: var(--accent); color: var(--on-accent); }

@media (max-width: 380px) {
  .ctl { gap: 6px; }
  .seg > * { min-width: 30px; padding: 0 6px; }
}

@media (min-width: 1024px) {
  .hd { position: sticky; top: 0; }
  .hd-in { grid-template-columns: auto auto 1fr; grid-template-rows: var(--hd); column-gap: 28px; }
  .hd-in { height: var(--hd); }
  .hd-home { font-size: 19px; }
  .sw { grid-column: 2; grid-row: 1; width: 480px; height: 40px; border: 1px solid var(--line); margin: 0; }
  .sw-i { font-size: 13px; gap: 7px; }
  .ctl { grid-column: 3; gap: 12px; }
}
@media (min-width: 1440px) {
  .sw { width: 560px; }
  .sw-i { font-size: 14px; }
}

/* ---------- section head ---------- */
.sec { padding-block: var(--sec); }
.sh { margin-bottom: 48px; }
.sh-n { display: flex; gap: 10px; align-items: baseline; color: var(--mute); margin-bottom: 18px; }
.sh-n b { color: var(--ink); font-weight: 700; }
.h2 { font-family: var(--f-display); font-size: var(--t-h2); line-height: 1.02; font-weight: var(--w-display, 800); letter-spacing: var(--tr-display, -.02em); }
.l-ko .h2 { font-family: var(--f-display-ko, var(--f-display)); line-height: 1.12; letter-spacing: var(--tr-display-ko, -.02em); }
.h3 { font-family: var(--f-ui); font-size: var(--t-h3); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--ink-2); }
.sec-lede { margin-top: 20px; font-size: var(--t-lede); color: var(--ink-2); max-width: 34em; }
@media (min-width: 1024px) { .sh { margin-bottom: 64px; } }

/* text link with an arrow, the only link style in prose areas */
.go { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 2px solid currentColor; font-family: var(--f-ui); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.go .arr { transition: transform .2s; }
.go:hover .arr { transform: translateX(4px); }
.go.ext:hover .arr { transform: translate(3px, -3px); }

/* Shared section rhythm. Each division supplies its own material. */
.section-rule { border-top: 2px solid var(--ink); }
.work-rows article { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.work-rows .label { color: var(--mute); }
.work-rows p { grid-column: 2; color: var(--ink-2); max-width: 36em; }
.work-rows h3 { font-size: var(--t-h3); line-height: 1.25; }
.out-row { display: grid; gap: 16px; padding: 32px 0; border-top: 2px solid var(--ink); }
.out-row h3 { font-family: var(--f-ui); font-weight: 900; font-size: var(--t-h3); }
.out-row p { color: var(--ink-2); max-width: 35em; }
.out-row .go { justify-self: start; }
.connection { background: var(--ink); color: var(--paper); }
.connection .sh-n, .connection .sh-n b, .connection .sec-lede { color: inherit; }
/* Section exits sit at the right edge, under a right thumb. */
.connection .go { display: flex; width: fit-content; margin: 28px 0 0 auto; }
@media (min-width: 1024px) {
  .work-rows article { grid-template-columns: 48px 4fr 6fr; gap: var(--gap); padding: 32px 0; }
  .work-rows p { grid-column: 3; }
  .out-row { grid-template-columns: 4fr 5fr 3fr; align-items: baseline; gap: var(--gap); padding: 40px 0; }
  .out-row .go { justify-self: end; }
  .connection .h2 { max-width: 14em; }
}

/* ---------- footer ---------- */
.ft { background: #0a0a0a; color: #f2f2ef; }
.ft a { text-decoration: none; }
.ft-divs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding-top: 3px; background: #0a0a0a; }
.ft-d a {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 168px; padding: 18px 16px 16px;
  background: var(--dc); color: var(--dc-on);
}
.ft-d a:hover .ft-dom { text-decoration: underline; text-underline-offset: 3px; }
.ft-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ft-name { font-family: var(--f-ui); font-weight: 900; font-size: 22px; line-height: 1; letter-spacing: -.01em; }
.ft-name span { display: block; }
.ft-here { font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 6px; border: 1.5px solid currentColor; }
.ft-meta { display: flex; flex-direction: column; gap: 2px; font-family: var(--f-ui); font-size: 13px; font-weight: 600; }
.ft-park { --dc: var(--c-park); --dc-on: var(--c-park-on); }
.ft-canvas { --dc: var(--c-canvas); --dc-on: var(--c-canvas-on); }
.ft-sound { --dc: var(--c-sound); --dc-on: var(--c-sound-on); }
.ft-story { --dc: var(--c-story); --dc-on: var(--c-story-on); }
.ft-story .ft-meta, .ft-story .ft-here { color: #0a0a0a; }
.sw-story[aria-current='page'], .sw-story:hover { color: #0a0a0a; }
.ft-legal { display: flex; flex-direction: column; gap: 12px; padding-block: 24px 28px; font-family: var(--f-ui); font-size: 13px; color: #b9b9b4; }
.ft-copy { font-variant-numeric: tabular-nums; }
.ft-credit a { color: #f2f2ef; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .ft-divs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ft-d a { min-height: 220px; padding: 22px 22px 20px; }
  .ft-name { font-size: 26px; }
  .ft-legal { flex-direction: row; justify-content: space-between; padding-block: 28px 32px; }
}
@media (min-width: 1440px) {
  .ft-d a { min-height: 260px; padding: 26px 26px 24px; }
  .ft-name { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* HAZE PARK = code and systems.
   Palette from a code editor's selection highlight (Topaz yellow on ink).
   Display face = JetBrains Mono, Hangul in Pretendard. One motion = the
   compiler stage scan when the Topaz source runs. */

:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #2b2b29;
  --mute: #6c6c67;
  --line: #e2e2dd;
  --soft: #f2f2ee;
  --accent: var(--c-park);
  --on-accent: var(--c-park-on);
  --focus: #0a0a0a;
  --panel: #0e0e0e;
  --panel-ink: #ededea;
  --panel-mute: #8a8a84;
  --panel-line: #2a2a2a;
  --f-display: 'JetBrains Mono', 'D2Coding', ui-monospace, 'Cascadia Mono', monospace;
  --f-mono: 'JetBrains Mono', 'D2Coding', ui-monospace, 'Cascadia Mono', monospace;
  --w-display: 800;
  --tr-display: -.045em;
  --tr-display-ko: -.03em;
  --k-display: .64;
}
:root[data-theme='dark'] {
  --paper: #0a0a0a;
  --ink: #f2f2ee;
  --ink-2: #cfcfca;
  --mute: #8d8d87;
  --line: #262624;
  --soft: #151514;
  --focus: #ffd400;
  --panel: #131313;
  --panel-line: #303030;
}
:root { --k-display: .78; }
.l-ko { --k-display: .86; --f-display: 'Pretendard', sans-serif; --w-display: 900; }
@media (min-width: 1024px) {
  :root { --k-display: .64; }
  .l-ko { --k-display: .62; }
}

.h2 { font-size: calc(var(--t-h2) * .78); }
.l-ko .h2 { line-height: 1.22; font-weight: 900; }
.sh-n b { font-family: var(--f-mono); font-weight: 700; }
.fm { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.p-hero { padding-top: 36px; }
.p-hero-in { row-gap: 40px; align-items: start; }
.p-copy { grid-column: 1 / -1; min-width: 0; }
.display {
  font-family: var(--f-display); font-weight: 800;
  font-size: calc(var(--t-display) * var(--k-display)); line-height: 1.06; letter-spacing: var(--tr-display);
}
.l-ko .display { letter-spacing: var(--tr-display-ko); line-height: 1.16; }
.l-ko .display, .l-ko .h2 { font-weight: 900; }
.display span, .display em { display: block; }
.display em {
  font-style: normal; width: fit-content; margin-top: .06em;
  background: var(--accent); color: var(--on-accent);
  padding: 0 .14em; margin-left: -.14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.p-lede { margin-top: 28px; max-width: 30em; }

.run {
  grid-column: 1 / -1; min-width: 0; margin: 0;
  background: var(--panel); color: var(--panel-ink);
  border: 1px solid var(--panel-line);
  font-size: 13px;
}
.run-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--panel-line); white-space: nowrap; }
.run-file { background: var(--accent); color: #0a0a0a; padding: 4px 8px; font-weight: 700; font-size: 12.5px; }
.run-app { color: var(--panel-mute); overflow: hidden; text-overflow: ellipsis; font-family: var(--f-ui); font-size: 12.5px; }
.run-ver { margin-left: auto; color: var(--accent); font-size: 12.5px; }

.code { margin: 0; font-family: var(--f-mono); font-size: 12px; line-height: 20px; tab-size: 2; font-variant-ligatures: none; font-feature-settings: 'calt' 0, 'liga' 0; }
.run .code { padding: 14px 14px 14px 0; }
.code code { font: inherit; display: block; }
.code .row { display: flex; }
.ln { flex: none; width: 3.2em; padding-right: 1em; text-align: right; color: var(--panel-mute); -webkit-user-select: none; user-select: none; }
.lc { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-kw { color: #ffd400; }
.t-str { color: #ff9d4d; }
.t-num { color: #7fe0ff; }
.t-com { color: #7a7a74; }
.t-fn { color: #ffffff; font-weight: 700; }
.t-ty { color: #9fe89a; }
.t-op { color: #bdbdb7; }

.run-in { display: flex; flex-direction: column; gap: 8px; padding: 14px; min-width: 0; }
.run-k { color: var(--panel-mute); }

.run-st { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--panel-line); }
.run-st li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; padding: 10px 14px; min-width: 0; transition: background-color .12s, color .12s; }
.run-st li + li { border-left: 1px solid var(--panel-line); }
.st-n { color: var(--panel-mute); font-size: 11px; }
.st-k { font-family: var(--f-ui); font-weight: 700; font-size: 13px; }
.st-v { width: 100%; font-size: 13px; color: #ffffff; }
.run-st li.on { background: var(--accent); color: #0a0a0a; }
.run-st li.on .st-n, .run-st li.on .st-v { color: #0a0a0a; }
.run-cap { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; border-top: 1px solid var(--panel-line); color: var(--panel-mute); font-family: var(--f-ui); font-size: 12.5px; }
.run-state { color: var(--panel-ink); min-height: 2lh; }
.run-prov { font-size: 11.5px; }
.run-prov a { text-underline-offset: 3px; }
.run-in textarea { width: 100%; min-height: 60px; resize: vertical; border: 0; border-bottom: 2px solid var(--accent); border-radius: 0; background: transparent; color: #fff; padding: 4px 0 8px; font: 14px/1.6 'Park Input', sans-serif; }
.run-in textarea:focus-visible { outline-color: var(--accent); }
.type-width { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 0 14px 14px; }
.type-width output { color: var(--accent); }
.type-width input { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: #ffd400; cursor: ew-resize; height: 24px; }
.type-ticks { display: flex; grid-column: 1 / -1; justify-content: space-between; color: #aaa; font-size: 10px; }
.type-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--panel-line); }
.type-plan { padding: 12px 10px; min-width: 0; }
.type-plan + .type-plan { border-left: 1px solid var(--panel-line); }
.type-plan h3 { font: 700 12px/1.5 var(--f-ui); margin-bottom: 14px; color: #ffd400; }
.type-plan [data-lines] { min-height: 108px; }
.type-lines { max-width: 100%; height: auto; overflow: visible; border-right: 1px dashed #888; }
.type-lines text { font-family: 'Park Input', sans-serif; font-size: 10px; fill: #f5f5ef; }
.type-stats { font-size: 10px; color: #bdbdb7; margin-top: 14px; overflow-wrap: anywhere; }
.type-rule { padding: 10px 14px 0; color: #aaa; font-size: 11px; }
.type-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 10px; padding: 12px 14px; }
.type-start { background: #ffd400; color: #0a0a0a; border: 0; min-height: 36px; padding: 6px 10px; font-weight: 800; cursor: pointer; }
/* Runtime completion must not change the hero height after a language handoff. */
.type-start[hidden] { display: block !important; visibility: hidden; }
.type-source { width: 100%; }
.type-source summary { cursor: pointer; padding: 8px 0; font-weight: 700; }
.type-source .code { max-height: 300px; overflow: auto; border-top: 1px solid #444; }
.source-download { display: inline-block; padding: 8px 0; color: #ffd400; }
.run { --focus: #ffd400; }
.run[aria-busy='true'] .type-results { opacity: .55; }
.run .t-com { color: #aaa9a2; }
.lng-code .t-com { color: #aaa9a2; }
.run .run-app, .run .run-k, .run .run-cap, .run .ln, .run .st-n { color: #aaa9a2; }

/* facts band */
.p-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; border-top: 2px solid var(--ink); }
.fact { padding: 16px 12px 22px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fact:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
.fact dt { color: var(--mute); }
.fact dd { margin-top: 10px; }
.fv { display: inline-block; font-family: var(--f-display); font-weight: 800; font-size: calc(var(--t-big) * .8); line-height: 1; letter-spacing: -.05em; }
.fact-y .fv { background: var(--accent); color: var(--on-accent); padding: .04em .1em; margin-left: -.1em; }
.fs { display: block; margin-top: 10px; color: var(--mute); font-size: var(--t-small); }

/* ---------- 01 languages ---------- */
.p-langs { row-gap: var(--gap); }
.lng { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; padding: 24px 18px 22px; min-width: 0; }
.lng-topaz { background: var(--accent); color: #0a0a0a; }
.lng-lispex { background: var(--ink); color: var(--paper); }
.lng-kind { opacity: .75; }
.lng-name { font-family: var(--f-display); font-weight: 800; font-size: calc(var(--t-h2) * .9); line-height: 1; letter-spacing: -.04em; }
.lng-body { font-size: var(--t-lede); line-height: 1.5; max-width: 26em; }
.lng-code { position: relative; padding-bottom: 64px; margin-top: 6px; background: #0a0a0a; color: #ededea; border: 1px solid #2a2a2a; }
.lng-lispex .lng-code { background: #141414; }
:root[data-theme='dark'] .lng-lispex .lng-code { background: #0a0a0a; }
.lng-file { padding: 8px 14px; border-bottom: 1px solid #2a2a2a; color: #8a8a84; font-size: 12px; }
.lng-code .code { padding: 12px 14px 14px 0; font-size: 13px; line-height: 21px; }
.lng-code .ln { color: #aaa9a2; }
.lng-code .lng-output { padding-left: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lng-code .go { position: absolute; right: 16px; bottom: 12px; margin: 0; color: #ededea; min-height: 44px; }

/* ---------- 02 product wall ---------- */
.p-reg { background: var(--soft); }
.product-wall { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 16px; }
.product { min-width: 0; }
.product-link { position: relative; display: block; height: 100%; text-decoration: none; }
/* Same panel heights and inner box as teaser /park. */
.product-stage { position: relative; height: 160px; background: #000; overflow: hidden; }
.product-logo { position: absolute; inset: 10px; display: grid; place-items: center; }
/* Keep the whole teaser inner frame in proportion when a wall tile is
   narrower. Otherwise square canvases stay tall while wordmarks shrink.
   Reference frames measured at the site's S/M/L widths: 306x140,
   258x148 and 322x148. Wider tiles stop at that reference size. */
.product-logo-frame { position: relative; width: 100%; max-width: 306px; aspect-ratio: 306 / 140; }
.product-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transform: scale(var(--logo-scale)); }
.product-logo-light { display: none; }
:root[data-theme='dark'] .product-stage { background: #fff; }
:root[data-theme='dark'] .product-logo-dark { display: none; }
:root[data-theme='dark'] .product-logo-light { display: block; }
.product-logo .pixel-art { image-rendering: pixelated; }
/* BEGIN teaser optical scales (tools/sync-park-logos.py) */
.product[data-product='studio-haze'] { --logo-scale: 1.18; }
.product[data-product='topaz'] { --logo-scale: 1.12; }
.product[data-product='lispex'] { --logo-scale: 1.1; }
.product[data-product='atlas'] { --logo-scale: 1.1; }
.product[data-product='lena'] { --logo-scale: 1.14; }
.product[data-product='kernel'] { --logo-scale: 1.16; }
.product[data-product='callie'] { --logo-scale: 1.12; }
.product[data-product='slow-monster'] { --logo-scale: 1.14; }
.product[data-product='jeniapp'] { --logo-scale: 1.18; }
.product[data-product='kakao'] { --logo-scale: 1.14; }
.product[data-product='4lab'] { --logo-scale: 1.1; }
.product[data-product='compiler'] { --logo-scale: 1; }
.product[data-product='sicp'] { --logo-scale: 1.1; }
.product[data-product='codeimage'] { --logo-scale: 1.1; }
/* END teaser optical scales */
@media (min-width: 640px) {
  .product-stage { height: 176px; }
  .product-logo { inset: 14px; }
  .product-logo-frame { max-width: 322px; aspect-ratio: 322 / 148; }
}
@media (min-width: 1024px) {
  .product-logo-frame { max-width: 258px; aspect-ratio: 258 / 148; }
}
@media (min-width: 1440px) {
  .product-logo-frame { max-width: 322px; aspect-ratio: 322 / 148; }
}
.product-caption { position: relative; padding: 14px 20px 0 0; }
.product-caption h3 { font-family: var(--f-ui); font-size: 18px; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; }
.product-caption p { margin-top: 5px; color: var(--mute); font-size: 12px; }
.product-away { position: absolute; right: 0; top: 14px; }
.product-desc { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .product-caption { height: 88px; }
  .product-desc { position: absolute; inset: auto 0 0; height: 88px; display: flex; align-items: center; margin: 0; padding: 12px; background: #0a0a0a; color: #f2f2ee; opacity: 0; visibility: hidden; z-index: 1; pointer-events: none; }
  .product-link:hover .product-desc, .product-link:focus-visible .product-desc { opacity: 1; visibility: visible; }
}
@media (min-width: 1024px) {
  .product-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
  .product-caption h3 { font-size: 21px; }
  .product-desc { font-size: 12px; }
}

/* ---------- 03 structure ---------- */
.stk { row-gap: 48px; }
.stk-layers { grid-column: 1 / -1; display: flex; flex-direction: column; }
.lay {
  display: grid; grid-template-columns: 2.8em minmax(0, 1fr); grid-template-areas: 'n t' 'n b' 'n d';
  row-gap: 4px; padding: 16px 16px 18px 14px; border: 2px solid var(--ink); margin-top: -2px; background: var(--paper);
}
.lay-n { grid-area: n; font-weight: 700; font-size: 13px; color: var(--mute); padding-top: 4px; }
.lay-t { grid-area: t; font-family: var(--f-display); font-weight: 800; font-size: var(--t-h3); letter-spacing: -.03em; line-height: 1.2; }
.lay-b { grid-area: b; color: var(--mute); }
.lay-d { grid-area: d; color: var(--ink-2); margin-top: 4px; }
.lay-2 { background: var(--accent); color: var(--on-accent); border-color: var(--ink); }
.lay-2 .lay-n, .lay-2 .lay-b, .lay-2 .lay-d { color: var(--on-accent); }
.lay-4 { margin-left: 9%; }
.lay-3 { margin-left: 6%; }
.lay-2 { margin-left: 3%; }
.stk-p { grid-column: 1 / -1; }
.stk-pk { color: var(--mute); margin-bottom: 14px; }
.stk-p li { display: grid; grid-template-columns: 2em 1fr; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 700; font-size: var(--t-lede); line-height: 1.4; }
.stk-p li span { color: var(--mute); font-weight: 700; }

/* ---------- 04 connections ---------- */
.cn { display: flex; flex-direction: column; gap: 2px; }
.cn-i a {
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding: 22px 18px;
  background: var(--dc); color: var(--dc-on); text-decoration: none;
}
.cn-story { --dc: var(--c-story); --dc-on: var(--c-story-on); }
.cn-sound { --dc: var(--c-sound); --dc-on: var(--c-sound-on); }
.cn-canvas { --dc: var(--c-canvas); --dc-on: var(--c-canvas-on); }
.cn-name { font-family: var(--f-ui); font-weight: 900; font-size: var(--t-h3); line-height: 1.1; letter-spacing: -.01em; }
.cn-name span { opacity: .7; }
.cn-story .cn-name span { opacity: 1; }
.cn-story .cn-d, .cn-story .cn-dom { color: #0a0a0a; }
.cn-d { font-size: var(--t-lede); font-weight: 600; line-height: 1.4; }
.cn-dom { display: inline-flex; gap: 10px; font-family: var(--f-mono); font-size: 13px; font-weight: 700; }
.cn-i a:hover .arr { transform: translateX(4px); }
.cn-dom .arr { transition: transform .2s; }
.inf { margin-top: 64px; row-gap: 20px; }
.inf-k { grid-column: 1 / -1; color: var(--mute); }
.inf-l { grid-column: 1 / -1; display: grid; gap: 24px; }
.inf-l dt { padding-top: 12px; border-top: 2px solid var(--ink); font-weight: 800; font-size: 18px; }
.inf-l dd { margin-top: 6px; color: var(--ink-2); }

/* ---------- close ---------- */
.p-close { padding-block: calc(var(--sec) * .7) calc(var(--sec) * .9); border-top: 2px solid var(--ink); }
.p-close-l { font-family: var(--f-display); font-weight: 800; font-size: calc(var(--t-h2) * .78); line-height: 1.36; letter-spacing: -.035em; max-width: 19em; }
.p-close-t { background: var(--accent); color: var(--on-accent); padding: 0 .12em; margin-left: -.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.caret { display: inline-block; width: .52em; height: .92em; margin-left: .16em; vertical-align: -.1em; background: var(--ink); }

/* ---------- M and L ---------- */
@media (min-width: 1024px) {
  .p-hero { padding-top: 56px; }
  .p-copy { grid-column: 1 / 7; }
  .run { grid-column: 7 / 13; }
  .code { font-size: 12.5px; }
  .p-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 72px; }
  .fact { padding: 18px 18px 24px; border-bottom: 0; }
  .fact:first-child { padding-left: 0; }
  .fact + .fact { border-left: 1px solid var(--line); }
  .fact:nth-child(even) { padding-left: 18px; }

  .lng { padding: 36px 32px 30px; gap: 20px; }
  .lng-topaz { grid-column: 1 / 7; }
  .lng-lispex { grid-column: 7 / 13; }


  .stk-layers { grid-column: 1 / 9; }
  .lay { grid-template-columns: 3.4em minmax(0, 14em) minmax(0, 1fr); grid-template-areas: 'n t d' 'n b d'; align-items: baseline; column-gap: 16px; padding: 22px 24px 22px 18px; }
  .lay-d { margin-top: 0; align-self: center; }
  .stk-p { grid-column: 9 / 13; }

  .cn-i a { grid-template-columns: 4fr 6fr 2.4fr; align-items: center; column-gap: var(--gap); padding: 30px 32px; }
  .cn-dom { justify-self: end; }
  .inf-k { grid-column: 1 / 4; padding-top: 14px; }
  .inf-l { grid-column: 4 / 13; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
}
@media (min-width: 1440px) {
  .p-hero { padding-top: 64px; }
  .product-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .code { font-size: 13px; line-height: 21px; }
  .lay { grid-template-columns: 3.6em minmax(0, 16em) minmax(0, 1fr); }
}
