/* The site's room. Dark first: dark values on bare :root, a daylight room under
   light (the visitor's setting, or the header's switch). Headings use the display
   face set through --display-* below: Hanken Grotesk, bold. */
:root {
  --page: #0D0C0B;
  --ink: #F3F1EC;
  --ink-2: #BAB6AF;
  --ink-3: #8C887F;
  --rule: rgba(243, 241, 236, 0.12);
  --lamp: #F2A93B;
  --wash: rgba(13, 12, 11, 0.8);
  --glow: rgba(242, 169, 59, 0.42);
  --veil: rgba(13, 12, 11, 0.94);
  --veil-2: rgba(13, 12, 11, 0.72);
  --veil-3: rgba(13, 12, 11, 0.8);
  --underline: rgba(243, 241, 236, 0.4);
  --chrome: rgba(13, 12, 11, 0.55);
  --device: #1E1D1B;
  --device-edge: rgba(243, 241, 236, 0.12);
  --card-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(243, 241, 236, 0.07);
  --display-font: var(--font-sans);
  --display-weight: 700;
  --display-tracking: -0.04em;
  --display-settings: normal;
  color-scheme: dark;
}
/* Daylight: paper, ink and the covers at nearly full strength, the lamp a warm sun. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --page: #F7F6F3; --ink: #181715; --ink-2: #52504C; --ink-3: #767269; --rule: #DEDBD6;
    --wash: rgba(247, 246, 243, 0.5); --glow: rgba(242, 169, 59, 0.3);
    --veil: rgba(247, 246, 243, 0.96); --veil-2: rgba(247, 246, 243, 0.8); --veil-3: rgba(247, 246, 243, 0.86);
    --underline: rgba(24, 23, 21, 0.35); --chrome: rgba(247, 246, 243, 0.72);
    --device: #1C1A16; --device-edge: rgba(28, 26, 22, 0.1);
    --card-shadow: 0 44px 80px -48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(28, 26, 22, 0.07);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --page: #F7F6F3; --ink: #181715; --ink-2: #52504C; --ink-3: #767269; --rule: #DEDBD6;
  --wash: rgba(247, 246, 243, 0.5); --glow: rgba(242, 169, 59, 0.3);
  --veil: rgba(247, 246, 243, 0.96); --veil-2: rgba(247, 246, 243, 0.8); --veil-3: rgba(247, 246, 243, 0.86);
  --underline: rgba(24, 23, 21, 0.35); --chrome: rgba(247, 246, 243, 0.72);
  --device: #1C1A16; --device-edge: rgba(28, 26, 22, 0.1);
  --card-shadow: 0 44px 80px -48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(28, 26, 22, 0.07);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font-sans); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
a { color: inherit; }
/* Without script, the app screens, the Library stage, the year of spines and the
   theme switch would be empty frames, so they step aside. */
:root:not(.js) :is(.phone, .float, .libstage, .year, .year-key, .theme-btn) { display: none; }
/* Covers that fan or bleed past a narrow screen are clipped, never scrolled to. */
main { overflow-x: clip; }
a:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.display { font-family: var(--display-font); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-variation-settings: var(--display-settings); }
.label { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; }
.label .star { width: 13px; height: 13px; color: var(--ax-ai); }
h2.display { margin: 0; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; text-wrap: balance; }
.lede { margin: 18px 0 0; max-width: 30rem; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 600; }
.block { padding-top: clamp(112px, 13vw, 184px); }
section { scroll-margin-top: 24px; }

/* Header floats over the wall */
.top { position: absolute; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.lockup img { width: 34px; height: 34px; border-radius: 8px; display: block; box-shadow: 0 0 28px rgba(242, 169, 59, 0.45); }
.lockup .words { display: flex; flex-direction: column; line-height: 1; }
.lockup .proj { font-size: 9px; font-weight: 500; letter-spacing: 0.4em; color: var(--ink-3); margin-bottom: 3px; }
.lockup .name { font-family: var(--font-serif); font-weight: 340; font-size: 21px; font-variation-settings: "opsz" 34; }

/* The wall and the lamp */
.hero { position: relative; height: clamp(640px, 64vw, 880px); overflow: hidden; --lx: 72%; --ly: 46%; isolation: isolate; }
.wall { --wg: 16px; position: absolute; inset: -40px 0 0; display: grid; gap: var(--wg); align-content: start; z-index: -2; }
/* A row is three copies of its covers (room.js); the trailing padding makes it exactly
   three copies long, so drifting a third of it loops without a jump. */
.wall .row { display: flex; gap: var(--wg); padding-right: var(--wg); width: max-content; animation: drift var(--d, 160s) linear infinite; }
.wall .row:nth-child(even) { animation-direction: reverse; }
.wall img { width: var(--cw, 136px); aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 3px; display: block; }
@keyframes drift { to { transform: translateX(calc(-100% / 3)); } }
.lamp { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at var(--lx) var(--ly), transparent 0, transparent 110px, var(--wash) 420px),
    linear-gradient(180deg, var(--veil-2) 0, transparent 150px),
    linear-gradient(90deg, var(--veil) 0%, var(--veil-2) 34%, transparent 60%),
    linear-gradient(0deg, var(--page) 0%, transparent 24%); }
.glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(circle at var(--lx) var(--ly), var(--glow), transparent 340px); }
.hero > .wrap { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; }
.hero h1 { margin: 0; max-width: 9ch; font-size: clamp(56px, 8.4vw, 124px); line-height: 0.96; text-wrap: balance; }
.hero .lede { max-width: 24rem; }

/* Devices: phones for the product, floating cards for the asides */
.phone {
  position: relative; width: var(--pw, 300px); padding: 9px; border-radius: 52px; background: var(--device); flex: none;
  box-shadow: 0 0 0 1px var(--device-edge), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 60px 100px -50px rgba(0, 0, 0, 0.9), 0 0 120px -30px rgba(242, 169, 59, 0.18);
}
.phone .ax-fit { border-radius: 43px; }
.float { border-radius: 28px; overflow: hidden; background: var(--ax-bg); box-shadow: var(--card-shadow); width: var(--fw, 320px); flex: none; }

/* A cover large and tilted, with the app in front of it */
.scene { position: relative; min-height: 700px; }
.scene .big { position: absolute; left: 0; top: 48px; width: min(52%, 340px); aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 4px; transform: rotate(-3deg);
  box-shadow: var(--shadow-cover-lift), 0 0 120px -20px rgba(242, 169, 59, 0.35); }
.scene .phone { position: absolute; right: 6%; top: 0; --pw: min(46%, 300px); }

/* Editions fanned out; the one you own rises */
.fan { position: relative; height: 470px; }
.fan img { position: absolute; left: 50%; bottom: 0; width: 210px; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow-cover-lift); transform-origin: 50% 120%; transition: transform 900ms cubic-bezier(.2, .8, .2, 1); }
.fan img:nth-child(1) { transform: translateX(-50%) rotate(-24deg); }
.fan img:nth-child(2) { transform: translateX(-50%) rotate(-12deg); }
.fan img:nth-child(3) { transform: translateX(-50%) rotate(0deg); }
.fan img:nth-child(4) { transform: translateX(-50%) rotate(12deg); }
.fan img:nth-child(5) { transform: translateX(-50%) rotate(24deg); }
.fan .chosen { z-index: 2; }
.fan.lift .chosen { transform: translateX(-50%) rotate(0deg) translateY(-56px) scale(1.06) !important; box-shadow: var(--shadow-cover-lift), 0 0 90px -10px rgba(242, 169, 59, 0.55); }
.fan .badge { position: absolute; left: calc(50% + 88px); top: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--lamp); color: #1C1A16; display: grid; place-items: center; z-index: 3; opacity: 0; transform: scale(0.6); transition: opacity 300ms 500ms, transform 400ms 500ms cubic-bezier(.2, .9, .3, 1.4); }
.fan.lift .badge { opacity: 1; transform: none; }

/* A year as a shelf of spines on a lit board */
.year { margin-top: 64px; }
.spines { display: flex; align-items: flex-end; gap: 4px; height: 220px; }
.spines i { flex: 1; max-width: 26px; border-radius: 2px 2px 0 0; transform-origin: 50% 100%; transition: transform 700ms cubic-bezier(.2, .8, .2, 1); }
.board { height: 8px; background: var(--lamp); border-radius: 1px; box-shadow: 0 0 40px 2px rgba(242, 169, 59, 0.45), 0 0 120px 10px rgba(242, 169, 59, 0.18); }
.year-key { display: flex; gap: 20px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.year-key span { display: inline-flex; align-items: center; gap: 8px; }
.year-key i { width: 10px; height: 10px; border-radius: 2px; }

/* The three AI screens together */
.trio { display: flex; justify-content: center; align-items: flex-start; gap: 32px; margin-top: 72px; }
.trio figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.trio figure:nth-child(2) { margin-top: 64px; }
.trio .float { --fw: 300px; }
.trio figcaption { font-size: 15px; color: var(--ink-3); font-weight: 500; }

/* Promises: a quiet list under the lamp */
.promises { max-width: 46rem; }
.promises ul { list-style: none; margin: 8px 0 0; padding: 0; }
.promises li { display: flex; align-items: center; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); transition: color 300ms; }
.promises li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 12px 2px rgba(242, 169, 59, 0.55); flex: none; opacity: 0.85; }
.promises .after { margin: 34px 0 0; color: var(--ink); line-height: 1.15; }

/* Note and colophon */
.note { max-width: 50rem; }
.note blockquote { margin: 0; line-height: 1.36; text-wrap: pretty; }
.note .sig { margin-top: 24px; font-size: 16px; color: var(--ink-3); }
.note .sig b { color: var(--ink); font-weight: 600; }
.colophon { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px 80px; align-items: start; }
.panel { border-radius: 24px; overflow: hidden; max-width: 320px; box-shadow: 0 0 0 1px rgba(242, 169, 59, 0.3), 0 0 160px -20px rgba(242, 169, 59, 0.55); }
.panel img { display: block; width: 100%; height: auto; }
.colophon dl { margin: 0; display: grid; grid-template-columns: 9rem minmax(0, 1fr); }
.colophon dt, .colophon dd { margin: 0; padding: 13px 0; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.55; }
.colophon dt { font-weight: 600; }
.colophon dd { color: var(--ink-2); text-wrap: pretty; }
.colophon .more { display: inline-block; margin-top: 22px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--underline); }

footer { margin-top: clamp(112px, 13vw, 176px); border-top: 1px solid var(--rule); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-block: 28px 96px; font-size: 14px; color: var(--ink-3); }
footer a { text-decoration: none; }
footer a:hover, footer a[aria-current="page"] { color: var(--ink); }
footer .made { margin-left: auto; }

@media (max-width: 960px) {
  .colophon { grid-template-columns: minmax(0, 1fr); }
  .colophon dl { grid-template-columns: minmax(0, 1fr); }
  .colophon dd { border-top: 0; padding-top: 0; }
  .trio { flex-direction: column; align-items: center; gap: 56px; }
  .trio figure:nth-child(2) { margin-top: 0; }
  .trio .float { --fw: min(78vw, 320px); }
  .scene { min-height: 0; display: flex; flex-direction: column; }
  .scene .big { position: relative; top: 0; width: 56%; }
  .scene .phone { position: relative; right: auto; top: auto; align-self: flex-end; margin-top: -150px; --pw: min(64vw, 300px); }
}
@media (max-width: 560px) {
  .hero { height: 720px; }
  .wall img { --cw: 92px; }
  .wall { --wg: 10px; }
  .lamp { background:
    radial-gradient(circle at var(--lx) var(--ly), transparent 0, transparent 70px, var(--wash) 240px),
    linear-gradient(180deg, var(--veil-2) 0, transparent 110px),
    linear-gradient(0deg, var(--veil) 0%, var(--veil-3) 44%, transparent 70%); }
  .hero > .wrap { justify-content: flex-end; padding-bottom: 40px; }
  .fan { height: 340px; }
  .fan img { width: 150px; }
  .fan .badge { left: calc(50% + 58px); }
  .spines { gap: 2px; height: 150px; }
  footer .made { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall .row { animation: none; }
  .fan img, .spines i { transition: none; }
}

/* Header actions: the theme switch, and the call-to-action button style. */
.top .actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.cta { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--ax-accent); color: var(--ax-on-accent); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.cta:hover { filter: brightness(1.06); }
.theme-btn { all: unset; box-sizing: border-box; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--chrome); border: 1px solid var(--rule); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color 200ms; }
.theme-btn:hover { background: var(--page); }
.theme-btn:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.theme-btn svg { width: 20px; height: 20px; }

/* What Stats tells you, as a list beside the screen */
.insights { list-style: none; margin: 0; padding: 0; }
.insights li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.35; color: var(--ink); }
.insights li:first-child { border-top: 1px solid var(--rule); }
.insights .ic { width: 22px; height: 22px; color: var(--lamp); flex: none; display: grid; place-items: center; }
.insights .ic svg { width: 22px; height: 22px; }

/* The way in: Android, by invitation */
.access { text-align: center; padding-block: clamp(64px, 8vw, 104px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.access::before { content: ""; position: absolute; left: 50%; top: 0; width: 640px; height: 320px; transform: translate(-50%, -55%); background: radial-gradient(closest-side, rgba(242, 169, 59, 0.22), transparent); pointer-events: none; }
.access h2.display { position: relative; }
.access p { position: relative; margin: 14px auto 0; color: var(--ink-2); font-size: 19px; }
.access .cta { position: relative; margin-top: 28px; height: 52px; padding: 0 24px; font-size: 16px; }
