/* Fyndarium — brand site. Mood: sonar in deep water; one luminous beam
   finding things in the dark. Committed dark strategy: the surface IS the
   vault, the beam cyan is the "found it" moment used for highlights, CTAs
   and marks. Self-hosted type; zero third-party requests by principle. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: oklch(15.5% 0.016 218);
  --bg-raise: oklch(18.5% 0.018 216);
  --surface: oklch(21% 0.02 214);
  --line: oklch(30% 0.024 212);
  --line-soft: oklch(25% 0.02 214);
  --ink: oklch(94% 0.012 200);
  --muted: oklch(76% 0.03 206);
  --beam: oklch(82% 0.125 200);
  --beam-deep: oklch(52% 0.095 210);
  --beam-ghost: oklch(82% 0.125 200 / 0.14);
  --drench: oklch(30% 0.06 212);
  --drench-ink: oklch(95% 0.02 200);
  --drench-muted: oklch(82% 0.045 202);

  /* timeline lane hues: calm family around the brand hue */
  --c-speech: oklch(75% 0.09 200);
  --c-speaker: oklch(74% 0.09 250);
  --c-text: oklch(76% 0.09 170);
  --c-scene: oklch(75% 0.08 220);
  --c-people: oklch(74% 0.09 280);
  --c-sound: oklch(76% 0.09 150);

  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 12px;
  --pad-x: clamp(1.25rem, 4.5vw, 3rem);
  --z-sticky: 10;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1.04rem/1.68 "Schibsted Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--beam); color: oklch(18% 0.03 215); }

h1, h2, h3 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.025em; }
p { text-wrap: pretty; }

a { color: var(--beam); }

img, svg { max-width: 100%; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

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

/* ── Header ─────────────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  max-width: 1220px;
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand-mark { width: 28px; height: 28px; }

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0.78rem 1.35rem;
  font: 700 1rem "Schibsted Grotesk", system-ui, sans-serif;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.18s ease-out;
}
.btn:active { transform: translateY(1px); }
.btn-beam {
  background: var(--beam);
  color: oklch(17% 0.03 215);
}
.btn-beam:hover { background: oklch(87% 0.115 198); }
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
}
.btn-quiet:hover { border-color: var(--beam-deep); color: var(--beam); }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1220px;
  margin-inline: auto;
  padding: clamp(3rem, 8vh, 6.5rem) var(--pad-x) clamp(4rem, 9vh, 7rem);
  position: relative;
}
.hero::before {
  /* the beam: one slow sweep of light behind the product */
  content: "";
  position: absolute;
  inset: -10% -20% auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--beam-ghost), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  animation: drift 26s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-12%, 10%) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
}
.hero h1 .beam { color: var(--beam); font-style: normal; }

.lede {
  margin-top: 1.35rem;
  max-width: 34rem;
  font-size: 1.13rem;
  color: var(--muted);
}

.trust-line {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ── Waitlist form ──────────────────────────────────────────────────── */

.waitlist {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-width: 33rem;
}
.waitlist input {
  flex: 1 1 15rem;
  padding: 0.78rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--ink);
  font: 400 1rem "Schibsted Grotesk", system-ui, sans-serif;
}
.waitlist input::placeholder { color: oklch(62% 0.03 208); }
.waitlist input:focus-visible { outline-offset: 0; border-color: var(--beam); }
.form-note {
  flex-basis: 100%;
  font-size: 0.93rem;
  color: var(--beam);
  min-height: 1.3em;
}
.form-note.error { color: oklch(78% 0.13 30); }

/* ── Demo panel ─────────────────────────────────────────────────────── */

.demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow:
    0 30px 70px oklch(8% 0.02 220 / 0.55),
    0 0 0 1px oklch(100% 0 0 / 0.02) inset;
  overflow: hidden;
  position: relative;
}
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.85rem;
}
.demo-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--beam);
  box-shadow: 0 0 10px var(--beam);
}
.demo-search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raise);
}
.demo-search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.demo-query {
  font-family: var(--mono);
  font-size: 0.97rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.demo-caret {
  width: 2px; height: 1.15em;
  background: var(--beam);
  flex: none;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .demo-caret { animation: none; }
}

.demo-results {
  list-style: none;
  padding: 0 1rem 1rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  /* two result rows tall, so the panel never collapses while the next
     query is still being typed */
  min-height: 9.4rem;
}
.demo-hit {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: oklch(19% 0.018 216);
}
.demo-hit.enter { animation: hit-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
@keyframes hit-in {
  from { opacity: 0; transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-hit.enter { animation: none; }
}
.demo-thumb {
  width: 52px; height: 38px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  background: oklch(24% 0.02 214);
  border: 1px solid var(--line-soft);
}
.demo-hit-body { min-width: 0; display: grid; gap: 0.1rem; }
.demo-file {
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-why {
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-why mark, .q {
  background: oklch(82% 0.125 200 / 0.18);
  color: var(--beam);
  border-radius: 4px;
  padding: 0.04em 0.3em;
}
.demo-t {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.83rem;
  color: var(--beam);
  flex: none;
}

/* ── What it finds ──────────────────────────────────────────────────── */

section { position: relative; }

.finds {
  max-width: 1220px;
  margin-inline: auto;
  padding: clamp(3.5rem, 9vh, 7rem) var(--pad-x);
}
.finds h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  max-width: 24ch;
}
.finds-list {
  list-style: none;
  padding: 0;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: clamp(2rem, 4vw, 4rem);
}
.finds-list li {
  padding: 1.5rem 0 1.6rem;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}
.find-img {
  width: 108px;
  height: 81px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
}
.finds-list h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.finds-list p { color: var(--muted); font-size: 0.99rem; max-width: 46ch; }
.q {
  font-family: var(--mono);
  font-size: 0.9em;
  /* long queries wrap; clone keeps the highlight box on every line */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ── Offline (the drench) ───────────────────────────────────────────── */

.offline {
  background: var(--drench);
  color: var(--drench-ink);
}
.offline-inner {
  max-width: 1220px;
  margin-inline: auto;
  padding: clamp(3.5rem, 10vh, 7.5rem) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.offline h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}
.offline-copy p { color: var(--drench-muted); font-size: 1.08rem; max-width: 52ch; }
.offline-copy p + p { margin-top: 1rem; font-weight: 700; color: var(--drench-ink); }
.offline-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: oklch(100% 0 0 / 0.14);
  border: 1px solid oklch(100% 0 0 / 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
}
.offline-facts > div {
  background: var(--drench);
  padding: 1.4rem 1.5rem;
}
.offline-facts dt { font-size: 0.9rem; color: var(--drench-muted); }
.offline-facts dd {
  margin: 0.2rem 0 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Inside a video ─────────────────────────────────────────────────── */

.inside {
  max-width: 1220px;
  margin-inline: auto;
  padding: clamp(3.5rem, 9vh, 7rem) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* The filmstrip: footage rolling past on a transport, sprocket holes and
   all. Decorative (aria-hidden); GSAP drives the seamless loop, and
   reduced motion leaves it parked. */
.filmstrip {
  grid-column: 1 / -1;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: oklch(12% 0.012 218);
  padding: 14px 0;
  position: relative;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.filmstrip::before,
.filmstrip::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 8px;
  background: radial-gradient(circle at 6px 50%,
    oklch(30% 0.02 214) 2.6px, transparent 3.4px) repeat-x;
  background-size: 18px 8px;
}
.filmstrip::before { top: 3px; }
.filmstrip::after { bottom: 3px; }
.filmstrip-track {
  display: flex;
  gap: 8px;
  width: max-content;
  padding-inline: 8px;
  will-change: transform;
}
.filmstrip-track img {
  width: clamp(150px, 18vw, 210px);
  height: auto;
  border-radius: 4px;
  flex: none;
}
.inside h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
}
.inside-copy p { margin-top: 1.1rem; color: var(--muted); max-width: 48ch; }

.lanes {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.2rem;
  display: grid;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px oklch(8% 0.02 220 / 0.5);
}
.lane {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  align-items: center;
  gap: 0.8rem;
}
.lane-name { font-size: 0.86rem; color: var(--muted); }
.lane-track {
  position: relative;
  height: 16px;
  border-radius: 5px;
  background: oklch(17% 0.015 216);
}
.lane-track i {
  position: absolute;
  top: 2px; bottom: 2px;
  border-radius: 4px;
  background: color-mix(in oklch, var(--lane) 55%, var(--surface));
  border: 1px solid color-mix(in oklch, var(--lane) 75%, transparent);
}
.lane-track i.alt { background: color-mix(in oklch, var(--lane) 24%, var(--surface)); }
.playhead {
  position: absolute;
  top: 0.9rem; bottom: 0.9rem;
  left: 42%;
  width: 2px;
  background: var(--beam);
  box-shadow: 0 0 12px var(--beam);
  animation: sweep 14s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
@keyframes sweep {
  from { left: 8%; }
  to   { left: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .playhead { animation: none; }
}

/* ── Closer + FAQ ───────────────────────────────────────────────────── */

.closer {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(3rem, 9vh, 6.5rem) var(--pad-x) clamp(3.5rem, 9vh, 6rem);
  text-align: center;
}
.closer h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800;
}
.closer .waitlist { margin-inline: auto; justify-content: center; }
.closer .trust-line { margin-top: 0.8rem; }

.faq {
  margin-top: clamp(3rem, 8vh, 5rem);
  text-align: left;
}
.faq h3 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer;
  padding: 1rem 0.2rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--beam);
  transition: rotate 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p {
  padding: 0 0.2rem 1.1rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1220px;
  margin-inline: auto;
  padding: 1.6rem var(--pad-x) 2.2rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── Reveal (armed only when JS runs; content visible by default) ───── */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 940px) {
  .hero, .inside, .offline-inner { grid-template-columns: 1fr; }
  .inside .lanes { order: 2; }
  .hero::before { inset: auto -30% -10% auto; }
}
@media (max-width: 560px) {
  .waitlist input, .waitlist .btn { flex-basis: 100%; }
  .lane { grid-template-columns: 6.2rem 1fr; }
  .lane-name { font-size: 0.78rem; }
  .demo-t { display: none; }
}
