:root {
  --bg: #fafafa;
  --ink: #10141A;
  --muted: #6b7280;
  --accent: #FF5533;
  --accent-ink: #d9411f;
  --dark: #10141A;
  --line: #e7e7e7;
  --card: #fbfaf8;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 18px;
}
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; margin-bottom: 18px; }
.accent { color: var(--accent); }

/* Header */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: block; flex-shrink: 0; }
.logo img { height: 28px; width: auto; max-width: none; }
.intro-lock header, .intro-active header { transform: translateY(-100%); }
nav { display: flex; align-items: center; gap: 28px; }
nav a { text-decoration: none; font-size: 15px; color: #3a3f47; }
nav a:hover { color: var(--accent-ink); }
nav a.pill {
  white-space: nowrap;
  background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 14px;
}
nav a.pill:hover { opacity: 0.85; color: #fff; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: 8px; transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { transform: translateY(-1px); opacity: .92; }
.btn.ghost { border: 1px solid #cfd2d8; color: var(--ink); }
.btn.ghost:hover { background: #f0f0ee; }

/* Intro */
.intro { position: relative; height: 100vh; height: 100svh; background: var(--dark); color: #F5F4F0; display: grid; place-items: center; overflow: hidden; }
.intro svg { width: min(82vw, 780px); height: auto; overflow: visible; }
.skip-intro .intro { display: none; }
.intro-lock { overflow: hidden; }
.scrollhint { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: #8f98a8; font-family: var(--mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: 0; animation: hintIn .8s ease 5.3s forwards; }
.scrollhint i { width: 1px; height: 38px; background: linear-gradient(#8f98a8, transparent); transform-origin: top; animation: hintLine 1.8s ease-in-out 5.3s infinite; }
@keyframes hintIn { to { opacity: 1; } }
@keyframes hintLine { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Hero */
.hero { background: var(--bg); overflow: hidden; position: relative; display: flex; align-items: center; padding-top: 72px; min-height: 100vh; min-height: 100svh; max-height: 960px; }
#hero { scroll-margin-top: -72px; }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero .copy { max-width: 620px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 80px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 500; margin-bottom: 26px; }
.hero p.sub { font-size: clamp(17px, 1.5vw, 20px); color: #555b66; max-width: 540px; margin: 0 0 38px; line-height: 1.6; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.rule { width: 64px; height: 3px; background: var(--accent); border: 0; margin: 0 0 28px; }
.hero .map { position: absolute; right: -4vw; top: -6%; height: 112%; aspect-ratio: 1836 / 2048; }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { opacity: 0; animation: heroIn .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); transition: none; transform: translateY(26px); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

section.block { padding: 120px 0; }
#blocks { background: #fff; }
.head { max-width: 760px; margin-bottom: 56px; }
.head p { color: var(--muted); font-size: 18px; margin: 0; }

/* Building blocks */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 28px 32px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.7,.2,1) .2s; }
.card.in::before { transform: scaleX(1); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,17,21,.08); }
.card .num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.card .art { height: 190px; display: flex; align-items: center; justify-content: center; }
.card .art svg { width: 100%; height: 100%; overflow: visible; }
.card h3 { font-size: 26px; font-weight: 700; margin: 8px 0 8px; letter-spacing: -0.01em; }
.card p { margin: 0; color: #4b5059; font-size: 17px; }

/* Statement */
.statement { background: var(--dark); color: #f4f2ee; padding: 140px 0; text-align: left; position: relative; overflow: hidden; }
.statement::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(255,85,51,.12), transparent 60%); }
.statement .wrap { position: relative; }
.statement img { height: 56px; width: auto; max-width: none; margin: 0 0 48px; }
.statement p { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.3; font-weight: 400; max-width: 1000px; margin: 0; letter-spacing: -0.015em; }
.statement .w { opacity: .14; transition: opacity .6s ease; transition-delay: calc(var(--i) * 45ms); display: inline-block; }
.statement.in .w { opacity: 1; }
.statement .w.hl { color: var(--accent); }

/* Tech diagram */
.diagram { background: #0e1420; border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px rgba(15,17,21,.18); }
.diagram .scroller { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.diagram .scroller::-webkit-scrollbar { display: none; }
.diagram svg { width: 100%; height: auto; display: block; }
.phase { display: flex; align-items: center; gap: 14px; margin: 14px 8px 4px; min-height: 30px; color: #c9d2e6; font-size: 16px; }
.phase .step { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.phase .txt { transition: opacity .25s ease; }
.phase.swap .txt { opacity: 0; }
.diagram text { font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.points3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.point { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; }
.point .arrow { color: var(--accent-ink); font-weight: 700; }
.point strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.point .desc { grid-column: 2; color: var(--muted); font-size: 16px; }

/* Patent */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.shot { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(15,17,21,.18); }
.shot img { width: 100%; transform: scale(1.08); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.shot.in img { transform: scale(1); }
.list { display: grid; gap: 34px; }
.item { display: grid; grid-template-columns: 40px 1fr; }
.item .n { font-family: var(--mono); color: var(--accent-ink); font-size: 14px; padding-top: 5px; }
.item strong { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; display: block; }
.item span { color: var(--muted); font-size: 16px; }

/* Team */
.team { background: #f3f2ef; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 24px; transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.person:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,17,21,.09); }
.person .ph { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #e9e8e5; margin-bottom: 18px; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.person:hover .ph img { transform: scale(1.05); }
.person h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 12px; }
.chip { display: inline-block; align-self: flex-start; font-family: var(--mono); font-size: 11.5px; line-height: 1.4; color: var(--accent-ink); background: #fde9e3; padding: 6px 10px; border-radius: 10px; margin-bottom: 14px; }
.chip.adv { color: #3b4a6b; background: #e6e9f0; }
.person .aff { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.person a.in-link { margin-top: auto; font-size: 14px; color: var(--muted); text-decoration: none; }
.person a.in-link:hover { color: var(--accent-ink); }

footer { background: var(--dark); color: #8b919a; border-top: 1px solid rgba(255,255,255,.08); padding: 26px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { text-decoration: none; }
.flinks { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Legal pages */
.legal-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.legal { flex: 1 0 auto; width: 100%; max-width: 780px; margin: 0 auto; padding: 130px 24px 90px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin-bottom: 28px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 40px 0 10px; line-height: 1.25; }
.legal p, .legal li { color: #3a3f47; font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-ink); }
.legal mark { background: #fff1a8; color: #3a3300; padding: 1px 4px; border-radius: 4px; }
.draft { border: 1px solid #e3c34a; background: #fff8d6; border-radius: 12px; padding: 16px 18px; margin-bottom: 32px; color: #4a3d00; font-size: 15px; line-height: 1.55; }
footer a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1000px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  section.block { padding: 84px 0; }
  .hero { flex-direction: column; align-items: stretch; max-height: none; min-height: 0; padding: 112px 0 8px; }
  .hero .map { order: 2; }
  .hero .map { position: relative; right: auto; top: auto; height: auto; width: min(420px, 92%); margin: 36px 0 0 auto; }
  .cards3, .points3, .split { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  nav a:not(.pill) { display: none; }
  nav a.keep { display: inline; }
  .diagram { padding: 12px 0 16px; border-radius: 18px; }
  .diagram svg { width: 820px; max-width: none; }
  .phase { margin: 14px 18px 0; font-size: 15px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .team-grid { grid-template-columns: 1fr; gap: 12px; }
  .person { display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; align-items: start; padding: 14px; }
  .person:hover { transform: none; }
  .person .ph { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
  .person h3, .person .chip, .person .aff, .person a.in-link { grid-column: 2; }
  .person h3 { font-size: 17px; margin-bottom: 8px; }
  .person .chip { margin-bottom: 8px; }
  .person .aff { margin: 0 0 6px; font-size: 14px; }
  .person a.in-link { margin-top: 0; }
  .logo img { height: 24px; }
  .statement { padding: 100px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .statement .w { opacity: 1; transition: none; }
  .card::before { transform: none; transition: none; }
  .shot img { transform: none; transition: none; }
  .scrollhint, .scrollhint i { animation: none; opacity: 1; }
}
