:root {
  --ink: #08080a;
  --ink-soft: #101014;
  --paper: #f3efe5;
  --paper-deep: #e8e2d5;
  --accent: #ff5a1f;
  --accent-ink: #b8330b;
  --muted-dark: rgba(243, 239, 229, .64);
  --muted-light: rgba(8, 8, 10, .62);
  --line-dark: rgba(243, 239, 229, .15);
  --line-light: rgba(8, 8, 10, .15);
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --font-display-latin: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

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

a { color: inherit; }

button,
input { font: inherit; }

img,
svg { max-width: 100%; }

h1, h2, h3, h4, p, ol, ul { margin-top: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: -9999px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
}

.skip-link:focus { left: 10px; }

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 64px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}

.site-header[data-nav="dark"] { color: var(--ink); }

.site-header.is-stuck[data-nav="light"] {
  background: rgba(8, 8, 10, .92);
  border-bottom-color: var(--line-dark);
}

.site-header.is-stuck[data-nav="dark"] {
  background: rgba(243, 239, 229, .95);
  border-bottom-color: var(--line-light);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 24px;
  height: 24px;
  flex: none;
  overflow: visible;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 0;
  color: inherit;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  opacity: .62;
  transition: opacity .2s ease;
}

.nav a:hover,
.nav a.is-active { opacity: 1; }

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
}

.header-side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.lang {
  padding: 4px 7px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .12em;
  opacity: .55;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform .25s var(--ease);
}

.menu-button:hover span:first-child { transform: translateX(-3px); }
.menu-button:hover span:last-child { transform: translateX(3px); }

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  transition: opacity .3s ease;
}

.is-stuck .progress { opacity: 1; }

.progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- menu ---------- */

.menu {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
}

.menu:not([open]) { display: none; }

.menu[open] {
  display: flex;
  flex-direction: column;
  animation: menuIn .32s var(--ease);
}

.menu::backdrop { background: rgba(8, 8, 10, .65); }

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line-dark);
}

.menu-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
}

.menu-close {
  min-width: 64px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  background: none;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  cursor: pointer;
}

.menu-close:hover { border-color: var(--accent); color: var(--accent); }

.menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 7vh, 70px) var(--gutter);
}

.menu-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2rem, 7.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.03em;
  text-decoration: none;
  transition: color .2s ease;
}

.menu-nav a:hover { color: var(--accent); }

.menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--muted-dark);
}

.menu-foot a { color: var(--paper); text-decoration: none; }
.menu-foot p { margin: 0; }

body.is-locked { overflow: hidden; }

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- shared ---------- */

section { position: relative; }

.fde,
.lab,
.careers {
  background: var(--paper);
  color: var(--ink);
}

.business,
.profile {
  background: var(--ink);
  color: var(--paper);
}

.fde,
.business,
.lab,
.profile,
.careers { padding: clamp(54px, 5vw, 76px) 0; }

.seam {
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--accent);
  opacity: .6;
  transform-origin: left center;
}

.js .seam {
  transform: scaleX(0);
  transition: transform 1.2s var(--ease);
}

.in-view .seam { transform: scaleX(1); }

.kicker {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--accent);
}

.fde .kicker,
.lab .kicker,
.careers .kicker { color: var(--accent-ink); }

.display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.title-line {
  display: block;
  white-space: nowrap;
}

.sep {
  display: inline-block;
  margin-left: .06em;
  color: var(--accent);
  font-size: .5em;
  line-height: 1;
  vertical-align: .2em;
}

.lab .sep { color: var(--accent-ink); }

.mask {
  display: block;
  overflow: hidden;
  padding-bottom: .07em;
  margin-bottom: -.07em;
}

.mask > span { display: block; }

.js .mask > span {
  transform: translateY(110%);
  transition: transform 1.05s var(--ease);
}

.in-view .mask > span { transform: none; }

.lead {
  max-width: 31em;
  margin: 0 0 32px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.85;
  color: var(--muted-dark);
}

.fde .lead,
.lab .lead,
.careers .lead { color: var(--muted-light); }

.label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .08em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.btn .arrow {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1;
  transition: transform .25s var(--ease);
}

.btn:hover .arrow { transform: translateX(5px); }

.btn:active { transform: translateY(1px); }

.btn-ghost {
  color: var(--paper);
  border-color: rgba(243, 239, 229, .3);
  background: rgba(8, 8, 10, .2);
}

.btn-ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

.btn-solid:hover {
  background: #ff7042;
  border-color: #ff7042;
}

/* ---------- hero ---------- */

.hero {
  --sun-x: 68%;
  --sun-y: 46%;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--sun-x) var(--sun-y), rgba(255, 156, 70, .055), transparent 30%),
    radial-gradient(circle at var(--sun-x) var(--sun-y), rgba(40, 72, 160, .07), transparent 62%),
    var(--ink);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#solar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at var(--sun-x) var(--sun-y), rgba(8, 8, 10, 0) 28%, rgba(8, 8, 10, .20) 60%, rgba(8, 8, 10, .72) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0) 38%, rgba(8, 8, 10, .55) 66%, var(--ink) 92%);
}

.hero-wrap {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 92px;
  padding-bottom: 24px;
}

.hero-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.hero-meta p { margin: 0; }

.status { display: flex; align-items: center; gap: 9px; }

.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, .14);
  animation: statusPulse 3.4s ease-in-out infinite;
}

.coord { text-align: right; white-space: nowrap; }

.hero-copy {
  align-self: end;
  max-width: min(840px, 60vw);
  padding-bottom: clamp(28px, 5vh, 56px);
}

.hero-title {
  margin: 0 0 clamp(20px, 3vh, 34px);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8.2vw, 144px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
  margin-bottom: -.06em;
}

.hero-title .line > span {
  display: block;
  white-space: nowrap;
  animation: lineRise 1.05s var(--ease) both;
}

.hero-title .line:nth-child(2) > span { animation-delay: .13s; }

.line--outline > span { color: var(--paper); }

@supports ((-webkit-text-stroke: 1px #000)) {
  .line--outline > span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(243, 239, 229, .78);
  }
}

.hero-desc {
  max-width: 33em;
  margin: 0 0 28px;
  padding-left: 18px;
  border-left: 1px solid var(--accent);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
  color: rgba(243, 239, 229, .73);
}

.hero-copy .btn { margin-top: 2px; }

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--muted-dark);
}

.legal-link { text-decoration: none; transition: color .2s ease; }
.legal-link:hover { color: var(--paper); }

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.scroll-line {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 1px;
  overflow: hidden;
  background: rgba(243, 239, 229, .28);
}

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: scrollLine 2.6s var(--ease) infinite;
}

@keyframes lineRise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------- FDE ---------- */

.fde-head {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: end;
  gap: clamp(30px, 5vw, 80px);
}

.fde-word {
  margin-left: -.055em;
  font-family: var(--font-display-latin);
  font-size: clamp(7rem, 24vw, 22rem);
  font-weight: 700;
  line-height: .74;
  letter-spacing: -.08em;
  color: var(--ink);
  user-select: none;
}

.fde-intro { max-width: 35em; padding-bottom: 6px; }

.fde-intro h2 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 4.3vw, 4.4rem);
}

.fde-intro .lead { margin-bottom: 30px; }

.fde-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin: clamp(48px, 6vw, 76px) 0 0;
  padding: 0;
  list-style: none;
}

.fde-steps::before,
.fde-steps::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
}

.fde-steps::before { background: var(--line-light); }

.fde-steps::after {
  background: var(--accent);
  transform-origin: left center;
}

.js .fde-steps::after {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease) .1s;
}

.in-view.fde-steps::after { transform: scaleX(1); }

.step {
  position: relative;
  padding-top: 28px;
}

.step::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--paper);
  transition: background-color .4s ease;
}

.in-view .step::before { background: var(--accent); }
.step:nth-child(2)::before { transition-delay: .3s; }
.step:nth-child(3)::before { transition-delay: .6s; }
.step:nth-child(4)::before { transition-delay: .9s; }

.step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.step p {
  max-width: 24em;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted-light);
}

.fde-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.fde-foot p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.fde-foot .label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-ink);
}

/* ---------- business ---------- */

.biz-head,
.lab-head {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: start;
  gap: clamp(30px, 5vw, 80px);
  margin-bottom: clamp(36px, 5vw, 60px);
}

.biz-head .display,
.lab-head .display { font-size: clamp(2.8rem, 6.5vw, 6.7rem); }

.biz-head .lead,
.lab-head .lead { margin-bottom: 4px; }

.head-side { max-width: 33em; }

.lab-head--stack {
  display: block;
  margin-bottom: clamp(34px, 4vw, 52px);
}

.lab-head--stack .display { max-width: none; }

.lab-sub {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  align-items: start;
  gap: clamp(24px, 4vw, 60px);
  margin-top: clamp(20px, 3vw, 34px);
}

.lab-sub .kicker { margin-bottom: 0; padding-top: 4px; }

.lab-sub .lead { max-width: 34em; margin-bottom: 0; }

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(44px, 5vw, 72px) 0;
  border-top: 1px solid var(--line-dark);
}

.service-copy h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.service-copy p {
  max-width: 31em;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted-dark);
}

.tags {
  display: flex;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .14em;
  color: var(--muted-dark);
}

.tags span:first-child { color: var(--accent); }

.tags span + span::before {
  content: "/";
  margin-right: 12px;
  color: var(--line-dark);
}

.service-viz {
  width: 100%;
  max-width: 620px;
  justify-self: end;
}

.service--reverse .service-copy {
  grid-column: 2;
  grid-row: 1;
}

.service--reverse .service-viz {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.viz {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.viz-grid path {
  fill: none;
  stroke: rgba(243, 239, 229, .08);
  stroke-width: 1;
}

.risk-zone { opacity: .35; }

.risk-area {
  opacity: 1;
  transition: opacity 1.2s ease .35s;
}

.risk-line {
  fill: none;
  stroke: rgba(243, 239, 229, .24);
  stroke-width: 1.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.8s var(--ease);
}

.risk-line--a {
  stroke: var(--accent);
  stroke-width: 1.8;
}

.risk-line--b { transition-delay: .15s; }
.risk-line--c { transition-delay: .3s; }

.risk-threshold {
  stroke: rgba(243, 239, 229, .32);
  stroke-width: 1;
  stroke-dasharray: 4 7;
}

.risk-dot {
  fill: var(--accent);
  opacity: 1;
  transition: opacity .4s ease 1.15s;
}

.js .risk-area,
.js .risk-dot { opacity: 0; }

.js .risk-line { stroke-dashoffset: 1; }

.service.in-view .risk-area,
.service.in-view .risk-dot { opacity: 1; }

.service.in-view .risk-line { stroke-dashoffset: 0; }

/* thick-data layers */

.layers {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
  overflow: hidden;
}

.layer {
  display: flex;
  align-items: center;
  gap: 16px;
  width: var(--w);
  height: 52px;
  margin-left: var(--x);
  padding: 0 16px;
  border: 1px solid var(--line-dark);
  background: rgba(243, 239, 229, .025);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  opacity: 1;
  transform: none;
  transition: transform 1s var(--ease) var(--d), opacity .8s ease var(--d);
}

.js .layer {
  opacity: .72;
  transform: translateX(calc(var(--x) * -1));
}

.service.in-view .layer {
  transform: translateX(0);
  opacity: 1;
}

.layer i {
  display: block;
  flex: 1;
  height: 6px;
  background: repeating-linear-gradient(90deg, rgba(243, 239, 229, .28) 0 2px, transparent 2px 8px);
  opacity: .55;
}

.layer:nth-child(2) i { background: repeating-linear-gradient(90deg, rgba(255, 90, 31, .55) 0 2px, transparent 2px 10px); }
.layer:nth-child(3) i { background: repeating-linear-gradient(90deg, rgba(243, 239, 229, .2) 0 4px, transparent 4px 7px); }
.layer:nth-child(4) i { background: repeating-linear-gradient(90deg, rgba(243, 239, 229, .35) 0 1px, transparent 1px 6px); }

.scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
}

.service.in-view .scan {
  opacity: .85;
}

.service.is-live .scan {
  animation: scan 5.5s linear infinite;
}

@keyframes scan {
  from { transform: translateY(20px); }
  to { transform: translateY(240px); }
}

/* decision fan */

.tree {
  display: grid;
  grid-template-columns: minmax(64px, 92px) minmax(0, 1fr) minmax(44px, 72px);
  align-items: stretch;
  gap: 10px;
  padding: 16px 0;
}

.tree-inputs {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted-dark);
}

.tree-inputs li {
  display: flex;
  align-items: center;
  height: 40px;
}

.tree-svg {
  align-self: center;
  width: 100%;
  height: 240px;
  overflow: visible;
}

.tree-lines path {
  fill: none;
  stroke: rgba(243, 239, 229, .32);
  stroke-width: 1.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s var(--ease);
}

.tree-lines path:nth-child(2) { transition-delay: .08s; }
.tree-lines path:nth-child(3) { transition-delay: .16s; }
.tree-lines path:nth-child(4) { transition-delay: .24s; }
.tree-lines path:nth-child(5) { transition-delay: .32s; }
.tree-lines path:nth-child(6) { transition-delay: .4s; }

.tree-lines .tree-trunk {
  stroke: var(--accent);
  stroke-width: 2;
  transition-delay: .52s;
}

.tree-dot {
  fill: var(--accent);
  opacity: 1;
  transition: opacity .4s ease 1s;
}

.tree-halo {
  fill: none;
  stroke: rgba(255, 90, 31, .36);
  stroke-width: 1;
  opacity: 0;
  transition: opacity .4s ease 1.1s;
}

.tree-output {
  align-self: center;
  justify-self: end;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.2;
  color: var(--paper);
}

.js .tree-lines path { stroke-dashoffset: 1; }
.service.in-view .tree-lines path { stroke-dashoffset: 0; }
.js .tree-dot { opacity: 0; }
.service.in-view .tree-dot { opacity: 1; }
.js .tree-halo { opacity: 0; }
.service.in-view .tree-halo { opacity: 1; }

/* ---------- lab ---------- */

.lab-head { margin-bottom: clamp(40px, 6vw, 70px); }

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(30px, 5vw, 80px);
}

.lab-index .label { color: var(--muted-light); }

.roles {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.role {
  display: block;
  padding: clamp(24px, 3vw, 36px) 0;
}

.role:last-child { padding-bottom: 8px; }

.role-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.role-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .03em;
  color: var(--muted-light);
}

.role h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.role-skill {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-light);
}

.lab-visual {
  position: sticky;
  top: 100px;
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

.ring {
  width: min(100%, 520px);
  height: auto;
  overflow: visible;
}

.ring-lines circle {
  fill: none;
  stroke: rgba(8, 8, 10, .22);
  stroke-width: 1.2;
}

.ring-dotted {
  stroke: rgba(8, 8, 10, .32);
  stroke-dasharray: 1 10;
}

.ring-axis {
  fill: none;
  stroke: rgba(8, 8, 10, .08);
  stroke-width: 1;
}

.orbit {
  transform-origin: 280px 280px;
  animation: spin 70s linear infinite;
  animation-play-state: paused;
}

.lab.is-live .orbit { animation-play-state: running; }

.orbit--b {
  animation-duration: 95s;
  animation-direction: reverse;
}

.orbit--c { animation-duration: 50s; }

.orbit circle { fill: var(--accent); }
.orbit--b circle { fill: var(--ink); }
.orbit--c circle { fill: var(--ink); opacity: .38; }

.ring-star { fill: var(--accent); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- profile ---------- */

.profile-head {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: start;
  gap: clamp(30px, 5vw, 80px);
}

.profile-head h2 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.12;
}

.profile-head h2 strong { font-weight: 600; }

.profile-head h2 .profile-en {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--muted-dark);
}

.profile-side .kicker { margin-bottom: 18px; }

.profile-body p {
  max-width: 34em;
  margin: 0 0 20px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.9;
  color: var(--muted-dark);
}

.profile-body p:last-child { margin-bottom: 0; }

.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr .6fr;
  gap: 30px;
  margin: clamp(32px, 4vw, 52px) 0 clamp(48px, 6vw, 72px);
  padding: 26px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.contact .label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}

.contact p,
.contact a {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
  text-decoration: none;
}

.contact a { transition: color .2s ease; }

.contact a:hover { color: var(--accent); }

.contact-empty { color: var(--muted-dark) !important; }

.disclaimer {
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .02em;
  color: rgba(243, 239, 229, .58);
}

/* ---------- careers ---------- */

.careers-head {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: end;
  gap: clamp(30px, 5vw, 80px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.careers-head::before {
  content: "OPEN";
  position: absolute;
  right: 0;
  top: -.34em;
  z-index: 0;
  font-family: var(--font-display-latin);
  font-size: clamp(6rem, 14vw, 14rem);
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.08em;
  color: rgba(8, 8, 10, .035);
  pointer-events: none;
}

.careers-title,
.careers-intro { position: relative; z-index: 1; }

.careers .display { font-size: clamp(2.8rem, 6.2vw, 6.2rem); }

.careers .kicker {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.careers-intro { max-width: 33em; }

.careers-label {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--accent-ink);
}

.careers-list { border-top: 1px solid var(--line-light); }

.career {
  padding: clamp(36px, 4.5vw, 60px) 0;
  border-bottom: 1px solid var(--line-light);
}

.career:last-child { border-bottom: 0; }

.career-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}

.career-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.career-heading-body {
  flex: 1;
  min-width: 0;
}

.career h3 {
  flex: 1;
  min-width: 0;
  max-width: 980px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 2.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.career-no {
  flex: none;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--muted-light);
}

.career-pay {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .05em;
  color: var(--accent-ink);
}

.career-apply {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-light);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.career-apply:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.career-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px);
  margin-top: clamp(28px, 3vw, 40px);
}

.career-block {
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}

.career-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--accent-ink);
}

.career-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted-light);
}

.careers-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--muted-light);
}

.careers-foot p { margin: 0; }

.careers-foot a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}

.careers-foot a:hover { color: var(--accent-ink); }

@media (max-width: 1000px) {
  .careers-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .careers-head::before {
    font-size: 30vw;
    top: -.18em;
  }

  .career-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .careers .display { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .career-top { grid-template-columns: 1fr; gap: 22px; }
  .career h3 { font-size: clamp(1.8rem, 7.5vw, 2.3rem); }
  .career-apply { justify-self: start; }
  .careers-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .05em;
  color: var(--muted-dark);
}

.footer-top p { margin: 0; }

.footer-top a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-top a:hover { color: var(--paper); }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js .mask > span { transform: none; }
  .js .seam { transform: none; }
  .js .risk-area,
  .js .risk-dot,
  .js .tree-dot { opacity: 1; }
  .js .risk-line,
  .js .tree-lines path { stroke-dashoffset: 0; }
  .line--outline > span {
    color: var(--paper);
    -webkit-text-stroke: 0;
  }
  .orbit { animation: none; }
  .scan { display: none; }
}

@media (forced-colors: active) {
  .line--outline > span {
    color: CanvasText;
    -webkit-text-stroke: 0;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav a { font-size: 12px; }
}

@media (max-width: 900px) {
  .site-header { height: 60px; gap: 16px; }
  .nav { display: none; }
  .menu-button { display: block; }
  .header-side { margin-left: auto; }
  .hero-wrap { padding-top: 84px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .hero-copy {
    max-width: 100%;
    padding-bottom: 36px;
  }

  .hero-title { font-size: clamp(2.9rem, 12.6vw, 5.4rem); }

  .hero-desc {
    max-width: 32em;
    padding-left: 14px;
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-meta,
  .hero-foot { font-size: 9px; letter-spacing: .1em; }

  .hero-meta { gap: 12px; }
  .coord { white-space: normal; text-align: right; }

  .hero-shade {
    background: linear-gradient(180deg, rgba(8, 8, 10, 0) 28%, rgba(8, 8, 10, .5) 56%, var(--ink) 84%);
  }

  .hero {
    --sun-x: 50%;
    --sun-y: 31%;
  }

  .fde,
  .business,
  .lab,
  .profile,
  .careers { padding: 64px 0; }

  .fde-head { grid-template-columns: 1fr; gap: 28px; }

  .fde-word {
    font-size: clamp(9rem, 48vw, 13rem);
    line-height: .76;
  }

  .fde-intro h2 { font-size: clamp(2.2rem, 8vw, 2.4rem); }

  .fde-steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 54px;
  }

  .fde-steps::before,
  .fde-steps::after {
    top: 0;
    bottom: 0;
    left: 3px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .js .fde-steps::after {
    transform: scaleY(0);
    transform-origin: top center;
  }

  .in-view.fde-steps::after { transform: scaleY(1); }

  .step { padding: 0 0 30px 28px; }
  .step:last-child { padding-bottom: 0; }

  .step::before {
    top: 4px;
    left: 0;
  }

  .fde-foot { grid-template-columns: 1fr; gap: 18px; }

  .biz-head,
  .lab-head,
  .profile-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .lab-head--stack { display: block; }

  .lab-sub {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
  }

  .lab-sub .kicker { padding-top: 0; }

  .title-line { white-space: normal; }

  .biz-head .display,
  .lab-head .display { font-size: clamp(2.5rem, 12vw, 3.2rem); }

  .service {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 54px 0;
  }

  .service--reverse .service-copy,
  .service--reverse .service-viz {
    grid-column: auto;
    grid-row: auto;
  }

  .service-copy h3 { font-size: clamp(2rem, 8vw, 2.2rem); }

  .service-viz,
  .service--reverse .service-viz {
    max-width: 100%;
    justify-self: stretch;
  }

  .layer {
    height: 46px;
    font-size: 10px;
  }

  .tree { grid-template-columns: 64px minmax(0, 1fr) 50px; gap: 6px; }

  .tree-inputs { font-size: 10px; }

  .lab-grid { grid-template-columns: 1fr; gap: 34px; }

  .lab-visual {
    position: static;
    order: -1;
    max-width: 360px;
    margin-inline: auto;
    padding-top: 0;
  }

  .profile-head h2 { font-size: clamp(2rem, 9.5vw, 2.4rem); }

  .contact {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 0;
  }


  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 10px;
  }

  .legal-link,
  .footer-top a,
  .contact a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }
}

@media (max-width: 420px) {
  .hero-title { font-size: 12.4vw; }
  .hero-desc { font-size: 14px; }
  .btn { padding: 0 16px; font-size: 10px; }
  .tree { grid-template-columns: 56px minmax(0, 1fr) 46px; }
  .layer { font-size: 9px; padding: 0 12px; }
  .menu-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 380px) {
  .hero-meta,
  .hero-foot {
    font-size: 8px;
    gap: 8px;
    letter-spacing: .06em;
  }
}

@media (max-height: 560px) {
  .menu-nav { padding: 12px var(--gutter); }
  .menu-nav a { padding: 8px 0; font-size: 1.5rem; }
  .menu-foot { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

@media (hover: hover) and (pointer: fine) {
  .service:hover .risk-line--a { stroke: #ff7a49; }
  .service:hover .layer { border-color: rgba(243, 239, 229, .28); }
  .service:hover .tree-lines .tree-trunk { stroke: #ff7a49; }
}
