:root {
  --bg: #0a0a0a;
  --surface: #151515;
  --ink: #efefef;
  --muted: #a3a3a3;
  --accent: #c8102e;
  --accent-ink: #ffffff;
  --tg: #182533;
  --tg-name: #6ab3f3;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-name: 18.3vw;

  --m: 28px;
  --gutter: 20px;

  /* House motion curve set (craft/motion.md). */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-press: 75ms; --dur-release: 160ms; --dur-expand: 350ms;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: var(--step-body); line-height: 1.45; letter-spacing: -0.01em; font-kerning: normal;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { color: var(--muted); max-width: 46ch; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; text-decoration: none;
  transition: background var(--t-hover) var(--ease-out), transform var(--dur-release) var(--ease-spring);
}
.button:hover { background: #e0173a; }
.button:active { transform: scale(.96); transition-duration: var(--t-hover), var(--dur-press); }

/* ---------- the one screen ---------- */
.one {
  height: 100svh; min-height: 680px;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: var(--gutter); padding: 0 var(--m) var(--m);
}
.bar { grid-column: 1 / 7; grid-row: 1; display: flex; align-items: center; gap: 28px; padding-top: var(--m); }
.lang select {
  font: inherit; font-size: var(--step-small); font-weight: 600; color: var(--ink); background: var(--bg);
  border: 2px solid var(--ink); border-radius: 0; padding: 6px 10px; min-height: 44px; cursor: pointer;
}
.legal-links { display: flex; gap: 22px; font-size: var(--step-small); font-weight: 600; }
.legal-links a { text-decoration: none; padding: 6px 0; position: relative; }
.legal-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out);
}
.legal-links a:hover::after { transform: scaleX(1); }

.copy { grid-column: 1 / 7; grid-row: 2; align-self: center; display: grid; gap: 24px; justify-items: start; padding: 28px 0; }
.lead { font-size: var(--step-head); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; max-width: 18ch; }
.points { display: grid; gap: 6px; }
.points li { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.points li::before { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-right: 0.5em; background: var(--accent); vertical-align: 0.12em; }
.get { display: grid; gap: 12px; justify-items: start; }

.picture {
  grid-column: 7 / 13; grid-row: 1 / 3; margin: var(--m) 0 24px; position: relative; min-height: 0;
  display: grid; grid-template-columns: 1.2fr 0.5fr 0.5fr; grid-template-rows: 1fr 1fr; gap: 8px;
  grid-template-areas: "a b b" "a c d";
}
.picture img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 22%; background: #2a2018; }
.picture img:nth-child(1) { grid-area: a; }
.picture img:nth-child(2) { grid-area: b; }
.picture img:nth-child(3) { grid-area: c; }
.picture img:nth-child(4) { grid-area: d; object-position: 50% 15%; }
.toast {
  position: absolute; left: 24px; bottom: 24px; max-width: 30ch; z-index: 1;
  background: var(--tg); color: var(--ink); padding: 14px 18px; display: grid; gap: 4px;
}
.toast b { color: var(--tg-name); font-size: var(--step-small); }

.name {
  grid-column: 1 / -1; grid-row: 3; overflow: clip;
  font-size: var(--step-name); font-weight: 800; line-height: 0.8; letter-spacing: -0.055em;
  white-space: nowrap; padding-bottom: 0.06em;
}
.name__in { display: inline-block; }

/* ---------- motion ---------- */
@keyframes name-rise { from { transform: translateY(0.9em); } to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }
@keyframes load-open { to { clip-path: inset(0); } }
@keyframes drift { from { object-position: 50% 34%; } to { object-position: 50% 12%; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .js .name__in { animation: name-rise 900ms var(--ease-expo) 60ms both; }
  .js [data-load] { opacity: 0; transform: translateY(16px); animation: load-rise 520ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js [data-open] { clip-path: inset(0 0 100% 0); animation: load-open 1000ms var(--ease-in-out) var(--d) forwards; }
  .js .picture img:first-child { animation: load-open 1000ms var(--ease-in-out) var(--d) forwards, drift 18s var(--ease-soft) both; }
  .js .toast { animation: toast-in 480ms var(--ease-out) 1300ms both; }
  .js .toast.is-new { animation: toast-in 480ms var(--ease-out) both; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------- phone ---------- */
@media (max-width: 800px) {
  :root { --m: 16px; --step-name: 18.6vw; }
  .one { display: flex; flex-direction: column; height: auto; min-height: 0; padding-top: var(--m); }
  .bar { justify-content: space-between; padding-top: 0; }
  .name { order: 1; margin: 20px 0 8px; }
  .copy { order: 2; padding: 8px 0 28px; gap: 20px; }
  .picture { order: 3; height: 70svh; margin: 0; flex: none; }
  .legal-links { gap: 16px; }
  .get { justify-items: stretch; width: 100%; }
}

/* ---------- legal pages ---------- */
.legal__top { padding: var(--m); }
.legal__name { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.045em; text-decoration: none; }
.legal__body { max-width: calc(68ch + var(--m) * 2); padding: 40px var(--m) 120px; margin: 0 auto; }
.legal__body h1 { font-size: var(--step-head); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 12px; }
.legal__body h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; margin: 48px 0 12px; }
.legal__body p { margin-bottom: 14px; line-height: 1.6; }
.legal__body a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.legal__list { list-style: disc; padding-left: 1.2em; display: grid; gap: 8px; line-height: 1.55; margin-bottom: 14px; }
.legal__foot { display: flex; flex-wrap: wrap; gap: 24px; padding: 32px var(--m); font-size: var(--step-small); font-weight: 600; background: var(--surface); }
.legal__foot a { text-decoration: none; }
.legal__foot a:hover { text-decoration: underline; }
