@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --paper: #f3eee5; --paper-2: #e9e2d5; --ink: #17140f; --muted: #6b6356; --line: #d9d0c0;
  --lime: #b6ff3a; --night: #0a0d12;
  --wood: #2b1b10; --parch: #f3e9d2; --brass: #b8862e; --umber: #6e4e2c; --sepia: #2e1a0c;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif; --serif: "EB Garamond", Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bar { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(16px, 5vw, 64px); }
.mark { font: 700 21px/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.mark i { font-style: normal; color: var(--muted); font-weight: 500; }
.bar nav a { margin-left: 22px; font-size: 14.5px; color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }

.intro { padding: clamp(48px, 10vw, 120px) clamp(16px, 5vw, 64px) clamp(40px, 7vw, 80px); max-width: 1200px; }
.intro h1 { font: 700 clamp(44px, 8.4vw, 104px)/0.98 var(--display); letter-spacing: -0.045em; }
.intro p { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 46ch; margin: 24px 0 0; }

/* each app lives in its own world */
.world { margin: 0 clamp(10px, 2vw, 24px) clamp(10px, 2vw, 24px); border-radius: 28px; overflow: hidden; position: relative; isolation: isolate; }
.world-in { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(36px, 7vw, 88px) clamp(22px, 5vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .world-in { grid-template-columns: 1.05fr 1fr; } .world.flip .world-in > :first-child { order: 2; } }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.app-head img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5); }
.app-head small { display: block; font-size: 13.5px; opacity: 0.75; }
.cta { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 14px; font: 700 16px var(--display); text-decoration: none; transition: transform 0.12s var(--ease-out), filter 0.2s; }
.cta:active { transform: scale(0.97); }
.cta svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.cta:hover svg { transform: translateX(3px); }

/* Stryde: night map, lime */
.stryde { background: var(--night); color: #f2f5f8; }
.stryde h2 { font: 700 clamp(36px, 5.6vw, 64px)/1.02 var(--display); letter-spacing: -0.035em; }
.stryde h2 em { font-style: normal; color: var(--lime); }
.stryde p { color: #c3ccd6; font-size: 17.5px; max-width: 44ch; margin: 18px 0 28px; }
.stryde .app-head h3 { font: 700 24px var(--display); }
.stryde .cta { background: var(--lime); color: #10170a; }
.stryde .cta:hover { filter: brightness(1.06); }
.stryde-map { width: 100%; max-width: 520px; justify-self: center; border-radius: 22px; }
.stryde-map .loop { stroke-dasharray: 1300; stroke-dashoffset: 1300; }
.stryde-map .land { opacity: 0; }
.in .stryde-map .loop { animation: draw 2.4s var(--ease-out) 0.2s forwards; }
.in .stryde-map .land { animation: flood 0.9s var(--ease-out) 2.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flood { to { opacity: 1; } }

/* Specimens: a cabinet drawer on wood */
.specimens { background: radial-gradient(120% 90% at 30% 0%, #3d2716 0%, var(--wood) 55%, #1c110a 100%); color: var(--parch); }
.specimens .app-head h3 { font: 600 30px/1 var(--serif); letter-spacing: 0.01em; }
.specimens h2 { font: 500 clamp(36px, 5.4vw, 62px)/1.04 var(--serif); letter-spacing: -0.01em; color: #fbf4e4; }
.specimens h2 em { color: #e2b764; }
.specimens p { font: 400 19px/1.55 var(--serif); color: #e6d9bd; max-width: 44ch; margin: 18px 0 0; }
.rules { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; font: 400 17.5px/1.45 var(--serif); color: #f3e9d2; }
.rules li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.rules svg { width: 18px; height: 18px; margin-top: 4px; color: #e2b764; }
.drawer { justify-self: center; width: min(100%, 470px); aspect-ratio: 4 / 3.2; border-radius: 16px; background: #f3e9d2 radial-gradient(circle at 30% 20%, #fbf4e4, #eadcbb 75%); box-shadow: inset 0 0 0 10px #4a2f1b, inset 0 0 0 12px var(--brass), inset 0 0 40px rgba(110, 78, 44, 0.35), 0 30px 60px -20px rgba(0, 0, 0, 0.7); position: relative; }
.pin { position: absolute; width: 42%; aspect-ratio: 1; }
.pin img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin .wl { transform-origin: 50% 50%; }
.pin .wr { transform-origin: 50% 50%; }
.pin.m1 { left: 6%; top: 10%; }
.pin.m2 { right: 6%; bottom: 8%; width: 38%; }
.label { position: absolute; font: italic 400 15px var(--serif); color: var(--umber); }
.label.l1 { left: 12%; bottom: 14%; }
.label.l2 { right: 14%; top: 14%; }
@media (prefers-reduced-motion: no-preference) {
  .pin.m1 .wl { animation: beatL 2.6s var(--ease-out) infinite; }
  .pin.m1 .wr { animation: beatR 2.6s var(--ease-out) infinite; }
  .pin.m2 .wl { animation: beatL 3.4s var(--ease-out) 1.1s infinite; }
  .pin.m2 .wr { animation: beatR 3.4s var(--ease-out) 1.1s infinite; }
}
@keyframes beatL { 0%, 62%, 100% { transform: none; } 74% { transform: perspective(500px) rotateY(58deg); } 86% { transform: perspective(500px) rotateY(8deg); } }
@keyframes beatR { 0%, 62%, 100% { transform: none; } 74% { transform: perspective(500px) rotateY(-58deg); } 86% { transform: perspective(500px) rotateY(-8deg); } }
.specimens .join { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.specimens .join input[type="email"] { flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid #6e4e2c; background: rgba(243, 233, 210, 0.08); color: #fbf4e4; font: 400 17px var(--serif); caret-color: #e2b764; }
.specimens .join input::placeholder { color: #b8a27e; }
.specimens .join input:focus { outline: none; border-color: #e2b764; }
.specimens .join button { height: 52px; padding: 0 22px; border-radius: 12px; border: 1px solid #d9a64a; background: linear-gradient(#d7a54a, #a8772a); color: #2e1a0c; font: 600 18px var(--serif); cursor: pointer; transition: transform 0.12s var(--ease-out), filter 0.2s; }
.specimens .join button:hover { filter: brightness(1.06); }
.specimens .join button:active { transform: scale(0.97); }
.specimens .join button[disabled] { opacity: 0.6; cursor: progress; }
.join .trap { position: absolute; left: -9999px; }
.join-note { font: italic 400 15px var(--serif); color: #cdb994; margin: 12px 0 0; min-height: 1.4em; }
.join-note.ok { color: #e2b764; }
.join-note.err { color: #ff9a8a; }

.about { padding: clamp(56px, 9vw, 110px) clamp(16px, 5vw, 64px); max-width: 1000px; }
.about h2 { font: 700 clamp(28px, 4vw, 44px)/1.08 var(--display); letter-spacing: -0.03em; }
.about p { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 18px 0 0; }
.about a { color: var(--ink); font-weight: 600; }
.foot { border-top: 1px solid var(--line); padding: 24px clamp(16px, 5vw, 64px) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .stryde-map .loop { stroke-dashoffset: 0; } .stryde-map .land { opacity: 1; } .in .stryde-map .loop, .in .stryde-map .land { animation: none; } }
