/* Atelier du site — the well-kept board.
   Charter: two colours. White carries the page; one deep sky blue fills the fields, the tiles' tints
   and every way of calling. Text in a near-black blue. One grotesk, one 6px radius, 8px gaps. */
:root {
  --bg: #ffffff;
  --surface: #e4f0fa;
  --surface-hi: #f2f8fd;
  --ink: #0b1828;
  --muted: #45566a;
  --paper: #ffffff;
  --accent: #0e6eb8;
  --accent-ink: #ffffff;
  --accent-dark: #0a5590;
  --deep: #072c4d;
  --sun: #ffc83d;
  --sun-dark: #f0b21a;
  --accent-2: #0d64a8;
  --accent-3: #0a538c;
  --online: #1fbf62;

  --font: 'Schibsted Grotesk', system-ui, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-h2: clamp(2.25rem, 4vw, 3.75rem);
  --step-mark: clamp(3rem, 8.4vw, 8.5rem);
  --pad: 24px;

  --r: 6px;
  --g: 8px;
  --m: 10px;
  --gap: 160px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.4 var(--font); letter-spacing: -0.01em; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: fixed; left: var(--m); top: 10px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 50; border-radius: var(--r); }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }

h1, h2 { font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-weight: 600; }
.tile { border-radius: var(--r); overflow: hidden; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--online); flex: none; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { scale: 1.5; opacity: 0.55; } }

/* ---------- The bar and the first screen ---------- */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px var(--pad); }
.nav__mark { justify-self: start; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.05em; text-decoration: none; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { font-weight: 600; text-decoration: none; transition: color 0.2s; }
.nav__links a:hover { color: var(--accent); }
.nav .btn { justify-self: end; }
.btn { display: inline-flex; align-items: center; min-height: 56px; padding: 0 26px; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: background 0.25s, transform 0.25s var(--ease-out); }
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.link { position: relative; font-weight: 600; text-decoration: none; padding: 6px 0; }
.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform-origin: right; transition: scale 0.3s var(--ease-out); }
.link:hover::after { scale: 0 1; }

.hero { position: relative; isolation: isolate; min-height: calc(100svh - 80px); margin: 0 var(--m); border-radius: var(--r); overflow: hidden; display: grid; place-items: center; text-align: center; color: var(--paper); background: var(--deep); }
/* The background: a tilted wall of pages from our own mockups, printed in blue, drifting slowly. */
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #1a5a96; }
.hero__wall { position: absolute; left: 50%; top: 50%; width: 190%; padding: 18px; background: #1a5a96; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; transform: translate(-50%, -50%) rotate(-8deg); animation: drift 60s linear infinite alternate; }
.hero__wall img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; }
@keyframes drift { to { transform: translate(-50%, -58%) rotate(-8deg); } }
.hero__in { padding: 64px 24px; display: grid; justify-items: center; gap: 28px; max-width: 1100px; }
.slogan { display: grid; justify-items: center; font-size: clamp(3rem, 8.6vw, 9rem); letter-spacing: -0.06em; line-height: 0.9; }
.slogan__line { display: block; white-space: nowrap; }
.slogan__word { display: inline-flex; align-items: baseline; }
.slogan__sel { position: relative; isolation: isolate; padding: 0 0.04em; transition: color 0.15s; }
.slogan__sel::before { content: ''; position: absolute; inset: 0.1em 0 0.02em; z-index: -1; border-radius: 0.04em; background: var(--sun); transform-origin: left; scale: 0 1; transition: scale 0.3s var(--ease-out); }
.slogan__sel.is-selected { color: var(--ink); }
.slogan__sel.is-selected::before { scale: 1 1; }
.caret { display: inline-block; align-self: center; width: 0.06em; height: 0.78em; margin-left: 0.03em; background: var(--sun); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.btn--hero { min-height: 72px; padding: 0 40px; font-size: var(--step-lead); font-weight: 700; background: var(--sun); color: var(--ink); }
.btn--hero:hover { background: var(--paper); color: var(--ink); }
.hero__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: var(--step-small); font-weight: 600; }
.hero__now { display: inline-flex; align-items: center; gap: 10px; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: var(--sun-dark); }
.nav .btn { background: var(--sun); color: var(--ink); }
.nav .btn:hover { background: var(--sun-dark); }

/* ---------- The work: a carousel. The card in front plays; its neighbours wait, smaller, at its sides. ---------- */
.work { padding: var(--gap) var(--pad) 0; overflow-x: clip; }
.work__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.work__head h2 { grid-column: 1 / 6; font-size: var(--step-h2); }
.work__head p { grid-column: 8 / -1; font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; }
.deck { position: relative; margin-top: 56px; touch-action: pan-y; }
.deck__cards { list-style: none; margin: 0 auto; padding: 0; position: relative; width: min(62%, 860px); aspect-ratio: 16 / 13.6; }
.card { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; gap: 18px; transform: translateX(calc(var(--o, 0) * 78%)) scale(calc(1 - var(--a, 0) * 0.2)); opacity: calc(1 - var(--a, 0) * 0.45); z-index: calc(10 - var(--a, 0)); transition: transform 0.7s var(--ease-out), opacity 0.5s; }
.card[data-far] { opacity: 0; pointer-events: none; }
.card:not(.is-front) { cursor: pointer; }
.card:not(.is-front) .card__info { visibility: hidden; }
.card__screen { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.card__screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card__info { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center; }
.card__info p:first-child { font-size: var(--step-lead); }
.card__info b { font-weight: 800; letter-spacing: -0.03em; }
.card__info span { font-size: var(--step-small); font-weight: 600; color: var(--muted); margin-left: 8px; }
.card__line { grid-column: 1; max-width: 52ch; }
.card__info .btn { grid-column: 2; grid-row: 1 / 3; }
.deck__arrow { all: unset; position: absolute; top: 34%; z-index: 20; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); cursor: pointer; transition: background 0.25s, transform 0.25s var(--ease-out); }
.deck__arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.deck__arrow:hover { background: var(--accent); transform: scale(1.06); }
.deck__arrow:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.deck__arrow--prev { left: 6%; }
.deck__arrow--next { right: 6%; }
.deck__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.deck__tabs button { all: unset; cursor: pointer; padding: 12px 18px; border-radius: var(--r); background: var(--surface-hi); font-weight: 600; transition: background 0.25s, color 0.25s; }
.deck__tabs button:hover { background: var(--surface); }
.deck__tabs button[aria-selected=true] { background: var(--accent); color: var(--accent-ink); }
.deck__tabs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- How it works: the line runs down the middle and into each step from its side. ---------- */
.how { padding: var(--gap) var(--pad) 0; overflow-x: clip; }
.how__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.how__head h2 { grid-column: 1 / 7; font-size: var(--step-h2); }
.how__head p { grid-column: 8 / -1; font-size: var(--step-lead); line-height: 1.35; max-width: 32ch; }
.route { position: relative; margin-top: 72px; }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route__track, .route__line { fill: none; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.route__track { stroke: var(--surface); }
.route__line { stroke: var(--accent); }
.route__head { fill: var(--sun); }
.route__halo { fill: var(--sun); opacity: 0.18; animation: halo 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { scale: 0.6; opacity: 0.35; } 100% { scale: 1.6; opacity: 0; } }
.route__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 72px; position: relative; }
.step { display: grid; gap: 12px; align-content: start; padding: 32px 32px 36px; border-radius: var(--r); background: var(--surface-hi); transition: background 0.5s, color 0.5s, transform 0.6s var(--ease-out); }
.step--left { grid-column: 1 / 6; transform: translateX(-24px); }
.step--right { grid-column: 8 / -1; transform: translateX(24px); }
.step__fact { font-size: var(--step-h2); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; color: var(--accent); transition: color 0.5s; }
.step h3 { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.step p:last-child { max-width: 46ch; }
.step.is-reached { background: var(--accent); color: var(--accent-ink); transform: none; }
.step.is-reached .step__fact { color: var(--sun); }
html:not(.js) .step { transform: none; }

/* ---------- The call: blue means "call us". ---------- */
.call { margin: var(--gap) var(--m) 0; min-height: 80svh; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); overflow: hidden; padding-bottom: 56px; }
.drift { margin-top: 48px; overflow: hidden; }
.drift__run { display: flex; gap: var(--g); width: max-content; animation: run 70s linear infinite; }
.drift__run img { height: 150px; width: auto; border-radius: var(--r); object-fit: cover; object-position: top; flex: none; }
.call__body { padding: 72px 24px 0; display: grid; gap: 24px; }
.call__body h2 { font-size: var(--step-h2); }
.call__lead { font-size: var(--step-lead); line-height: 1.3; max-width: 40ch; }
.call__form { display: grid; gap: 16px; margin-top: 16px; }
.when { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--g); align-items: center; }
.when legend { float: left; font-weight: 600; margin-right: 8px; padding: 0; }
.when label { position: relative; }
.when input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.when span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r); background: var(--accent-2); font-weight: 600; transition: background 0.2s, color 0.2s; }
.when label:hover span { background: var(--accent-3); }
.when input:checked + span { background: var(--paper); color: var(--ink); }
.when input:focus-visible + span { outline: 3px solid var(--paper); outline-offset: 2px; }
.bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); }
.bar__cell { position: relative; min-height: 96px; border-radius: var(--r); background: var(--accent-2); display: grid; align-content: center; justify-items: center; padding: 14px 20px; transition: background 0.2s; }
.bar__cell:focus-within { background: var(--accent-3); }
.bar__cell span { font-size: var(--step-small); font-weight: 600; }
.bar__cell input { width: 100%; border: 0; background: transparent; color: var(--accent-ink); text-align: center; font-size: var(--step-body); font-weight: 600; padding: 6px 0; }
.bar__cell input:focus { outline: 0; }
.bar__go { background: var(--paper); color: var(--ink); font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.bar__go:hover { background: var(--ink); color: var(--paper); }
.bar__notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); font-size: var(--step-small); }
.bar__notes p:last-child { grid-column: 3; }

/* ---------- Questions: filled tiles, the open one in blue. ---------- */
.faq { padding: var(--gap) var(--pad) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.faq h2 { grid-column: 1 / 5; position: sticky; top: 96px; font-size: var(--step-h2); }
.faq__list { grid-column: 5 / -1; display: grid; gap: var(--g); }
.faq details { border-radius: var(--r); background: var(--surface); transition: background 0.3s, color 0.3s; }
.faq details:hover { background: #d3e7f8; }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 24px; font-size: var(--step-body); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 16px; height: 16px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: rotate 0.3s var(--ease-out); }
.faq summary i::after { rotate: 90deg; }
.faq details[open] summary i::after { rotate: 0deg; }
.faq details p { padding: 0 24px 28px; max-width: 52ch; }

/* ---------- The footer: the last two rows of the board. ---------- */
.foot { margin-top: var(--gap); padding: var(--m); display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 220px 320px; gap: var(--g); }
.foot .tile { padding: 22px; background: var(--surface); }
.foot__say { grid-column: 1 / 5; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.foot__say > p { font-size: var(--step-lead); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.credits { font-size: var(--step-small); }
.credits summary { cursor: pointer; }
.credits p { margin-top: 8px; color: var(--muted); max-width: 60ch; }
.foot__nav { grid-column: 5 / 8; display: grid; align-content: start; gap: 6px; }
.foot__nav a { text-decoration: none; font-weight: 600; justify-self: start; }
.foot__nav a:hover { color: var(--accent); }
.foot__time { grid-column: 8 / 10; font-weight: 600; line-height: 1.5; }
.foot__mail { grid-column: 10 / -1; display: flex; align-items: flex-end; }
.foot__mail a { font-size: var(--step-lead); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.foot__mail a:hover { color: var(--accent); }
.foot .foot__mark { grid-column: 1 / 9; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--accent); font-size: var(--step-mark); font-weight: 800; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.foot .foot__go { grid-column: 9 / -1; display: flex; flex-direction: column; justify-content: space-between; background: var(--accent); color: var(--accent-ink); font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-decoration: none; transition: background 0.25s; }
.foot .foot__go:hover { background: var(--accent-dark); }
.foot__go svg { width: 64px; height: 64px; stroke-width: 2.6; }

/* The call stays one tap away once the first screen is gone. */
.stick { position: fixed; right: 16px; bottom: 16px; z-index: 30; padding: 16px 22px; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; transform: translateY(160%); transition: transform 0.45s var(--ease-out), background 0.25s; }
.stick.is-on { transform: none; }
.stick:hover { background: var(--ink); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --gap: 120px; }
  .faq h2 { grid-column: 1 / -1; position: static; }
  .faq__list { grid-column: 1 / -1; }
  .foot { grid-template-rows: auto auto; }
  .foot__say { grid-column: 1 / 7; }
  .foot__nav { grid-column: 7 / 10; }
  .foot__time { grid-column: 10 / -1; }
  .foot__mail { grid-column: 1 / -1; }
  .foot .foot__mark { grid-column: 1 / -1; min-height: 180px; }
  .foot .foot__go { grid-column: 1 / -1; min-height: 160px; }
}

/* ---------- Phone: its own board, two columns. ---------- */
@media (max-width: 700px) {
  :root { --g: 6px; --m: 8px; --gap: 88px; --pad: 16px; --step-h2: 9vw; --step-mark: 14vw; }
  .call { min-height: 0; }
  .drift { margin-top: 32px; }
  .drift__run img { height: 110px; }
  .call__body { padding: 48px 16px 0; }
  .call__lead { font-size: var(--step-body); }
  .bar__notes p:last-child { grid-column: auto; }
  .bar__cell { min-height: 64px; justify-items: start; }
  .bar__cell input { text-align: left; }
  .bar__go { justify-items: center; }
  .faq summary { min-height: 64px; padding: 12px 20px; }
  .faq details p { padding: 0 20px 22px; }
  .foot { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .foot .foot__mark { grid-column: 1 / -1; grid-row: 1; min-height: 160px; }
  .foot .foot__go { grid-column: 1 / -1; grid-row: 2; min-height: 140px; }
  .foot__nav { grid-column: 1; grid-row: 3; }
  .foot__mail { grid-column: 2; grid-row: 3; }
  .foot__mail a { font-size: var(--step-body); }
  .foot__time { grid-column: 1; grid-row: 4; }
  .foot__say { grid-column: 2; grid-row: 4; }
  .foot__say > p { font-size: var(--step-body); }
  .foot .tile { padding: 18px; }
  .stick { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}
@media (max-width: 700px) {
  .nav { padding: 14px var(--pad); }
}


@media (max-width: 1100px) {
}
@media (max-width: 700px) {
}

@media (max-width: 1100px) {
}
@media (max-width: 700px) {
}
@media (max-width: 700px) {
  /* The phone keeps it simple: the call as a stack, no diagram, just the three steps. */
  .bar, .bar__notes { grid-template-columns: 1fr; }
  .bar__notes p:last-child { grid-column: auto; }
  .bar__cell { min-height: 64px; justify-items: start; }
  .bar__cell input { text-align: left; }
  .bar__go { justify-items: center; }
}

@media (max-width: 1100px) {
}
@media (max-width: 700px) {
}
main, .foot { overflow-x: clip; }

@media (max-width: 1100px) {
  .how__head h2, .how__head p { grid-column: 1 / -1; }
  .how__head { row-gap: 16px; }
  .route__steps { padding-left: 52px; row-gap: 40px; }
  .step--left, .step--right { grid-column: 1 / -1; transform: translateX(16px); }
}
@media (max-width: 700px) {
  .route { margin-top: 40px; }
  .route__steps { padding-left: 36px; row-gap: 24px; }
  .route__track, .route__line { stroke-width: 6; }
  .step { padding: 22px 20px 24px; gap: 8px; }
}

@media (max-width: 1100px) {
}
@media (max-width: 700px) {
}

@media (max-width: 1100px) {
  .work__head h2, .work__head p { grid-column: 1 / -1; }
  .work__head { row-gap: 16px; }
  .deck__cards { width: 78%; }
  .deck__arrow { top: 28%; width: 52px; height: 52px; }
  .deck__arrow--prev { left: 0; }
  .deck__arrow--next { right: 0; }
  .hero { min-height: 80svh; }
  .slogan { font-size: 11vw; }
}
@media (max-width: 700px) {
  .hero { min-height: calc(100svh - 76px); }
  .hero__in { padding: 48px 18px; gap: 22px; }
  .hero__wall { width: 320%; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .slogan { font-size: 11.6vw; }
  .hero__lead { font-size: var(--step-body); }
  .btn--hero { width: 100%; justify-content: center; min-height: 62px; padding: 0 20px; font-size: var(--step-body); }
  .hero__facts { flex-direction: column; align-items: center; gap: 6px; }
  .work__head p { font-size: var(--step-body); }
  .deck { margin-top: 32px; }
  .deck__cards { width: 86%; aspect-ratio: 4 / 5.9; }
  .card { transform: translateX(calc(var(--o, 0) * 92%)) scale(calc(1 - var(--a, 0) * 0.12)); }
  .card__screen { aspect-ratio: 4 / 3; }
  .card__info { grid-template-columns: 1fr; }
  .card__info span { display: block; margin: 4px 0 0; }
  .card__info .btn { grid-column: 1; grid-row: auto; width: 100%; justify-content: center; margin-top: 6px; }
  .deck__arrow { top: calc(86vw * 0.75 / 2 - 22px); width: 44px; height: 44px; }
  .deck__arrow svg { width: 20px; height: 20px; }
  .deck__tabs { margin-top: 24px; gap: 6px; }
  .deck__tabs button { flex: none; padding: 10px 14px; font-size: var(--step-small); }
}
@media (prefers-reduced-motion: reduce) { .hero__wall { animation: none; } }

/* The way through to the page that holds every mockup. */
.work__all { margin-top: 28px; text-align: center; font-size: var(--step-lead); }
