/* Use-cases pages. Same paper, ink, Inter and washes as attractor.world.
   The pages scroll. The pictures are egocentric fields: the wearer stays at
   the center, and sources move in the world around them. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/space-grotesk.woff2') format('woff2');
}

:root {
  --bg:         #070806;
  --ink-title:  #e7e4da;
  --ink-strong: rgba(231, 228, 218, 0.86);
  --ink-body:   rgba(231, 228, 218, 0.74);
  --ink-faint:  rgba(231, 228, 218, 0.48);
  --accent:     #9aaf86;
  --mark-ink:   #e7e4da;
  --hairline:   rgba(231, 228, 218, 0.12);
  --sa:         #9aaf86;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

body {
  position: relative;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink-body);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(154, 175, 134, 0.28); }

/* Washes held to the top of the page, as on the research pages, so the
   reading column sits on paper. */
.aw-wash {
  position: absolute;
  inset: 0 0 auto 0;
  height: 820px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask: linear-gradient(#000 0, #000 28%, transparent 88%);
  mask: linear-gradient(#000 0, #000 28%, transparent 88%);
}
.aw-wash i { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.aw-wash i:nth-child(1) {
  width: 58vmax; height: 58vmax; left: -14%; top: -28%;
  background: radial-gradient(circle, rgba(26, 58, 42, 0.18) 0%, rgba(26, 58, 42, 0) 70%);
  animation: drift-a 34s ease-in-out infinite;
}
.aw-wash i:nth-child(2) {
  width: 52vmax; height: 52vmax; left: 52%; top: -18%;
  background: radial-gradient(circle, rgba(120, 138, 214, 0.16) 0%, rgba(120, 138, 214, 0) 70%);
  animation: drift-b 42s ease-in-out infinite;
}
.aw-wash i:nth-child(3) {
  width: 44vmax; height: 44vmax; left: 18%; top: 8%;
  background: radial-gradient(circle, rgba(214, 158, 96, 0.14) 0%, rgba(214, 158, 96, 0) 70%);
  animation: drift-c 38s ease-in-out infinite;
}
@keyframes drift-a {
  0%, 100% { transform: translate3d(-6%, -4%, 0) scale(1); }
  50% { transform: translate3d(6%, 6%, 0) scale(1.1, 0.94); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(5%, 4%, 0) scale(1.06); }
  50% { transform: translate3d(-8%, 2%, 0) scale(0.94, 1.1); }
}
@keyframes drift-c {
  0%, 100% { transform: translate3d(-4%, 4%, 0) scale(0.96); }
  50% { transform: translate3d(7%, -4%, 0) scale(1.1, 0.92); }
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 175, 134, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
a:hover { border-bottom-color: var(--accent); background: rgba(154, 175, 134, 0.08); }
a:focus-visible {
  outline: 2px solid rgba(154, 175, 134, 0.55);
  outline-offset: 3px;
  border-radius: 2px;
}

.top, main, footer { position: relative; z-index: 1; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 16px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: none;
  color: var(--ink-title);
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.035em;
  padding-bottom: 0;
}
.brand:hover { background: none; color: var(--ink-title); }
.mark {
  position: relative;
  display: block;
  width: 36px;
  aspect-ratio: 600 / 483;
  flex: none;
}
.mark-still {
  position: absolute;
  inset: 0;
  background: var(--mark-ink);
  opacity: 0.88;
  -webkit-mask: url('/mark-mask.png') center / contain no-repeat;
  mask: url('/mark-mask.png') center / contain no-repeat;
  transition: opacity 0.4s ease;
}
.mark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mark.live .mark-still { opacity: 0.25; }
.mark.live .mark-canvas { opacity: 0.88; }

.top nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.top nav a {
  color: var(--ink-faint);
  border-bottom-color: transparent;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  padding-bottom: 0;
}
.top nav a:hover { color: var(--accent); background: none; border-bottom-color: transparent; }
.top nav a[aria-current="page"] { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 38rem; }

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink-title);
  text-wrap: balance;
}
h1 {
  font-size: clamp(36px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
p { text-wrap: pretty; }
.lede {
  margin-top: 18px;
  max-width: 38rem;
  color: var(--ink-strong);
  font-size: 18.5px;
  line-height: 1.55;
  letter-spacing: -0.011em;
}
.kicker {
  margin-bottom: 14px;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
}
.kicker a { color: inherit; border-bottom-color: rgba(231, 228, 218, 0.28); }
.kicker a:hover { color: var(--accent); border-bottom-color: var(--accent); background: none; }
.kicker .sep { margin: 0 0.45em; opacity: 0.7; }

.band { padding: 88px 0; }
.element {
  padding: 64px 0 36px;
}
.element h2 { font-size: clamp(32px, 4vw, 44px); }
.element-key {
  padding: 72px 0 48px;
}
.element-key > .wrap > p,
.element-key .reveal > p {
  max-width: 42rem;
}
.element-key .stage-key {
  margin: 36px auto 0;
  max-width: min(420px, 100%);
}
.element .scene {
  border-top: 0;
  padding-top: 20px;
  padding-bottom: 8px;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px 48px;
  align-items: start;
}
.element .copy p { margin-top: 0; }
.asks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.asks li {
  position: relative;
  margin-top: 11px;
  padding-left: 1.15em;
  color: var(--ink-strong);
  font-size: 16.5px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.asks li:first-child { margin-top: 0; }
.asks li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}
.asks-spread {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  margin-top: 40px;
  justify-content: space-between;
}
.asks-spread li {
  margin-top: 0;
  flex: 1 1 12rem;
  max-width: 22rem;
}
.builds {
  padding: 48px 0 72px;
  border-top: 1px solid var(--hairline);
}
.builds-lead {
  margin: 0 0 40px;
  max-width: 36rem;
  color: var(--ink-faint);
  font-size: 15.5px;
  letter-spacing: -0.005em;
}
.builds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
  column-gap: 32px;
  row-gap: 18px;
  align-items: start;
}
.build {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  align-items: start;
}
.build h3 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-title);
}
.build > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-body);
}
.build .stage {
  margin: 0 auto;
  max-width: 200px;
  width: 100%;
}
.build .asks-spread {
  margin: 0;
  gap: 14px 20px;
  justify-content: flex-start;
  flex-direction: column;
}
.build .asks-spread li {
  flex: none;
  max-width: none;
  font-size: 14.5px;
}
.band h2 + p, .intro { margin-top: 18px; }
.narrow p + p, .model-copy p + p, .scene p, .cap p, .closing p + p { margin-top: 16px; }
.pull {
  margin-top: 22px;
  color: var(--ink-strong);
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(280px, 1fr);
  gap: 48px 64px;
  align-items: center;
  padding-top: 7vh;
  padding-bottom: 72px;
}
.hero.with-heard {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
  padding-top: 28px;
  padding-bottom: 40px;
}
.hero.with-heard .hero-copy { margin-bottom: 48px; max-width: 46rem; }
.hero.with-heard .lede { margin-top: 12px; }
.hero.with-heard .lede,
.hero.with-heard .after,
.hero.with-heard .focus,
.hero.with-heard .close { max-width: none; }
.hero.with-heard .bridge { margin-top: 56px; max-width: 46rem; }
.hero.with-heard .bridge .after { margin-top: 0; }
.hero.with-heard .bridge .after + .after { margin-top: 16px; }
.hero.with-heard .after { margin-top: 28px; }
.hero.with-heard .after + .after { margin-top: 16px; }
.focus {
  margin: 0;
  color: var(--ink-strong);
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.012em;
}
.after {
  color: var(--ink-body);
  font-size: 17px;
  line-height: 1.6;
}
.wrap .caps { margin-top: 28px; }
.heard {
  position: relative;
  width: 100%;
  margin: 0;
  background: #070806;
  border: 0;
  overflow: hidden;
}
.heard img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 700;
  object-fit: cover;
  object-position: center bottom;
  background: #070806;
}
.listen { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.listen-label { margin: 0; font-size: 15px; color: var(--ink-strong, inherit); }
.listen-toggles .play { display: inline-block; font-size: 0.8em; margin-right: 0.5em; transform: translateY(-0.05em); }
.listen-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.listen-toggles button {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(154, 175, 134, 0.4);
  border-radius: 2px;
  padding: 8px 16px;
  cursor: pointer;
}
.listen-toggles button:hover { border-color: var(--accent); }
.listen-toggles button[aria-pressed="true"] { background: #1a3a2a; color: #e7e4da; border-color: #1a3a2a; }
/* The player in the image's place: the image's shape, plus room for Play and the time scroller. */
.heard img[hidden], .heard iframe[hidden] { display: none; }
.heard iframe.heard-example {
  height: auto;
  min-height: 0;
  aspect-ratio: 1024 / 744;
}
.heard iframe {
  display: block;
  width: 100%;
  height: min(720px, 74vh);
  min-height: 560px;
  border: 0;
  background: #070806;
  color-scheme: dark;
}
/* While the player loads, it sits invisibly over the image; the image stays until the player is ready. */
.heard iframe.loading { position: absolute; left: 0; top: 0; visibility: hidden; }

.stage { margin: 0; }
.stage canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.stage figcaption {
  margin-top: 12px;
  max-width: 36rem;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-faint);
}

.model {
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(260px, 440px);
  gap: 36px 64px;
  align-items: center;
}

.core {
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(0, 36rem);
  gap: 28px 64px;
  align-items: start;
  margin-top: 40px;
}
.core .stage { position: sticky; top: 96px; }

.caps { position: relative; padding-left: 28px; list-style: none; }
.caps::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--hairline);
}
.cap { position: relative; }
.cap + .cap { margin-top: 30px; }
.cap::before {
  content: '';
  position: absolute;
  left: -23.5px;
  top: 0.42em;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(231, 228, 218, 0.38);
}
.cap h3 { color: var(--ink-strong); transition: color 0.35s ease; }
.caps.linked .cap.on h3 { color: var(--ink-title); }
.caps.linked .cap.on::before { background: var(--accent); border-color: var(--accent); }

.scenes { list-style: none; margin-top: 12px; }
.scene {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 34rem);
  gap: 28px 56px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--hairline);
}
.scene:nth-child(even) .stage { order: 2; }
.scene h3 { margin-bottom: 8px; }

.closing {
  padding: 64px 0 80px;
  text-align: center;
}
.contact { margin-top: 22px; }
.waitlist {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.waitlist .join,
.waitlist button[type="submit"] {
  border: 0;
  border-radius: 999px;
  padding: 13px 28px;
  background: var(--accent);
  color: #12140f;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.waitlist .join:hover,
.waitlist button[type="submit"]:hover { background: #b7c9a4; }
.waitlist button:disabled { opacity: 0.5; cursor: default; }
.waitlist-row[hidden] { display: none; }
.waitlist-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.waitlist input {
  width: min(100%, 16rem);
  padding: 12px 18px;
  border: 1px solid rgba(231, 228, 218, 0.28);
  border-radius: 999px;
  background: rgba(231, 228, 218, 0.06);
  color: var(--ink-title);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-align: center;
}
.waitlist input:focus { outline: none; border-color: var(--accent); }
.waitlist input::placeholder { color: var(--ink-faint); }
.waitlist-status {
  min-height: 1.4em;
  margin-top: 14px;
  color: var(--ink-strong);
  font-size: 16px;
  text-align: center;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-head { padding-top: 8vh; }
.page-head h1 { font-size: clamp(36px, 5vw, 48px); }
.entry {
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(240px, 420px);
  gap: 36px 64px;
  align-items: center;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
}
.entry h2 { font-size: clamp(26px, 3vw, 32px); }
.entry h2 a { color: var(--ink-title); border-bottom-color: transparent; }
.entry h2 a:hover { color: var(--accent); border-bottom-color: var(--accent); background: none; }
.entry-line {
  margin-top: 12px;
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.011em;
}
.entry .more { display: inline-block; margin-top: 18px; }

footer {
  padding: 28px 28px 36px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.012em;
  color: var(--ink-faint);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes title-settle {
  from { opacity: 0; transform: translateY(10px); filter: blur(5px); letter-spacing: 0.03em; }
  to { opacity: 1; transform: none; filter: blur(0); letter-spacing: -0.03em; }
}
.reveal { opacity: 0; }
.reveal.in { animation: fade-up 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
.hero-copy.in h1 { animation: title-settle 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.d2.in { animation-delay: 0.12s; }

@media (max-width: 640px) {
  .brand { white-space: nowrap; }
  .top { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 18px 12px; }
  .top nav { width: 100%; gap: 8px 16px; }
}
@media (max-width: 880px) {
  .wrap { padding: 0 22px; }
  .band { padding: 64px 0; }
  .hero, .model, .core, .entry, .scene { display: block; }
  .hero { padding-top: 36px; }
  .hero .stage, .model .stage, .entry .stage, .core .stage { max-width: 460px; margin-top: 32px; }
  .heard iframe { height: 62vh; min-height: 360px; }
  .asks li { font-size: 16px; }
  .builds-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 48px;
  }
  .build {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    gap: 18px;
  }
  .build .stage { max-width: 220px; }
  .asks-spread { gap: 16px 28px; }
  .core .stage { position: static; }
  .scene { padding: 28px 0; }
  .scene .stage { order: -1; margin-bottom: 8px; }
  .scene:nth-child(even) .stage { order: -1; }
  .top { padding: 14px 18px; }
  h1 { font-size: 34px; }
  .lede, .close { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .aw-wash i { animation: none; }
  .reveal { opacity: 1; animation: none; }
  .hero-copy.in h1, .reveal.in { animation: none; opacity: 1; }
  .close::before, .reveal.in .close::before { animation: none; transform: none; }
  .mark-still, .mark-canvas { transition: none; }
}
