:root {
  --bg: #212121;
  --fg: #efefef;
  --muted: #ababab;
  --dim: #6e6e6e;
  --line: #3a3a3a;
  --card: #2a2a2a;
  --sans: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 3.9vw, 56px);
  --section: clamp(112px, 15vw, 220px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 var(--gutter);
  transition: height .4s var(--ease), background-color .4s var(--ease);
}
.nav::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.nav.scrolled { height: 64px; background: rgba(33, 33, 33, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.scrolled::after { transform: scaleX(1); }

.wordmark {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  animation: settle 1.6s var(--ease) .15s both;
}
@keyframes settle {
  from { letter-spacing: 0.32em; opacity: 0; }
  to { letter-spacing: -0.01em; opacity: 1; }
}

.nav nav { display: flex; align-items: center; gap: clamp(20px, 3.4vw, 48px); }
.nav-link, .btn {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-link { position: relative; padding: 6px 0; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 11px;
  background: var(--fg);
  color: var(--bg);
  transition: background-color .3s var(--ease);
}
.btn .dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 11px;
  transition: transform .4s var(--ease);
}
.btn:hover { background: #fff; }
.btn:hover .dot { transform: rotate(-45deg); }
.btn-lg { font-size: 13px; padding: 12px 12px 12px 16px; gap: 14px; }
.btn-lg .dot { width: 22px; height: 22px; font-size: 13px; }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(120px, 17vh, 190px) var(--gutter) 0;
}
.hero-title {
  font-weight: 400;
  font-size: clamp(50px, 9.6vw, 156px);
  line-height: .98;
  letter-spacing: -0.04em;
}
.hero-title .line { display: block; }
.hero-title .indent { padding-left: 0.92em; }
.hero-title .line {
  animation: rise 1.2s var(--ease) both;
}
.hero-title .line:nth-child(2) { animation-delay: .12s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(0.25em); }
  to { opacity: 1; transform: none; }
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 20px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
  animation: fade 1.2s var(--ease) .45s both;
}
.hero-mid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 64px);
  min-height: clamp(300px, 42vh, 600px);
  margin-top: clamp(12px, 2.5vh, 36px);
}
.hero-art {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.6s var(--ease) .3s;
}
.hero-art.ready { opacity: 1; }
.hero-art.off { display: none; }
.hero-art canvas {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  touch-action: pan-y;
  /* sand sits straight on the page; edges dissolve into it */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
}
.hero-sub {
  align-self: end;
  max-width: 17.5em;
  margin-bottom: clamp(20px, 4vh, 44px);
  font-size: clamp(22px, 2.15vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.022em;
  animation: fade 1.2s var(--ease) .6s both;
}

.hero-cta {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(16px, 1.25vw, 18px);
}
.hero-cta-arrow { display: inline-block; transition: transform .4s var(--ease); }
.hero-cta:hover .hero-cta-arrow { transform: translateX(5px); }

.hero-foot p { max-width: 40ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.4; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Shared grid: content sits from the 5th of 12 columns, like a magazine margin */
.problem, .pov, .services, .system, .foundation, .contact { padding: var(--section) var(--gutter) 0; }
.statement, .shifts, .section-title, .offers, .system-head, .outputs {
  margin-left: clamp(0px, 33.4%, 520px);
}

.statement {
  max-width: 21em;
  font-weight: 400;
  font-size: clamp(27px, 3vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.lit .u { color: #464646; transition: color .45s var(--ease); }
.lit .u.on { color: var(--fg); }

.shifts { margin-top: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); }
.shifts li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.35;
}
.shifts .from { color: var(--muted); }
.shifts .to { position: relative; padding-left: 36px; }
.shifts .to::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--muted);
  transition: color .3s var(--ease), transform .4s var(--ease);
}
.shifts li:hover .to::before { color: var(--fg); transform: translateX(4px); }

/* Point of view */
.pov-title {
  max-width: 13em;
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.pov-body {
  margin: clamp(40px, 5vw, 72px) 0 0 clamp(0px, 33.4%, 520px);
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.45;
}

/* Services */
.section-title {
  max-width: 17em;
  font-weight: 400;
  font-size: clamp(27px, 3vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.025em;
}
.offers { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: baseline;
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--line);
}
.offer-name {
  font-weight: 400;
  font-size: clamp(22px, 2.1vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.offer-line {
  max-width: 26em;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.45;
}
.offer-name { display: flex; align-items: center; gap: 18px; }
.offer-icon {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--muted);
  transition: color .4s var(--ease);
}
.offer-icon * { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.offer-icon .dot { fill: currentColor; stroke: none; }
.offer:hover .offer-icon { color: var(--fg); }
/* Icons draw themselves in as each row arrives */
.js .offer.reveal .offer-icon > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .offer.reveal.in .offer-icon > * { animation: draw 1.6s var(--ease) .2s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* AI system */
.system-head { display: grid; gap: 28px; max-width: 34em; }
.system-head .section-title { margin-left: 0; }
.system-head p { max-width: 30em; color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; }
.outputs {
  margin-top: clamp(64px, 8vw, 112px);
  max-width: 15em;
  font-size: clamp(34px, 4.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--fg);
}

/* Flagship */
.card {
  background: var(--card);
  padding: clamp(28px, 4.4vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 80px);
}
.card-top h2 {
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 9em;
}
.card-top p { margin-top: 28px; max-width: 24em; color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; }
.parts { counter-reset: part; align-self: end; border-top: 1px solid var(--line); }
.parts li {
  counter-increment: part;
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 1.4vw, 21px);
  letter-spacing: -0.01em;
}
.parts li::before { content: "0" counter(part); font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 6px; }
.card-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.price .amount { font-size: clamp(44px, 5vw, 80px); line-height: .9; letter-spacing: -0.045em; }

/* Contact */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  min-height: clamp(260px, 30vw, 420px);
  padding: clamp(24px, 3.4vw, 48px);
  background: var(--card);
  transition: background-color .5s var(--ease);
}
.cta-title {
  font-size: clamp(46px, 8.4vw, 136px);
  line-height: .95;
  letter-spacing: -0.045em;
  max-width: 8em;
}
.cta-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(56px, 6vw, 84px);
  height: clamp(56px, 6vw, 84px);
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  transition: transform .5s var(--ease);
}
.cta:hover { background: #2f2f2f; }
.cta:hover .cta-arrow { transform: rotate(-45deg); }
.contact-line { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.contact-line a:hover { color: var(--fg); }

.foot {
  display: flex;
  justify-content: space-between;
  margin: 0 var(--gutter);
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* Contact drawer: a light panel that slides over the page */
body.locked { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(10, 10, 10, .55); opacity: 0; transition: opacity .5s var(--ease); }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(760px, 100%);
  background: #efefef;
  color: #1d1d1d;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .65s var(--ease);
}
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-body { padding: clamp(28px, 4.5vw, 64px); }
.drawer-close {
  position: absolute; top: clamp(18px, 2.6vw, 34px); right: clamp(14px, 2.6vw, 34px);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; color: #1d1d1d; cursor: pointer;
}
.drawer-close svg { width: 28px; height: 28px; transition: transform .45s var(--ease); }
.drawer-close path { fill: none; stroke: currentColor; stroke-width: 1.4; }
.drawer-close:hover svg { transform: rotate(90deg); }
.drawer h2 { font-weight: 400; font-size: clamp(38px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.035em; padding-right: 56px; }
.drawer-intro { margin-top: 22px; padding-bottom: 30px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.4; border-bottom: 1px solid #1d1d1d; }
.drawer form { display: grid; gap: 14px; margin-top: 34px; }
.drawer form[hidden], .f-done[hidden] { display: none; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f input, .f textarea {
  width: 100%; border: 0; border-radius: 0; background: #e2e2e2; color: #1d1d1d;
  padding: 20px 22px; font: 400 16px/1.35 var(--sans);
  transition: background-color .25s var(--ease);
}
.f textarea { min-height: 140px; resize: vertical; }
.f input::placeholder, .f textarea::placeholder { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: #8b8b8b; }
.f input:focus, .f textarea:focus { outline: 1px solid #1d1d1d; outline-offset: -1px; background: #e8e8e8; }
.f-group { border: 0; padding: 0; margin: 20px 0 2px; min-width: 0; }
.f-group legend { padding: 0; margin-bottom: 12px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 14px 16px; background: #e2e2e2; cursor: pointer;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .02em;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.chip:hover span { background: #d8d8d8; }
.chip input:checked + span { background: #1d1d1d; color: #efefef; }
.chip input:focus-visible + span { outline: 1px solid #1d1d1d; outline-offset: 2px; }
.f-submit {
  margin-top: 26px; width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 26px 24px; border: 0; background: #1d1d1d; color: #efefef; cursor: pointer;
  font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .02em;
}
.f-submit .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #efefef; color: #1d1d1d; font-family: var(--sans); transition: transform .4s var(--ease); }
.f-submit:hover .dot { transform: rotate(-45deg); }
.f-submit[disabled] { opacity: .6; cursor: progress; }
.f-status { min-height: 1.4em; font-size: 15px; line-height: 1.4; color: #9b2c2c; }
.f-status a { text-decoration: underline; }
.f-done { margin-top: 40px; }
.f-done h3 { font-weight: 400; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.f-done p { margin-top: 14px; font-size: 18px; line-height: 1.45; max-width: 24em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 960px) {
  .statement, .shifts, .section-title, .offers, .system-head, .outputs { margin-left: 0; }
  .pov-body { margin-left: 0; }
  .card { grid-template-columns: 1fr; }
  .parts { align-self: auto; }
  .hero-mid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; aspect-ratio: 1 / 1; max-height: 440px; min-height: 0; }
  .hero-art canvas { right: auto; left: 0; }
  .hero-sub { margin-bottom: 8px; }
}

/* Phone */
@media (max-width: 640px) {
  .nav { height: 68px; }
  .nav.scrolled { height: 56px; }
  .nav-link { display: none; }
  .wordmark { font-size: 24px; }
  .hero-title .indent { padding-left: 0; }
  .hero-foot { margin-top: 36px; padding-bottom: 22px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-cta { margin-left: 0; }
  .hero { padding-top: 116px; }
  .shifts li { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .offer { grid-template-columns: 1fr; gap: 10px; padding: 24px 0 26px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .btn-lg { justify-content: space-between; }
  .cta { flex-direction: column; align-items: flex-start; justify-content: space-between; }
  .f-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .js .offer.reveal .offer-icon > * { stroke-dashoffset: 0; }
  .drawer-panel, .drawer-scrim { transition: none; }
}
