/* XLAND Intelligence — site styles
 * Tokens drive both themes (html.dark / html.light). The theme class is set
 * before first paint by the inline script in <head>; assets/site.js toggles it.
 */

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Geist", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK KR",
    system-ui, sans-serif;
  --font-mono: "Geist Mono", "Pretendard Variable", Pretendard, ui-monospace, SFMono-Regular, Menlo,
    monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 64px;

  /* Dark (default) */
  --bg: #060909;
  --bg-elev: #090e0e;
  --surface: #0d1414;
  --surface-2: #131c1c;
  --line: rgba(214, 255, 244, 0.08);
  --line-strong: rgba(214, 255, 244, 0.15);
  --text: #ecf3f1;
  --text-2: #9aa8a5;
  --text-3: #66736f;
  --accent: #2cebc4;
  --accent-ink: #2cebc4;
  --on-accent: #03110d;
  --btn-bg: #2cebc4;
  --btn-text: #03110d;
  --btn-hover: #63f3d6;
  --grad: linear-gradient(100deg, #3cf4f6 0%, #2cebc4 45%, #17c98f 100%);
  --glow: rgba(44, 235, 196, 0.14);
  --nav-bg: rgba(6, 9, 9, 0.72);
  --panel-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.75);
  --pop-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

html.light {
  --bg: #f4f5f2;
  --bg-elev: #fafbf9;
  --surface: #ffffff;
  --surface-2: #eef1ee;
  --line: rgba(10, 30, 26, 0.09);
  --line-strong: rgba(10, 30, 26, 0.16);
  --text: #0a1412;
  --text-2: #4f5d59;
  --text-3: #7f8b87;
  --accent: #00a383;
  --accent-ink: #007d66;
  --on-accent: #ffffff;
  --btn-bg: #0a1412;
  --btn-text: #f4f5f2;
  --btn-hover: #1e2b28;
  --grad: linear-gradient(100deg, #0093ad 0%, #00977a 50%, #067a55 100%);
  --glow: rgba(0, 163, 131, 0.13);
  --nav-bg: rgba(244, 245, 242, 0.78);
  --panel-shadow: 0 40px 90px -50px rgba(10, 30, 26, 0.28);
  --pop-shadow: 0 18px 40px -18px rgba(10, 30, 26, 0.28);
  color-scheme: light;
}

/* Surfaces that stay dark in both themes (contact panel). */
.on-dark {
  --surface: #0d1414;
  --surface-2: #131c1c;
  --line: rgba(214, 255, 244, 0.09);
  --line-strong: rgba(214, 255, 244, 0.16);
  --text: #ecf3f1;
  --text-2: #a3b1ae;
  --text-3: #6c7975;
  --accent: #2cebc4;
  --accent-ink: #2cebc4;
  --btn-bg: #2cebc4;
  --btn-text: #03110d;
  --btn-hover: #63f3d6;
}

/* Script-specific type stacks so Han glyphs use the right regional forms. */
html:lang(ja) {
  --font-sans: "Geist", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic",
    system-ui, sans-serif;
}
html:lang(zh) {
  --font-sans: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html:lang(ko) body {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html:lang(ko) body,
html:lang(ja) body,
html:lang(zh) body {
  line-height: 1.7;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ic {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus-visible {
  transform: none;
}

/* Theme swaps should be instant; only the toggle icon animates. */
html.theme-switching *:not(.ic-sun):not(.ic-moon),
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn .ic {
  transition: transform 200ms var(--ease-out);
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-sm {
  --h: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 9px;
}
.btn-lg {
  --h: 50px;
  padding: 0 22px;
  font-size: 15.5px;
}
.btn-xl {
  --h: 60px;
  padding: 0 28px;
  font-size: 18px;
  border-radius: 12px;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--ease-out),
    color 160ms ease,
    background-color 160ms ease;
}
.icon-btn:active {
  transform: scale(0.94);
}

.theme-btn .ic {
  grid-area: 1 / 1;
  transition:
    opacity 200ms var(--ease-out),
    transform 260ms var(--ease-out),
    filter 200ms ease;
}
html.dark .theme-btn .ic-moon,
html.light .theme-btn .ic-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
  filter: blur(2px);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--btn-hover);
  }
  .btn-primary:hover .ic {
    transform: translateX(2px);
  }
  .btn-ghost:hover {
    background: var(--surface-2);
    border-color: var(--text-3);
  }
  .icon-btn:hover {
    color: var(--text);
    background: var(--surface-2);
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color 240ms ease,
    border-color 240ms ease;
}
.nav.is-scrolled,
html.menu-open .nav {
  background: var(--nav-bg);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}
html.menu-open .nav {
  background: var(--bg);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 14px;
  height: 21px;
  flex: none;
}
.brand-word {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-tag {
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}
.nav-links a[aria-current] {
  color: var(--text);
}
.nav-links a[aria-current]::after {
  opacity: 1;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--text);
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
}

/* Language picker */
.lang {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--ease-out),
    color 160ms ease,
    background-color 160ms ease;
}
.lang-btn:active {
  transform: scale(0.96);
}
.lang-btn .ic {
  width: 16px;
  height: 16px;
}
.lang-btn .ic-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform 200ms var(--ease-out);
}
.lang-btn[aria-expanded="true"] {
  color: var(--text);
  background: var(--surface-2);
}
.lang-btn[aria-expanded="true"] .ic-chevron {
  transform: rotate(180deg);
}
@media (hover: hover) and (pointer: fine) {
  .lang-btn:hover {
    color: var(--text);
    background: var(--surface-2);
  }
}

.popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--pop-shadow);
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 140ms var(--ease-out),
    transform 140ms var(--ease-out),
    visibility 0s linear 140ms;
}
.popover[data-open] {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    visibility 0s;
}
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.lang-option:focus-visible {
  outline-offset: -2px;
}
.lang-option .lang-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.lang-option[aria-checked="true"] {
  background: var(--surface-2);
}
.lang-option[aria-checked="true"] .lang-code {
  color: var(--accent-ink);
}
@media (hover: hover) and (pointer: fine) {
  .lang-option:hover {
    background: var(--surface-2);
  }
}

/* Mobile menu button */
.menu-btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out);
}
.menu-btn:active {
  transform: scale(0.94);
}
.menu-btn span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 240ms var(--ease-out);
}
.menu-btn span:first-child {
  transform: translateY(-3.5px);
}
.menu-btn span:last-child {
  transform: translateY(3.5px);
}
.menu-btn[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 16px var(--gutter) 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 160ms var(--ease-out),
    visibility 0s linear 160ms;
}
.drawer[data-open] {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 220ms var(--ease-out),
    visibility 0s;
}
.drawer > *,
.drawer-links a {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}
.drawer[data-open] > *,
.drawer[data-open] .drawer-links a {
  opacity: 1;
  transform: none;
  transition:
    opacity 320ms var(--ease-out),
    transform 320ms var(--ease-out);
  transition-delay: calc(var(--k, 0) * 35ms + 40ms);
}
.drawer > .drawer-links {
  opacity: 1;
  transform: none;
}
.drawer-links {
  display: flex;
  flex-direction: column;
}
.drawer-links a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.drawer-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.drawer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lang-pill {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    color 160ms ease;
}
.lang-pill:active {
  transform: scale(0.96);
}
.lang-pill[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.drawer-row {
  display: flex;
  gap: 10px;
}
.drawer-row .icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}
.drawer-row .btn {
  flex: 1;
  --h: 50px;
  border-radius: 12px;
}
html.menu-open {
  overflow: hidden;
}

/* ---------- Intro + reveal motion ---------- */
html.js .nav-inner {
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
}
html.js.is-ready .nav-inner {
  opacity: 1;
}

html.js [data-enter] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out),
    filter 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms + 80ms);
}
html.js.is-ready [data-enter] {
  opacity: 1;
  transform: none;
  filter: none;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(32px, 5vw, 72px));
  padding-bottom: clamp(64px, 8vw, 112px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 65% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 65% 30%, #000 10%, transparent 75%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
  min-height: clamp(500px, calc(100svh - var(--nav-h) - 300px), 640px);
  /* The 3D scene bleeds under the copy column; only real controls take input. */
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 7px 13px 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-2);
}
/* Tracked-out mono labels read poorly in CJK scripts: switch to the sans
   stack with near-normal spacing whenever the page language is ko/ja/zh. */
html:lang(ko) :is(.status, .brand-tag, .footer-h, .drawer-label),
html:lang(ja) :is(.status, .brand-tag, .footer-h, .drawer-label),
html:lang(zh) :is(.status, .brand-tag, .footer-h, .drawer-label) {
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}
.status-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  80%,
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 1.3rem + 4.2vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
html:lang(ko) .hero-title,
html:lang(ja) .hero-title,
html:lang(zh) .hero-title {
  letter-spacing: -0.03em;
  line-height: 1.16;
}
/* Keep the CJK headline on two lines next to the simulation column. */
@media (min-width: 961px) {
  html:lang(ko) .hero-title,
  html:lang(ja) .hero-title,
  html:lang(zh) .hero-title {
    font-size: clamp(2.6rem, 1.2rem + 3.4vw, 3.9rem);
  }
}
.t-lead,
.t-line {
  display: block;
}
.t-emph {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 0.06em;
}
/* CJK headlines join emphasis + trail without a space ("청정에너지의 미래"). */
html:lang(ko) .t-gap,
html:lang(ja) .t-gap,
html:lang(zh) .t-gap {
  display: none;
}

.hero-sub {
  max-width: 34em;
  margin: 24px 0 0;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* ---------- Hero: live operations simulation ---------- */
:root {
  --use-ev: #38e1f5;
  --use-ind: #2cebc4;
  --use-com: #6aa8ff;
  --use-res: #b6f5a8;
}
html.light {
  --use-ev: #0b93b5;
  --use-ind: #00a383;
  --use-com: #3d6fd6;
  --use-res: #5b9a3c;
}

.hero-stage {
  position: relative;
  align-self: stretch;
  min-height: 500px;
}
.sim {
  position: absolute;
  inset: -18% -14% -12% -24%;
  /* Soft edges, centred on the stage (the box bleeds further to the left). */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 54% 53%, #000 66%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 54% 53%, #000 66%, transparent 100%);
}
/* In the light theme the scene sits in a dark instrument panel. */
html.light .sim {
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(44, 235, 196, 0.08), transparent 70%),
    linear-gradient(180deg, #0b1212, #060909);
  box-shadow: 0 40px 90px -50px rgba(10, 30, 26, 0.45);
  -webkit-mask-image: none;
  mask-image: none;
}
.sim-sky {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse 40% 38% at 54% 44%, rgba(60, 244, 246, 0.13), transparent 70%);
  pointer-events: none;
}
.sim-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: grab;
  /* Vertical swipes keep scrolling the page; horizontal drags rotate. */
  touch-action: pan-y;
  pointer-events: auto;
  transition: opacity 700ms var(--ease-out);
}
.sim.is-live .sim-canvas {
  opacity: 1;
}
.sim.is-dragging .sim-canvas {
  cursor: grabbing;
}

.sim-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sim-label {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  will-change: transform;
  transition: opacity 220ms var(--ease-out);
}
.sim.labels-on .sim-label {
  opacity: 1;
  transition-delay: calc(var(--k, 0) * 60ms);
}
.sim.labels-on .sim-label.is-hidden {
  opacity: 0;
  transition-delay: 0s;
}
.sim-label::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 235, 196, 0.18);
}
.sim-label::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: -0.5px;
  width: 1px;
  height: 13px;
  background: linear-gradient(to top, var(--accent), rgba(44, 235, 196, 0));
}
.sim-tag {
  position: absolute;
  bottom: 16px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 10px 7px;
  border: 1px solid rgba(214, 255, 244, 0.14);
  border-radius: 10px;
  background: rgba(7, 13, 13, 0.84);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  transform: translate(-50%, 5px);
  transition: transform 420ms var(--ease-out);
}
.sim.labels-on .sim-tag {
  transform: translateX(-50%);
  transition-delay: calc(var(--k, 0) * 60ms);
}
.sim-tag-name {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}
.sim-tag-val {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.sim-tag-val:empty {
  display: none;
}
.sim-label-use .sim-tag-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sim-label-use .sim-tag-name::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--use);
}
.sim-label-hub .sim-tag {
  border-color: rgba(44, 235, 196, 0.45);
}
.sim-label-hub .sim-tag-name {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.sim-hint {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
  color: var(--text-3);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease-out);
}
html.light .sim-hint {
  right: 16px;
  bottom: 14px;
  color: #6c7975;
}
.sim-hint .ic {
  width: 14px;
  height: 14px;
}
.sim.is-live + .sim-hint {
  opacity: 1;
  transition-delay: 2.6s;
}
.sim.is-live.has-dragged + .sim-hint {
  opacity: 0;
  transition-delay: 0s;
}

[data-use="ev"] {
  --use: var(--use-ev);
}
[data-use="ind"] {
  --use: var(--use-ind);
}
[data-use="com"] {
  --use: var(--use-com);
}
[data-use="res"] {
  --use: var(--use-res);
}
.sim-label[data-sim-label="ev"] {
  --use: var(--use-ev);
}
.sim-label[data-sim-label="ind"] {
  --use: var(--use-ind);
}
.sim-label[data-sim-label="com"] {
  --use: var(--use-com);
}
.sim-label[data-sim-label="res"] {
  --use: var(--use-res);
}

/* Caption strip under the scene: what is playing + where the energy goes. */
.sim-hud {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
  margin-top: clamp(24px, 3.5vw, 40px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hud-status {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.hud-play {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    color 150ms ease,
    border-color 150ms ease;
}
.hud-play:active {
  transform: scale(0.94);
}
@media (hover: hover) and (pointer: fine) {
  .hud-play:hover {
    color: var(--text);
    border-color: var(--text-3);
  }
}
.hud-play .ic {
  grid-area: 1 / 1;
  width: 14px;
  height: 14px;
  transition:
    opacity 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}
.hud-play .ic-play {
  fill: currentColor;
}
.hud-play[data-state="playing"] .ic-play,
.hud-play[data-state="paused"] .ic-pause {
  opacity: 0;
  transform: scale(0.6);
}
.hud-clock {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.hud-use {
  min-width: 0;
}
.hud-use-title {
  margin: 0 0 10px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.35;
}
.hud-bar-stack {
  display: flex;
  gap: 2px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
}
.hud-bar-stack i {
  flex: 1 1 0;
  min-width: 0;
  background: var(--use);
}
.hud-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.35;
}
.hud-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hud-legend li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--use);
}
.hud-legend b {
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

@keyframes flow {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(88px, 10vw, 144px);
  border-top: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.eyebrow-idx {
  color: var(--accent-ink);
}
.eyebrow-rule {
  width: 48px;
  height: 1px;
  background: var(--line-strong);
}

.h2 {
  margin: 0;
  font-size: clamp(2rem, 1.25rem + 2.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
html:lang(ko) .h2,
html:lang(ja) .h2,
html:lang(zh) .h2 {
  letter-spacing: -0.025em;
  line-height: 1.22;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.lead {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
html:lang(ko) .lead,
html:lang(ja) .lead,
html:lang(zh) .lead {
  letter-spacing: -0.01em;
  line-height: 1.6;
}
.body {
  max-width: 40em;
  margin: 24px 0 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  padding-top: 36px;
}
.stat + .stat {
  padding-left: clamp(24px, 4vw, 56px);
  border-left: 1px solid var(--line);
}
.stat:first-child {
  padding-right: clamp(24px, 4vw, 56px);
}
.stat-num {
  margin: 0;
  font-size: clamp(3.5rem, 1.8rem + 5.4vw, 6.75rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  color: var(--accent-ink);
  margin-left: 0.04em;
}
.stat-label {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
html:lang(ko) .stat-label,
html:lang(ja) .stat-label,
html:lang(zh) .stat-label {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
}
.ticks,
.meter {
  margin-top: 28px;
  height: 6px;
  max-width: 320px;
}
.ticks {
  display: flex;
  gap: 4px;
}
.ticks i {
  flex: 1;
  border-radius: 2px;
  background: var(--line-strong);
  transition: background-color 300ms ease;
  transition-delay: calc(var(--k) * 70ms + 300ms);
}
.stats.is-in .ticks i {
  background: var(--accent);
}
.meter {
  overflow: hidden;
  border-radius: 3px;
  background: var(--line-strong);
}
.meter i {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1400ms var(--ease-in-out) 300ms;
}
.stats.is-in .meter i {
  transform: scaleX(1);
}

/* Services */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.sec-sub {
  justify-self: end;
  max-width: 30em;
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-elev);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: background-color 240ms ease;
}
.card + .card {
  border-left: 1px solid var(--line);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease-out);
}
.card-viz {
  position: relative;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: 8px 8px;
}
.card-viz svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.card-idx {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 28px 30px;
}
.card-title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.card-desc {
  flex: 1;
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
}
.card-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
}
.link-arrow .ic {
  width: 16px;
  height: 16px;
  color: var(--accent-ink);
  transition: transform 220ms var(--ease-out);
}
.checks {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}
.checks .ic {
  width: 16px;
  height: 16px;
  color: var(--accent-ink);
  stroke-width: 2;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    background: var(--surface);
  }
  .card:hover::before {
    transform: scaleX(1);
  }
  .card:hover .link-arrow .ic,
  .link-arrow:hover .ic {
    transform: translateX(3px);
  }
}

/* Card visuals */
.cv-wire,
.cv-track {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.25;
}
.cv-track {
  stroke-dasharray: 2 6;
}
.cv-line {
  fill: none;
  stroke: var(--text-2);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cv-port {
  fill: var(--bg-elev);
  stroke: var(--accent);
  stroke-width: 1.5;
}
.cv-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 14 86;
  animation: flow 2.6s linear infinite;
}
.cv-cells rect {
  fill: var(--line-strong);
  transition: fill 260ms ease;
  transition-delay: calc(var(--k) * 110ms + 400ms);
}
.cards.is-in .cv-cells rect {
  fill: var(--accent);
}
.cards.is-in .cv-cell-live {
  animation: blink 1.8s ease-in-out 1.4s infinite;
}
.cv-sine {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1600ms var(--ease-in-out) 400ms;
}
.cards.is-in .cv-sine {
  stroke-dashoffset: 0;
}
.cv-orbit {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 18 82;
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 7s linear infinite;
}
.cv-node {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 1.5;
}

/* Advantage */
.adv-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}
.adv-head {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
}
.adv-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.adv-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 8px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.adv-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent-ink);
}
.adv-icon .ic {
  width: 22px;
  height: 22px;
}
.adv-title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.adv-desc {
  max-width: 36em;
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
}

/* Contact */
.contact {
  padding-block: clamp(64px, 8vw, 120px);
}
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 8vw, 104px) clamp(28px, 6vw, 88px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(44, 235, 196, 0.08), transparent 55%),
    #070c0c;
  color: var(--text);
}
.cta-art {
  position: absolute;
  top: 50%;
  right: -10%;
  z-index: -1;
  width: min(620px, 72%);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.cta-art svg {
  display: block;
  width: 100%;
  height: 100%;
}
.ca-ring {
  fill: none;
  stroke: var(--line);
}
.ca-orbit {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 10 90;
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 14s linear infinite;
}
.ca-orbit-slow {
  stroke-dasharray: 6 94;
  opacity: 0.6;
  animation-duration: 26s;
  animation-direction: reverse;
}
.cta-title {
  max-width: 13em;
  margin: 0;
  font-size: clamp(2.2rem, 1.3rem + 3vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
html:lang(ko) .cta-title,
html:lang(ja) .cta-title,
html:lang(zh) .cta-title {
  letter-spacing: -0.03em;
  line-height: 1.22;
}
.cta-body {
  max-width: 32em;
  margin: 24px 0 0;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.cta .btn {
  margin-top: 44px;
}
.tel {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* Footer */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.footer-tag {
  max-width: 24em;
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 14px;
}
.footer-h {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-col a {
  display: block;
  width: fit-content;
  padding: 5px 0;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover {
    color: var(--accent-ink);
  }
}
.footer-copy {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13px;
}
.footer-word {
  margin-top: 56px;
  font-size: clamp(96px, 27vw, 380px);
  font-weight: 700;
  line-height: 0.74;
  letter-spacing: -0.07em;
  text-align: center;
  background: linear-gradient(180deg, var(--line-strong) 0%, transparent 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  transform: translateY(10%);
}

/* Off-screen animations are paused by assets/site.js. */
.is-paused,
.is-paused * {
  animation-play-state: paused !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .brand-tag {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
  }
  .nav-links,
  .hide-mobile {
    display: none;
  }
  .menu-btn {
    display: inline-block;
  }

  .hero-grid,
  .about-grid,
  .sec-head,
  .adv-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid {
    min-height: 0;
  }
  /* WebKit resolves `justify-self: normal` as `start` for grid items with an
     aspect ratio, which collapses this empty box to 0x0 unless sized explicitly. */
  .hero-stage {
    align-self: start;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 0.92;
  }
  .sim {
    inset: -8% calc(-1 * var(--gutter)) -6%;
    -webkit-mask-image: radial-gradient(ellipse 52% 50% at 50% 50%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 52% 50% at 50% 50%, #000 70%, transparent 100%);
  }
  .sim-hud {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .sec-sub {
    justify-self: start;
  }
  .adv-head {
    position: static;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .card + .card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .card-viz {
    aspect-ratio: 2.2 / 1;
  }

  .cta-art {
    top: -12%;
    right: -30%;
    width: 90%;
    transform: none;
    opacity: 0.55;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .nav-cta {
    display: none;
  }
  .hero-ctas .btn {
    flex: 1 1 100%;
  }
  .stat:first-child {
    padding-right: 20px;
  }
  .stat + .stat {
    padding-left: 20px;
  }
  .card-body {
    padding: 24px 22px 26px;
  }
  .adv-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .adv-icon {
    grid-row: auto;
    margin-bottom: 12px;
  }
  .cta .btn {
    width: 100%;
  }
  /* Phones: names only (the HUD below carries the numbers), no hub tag. */
  .sim-tag {
    bottom: 12px;
    padding: 4px 7px;
    border-radius: 8px;
  }
  .sim-label::after {
    height: 9px;
  }
  .sim-tag-name {
    font-size: 10.5px;
  }
  .sim-tag-val,
  .sim-label-hub {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js [data-enter],
  html.js [data-reveal] {
    transform: none;
    filter: none;
    transition: opacity 300ms ease;
  }
  .status-dot::after,
  .cv-flow,
  .cv-orbit,
  .ca-orbit,
  .cards.is-in .cv-cell-live {
    animation: none;
  }
  .sim-tag,
  .sim.labels-on .sim-tag {
    transform: translateX(-50%);
    transition: none;
  }
  .meter i,
  .cv-sine {
    transition-duration: 0ms;
  }
  .drawer > *,
  .drawer-links a,
  .drawer[data-open] > *,
  .drawer[data-open] .drawer-links a {
    transform: none;
  }
}

/* ---------- Legal pages ---------- */
.legal-page .legal-head,
.legal-page .legal {
  width: 100%;
  max-width: calc(720px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.legal-head {
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(48px, 8vw, 88px);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .back-link:hover {
    color: var(--text);
  }
}
.legal-head h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.legal-meta {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.legal {
  padding-top: 48px;
  padding-bottom: 96px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.75;
}
.legal h2 {
  margin: 48px 0 12px;
  color: var(--text);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.legal p {
  margin: 0 0 16px;
}
.legal-foot {
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}
