/* aiark.dev. Values come from tokens.css; this file only arranges them. */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
html:not(.lenis) { scroll-behavior: smooth; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  margin: 0;
  background: var(--ark-canvas);
  color: var(--ark-ink);
  font: 400 var(--ark-text-body)/1.6 var(--ark-font-text);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--ark-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--ark-blue-wash); color: var(--ark-ink); }

.page {
  width: 100%;
  max-width: calc(var(--ark-page) + 2 * var(--ark-gutter));
  margin: 0 auto;
  padding: 0 var(--ark-gutter);
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  padding: 8px 12px; border-radius: var(--ark-radius-s);
  background: var(--ark-ink); color: var(--ark-canvas);
}
.skip:focus { top: 16px; }

/* Type */

.display {
  font: 800 var(--ark-text-display)/0.95 var(--ark-font-display);
  letter-spacing: var(--ark-track-display);
  text-wrap: balance;
}

.h1 {
  font: 700 var(--ark-text-h1)/1.04 var(--ark-font-display);
  letter-spacing: var(--ark-track-heading);
  text-wrap: balance;
}

.h2 {
  font: 700 var(--ark-text-h2)/1.08 var(--ark-font-display);
  letter-spacing: var(--ark-track-heading);
  text-wrap: balance;
}

.lead {
  font-size: var(--ark-text-lead);
  line-height: 1.55;
  color: var(--ark-graphite);
  max-width: 34em;
  text-wrap: pretty;
}

.accent { color: var(--ark-blue); }

.link {
  color: var(--ark-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--ark-radius-pill);
  font: 500 0.9375rem/1 var(--ark-font-text);
  white-space: nowrap;
  transition:
    transform var(--ark-dur-1) var(--ark-ease-out),
    background-color var(--ark-dur-2) ease,
    color var(--ark-dur-2) ease;
}
.button:active { transform: scale(0.97); }
.button-small { height: 40px; padding: 0 16px; font-size: 0.875rem; }
.button-ink { background: var(--ark-ink); color: var(--ark-canvas); }
.button-quiet { background: var(--ark-mist); color: var(--ark-ink); box-shadow: inset 0 0 0 1px var(--ark-line); }

@media (hover: hover) and (pointer: fine) {
  .button-ink:hover { background: var(--ark-ink-hover); }
  .button-quiet:hover { background: color-mix(in srgb, var(--ark-mist), var(--ark-ink) 5%); }
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ark-space-3); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--ark-radius-pill);
  background: var(--ark-surface);
  box-shadow: var(--ark-shadow-1);
  font: 500 0.8125rem/1 var(--ark-font-text);
  color: var(--ark-graphite);
}
.pill-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--ark-blue); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--ark-radius-pill);
  background: var(--ark-mist);
  box-shadow: inset 0 0 0 1px var(--ark-line);
  font: 500 0.8125rem/1 var(--ark-font-text);
}
.chip-ink { background: var(--ark-ink); color: var(--ark-canvas); box-shadow: none; }

/* Mascot avatar: the character sits in a soft round well */

.team img, .app-bar img, .msg-avatar, .activity img, .crew img, .task img, .approve-head img, .jobs-who img, .more-list img {
  border-radius: 50%;
  background: var(--ark-mist);
  object-fit: contain;
  padding: 3px;
  flex: none;
}

/* Lockup */

.lockup { display: inline-flex; align-items: center; gap: 9px; color: var(--ark-ink); padding: 6px 0; }
.lockup-symbol { width: 24px; height: auto; }
.lockup-word { height: 15px; width: auto; }

/* Nav: hides on the way down, returns on the way up */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--ark-canvas) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  box-shadow: 0 1px 0 transparent;
  transition:
    box-shadow var(--ark-dur-3) ease,
    transform 480ms var(--ark-ease-out);
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--ark-line); }
.nav.is-hidden { transform: translateY(-100%); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--ark-space-6);
  height: 68px;
  max-width: calc(var(--ark-page) + 2 * var(--ark-gutter));
  margin: 0 auto;
  padding: 0 var(--ark-gutter);
}
.nav-links { display: flex; gap: var(--ark-space-6); margin-left: auto; }
.nav-links a {
  font: 500 0.875rem/1 var(--ark-font-text);
  color: var(--ark-graphite);
  padding: 14px 0;
  transition: color var(--ark-dur-2) ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ark-ink); }
}

/* Hero */

.hero { padding: clamp(48px, 6vw, 96px) 0 var(--ark-space-section); }

.hero-text {
  display: grid;
  justify-items: center;
  gap: var(--ark-space-5);
  text-align: center;
}
.hero-text .lead { max-width: 30em; }
.hero-text .actions { justify-content: center; margin-top: var(--ark-space-3); }

.stage {
  position: relative;
  height: clamp(560px, 54vw, 720px);
  margin-top: clamp(48px, 5vw, 72px);
  border-radius: var(--ark-radius-xl);
  overflow: hidden;
  isolation: isolate;
  background: var(--ark-mist);
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--ark-image-outline);
  pointer-events: none;
}
.stage-photo { position: absolute; inset: -6% 0; }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; }

/* The app: a team you message, like any chat */

.app {
  position: absolute;
  left: 50%;
  top: clamp(36px, 7%, 64px);
  bottom: clamp(36px, 7%, 64px);
  width: min(940px, calc(100% - 64px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  border-radius: var(--ark-radius-l);
  background: var(--ark-surface);
  box-shadow: var(--ark-shadow-3);
  overflow: hidden;
  font-size: 0.875rem;
  text-align: left;
}

.app-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 10px;
  background: var(--ark-canvas);
  box-shadow: inset -1px 0 0 var(--ark-line);
}
.app-side-head { display: flex; align-items: center; gap: 12px; padding: 4px 8px 14px; }
.app-lights { display: inline-flex; gap: 6px; }
.app-lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--ark-line-strong); }
.app-org { font-weight: 600; }
.app-side-label {
  padding: 8px 8px 6px;
  font: 500 0.75rem/1 var(--ark-font-text);
  color: var(--ark-graphite);
}

.team li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
}
.team li.is-selected { background: var(--ark-surface); box-shadow: var(--ark-shadow-1); }
.team img { width: 36px; height: 36px; }
.team span { display: grid; gap: 1px; min-width: 0; }
.team b { font-weight: 600; }
.team small {
  font-size: 0.75rem;
  color: var(--ark-graphite);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--ark-dur-3) ease;
}
.team small.is-busy { color: var(--ark-blue); }

.app-main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; }

.app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  box-shadow: inset 0 -1px 0 var(--ark-line);
}
.app-bar img { width: 24px; height: 24px; padding: 2px; }
.app-bar b { font-weight: 600; }
.app-bar-topic { color: var(--ark-graphite); margin-left: auto; font-size: 0.8125rem; }

.thread {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 56px);
  mask-image: linear-gradient(to bottom, transparent, #000 56px);
  transition: opacity 400ms ease, filter 400ms ease;
}
.thread.is-clearing { opacity: 0; filter: blur(4px); }

.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; flex: none; }
.msg-you { align-self: flex-end; }
.msg-avatar { width: 28px; height: 28px; padding: 2px; }
.msg-text {
  padding: 10px 14px;
  border-radius: 16px 16px 16px 6px;
  background: var(--ark-mist);
  line-height: 1.45;
  text-wrap: pretty;
}
.msg-you .msg-text {
  border-radius: 16px 16px 6px 16px;
  background: var(--ark-ink);
  color: var(--ark-canvas);
}

.typing { display: inline-flex; gap: 4px; padding: 14px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ark-slate); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 150ms; }
.typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes typing { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.activity {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 36px;
  font-size: 0.8125rem;
  color: var(--ark-graphite);
  flex: none;
}
.activity img { width: 20px; height: 20px; padding: 1px; }
.activity b { font-weight: 500; color: var(--ark-ink); }
.activity .state { position: relative; width: 14px; height: 14px; margin-left: 2px; }

/* Working spinner and done check share one spot and cross-fade */
.state::before, .state::after {
  content: "";
  position: absolute;
  inset: 0;
  transition:
    opacity 260ms cubic-bezier(0.2, 0, 0, 1),
    transform 260ms cubic-bezier(0.2, 0, 0, 1),
    filter 260ms cubic-bezier(0.2, 0, 0, 1);
}
.state::before {
  border-radius: 50%;
  border: 1.5px solid var(--ark-line-strong);
  border-top-color: var(--ark-blue);
  animation: spin 800ms linear infinite;
}
.state::after {
  border-radius: 50%;
  background: var(--ark-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2 6 9.2 10 5' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
}
.is-done > .state::before, .is-done .state::before { opacity: 0; transform: scale(0.25); filter: blur(4px); }
.is-done > .state::after, .is-done .state::after { opacity: 1; transform: none; filter: none; }
@keyframes spin { to { rotate: 1turn; } }

.card {
  align-self: flex-start;
  margin-left: 36px;
  width: min(360px, calc(100% - 36px));
  padding: 14px;
  border-radius: 14px;
  background: var(--ark-surface);
  box-shadow: var(--ark-shadow-2);
  display: grid;
  gap: 10px;
  flex: none;
}
.card-head { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--ark-graphite); }
.card-head b { color: var(--ark-ink); font-weight: 600; }
.card-quote { color: var(--ark-graphite); font-size: 0.8125rem; line-height: 1.45; }
.card-actions { display: flex; gap: 6px; justify-content: flex-end; }
.card-actions .chip { transition: transform var(--ark-dur-1) var(--ark-ease-out), background-color var(--ark-dur-2) ease; }
.card-actions .chip.is-pressed { transform: scale(0.96); background: var(--ark-ink-hover); }
.card-sent { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.card-sent .state { position: relative; width: 16px; height: 16px; }

/* Anything new in the thread arrives the same way */
.thread > * { animation: arrive 560ms var(--ark-ease-out) both; }
@keyframes arrive {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
}

.composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 20px 18px;
  padding: 6px 6px 6px 16px;
  border-radius: var(--ark-radius-pill);
  background: var(--ark-canvas);
  box-shadow: inset 0 0 0 1px var(--ark-line-strong);
  color: var(--ark-slate);
}
.composer-send {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ark-ink);
}
.composer-send svg { width: 14px; height: 14px; fill: none; stroke: var(--ark-canvas); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */

.section { padding: 0 0 var(--ark-space-section); }

.section-head {
  display: grid;
  gap: var(--ark-space-4);
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 96px);
}

/* How it works: the mascot stays put while the steps scroll past */

.how-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--ark-space-6);
}

.how-stage {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(50vh - 190px);
  align-self: start;
  display: grid;
  justify-items: center;
  gap: var(--ark-space-5);
}

.how-figure {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ark-mist);
}
.pose {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52%;
  height: auto;
  translate: -50% -46%;
  opacity: 0;
  transform: scale(0.94);
  filter: blur(6px);
  transition:
    opacity 520ms var(--ark-ease-out),
    transform 520ms var(--ark-ease-out),
    filter 520ms var(--ark-ease-out);
}
.pose.is-on { opacity: 1; transform: none; filter: none; }

.how-say {
  padding: 10px 18px;
  border-radius: var(--ark-radius-pill);
  background: var(--ark-surface);
  box-shadow: var(--ark-shadow-2);
  font-weight: 500;
}
.how-say span { display: inline-block; transition: opacity 220ms ease, filter 220ms ease; }
.how-say span.is-swapping { opacity: 0; filter: blur(3px); }

.how-steps { grid-column: 7 / -1; }

.how-step {
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--ark-space-4);
  transition: opacity 600ms var(--ark-ease-out);
}
.how-step:first-child { min-height: 56vh; justify-content: flex-start; }
.js .how-step:not(.is-active) { opacity: 0.28; }

.how-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ark-line-strong);
  font: 500 0.8125rem/1 var(--ark-font-mono);
}
.how-step h3 {
  font: 700 clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem)/1.08 var(--ark-font-display);
  letter-spacing: var(--ark-track-heading);
  text-wrap: balance;
}
.how-step > p { font-size: var(--ark-text-lead); color: var(--ark-graphite); max-width: 28em; }
.how-step > :last-child { margin-top: var(--ark-space-4); }

.bubble-you {
  align-self: flex-start;
  max-width: 380px;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 6px;
  background: var(--ark-ink);
  color: var(--ark-canvas);
  line-height: 1.45;
}

.crew { width: min(100%, 440px); border-top: 1px solid var(--ark-line); }
.crew li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ark-line);
  font-size: 0.9375rem;
}
.crew img { width: 32px; height: 32px; }
.crew b { font-weight: 600; min-width: 92px; }
.crew span { color: var(--ark-graphite); }

.ask {
  width: min(100%, 440px);
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--ark-radius-l);
  background: var(--ark-surface);
  box-shadow: var(--ark-shadow-2);
}
.ask p { display: grid; gap: 2px; }
.ask b { font-weight: 600; }
.ask p span { color: var(--ark-graphite); font-size: 0.9375rem; }
.ask-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Use cases: photographs, each with one task on it */

.shots {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(56px, 7vw, 112px) var(--ark-space-6);
  align-items: start;
}
.shot { display: grid; gap: var(--ark-space-4); }
.shot-tall { grid-column: span 5; }
.shot-wide { grid-column: span 7; }
.shot-low { margin-top: clamp(48px, 9vw, 136px); }
.shot-tall .shot-media { aspect-ratio: 4 / 5; }
.shot-wide .shot-media { aspect-ratio: 3 / 2; }

.shot-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--ark-radius-xl);
  background: var(--ark-mist);
  isolation: isolate;
}
.shot-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--ark-image-outline);
  pointer-events: none;
}
.shot-media > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.shot figcaption { color: var(--ark-graphite); }
.shot figcaption b { color: var(--ark-ink); font-weight: 600; margin-right: 6px; }

.task {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 8px;
  border-radius: 16px;
  background: var(--ark-surface);
  box-shadow: var(--ark-shadow-2);
  font-size: 0.875rem;
  line-height: 1.35;
}
.task img { width: 32px; height: 32px; }
.task span { min-width: 0; }
.task em {
  display: grid;
  flex: none;
  font: 500 0.75rem/1 var(--ark-font-text);
  font-style: normal;
}
.task em i {
  grid-area: 1 / 1;
  justify-self: end;
  padding: 7px 10px;
  border-radius: var(--ark-radius-pill);
  font-style: normal;
  white-space: nowrap;
  transition:
    opacity 260ms cubic-bezier(0.2, 0, 0, 1),
    transform 260ms cubic-bezier(0.2, 0, 0, 1),
    filter 260ms cubic-bezier(0.2, 0, 0, 1);
}
.task em i:first-child { background: var(--ark-blue-wash); color: var(--ark-blue); }
.task em i:last-child { background: var(--ark-ok-wash); color: var(--ark-ok); opacity: 0; transform: scale(0.8); filter: blur(4px); }
.task.is-done em i:first-child { opacity: 0; transform: scale(0.8); filter: blur(4px); }
.task.is-done em i:last-child { opacity: 1; transform: none; filter: none; }

/* Links from the homepage's use cases to their own pages */

.work-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ark-space-2);
  margin-top: clamp(64px, 8vw, 120px);
  padding-top: var(--ark-space-5);
  border-top: 1px solid var(--ark-line);
}
.work-links > span { color: var(--ark-graphite); margin-right: var(--ark-space-2); }
.work-links .chip { height: 40px; padding: 0 18px; font-size: 0.875rem; transition: background-color var(--ark-dur-2) ease, transform var(--ark-dur-1) var(--ark-ease-out); }
.work-links .chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .work-links .chip:hover { background: color-mix(in srgb, var(--ark-mist), var(--ark-ink) 5%); }
}

/* Jobs: a task in a person's words, the teammate who took it, what came back */

.jobs { border-top: 1px solid var(--ark-line); }
.jobs li {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  align-items: center;
  gap: var(--ark-space-6);
  padding: var(--ark-space-5) 0;
  border-bottom: 1px solid var(--ark-line);
}
.jobs-who { display: flex; align-items: center; gap: 12px; color: var(--ark-graphite); font-size: 0.9375rem; }
.jobs-who img { width: 32px; height: 32px; }
.jobs-ask {
  font: 600 clamp(1.125rem, 1rem + 0.4vw, 1.3125rem)/1.35 var(--ark-font-display);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.jobs-ask code, .approve-body code { font: 500 0.9em var(--ark-font-mono); letter-spacing: 0; }
.jobs-result {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: var(--ark-radius-pill);
  background: var(--ark-ok-wash);
  color: var(--ark-ok);
  font: 500 0.8125rem/1.2 var(--ark-font-text);
  text-align: left;
}
.jobs-result::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ark-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2 6 9.2 10 5' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* In charge */

.charge-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--ark-space-6);
  align-items: center;
}
.charge-text { grid-column: 1 / span 5; display: grid; gap: var(--ark-space-5); }
.points { margin-top: var(--ark-space-4); border-top: 1px solid var(--ark-line); }
.points li {
  padding: 18px 0;
  border-bottom: 1px solid var(--ark-line);
  color: var(--ark-graphite);
  text-wrap: pretty;
}
.points b { color: var(--ark-ink); font-weight: 600; margin-right: 4px; }

.charge-media { grid-column: 7 / -1; position: relative; }
.charge-media .shot-media { aspect-ratio: 4 / 5; }

.approve {
  position: absolute;
  left: clamp(-72px, -5vw, -24px);
  bottom: 48px;
  width: min(360px, 88%);
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--ark-radius-l);
  background: var(--ark-surface);
  box-shadow: var(--ark-shadow-3);
  font-size: 0.875rem;
}
.approve-head { display: flex; align-items: center; gap: 10px; }
.approve-head img { width: 32px; height: 32px; }
.approve-head b { font-weight: 600; }
.approve-body { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: var(--ark-canvas); box-shadow: inset 0 0 0 1px var(--ark-line); color: var(--ark-graphite); line-height: 1.45; }
.approve-to { color: var(--ark-ink); font-weight: 500; }
.approve-mono .approve-to { font: 500 0.8125rem/1.4 var(--ark-font-mono); }
.approve-actions { display: flex; justify-content: flex-end; gap: 8px; }
.approve-done { display: none; align-items: center; gap: 8px; font-weight: 500; min-height: 40px; }
.approve-done .state { position: relative; width: 16px; height: 16px; flex: none; }
.approve.is-answered .approve-actions { display: none; }
.approve.is-answered .approve-done { display: flex; animation: arrive 480ms var(--ark-ease-out) both; }

/* Poster */

.poster { padding-bottom: var(--ark-space-section); }
.poster-title {
  font: 800 clamp(2.5rem, 0.8rem + 6.4vw, 6.5rem)/0.92 var(--ark-font-display);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 9em;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.poster-media .shot-media { aspect-ratio: 2 / 1; }

/* Questions */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--ark-space-6);
}
.faq-grid > .h1 { grid-column: 1 / span 4; }
.faq-list { grid-column: 6 / -1; border-top: 1px solid var(--ark-line); }
.faq-item { border-bottom: 1px solid var(--ark-line); }
.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  text-align: left;
  font: 600 1.1875rem/1.3 var(--ark-font-display);
  letter-spacing: -0.01em;
}
.faq-icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6.25px;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--ark-dur-3) var(--ark-ease-out);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--ark-dur-3) var(--ark-ease-out);
}
.faq-a > div { min-height: 0; overflow: hidden; }
.faq-a p {
  padding: 0 0 24px;
  max-width: 36em;
  color: var(--ark-graphite);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--ark-dur-3) ease, transform var(--ark-dur-3) var(--ark-ease-out);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { opacity: 1; transform: none; }
.no-js-open .faq-a, html:not(.js) .faq-a { grid-template-rows: 1fr; }
html:not(.js) .faq-a p { opacity: 1; transform: none; }

/* The other use cases: one hairline list of links */

.more-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--ark-space-6);
}
.more-grid > .h2 { grid-column: 1 / span 4; }
.more-list { grid-column: 6 / -1; border-top: 1px solid var(--ark-line); }
.more-list li { border-bottom: 1px solid var(--ark-line); }
.more-list a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  gap: var(--ark-space-4);
  padding: var(--ark-space-4) 0;
}
.more-list img { width: 40px; height: 40px; }
.more-list a > span { display: grid; gap: 2px; }
.more-list b { font: 600 1.1875rem/1.3 var(--ark-font-display); letter-spacing: -0.01em; transition: color var(--ark-dur-2) ease; }
.more-list a > span > span { color: var(--ark-graphite); font-size: 0.9375rem; }
.more-arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--ark-dur-3) var(--ark-ease-out), color var(--ark-dur-2) ease;
}
@media (hover: hover) and (pointer: fine) {
  .more-list a:hover b, .more-list a:hover .more-arrow { color: var(--ark-blue); }
  .more-list a:hover .more-arrow { transform: translateX(4px); }
}

/* Developer section: text and points beside a code window */

.build-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--ark-space-6);
  align-items: center;
}
.build-text { grid-column: 1 / span 5; display: grid; gap: var(--ark-space-5); }
.build-text .actions { margin-top: var(--ark-space-3); }
.build-code { grid-column: 7 / -1; min-width: 0; }

.code {
  border-radius: var(--ark-radius-l);
  background: var(--ark-surface);
  box-shadow: var(--ark-shadow-3);
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  box-shadow: inset 0 -1px 0 var(--ark-line);
  font: 500 0.75rem/1 var(--ark-font-mono);
  color: var(--ark-graphite);
}
.code pre {
  margin: 0;
  padding: 20px 24px 24px;
  overflow-x: auto;
  font: 400 0.8125rem/1.7 var(--ark-font-mono);
  tab-size: 4;
}
.code .c { color: var(--ark-graphite); }

/* Closing */

.closing { padding: var(--ark-space-6) 0 var(--ark-space-section); }
.closing-inner { display: grid; justify-items: center; gap: var(--ark-space-5); text-align: center; }
.closing-mascot { width: 128px; height: auto; margin-bottom: var(--ark-space-2); }
.closing .actions { justify-content: center; margin-top: var(--ark-space-3); }

/* Footer */

.footer { border-top: 1px solid var(--ark-line); padding: var(--ark-space-7) 0; }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "lockup line links" "work work work" "meta meta lang";
  align-items: center;
  gap: var(--ark-space-5) var(--ark-space-6);
}
.footer .lockup { grid-area: lockup; }
.footer-line { grid-area: line; color: var(--ark-graphite); font-size: 0.875rem; }
.footer-links { grid-area: links; display: flex; gap: var(--ark-space-5); font-size: 0.875rem; }
.footer-links a { color: var(--ark-graphite); padding: 10px 0; transition: color var(--ark-dur-2) ease; }
.footer-meta { grid-area: meta; color: var(--ark-graphite); font-size: 0.75rem; }
.footer-work {
  grid-area: work;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--ark-space-5);
  padding-top: var(--ark-space-4);
  border-top: 1px solid var(--ark-line);
  font-size: 0.875rem;
}
.footer-work span {
  font: 500 var(--ark-text-label)/1 var(--ark-font-mono);
  letter-spacing: var(--ark-track-label);
  text-transform: uppercase;
  color: var(--ark-graphite);
  margin-right: var(--ark-space-2);
}
.footer-work a { color: var(--ark-graphite); padding: 10px 0; transition: color var(--ark-dur-2) ease; }
.footer-lang { grid-area: lang; display: flex; gap: var(--ark-space-4); font-size: 0.75rem; }
.footer-lang a { color: var(--ark-graphite); padding: 12px 0; transition: color var(--ark-dur-2) ease; }
.footer-lang a[aria-current] { color: var(--ark-ink); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover, .footer-work a:hover, .footer-lang a:hover { color: var(--ark-ink); }
}

/* Scroll motion. Only with JS, so the page reads without it. */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(6px);
  transition:
    opacity var(--ark-dur-5) var(--ark-ease-out),
    transform var(--ark-dur-5) var(--ark-ease-out),
    filter var(--ark-dur-5) var(--ark-ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .stage[data-reveal] { filter: none; transform: translate3d(0, 48px, 0) scale(0.97); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.js [data-split] .w > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform var(--ark-dur-5) var(--ark-ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.js [data-split].is-in .w > span { transform: none; }

.js [data-shot] .shot-media {
  clip-path: inset(12% 8% 0 8% round var(--ark-radius-xl));
  transition: clip-path 1400ms var(--ark-ease-out);
}
.js [data-shot].is-in .shot-media { clip-path: inset(0 0 0 0 round var(--ark-radius-xl)); }
.js [data-shot] figcaption,
.js [data-shot] .task,
.js [data-shot] .approve {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  filter: blur(4px);
  transition:
    opacity 800ms var(--ark-ease-out),
    transform 800ms var(--ark-ease-out),
    filter 800ms var(--ark-ease-out);
  transition-delay: 500ms;
}
.js [data-shot] figcaption { transition-delay: 300ms; }
.js [data-shot].is-in figcaption,
.js [data-shot].is-in .task,
.js [data-shot].is-in .approve { opacity: 1; transform: none; filter: none; }

[data-parallax] { will-change: transform; }

/* Responsive */

@media (max-width: 1080px) {
  .app { grid-template-columns: 220px minmax(0, 1fr); }
  .approve { left: 16px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner .button { margin-left: auto; }

  .stage { height: 600px; }
  .app { grid-template-columns: 1fr; width: calc(100% - 32px); top: 24px; bottom: 24px; }
  .app-side { display: none; }
  .thread { padding: 16px 16px 8px; }
  .composer { margin: 8px 12px 12px; }
  .app-bar { padding: 12px 16px; }

  .how-grid, .shots, .charge-grid, .faq-grid, .more-grid, .build-grid { grid-template-columns: 1fr; }
  .how-stage { display: none; }
  .how-steps, .charge-text, .charge-media, .faq-grid > .h1, .faq-list,
  .more-grid > .h2, .more-list, .build-text, .build-code { grid-column: 1 / -1; }
  .jobs li { grid-template-columns: minmax(0, 1fr) auto; gap: var(--ark-space-3) var(--ark-space-4); }
  .jobs-ask { grid-column: 1 / -1; grid-row: 2; }
  .build-code { margin-top: var(--ark-space-5); }
  .how-step, .how-step:first-child { min-height: 0; padding-bottom: var(--ark-space-8); }
  .js .how-step:not(.is-active) { opacity: 1; }
  .shot-tall, .shot-wide { grid-column: 1 / -1; }
  .shot-low { margin-top: 0; }
  .charge-media { margin-top: var(--ark-space-6); }
  .approve { position: relative; left: auto; bottom: auto; width: auto; margin: -96px 12px 0; }
  .poster-media .shot-media { aspect-ratio: 4 / 3; }

  .footer-inner { grid-template-columns: 1fr; grid-template-areas: "lockup" "line" "links" "work" "meta" "lang"; gap: var(--ark-space-3); }
  .footer-links { flex-wrap: wrap; gap: 0 var(--ark-space-5); }
}

@media (max-width: 520px) {
  .stage { height: 560px; margin-left: calc(var(--ark-gutter) * -1 + 8px); margin-right: calc(var(--ark-gutter) * -1 + 8px); }
  .app { width: calc(100% - 24px); top: 16px; bottom: 16px; font-size: 0.8125rem; }
  .app-bar-topic { display: none; }
  .msg { max-width: 92%; }
  .task { font-size: 0.8125rem; left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .task em { display: none; }
  .hero-text .actions .button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  .js [data-reveal], .js .stage[data-reveal] { transform: none; filter: none; transition: opacity 400ms ease; }
  .js [data-split] .w > span { transform: none; transition: none; }
  .js [data-shot] .shot-media { clip-path: none; transition: none; }
  .js [data-shot] figcaption, .js [data-shot] .task, .js [data-shot] .approve { transform: none; filter: none; transition: opacity 400ms ease; }
  .pose, .how-say span { transform: none; filter: none; transition: opacity 300ms ease; }
  .thread > * { animation: none; }
  .typing i, .state::before { animation: none; }
  .shot-media > img:first-child { transform: none; }
  .nav { transition: box-shadow var(--ark-dur-3) ease; }
}

/* Legal pages (privacy): one readable column. */
.legal { max-width: calc(44rem + 2 * var(--ark-gutter)); padding-top: var(--ark-space-8); padding-bottom: var(--ark-space-9); }
.legal .lead { margin-top: var(--ark-space-5); }
.legal-date { margin-top: var(--ark-space-3); color: var(--ark-graphite); font-size: var(--ark-text-small); }
.legal h2 { margin-top: var(--ark-space-7); font: 700 var(--ark-text-h3)/1.2 var(--ark-font-display); letter-spacing: var(--ark-track-heading); }
.legal p, .legal ul { margin-top: var(--ark-space-3); font-size: var(--ark-text-body); line-height: 1.6; max-width: 44rem; }
.legal ul { padding-left: var(--ark-space-5); list-style: disc; }
.legal li + li { margin-top: var(--ark-space-2); }
.legal code { font: 0.9em var(--ark-font-mono); }

/* Download page: one readable column, like the legal pages. */
.get { max-width: calc(44rem + 2 * var(--ark-gutter)); padding-top: var(--ark-space-8); padding-bottom: var(--ark-space-9); }
.get-mascot { width: 85px; height: 85px; margin-bottom: var(--ark-space-4); }
.get .lead { margin-top: var(--ark-space-4); }
.get-actions { margin-top: var(--ark-space-6); }
.get-meta { margin-top: var(--ark-space-3); font: 500 0.75rem/1.4 var(--ark-font-mono); letter-spacing: 0.04em; color: var(--ark-graphite); font-variant-numeric: tabular-nums; }
.get h2 { margin-top: var(--ark-space-8); font: 700 var(--ark-text-h3)/1.2 var(--ark-font-display); letter-spacing: var(--ark-track-heading); }
.get p { margin-top: var(--ark-space-3); line-height: 1.6; max-width: 44rem; }
.get-steps { margin-top: var(--ark-space-4); counter-reset: step; border-top: 1px solid var(--ark-line); }
.get-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; padding: var(--ark-space-4) 0; border-bottom: 1px solid var(--ark-line); line-height: 1.6; }
.get-steps li::before { content: counter(step, decimal-leading-zero); font: 500 0.75rem/1.6rem var(--ark-font-mono); color: var(--ark-graphite); }
.get-steps b { font-weight: 600; }
.get-steps li p { margin-top: 0; }
.get code { font: 0.9em var(--ark-font-mono); }
