@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("./fonts/SchibstedGrotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("./fonts/MartianMono.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  --board: #eceef2;
  --grid: #dde1e8;
  --grid-major: #c9cfdb;
  --sheet: #fafbfc;
  --sheet-2: #eef0f4;
  --seam: #d9dde5;
  --cobalt: #2448f5;
  --cobalt-side: #1730b5;
  --cobalt-hover: #2e52ff;
  --sunny: #ffc83d;
  --ink: #171a2c;
  --ink-raised: #262a42;
  --ink-line: #3a3f5c;
  --pebble: #5e6273;
  --on-board-2: #4c5062;
  --head-muted: #a3a8ba;
  --shadow: 23, 26, 44;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --lift: 0 18px 30px -18px rgba(var(--shadow), 0.45), 0 1px 2px rgba(var(--shadow), 0.08);
  /* corner radii, about 1.5x the brand board values, drawn as squircles where supported */
  --r-xs: 8px;
  --r-s: 9px;
  --r-tape: 6px;
  --r-tile-frame: 11px;
  --r-m: 15px;
  --r-tile: 18px;
  --r-l: 21px;
  --r-xl: 26px;
  --r-2xl: 32px;
  --wrap: min(100% - clamp(32px, 6vw, 80px), 1200px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--sunny); color: var(--ink); }
html { background: var(--board); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  color: var(--ink);
  font: 400 16px/1.55 var(--text);
  overflow-x: clip;
  background-color: var(--board);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  background-position: -1px 39px, -1px 39px, -1px 39px, -1px 39px;
}
a { color: inherit; }
code, .mono { font-family: var(--mono); font-weight: 500; }
img, video, svg { display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }
/* every rectangular box gets iOS-style squircle corners; circles and full pills stay round */
.skip, .slot, .tape-word, .tape-button, .soon code, .end-copy code, .player, .screen video, .sheet, .sheet .status,
.step, .term, .render, .mode, .tile, .tile-frame, .shapes, .shape .frame, .end-card { corner-shape: squircle; }
.defs { position: absolute; }
.probe { position: absolute; visibility: hidden; white-space: nowrap; left: -9999px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--sheet);
  padding: 8px 14px; border-radius: var(--r-s); text-decoration: none; transition: top 160ms var(--ease-out);
}
.skip:focus { top: 52px; }

/* ---------- ruler and header ---------- */
.ruler { height: 40px; background: var(--cobalt); border-bottom: 2px solid var(--cobalt-side); overflow: hidden; position: relative; z-index: 2; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; position: relative; z-index: 3; }
.brand img { width: 115px; height: auto; }
.top nav { display: flex; gap: 6px; align-items: center; }
.top nav a {
  font: 600 15px var(--text); text-decoration: none; padding: 8px 14px; border-radius: 999px;
  transition: background-color 160ms ease, transform 120ms var(--ease-out);
}
.top nav a:hover { background: rgba(var(--shadow), 0.06); }
.top nav a:active { transform: scale(0.97); }
.top nav .nav-labs { background: var(--ink); color: var(--sheet); }
.top nav .nav-labs:hover { background: var(--ink-raised); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(64px, 11vw, 132px) 0 clamp(64px, 9vw, 110px); }
.rings-clip { position: absolute !important; top: -80px; bottom: -40px; left: calc(50% - 50vw); width: 100vw; overflow: hidden; pointer-events: none; z-index: 0 !important; }
.hero-rings {
  position: absolute; left: 50%; top: 50%; width: 1560px; height: 780px; transform: translate(-58%, -50%);
  pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 30%, transparent 96%);
  mask-image: radial-gradient(ellipse closest-side, #000 30%, transparent 96%);
}
.hero > :not(.rings-clip) { position: relative; z-index: 1; }
.hero-mark { position: absolute !important; right: 0; top: clamp(40px, 7vw, 90px); width: clamp(180px, 26vw, 330px); aspect-ratio: 1; transform: rotate(7deg); }
.hero-mark .tape { position: absolute; top: 7%; left: 33%; width: 36%; height: 10%; background: rgba(255, 200, 61, 0.92); border-radius: 2px; transform: rotate(-12deg); z-index: 2; box-shadow: 0 2px 4px rgba(var(--shadow), 0.12); }
.sticker { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 12px rgba(var(--shadow), 0.35)); }
.sticker .edge { fill: #fff; stroke: #fff; stroke-width: 7; stroke-linejoin: round; }
.sticker .face { fill: var(--cobalt); }

.title {
  font: 720 clamp(46px, 7.2vw, 94px) / 1.04 var(--display); font-stretch: 92%; letter-spacing: -0.03em;
  max-width: 960px; color: var(--ink);
}
.title .ln { display: block; white-space: nowrap; }
.slot {
  display: inline-block; vertical-align: bottom; position: relative; height: 1.1em; overflow: hidden;
  background: var(--sunny); color: var(--ink); border-radius: var(--r-s); padding: 0 0.14em; margin: 0 0.02em;
  box-sizing: content-box; box-shadow: 0 10px 18px -8px rgba(var(--shadow), 0.45);
  clip-path: inset(-20px -20px -24px -20px);
}
.slot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(var(--shadow), calc(var(--fade, 0) * 0.32)), transparent 32%, transparent 68%, rgba(var(--shadow), calc(var(--fade, 0) * 0.32)));
}
.ln:first-child .slot { transform: rotate(-1.2deg); }
.ln + .ln .slot { transform: rotate(0.9deg); }
.slot .reel { display: block; will-change: transform; opacity: calc(1 - var(--reel-out, 0)); }
.slot .reel span { display: block; height: 1.1em; line-height: 1.1em; white-space: nowrap; }

.lead { max-width: 560px; margin-top: 34px; font-size: clamp(17px, 1.6vw, 20px); color: var(--on-board-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.tape-button {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 700 17px var(--text); color: #fff; background: var(--cobalt); padding: 13px 22px 13px 18px; border-radius: var(--r-tape);
  box-shadow: 0 6px 12px -6px rgba(var(--shadow), 0.5);
  transition: transform 120ms var(--ease-out), background-color 160ms ease;
}
.tape-button:hover { background: var(--cobalt-hover); }
.tape-button:active { transform: scale(0.97) rotate(-0.6deg); }
.tape-button svg { width: 18px; height: 18px; }
.tape-button .mono { font-size: 12px; opacity: 0.8; }
.tape-button.light { background: var(--sunny); color: var(--ink); }
.tape-button.light:hover { background: #ffd35e; }
.soon { font: 500 14px var(--mono); color: var(--on-board-2); }
.soon code, .end-copy code { background: var(--sheet); color: var(--cobalt); padding: 3px 7px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--seam); }

/* ---------- sections ---------- */
main > section:not(.hero) { padding-block: clamp(56px, 8vw, 96px); }
.heading { max-width: 760px; margin-bottom: 36px; }
h2 { font: 700 clamp(32px, 4.4vw, 52px) / 1.04 var(--display); font-stretch: 94%; letter-spacing: -0.025em; text-wrap: balance; }
.heading p { margin-top: 14px; color: var(--on-board-2); font-size: 17px; max-width: 620px; }
.heading p code { font-size: 14px; color: var(--cobalt); white-space: nowrap; }
.tape-word { background: var(--sunny); border-radius: var(--r-xs); padding: 0 0.12em; display: inline-block; transform: rotate(-1deg); box-shadow: 0 8px 14px -8px rgba(var(--shadow), 0.45); }

/* ---------- film ---------- */
.player { background: var(--sheet); border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(var(--shadow), 0.6); }
.player-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--ink); color: var(--sheet); }
.mini-d { width: 24px; height: 24px; flex: none; }
.proj { font: 600 15px var(--text); white-space: nowrap; }
.proj span { color: var(--head-muted); font-weight: 500; }
.pill { margin-left: auto; font: 500 12px var(--mono); background: var(--ink-raised); padding: 6px 12px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.screen { padding: clamp(10px, 1.6vw, 18px); }
.screen video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-m); background: var(--ink); }
.screen .vevo { --vevo-accent: var(--sunny); --vevo-bg: rgba(23, 26, 44, 0.66); --vevo-radius: var(--r-m); }
.screen .vevo video { border-radius: 0; }
.player-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 18px 16px; font: 500 12px var(--mono); color: var(--pebble); }
.player-foot a { color: var(--cobalt); text-underline-offset: 3px; }

/* ---------- inputs ---------- */
.sheets { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sheet { position: relative; background: var(--sheet); border-radius: var(--r-l); padding: 26px 24px 24px; box-shadow: var(--lift); display: flex; flex-direction: column; gap: 10px; }
.sheet:nth-child(2) { transform: rotate(0.4deg); }
.sheet:nth-child(4) { transform: rotate(-0.4deg); }
.sheet:nth-child(6) { background: var(--ink); color: var(--sheet); }
.sheet:nth-child(6) p { color: var(--head-muted); }
.sheet:nth-child(6) .status { background: var(--ink-raised); color: var(--sunny); }
.sheet b { font: 700 24px/1.1 var(--display); letter-spacing: -0.015em; }
.sheet .status { align-self: flex-start; font: 500 11.5px/1.5 var(--mono); background: var(--sheet-2); color: var(--ink); padding: 4px 8px; border-radius: var(--r-xs); }
.sheet p { color: var(--pebble); font-size: 15px; }
.tape { position: absolute; width: 84px; height: 24px; background: rgba(255, 200, 61, 0.92); border-radius: 2px; box-shadow: 0 2px 4px rgba(var(--shadow), 0.12); }
.tape.t1 { top: -10px; left: 24px; transform: rotate(-5deg); }
.tape.t2 { top: -9px; right: 30px; transform: rotate(4deg); }
.tape.t3 { top: -10px; left: 40%; transform: rotate(-3deg); }

/* ---------- flow ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--sheet); border-radius: var(--r-l); padding: 24px; box-shadow: var(--lift); display: flex; flex-direction: column; gap: 14px; }
.num { font: 500 12px var(--mono); color: var(--cobalt); }
.step b { font: 700 24px/1.1 var(--display); letter-spacing: -0.015em; }
.step p { color: var(--pebble); font-size: 15px; margin-top: auto; }
.term { background: var(--ink); color: var(--sheet); border-radius: var(--r-m); padding: 16px 16px; font: 500 15px var(--mono); }
.term .prompt { color: var(--sunny); }
.term code { color: #fff; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 600 14px var(--text); padding: 6px 12px; border-radius: 999px; background: var(--sheet-2); box-shadow: inset 0 0 0 1.5px var(--seam); }
.chips li:first-child { background: var(--sunny); box-shadow: inset 0 0 0 1.5px var(--ink); }
.render { display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--sheet); border-radius: var(--r-m); padding: 12px 14px; }
.render svg { width: 40px; height: 40px; flex: none; }
.render span { font: 500 12px var(--mono); color: var(--head-muted); font-variant-numeric: tabular-nums; }
.modes { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.mode { border-radius: var(--r-l); padding: 20px 22px; background: rgba(250, 251, 252, 0.6); box-shadow: inset 0 0 0 1.5px var(--seam); }
.mode code { font-size: 14px; color: var(--cobalt); }
.mode p { margin-top: 8px; color: var(--on-board-2); font-size: 15px; }

/* ---------- styles wall ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button {
  font: 600 14px var(--text); color: var(--ink); background: var(--sheet); border: 0; cursor: pointer;
  padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--seam);
  transition: background-color 160ms ease, transform 120ms var(--ease-out);
}
.filters button:hover { background: var(--sheet-2); }
.filters button:active { transform: scale(0.97); }
.filters button[aria-pressed="true"] { background: var(--sunny); box-shadow: inset 0 0 0 1.5px var(--ink); }
.wall { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.tile { background: var(--sheet); border-radius: var(--r-tile); padding: 8px 8px 12px; box-shadow: var(--lift); display: flex; flex-direction: column; }
.tile[hidden] { display: none; }
.tile-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-tile-frame); overflow: hidden; background: var(--ink); margin-bottom: 10px; }
.tile-frame img, .tile-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-frame video { opacity: 0; transition: opacity 240ms ease; }
.tile.live .tile-frame video { opacity: 1; }
.tile b { font: 700 16px/1.2 var(--text); padding: 0 4px; }
.tile .like { font: 500 11px/1.5 var(--mono); color: var(--pebble); padding: 2px 4px 0; }
.tile .line { font-size: 13px; line-height: 1.4; color: var(--on-board-2); padding: 6px 4px 0; }
.wall-note { margin-top: 26px; color: var(--on-board-2); font-size: 15px; }

/* ---------- export ---------- */
.shapes { display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 3vw, 40px); background: var(--sheet); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); box-shadow: var(--lift); }
.shape { display: flex; flex-direction: column; gap: 12px; }
.shape .frame { overflow: hidden; border-radius: var(--r-m); background: var(--ink); box-shadow: 0 0 0 6px #fff, 0 18px 28px -14px rgba(var(--shadow), 0.6); }
.shape .frame { position: relative; }
.shape img, .shape video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shape video { opacity: 0; transition: opacity 240ms ease; }
.shape .frame.live video { opacity: 1; }
.shape .frame { background: var(--board); }
.s169 .frame { width: clamp(150px, 34vw, 420px); aspect-ratio: 16 / 9; }
.s916 .frame { width: clamp(64px, 10vw, 140px); aspect-ratio: 9 / 16; }
.s11 .frame { width: clamp(96px, 17vw, 236px); aspect-ratio: 1; }
.shape figcaption b { display: block; font: 600 15px var(--mono); }
.shape figcaption span { font-size: 13px; color: var(--pebble); }
.specs { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 22px; }
.specs div { display: flex; gap: 12px; align-items: baseline; }
.specs dt { font: 500 12px var(--mono); color: var(--pebble); }
.specs dd { font-size: 16px; font-weight: 600; }

/* ---------- end card ---------- */
.end-card { position: relative; overflow: hidden; background: var(--cobalt); color: #fff; border-radius: var(--r-2xl); padding: clamp(36px, 6vw, 72px); min-height: 380px; display: flex; align-items: center; box-shadow: 0 30px 50px -30px rgba(var(--shadow), 0.7); }
.end-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.end-d { position: absolute; right: 9%; top: 50%; width: clamp(120px, 20vw, 250px); transform: translateY(-46%); overflow: visible; filter: drop-shadow(0 12px 16px rgba(11, 27, 122, 0.45)); }
.end-copy { position: relative; max-width: 640px; }
.end-copy h2 { font-size: clamp(40px, 6vw, 76px); font-weight: 720; font-stretch: 92%; letter-spacing: -0.03em; }
.end-copy h2 .tape-word { color: var(--ink); }
.end-copy p { margin: 22px 0 28px; font-size: 17px; color: #dce3ff; }

/* ---------- footer ---------- */
.footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.footer-back {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; text-decoration: none;
  padding: 16px 16px 16px 36px; background: var(--sheet); border-radius: 44px; font: 500 17px var(--text);
  box-shadow: var(--lift); transition: transform 120ms var(--ease-out);
}
.footer-back b { font-weight: 700; color: var(--cobalt); }
.footer-back .arrow { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--cobalt); color: #fff; font-size: 18px; transition: transform 200ms var(--ease-out); }
.footer-back:hover .arrow { transform: rotate(45deg); }
.footer-back:active { transform: scale(0.985); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 8px 0; font: 500 13px var(--mono); color: var(--pebble); }
.footer-bottom a { text-decoration: none; color: var(--ink); }
.footer-bottom a:hover { color: var(--cobalt); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .sheets, .steps, .modes { grid-template-columns: repeat(2, 1fr); }
  .hero-mark { opacity: 0.9; }
}
@media (max-width: 720px) {
  .top nav a:not(.nav-labs) { display: none; }
  .hero-mark { width: 92px; top: auto; bottom: 8px; right: 4px; }
  .soon { font-size: 13px; text-wrap: balance; }
  .sheets, .steps, .modes { grid-template-columns: 1fr; }
  .sheet:nth-child(n) { transform: none; }
  .wall { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { padding: 6px 6px 10px; }
  .tile .line { display: none; }
  .tile b { font-size: 14px; }
  .tile .like { font-size: 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc((100vw - 100%) / -2); padding-inline: calc((100vw - 100%) / 2); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .shapes { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: end; gap: 22px 18px; padding: 24px 18px; }
  .s169 { grid-column: 1 / -1; }
  .s169 .frame { width: 100%; }
  .s916 .frame { width: 96px; }
  .s11 .frame { width: 150px; }
  .end-d { display: none; }
  .pill { display: none; }
  .footer-back { padding: 14px 14px 14px 22px; font-size: 15px; border-radius: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
