@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/plex-sans-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/plex-sans-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/plex-sans-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/plex-mono-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/plex-mono-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #07080a;
  --bg-2: #0b0c0f;
  --panel: #0e1014;
  --text: #f4f1e9;
  --muted: #9a978d;
  --line: rgba(244, 241, 233, 0.14);
  --line-strong: rgba(244, 241, 233, 0.24);
  --lime: #c6ff4a;
  --blue: #8fb0ff;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --wrap: 1240px;
  --ease: cubic-bezier(0.2, 0.65, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 640px at 84% -8%, rgba(198, 255, 74, 0.13), transparent 62%),
    radial-gradient(760px 520px at 2% 16%, rgba(143, 176, 255, 0.09), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--lime);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p,
figure,
ul,
blockquote {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--lime);
  color: var(--bg);
  padding: 10px 14px;
  font: 12px/1 var(--mono);
  transition: top 0.2s var(--ease);
}
.skip:focus {
  top: 16px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin: 0 auto;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 10, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark .slash {
  display: inline-grid;
  place-items: center;
  min-width: 1.1em;
  margin: 0 0.12em;
  padding: 0.18em 0.1em 0.14em;
  background: var(--lime);
  color: var(--bg);
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav a:hover {
  color: var(--text);
  border-color: var(--lime);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.header-cta:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 241, 233, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 233, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 12px rgba(198, 255, 74, 0.55);
}
.eyebrow .sep {
  color: var(--line-strong);
}

h1 {
  margin: 28px 0 0;
  font-family: var(--sans);
  font-size: clamp(3.9rem, 8.6vw, 8.2rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
}
h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
  letter-spacing: -0.035em;
}

.lede {
  max-width: 44ch;
  margin-top: 32px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg);
  box-shadow: 4px 4px 0 rgba(198, 255, 74, 0.22);
}
.btn-lime:hover {
  box-shadow: 2px 2px 0 rgba(198, 255, 74, 0.22);
}
.btn-ghost {
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(244, 241, 233, 0.06);
}

.hero-foot {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-foot span::before {
  content: "·";
  margin-right: 9px;
  color: var(--line-strong);
}
.hero-foot span:first-child::before {
  content: none;
  margin: 0;
}

/* ---------- system card ---------- */
.system {
  position: relative;
  align-self: center;
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(20, 23, 28, 0.88), rgba(9, 10, 13, 0.92));
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.2deg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.system::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  right: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
}
.system-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.system-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.system-row .k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.system-row .v {
  font-size: 12.5px;
  text-align: right;
}
.system-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.system-foot .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(198, 255, 74, 0.6);
}

/* ---------- ticker ---------- */
.ticker {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 7vw, 90px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 14px 0;
}
.ticker span {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker span::before {
  content: "◆";
  margin-right: 12px;
  color: var(--lime);
  font-size: 6px;
}

/* ---------- sections ---------- */
.section {
  padding: clamp(76px, 9vw, 124px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(36px, 4vw, 54px);
}
.section-head .index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--lime);
}
.section-head h2 {
  font-family: var(--sans);
  font-size: clamp(1.9rem, 3.1vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.section-head .rule {
  flex: 1;
  height: 1px;
  margin-left: 10px;
  background: var(--line);
}

/* ---------- capabilities ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.cap {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: clamp(24px, 3vw, 34px);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: background 0.25s var(--ease);
}
.cap:hover {
  background: rgba(244, 241, 233, 0.035);
}
.cap .num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--lime);
}
.cap h3 {
  margin-top: 28px;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cap p {
  max-width: 38ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.tags li {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: rgba(244, 241, 233, 0.02);
}

/* ---------- approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
}
.step {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.step .n {
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--lime);
}
.step h3 {
  margin: 22px 0 10px;
  font-size: 1.15rem;
  font-weight: 500;
}
.step p {
  max-width: 32ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.pullquote {
  margin-top: clamp(64px, 8vw, 96px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.pullquote em {
  font-style: italic;
  color: var(--lime);
}

/* ---------- studio ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}
.studio-copy p {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.1vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.studio-copy em {
  font-style: italic;
  color: var(--lime);
}
.studio-note {
  padding: 4px 0 0 28px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.studio-note .mono {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.studio-note p {
  font-size: 14px;
  line-height: 1.7;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.text-link:hover {
  border-color: var(--lime);
  gap: 11px;
}

/* ---------- contact ---------- */
.contact {
  padding-bottom: clamp(86px, 10vw, 136px);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}
.contact-title {
  font-family: var(--sans);
  font-size: clamp(2.9rem, 5.4vw, 5.6rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.055em;
}
.contact-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
  letter-spacing: -0.03em;
}
.contact-side {
  padding-bottom: 6px;
}
.mail {
  display: inline-block;
  max-width: 100%;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--lime);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.mail:hover {
  background: var(--lime);
  color: var(--bg);
}
.contact-side p {
  margin-top: 14px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-inner nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner a {
  transition: color 0.2s var(--ease);
}
.footer-inner a:hover {
  color: var(--lime);
}

/* ---------- reveal ---------- */
.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- legal ---------- */
.legal {
  padding: clamp(64px, 8vw, 104px) 0 96px;
}
.legal .wrap {
  max-width: 820px;
}
.legal h1 {
  margin: 24px 0 30px;
  font-family: var(--sans);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.05em;
}
.legal h2 {
  margin: 36px 0 10px;
  font-size: 1.15rem;
  font-weight: 500;
}
.legal p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.legal a {
  border-bottom: 1px solid var(--line-strong);
}
.legal a:hover {
  border-color: var(--lime);
}
.legal .back {
  display: inline-flex;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .system {
    justify-self: start;
    width: min(100%, 520px);
    transform: none;
  }
  .cap-grid {
    grid-template-columns: 1fr;
  }
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .studio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .studio-note {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 14px 0;
  }
  .nav {
    order: 3;
    width: 100%;
    gap: 18px;
    font-size: 9px;
  }
  .header-cta {
    margin-left: auto;
    padding: 8px 10px;
    font-size: 9px;
  }
  h1 {
    font-size: clamp(3.2rem, 13.5vw, 5.2rem);
  }
  .lede {
    font-size: 15.5px;
  }
  .hero-foot {
    gap: 8px 18px;
  }
  .ticker-inner {
    justify-content: flex-start;
    gap: 10px 20px;
  }
  .system {
    padding: 18px;
  }
  .system-row {
    gap: 12px;
  }
  .system-row .v {
    font-size: 11.5px;
  }
  .cap {
    min-height: 0;
    padding: 24px;
  }
  .cap h3 {
    margin-top: 20px;
  }
  .contact-title {
    font-size: clamp(2.5rem, 11vw, 3.7rem);
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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