/* ==========================================================================
   Avelta — main stylesheet
   Direction: light and editorial. Warm paper, ink type in Bricolage
   Grotesque, and three primary colours — one for each brand: Avelta red,
   Mind Tricks blue, Kopple yellow. The home page is a grid of tiles, one
   door per brand; Avelta's arch mark draws the inner pages' headers.
   ========================================================================== */

/* ── Fonts (self-hosted; no third-party requests) ────────────────────────── */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg: #f6f4ef;
  --bg-1: #ffffff;
  --bg-2: #eeebe3;
  --line: rgba(20, 20, 20, 0.1);
  --line-strong: rgba(20, 20, 20, 0.2);
  --ink: #141414;
  --ink-2: #4a4945;
  --ink-3: #6b6964;

  /* The three primaries. */
  --red: #ea3d1e;      /* Avelta */
  --red-ink: #c4321a;  /* Avelta red, dark enough for small text */
  --blue: #0201fd;     /* Mind Tricks: the blue of the "!" in its logo */
  --yellow: #ffd23f;   /* Kopple */
  --navy: #171a35;     /* Kopple's night */

  /* --hl colours the highlighted half of a headline; --accent small things. */
  --hl: var(--red);
  --accent: var(--red-ink);
  --accent-soft: var(--red);

  /* Names the carried-over components use. */
  --ember: var(--red);
  --gold: var(--red-ink);
  --trick: var(--blue);
  --electric: var(--blue);
  --electric-soft: #c6c7ff;
  --paper: #ffffff;
  --paper-2: #ffffff;
  --paper-ink: var(--ink);
  --paper-ink-2: var(--ink-2);

  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: var(--sans);

  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1360px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 22px;
  --surface: var(--bg-1);
}
.is-studio {
  --hl: var(--blue);
  --accent: var(--blue);
  --accent-soft: var(--blue);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  background: var(--bg);
  scrollbar-color: #c9c5bb var(--bg);
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-optical-sizing: auto;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection {
  background: var(--yellow);
  color: #141414;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover {
  color: var(--ink);
  text-decoration-color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
p {
  margin: 0 0 1.1em;
}
p:last-child {
  margin-bottom: 0;
}
address {
  font-style: normal;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
  color: var(--bg);
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.muted {
  color: var(--ink-3);
}
/* Unfilled company facts — impossible to miss before launch. */
.todo {
  padding: 0.05em 0.4em;
  border: 1px dashed #a37b00;
  border-radius: 4px;
  background: #fff1a8;
  color: #5c4500;
  font-family: var(--sans);
  font-size: 0.88em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ── Scroll progress ─────────────────────────────────────────────────────── */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 95;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
.is-kopple .progress {
  background: var(--yellow);
}

/* ── Type ────────────────────────────────────────────────────────────────── */
/* Headlines are big, bold and tightly set; their second half takes the
   brand's colour (--hl): red for Avelta, blue on the studio's pages, yellow
   on Kopple's. */
.h-display {
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.h-display--xl {
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.9;
}
.h-display em {
  font-style: normal;
  color: var(--hl);
}
.h-small {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* A label in a pill, with its section number in a coloured disc. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.eyebrow:not(:has(.eyebrow__no)) {
  padding-left: 0.85rem;
}
.eyebrow__no {
  display: inline-grid;
  place-items: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--hl);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.k-theme .eyebrow__no {
  color: var(--navy);
}
.eyebrow__rule {
  display: none;
}

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.38rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.link .icon {
  color: var(--hl);
  transition: transform 0.35s var(--ease);
}
.link:hover .icon {
  transform: translateX(4px);
}
.fineprint {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font: 650 0.95rem/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.btn .icon {
  transition: transform 0.35s var(--ease);
}
.btn:hover .icon {
  transform: translateX(3px);
}
.btn:active {
  transform: scale(0.97);
}
.btn--primary {
  color: #fff;
  background: var(--ink);
}
.btn--primary:hover {
  color: #fff;
  background: var(--red);
}
.btn--line {
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}
.btn--line:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.btn--studio {
  color: #fff;
  background: var(--blue);
}
.btn--studio:hover {
  color: #fff;
  background: #2a29ff;
}
/* On the coloured bands. */
.btn--ink {
  color: #fff;
  background: #141414;
}
.btn--ink:hover {
  color: #141414;
  background: #fff;
}
.btn--ink-line {
  color: inherit;
  border-color: currentColor;
  background: transparent;
}
.btn--ink-line:hover {
  color: inherit;
  background: rgba(255, 255, 255, 0.14);
}
.btn--sm {
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
}
@media (max-width: 420px) {
  .btn {
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
  }
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
/* A bar across the top, in the page's own colour, frosted once you scroll. */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  transition: border-color 0.3s, background-color 0.3s;
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.nav .nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  text-decoration: none;
}
/* The wordmark: AVELTA in capitals, heavy and spaced. */
.nav__word {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  translate: 0 0.03em;
}
.mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}
/* The frame: the top-left bracket takes the text colour, the bottom-right
   one is red. */
.mark__back {
  fill: currentColor;
}
.mark__front {
  fill: var(--red);
}
.nav__links {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
}
.nav__links a {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.nav__links a[aria-current] {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav__toggle i {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease);
}
.nav__toggle i:nth-of-type(1) {
  transform: translateY(-4px);
}
.nav__toggle i:nth-of-type(2) {
  transform: translateY(4px);
}
.nav__toggle[aria-expanded="true"] i:nth-of-type(1) {
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] i:nth-of-type(2) {
  transform: rotate(-45deg);
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 4vh) var(--gutter) 2rem;
  overflow-y: auto;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.3s;
}
.menu[hidden] {
  display: none;
}
.menu.is-open {
  opacity: 1;
}
.menu__links {
  display: grid;
}
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-decoration: none;
  color: var(--ink);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out);
  transition-delay: calc(var(--i) * 40ms + 60ms);
}
.menu.is-open .menu__links a {
  opacity: 1;
  transform: none;
}
.menu__no {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.menu__links a[aria-current] .menu__no {
  color: var(--red);
}
.menu__foot {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.menu-open {
  overflow: hidden;
}
@media (max-width: 920px) {
  .nav {
    --nav-h: 64px;
    height: 64px;
  }
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
}

/* ── Kopple ──────────────────────────────────────────────────────────────── */
/* The game in its own colours: the night navy and sunflower yellow of its
   screens, its wordmark in its own typeface, and its creatures — dominoes
   whose eyes are their pips — peeking up from the bottom of the section.
   Their eyes, and the wordmark's, follow the pointer (the script sets --ex
   and --ey on each eye, from -1 to 1). */
@font-face {
  font-family: "Bagel Fat One";
  src: url("../fonts/bagel-fat-one.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* The game's palette, as tokens: put .k-theme on a section (or the body)
   and everything inside — text, cards, buttons — takes the game's colours. */
.k-theme {
  --bg: #171a35;
  --bg-1: #1e2244;
  --bg-2: #252a55;
  --line: rgba(177, 183, 226, 0.16);
  --line-strong: rgba(177, 183, 226, 0.32);
  --ink: #eef0ff;
  --ink-2: #b9bee6;
  --ink-3: #959ac8;
  --hl: #ffd23f;
  --accent: #ffd23f;
  --accent-soft: #ffe680;
  --surface: var(--bg-1);
  --k-yellow: #ffd23f;
  --k-yellow-deep: #c99a10;
  --k-ink: #1b1d38;
  --k-pupil: #191a2e;
  background: var(--bg);
  color: var(--ink-2);
}
html:has(body.is-kopple) {
  background: #171a35;
}
/* The game's own button: yellow, with a deeper yellow edge underneath. */
.k-theme .btn--primary {
  color: var(--k-ink);
  background: var(--k-yellow);
  box-shadow: 0 4px 0 var(--k-yellow-deep);
}
.k-theme .btn--primary:hover {
  color: var(--k-ink);
  background: #ffdb5c;
  box-shadow: 0 4px 0 var(--k-yellow-deep), 0 0 0 6px rgba(255, 210, 63, 0.14);
}
.k-theme .btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--k-yellow-deep);
}

/* The wordmark, as the game's home screen sets it. */
.kmark {
  margin: 0;
  line-height: 1;
}
.kmark__word {
  display: inline-block;
  padding: 0.12em 0 0.24em;
  font: 400 1em/1 "Bagel Fat One", var(--sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #ffd23f;
  text-shadow: 0 0.078em 0 #c99a10;
}
.kmark__p {
  position: relative;
  display: inline-block;
}
.kmark__eye {
  position: absolute;
  top: 0.05em;
  left: 0.166em;
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.035em #191a2e;
  animation: blink 6s 2.2s infinite;
}
.kmark__p + .kmark__p .kmark__eye {
  animation-delay: 2.26s;
}
.kmark__eye b {
  position: absolute;
  top: 0.075em;
  left: 0.075em;
  width: 0.13em;
  height: 0.13em;
  border-radius: 50%;
  background: #191a2e;
  transform: translate(calc(var(--ex, 0) * 0.065em), calc(var(--ey, 0) * 0.065em));
  transition: transform 0.16s ease-out;
}
.kmark--hero {
  font-size: clamp(4.4rem, 10vw, 8.6rem);
}
.kmark--xl {
  font-size: clamp(4.6rem, 17vw, 12.5rem);
}
.kmark--card {
  margin: 1.3rem 0 0.4rem;
  font-size: clamp(3rem, 5.6vw, 4.4rem);
}
.kmark--press {
  margin: 0.2rem 0 0;
  font-size: clamp(3rem, 6vw, 4.6rem);
}
.kmark--asset {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

/* The creatures. */
.critters {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.5rem, 1.4vw, 1.1rem);
  pointer-events: none;
}
.critter {
  flex: none;
  width: clamp(58px, 7.4vw, 104px);
  height: auto;
  overflow: visible;
  translate: 0 var(--sink, 20%);
  animation: peek 0.9s var(--ease-out) both;
  animation-delay: calc(var(--i) * 80ms + 500ms);
}
.critter:nth-child(1) { --sink: 22%; }
.critter:nth-child(2) { --sink: 9%; }
.critter:nth-child(3) { --sink: 28%; }
.critter:nth-child(4) { --sink: 4%; }
.critter:nth-child(5) { --sink: 16%; }
.critter:nth-child(6) { --sink: 32%; }
.critter__eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 6s infinite;
  animation-delay: calc(var(--i, 0) * -1.4s);
}
.critter__pupil {
  fill: #191a2e;
  transform: translate(calc(var(--ex, 0) * var(--m) * 1px), calc(var(--ey, 0) * var(--m) * 1px));
  transition: transform 0.18s ease-out;
}
.critters.is-idle .critter__pupil {
  transition-duration: 0.5s;
}

/* Phones with the game's screens on them. */
.phone {
  margin: 0;
  padding: 2.4%;
  border-radius: 15% / 7%;
  background: #0d0f1f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 70px -34px rgba(4, 5, 20, 0.85);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13% / 6%;
}

/* Three phones fanned out. */
.fan {
  position: relative;
  width: min(100%, 480px, calc((100svh - 22rem) / 1.16));
  aspect-ratio: 1 / 1.16;
  margin-inline: auto;
}
.fan .phone {
  position: absolute;
  width: 44%;
}
.fan__left {
  top: 9%;
  left: 0;
  rotate: -9deg;
}
.fan__right {
  top: 9%;
  right: 0;
  rotate: 9deg;
}
.fan .fan__front {
  top: 0;
  left: 24%;
  z-index: 2;
  width: 52%;
}

/* The hero: on the home page with the phones beside it, on the game's page
   centred over its creatures. */
.khero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: max(100svh, 700px);
  padding: calc(var(--nav-h) + 2rem) 0 clamp(8.5rem, 17vh, 11rem);
  background: radial-gradient(55% 60% at 74% 42%, #2a3070, transparent 70%), radial-gradient(40% 50% at 10% 100%, #232860, transparent 70%), var(--bg);
}
.khero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.khero__from {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin: 0 0 1.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.khero__from a {
  color: var(--ink);
  text-decoration: none;
}
.khero__from a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.khero__from i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.khero__line {
  max-width: 22ch;
  margin: 1.6rem 0 0;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 600;
  font-stretch: 105%;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.khero__line span {
  color: var(--ink-2);
  font-weight: 500;
}
.khero__sub {
  max-width: 40ch;
  margin: 1rem 0 0;
  font-size: 1.05rem;
}
.khero .actions {
  margin-top: 2.2rem;
}
.khero--page {
  min-height: max(92svh, 640px);
}
.khero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.khero__center .khero__from {
  justify-content: center;
}
.khero__subtitle {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-style: italic;
  line-height: 1.1;
  color: var(--ink);
}
.khero--page .khero__line {
  max-width: 36ch;
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--ink-2);
}
.khero--page .stores {
  justify-content: center;
}
@media (max-width: 900px) {
  .khero {
    min-height: 0;
    padding-top: calc(var(--nav-h) + 1.5rem);
  }
  .khero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .fan {
    width: min(86%, 380px);
  }
}

/* Where to get it. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}
.store {
  display: inline-flex;
  flex-direction: column;
  min-width: 11rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.3s, background-color 0.3s;
}
.store small {
  margin-bottom: 0.15rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.store.is-soon {
  border-style: dashed;
}
/* A live store link is the store's own badge, used as supplied, at the same
   height for both. Google's artwork carries its clear space inside the file. */
.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
}
.store-badge img {
  display: block;
  width: auto;
  height: 48px;
}
.store-badge--googlePlay img {
  height: 71.4px;
  margin: -11.7px;
}
.store-badge:hover {
  opacity: 0.85;
}
a.store:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

/* The game, explained beside a phone. */
.kidea {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}
.kidea__phone .phone {
  width: min(100%, 330px);
  margin-inline: auto;
  rotate: -4deg;
}
.kidea__text .lede {
  margin-top: 1.8rem;
}
.ksteps {
  display: grid;
  gap: 0;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.ksteps li {
  position: relative;
  padding: 0.95rem 0 0.95rem 2.6rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.ksteps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.15rem;
  left: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.ksteps b {
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 860px) {
  .kidea {
    grid-template-columns: minmax(0, 1fr);
  }
  .kidea__phone .phone {
    width: min(70%, 280px);
  }
}

/* A strip of screens to scroll through. */
.section__head.kshots__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  max-width: none;
}
.kshots__nav {
  display: flex;
  gap: 0.5rem;
}
.kshots__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.kshots__btn:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}
.kshots__btn:first-child .icon {
  rotate: 180deg;
}
@media (hover: none) {
  .kshots__nav {
    display: none;
  }
}
.kshots {
  --edge: max(var(--gutter), (100% - var(--max)) / 2);
  display: flex;
  gap: clamp(1rem, 2vw, 1.6rem);
  margin: 0;
  padding: 0 var(--edge) 1.4rem;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.kshots:focus-visible {
  outline-offset: -2px;
}
.kshot {
  flex: 0 0 clamp(190px, 21vw, 260px);
  scroll-snap-align: start;
}
.kshot .phone {
  margin-bottom: 1.1rem;
}
.kshot__title {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.kshot__text {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

/* What's in the box. */
.kfeat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.2vw, 1rem);
}
.kfeat__card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 55%), var(--surface);
}
.kfeat__card h3 {
  margin: 0 0 1.3rem;
  font-size: 1.2rem;
  font-weight: 600;
  font-stretch: 105%;
  letter-spacing: -0.02em;
}
.kfeat__list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Each point gets a little eye for a bullet. */
.kfeat__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.98rem;
}
.kfeat__list li::before {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 0;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: radial-gradient(circle at 58% 58%, #191a2e 0 30%, #fff 32%);
}
@media (max-width: 900px) {
  .kfeat {
    grid-template-columns: minmax(0, 1fr);
  }
}
.kprivacy {
  margin-top: 2.2rem;
}

/* Kopple as a card, on the studio page. */
.gamecard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(70% 90% at 28% 35%, #2a3070, transparent 70%), var(--bg);
}
.gamecard__art {
  position: relative;
  min-height: clamp(340px, 38vw, 500px);
  overflow: hidden;
}
.gamecard__phone {
  position: absolute;
  bottom: -22%;
  left: 34%;
  width: 40%;
  rotate: 5deg;
}
.gamecard__phone--back {
  bottom: -30%;
  left: 12%;
  rotate: -8deg;
}
.gamecard__body {
  padding: clamp(1.8rem, 4vw, 3.2rem);
}
.gamecard__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.gamecard__icon {
  width: 64px;
  height: 64px;
  border-radius: 22%;
}
.gamecard__line {
  font-size: 1.08rem;
  color: var(--ink);
}
.gamecard__meta {
  display: grid;
  gap: 0.7rem;
  margin: 1.6rem 0 0;
  padding: 1.3rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.gamecard__meta li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: right;
}
.gamecard__meta span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 860px) {
  .gamecard {
    grid-template-columns: minmax(0, 1fr);
  }
  .gamecard__art {
    min-height: 300px;
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.tag--live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-out infinite;
}

/* The press kit's pictures. */
.assets.assets--game {
  grid-template-columns: minmax(0, 1fr);
}
.asset--kopple .asset__preview {
  gap: 1.6rem;
  background: radial-gradient(70% 90% at 50% 110%, rgba(255, 210, 63, 0.16), transparent 70%), #171a35;
}
.asset__icon {
  width: clamp(4rem, 7vw, 5.5rem);
  height: auto;
  border-radius: 22%;
}
.pshots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  margin: clamp(1.5rem, 3vw, 2.4rem) 0 0;
  padding: 0;
  list-style: none;
}
.pshot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pshot__title {
  margin: 0.8rem 0 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
@media (max-width: 860px) {
  .pshots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Kopple at the end of the company structure. */
a.structure__node {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s;
}
.structure__node.structure__node--game {
  border-color: rgba(255, 210, 63, 0.45);
  background: linear-gradient(160deg, rgba(255, 210, 63, 0.1), transparent 60%), var(--bg-1);
}
.structure__node.structure__node--game:hover {
  color: inherit;
  border-color: #ffd23f;
}
.structure__icon {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.4rem;
  border-radius: 22%;
}

@keyframes blink {
  0%,
  94%,
  100% {
    transform: none;
  }
  96.5% {
    transform: scaleY(0.12);
  }
}
@keyframes peek {
  from {
    translate: 0 100%;
  }
}

/* ── Home ────────────────────────────────────────────────────────────────── */
/* Pictures first, few words. Avelta frames the page: one statement and its
   mark standing on a rule. Then its studios take the focus: Mind Tricks in
   a white panel in its own blue, with its first game, Kopple, inside it. */

/* Avelta: the company. */
.corp {
  padding: calc(var(--nav-h) + clamp(2.2rem, 5.5vw, 5rem)) 0 clamp(2.5rem, 5vw, 4rem);
}
.corp__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: end;
  gap: 2rem clamp(2rem, 5vw, 5rem);
}
.corp__text {
  padding-bottom: clamp(2.2rem, 4.5vw, 3.6rem);
}
/* Who it is: the company's full name and its country, in capitals like the
   wordmark, after a short red line that draws in with the page. */
.corp__kicker {
  display: flex;
  align-items: center;
  margin: 0 0 clamp(1.4rem, 3vw, 2.2rem);
  font-size: clamp(1.05rem, 1.65vw, 1.45rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.corp__kicker i {
  flex: none;
  width: 2.2em;
  height: 3px;
  margin-right: 0.75em;
  background: var(--red);
  transform-origin: left;
  animation: rule-draw 1.1s var(--ease-out) 0.25s both;
}
.corp__kicker span {
  margin-left: 0.4em;
  font-weight: 600;
  color: var(--ink-2);
}
/* "The company behind" on one line, then the studios, each in its own colour
   (set in the markup) and never broken inside a name. */
.corp__title {
  font-size: clamp(2.6rem, 6vw, 6rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.corp__names {
  display: block;
}
.corp__title em {
  font-style: normal;
  white-space: nowrap;
}

/* The mark, standing on the rule. As the page opens the rule draws across
   and the two brackets close in from opposite corners, the red one coming
   up out of the rule; they lock with a pulse that rings out from the frame,
   and a light passes over them. Scrolling away, the frame sinks back into
   the rule (--sink, set by the script). The ground clip keeps everything
   below the rule out of sight. */
.corp__art {
  display: flex;
  justify-content: center;
  line-height: 0;
}
.corp__mark {
  width: auto;
  height: clamp(180px, 23vw, 340px);
  margin-bottom: -1px;
  overflow: visible;
}
.corp__lift {
  transform: translateY(calc(var(--sink, 0) * 1px));
}
.corp__mark .mark__back {
  fill: var(--ink);
  animation: frame-in-back 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.corp__mark .mark__front {
  animation: frame-in-front 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both;
}
@keyframes frame-in-back {
  from {
    transform: translate(-18px, -18px);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
}
@keyframes frame-in-front {
  from {
    transform: translate(18px, 18px);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
}
.corp__pulse {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: frame-pulse 1.3s var(--ease-out) 1.18s both;
}
@keyframes frame-pulse {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  4% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}
.corp__sheen {
  transform: translateX(-14px) skewX(-20deg);
  animation: sheen 1.3s cubic-bezier(0.65, 0, 0.25, 1) 1.5s both;
}
@keyframes sheen {
  from {
    transform: translateX(-14px) skewX(-20deg);
  }
  to {
    transform: translateX(62px) skewX(-20deg);
  }
}
.corp__rule {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1.5px solid var(--ink);
  transform-origin: left;
  animation: rule-draw 1.5s var(--ease-out) 0.1s both;
}
@keyframes rule-draw {
  from {
    transform: scaleX(0);
  }
}
@media (max-width: 860px) {
  .corp__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .corp__text {
    padding-bottom: 1.6rem;
  }
  .corp__mark {
    height: clamp(110px, 22vw, 170px);
  }
}
@media (max-width: 560px) {
  .corp__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .corp__art {
    justify-content: flex-end;
  }
}

/* Our studios. */
.studios {
  --hl: var(--blue);
}
.studios .eyebrow {
  margin-bottom: clamp(1rem, 2vw, 1.4rem);
}

/* Mind Tricks: the studio, in a white panel in its own blue. */
.studio-panel {
  padding: clamp(1.1rem, 3.4vw, 3.2rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  background: var(--bg-1);
}
.studio-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 2.4rem clamp(2rem, 5vw, 5rem);
  padding: clamp(0.6rem, 1.6vw, 1.2rem) clamp(0.2rem, 1vw, 0.8rem) clamp(2.2rem, 4.5vw, 3.6rem);
}
.studio-panel__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 clamp(1.6rem, 3vw, 2.4rem);
  padding: 0.42rem 0.9rem 0.44rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.studio-panel__tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.studio-logo--panel {
  --logo-w: min(100%, 30rem);
}
.studio-panel__tagline {
  max-width: 20ch;
  margin: clamp(1.4rem, 2.6vw, 2rem) 0 clamp(1.6rem, 3vw, 2.2rem);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.btn--studio {
  background: var(--blue);
}
.btn--studio:hover {
  background: var(--ink);
}
.studio-panel__art .ifield {
  width: min(100%, 470px);
  margin: 0 0 0 auto;
}
@media (max-width: 900px) {
  .studio-panel__head {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 2rem;
  }
  /* On narrow screens the logo speaks for the studio, and Kopple comes sooner. */
  .studio-panel__art {
    display: none;
  }
}

/* Kopple: the studio's game, large, in its own colours. */
.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  border-radius: var(--radius);
}
.tile__lead {
  margin: 1.2rem 0 0;
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.tile--kopple {
  min-height: clamp(520px, 42vw, 620px);
  padding: clamp(1.6rem, 3.2vw, 3rem);
  background: radial-gradient(60% 70% at 78% 40%, #2a3070, transparent 70%), var(--navy);
  color: var(--ink-2);
}
.tile--kopple .tile__body {
  position: relative;
  z-index: 2;
  max-width: 50%;
}
.tile--kopple .khero__from {
  margin-bottom: 1rem;
}
.tile--kopple .kmark {
  margin: 0;
}
.kmark--tile {
  font-size: clamp(3.6rem, 7vw, 6.4rem);
}
.tile--kopple .tile__lead span {
  color: var(--ink-2);
  font-weight: 500;
}
.tile--kopple .actions {
  margin-top: 1.8rem;
}
.tile__fan {
  position: absolute;
  top: clamp(1.6rem, 3vw, 2.6rem);
  right: clamp(0.5rem, 3vw, 2.5rem);
  width: 46%;
}
.tile__fan .fan {
  width: min(100%, 420px);
}
.tile__critters {
  left: clamp(1.6rem, 3.2vw, 3rem);
  right: auto;
  justify-content: flex-start;
  gap: 0.45rem;
}
.tile__critters .critter {
  width: clamp(44px, 4.6vw, 66px);
}
@media (max-width: 760px) {
  .tile--kopple {
    min-height: 0;
    padding-bottom: 7rem;
  }
  .tile--kopple .tile__body {
    max-width: none;
  }
  .tile__fan {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    margin-top: 2rem;
  }
  .tile__fan .fan {
    width: min(86%, 340px);
  }
  .tile__critters {
    left: 0;
    right: 0;
    justify-content: center;
  }
}

/* The share images, at 1200 × 630 (tools/render-brand.mjs). The home page's
   is the company: its statement and its mark. Kopple's is the game's
   wordmark over its creatures. Links have nothing to do in a picture. */
.is-poster .corp {
  height: 630px;
  padding-top: 172px;
  overflow: hidden;
}
.is-poster .khero--page .stores {
  display: none;
}
.is-poster .khero--page {
  height: 630px;
  min-height: 0;
  padding: 0 0 110px;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 9rem) 0;
}
.section--flush {
  padding-top: 0;
}
.section--tint {
  --surface: var(--bg-1);
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.section__head {
  max-width: 64rem;
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}
.section__lede {
  max-width: 58ch;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}
.section__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  margin: clamp(3.5rem, 7vw, 6rem) 0 1.6rem;
}
.section__sub p {
  margin: 0;
  color: var(--ink-3);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: start;
}
.split__note {
  max-width: 40ch;
  margin-top: 1.5rem;
  font-size: 0.98rem;
  color: var(--ink-3);
}
@media (min-width: 941px) {
  .split__head {
    position: sticky;
    top: calc(var(--nav-h) + 2.5rem);
  }
}
@media (max-width: 940px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Card grids: white cards that lift a little under the pointer. */
.pillars,
.principles,
.channels,
.linkrow {
  display: grid;
  gap: clamp(0.7rem, 1.1vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pillars,
.principles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pillars {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.channels,
.linkrow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pillar,
.principle,
.channel,
.kfeat__card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.pillar:hover,
.principle:hover,
.channel:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -30px rgba(20, 20, 20, 0.3);
}
.pillar,
.principle {
  padding: clamp(1.5rem, 2.8vw, 2.3rem);
}
.pillar__no,
.principle__no {
  display: inline-grid;
  place-items: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pillar h3,
.principle h3 {
  margin: clamp(1.8rem, 4vw, 3rem) 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.pillar p,
.principle p {
  font-size: 0.98rem;
}
.channel {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 1.5rem;
}
.channel__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.channel__text {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.95rem;
}
.channel__mail {
  margin-top: auto;
  font-size: 0.98rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.linkrow a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s;
}
.linkrow a:hover {
  border-color: var(--ink);
}
.linkrow .icon {
  color: var(--hl);
  transition: transform 0.35s var(--ease);
}
.linkrow a:hover .icon {
  transform: translateX(4px);
}
@media (max-width: 1040px) {
  .channels,
  .linkrow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .pillars,
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }
  .pillar h3,
  .principle h3 {
    margin-top: 1.4rem;
  }
}
@media (max-width: 520px) {
  .channels,
  .linkrow {
    grid-template-columns: minmax(0, 1fr);
  }
  .channel {
    min-height: 0;
  }
}

/* ── Fact tables ─────────────────────────────────────────────────────────── */
.facts {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
.facts__row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 13rem) minmax(0, 1fr);
  gap: 0.3rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  padding-top: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.facts--compact {
  margin-top: 2rem;
}
.facts--compact dd {
  font-size: 0.98rem;
}
@media (max-width: 560px) {
  .facts__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Mind Tricks ─────────────────────────────────────────────────────────── */
/* The studio's pages: white grounds, its logo as designed, its blue, and a
   graphic made from its turned "i". */
.mt {
  display: block;
  width: var(--logo-w, 100%);
  line-height: 0;
  color: #070707;
}
.mt svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.mt__ink {
  fill: currentColor;
}
.mt__bang {
  fill: var(--blue);
  transform-box: fill-box;
}
.studio-logo {
  margin: 0;
  line-height: 0;
}
.studio-logo .mt__bang {
  animation: fade-in 0.5s 0.35s both, trick 1.2s cubic-bezier(0.6, -0.25, 0.25, 1.3) 0.95s both;
}
.js [data-reveal]:not(.is-in) .mt__bang {
  animation-play-state: paused;
}
.studio-logo--hero {
  --logo-w: min(100%, 40rem);
}
.structure__node--studio .mt {
  color: var(--ink);
}

/* The studio's graphic: rows of ink "i"s on paper, one of them turned over
   into the logo's blue "!". It turns once as the page opens. */
.ifield {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: clamp(1.8rem, 3.4vw, 3rem);
  border-radius: var(--radius);
  background: var(--bg);
}
.ifield svg {
  width: 100%;
  height: auto;
  overflow: visible;
  fill: #141414;
}
.ifield__bang {
  fill: var(--blue);
  transform-box: fill-box;
  transform-origin: 50.9% 33.8%;
  animation: trick 1.2s cubic-bezier(0.6, -0.25, 0.25, 1.3) 1.1s both;
}

/* The studio page opens on white, its logo large, its graphic beside it. */
.studio-hero {
  --hl: var(--blue);
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: max(100svh, 680px);
  padding: calc(var(--nav-h) + 3rem) 0 clamp(3rem, 8vh, 6rem);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.studio-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.studio-hero__tagline {
  max-width: 17ch;
  margin: clamp(1.5rem, 3vw, 2.4rem) 0 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}
@media (max-width: 900px) {
  .studio-hero {
    align-items: start;
    min-height: 0;
  }
  .studio-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-hero__art .ifield {
    width: min(100%, 420px);
    margin: 0;
  }
}

/* ── Closing band ────────────────────────────────────────────────────────── */
/* A full-bleed poster in the brand's primary: Avelta red with its A
   cropped huge, the studio's blue with its "!", Kopple's yellow with its
   creatures peeking up. */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8.5rem) 0;
  background: var(--red);
  color: #fff;
}
.band__bg {
  display: none;
}
.band__mark {
  position: absolute;
  z-index: -1;
  right: -3%;
  bottom: -38%;
  width: auto;
  height: 150%;
  max-width: none;
  aspect-ratio: 1;
  pointer-events: none;
}
.band__mark .mark__back {
  fill: rgba(255, 255, 255, 0.14);
}
.band__mark .mark__front {
  fill: rgba(20, 20, 20, 0.16);
}
.band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.band__title {
  margin: 0;
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: inherit;
}
.band__title em {
  font-style: normal;
  color: #141414;
}
.band .lede {
  color: inherit;
}
.band .actions {
  margin-top: 1.5rem;
}
.band--studio {
  background: var(--blue);
}
.band--studio .band__title em {
  color: #c6c7ff;
}
.band__mark--bang {
  right: 8%;
  bottom: auto;
  top: 50%;
  height: 135%;
  aspect-ratio: auto;
  translate: 0 -50%;
  fill: #fff;
  opacity: 0.14;
}
.band--studio .btn--ink {
  color: var(--blue);
  background: #fff;
}
.band--studio .btn--ink:hover {
  color: #fff;
  background: #141414;
}
.band--kopple {
  padding-bottom: clamp(9rem, 16vw, 12rem);
  background: var(--yellow);
  color: #1b1d38;
}
.band--kopple .band__title em {
  color: inherit;
}
.band--kopple .btn--ink {
  color: var(--yellow);
  background: #1b1d38;
}
.band--kopple .btn--ink:hover {
  color: #1b1d38;
  background: #fff;
}
.band--kopple .btn--ink-line:hover {
  background: rgba(27, 29, 56, 0.06);
}
.band__critters {
  z-index: -1;
}
.band__critters .critter > rect:first-of-type {
  stroke: #1b1d38;
  stroke-width: 4;
}
@media (max-width: 900px) {
  .band__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .band__mark {
    right: -35%;
    height: 110%;
  }
}

/* ── Inner page header ───────────────────────────────────────────────────── */
/* A big headline, with the Avelta A drawn behind it in one fine red line,
   standing on the rule that closes the header. The front slab is filled with
   the page colour, so the back one passes behind it. */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(3.5rem, 8vw, 7rem)) 0 clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.page-hero__mark {
  position: absolute;
  z-index: -1;
  right: max(var(--gutter), (100% - var(--max)) / 2);
  bottom: -1px;
  width: auto;
  height: min(58%, 360px);
  aspect-ratio: 1;
  overflow: visible;
}
.page-hero__mark path {
  fill: var(--bg);
  stroke: var(--red);
  stroke-width: 1.5;
}
.page-hero--tall {
  display: grid;
  align-items: center;
  min-height: min(84svh, 780px);
}
.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.page-hero .lede {
  max-width: 46ch;
  margin-top: 1.6rem;
}
@media (max-width: 760px) {
  .page-hero__mark {
    top: calc(var(--nav-h) + 1.6rem);
    bottom: auto;
    height: 96px;
  }
}

/* ── Company structure diagram ───────────────────────────────────────────── */
.structure {
  perspective: 1400px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
}
.structure__node {
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
}
.structure__node--root {
  border-color: color-mix(in srgb, var(--ember) 60%, transparent);
  background: linear-gradient(160deg, rgba(255, 138, 76, 0.12), transparent 60%), var(--bg-1);
}
.structure__node--studio {
  border-color: color-mix(in srgb, var(--electric) 55%, transparent);
  background: linear-gradient(160deg, rgba(112, 114, 255, 0.11), transparent 60%), var(--bg-1);
}
.structure__logo {
  --logo-w: 4.6rem;
  margin-bottom: 1.4rem;
}
.structure__node .mark {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1.6rem;
}
.structure__label {
  margin: 0 0 0.6rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.structure__name {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
}
.structure__meta {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
}
.structure__link {
  position: relative;
  display: grid;
  place-items: center;
  min-width: clamp(4.5rem, 9vw, 9rem);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.structure__link::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--line-strong);
}
.structure__link span {
  position: relative;
  padding: 0.3rem 0.6rem;
  background: var(--bg);
}
@media (max-width: 900px) {
  .structure {
    grid-template-columns: minmax(0, 1fr);
  }
  .structure__link {
    min-height: 3.6rem;
  }
  .structure__link::before {
    inset: 0 auto 0 50%;
    width: 1px;
    height: auto;
  }
}

/* ── Callout, quotes, steps ──────────────────────────────────────────────── */
.callout {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 55%), var(--surface);
}
.callout__label {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.callout__value {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.15;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.callout__value a {
  text-decoration: none;
}
.callout__note {
  max-width: 52ch;
  font-size: 0.95rem;
}

.quote {
  padding: 0.2rem 0 0.2rem 1.5rem;
  border-left: 1px solid var(--accent);
}
.quote + .quote {
  margin-top: 2.2rem;
}
.quote__label {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.quote__text {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line-strong);
}
.steps li {
  position: relative;
  padding: 1.6rem 0 1.6rem 4.4rem;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.1rem;
  font-family: var(--serif);
  font-size: 3rem;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
}
.steps h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq {
  border-top: 1px solid var(--line-strong);
}
.faq__item {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary:hover {
  color: var(--gold);
}
.faq__item summary i {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}
.faq__item summary i::before,
.faq__item summary i::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: var(--accent);
  transition: transform 0.45s var(--ease);
}
.faq__item summary i::after {
  transform: rotate(90deg);
}
.faq__item[open] summary i::after {
  transform: rotate(0deg);
}
.faq__answer {
  max-width: 62ch;
  padding: 0 0 1.7rem;
}
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
  .faq__item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
  }
  .faq__item[open]::details-content {
    block-size: auto;
  }
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem 1.4rem;
}
.field--wide {
  grid-column: 1 / -1;
}
.field label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field label .muted {
  margin-left: 0.4rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}
.field {
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.25s, background 0.25s;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23ff8a4c' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
}
.field select option {
  background: #0b0f16;
  color: var(--ink);
}
.field ::placeholder {
  color: var(--ink-3);
  opacity: 1;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(226, 234, 242, 0.34);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: color-mix(in srgb, var(--accent) 6%, transparent);
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.6rem;
  margin-top: 1.7rem;
}
.form__note {
  flex: 1 1 16rem;
  max-width: 44ch;
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.form__status {
  margin: 1.2rem 0 0;
  font-size: 0.95rem;
  color: var(--gold);
}
.form__status:empty {
  display: none;
}
@media (max-width: 560px) {
  .form__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Legal hub list ──────────────────────────────────────────────────────── */
.doclist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.doclink {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.4fr) auto auto;
  align-items: center;
  gap: 0.4rem 2rem;
  padding: 1.6rem 0.4rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
}
.doclink__no {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent);
}
.doclink__title {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  color: var(--ink);
}
.doclink__meta {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.doclink .icon {
  color: var(--accent);
  transition: transform 0.45s var(--ease);
}
.doclink:hover .icon {
  transform: translateX(6px);
}
@media (max-width: 900px) {
  .doclink {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  }
  .doclink__text,
  .doclink__meta {
    grid-column: 2 / 3;
  }
  .doclink .icon {
    grid-column: 3;
    grid-row: 1;
  }
}

/* ── Press assets ────────────────────────────────────────────────────────── */
.assets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.asset {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.asset--studio {
  --accent: var(--electric);
}
/* The studio's logo shown on paper, as it was designed. */
.asset--studio .asset__preview {
  background: radial-gradient(70% 90% at 50% 110%, rgba(2, 1, 253, 0.12), transparent 70%), var(--paper);
}
.asset--studio .mt {
  color: #070707;
}
.asset__logo {
  --logo-w: min(72%, 17rem);
}
.asset__preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.3rem;
  min-height: clamp(200px, 24vw, 300px);
  padding: 2rem;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 110%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), #0b0b0c;
}
.asset__preview .mark {
  width: clamp(3rem, 5vw, 4.4rem);
  height: clamp(3rem, 5vw, 4.4rem);
}
.asset__word {
  font-size: clamp(1.1rem, 2.3vw, 2rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
}
.asset figcaption {
  padding: 1.4rem 1.5rem 1.6rem;
}
.asset__name {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.asset__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.asset__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s;
}
.asset__link:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.asset__link .icon {
  color: var(--accent);
}
@media (max-width: 760px) {
  .assets {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Long-form documents ─────────────────────────────────────────────────── */
.doc {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2rem, 5vw, 4rem) clamp(5rem, 10vw, 9rem);
}
.doc__toc {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  max-height: calc(100vh - var(--nav-h) - 4rem);
  overflow-y: auto;
  scrollbar-width: none;
}
.doc__toc-title {
  margin: 0 0 1rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.doc__toc a {
  display: flex;
  gap: 0.8rem;
  margin-left: -1px;
  padding: 0.42rem 0 0.42rem 1rem;
  border-left: 1px solid transparent;
  font-size: 0.85rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--ink-3);
  transition: color 0.25s, border-color 0.25s;
}
.doc__toc a span {
  padding-top: 0.12rem;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}
.doc__toc a:hover,
.doc__toc a.is-active {
  color: var(--ink);
}
.doc__toc a.is-active {
  border-color: var(--ember);
}
.doc__body {
  max-width: 47rem;
}
.doc__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.8rem;
  margin-bottom: 2.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc__print {
  margin-left: auto;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--ink-2);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.doc__print:hover {
  border-color: var(--ember);
  color: var(--ink);
}
.doc__section {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.doc__section + .doc__section {
  margin-top: 3.4rem;
}
.doc__section h2 {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  font-stretch: 118%;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.doc__no {
  font-family: var(--serif);
  font-size: 1.15em;
  font-style: italic;
  font-weight: 400;
  color: var(--ember);
}
@media (max-width: 940px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc__toc {
    position: static;
    max-height: none;
    padding: 1.4rem;
    border: 1px solid var(--line);
    background: var(--bg-1);
  }
}

.prose h3 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-stretch: 112%;
}
.prose h3:first-child {
  margin-top: 0;
}
.prose strong {
  font-weight: 600;
  color: var(--ink);
}
.prose ul {
  margin: 0 0 1.2em;
  padding-left: 1.15rem;
}
.prose li {
  margin-bottom: 0.5em;
  padding-left: 0.3rem;
}
.prose li::marker {
  color: var(--accent);
}
.prose address {
  margin-bottom: 1.1em;
  color: var(--ink);
}
.table-scroll {
  margin: 0 0 1.4em;
  overflow-x: auto;
}
.prose table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}
.prose th {
  padding: 0 1.2rem 0.8rem 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: left;
  text-transform: uppercase;
  color: var(--ink-3);
}
.prose td {
  padding: 0.95rem 1.2rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose td:first-child {
  color: var(--ink);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
/* Ink, with the facts the stores and the law ask for. */
.footer {
  --line: rgba(246, 244, 239, 0.14);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 1.8rem;
  background: #141414;
  color: rgba(246, 244, 239, 0.66);
}
.is-kopple .footer {
  background: #0f1126;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f6f4ef;
}
.footer__brand:hover {
  color: #fff;
}
.footer .mark__back {
  fill: #f6f4ef;
}
.footer__about {
  font-size: 0.95rem;
}
.footer__about p {
  max-width: 34ch;
}
.footer__about address {
  margin-bottom: 1.1em;
}
.footer__title {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(246, 244, 239, 0.45);
}
.footer__col ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__col a {
  font-size: 0.98rem;
  text-decoration: none;
  color: rgba(246, 244, 239, 0.88);
}
.footer__col a:hover {
  color: #fff;
}
.footer__legal {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(246, 244, 239, 0.5);
}
.footer__legal p {
  margin: 0 0 0.3rem;
}
.footer__legal a {
  color: rgba(246, 244, 239, 0.8);
}
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer__about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── The carried-over components, in the new type and colours ────────────── */
.steps h3,
.doclink__title,
.structure__name,
.doc__section h2,
.prose h3 {
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: -0.03em;
  text-transform: none;
}
.callout__value {
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: -0.03em;
}
.steps li::before,
.doclink__no,
.doc__no {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps li::before {
  font-size: 2.4rem;
  letter-spacing: -0.04em;
}
.doc__no {
  font-size: 1em;
  color: var(--red);
}
.callout {
  border-color: var(--line);
  background: linear-gradient(150deg, color-mix(in srgb, var(--hl) 9%, transparent), transparent 55%), var(--bg-1);
}
.callout__label,
.quote__label,
.field label,
.facts dt,
.doc__toc-title,
.doc__meta,
.prose th,
.asset__name,
.doclink__meta,
.structure__label,
.structure__link {
  letter-spacing: 0.06em;
}
.field input,
.field select,
.field textarea {
  border-radius: 12px;
  background-color: #fff;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23141414' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}
.field select option {
  background: #fff;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(20, 20, 20, 0.4);
}
.doc__print {
  border-radius: 8px;
}
.doc__toc a.is-active {
  border-color: var(--red);
}
.structure__node {
  background: #fff;
}
.structure__node--root {
  border-color: rgba(234, 61, 30, 0.5);
  background: linear-gradient(160deg, rgba(234, 61, 30, 0.08), transparent 60%), #fff;
}
.structure__node--studio {
  border-color: rgba(2, 1, 253, 0.35);
  background: linear-gradient(160deg, rgba(2, 1, 253, 0.06), transparent 60%), #fff;
}
.structure__link span {
  background: var(--bg);
}
.asset__preview {
  background: var(--bg-2);
}
.asset--studio .asset__preview {
  background: #fff;
}
.asset__preview .mark {
  color: var(--ink);
}
.asset__word {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.asset__link {
  border-radius: 10px;
}
/* Kopple's page subtitle was a serif italic; upright in the new type. */
.khero__subtitle {
  font-style: normal;
  font-weight: 650;
  letter-spacing: -0.035em;
}

/* ── Polish ──────────────────────────────────────────────────────────────── */
/* The finish that runs through every page: the logo at full size, headlines
   that rise a word at a time, buttons that fill from below, links that draw
   their line, the A drawn in on inner pages, and calmer, longer reveals.
   All of it stands still with reduced motion (see Motion). */

/* The logo, a size up, in the bar and the footer. On hover its two
   brackets open the frame a little. */
.nav__brand {
  gap: 0.55rem;
}
.nav__brand .mark {
  width: 2.5rem;
  height: 2.5rem;
}
.nav__word {
  font-size: 1.42rem;
}
.mark__back,
.mark__front {
  transition: transform 0.6s var(--ease-out);
}
.nav__brand:hover .mark__back,
.footer__brand:hover .mark__back {
  transform: translate(-1.8px, -1.8px);
}
.nav__brand:hover .mark__front,
.footer__brand:hover .mark__front {
  transform: translate(1.8px, 1.8px);
}
.footer__brand {
  gap: 0.6rem;
  font-size: 1.22rem;
}
.footer__brand .mark {
  width: 2.6rem;
  height: 2.6rem;
}
@media (max-width: 880px) {
  .nav__brand .mark {
    width: 2.2rem;
    height: 2.2rem;
  }
  .nav__word {
    font-size: 1.28rem;
  }
}

/* Headlines rise a word at a time (the script wraps the words). Each word
   is clipped at its own lower edge only, so nothing is cut at the sides or
   in the descenders once it has landed. */
.js .has-words.rise {
  animation: none;
}
.js .has-words .w {
  display: inline-block;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  vertical-align: top;
  clip-path: inset(-0.5em -0.3em 0 -0.3em);
}
.js .has-words .w__i {
  display: inline-block;
  transform: translateY(125%);
}
.js .has-words.is-in .w__i {
  transform: none;
  animation: word-rise 1.15s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + var(--w, 0) * 55ms + 60ms);
}
@keyframes word-rise {
  from {
    transform: translateY(125%);
  }
}

/* Buttons fill from below with their hover colour. */
.btn {
  isolation: isolate;
  overflow: hidden;
  transition: border-color 0.3s, color 0.35s var(--ease-out), transform 0.25s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-fill, var(--red));
  transform: translateY(102%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before {
  transform: none;
}
/* Once the fill has landed, the button itself takes the colour, so no hair
   of the old one shows at the rounded corners. */
.btn:hover {
  background-color: var(--btn-fill, var(--red)) !important;
  transition: border-color 0.3s, color 0.35s var(--ease-out), transform 0.25s var(--ease), background-color 0s 0.5s;
}
.btn--primary,
.btn--primary:hover {
  background: var(--ink);
}
.btn--line {
  --btn-fill: var(--ink);
}
.btn--line:hover {
  color: var(--bg);
}
.btn--studio,
.btn--studio:hover {
  --btn-fill: var(--ink);
  background: var(--blue);
}
.btn--ink {
  --btn-fill: #fff;
}
.btn--ink,
.btn--ink:hover {
  background: #141414;
}
.btn--ink:hover {
  color: #141414;
}
.btn--ink-line {
  --btn-fill: rgba(255, 255, 255, 0.18);
}
.btn--ink-line:hover {
  background: transparent;
}
.k-theme .btn--primary {
  --btn-fill: #ffe27a;
}
.k-theme .btn--primary,
.k-theme .btn--primary:hover {
  background: var(--k-yellow);
}
.k-theme .btn--primary:hover {
  box-shadow: 0 4px 0 var(--k-yellow-deep);
}

/* Text links draw their line on hover. */
.link {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px;
  padding-bottom: 0.2em;
  transition: background-size 0.5s var(--ease-out);
}
.link:hover {
  background-size: calc(100% - 1.5em) 1.5px;
}

/* Inner pages: the outline frame behind the headline rises out of the
   rule, as the home page's solid one does. */
.page-hero__mark {
  animation: mark-wipe 1.9s var(--ease-out) 0.2s both;
}
@keyframes mark-wipe {
  from {
    clip-path: inset(100% -4px -4px -4px);
    transform: translateY(6%);
  }
  to {
    clip-path: inset(-4px);
    transform: none;
  }
}

/* The closing band's big frame drifts against the scroll (--py, set by the
   script). */
.band__mark {
  translate: 0 var(--py, 0);
}

/* Reveals: further, slower and softer. The studio panel and the game tile
   also settle in scale; the game's phones fan out as it arrives. */
.js [data-reveal] {
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1.25s var(--ease-out), box-shadow 0.45s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .studio-panel[data-reveal],
.js .tile--kopple[data-reveal] {
  transform: translateY(56px) scale(0.97);
}
.js .studio-panel[data-reveal].is-in,
.js .tile--kopple[data-reveal].is-in {
  transform: none;
}
.js .tile--kopple[data-reveal] .fan .phone {
  transition: transform 1.3s var(--ease-out) 0.35s;
}
.js .tile--kopple[data-reveal]:not(.is-in) .fan__left {
  transform: translateX(62%) rotate(9deg);
}
.js .tile--kopple[data-reveal]:not(.is-in) .fan__right {
  transform: translateX(-62%) rotate(-9deg);
}
.js .tile--kopple[data-reveal]:not(.is-in) .fan__front {
  transform: translateY(6%) scale(0.94);
}

/* The screenshots lift under the pointer. */
@media (hover: hover) {
  .kshot .phone {
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  }
  .kshot:hover .phone {
    transform: translateY(-8px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 80px -36px rgba(4, 5, 20, 0.85);
  }
}

/* The home page: the bar's contents settle in as the page opens. */
.is-home .nav__inner > * {
  animation: rise 0.9s var(--ease-out) both;
}
.is-home .nav__inner > :nth-child(2) {
  animation-delay: 0.08s;
}
.is-home .nav__inner > :nth-child(3) {
  animation-delay: 0.16s;
}

/* ── Motion ──────────────────────────────────────────────────────────────── */
.rise {
  animation: rise 0.9s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 80ms + 80ms);
}
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out), box-shadow 0.45s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js .tile[data-reveal].is-in:hover,
.js .pillar[data-reveal].is-in:hover,
.js .principle[data-reveal].is-in:hover,
.js .channel[data-reveal].is-in:hover {
  transform: translateY(-3px);
  transition-delay: 0s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
/* The "i" turns over into the "!". */
@keyframes trick {
  from {
    transform: rotate(-180deg);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
  }
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root) {
    animation: page-out 0.25s var(--ease) both;
  }
  ::view-transition-new(root) {
    animation: page-in 0.5s var(--ease-out) 0.06s both;
  }
}
@keyframes page-out {
  to {
    opacity: 0;
  }
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ── Print (legal documents) ─────────────────────────────────────────────── */
@media print {
  :root {
    --ink: #000;
    --ink-2: #222;
    --ink-3: #555;
    --line: #ccc;
    --line-strong: #999;
  }
  html,
  body {
    background: #fff;
  }
  body::after,
  .progress,
  .critters,
  .nav,
  .menu,
  .footer__grid,
  .page-hero__mark,
  .doc__aside,
  .doc__print,
  .band,
  .skip {
    display: none !important;
  }
  .page-hero {
    padding: 0 0 1.5rem;
  }
  .h-display em,
  .doc__no {
    background: none;
    color: #000;
    animation: none;
  }
  .page-hero::after {
    display: none;
  }
  .doc {
    display: block;
    padding: 0;
  }
  .footer {
    background: #fff;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
  a {
    text-decoration: none;
  }
}
