@font-face {
  font-family: "Schibsted Grotesk";
  src: url("schibsted-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("schibsted-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("jbmono-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ground: #0f1626;
  --raised: #151e33;
  --rule: #263150;
  --text: #edf0f5;
  --soft: #b4bccb;
  --dim: #8590a6;
  --amber: #f2b33d;
  --amber-ink: #1a1305;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 80px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--rule) var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  caret-color: var(--amber);
}
::selection { background: var(--amber); color: var(--amber-ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* Header */
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.top nav { display: flex; gap: 32px; }
.top nav a { color: var(--soft); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 7vh, 88px); padding-bottom: 96px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 24px; }
.hero .lede { color: var(--soft); font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 38ch; margin: 0 0 36px; }
.btn {
  display: inline-block; background: var(--amber); color: var(--amber-ink); text-decoration: none;
  font-weight: 700; padding: 15px 28px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.6);
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgb(0 0 0 / 0.7); }
.btn:active { transform: translateY(1px); }

/* Transcript */
.switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; margin-bottom: 22px; }
.switch button {
  font: 600 0.95rem var(--sans); color: var(--soft); background: none; border: 0; border-radius: 999px;
  padding: 8px 18px; cursor: pointer;
}
.switch button[aria-selected="true"] { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--rule); }
.transcript { margin: 0; font-size: clamp(1.1rem, 1.55vw, 1.4rem); line-height: 1.45; }
.line { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--rule); }
.line:last-child { border-bottom: 1px solid var(--rule); }
.who { color: var(--dim); padding-top: 5px; }
.who time { display: block; color: #7c87a0; margin-top: 2px; }
.line p { margin: 0; }
.line.answer p { color: var(--soft); }
.line.follow .who { color: var(--amber); }
.line.follow p { color: var(--text); font-weight: 600; }
.line.follow p::after {
  content: ""; display: inline-block; width: 0.5em; height: 1.05em; margin-left: 6px; vertical-align: -0.15em;
  background: var(--amber); opacity: 0;
}
.source { color: var(--dim); font-size: 0.9rem; margin: 14px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .transcript.play .line { animation: say .7s cubic-bezier(.16,1,.3,1) both; }
  .transcript.play .line:nth-child(2) { animation-delay: .55s; }
  .transcript.play .line:nth-child(3) { animation-delay: 1.25s; }
  .transcript.play .line.follow p::after { animation: caret 1.1s steps(1) 2s 4; }
  @keyframes say { from { opacity: 0; filter: blur(6px); transform: translateY(8px); } to { opacity: 1; filter: none; transform: none; } }
  @keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
}

/* Sections */
section { padding: clamp(72px, 10vw, 120px) 0; border-top: 1px solid var(--rule); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 18px; }
.intro { color: var(--soft); max-width: 60ch; margin: 0; font-size: 1.1rem; }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: 56px; }
.product figure { margin: 0 0 28px; background: var(--raised); border-radius: 20px; height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule); }
.product .phone img { height: 360px; width: auto; border-radius: 26px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8), 0 0 0 1px #2a3550; }
.product .report { padding: 32px 32px 0; align-items: flex-start; }
.product .report img { border-radius: 10px 10px 0 0; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8); }
.product h3 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.product > p { color: var(--soft); margin: 0 0 22px; max-width: 52ch; }
.product dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0 0 26px; }
.product dt { color: var(--dim); padding-top: 3px; }
.product dd { margin: 0; color: var(--soft); }
.product .visit { font-weight: 700; }
.caption { color: var(--dim); font-size: 0.85rem; margin: -18px 0 22px; }

/* Session timeline */
.run { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; position: relative; }
.run::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--rule); }
.stop { position: relative; padding-right: 32px; }
.stop::before { content: ""; display: block; width: 23px; height: 23px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 1px var(--soft); margin-bottom: 26px; position: relative; }
.stop.lit::before { background: var(--amber); box-shadow: none; }
.stop.lit h3 { color: var(--amber); }
.stop h3 { font-size: 1.3rem; margin: 0 0 8px; letter-spacing: -0.015em; }
.stop p { margin: 0; color: var(--soft); font-size: 0.98rem; }

/* Principles */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 44px clamp(40px, 6vw, 96px); margin-top: 48px; max-width: 1040px; }
.principles h3 { font-size: 1.2rem; margin: 0 0 8px; }
.principles p { margin: 0; color: var(--soft); }
/* Built-on strip under the hero */
.built { border-top: 1px solid var(--rule); padding: 26px 0 30px; }
.built .wrap { display: flex; align-items: center; gap: 32px; }
.built-label { margin: 0; flex: none; color: var(--dim); font-weight: 600; font-size: 0.95rem; }
.marquee { overflow: hidden; flex: 1; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; width: max-content; }
.logos { list-style: none; margin: 0; padding: 0 22px 0 0; display: flex; gap: 44px; }
.logos li { display: inline-flex; align-items: center; gap: 10px; color: var(--soft); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.logos img { height: 22px; width: auto; filter: brightness(0) invert(0.82); }
@media (prefers-reduced-motion: no-preference) {
  .track { animation: drift 45s linear infinite; }
  .marquee:hover .track { animation-play-state: paused; }
  @keyframes drift { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .track, .logos { flex-wrap: wrap; width: auto; row-gap: 14px; }
  .logos[aria-hidden] { display: none; }
}

/* About + contact */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.about .big { font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.4; letter-spacing: -0.01em; margin: 0 0 20px; }
.about p { color: var(--soft); max-width: 54ch; }
.contact dl { margin: 0; display: grid; gap: 22px; }
.contact dt { color: var(--dim); margin-bottom: 4px; }
.contact dd { margin: 0; font-size: 1.1rem; }
.contact dd.addr { color: var(--soft); font-size: 1rem; }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 28px 0 44px; color: var(--dim); font-size: 0.92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 24px; }
footer a { color: var(--soft); }

/* Text pages */
.doc { padding: 40px 0 112px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; margin: 24px 0 10px; }
.doc .updated { color: var(--dim); margin: 0 0 44px; }
.doc h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--soft); max-width: 68ch; }

@media (max-width: 900px) {
  .hero .wrap, .products, .about, .principles { grid-template-columns: 1fr; }
  .hero .wrap { padding-bottom: 72px; }
  .run { grid-template-columns: 1fr; gap: 32px; padding-left: 44px; }
  .run::before { left: 11px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .stop { padding-right: 0; }
  .stop::before { position: absolute; left: -44px; top: 0; margin: 0; }
  .product figure { height: 340px; }
  .product .phone img { height: 290px; }
}
@media (max-width: 520px) {
  .built .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .marquee { width: 100%; }
  .top nav { gap: 16px; }
  .top nav a { font-size: 0.95rem; }
  .line { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .who time { display: inline; margin-left: 10px; }
  .product dl { grid-template-columns: 1fr; gap: 2px; }
  .product dd { margin-bottom: 10px; }
}
@media (max-width: 400px) {
  .top nav { gap: 12px; }
  .top nav a { font-size: 0.88rem; }
  .brand { font-size: 1rem; gap: 8px; }
}
