@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400..800&display=swap');
/* BUKCS 2026-10 리모델링 · 밝음/어두움 교차 · 로고의 파랑→청록 · 내용·기능은 그대로, 디자인만 */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=IBM+Plex+Sans+KR:wght@400;500;600;700&display=swap');

@property --flow { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --paper: oklch(98.2% 0.004 230);
  --paper-2: oklch(95.4% 0.008 230);
  --paper-3: oklch(91% 0.012 230);
  --ink: oklch(22% 0.035 245);
  --ink-2: oklch(40% 0.03 245);
  --ink-3: oklch(55% 0.02 245);
  --night: oklch(19% 0.035 240);
  --night-2: oklch(24% 0.04 238);
  --night-3: oklch(31% 0.04 236);
  --on-night: oklch(96% 0.01 220);
  --on-night-2: oklch(78% 0.02 225);
  --azure: oklch(57% 0.13 245);
  --aqua: oklch(72% 0.11 195);
  --glow: oklch(86% 0.09 200);
  --line: oklch(88% 0.012 230);
  --line-night: oklch(36% 0.035 236);
  --focus: oklch(62% 0.17 250);
  --brand-grad: linear-gradient(100deg, var(--azure), var(--aqua));

  --font-display: 'Bricolage Grotesque', 'IBM Plex Sans KR', 'Noto Sans KR', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans KR', 'Noto Sans KR', system-ui, sans-serif;

  --text-xs: 0.78rem; --text-sm: 0.9rem; --text-md: 1.02rem; --text-lg: 1.2rem; --text-xl: 1.5rem;
  --text-2xl: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  --text-3xl: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
  --text-display: clamp(2.7rem, 1.2rem + 6.2vw, 6.6rem);

  --space-2xs: 0.25rem; --space-xs: 0.5rem; --space-sm: 0.75rem; --space-md: 1rem; --space-lg: 1.5rem;
  --space-xl: 2rem; --space-2xl: 3rem; --space-3xl: 4.5rem; --space-4xl: clamp(4.5rem, 3rem + 6vw, 8.5rem);

  --radius-sm: 10px; --radius-md: 18px; --radius-lg: 28px; --radius-pill: 999px;
  --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 160ms; --dur: 320ms; --dur-slow: 900ms;
  --shadow-lift: 0 24px 60px -28px oklch(25% 0.06 245 / .45);
  --header-h: 72px;
}

/* ── 바탕 ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-md); line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; word-break: keep-all;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--aqua); color: var(--night); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.02em; line-height: 1.12; overflow-wrap: anywhere; min-width: 0; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); line-height: 1.3; }
p { margin: 0; }
.container { width: min(1240px, 100% - 2 * clamp(20px, 4vw, 48px)); margin-inline: auto; }
.tiny { font-size: var(--text-xs); color: var(--ink-3); line-height: 1.6; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

.gradient-text {
  background: linear-gradient(100deg, var(--azure) 0%, var(--aqua) 45%, var(--azure) 90%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s var(--ease-in-out) infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* 작은 꼬리표 */
.kicker, .label, .phase > span:first-child, .loop-step > span {
  display: inline-flex; align-items: center; gap: .55em; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .04em; color: var(--azure);
}
.kicker::before, .label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-grad); flex: none; }
.kicker { margin-bottom: var(--space-lg); }

/* ── 진행 막대 · 머리 ─────────────────── */
.top-progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; z-index: 60; background: var(--brand-grad); }
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: oklch(98.2% 0.004 230 / .72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid oklch(88% 0.012 230 / .7); transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.topbar.on-dark { background: oklch(19% 0.035 240 / .74); border-bottom-color: oklch(36% 0.035 236 / .6); color: var(--on-night); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-xl); }
.brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; flex: none; }
.brand img { width: 124px; height: auto; }
.brand small { font-size: .75rem; line-height: 1.25; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.topbar.on-dark .brand small { color: var(--on-night-2); }
.navigation { display: flex; gap: var(--space-2xs); margin-left: auto; }
.navigation a { position: relative; padding: 10px 14px; text-decoration: none; font-size: var(--text-sm); font-weight: 500; white-space: nowrap; border-radius: var(--radius-pill); transition: background var(--dur-fast); }
.navigation a:hover { background: oklch(57% 0.13 245 / .09); }
.topbar.on-dark .navigation a:hover { background: oklch(96% 0.01 220 / .08); }
.header-actions { display: flex; align-items: center; gap: var(--space-sm); }
.language { background: none; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 14px; font-size: var(--text-xs); cursor: pointer; min-height: 40px; white-space: nowrap; }
.topbar.on-dark .language { border-color: var(--line-night); }
.language b { color: var(--azure); }
.topbar.on-dark .language b { color: var(--aqua); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer; }

/* ── 버튼 ─────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6em; min-height: 46px; padding: 0 22px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: var(--text-sm); text-decoration: none; white-space: nowrap; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur) var(--ease-out);
}
.btn:hover { border-color: var(--azure); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { border: 0; color: #fff; background: var(--ink); box-shadow: 0 10px 30px -14px oklch(57% 0.13 245 / .8); }
.btn.primary::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--brand-grad); opacity: 0; transition: opacity var(--dur) var(--ease-out); }
.btn.primary:hover::before { opacity: 1; }
.btn .arrow, .btn span:last-child { transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow, .btn:hover span:last-child { transform: translate(2px, -2px); }
.topbar .btn { min-height: 40px; }
.topbar.on-dark .btn { background: transparent; color: var(--on-night); border-color: var(--line-night); }
.text-link { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1.5px no-repeat; transition: background-size var(--dur) var(--ease-out); }
.text-link:hover { background-size: 100% 1.5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }

/* ── 구간 공통 · 밝음/어두움 교차 ───────── */
.section { padding-block: var(--space-4xl); position: relative; }
.section-header { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-3xl); }
.section-header p { color: var(--ink-2); max-width: 46ch; }
#workstoa, #method, .contact, footer { background: var(--night); color: var(--on-night); }
#workstoa .kicker, #method .kicker, .contact .kicker, #method .loop-step > span { color: var(--aqua); }
#workstoa p, #method p, .contact p { color: var(--on-night-2); }
#workstoa .tiny, #method .tiny, .contact .tiny, footer .tiny { color: oklch(70% 0.02 225); }
#products { background: var(--paper-2); }
#workstoa, #method { border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: calc(-1 * var(--radius-lg)); }
#technology, #journey { border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: calc(-1 * var(--radius-lg)); background: var(--paper); }
#products { border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: calc(-1 * var(--radius-lg)); }
.contact { border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: calc(-1 * var(--radius-lg)); }

/* 나타나기 (app.js 가 .visible 를 붙인다) */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js-reveal .reveal.visible { opacity: 1; transform: none; }

/* ── 첫 화면 ─────────────────────────── */
.hero { position: relative; padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--space-3xl); overflow: clip; }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto auto; width: 70vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, oklch(72% 0.11 195 / .18), transparent 70%); pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.announcement {
  display: inline-flex; align-items: center; gap: .7em; padding: 6px 8px 6px 6px; margin-bottom: var(--space-xl);
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper); text-decoration: none; font-size: var(--text-xs); font-weight: 600;
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.announcement:hover { border-color: var(--azure); transform: translateY(-1px); }
.announcement span:first-child { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--ink); color: #fff; letter-spacing: .04em; }
.announcement span:last-child { color: var(--azure); }
.hero h1 { font-size: var(--text-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
.hero-description { margin-top: var(--space-xl); font-size: var(--text-lg); color: var(--ink-2); max-width: 40ch; }
.hero .actions { margin-top: var(--space-2xl); }
.hero-footnote { margin-top: var(--space-xl); font-size: var(--text-xs); letter-spacing: .06em; color: var(--ink-3); }

.hero-art {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: var(--radius-lg); background: radial-gradient(120% 90% at 70% 10%, var(--night-3), var(--night) 60%);
  box-shadow: var(--shadow-lift); overflow: hidden; isolation: isolate;
  rotate: var(--tilt-x, 0deg); transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform 600ms var(--ease-out);
}
.hero-art::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--flow), transparent 0 60%, var(--aqua) 75%, var(--azure) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit-border 6s linear infinite;
}
@keyframes orbit-border { to { --flow: 360deg; } }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.core-floating { position: absolute; left: 50%; top: 50%; translate: -50% -50%; text-align: center; color: var(--on-night); pointer-events: none; display: grid; gap: 2px; }
.core-floating span { font-size: .75rem; letter-spacing: .14em; color: var(--on-night-2); }
.core-floating b { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em; }
.art-meta { position: absolute; inset: auto 18px 16px; display: flex; justify-content: space-between; font-size: .75rem; letter-spacing: .1em; color: var(--on-night-2); }

.hero-proof {
  margin-top: var(--space-3xl); display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); padding-top: var(--space-xl); gap: var(--space-xl);
}
.hero-proof > div { display: grid; align-content: start; gap: var(--space-2xs); }
.proof-description { font-weight: 600; line-height: 1.5; }
.hero-proof strong { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; line-height: 1; letter-spacing: -0.03em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-proof small { color: var(--ink-2); font-size: var(--text-sm); }

/* 첫 화면 한 번의 등장 */
@media (prefers-reduced-motion: no-preference) {
  .hero .announcement, .hero h1, .hero-description, .hero .actions, .hero-footnote, .hero-art, .hero-proof > div {
    animation: rise var(--dur-slow) var(--ease-out) both;
  }
  .hero h1 { animation-delay: 80ms; } .hero-description { animation-delay: 220ms; } .hero .actions { animation-delay: 320ms; }
  .hero-footnote { animation-delay: 420ms; } .hero-art { animation: rise-art 1200ms var(--ease-out) 150ms both; }
  .hero-proof > div:nth-child(1) { animation-delay: 500ms; } .hero-proof > div:nth-child(2) { animation-delay: 580ms; }
  .hero-proof > div:nth-child(3) { animation-delay: 660ms; } .hero-proof > div:nth-child(4) { animation-delay: 740ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes rise-art { from { opacity: 0; transform: perspective(1200px) translateY(40px) rotateX(10deg) scale(.96); } to { opacity: 1; } }

/* ── 흐르는 띠 (제품 이름) ─────────────── */
.marquee { background: var(--night); color: var(--on-night); overflow: hidden; padding-block: 22px; border-block: 1px solid var(--line-night); }
.marquee-track { display: flex; width: max-content; gap: 2.5rem; font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; animation: marquee 32s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; }
.marquee-track span::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-grad); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── 비전 ─────────────────────────────── */
.vision-intro { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; line-height: 1.32; letter-spacing: -0.025em; max-width: 24ch; }
.vision-intro > span:last-of-type:not(.gradient-text) { display: inline-block; margin-top: var(--space-md); color: var(--ink-3); font-size: .62em; font-weight: 600; letter-spacing: -0.01em; }
.operating-principles { margin-top: var(--space-3xl); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.principle { padding: var(--space-xl); border-radius: var(--radius-md); background: var(--paper-2); border: 1px solid var(--line); transition: translate var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur); }
.principle:hover { translate: 0 -4px; box-shadow: var(--shadow-lift); background: var(--paper); }
.section-number { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: var(--text-xs); font-weight: 700; margin-bottom: var(--space-lg); }
.principle h3 { margin-bottom: var(--space-sm); }
.principle p { color: var(--ink-2); font-size: var(--text-sm); }
.research-structure { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.research-structure > div { padding: var(--space-xl); border-radius: var(--radius-md); border: 1px dashed var(--paper-3); display: grid; gap: var(--space-xs); }
.research-structure span { font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; color: var(--azure); }
.research-structure strong { font-size: var(--text-lg); }
.research-structure p { color: var(--ink-2); font-size: var(--text-sm); }

/* ── 워크스토아 (어두운 판) ───────────── */
#workstoa { overflow: clip; }
#workstoa::before { content: ''; position: absolute; inset: 0 0 auto; height: 70%; background: radial-gradient(60% 60% at 80% 0%, oklch(57% 0.13 245 / .28), transparent 70%); pointer-events: none; }
.flagship-shell { position: relative; }
.flagship-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-3xl); align-items: start; }
.product-brand { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-lg); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; }
.w-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: oklch(96% 0.01 220 / .07); border: 1px solid var(--line-night); }
.w-icon img { width: 32px; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-pill); font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .06em; border: 1px solid currentColor; opacity: .85; }
#workstoa .badge { color: var(--aqua); }
#workstoa h2 { font-size: var(--text-3xl); margin-bottom: var(--space-lg); }
#workstoa .flagship-top p { max-width: 52ch; }
#workstoa .actions { margin-top: var(--space-xl); }
#workstoa .btn:not(.primary) { background: transparent; color: var(--on-night); border-color: var(--line-night); }
#workstoa .btn.primary { background: var(--paper); color: var(--night); }
#workstoa .btn.primary:hover { color: #fff; }
.flagship-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.flagship-values > div { padding: var(--space-lg); border-radius: var(--radius-md); background: oklch(96% 0.01 220 / .04); border: 1px solid var(--line-night); transition: background var(--dur), border-color var(--dur); }
.flagship-values > div:hover { background: oklch(96% 0.01 220 / .07); border-color: oklch(72% 0.11 195 / .45); }
.flagship-values strong { display: block; color: var(--on-night); margin-bottom: var(--space-xs); }
.flagship-values p { font-size: var(--text-sm); }
.screen-tabs { margin-top: var(--space-3xl); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.tab-buttons { display: inline-flex; padding: 5px; gap: 4px; border-radius: var(--radius-pill); background: oklch(96% 0.01 220 / .06); border: 1px solid var(--line-night); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.screen-tab { min-height: 42px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--on-night-2); font-size: var(--text-sm); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background var(--dur), color var(--dur); }
.screen-tab:hover { color: var(--on-night); }
.screen-tab.active { background: var(--paper); color: var(--night); }
.screen-counter { font-size: var(--text-xs); letter-spacing: .08em; color: var(--on-night-2); }
.screen-window {
  margin-top: var(--space-lg); border-radius: var(--radius-lg); overflow: hidden; background: var(--night-2);
  border: 1px solid var(--line-night); box-shadow: 0 50px 120px -40px oklch(10% 0.04 240 / .9);
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 600ms var(--ease-out);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 18px; border-bottom: 1px solid var(--line-night); font-size: .75rem; letter-spacing: .1em; color: var(--on-night-2); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-3); }
.window-bar span { margin-left: var(--space-sm); }
.screen-button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.screen-button img { width: 100%; height: auto; transition: transform 900ms var(--ease-out); }
.screen-button:hover img { transform: scale(1.015); }
.screen-caption { margin-top: var(--space-md); font-size: var(--text-xs); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .screen-window { animation: screen-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes screen-in { from { opacity: .3; scale: .9; translate: 0 60px; } to { opacity: 1; scale: 1; translate: 0 0; } }

/* ── 엔지니어링 (밝은 판) ─────────────── */
.engine-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-3xl); align-items: center; }
.core-diagram { container-type: inline-size; position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.core-diagram::before, .core-diagram::after { content: ''; position: absolute; border-radius: 50%; border: 1px dashed var(--paper-3); }
.core-diagram::before { inset: 4%; }
.core-diagram::after { inset: 22%; border-style: solid; border-color: var(--line); }
.core-disc {
  position: relative; z-index: 1; width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 4px;
  background: radial-gradient(circle at 30% 25%, var(--night-3), var(--night)); color: var(--on-night); box-shadow: 0 30px 70px -30px oklch(57% 0.13 245 / .8);
}
.core-disc::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid transparent; background: conic-gradient(from var(--flow), var(--aqua), transparent 40%, var(--azure) 70%, transparent) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit-border 5s linear infinite; }
.core-disc span { font-size: .75rem; letter-spacing: .14em; color: var(--on-night-2); }
.core-disc strong { font-family: var(--font-display); font-size: clamp(1.1rem, .8rem + 1vw, 1.6rem); line-height: 1.1; }
.orbit-tag {
  position: absolute; left: 50%; top: 50%; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--paper); border: 1px solid var(--line);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; white-space: nowrap; box-shadow: 0 8px 20px -12px oklch(25% 0.06 245 / .4);
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg + var(--spin, 0deg))) translateY(calc(-1 * var(--orbit-r, 41cqw))) rotate(calc(-1 * (var(--i) * 60deg + var(--spin, 0deg))));
}
.orbit-tag:nth-of-type(1) { --i: 0; } .orbit-tag:nth-of-type(2) { --i: 1; } .orbit-tag:nth-of-type(3) { --i: 2; }
.orbit-tag:nth-of-type(4) { --i: 3; } .orbit-tag:nth-of-type(5) { --i: 4; } .orbit-tag:nth-of-type(6) { --i: 5; }
.orbit-tag { translate: 0 0; }
@property --spin { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) { .core-diagram { animation: spin 60s linear infinite; } }
@keyframes spin { to { --spin: 360deg; } }
.core-diagram .orbit-tag { top: 50%; left: 50%; margin: 0; }
.engine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.engine-button {
  display: flex; align-items: center; gap: var(--space-md); text-align: left; padding: var(--space-md) var(--space-lg); min-height: 64px; cursor: pointer;
  border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--paper); transition: border-color var(--dur-fast), background var(--dur), translate var(--dur-fast) var(--ease-out);
}
.engine-button:hover { border-color: var(--azure); translate: 0 -2px; }
.engine-button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.engine-num { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); color: var(--azure); }
.engine-button.active .engine-num { color: var(--aqua); }
.engine-button strong { display: block; font-size: var(--text-sm); }
.engine-button small { display: block; font-size: var(--text-xs); color: var(--ink-3); }
.engine-button.active small { color: oklch(85% 0.02 225); }
.engine-detail { margin-top: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-md); background: var(--paper-2); border: 1px solid var(--line); display: grid; gap: var(--space-sm); min-height: 180px; }
.engine-detail p { color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) { .engine-detail > * { animation: rise 500ms var(--ease-out) both; } }
.routing-strip { margin-top: var(--space-3xl); display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; padding: var(--space-lg) var(--space-xl); border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); }
.routing-options { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.routing-options span { padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid oklch(96% 0.01 220 / .25); font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; }

/* ── 제품 (크기가 다른 칸) ───────────── */
.product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-lg); }
.product-card {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper);
  border: 1px solid var(--line); grid-column: span 2; transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
}
.product-card:nth-child(4) { grid-column: span 3; background: var(--ink); color: var(--paper); }
.product-card.infrastructure { grid-column: span 3; }
.product-card:hover { box-shadow: var(--shadow-lift); border-color: oklch(57% 0.13 245 / .4); }
.product-copy { padding: var(--space-xl) var(--space-xl) var(--space-lg); display: grid; gap: var(--space-xs); align-content: start; }
.product-copy h3 { font-size: var(--text-2xl); }
.local-name { font-weight: 600; color: var(--azure); font-size: var(--text-sm); }
.product-copy p { color: var(--ink-2); font-size: var(--text-sm); }
.product-card:nth-child(4) .product-copy p { color: oklch(82% 0.02 225); }
.product-card:nth-child(4) .label, .product-card:nth-child(4) .local-name { color: var(--aqua); }
.product-copy button {
  justify-self: start; margin-top: var(--space-sm); display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 18px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: var(--text-sm); cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.product-copy button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.product-card:nth-child(4) .product-copy button { border-color: oklch(96% 0.01 220 / .3); }
.product-card:nth-child(4) .product-copy button:hover { background: var(--paper); color: var(--ink); }
.product-visual { position: relative; height: 270px; display: grid; place-items: start center; padding: var(--space-lg) var(--space-xl) 0; background: linear-gradient(180deg, transparent, oklch(72% 0.11 195 / .14)); overflow: hidden; }
.product-visual img { width: min(100%, 250px); border-radius: 16px 16px 0 0; box-shadow: 0 20px 50px -24px oklch(25% 0.06 245 / .6); transform: translateY(18px) translateZ(30px); transition: transform 700ms var(--ease-out); }
.product-card:hover .product-visual img { transform: translateY(0) translateZ(30px); }
.product-card:nth-child(4) .product-visual { background: radial-gradient(60% 80% at 50% 100%, oklch(57% 0.13 245 / .45), transparent 70%); place-items: center; padding-block: var(--space-xl); }
.product-card:nth-child(4) .product-visual img { width: 120px; box-shadow: none; border-radius: 0; transform: none; }
@media (prefers-reduced-motion: no-preference) { .product-card:nth-child(4) .product-visual div { animation: float 6s var(--ease-in-out) infinite alternate; } }
@keyframes float { from { transform: translateY(-6px) rotate(-3deg); } to { transform: translateY(8px) rotate(3deg); } }
.infra-visual { padding: 0 var(--space-xl) var(--space-xl); display: grid; align-items: end; }
.infra-console { border-radius: var(--radius-md); background: var(--night); color: var(--on-night); padding: var(--space-lg); display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.console-heading { display: flex; justify-content: space-between; font-size: .75rem; letter-spacing: .1em; color: var(--on-night-2); padding-bottom: var(--space-xs); border-bottom: 1px solid var(--line-night); }
.infra-row { display: flex; justify-content: space-between; gap: var(--space-md); padding: 8px 0; border-bottom: 1px dashed var(--line-night); }
.infra-row span:last-child { color: var(--aqua); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.infra-note { font-size: .75rem; color: var(--on-night-2); padding-top: var(--space-2xs); }
#products > .container > .tiny { margin-top: var(--space-lg); }
.adjacent { margin-top: var(--space-3xl); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-2xl); align-items: start; padding: var(--space-2xl); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.adjacent h3 { font-size: var(--text-2xl); margin: var(--space-sm) 0; }
.adjacent > div > p { color: var(--ink-2); font-size: var(--text-sm); }
.adjacent-links { display: grid; gap: var(--space-xs); }
.adjacent-link { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); border: 1px solid var(--line); text-decoration: none; transition: border-color var(--dur-fast), background var(--dur); flex-wrap: wrap; }
a.adjacent-link:hover { border-color: var(--azure); background: var(--paper-2); }
.adjacent-link strong { display: block; }
.adjacent-link small { color: var(--ink-3); font-size: var(--text-xs); }
.adjacent-link .actions { gap: var(--space-md); }
.adjacent-link .actions a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: var(--text-sm); text-decoration: none; color: var(--azure); }

/* ── 방법 (어두운 판 · 스크롤에 선이 그려짐) ── */
.loop-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-3xl); align-items: start; }
.loop-heading { position: sticky; top: calc(var(--header-h) + var(--space-2xl)); }
.loop-heading h2 { margin-bottom: var(--space-lg); }
.loop-heading p { max-width: 44ch; }
.loop-heading .tiny { margin-top: var(--space-md); }
.loop-steps { position: relative; display: grid; gap: var(--space-md); padding-left: 44px; }
.loop-steps::before, .loop-steps::after { content: ''; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; }
.loop-steps::before { background: var(--line-night); }
.loop-steps::after { background: linear-gradient(var(--aqua), var(--azure)); transform-origin: top; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .loop-steps::after { animation: draw linear both; animation-timeline: view(); animation-range: entry 30% exit 40%; }
    .loop-step { animation: step-light linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  }
}
@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes step-light { from { opacity: .35; translate: 16px 0; } to { opacity: 1; translate: 0 0; } }
.loop-step { position: relative; padding: var(--space-lg) var(--space-xl); border-radius: var(--radius-md); background: oklch(96% 0.01 220 / .04); border: 1px solid var(--line-night); }
.loop-step::before { content: ''; position: absolute; left: -38px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--night); border: 2px solid var(--aqua); box-shadow: 0 0 0 5px oklch(72% 0.11 195 / .15); }
.loop-step h3 { margin: var(--space-xs) 0 var(--space-2xs); color: var(--on-night); }
.loop-step p { font-size: var(--text-sm); }
.feasibility { margin-top: var(--space-3xl); display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-night); }
.feasibility > div { padding: var(--space-xl); display: grid; gap: var(--space-xs); align-content: start; }
.feasibility > div + div { border-left: 1px solid var(--line-night); }
.feasibility > div:first-child { background: var(--brand-grad); }
.feasibility > div:first-child strong { color: var(--night); font-size: var(--text-xs); letter-spacing: .08em; }
.feasibility > div:first-child p { color: var(--night); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; line-height: 1.3; }
.feasibility strong { color: var(--on-night); }

/* ── 로드맵 (밝은 판) ─────────────────── */
.roadmap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); counter-reset: none; position: relative; }
.milestone { position: relative; padding: var(--space-xl); border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--line); display: grid; gap: var(--space-sm); align-content: start; transition: translate var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.milestone:hover { translate: 0 -4px; box-shadow: var(--shadow-lift); }
.milestone:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.milestone:first-child p, .milestone:first-child li { color: oklch(84% 0.02 225); }
.milestone:first-child .phase > span:first-child { color: var(--aqua); }
.phase { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-xs); }
.milestone .badge { color: var(--azure); }
.milestone:first-child .badge { color: var(--aqua); }
.milestone p { color: var(--ink-2); font-size: var(--text-sm); }
.milestone ul { margin: var(--space-xs) 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.milestone li { position: relative; padding-left: 18px; font-size: var(--text-sm); color: var(--ink-2); }
.milestone li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--brand-grad); }
.status-line { margin-top: var(--space-xl); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); font-size: var(--text-xs); color: var(--ink-3); padding-top: var(--space-lg); border-top: 1px solid var(--line); }
.status-line span:first-child::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: oklch(72% 0.15 150); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 4px oklch(72% 0.15 150 / .2); }

/* ── 창업자 ───────────────────────────── */
.founder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-3xl); align-items: start; }
.signature { margin-top: var(--space-2xl); display: flex; align-items: center; gap: var(--space-md); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.signature i { width: 48px; height: 2px; background: var(--brand-grad); }
.signature small { display: block; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; color: var(--ink-3); }
.founder-statement { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; margin-bottom: var(--space-xl); }
.founder p { color: var(--ink-2); margin-top: var(--space-md); max-width: 60ch; }

/* ── 문의 (어두운 판) ─────────────────── */
.contact { position: relative; padding-block: var(--space-4xl); overflow: clip; }
.contact::before { content: ''; position: absolute; inset: auto -20% -50% -20%; height: 90%; background: radial-gradient(50% 60% at 50% 100%, oklch(72% 0.11 195 / .22), transparent 70%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); align-items: start; }
.contact h2 { font-size: clamp(2.4rem, 1.3rem + 4.2vw, 5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: var(--space-xl); }
.contact-grid > div > p { max-width: 44ch; }
.email-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-xl); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--on-night); text-decoration: none; background: linear-gradient(var(--aqua), var(--aqua)) 0 100% / 100% 2px no-repeat; }
.email-link:hover { color: var(--aqua); }
#contact-entity { margin-top: var(--space-lg); }
.contact-form { display: grid; gap: var(--space-md); padding: var(--space-xl); border-radius: var(--radius-lg); background: oklch(96% 0.01 220 / .05); border: 1px solid var(--line-night); backdrop-filter: blur(8px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.contact-form label { display: grid; gap: 6px; }
.contact-form label > span { font-size: var(--text-xs); font-weight: 600; color: var(--on-night-2); letter-spacing: .02em; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-night); background: oklch(15% 0.03 240 / .6); color: var(--on-night); font-size: 16px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px oklch(72% 0.11 195 / .2); }
.contact-form .btn.primary { justify-self: start; background: var(--paper); color: var(--night); }
.contact-form .btn.primary:hover { color: #fff; }
#contact-feedback { font-size: var(--text-sm); color: var(--aqua); min-height: 1.4em; }

/* ── 바닥글 ───────────────────────────── */
footer { padding-block: var(--space-3xl) var(--space-xl); border-top: 1px solid var(--line-night); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-2xl); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--line-night); }
.footer-main img { width: 150px; height: auto; aspect-ratio: 200 / 61; object-fit: contain; display: block; }
.footer-main p { margin-top: var(--space-md); color: var(--on-night-2); font-size: var(--text-sm); }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.footer-nav > div { display: grid; gap: 2px; align-content: start; }
.footer-nav strong { font-size: var(--text-xs); letter-spacing: .1em; color: var(--aqua); margin-bottom: var(--space-xs); }
.footer-nav a, .footer-nav button { justify-self: start; min-height: 40px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--on-night-2); font-size: var(--text-sm); text-decoration: none; cursor: pointer; white-space: nowrap; transition: color var(--dur-fast); }
.footer-nav a:hover, .footer-nav button:hover { color: var(--on-night); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-xl); flex-wrap: wrap; padding-block: var(--space-xl); font-size: var(--text-xs); color: var(--on-night-2); }
.legal-info { display: grid; gap: 4px; max-width: 70ch; }
.legal-info strong { color: var(--on-night); font-size: var(--text-sm); }
.region-selector { display: grid; gap: 6px; }
.region-selector select { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-night); background: var(--night-2); color: var(--on-night); font-size: 16px; }
.copyright { display: flex; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; padding-top: var(--space-lg); border-top: 1px solid var(--line-night); font-size: var(--text-xs); color: oklch(66% 0.02 225); }

/* ── 창 (제품·확대·개인정보) ───────────── */
.dialog { width: min(920px, 100% - 32px); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px -30px oklch(10% 0.04 240 / .7); overflow: auto; }
.dialog::backdrop { background: oklch(15% 0.03 240 / .55); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) { .dialog[open] { animation: dialog-in 420ms var(--ease-out); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.dialog-close { position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.4rem; cursor: pointer; }
.dialog-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-xl); padding: var(--space-2xl); align-items: start; }
.dialog-body.no-image { grid-template-columns: minmax(0, 1fr); }
.dialog-body h2 { font-size: var(--text-3xl); margin: var(--space-xs) 0 var(--space-md); }
.dialog-body p { color: var(--ink-2); }
.dialog-body ul { margin: var(--space-lg) 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dialog-body li { position: relative; padding-left: 20px; }
.dialog-body li::before { content: ''; position: absolute; left: 0; top: .75em; width: 9px; height: 2px; background: var(--brand-grad); }
.dialog-body img { border-radius: var(--radius-md); border: 1px solid var(--line); }
.dialog-body .actions { margin-top: var(--space-lg); }
.lightbox-dialog { width: min(1400px, 100% - 24px); background: var(--night); color: var(--on-night-2); }
.lightbox-dialog img { width: 100%; height: auto; }
.lightbox-dialog p { padding: var(--space-md) var(--space-xl) var(--space-xl); font-size: var(--text-xs); }
.lightbox-dialog .dialog-close { background: var(--night-2); color: var(--on-night); border-color: var(--line-night); }

/* ── 반응형 ───────────────────────────── */
@media (max-width: 1100px) {
  .navigation a { padding: 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card, .product-card:nth-child(4), .product-card.infrastructure { grid-column: span 1; }
  .product-card.infrastructure { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .topbar.on-dark .menu-toggle { border-color: var(--line-night); }
  .navigation {
    position: fixed; inset: var(--header-h) 12px auto 12px; flex-direction: column; gap: 4px; padding: var(--space-md); margin: 0;
    border-radius: var(--radius-md); background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .navigation.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .navigation a { padding: 12px 16px; font-size: var(--text-md); }
  .header-actions { margin-left: auto; }
  .hero-grid, .flagship-top, .engine-layout, .loop-layout, .founder, .contact-grid, .adjacent, .footer-main, .section-header { grid-template-columns: minmax(0, 1fr); }
  .section-header { gap: var(--space-lg); align-items: start; }
  .hero-art { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-proof > div:first-child { grid-column: 1 / -1; }
  .loop-heading { position: static; }
  .operating-principles, .roadmap-grid { grid-template-columns: minmax(0, 1fr); }
  .feasibility { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feasibility > div:first-child { grid-column: 1 / -1; }
  .feasibility > div:nth-child(2) { border-left: 0; }
  .dialog-body { grid-template-columns: minmax(0, 1fr); padding: var(--space-xl); }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand small { display: none; }
  .brand img { width: 108px; }
  .topbar .btn { display: none; }
  .research-structure, .form-row, .engine-grid, .flagship-values, .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card.infrastructure { grid-column: auto; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feasibility { grid-template-columns: minmax(0, 1fr); }
  .feasibility > div + div { border-left: 0; border-top: 1px solid var(--line-night); }
  .routing-strip { border-radius: var(--radius-md); }
  .hero-proof strong { font-size: var(--text-2xl); }
  .orbit-tag { font-size: .75rem; padding: 5px 9px; }
  .adjacent { padding: var(--space-lg); }
  .contact-form { padding: var(--space-lg); }
  .tab-buttons { width: 100%; }
}

/* 움직임 줄이기 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ═══ 어두운 공통 — 밝은 판을 어두운 색으로 뒤집는다 (B안·벳스토아안) ═══ */
.topbar, .topbar.on-dark { background: oklch(14% 0.03 275 / .62); color: var(--ink); border-bottom-color: var(--line); }
.topbar .brand small, .topbar.on-dark .brand small { color: var(--ink-3); }
.topbar .language, .topbar.on-dark .language { border-color: var(--line); }
.topbar .language b, .topbar.on-dark .language b { color: var(--aqua); }
.topbar .btn, .topbar.on-dark .btn { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.primary, #workstoa .btn.primary, .contact-form .btn.primary { background: var(--brand-grad); color: var(--on-accent); }
.btn.primary::before { display: none; }
.btn.primary:hover { filter: brightness(1.08); color: var(--on-accent); }
#workstoa .btn.primary:hover, .contact-form .btn.primary:hover { color: var(--on-accent); }
.announcement span:first-child, .section-number { background: var(--brand-grad); color: var(--on-accent); }
.engine-button.active { background: var(--brand-grad); color: var(--on-accent); border-color: transparent; }
.engine-button.active small { color: oklch(25% 0.04 270); }
.engine-button.active .engine-num { color: var(--on-accent); }
.routing-strip { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.routing-options span { border-color: var(--line); }
.product-card:nth-child(4), .milestone:first-child { background: linear-gradient(160deg, var(--paper-3), var(--paper-2)); color: var(--ink); border-color: var(--line); }
.product-card:nth-child(4) .product-copy p, .milestone:first-child p, .milestone:first-child li { color: var(--ink-2); }
.product-copy button:hover { background: var(--ink); color: var(--paper); }
.screen-tab.active { background: var(--ink); color: var(--paper); }
.dialog { background: var(--paper-2); }
.dialog-close { background: var(--paper-3); color: var(--ink); border-color: var(--line); }
.feasibility > div:first-child p, .feasibility > div:first-child strong { color: var(--on-accent); }
.infra-console { background: var(--night); }
::selection { background: var(--aqua); color: var(--night); }

/* ═══ B안 · 어두운 오로라형 — 전부 어두운 판, 뒤에서 흐르는 빛, 유리판 ═══ */
:root {
  --font-display: 'Unbounded', 'IBM Plex Sans KR', system-ui, sans-serif;
  --paper: oklch(15% 0.03 278); --paper-2: oklch(19% 0.04 278); --paper-3: oklch(26% 0.05 278);
  --ink: oklch(96% 0.01 260); --ink-2: oklch(80% 0.025 260); --ink-3: oklch(66% 0.03 265);
  --line: oklch(31% 0.045 278);
  --night: oklch(12% 0.03 280); --night-2: oklch(18% 0.045 280); --night-3: oklch(26% 0.06 282);
  --on-night: var(--ink); --on-night-2: var(--ink-2); --line-night: var(--line);
  --azure: oklch(68% 0.17 268); --aqua: oklch(82% 0.12 195); --violet: oklch(66% 0.2 305);
  --brand-grad: linear-gradient(100deg, var(--violet), var(--azure) 50%, var(--aqua));
  --on-accent: oklch(14% 0.03 280);
  --shadow-lift: 0 30px 70px -30px oklch(66% 0.2 305 / .45);
}
body { background: var(--night); }
body::before {
  content: ''; position: fixed; inset: -25%; z-index: -1; pointer-events: none; filter: blur(60px);
  background:
    radial-gradient(28% 32% at 22% 18%, oklch(60% 0.22 305 / .55), transparent 70%),
    radial-gradient(30% 34% at 78% 30%, oklch(62% 0.17 255 / .5), transparent 70%),
    radial-gradient(34% 30% at 55% 82%, oklch(75% 0.13 195 / .38), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 50% { transform: translate(4%, -3%) rotate(8deg) scale(1.08); } 100% { transform: translate(-4%, 3%) rotate(-6deg) scale(1.02); } }
.section, #technology, #journey, #products, #workstoa, #method, .contact, footer { background: oklch(14% 0.03 278 / .45); }
#products { background: oklch(18% 0.04 278 / .55); }
.marquee { background: oklch(10% 0.03 280 / .7); }
.principle, .research-structure > div, .engine-detail, .engine-button, .product-card, .milestone, .adjacent, .adjacent-link, .flagship-values > div, .loop-step, .contact-form, .announcement {
  background: oklch(96% 0.01 260 / .045); border-color: oklch(96% 0.01 260 / .12); backdrop-filter: blur(12px);
}
.principle:hover, .product-card:hover, .milestone:hover { background: oklch(96% 0.01 260 / .08); border-color: oklch(66% 0.2 305 / .5); }
.hero h1 { font-size: clamp(2.4rem, 1.1rem + 5.4vw, 5.8rem); font-weight: 700; letter-spacing: -0.04em; }
h2 { letter-spacing: -0.03em; }
.hero-art { background: radial-gradient(120% 90% at 70% 10%, oklch(30% 0.08 290), oklch(12% 0.03 280) 60%); }
.core-diagram::before { border-color: oklch(96% 0.01 260 / .15); }
.core-diagram::after { border-color: oklch(96% 0.01 260 / .1); }
.orbit-tag { background: oklch(19% 0.04 278 / .85); color: var(--ink); border-color: oklch(96% 0.01 260 / .15); }
.kicker, .label, .phase > span:first-child, .local-name, .research-structure span, .footer-nav strong { color: var(--aqua); }
.text-link { color: var(--ink); }
.contact h2, .hero h1 .gradient-text { filter: drop-shadow(0 0 30px oklch(66% 0.2 305 / .35)); }

/* ═══ B안 최종 — 개발사 느낌 강화 (GSAP·스크롤 연동·View Transitions) ═══ */
h1, h2, h3, .vision-intro, .founder-statement { text-wrap: balance; }
p { text-wrap: pretty; }

/* 화면 질감 — 아주 옅은 노이즈 */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* 첫 화면: 마우스를 따라오는 빛 + 흘러오는 원근 격자 + 데이터 네트워크 */
.hero { isolation: isolate; --sx: 62%; --sy: 28%; }
.hero::before {
  inset: 0; width: auto; aspect-ratio: auto; border-radius: 0; z-index: -1;
  background: radial-gradient(640px circle at var(--sx) var(--sy), oklch(66% 0.2 305 / .2), transparent 62%);
}
.hero::after {
  content: ''; position: absolute; left: -25%; right: -25%; bottom: -8%; height: 52%; z-index: -2; pointer-events: none;
  background-image: linear-gradient(oklch(96% 0.01 260 / .08) 1px, transparent 1px), linear-gradient(90deg, oklch(96% 0.01 260 / .08) 1px, transparent 1px);
  background-size: 72px 72px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 92%); mask-image: linear-gradient(to top, #000 15%, transparent 92%);
}
@media (prefers-reduced-motion: no-preference) { .hero::after { animation: grid-run 5s linear infinite; } }
@keyframes grid-run { to { background-position: 0 72px, 0 0; } }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .7;
  -webkit-mask-image: radial-gradient(75% 70% at 55% 40%, #000 35%, transparent 85%); mask-image: radial-gradient(75% 70% at 55% 40%, #000 35%, transparent 85%); }
.hero h1 { text-shadow: 0 0 60px oklch(66% 0.2 305 / .25); }
.hero-footnote::after { content: ''; display: inline-block; width: .55em; height: 1.05em; margin-left: 8px; vertical-align: -.18em; background: var(--aqua); }
@media (prefers-reduced-motion: no-preference) { .hero-footnote::after { animation: caret 1.05s steps(2, start) infinite; } }
@keyframes caret { to { visibility: hidden; } }

/* GSAP 가 첫 화면을 맡으면 CSS 등장은 끈다 */
.gsap-on .hero .announcement, .gsap-on .hero h1, .gsap-on .hero-description, .gsap-on .hero .actions,
.gsap-on .hero-footnote, .gsap-on .hero-art, .gsap-on .hero-proof > div { animation: none; }
.split-line { overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }

/* 칸마다 마우스를 따라 테두리 빛 */
.glow { position: relative; }
.glow::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 300ms var(--ease-out);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), oklch(84% 0.12 195), oklch(66% 0.2 305 / .7) 40%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.glow:hover::after { opacity: 1; }
.glow { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), oklch(66% 0.2 305 / .09), transparent 45%); }

/* 제목: 스크롤하면 흐림에서 선명하게 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section h2, .vision-intro, .founder-statement { animation: sharpen linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  }
}
@keyframes sharpen { from { opacity: .15; filter: blur(10px); translate: 0 24px; } to { opacity: 1; filter: blur(0); translate: 0 0; } }

/* 흐르는 띠: 채움·외곽선 번갈아 (GSAP 가 속도를 스크롤에 맞춘다) */
.marquee-track span:nth-child(even) { color: oklch(96% 0.01 260 / .28); }
.gsap-on .marquee-track { animation: none; }

/* 워크스토아: 스크롤에 고정되며 화면 3장이 넘어간다 (넓은 화면) */
.pin-hint { display: flex; gap: 6px; margin-top: var(--space-md); }
.pin-hint i { width: 28px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.pin-hint i b { position: absolute; inset: 0; background: var(--brand-grad); transform-origin: left; transform: scaleX(0); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 380ms; animation-timing-function: var(--ease-out); }
.screen-button img { view-transition-name: ws-screen; }
::view-transition-old(ws-screen) { animation: vt-out 380ms var(--ease-out) both; }
::view-transition-new(ws-screen) { animation: vt-in 520ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateX(-3%) scale(.98); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(3%) scale(.98); filter: blur(6px); } }

/* 방법: 선 위를 빛나는 점이 내려간다 */
.loop-dot { position: absolute; left: 7px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 6px oklch(82% 0.12 195 / .2), 0 0 24px oklch(82% 0.12 195 / .9); z-index: 2; }
.gsap-on .loop-steps::after { animation: none; }

/* 창 열림 — @starting-style */
@supports (selector(:popover-open)) {
  .dialog { transition: opacity 320ms var(--ease-out), translate 420ms var(--ease-out), display 420ms allow-discrete, overlay 420ms allow-discrete; }
  .dialog[open] { opacity: 1; translate: 0 0; }
  @starting-style { .dialog[open] { opacity: 0; translate: 0 20px; } }
}

/* 버튼이 마우스를 살짝 따라온다 */
.btn.primary { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .hero-net, .loop-dot, .pin-hint { display: none; }
  .glow::after { display: none; }
}

.gsap-on .loop-steps::after { transform: scaleY(var(--line, 0)); }
.product-card:nth-child(4).glow { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), oklch(66% 0.2 305 / .12), transparent 45%), linear-gradient(160deg, var(--paper-3), var(--paper-2)); }

.split-word { white-space: nowrap; }
@media (min-width: 1024px) {
  .gsap-on #workstoa .screen-button img { width: auto; max-width: 100%; max-height: calc(100vh - 300px); margin-inline: auto; }
  .gsap-on #workstoa .screen-window { width: fit-content; max-width: 100%; margin-inline: auto; }
}

/* 첫 화면 그림 안쪽 움직임 */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .dash-flow { stroke-dasharray: 6 12; animation: dash-in 1.4s linear infinite; }
  .hero-art .beam-v { animation: dash-in 1s linear infinite; }
  @keyframes dash-in { to { stroke-dashoffset: -36; } }
  .hero-art .node-dot { transform-box: fill-box; transform-origin: center; animation: node 2.4s ease-in-out infinite; }
  @keyframes node { 50% { transform: scale(1.7); } }
  .hero-art .ripple { fill: none; stroke: #91e9d8; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ripple 2.4s ease-out infinite; }
  @keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(6); opacity: 0; } }
  .hero-art .core-cube { animation: bob 4.8s ease-in-out infinite alternate; }
  @keyframes bob { from { transform: translateY(5px); } to { transform: translateY(-9px); } }
  .hero-art .core-layers { animation: layers 2.4s ease-in-out infinite; }
  @keyframes layers { 0%, 100% { opacity: .2; } 50% { opacity: .75; } }
  .hero-art .core-edge { animation: edge 2.4s ease-in-out infinite; }
  @keyframes edge { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
  .hero-art .orbit-arc { fill: none; stroke: #8ff3e4; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 9 91; animation: orbit-arc 7s linear infinite; filter: drop-shadow(0 0 6px #63e1bf); }
  @keyframes orbit-arc { to { stroke-dashoffset: -100; } }
  .hero-art .scan { opacity: 0; animation: scan 5s ease-in-out infinite; }
  @keyframes scan { 0% { transform: translateY(110px); opacity: 0; } 15% { opacity: .55; } 85% { opacity: .35; } 100% { transform: translateY(560px); opacity: 0; } }
  .core-floating { animation: bob 4.8s ease-in-out infinite alternate; }
  .core-floating b { animation: core-text 2.4s ease-in-out infinite; }
  @keyframes core-text { 50% { text-shadow: 0 0 18px oklch(84% 0.12 195 / .9), 0 0 2px #fff; } }
  .hero-art svg text { animation: label 3.6s steps(1) infinite; }
  .hero-art svg text:nth-child(2) { animation-delay: .9s; } .hero-art svg text:nth-child(3) { animation-delay: 1.8s; } .hero-art svg text:nth-child(4) { animation-delay: 2.7s; }
  @keyframes label { 0%, 92% { fill: #7299af; } 93%, 100% { fill: #c8fff6; } }
}

/* 점검 반영: 누르는 영역 44px · 글자 12px 이상 · 대비 */
.footer-nav a, .footer-nav button, .language, .topbar .btn, .screen-tab, .announcement, .brand { min-height: 44px; }
.adjacent-link .actions a, .text-link { min-height: 44px; min-width: 44px; }
.adjacent .label, .product-copy .label { color: var(--aqua); }
/* 본문 속 인라인 글자 크기·색을 기준에 맞춤 (원문 글자는 그대로) */
.adjacent .label { font-size: var(--text-xs) !important; letter-spacing: .04em !important; color: var(--aqua) !important; }
.adjacent-link .actions a { font-size: var(--text-sm) !important; }
#privacy-button { font-size: var(--text-sm) !important; color: var(--on-night-2) !important; }
.footer-nav a { min-width: 44px; }
@media (max-width: 640px) { .core-diagram { --orbit-r: 36cqw; } .core-disc { width: 33%; } .core-disc span { font-size: .75rem; letter-spacing: .08em; } .orbit-tag { z-index: 2; letter-spacing: .02em; padding: 4px 8px; } .core-disc strong { font-size: 1rem; } }
@media (max-width: 370px) {
  .core-diagram { aspect-ratio: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-block: 8px; }
  .core-diagram::before, .core-diagram::after { display: none; }
  .core-disc { width: 64%; margin: 0 18% 14px; flex: none; }
  .core-diagram .orbit-tag { position: static; transform: none; z-index: auto; }
}

/* Network is above the hero background and below readable content. */
.hero > .hero-net { position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; opacity:.95; -webkit-mask-image:none; mask-image:none; }
.hero > .container { position:relative; z-index:1; }

/* English references come from the verified English product sites. */
[hidden] { display: none !important; }
html[lang="en"] .product-visual:has(img[data-image-en$="voiceuno-site-en.jpg"]) { padding: 20px 18px; place-items: center; }
html[lang="en"] .product-visual img[data-image-en$="voiceuno-site-en.jpg"] { width: 100%; max-width: 360px; border-radius: 12px; transform: none; }
html[lang="en"] .product-visual img[data-image-en$="pdfmon-summary-en.jpg"] { width: min(100%, 285px); }
