/* ============================================================
   AHi | ahi.lll.studio
   "Pixel Field", launched with restraint: one statement per screen,
   black and white for the long stretches, lime twice as the product colour,
   and the pixels of the mark as the only material that moves.
   ============================================================ */
:root {
  --black: #0B0C09;
  --black-2: #131510;
  --line: #24261E;
  --line-2: #3A3D31;
  --paper: #F4F5EF;
  --paper-line: #DADDD0;
  --white: #FFFFFF;
  --text: #F2F4EC;
  --text-2: #A9AD9D;
  --ink: #0B0C09;
  --ink-2: #4A4E42;
  --lime: #C0FF00;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  --gut: clamp(20px, 4vw, 44px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 56px;
  --foot-h: 88px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--black); color: var(--text); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--lime); color: var(--ink); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 14px; font-weight: 600; text-decoration: none; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.lede { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: var(--text-2); max-width: 40ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: transform 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn__px { width: 7px; height: 7px; background: currentColor; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--lime); }
.btn--line { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--text-2); }
.btn--sm { min-height: 32px; padding: 0 14px; font-size: 13px; }

/* ---------- local nav ---------- */
/* ---------- liquid glass ----------
   A tinted, heavily blurred pane with a bright top edge and a soft shadow.
   Dark glass over black sections; .glass--light over paper and lime. */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)), rgba(16, 18, 12, .42);
  -webkit-backdrop-filter: blur(22px) saturate(1.9);
  backdrop-filter: blur(22px) saturate(1.9);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .30), inset 0 -1px 1px rgba(255, 255, 255, .06), 0 14px 34px -14px rgba(0, 0, 0, .55);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.glass--light {
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .26)), rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 1px rgba(11, 12, 9, .06), 0 18px 40px -18px rgba(11, 12, 9, .35);
  color: var(--ink);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(16, 18, 12, .92); }
  .glass--light { background: rgba(255, 255, 255, .9); }
}

/* Full-width bar, as before. It overlaps the top of the page so content passes under the glass. */
.header { position: sticky; top: 0; z-index: 50; height: var(--nav-h); margin-bottom: calc(-1 * var(--nav-h)); }
.header.glass { border: 0; border-radius: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 34px -18px rgba(0, 0, 0, .55); }
.header.glass--light { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 16px 36px -20px rgba(11, 12, 9, .28); }
.header > .wrap { height: 100%; }
.header__bar { height: 100%; display: flex; align-items: center; gap: 28px; }
.header__logo .logo-dark { display: none; }
.header.glass--light .logo-light { display: none; }
.header.glass--light .logo-dark { display: block; }
.header.glass--light .nav a { color: var(--ink-2); }
.header.glass--light .nav a:hover { color: var(--ink); }
.header.glass--light .btn--lime { background: var(--ink); color: var(--lime); }
.header__logo { margin-right: auto; display: block; }
.header__logo img { height: 22px; width: auto; }
.nav { display: flex; gap: 24px; font-size: 13px; }
.nav a { color: var(--text-2); text-decoration: none; transition: color 160ms; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- chapters ---------- */
.chapter { position: relative; }
.chapter--black { background: var(--black); color: var(--text); }
.chapter--lime { background: var(--lime); color: var(--ink); }
.chapter--paper { background: var(--paper); color: var(--ink); }
.chapter--paper .lede, .chapter--lime .lede { color: var(--ink-2); }
.chapter--paper .eyebrow, .chapter--lime .eyebrow { color: var(--ink-2); }

/* A scroll-driven chapter: tall outer box, sticky stage inside */
.scene { height: 300vh; }
.scene--short { height: 220vh; }
.scene__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__copy { position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--nav-h) + clamp(20px, 6vh, 72px)); }
.scene__copy .wrap { display: grid; gap: 18px; justify-items: start; }
.scene__copy--center .wrap { justify-items: center; text-align: center; }
.statement { font-size: clamp(44px, 7.4vw, 104px); font-weight: 800; letter-spacing: -0.05em; line-height: .95; max-width: 13ch; }
.statement em { font-style: normal; color: var(--lime); }
.chapter--lime .statement em, .chapter--paper .statement em { color: inherit; background: var(--lime); padding: 0 .08em; }
.scene__lines { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(28px, 7vh, 80px); }
.scene__lines .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 40px; }
@media (max-width: 760px) { .scene__lines .wrap { grid-template-columns: minmax(0, 1fr); gap: 6px; } .scene__line { font-size: 15px; } }
.scene__line { font-size: clamp(16px, 1.5vw, 20px); color: var(--text-2); max-width: 30ch; transition: color 400ms var(--ease), opacity 400ms var(--ease); opacity: .35; }
.scene__line b { color: var(--text); font-weight: 600; }
.chapter--paper .scene__line { color: var(--ink-2); }
.chapter--paper .scene__line b { color: var(--ink); }
.scene__line.is-on { opacity: 1; }
.scene__note { font: 500 11px var(--mono); letter-spacing: .08em; color: var(--text-2); }
.chapter--paper .scene__note { color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { height: 100vh; height: 100svh; min-height: 600px; position: relative; overflow: hidden; cursor: crosshair; touch-action: pan-y; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(24px, 6vh, 56px); pointer-events: none; }
.hero__foot .wrap { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.hero__foot .lede { color: var(--text-2); max-width: 34ch; }
.hero__foot .btns { display: flex; gap: 10px; flex-wrap: wrap; pointer-events: auto; }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__hint { font: 500 11px var(--mono); letter-spacing: .12em; color: #5B5F51; }

/* ---------- every model (lime) ---------- */
.models { padding: clamp(88px, 14vw, 180px) 0 clamp(72px, 10vw, 128px); overflow: hidden; }
.models__head { display: grid; gap: 22px; justify-items: center; text-align: center; }
.models__head .lede { max-width: 36ch; }
.marquee { margin-top: clamp(56px, 8vw, 96px); display: grid; gap: 14px; }
.marquee__row { display: flex; width: max-content; gap: 14px; animation: slide 46s linear infinite; }
.marquee__row:nth-child(2) { animation-direction: reverse; animation-duration: 54s; }
.marquee__row span { font: 700 clamp(28px, 4vw, 52px)/1 var(--sans); letter-spacing: -0.04em; padding: 14px 26px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink); white-space: nowrap; }
.marquee__row span.is-fill { background: var(--ink); color: var(--lime); }
@keyframes slide { to { transform: translateX(-50%); } }
.models__kinds { margin-top: clamp(48px, 7vw, 80px); display: flex; justify-content: center; gap: 10px 28px; flex-wrap: wrap; font: 500 13px var(--mono); letter-spacing: .12em; }
.models__kinds span { display: inline-flex; gap: 10px; align-items: center; }
.models__kinds span::before { content: ""; width: 8px; height: 8px; background: var(--ink); }

/* ---------- numbers ---------- */
.numbers { padding: clamp(96px, 13vw, 168px) 0; }
.numbers h2 { font-size: clamp(36px, 5vw, 64px); max-width: 16ch; }
.numbers__grid { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--paper-line); }
.figure { padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--paper-line); }
.figure__n { font: 800 clamp(56px, 7vw, 104px)/.9 var(--sans); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.figure__n small { font-size: .42em; letter-spacing: -0.03em; margin-left: .06em; }
.figure__n[data-pending] { color: #B9BDAE; }
.figure__l { font-size: 16px; color: var(--ink-2); max-width: 22ch; }
@media (max-width: 900px) {
  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figure { padding-bottom: 28px; border-bottom: 1px solid var(--paper-line); }
  .figure:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- compare ---------- */
.compare { padding: 0 0 clamp(96px, 13vw, 168px); }
/* Neighbouring sections of the same colour overlap by a pixel, so a sub-pixel seam
   cannot show the black page between them on high-density screens. */
.chapter--paper + .chapter--paper, main + .footer { margin-top: -1px; }
.compare h2 { font-size: clamp(36px, 5vw, 64px); max-width: 18ch; }
.compare__grid { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.plan { background: var(--white); border-radius: 22px; padding: clamp(26px, 3vw, 36px); display: grid; gap: 16px; align-content: start; scroll-margin-top: calc(var(--nav-h) + 24px); }
.plan__px { display: flex; gap: 5px; }
.plan__px i { width: 14px; height: 14px; background: var(--ink); border-radius: 2px; }
.plan__px i:last-child { background: var(--lime); box-shadow: inset 0 0 0 1px var(--ink); }
.plan h3 { font-size: 30px; }
.plan > p { color: var(--ink-2); font-size: 16px; }
.plan ul { list-style: none; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid var(--paper-line); display: grid; gap: 12px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; width: 6px; height: 6px; background: var(--ink); transform: translateY(-2px); }
/* Narrower than three columns: a row of cards you swipe through */
@media (max-width: 900px) {
  .compare__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut));
    padding: 0 var(--gut) 4px; scroll-padding-inline: var(--gut);
  }
  .compare__grid::-webkit-scrollbar { display: none; }
  .plan { scroll-snap-align: start; }
}

/* ---------- api ---------- */
.api { padding: clamp(96px, 13vw, 168px) 0; }
.api__head { display: grid; gap: 20px; justify-items: center; text-align: center; }
.api__head h2 { font-size: clamp(44px, 7vw, 96px); font-weight: 800; letter-spacing: -0.05em; }
.code { margin: clamp(44px, 6vw, 72px) auto 0; max-width: 860px; border-radius: 20px; background: var(--black-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.code__tabs { display: flex; gap: 4px; padding: 12px; border-bottom: 1px solid var(--line); }
.code__tab { font: 500 13px var(--mono); color: var(--text-2); background: none; border: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.code__tab[aria-selected="true"] { background: var(--line); color: var(--text); }
.code pre { margin: 0; padding: 26px 28px; overflow-x: auto; font: 14px/1.8 var(--mono); color: #C9CDBD; }
.code .k { color: var(--lime); }
.code .c { color: #6C705F; }
.code__note { padding: 14px 28px 18px; font: 12px var(--mono); color: var(--text-2); border-top: 1px solid var(--line); }

/* ---------- specs ---------- */
.specs { padding: 0 0 clamp(96px, 13vw, 168px); }
.specs h2 { font-size: clamp(36px, 5vw, 64px); }
.specs dl { margin: clamp(36px, 5vw, 64px) 0 0; display: grid; border-top: 1px solid var(--line-2); }
.spec { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr); gap: 16px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 600; font-size: 17px; }
.spec dd { margin: 0; color: var(--text-2); font-size: 17px; }
@media (max-width: 640px) { .spec { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- say hi (lime) ---------- */
/* The last screen: Say hi and the footer together fill the viewport, content centred. */
.sayhi { min-height: calc(100vh - var(--foot-h)); min-height: calc(100svh - var(--foot-h)); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding: calc(var(--nav-h) + 48px) 0 56px; }
.sayhi > .wrap { width: 100%; }
.sayhi__head { display: grid; gap: 18px; }
.sayhi__head h2 { padding-bottom: .1em; }
.sayhi__head h2 { font-size: clamp(72px, 15vw, 220px); font-weight: 800; letter-spacing: -0.065em; line-height: .84; }
.sayhi form { margin-top: clamp(40px, 6vw, 72px); display: flex; align-items: center; gap: 16px; border-bottom: 3px solid var(--ink); padding-bottom: 14px; }
.sayhi label { font: 500 12px var(--mono); letter-spacing: .14em; white-space: nowrap; }
.sayhi input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: 700 clamp(28px, 4.4vw, 56px)/1.1 var(--sans); letter-spacing: -0.04em; caret-color: var(--ink); padding: 0; }
.sayhi input::placeholder { color: rgba(11, 12, 9, .38); }
.sayhi input:focus { outline: none; }
.sayhi form:focus-within { border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.sayhi__alt { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.sayhi__alt a { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { .sayhi form { flex-wrap: wrap; } .sayhi label { width: 100%; } }

/* ---------- footer ---------- */
/* Full-width bar, as before, now glass. The lime of Say hi runs on underneath it. */
.footer { background: var(--lime); font-size: 13px; }
.footer__glass { border-width: 1px 0 0; border-radius: 0; height: var(--foot-h); display: flex; align-items: center; }
.footer__grid { width: 100%; display: flex; align-items: center; gap: 28px; }
.footer__logo { height: 20px; width: auto; margin-right: auto; }
.footer__glass a { text-decoration: none; color: var(--ink); }
.footer__glass a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { color: var(--ink-2); }

/* ---------- reveal (enhancement only: content is visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; align-content: center; gap: 24px; justify-items: start; padding: 80px 0; }
.lost h1 { font-size: clamp(48px, 8vw, 104px); font-weight: 800; letter-spacing: -0.05em; }
.lost h1 em { font-style: normal; color: var(--lime); }

/* ---------- small screens ----------
   One vertical rhythm for every static section (64px in, 64px out), shorter
   scroll scenes, and content laid out to fit the width instead of stacking long. */
@media (max-width: 700px) {
  .scene { height: 200vh; }
  .scene--short { height: 160vh; }

  .models, .numbers, .api, .sayhi { padding-top: 64px; padding-bottom: 64px; }
  .compare, .specs { padding-bottom: 64px; }
  .statement { font-size: clamp(40px, 11.5vw, 56px); }
  .lede { font-size: 17px; }

  /* Gateway: the marquee sits closer to its statement */
  .marquee { margin-top: 40px; gap: 10px; }
  .marquee__row span { font-size: 24px; padding: 10px 18px; }
  .models__kinds { margin-top: 32px; gap: 8px 18px; font-size: 11px; }

  /* Numbers: two by two */
  .numbers h2, .compare h2, .specs h2 { font-size: 34px; }
  .numbers__grid { margin-top: 32px; }
  .figure { padding: 18px 12px 18px 0; gap: 6px; }
  .figure:nth-child(even) { padding-left: 14px; }
  .figure__n { font-size: clamp(40px, 12vw, 56px); }
  .figure__l { font-size: 14px; }

  /* Compare: one card and a bit of the next */
  .compare__grid { margin-top: 28px; grid-auto-columns: 84%; }
  .plan { padding: 24px; gap: 12px; }
  .plan h3 { font-size: 26px; }
  .plan ul { gap: 9px; padding-top: 14px; font-size: 14px; }

  /* API */
  .api__head h2 { font-size: 40px; }
  .code { margin-top: 32px; border-radius: 16px; }
  .code pre { padding: 18px; font-size: 12.5px; }
  .code__note { padding: 12px 18px 14px; }

  /* Specs: tighter rows */
  .specs dl { margin-top: 24px; }
  .spec { padding: 14px 0; gap: 2px; }
  .spec dt, .spec dd { font-size: 15px; }

  /* Say hi: still one full screen with the footer, a little less padding */
  .sayhi { padding: calc(var(--nav-h) + 32px) 0 40px; }
  .sayhi__head h2 { font-size: 76px; }
  .sayhi form { margin-top: 32px; }
  .sayhi input { font-size: 26px; }

  /* Footer: logo and address on top; a hairline; parent company and year below */
  :root { --foot-h: 112px; }
  .footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 0; align-items: center; }
  .footer__logo { height: 18px; }
  .footer__mail { justify-self: end; font-size: 14px; font-weight: 500; }
  .footer__parent, .footer__legal { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(11, 12, 9, .12); font-size: 12px; }
  .footer__legal { text-align: right; }
  .footer__legal-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scene, .scene--short { height: auto; }
  .scene__stage { position: relative; top: 0; height: 640px; }
  .marquee__row { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover { transition: none; transform: none; }
  .scene__line { opacity: 1; }
}
