/* ==========================================================================
   The public landing. One night, one ink and one yellow: the two colours of
   the Swedish flag, read as a dark page rather than a flag. The blue is the
   page itself -- every surface is a navy cut from it -- and the yellow is
   reserved for the one thing the visitor is meant to do. Headings carry the
   weight; cards and actions stand on a hard lower edge.
   This file: the tokens, the bar, the hero and its team, and every section's
   frame. The scroll story is landing-story.css; the small films inside the
   panel's tiles are landing-demos.css.
   Every motion is written as where a thing comes from, so with motion off (or
   no script) each thing simply stands where it ends.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Night, cut from the flag's blue rather than from grey: every surface is
     the same hue, a step lighter each time. */
  --bg: #101722;
  --bg-deep: #0b1119;
  --surface: #19212e;
  --surface-2: #202a3a;
  --fill: rgba(255, 255, 255, 0.06);
  --fill-strong: rgba(255, 255, 255, 0.1);
  --hairline: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.24);

  --text: #f7f9fc;
  --text-2: #ccd5e1;
  --text-3: #93a0b3;
  --text-4: #74808f;

  /* The flag's yellow, exactly: it marks what to do next and nothing else. */
  --brand: #fecc02;
  --brand-strong: #ffd833;
  --brand-deep: #ab8a00;
  --brand-soft: rgba(254, 204, 2, 0.16);
  --brand-line: rgba(254, 204, 2, 0.42);
  --brand-ink: #403c1c;
  --on-brand: #0b1119;

  /* The flag's blue, for the people in the picture: the human beside the
     team, and anything that belongs to a person rather than to the product. */
  --blue: #006aa7;
  --blue-strong: #0b82c6;
  --blue-soft: rgba(0, 106, 167, 0.22);

  --ok: #2ecc87;
  --ok-tint: rgba(46, 204, 135, 0.16);
  --danger: #ff7a70;

  /* A face is line art, black on white: it needs a tile it can be read on. */
  --face-bg: #4e5a6b;

  --edge: 0 3px 0 rgba(0, 0, 0, 0.5);
  --edge-lg: 0 5px 0 rgba(0, 0, 0, 0.55);
  --edge-brand: 0 5px 0 var(--brand-deep);

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Headlines in a Scandinavian newsroom grotesk; everything read slowly in
     Inter. */
  --font: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Schibsted Grotesk", Inter, system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; }
svg { display: block; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.defs { position: absolute; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 800;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* An icon is drawn in the line of the words beside it. */
.ic {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Type: headings carry the weight ---------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display b { color: var(--brand); font-weight: inherit; }
.h2 { font-size: clamp(30px, 5.4vw, 62px); }
.sub { color: var(--text-3); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.85; text-wrap: pretty; }

/* ---- Actions ----------------------------------------------------------------- */

/* One shape: a rounded rectangle that stands above the page and goes down
   under the finger. Yellow is what the visitor starts; the rest are quiet. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 90ms ease, box-shadow 90ms ease, background-color 180ms ease;
}

.btn--sm { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: 14.5px; }
.btn--lg { min-height: 58px; padding: 0 26px; border-radius: 16px; font-size: 17px; font-weight: 900; }

/* The quiet action: a surface with a hairline, for what is not the page's start. */
.btn--line { border-color: var(--border); background: var(--surface-2); box-shadow: var(--edge); }
.btn--line:hover { border-color: var(--line-strong); }
.btn--line:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); }

.btn--brand { background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 0 var(--brand-deep); }
.btn--brand:hover { background: var(--brand-strong); }
.btn--brand:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brand-deep); }
.btn--brand:focus-visible { outline-color: rgba(255, 255, 255, 0.8); }
.btn--brand.btn--sm { box-shadow: 0 3px 0 var(--brand-deep); }
.btn--brand.btn--sm:active { transform: translateY(2px); }
.btn--brand.btn--lg { box-shadow: var(--edge-brand); }
.btn--brand.btn--lg:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--brand-deep); }

/* On the yellow itself the action is ink. */
.btn--ink { background: #0b1119; color: #f7f9fc; box-shadow: 0 5px 0 rgba(11, 17, 25, 0.32); }
.btn--ink:hover { background: #26262a; }
.btn--ink:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(11, 17, 25, 0.32); }
.btn--ink:focus-visible { outline-color: #0b1119; }

/* ---- The bar ------------------------------------------------------------------ */

/* Its behaviour is bar.js. It steps up out of sight going down the page and
   comes back going up; a thin yellow line under it is how far down you are. */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar-h);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, transform 280ms var(--out);
}

.bar.is-scrolled,
.bar.is-open {
  border-bottom-color: var(--hairline);
  background: rgba(16, 23, 34, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.bar.is-hidden { transform: translateY(calc(-100% - 2px)); }

.bar__progress {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
  opacity: 0;
  transform: scaleX(var(--p, 0));
  transform-origin: 0% 50%;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.bar.is-scrolled .bar__progress { opacity: 1; }

.bar__in { display: flex; align-items: center; gap: 20px; height: 100%; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo__mark { flex: none; width: 27px; height: 27px; color: var(--text); }

.logo__word {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

/* In the bar the lockup sits inside the 40px line of the links and buttons,
   a little under it, as a phone's narrower bar asks a little less. */
.bar .logo__mark { width: 25px; height: 25px; }
.bar .logo__word { font-size: 23px; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }

.nav > a,
.nav__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav > a:hover,
.nav__btn:hover,
.menu.is-open .nav__btn { background: var(--fill); color: var(--text); }

/* The section in sight, and the page you are on: the word in full white over a yellow line. */
.nav > a::after,
.nav__btn::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: -3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 260ms var(--out);
}

.nav > a[aria-current],
.nav__btn[aria-current] { color: var(--text); }
.nav > a[aria-current]::after,
.nav__btn[aria-current]::after { transform: scaleX(1); }

.nav > .nav__login { display: none; }

/* «Features»: the team, one line each, and the human beside them. */
.menu { position: relative; }
.menu__caret { width: 14px; height: 14px; transition: transform 220ms var(--out); }
.menu.is-open .menu__caret { transform: rotate(180deg); }

.menu__panel {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 14px);
  width: min(480px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--edge-lg), 0 30px 60px -20px #000;
  transform-origin: 15% 0;
}

.menu__k { margin-bottom: 10px; color: var(--text-3); font-size: 13px; font-weight: 700; }
.menu__team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }

.menu__team li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
}

.menu__team .face { width: 36px; }
.menu__id { display: grid; gap: 2px; min-width: 0; }
.menu__id b { color: var(--text); font-size: 14.5px; font-weight: 800; }
.menu__id b span { color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.menu__id small { color: var(--text-3); font-size: 12.5px; line-height: 1.5; }

.menu__human { background: var(--blue-soft); }

.menu__pin {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 30%;
  background: var(--blue);
  color: #fff;
}

.menu__pin .ic { width: 18px; height: 18px; }

.menu__foot {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

.menu__foot a {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 5px;
}

@media (prefers-reduced-motion: no-preference) {
  .menu.is-open .menu__panel { animation: menu-in 220ms var(--out); }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

.bar__acts { display: flex; align-items: center; gap: 12px; }
.bar__acts .btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.bar__arrow { width: 15px; height: 15px; transition: transform 200ms var(--out); }
.btn:hover .bar__arrow { transform: translateX(3px); }

/* The bar's own address field: once the page's own is out of sight, it takes the yellow button's place. */
.bar .bar__start { display: none; }
.bar.is-past-start .bar__cta { display: none; }

.bar.is-past-start .bar__start {
  display: block;
  width: clamp(240px, 24vw, 320px);
}

/* Everything in the bar stands on one measure: 40px high, the words 15px. The
   field holds its button 3px in from its frame, all round. */
.bar .bar__start .start__field {
  min-height: 40px;
  gap: 8px;
  padding: 0 3px 0 12px;
  border-width: 1px;
  border-radius: 12px;
  box-shadow: none;
}

.bar .bar__start .start__field:focus-within { box-shadow: 0 0 0 4px var(--brand-soft); }
.bar .bar__start .start__ic { width: 17px; height: 17px; }
.bar .bar__start input { height: 38px; font-size: 15px; font-weight: 600; }

.bar .bar__start .btn {
  min-height: 32px;
  margin: 0;
  padding: 0 14px;
  border-radius: 9px;
  box-shadow: none;
  font-size: 14px;
}

.bar .bar__start .btn:active { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .bar.is-past-start .bar__start { animation: menu-in 260ms var(--out); }
}

.navtoggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--edge);
  cursor: pointer;
}

.navtoggle__bars,
.navtoggle__bars::before,
.navtoggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms var(--out), opacity 160ms ease;
}

.navtoggle__bars { position: relative; }
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; inset-inline: 0; }
.navtoggle__bars::before { top: -6px; }
.navtoggle__bars::after { top: 6px; }
.bar.is-open .navtoggle__bars { background: transparent; }
.bar.is-open .navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
.bar.is-open .navtoggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---- English or Swedish ---------------------------------------------------- */

/* Two words, one of them on. The yellow is not spent here: this is a
   preference, not the page's one action, so the chosen side is simply lit. */
.lang {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  box-shadow: var(--edge);
}

.lang button,
.lang a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-3);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

/* On the landing the two are buttons, because the page swaps language in
   place. On a page of writing they are links to the same page in the other
   language, which is what hreflang promises. Same control either way. */
.lang a { text-decoration: none; }
.lang button:hover,
.lang a:hover { color: var(--text); }
.lang button[aria-pressed="true"],
.lang a[aria-current] { background: var(--fill-strong); color: var(--text); }

@media (max-width: 899px) {
  /* In the sheet it is a row of its own, above the way in. */
  .nav .lang { align-self: center; margin-top: 14px; }
}

/* A phone's start: the yellow at the foot of the screen, under the thumb. */
.dock { display: none; }

@media (max-width: 1059px) {
  .bar.is-past-start .bar__start { width: 230px; }
  .bar.is-past-start .bar__login { display: none; }
}

@media (max-width: 899px) {
  :root { --bar-h: 58px; }
  .bar__in { gap: 10px; }
  .bar__acts { margin-inline-start: auto; }
  .bar__login,
  .bar__cta,
  .bar .bar__start,
  .bar.is-past-start .bar__start { display: none; }
  .navtoggle { display: grid; }
  .bar .logo__mark { width: 22px; height: 22px; }
  .bar .logo__word { font-size: 20px; }
  .navtoggle { width: 40px; }

  /* The menu is a sheet under the bar, over a dimmed page. */
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 12px 18px;
    max-height: calc(100svh - var(--bar-h));
    overflow-y: auto;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 22px 22px;
    background: var(--surface);
    box-shadow: 0 30px 60px -20px #000;
  }

  .bar.is-open .nav { display: flex; }

  .bar.is-open::after {
    content: "";
    position: fixed;
    inset: 100% 0 auto;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .nav > a,
  .nav__btn { justify-content: space-between; width: 100%; padding: 14px; font-size: 16.5px; }
  .nav > a::after,
  .nav__btn::after { inset-inline: 0 auto; top: 14px; bottom: 14px; width: 3px; height: auto; }

  .menu__panel {
    position: static;
    width: auto;
    margin: 2px 0 6px;
    padding: 10px;
    border-color: var(--hairline);
    background: var(--bg);
    box-shadow: none;
  }

  .menu__team { grid-template-columns: minmax(0, 1fr); }
  .menu__foot { flex-wrap: wrap; }

  /* «Log in» in the sheet is the quiet twin of the yellow dock under it: same height, corner and words. */
  .nav > a.nav__login {
    display: flex;
    justify-content: center;
    min-height: 58px;
    margin-top: 12px;
    padding: 0 26px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
    box-shadow: var(--edge);
  }

  .nav > a.nav__login:hover { border-color: var(--line-strong); }
  .nav > a.nav__login::after { content: none; }

  @media (prefers-reduced-motion: no-preference) {
    .bar.is-open .nav { animation: sheet-in 260ms var(--out); }
  }

  .dock {
    position: fixed;
    inset-inline: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 49;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(calc(100% + 20px));
    transition: transform 280ms var(--out), opacity 200ms ease, visibility 0s linear 280ms;
  }

  .dock.is-on,
  .is-sheet .dock {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: transform 280ms var(--out), opacity 200ms ease;
  }

  .is-sheet .dock { z-index: 51; }

  /* The page's last lines stay above the dock. */
  .foot { padding-bottom: 84px; }
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(-10px); }
}

/* ---- Faces -------------------------------------------------------------------- */

/* The team's own portraits, as the panel draws them: line art on a tile. Until
   one arrives (or if it never does) the tile holds the member's initial. */
.face {
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 30%;
  background: var(--face-bg);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9em;
  font-weight: 800;
  line-height: 1;
}

.face::before { content: attr(data-initial); }
.face.has-svg::before { content: none; }
.face svg { width: 100%; height: 100%; }
.face [data-lid] { transform-box: fill-box; transform-origin: center; }
.face[data-blink] [data-lid] { transform: scaleY(0.1); }

/* ---- The hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(20px, 4.4vw, 60px) clamp(36px, 6vw, 84px);
}

/* A warm light from below, as on the tour. */
.hero::before {
  content: "";
  position: absolute;
  inset: -64px 0 0;
  z-index: -1;
  background:
    radial-gradient(52% 44% at 50% 100%, rgba(254, 204, 2, 0.13), transparent 72%),
    radial-gradient(36% 30% at 86% 0%, rgba(255, 255, 255, 0.05), transparent 72%);
  pointer-events: none;
}

.hero__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.hero__title { font-size: clamp(28px, 9.1vw, 60px); line-height: 1.28; letter-spacing: -0.03em; }
.hero__title > b { display: block; }
.hero__side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.lede { color: var(--text-2); font-size: clamp(15.5px, 1.45vw, 18px); line-height: 1.95; text-wrap: pretty; }

/* The one question: the site's address, and the button that starts it all. */
.start { display: flex; flex-direction: column; gap: 10px; }

.start__field {
  direction: ltr;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 58px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
  cursor: text;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.start__field:focus-within { border-color: var(--brand); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5), 0 0 0 5px var(--brand-soft); }
.start__ic { width: 22px; height: 22px; color: var(--text-3); }

.start input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
}

.start input::placeholder { color: #68748a; opacity: 1; }
.start .btn { flex: none; margin-bottom: 5px; }
.start.is-shake .start__field { border-color: var(--danger); animation: shake 380ms ease; }
.start__err { margin-top: -6px; color: var(--danger); font-size: 14px; font-weight: 600; }

@keyframes shake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.promises { display: flex; flex-wrap: wrap; gap: 6px; }

.promises li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.promises .ic { width: 14px; height: 14px; color: var(--brand); stroke-width: 2.4; }

@media (min-width: 560px) {
  .start { flex-direction: row; align-items: flex-start; }
  .start__field { min-height: 60px; }
}

@media (min-width: 1000px) {
  .hero__top { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: end; column-gap: clamp(32px, 4vw, 64px); }
  .hero__title { font-size: clamp(48px, 5.3vw, 76px); line-height: 1.2; }
  .hero__side { padding-bottom: 10px; }
}

/* ---- The team, at work on today's article -------------------------------------- */

.hero__crew { margin-top: clamp(28px, 4.6vw, 60px); }
.crew { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.1vw, 14px); }

.mate {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  text-align: center;
  transition: transform 420ms var(--out);
}

.mate__pic {
  display: grid;
  place-items: end center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 26%;
  background: linear-gradient(#4b5666, #333d4b);
  box-shadow: var(--edge);
  transition: background-color 320ms ease, box-shadow 320ms ease;
}

.mate__pic .face { width: 100%; border-radius: 0; background: none; }
.mate__id { display: grid; margin-top: 6px; line-height: 1.5; }
.mate__id b { font-size: clamp(12.5px, 3.4vw, 15px); font-weight: 800; }
.mate__id span, .mate__line { display: none; }

.mate [data-doing], .mate [data-done] { display: none; }
.mate.is-working [data-idle], .mate.is-done [data-idle] { display: none; }
.mate.is-working [data-doing], .mate.is-done [data-done] { display: inline; }

/* The one at work is lit, and stands a little taller. */
.mate.is-working { transform: translateY(-6px); }
.mate.is-working .mate__pic { background: var(--brand); box-shadow: 0 5px 0 var(--brand-deep), 0 18px 34px -14px rgba(254, 204, 2, 0.5); }

/* What is in hand, in one line under the row. */
.crew__now {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
}

.crew__ticket { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.crew__ticket .ic { width: 15px; height: 15px; }
.crew__steps { display: inline-flex; gap: 4px; direction: ltr; }
.crew__steps i { width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); transition: background-color 300ms ease; }
.crew__steps i.is-on { background: var(--brand); }
.crew__state { min-width: 0; }
.crew__state.is-done { color: var(--ok); font-weight: 800; }

.crew__human {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

.crew__human .ic { width: 22px; height: 22px; padding: 3px; border: 1px dashed var(--blue-strong); border-radius: 50%; color: var(--blue-strong); }

/* A wide screen: each member is a card, with what they do written on it. */
@media (min-width: 760px) {
  .mate {
    gap: 0;
    padding-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: 24px;
    background: linear-gradient(#202a3a, #19212e);
    box-shadow: var(--edge-lg);
    text-align: start;
    transition: transform 420ms var(--out), background-color 320ms ease, box-shadow 320ms ease, border-color 320ms ease, color 320ms ease;
  }

  .mate__pic { aspect-ratio: 1 / 0.84; border-radius: 0; background: none; box-shadow: none; }
  .mate__pic .face { overflow: visible; }
  .mate__id { margin: 0; padding: 12px 16px 0; }
  .mate__id b { font-size: clamp(17px, 1.7vw, 21px); font-weight: 900; }
  .mate__id span { display: block; color: var(--text-3); font-size: 13px; font-weight: 600; transition: color 320ms ease; }

  .mate__line {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    margin-top: 8px;
    padding: 0 16px;
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.6;
    text-wrap: balance;
    transition: color 320ms ease;
  }

  .mate__line::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--text-4); transition: background-color 320ms ease; }

  .mate.is-working { transform: translateY(-10px); border-color: transparent; background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 0 var(--brand-deep), 0 30px 50px -24px rgba(254, 204, 2, 0.55); }
  .mate.is-working .mate__pic { background: none; box-shadow: none; }
  .mate.is-working .mate__id span { color: rgba(11, 17, 25, 0.66); }
  .mate.is-working .mate__line { color: var(--on-brand); font-weight: 800; }
  .mate.is-working .mate__line::before { background: var(--on-brand); animation: pulse 1100ms ease-in-out infinite; }
  .mate.is-done .mate__line { color: var(--text); }
  .mate.is-done .mate__line::before { background: var(--ok); }
  .crew__now { margin-top: 26px; font-size: 14.5px; }
  .crew__steps i { width: 26px; }
}

/* Under 880 a card is too narrow for its line: whatever the font, some line
   leaves one word alone or runs to a third row. There it stays off, as on a
   phone, and the line under the row (.crew__now) says what is in hand. */
@media (min-width: 760px) and (max-width: 879.98px) {
  .mate__line { display: none; }
}

@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.7); } }

/* The page's first moment: the words, the field and the team arrive in turn.
   Each is over once it has played, so what the team does next is not held back. */
.hero__title,
.hero__title > b,
.hero__side > *,
.mate,
.crew__now,
.crew__human { animation: arrive 760ms var(--out) backwards; }

.hero__title > b { animation-delay: 120ms; }
.hero__side > :nth-child(1) { animation-delay: 220ms; }
.hero__side > :nth-child(2) { animation-delay: 300ms; }
.hero__side > :nth-child(n + 3) { animation-delay: 380ms; }
.mate { animation-delay: calc(var(--i, 0) * 70ms + 420ms); }
.crew__now, .crew__human { animation-delay: 860ms; }

@keyframes arrive { from { opacity: 0; transform: translateY(20px); } }

/* ---- A section's frame ---------------------------------------------------------- */

.sec { padding-block: clamp(60px, 9vw, 128px); }
.sec__head { display: grid; gap: 12px; max-width: 800px; margin-bottom: clamp(26px, 4vw, 54px); }
.sec__head--center { margin-inline: auto; text-align: center; }

/* ---- A month alone, and a month with the team ----------------------------------- */

.month__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: clamp(18px, 3.4vw, 40px);
  border: 1px solid var(--hairline);
  border-radius: clamp(22px, 3vw, 32px);
  background: var(--bg-deep);
  box-shadow: var(--edge-lg);
}

.month__side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.month__label { color: var(--text-3); font-size: 13.5px; font-weight: 800; }
.month__side--team .month__label { color: var(--brand); }
.month__grid { direction: ltr; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(4px, 0.7vw, 8px); }

.month__grid i {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24%;
  background: rgba(255, 255, 255, 0.05);
}

/* A day an article went out: a sheet on the tile. */
.month__grid i.is-on { background: #68748a; }
.month__side--team .month__grid i.is-on { background: var(--brand); box-shadow: 0 2px 0 var(--brand-deep); }

.month__grid i.is-on::after {
  content: "";
  position: absolute;
  inset: 24%;
  background: #0b1119;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h7l4 4v13H7z'/%3E%3Cpath d='M9.5 12h6M9.5 15.5h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h7l4 4v13H7z'/%3E%3Cpath d='M9.5 12h6M9.5 15.5h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.month__cap { color: var(--text-2); font-size: clamp(14px, 1.4vw, 16.5px); font-weight: 600; }
.month__cap b { color: var(--brand); font-family: var(--font-display); font-size: 1.5em; font-weight: 900; font-variant-numeric: tabular-nums; }
.month__side:not(.month__side--team) .month__cap { color: var(--text-3); }

.month.is-in .month__grid i.is-on { animation: cell-on 460ms var(--spring) both; animation-delay: calc(var(--i, 0) * 50ms + 150ms); }

@keyframes cell-on {
  from { background: rgba(255, 255, 255, 0.05); box-shadow: none; transform: scale(0.6); }
  60% { background: rgba(255, 255, 255, 0.05); box-shadow: none; }
}

@media (min-width: 860px) {
  .month__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
  .month__side + .month__side { padding-inline-start: clamp(28px, 4vw, 56px); border-inline-start: 1px solid var(--hairline); }
}

/* ---- The panel, as a set of tiles ------------------------------------------------ */

.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

.tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 4px;
  min-width: 0;
  padding: 12px 12px 22px;
  border: 1px solid var(--hairline);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--edge-lg);
}

.tile__demo {
  position: relative;
  height: 236px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg);
}

.tile h3 { padding-inline: 10px; font-size: clamp(18px, 1.7vw, 20.5px); font-weight: 900; letter-spacing: -0.01em; line-height: 1.6; }
.tile > p { padding-inline: 10px; color: var(--text-3); font-size: 14.5px; line-height: 1.8; text-wrap: pretty; }

@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: span 2; }
}

@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .tile--wide-lg { grid-column: span 2; }
}

/* ---- The yellow slab -------------------------------------------------------------- */

.slab-sec { padding-top: 0; }

.slab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 40px);
  padding: clamp(26px, 5vw, 68px);
  overflow: hidden;
  border-radius: clamp(24px, 3.2vw, 36px);
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 8px 0 var(--brand-deep);
}

/* Two rings in the corner, as the tour's orbit. */
.slab::before,
.slab::after {
  content: "";
  position: absolute;
  top: -38%;
  inset-inline-end: -14%;
  width: min(54vw, 560px);
  aspect-ratio: 1;
  border: 1.5px solid rgba(11, 17, 25, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.slab::after { top: -22%; inset-inline-end: -4%; width: min(36vw, 360px); border-style: dashed; }
.slab > * { position: relative; }
.slab__t { font-size: clamp(30px, 5.6vw, 68px); }
.slab__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.slab__grid li {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: clamp(12px, 1.8vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 3px 0 rgba(11, 17, 25, 0.14);
}

.slab__grid span { font-size: 13px; font-weight: 700; opacity: 0.72; }
/* Swedish and English both say in words what Persian said in digits:
   «Dygnet runt», «Around the clock». The figure wraps rather than running
   out of its card, and stops short of the size that would force it to. */
.slab__grid b { font-family: var(--font-display); font-size: clamp(23px, 3.1vw, 36px); font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.slab__grid small { font-size: clamp(12.5px, 1.2vw, 14.5px); font-weight: 600; line-height: 1.7; opacity: 0.8; }
.slab__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.slab__acts .btn { margin-bottom: 5px; }

.slab__link {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(11, 17, 25, 0.4);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.slab__link:hover { text-decoration-color: #0b1119; }
.slab__link:focus-visible { outline-color: #0b1119; }

@media (min-width: 900px) {
  .slab__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

/* ---- Questions ---------------------------------------------------------------------- */

.faq__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); }
.faq__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }

.faq details {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--edge);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 12px 20px;
  border-radius: 18px;
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  font-weight: 800;
  line-height: 1.7;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

/* A plus that turns into a minus. */
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  color: var(--text-3);
  transition: transform 260ms var(--out), color 160ms ease;
}

.faq details[open] summary::after { transform: rotate(135deg); color: var(--brand); }
.faq details p { padding: 0 20px 20px; color: var(--text-2); font-size: 15px; line-height: 2; text-wrap: pretty; }

.faq a,
.foot a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.faq a { color: var(--text); font-weight: 700; }

@media (min-width: 900px) {
  .faq__in { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); align-items: start; }
  .faq__t { position: sticky; top: calc(var(--bar-h) + 40px); font-size: clamp(40px, 5.4vw, 76px); }
}

/* ---- The last word: the address, once more ------------------------------------------ */

.cta {
  position: relative;
  padding-top: clamp(64px, 10vw, 136px);
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 56% at 50% 104%, rgba(254, 204, 2, 0.26), transparent 72%);
  pointer-events: none;
}

.cta__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; }
.cta__t { max-width: 27ch; min-height: 2.5em; font-size: clamp(26px, 4.6vw, 56px); }
.cta__t b { font-variant-numeric: tabular-nums; }
.start--center { width: min(100%, 620px); margin-top: 8px; }
.cta__note { color: var(--text-3); font-size: 13.5px; }

.cta__team {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(6px, 1.2vw, 16px);
  margin-top: clamp(36px, 6vw, 72px);
  padding-inline: var(--gutter);
}

.cta__team .face {
  width: clamp(54px, 15.5vw, 188px);
  aspect-ratio: 1 / 0.9;
  place-items: end center;
  border-radius: 26% 26% 0 0;
  background: linear-gradient(#4b5666, #333d4b);
}

.cta__team .face svg { height: auto; }
.cta__team .face:nth-child(3) { width: clamp(64px, 18.5vw, 224px); background: var(--brand); }
.cta__team .face:nth-child(2), .cta__team .face:nth-child(4) { width: clamp(58px, 16.5vw, 200px); }

.cta.is-in .cta__team .face { animation: rise 720ms var(--out) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }

@keyframes rise { from { transform: translateY(46%); } }

/* ---- The foot ------------------------------------------------------------------------ */

.foot { border-top: 1px solid var(--hairline); background: var(--bg-deep); }
.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; padding-block: clamp(36px, 5vw, 64px); }
.foot__brand { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: start; }
.foot__brand p { max-width: 34ch; color: var(--text-3); font-size: 14.5px; }
.foot__name { color: var(--text-4); font-size: 13px; font-style: italic; }
.foot h2 { margin-bottom: 10px; color: var(--text-3); font-size: 13px; font-weight: 700; }
.foot ul { display: grid; gap: 6px; }
.foot nav a { color: var(--text-2); font-size: 15px; font-weight: 600; text-decoration: none; }
.foot nav a:hover { color: var(--text); }

/* Where the data lives, which is the question a European buyer asks before
   any other: the flag's blue, a shield, and no claim beyond the plain fact. */
.trust__seal {
  display: grid;
  justify-items: start;
  gap: 2px;
  width: fit-content;
  padding: 12px 16px 14px;
  border: 1px solid var(--blue-strong);
  border-radius: 18px;
  background: var(--blue-soft);
  box-shadow: var(--edge);
}

.trust__seal .ic { width: 26px; height: 26px; margin-bottom: 2px; color: var(--blue-strong); }
.trust__seal b { font-family: var(--font-display); font-size: 17px; font-weight: 900; letter-spacing: 0.01em; }
.trust__seal small { color: var(--text-3); font-size: 12.5px; line-height: 1.5; }

.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  padding-block: 18px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  color: var(--text-3);
  font-size: 13px;
}

.foot__legal { display: inline-flex; gap: 16px; margin-inline-start: auto; }
.foot__legal a { color: var(--text-2); text-decoration: none; }

@media (min-width: 860px) {
  .foot__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.7fr)); }
  .foot__brand { grid-column: auto; }
}

/* ---- Motion off ------------------------------------------------------------------------ */

/* A thing that loops waits while its section is out of sight. */
.is-away *, .is-away *::before, .is-away *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- The line ------------------------------------------------------------------- */

/* "we do the rest". Two words carry it, so two words are given to the eye:
   *do* in full-strength ink, *rest* in the brand yellow -- because "rest" is
   the back half of "dorest", and because yellow has one job on this site. The
   lead-in, which is the customer's half of the deal, sits back a step. */

.slog {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-3);
  text-wrap: balance;
}

.slog__lead { color: var(--text-2); }
.slog i {
  padding-bottom: 0.06em;
  background: linear-gradient(var(--brand-line), var(--brand-line)) 0 100% / 100% 0.08em no-repeat;
  color: var(--text);
  font-style: normal;
}
.slog b { color: var(--brand); font-weight: inherit; }

/* Set small, it reads as a signature rather than a headline. */
.slog--sm { font-size: clamp(16px, 1.6vw, 19px); }
.slog--md { font-size: clamp(20px, 2.6vw, 30px); }
.slog--lg { font-size: clamp(27px, 4.4vw, 50px); }

/* In the hero it is the headline itself: the size and the measure come from
   the h1, and only the two marked words are set apart. */
.slog.slog--hero { font-size: inherit; line-height: inherit; letter-spacing: inherit; color: var(--text); }

/* The closing line sits under the last heading, centred with it. */
.cta__slog { margin-top: 4px; }
.sec__head .slog { margin-top: 2px; }
