:root {
  --bg: #000;
  --paper: #f5f5f7;
  --ink: #1d1d1f;
  --white: #f5f5f7;
  --mute: #6e6e73;
  --mute-2: #a1a1a6;
  --line: rgba(255,255,255,.14);
  --blue: #0071e3;
  --shadow: 0 20px 50px rgba(0,0,0,.18);
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
section { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.47;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #0071e3; color: #fff; }

.progress {
  position: fixed;
  z-index: 80;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #5ac8fa, #4b7bff 40%, #9b6dff);
}

.nav {
  position: fixed;
  z-index: 40;
  top: 0; left: 0; right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
  color: #fff;
  background: rgba(0,0,0,.78);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.nav.solid {
  background: rgba(251,251,253,.96);
  color: var(--ink);
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 52px; width: auto; }
.nav.solid .brand img { filter: invert(1); }
.links { display: flex; gap: 26px; }
.links a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: -.01em;
  opacity: .82;
}
.links a:hover { opacity: 1; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
}
.pill:hover { filter: brightness(1.08); }
.pill.light { background: #fff; color: #000 !important; }
.burger {
  display: none;
  width: 42px; height: 42px;
  border: 0; background: transparent;
  padding: 0; cursor: pointer;
}
.burger span {
  display: block; height: 1.5px; margin: 6px 10px; background: currentColor;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 18vh 6vw 10vh;
  overflow: hidden;
  background: #000;
}
.aurora { position: absolute; inset: 0; pointer-events: none; }
.aurora i {
  position: absolute;
  width: 46vw; height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .38;
}
.aurora i:first-child { background: #1d4ed8; top: -8%; right: -6%; animation: drift 16s ease-in-out infinite alternate; }
.aurora i:last-child { background: #6d28d9; bottom: -18%; left: -8%; animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(6%, 8%, 0) scale(1.08); } }
.hero-in { position: relative; max-width: 1100px; }
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute-2);
}
h1, h2, h3 { font-weight: 600; letter-spacing: -.045em; margin: 0; }
h1 {
  font-size: clamp(56px, 8.6vw, 120px);
  line-height: .92;
}
h1 span { display: block; }
h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: .98; letter-spacing: -.04em; }
.hero-sub {
  margin: 22px 0 0;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
  background: linear-gradient(100deg, #7dd3fc 0%, #60a5fa 28%, #818cf8 62%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; max-width: 720px; }
.lede.light { color: #d2d2d7; margin-top: 22px; }
.hero-cta { display: flex; align-items: center; gap: 22px; margin-top: 32px; }
.textlink {
  color: var(--blue);
  text-decoration: none;
  font-size: 17px;
}
.textlink:hover { text-decoration: underline; }
.house .textlink, .method .textlink, .ai .textlink { color: #9ecbff; }

.casas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.house {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 12vh 6vw 8vh;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.house > div { position: relative; z-index: 1; }
.house > div:first-of-type {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.house h2 { font-size: clamp(40px, 4vw, 64px); margin-bottom: 14px; }
.house p { margin: 0 0 18px; color: #d2d2d7; max-width: 460px; font-size: 18px; line-height: 1.45; }
.house .mark {
  width: min(440px, 92%);
  aspect-ratio: 3.55 / 1;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center;
  background: #fdfdff;
  border-radius: 28px;
  padding: 14px 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
}
.house-copy {
  align-self: flex-start;
  width: min(400px, 100%);
  padding: 22px 26px 18px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(8,8,10,.62);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.house-ai .house-copy {
  border-color: rgba(186,214,255,.34);
  background: rgba(5,8,18,.72);
}
.house-copy h2 { margin-bottom: 12px; line-height: 1.05; }
.house-ai { container-type: inline-size; }
.house-ai .house-copy { width: min(520px, 100%); }
.house-ai .house-copy h2 {
  white-space: nowrap;
  font-size: min(clamp(40px, 4vw, 64px), calc((100cqi - 80px) / 6.7));
}
.house-copy p { max-width: none; margin-bottom: 16px; }
.house-sim {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.house h2, .house .eyebrow, .house p, .house .textlink {
  text-shadow: 0 2px 16px rgba(0,0,0,.72);
}
.house-hseq { background: #000; border-top: 1px solid var(--line); }
.house-ai {
  background:
    radial-gradient(900px 520px at 85% 12%, rgba(59,130,246,.45), transparent 60%),
    radial-gradient(700px 480px at 10% 90%, rgba(147,51,234,.38), transparent 62%),
    #070b16;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.ai { background: #000; padding: 16vh 0 8vh; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.wrap.narrow { width: min(860px, calc(100% - 48px)); }
.ai h2, .models h2, .method h2, .diag h2, .about h2, .contact h2, .services h2, .marks h2, .apps-head h2 {
  margin: 0 0 18px;
}
.ai .lede, .models .lede, .method .lede, .diag .lede, .services .lede, .apps-head .lede, .contact .lede {
  color: var(--mute-2);
}
.do {
  list-style: none;
  margin: 72px auto 0;
  padding: 0;
  width: min(980px, calc(100% - 48px));
  border-top: 1px solid var(--line);
}
.do li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.do span {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--mute-2);
  padding-top: 8px;
}
.do h3 { font-size: 28px; margin-bottom: 8px; }
.do p { margin: 0; color: #d2d2d7; max-width: 560px; }

.models { background: #000; padding: 8vh 0 14vh; }
.model-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.model-grid article {
  background: #141416;
  border-radius: 24px;
  padding: 32px 28px 28px;
  min-height: 230px;
}
.model-grid b {
  display: block;
  font-size: clamp(52px, 6vw, 84px);
  letter-spacing: -.05em;
  line-height: .9;
  font-weight: 600;
  background: linear-gradient(180deg, #fff, #8ab4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.model-grid h3 { font-size: 22px; margin: 14px 0 8px; }
.model-grid p { margin: 0; color: var(--mute-2); }

.apps { background: #000; padding: 4vh 0 10vh; }
.apps-head { margin-bottom: 28px; }
.app-scroller {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.app {
  min-height: 420px;
  border-radius: 28px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.app .num {
  position: absolute;
  top: 18px; right: 28px;
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: .8;
  opacity: .18;
}
.app h3 { font-size: clamp(40px, 4vw, 64px); margin-bottom: 12px; }
.app p { margin: 0 0 18px; max-width: 560px; color: #e8e8ed; font-size: 18px; }
.app ul { margin: 0; padding: 0; list-style: none; }
.app li {
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #d2d2d7;
  font-size: 15px;
}
.app-gob { background: linear-gradient(160deg, #0c2348, #071226 70%); }
.app-seg { background: linear-gradient(165deg, #1c1c1e, #000 75%); }
.app-emp { background: linear-gradient(160deg, #10233f, #0a0a0c 72%); }
.app-dev {
  background:
    radial-gradient(500px 280px at 90% 10%, rgba(96,165,250,.55), transparent 60%),
    radial-gradient(420px 260px at 0% 100%, rgba(168,85,247,.5), transparent 60%),
    #0b1020;
}

.still {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  background: #000;
  overflow: hidden;
}
.still img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.45) contrast(1.05) brightness(.55);
}
.still-copy {
  position: relative;
  padding: 10vh 6vw;
}
.still-copy p {
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.02;
  max-width: 14ch;
}

.services { background: var(--paper); color: var(--ink); padding: 14vh 0; }
.services .eyebrow, .diag .eyebrow, .about .eyebrow, .contact .eyebrow, .marks .eyebrow { color: var(--mute); }
.services .lede, .diag .lede, .contact .lede { color: var(--mute); }
.bento {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.svc {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.svc img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.svc div { padding: 22px 22px 26px; }
.svc h3 { font-size: 22px; letter-spacing: -.03em; margin-bottom: 8px; }
.svc p { margin: 0; color: var(--mute); font-size: 15px; }

.method { background: #000; padding: 14vh 0; }
.method-pair {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.method-pair article {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 26px 30px;
}
.method-pair .eyebrow { margin-bottom: 12px; }
.method-pair h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; margin-bottom: 12px; }
.method-pair p { margin: 0; color: #d2d2d7; }
.method-ai {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(59,130,246,.4), transparent 62%),
    #070b16;
}
.method-ai .eyebrow { color: #9ecbff; }
.s3r-head { margin-top: 72px; }
.s3r-head h3 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.035em; margin: 0; }
.aimethod .eyebrow { color: #9ecbff; }
.aimethod h3 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.035em; margin: 0 0 14px; text-transform: none; color: var(--white); }
.aimethod > p { margin: 0 0 8px; color: #d2d2d7; max-width: 640px; }
.aimethod ol { margin: 18px 0 0; padding: 0; list-style: none; }
.aimethod li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 20px;
  letter-spacing: -.02em;
  max-width: 720px;
}
.aimethod b { font-weight: 600; }
.beliefs {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.beliefs article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.beliefs h3 { font-size: 28px; margin-bottom: 8px; }
.beliefs p { margin: 0; color: #d2d2d7; }
.goals { margin-top: 72px; }
.goals h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-2); margin-bottom: 18px; }
.goals ol { margin: 0; padding: 0; list-style: none; counter-reset: g; }
.goals li {
  counter-increment: g;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 20px;
  letter-spacing: -.02em;
}
.goals li::before {
  content: counter(g, decimal-leading-zero);
  color: var(--mute-2);
  font-size: 13px;
  padding-top: 6px;
}

.diag { background: var(--paper); color: var(--ink); padding: 14vh 0; }
.paths {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: stretch;
}
.path { border-radius: 28px; padding: 32px 28px 28px; }
.path-safe { background: #fff; display: flex; flex-direction: column; }
.lp {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 280px;
  margin: 2px 0 10px;
}
.path-build {
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(59,130,246,.42), transparent 62%),
    #070b16;
  color: #f5f5f7;
  display: flex;
  flex-direction: column;
}
.path .eyebrow { margin-bottom: 12px; }
.path-safe .eyebrow { color: var(--blue); }
.path-build .eyebrow { color: #9ecbff; }
.path h3 { font-size: clamp(28px, 2.4vw, 40px); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 12px; }
.path > p { margin: 0 0 22px; color: var(--mute); font-size: 16px; line-height: 1.45; }
.path-build > p { color: #d2d2d7; }
.nn {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 168px;
  margin: 4px 0 18px;
}
.path-safe .pill,
.path-build .pill { margin-top: 0; align-self: flex-start; }
.path .levels { margin: 0 0 14px; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.path .levels article { min-height: 0; background: transparent; padding: 0; }
.path .levels h3 { font-size: 14px; margin: 0 0 4px; }
.path .levels p { font-size: 13px; line-height: 1.35; }
.levels {
  margin: 42px 0 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.levels article {
  background: #fff;
  border-radius: 20px;
  padding: 18px 16px 20px;
  min-height: 0;
  min-width: 0;
}
.levels b { color: var(--blue); font-size: 13px; letter-spacing: .08em; }
.levels h3 { font-size: 20px; margin: 12px 0 8px; }
.levels p { margin: 0; color: var(--mute); font-size: 15px; }
.fine { color: var(--mute); font-size: 14px; margin: 0 0 18px; }
.diag .pill { margin-top: 0; }
.build-steps { list-style: none; margin: 0 0 28px; padding: 0; }
.build-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 18px;
  letter-spacing: -.02em;
}
.build-steps b { color: #9ecbff; font-size: 13px; letter-spacing: .06em; padding-top: 5px; }

.marks { background: #fff; color: var(--ink); padding: 12vh 0; }
.marks h2 { color: var(--ink); }
.marks ul {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.marks li {
  background: var(--paper);
  border-radius: 20px;
  min-height: 148px;
  margin: 0;
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.marks img {
  height: auto;
  width: auto;
  max-height: 54px;
  max-width: 84%;
  object-fit: contain;
}
.marks span { color: var(--mute); font-size: 13px; letter-spacing: -.01em; text-align: center; }

.about { background: #fff; color: var(--ink); padding: 14vh 0; }
.purpose {
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -.03em;
  line-height: 1.25;
  max-width: 18em;
  margin: 8px 0 48px;
}
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person { background: var(--paper); border-radius: 24px; overflow: hidden; }
.person img {
  width: 74%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  display: block;
  margin: 28px auto 6px;
}
.person div { padding: 8px 22px 28px; }
.person h3 { font-size: 28px; margin-bottom: 8px; }
.person p { margin: 0; color: var(--mute); }

.contact { background: var(--paper); color: var(--ink); padding: 12vh 0 14vh; }
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
address { font-style: normal; display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
address a { color: var(--blue); text-decoration: none; }
form {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
}
label { display: grid; gap: 6px; font-size: 13px; color: var(--mute); }
input, select, textarea {
  width: 100%;
  border: 1px solid #d2d2d7;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.form-note { margin: 0; color: var(--ink); font-size: 15px; }
.form-note a { color: var(--blue); }

.foot { background: #000; padding: 28px 0 36px; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot img { height: 26px; width: auto; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: #d2d2d7; text-decoration: none; font-size: 13px; }
.foot small { margin-left: auto; color: var(--mute-2); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.only-mobile { display: none; }

@media (max-width: 820px) {
  .burger { display: block; }
  .links {
    position: fixed;
    inset: 0;
    background: #000;
    color: #fff;
    flex-direction: column;
    justify-content: center;
    padding: 18vh 8vw;
    gap: 18px;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -.04em;
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: .35s var(--ease);
  }
  .links a { font-size: 34px; opacity: 1; }
  .nav.open { background: #000; color: #fff; }
  .nav.open .brand img { filter: none; }
  .nav.open .links { opacity: 1; pointer-events: auto; transform: none; }
  .only-mobile { display: inline; }
  .casas, .model-grid, .bento, .beliefs, .levels, .people, .contact-grid, .paths, .method-pair { grid-template-columns: 1fr; }
  .path .levels { grid-template-columns: 1fr 1fr; }
  .lp { min-height: 220px; }
  .house { min-height: auto; padding: 12vh 7vw; }
  .house > div:first-of-type { min-height: 0; }
  .house .mark { width: min(340px, 92%); }
  .house-copy { padding: 18px 18px 14px; }
  .house-ai { border-left: 0; }
  .marks ul { grid-template-columns: repeat(2, 1fr); }
  .app-scroller { grid-template-columns: 1fr; }
  .app { min-height: 0; padding: 32px 24px; }
  .foot small { margin-left: 0; }
  .nav .pill { display: none; }
  .nav.open .pill { display: inline-flex; position: fixed; right: 18px; bottom: 22px; z-index: 50; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
