/* Design Vault landing. Cobalt and paper: pictures exposed into words. */
:root {
  color-scheme: light;
  --cobalt: #0a3fae;
  --cobalt-deep: #062c80;
  --wash: #bcd6f2;
  --paper: #f2f3ef;
  --paper-2: #e5e8e3;
  --ink: #0b1530;
  --muted: #4f5a6e;

  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --margin: clamp(16px, 2.5vw, 40px);
  --gutter: 24px;
  --radius: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --title: clamp(2.75rem, 1.4rem + 5.4vw, 6.75rem);
  --lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, textarea { font: inherit; color: inherit; }
code { font-family: var(--mono); }
img { display: block; max-width: 100%; }
::selection { background: var(--cobalt); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip { position: fixed; left: var(--margin); top: -80px; z-index: 50; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.skip:focus { top: 12px; }

.display, .section-title { font-weight: 600; letter-spacing: -0.055em; line-height: .9; text-wrap: balance; }
.section-title { font-size: var(--title); }
.edge { font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1; white-space: nowrap; }

/* Buttons: the fill wipes in from the left, like an exposure. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius); font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .45s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { clip-path: inset(0); }
.btn:active { transform: scale(.98); }
.btn-cobalt { background: var(--cobalt); color: var(--paper); }
.btn-cobalt::before { background: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper::before { background: var(--wash); }
.btn.wide { width: 100%; }
.text-link { display: inline-block; padding: 10px 2px; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; transition: text-underline-offset .3s var(--ease); }
.text-link:hover { text-underline-offset: 3px; }

/* Navigation: its colour follows the section underneath. */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--margin); color: var(--paper); transition: color .3s var(--ease), transform .5s var(--ease); }
html[data-tone="paper"] .nav { color: var(--ink); }
html[data-tone="paper"] .nav .btn-paper { background: var(--ink); color: var(--paper); }
html[data-tone="paper"] .nav .btn-paper::before { background: var(--cobalt); }
.nav.is-hidden { transform: translateY(-110%); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; font-size: 17px; text-decoration: none; }
.wordmark svg { width: 26px; height: 26px; overflow: visible; }
.wordmark svg rect { transition: transform .5s var(--ease); }
.wordmark:hover svg rect:nth-child(1) { transform: translate(10px, -10px); }
.wordmark:hover svg rect:nth-child(2) { transform: translate(5px, -5px); }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.nav-link { position: relative; text-decoration: none; padding: 6px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; background: var(--cobalt); color: var(--ink); display: grid; place-items: center; padding: 96px var(--margin) 64px; overflow: hidden; }
.strip { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.strip-track { display: flex; align-items: center; gap: 16px; padding-left: 16px; will-change: transform; }
.shot { position: relative; flex: 0 0 auto; background: var(--cobalt); overflow: hidden; }
.shot img { height: 100%; width: auto; filter: grayscale(1) contrast(1.2) brightness(1.08); mix-blend-mode: screen; opacity: .9; }
.s1 { height: 64svh; } .s2 { height: 50svh; } .s3 { height: 38svh; } .s4 { height: 30svh; }
.s1 { align-self: flex-start; margin-top: 14svh; } .s4 { align-self: flex-end; margin-bottom: 12svh; }

.card { position: relative; z-index: 2; width: min(1000px, 100%); background: var(--paper); padding: clamp(56px, 7vw, 104px) clamp(48px, 8vw, 120px); text-align: center; display: grid; justify-items: center; gap: 28px; }
.card .edge { position: absolute; top: 50%; color: var(--cobalt); }
.edge-l { transform: translate(-50%, -50%) rotate(-90deg); }
.edge-r { transform: translate(50%, -50%) rotate(90deg); }
.card .edge-l { left: 30px; }
.card .edge-r { right: 30px; }
.display { font-size: clamp(2.75rem, min(1rem + 6.4vw, 13svh), 6.25rem); color: var(--ink); max-width: 9.5em; }
.lede { max-width: 46ch; font-size: var(--lead); line-height: 1.5; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin-bottom: -.12em; }
.split-word > span { display: inline-block; }

/* Develop: the signature moment. */
.develop { background: var(--paper); }
.develop-pin { min-height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; padding: 120px var(--margin) 64px; }
.develop-copy { grid-column: 1 / span 5; display: grid; gap: 56px; align-self: center; }
.steps { display: grid; gap: 28px; counter-reset: step; }
.steps li { display: grid; gap: 6px; padding-left: 20px; border-left: 2px solid var(--paper-2); color: var(--muted); transition: color .4s var(--ease), border-color .4s var(--ease); }
.steps li.is-on { color: var(--ink); border-color: var(--cobalt); }
.steps h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.steps p { max-width: 42ch; }

.plate { grid-column: 7 / span 6; position: relative; aspect-ratio: 4 / 5; max-height: calc(100svh - 160px); justify-self: end; width: 100%; max-width: calc((100svh - 160px) * .8); }
.obs { position: absolute; inset: 0; background: var(--paper-2); padding: clamp(20px, 2.4vw, 36px); display: grid; align-content: start; gap: 18px; overflow: hidden; }
.obs-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--cobalt); }
.obs-head code { font-size: 13px; }
.obs dl { display: grid; gap: 14px; }
.obs dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; }
.obs dt { font-size: 13px; font-weight: 500; color: var(--cobalt); padding-top: 2px; }
.obs dd { font-size: clamp(14px, .7rem + .4vw, 16px); line-height: 1.45; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches > * { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; }
.swatches > *::before { content: ""; width: 18px; height: 18px; border-radius: 2px; background: var(--c); }
.plate-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.plate-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); }
.plate-cap { position: absolute; left: 0; top: calc(100% + 12px); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.js .plate-canvas { display: block; }
.js .plate-img { opacity: 0; pointer-events: none; }
html:not(.js) .plate { aspect-ratio: auto; display: grid; gap: 16px; max-height: none; }
html:not(.js) .obs, html:not(.js) .plate-img { position: static; }

/* Path: a full-width index, exposed row by row. */
.path { padding: 200px var(--margin) 160px; }
.path .section-title { max-width: 11em; margin-bottom: 72px; }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; padding: 28px 0 32px; border-top: 2px solid var(--ink); }
.row:last-child { border-bottom: 2px solid var(--ink); }
.row-word { grid-column: 1 / span 6; font-size: clamp(3.25rem, 1rem + 8vw, 9rem); font-weight: 600; letter-spacing: -0.06em; line-height: .82; color: var(--cobalt); padding-bottom: .12em; margin-bottom: -.12em; }
.row p { grid-column: 7 / span 3; max-width: 34ch; }
.row code { grid-column: 10 / span 3; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; justify-self: end; text-align: right; }

/* Try: a real request, answered as paper cards on cobalt. */
.try { background: var(--cobalt); color: var(--paper); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); padding: 160px var(--margin); align-items: start; }
.try-copy { grid-column: 1 / span 5; display: grid; gap: 24px; position: sticky; top: 96px; }
.try-copy > p { font-size: var(--lead); max-width: 34ch; color: var(--wash); }
.brief { display: grid; gap: 12px; margin-top: 16px; }
.brief label { font-weight: 500; }
.brief textarea { width: 100%; resize: vertical; min-height: 110px; background: var(--cobalt-deep); color: var(--paper); border: 1.5px solid var(--wash); border-radius: var(--radius); padding: 14px 16px; font-size: 17px; line-height: 1.45; }
.brief textarea:focus { outline: 2px solid var(--paper); outline-offset: 2px; }
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.scope button { border: 1.5px solid currentColor; background: transparent; border-radius: var(--radius); min-height: 44px; padding: 0 16px; cursor: pointer; font-size: 15px; transition: background-color .3s var(--ease), color .3s var(--ease); }
.scope button[aria-checked="true"] { background: var(--paper); color: var(--cobalt); border-color: var(--paper); font-weight: 500; }
.scope button:hover:not([aria-checked="true"]) { background: var(--cobalt-deep); }
.btn[disabled] { cursor: progress; opacity: .8; }

.results { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.ref { position: relative; background: var(--paper); color: var(--ink); padding: 48px 44px 32px; display: grid; gap: 14px; align-content: start; min-height: 320px; }
.ref:first-child { grid-column: 1 / -1; min-height: 0; }
.ref .edge { position: absolute; top: 50%; color: var(--cobalt); }
.ref .edge-l { left: 18px; }
.ref .edge-r { right: 18px; }
.ref-body { font-size: 16px; line-height: 1.5; }
.ref-ghost { background: var(--cobalt-deep); color: var(--wash); }
.ref-ghost .edge { color: var(--wash); }
.ref-meta { font-size: 14px; color: var(--muted); }
.ref-unc { font-size: 14px; color: var(--muted); }
.ref-error { grid-column: 1 / -1; color: var(--paper); font-size: var(--lead); }

/* Install: one copy button per agent. */
.install { padding: 180px var(--margin) 160px; display: grid; gap: 40px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.install-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; }
.install-head h2 { grid-column: 1 / span 7; }
.install-head p { grid-column: 9 / span 4; font-size: 18px; max-width: 34ch; }
.installers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.installer { position: relative; isolation: isolate; overflow: hidden; width: 100%; min-height: 220px; display: grid; grid-template-rows: auto 1fr auto auto; justify-items: start; gap: 10px; padding: 28px; border: 0; border-radius: var(--radius); background: var(--paper-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: color .45s var(--ease); }
.installer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cobalt); clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease); }
.installer:hover, .installer:focus-visible, .installer.is-copied { color: var(--paper); }
.installer:hover::before, .installer:focus-visible::before, .installer.is-copied::before { clip-path: inset(0); }
.installer:active { transform: scale(.985); }
.installer-logo { width: 40px; height: 40px; }
.installer-name { align-self: end; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.installer-os { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; opacity: .8; }
.installer-os svg { width: 15px; height: 15px; }
.installer-act { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 14px; width: 100%; border-top: 1.5px solid currentColor; font-weight: 500; font-size: 15px; }
.installer-act svg { width: 17px; height: 17px; }
.installer.is-yours .installer-os::after { content: "Your system"; margin-left: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; font-size: 13px; }
.install-status { min-height: 1.5em; color: var(--muted); font-size: 15px; margin-top: -16px; }
.peek summary { cursor: pointer; font-weight: 500; width: fit-content; text-decoration: underline; text-underline-offset: 4px; }
.peek dl { display: grid; gap: 6px; margin-top: 18px; }
.peek dt { font-size: 14px; color: var(--muted); margin-top: 10px; }
.peek dd code { display: block; font-size: 13px; padding: 10px 12px; background: var(--paper-2); border-radius: var(--radius); overflow-x: auto; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); color: var(--muted); }
.facts li { border-top: 2px solid var(--ink); padding-top: 14px; color: var(--ink); }

/* Questions */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); padding: 40px var(--margin) 200px; }
.faq .section-title { grid-column: 1 / span 4; font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.faq-list { grid-column: 6 / span 7; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--cobalt); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--cobalt); }
.faq details p { padding: 0 0 26px; max-width: 58ch; }
.faq details code { font-size: .88em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }

/* Footer: the name returns at full width and runs off the page. */
.foot { background: var(--cobalt); color: var(--paper); padding: 96px var(--margin) 0; overflow: hidden; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; align-items: start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 16px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.credits { font-size: 16px; color: var(--wash); }
.credits a { color: var(--paper); font-weight: 500; text-underline-offset: 5px; }
.credits a:hover { color: var(--wash); }
.giant { font-size: 17.2vw; font-weight: 600; letter-spacing: -0.065em; line-height: .78; white-space: nowrap; margin: 72px 0 -.06em -.04em; }

/* Entrances run only when the script is there to finish them. */
.js [data-reveal], .js [data-intro] { opacity: 0; }

@media (max-width: 1000px) {
  .develop-pin { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 96px; align-content: center; }
  .develop-copy { grid-column: 1; gap: 24px; }
  .steps { gap: 14px; }
  .steps p { display: none; }
  .steps li.is-on p { display: block; }
  .plate { grid-column: 1; justify-self: center; max-height: 54svh; max-width: calc(54svh * .8); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .row-word, .row p, .row code { grid-column: 1; justify-self: start; text-align: left; }
  .row-word { order: 0; } .row code { order: 1; } .row p { order: 2; }
  .try { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 120px var(--margin); }
  .try-copy { grid-column: 1; position: static; }
  .results { grid-column: 1; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq .section-title, .faq-list { grid-column: 1; }
}

@media (max-width: 640px) and (max-height: 720px) {
  .hero .card { padding: 36px 30px 28px; gap: 16px; }
  .hero .lede { font-size: 16px; line-height: 1.45; }
}

/* The hero is exactly one screen: short laptop screens tighten the card instead of growing the hero. */
@media (max-height: 780px) and (min-width: 641px) {
  .hero { padding: 76px var(--margin) 32px; }
  .card { padding: clamp(32px, 6svh, 56px) clamp(48px, 7vw, 104px); gap: clamp(16px, 2.6svh, 24px); }
  .lede { font-size: 17px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav nav { gap: 16px; }
  .nav-link { display: none; }
  .hero { padding: 88px 16px 48px; }
  .hero { place-items: end center; }
  .strip { inset: 76px 0 auto; height: 46svh; align-items: flex-start; }
  .strip-track { align-items: flex-start; }
  .s1, .s2, .s3, .s4 { align-self: flex-start; margin: 0; }
  .s1 { height: 40svh; } .s2 { height: 32svh; margin-top: 6svh; } .s3 { height: 26svh; margin-top: 2svh; } .s4 { height: 22svh; margin-top: 12svh; }
  .card { padding: 56px 34px 40px; gap: 22px; }
  .card .edge { font-size: 13px; }
  .card .edge-l { left: 16px; }
  .card .edge-r { right: 16px; }
  .display { font-size: clamp(2rem, 9.4vw, 3.5rem); max-width: none; }
  .actions { flex-direction: column; gap: 18px; }
  .path { padding: 120px 16px 96px; }
  .path .section-title { margin-bottom: 40px; }
  .results { grid-template-columns: minmax(0, 1fr); }
  .ref { min-height: 0; padding: 40px 36px 28px; }
  .install { padding: 120px 16px 96px; gap: 28px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .install-head, .installers { grid-template-columns: minmax(0, 1fr); }
  .install-head h2, .install-head p { grid-column: auto; }
  .installer { min-height: 0; grid-template-rows: auto; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 20px; }
  .installer-logo { width: 32px; height: 32px; grid-row: span 2; }
  .installer-name { font-size: 24px; }
  .installer-act { grid-column: 1 / -1; margin-top: 6px; }
  .faq { padding-bottom: 120px; }
  .foot-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .js [data-reveal], .js [data-intro] { opacity: 1; }
}
