/* ==========================================================================
   Unicorp Studio — site styles
   1. Tokens   2. Base   3. Components   4. Sections   5. Motion prefs
   Colour roles are measured from the badge reference image:
   each hue has a solid (hue + ink) and a tint (dark container + bright ink).
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* ground and neutrals */
  --bg: #050505;
  --surface: #121212;
  --surface-2: #1c1c1c;
  --surface-3: #2a2a2a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f4f2;
  --text-2: #a3a3a0;
  --text-3: #6f6f6c;
  --paper: #f5f4f0;
  --ink: #0a0a0a;

  /* solids */
  --yellow: #e3dd35;  --on-yellow: #0b0a00;
  --red: #cb2d2c;     --on-red: #ffffff;
  --green: #24e980;   --on-green: #00150a;
  --violet: #6f32f1;  --on-violet: #ffffff;
  --orange: #f77a1e;  --on-orange: #180900;
  --grey: #505050;    --on-grey: #c2c2c2;

  /* tints (container + on-container) */
  --red-c: #2e0606;    --on-red-c: #ee4d4b;
  --green-c: #12261b;  --on-green-c: #24e980;
  --violet-c: #27143a; --on-violet-c: #a47dff;
  --orange-c: #432000; --on-orange-c: #f77a1e;
  --grey-c: #1c1c1c;   --on-grey-c: #b8b8b8;
  --yellow-c: #2a2906; --on-yellow-c: #e3dd35;

  /* roles that flip with the colour scheme */
  --on-text: #0a0a0a;                      /* ink on a --text surface */
  --text-hi: #ffffff;                      /* --text, one step stronger (hover) */
  --body: #d4d4d1;                         /* long-form text */
  --dim: #3a3a38;                          /* text waiting to be lit */
  --mock: #343434;                         /* grey bars in the small illustrations */
  --mock-2: #4a4a48;
  --mock-3: #8a8a86;
  --mock-card: #232323;
  --wash: rgba(255, 255, 255, 0.04);       /* hover veil */
  --wash-2: rgba(255, 255, 255, 0.16);
  --focus: var(--yellow);
  --sheet: var(--paper);                   /* the document preview's page */
  --field-on: #202020;
  --glass: rgba(255, 255, 255, 0.045);     /* almost clear: the page keeps its own colours */
  --glass-dim: 1;
  --glass-halo: rgba(0, 0, 0, 0.32);       /* a soft halo keeps the header text readable over bright content */
  --glass-rim: rgba(255, 255, 255, 0.34);
  --glass-rim-low: rgba(255, 255, 255, 0.1);
  --glass-glow: rgba(255, 255, 255, 0.07);

  /* shape */
  --r-xl: 40px;
  --r-lg: 32px;
  --r-frame: 20px;
  --r-screen: 10px;
  --r-md: 24px;
  --r-sm: 16px;
  --pad: 14px;              /* gap between a panel and the card it holds */

  /* layout */
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1200px;
  --nav-h: 60px;

  /* type */
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;

  /* motion: one ease for reveals, three springs for things you touch */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: linear(0, 0.042, 0.136, 0.251, 0.368, 0.477, 0.574, 0.657, 0.727, 0.784, 0.831, 0.868, 0.897, 0.921, 0.939, 0.953, 0.964, 0.973, 0.979, 0.984, 0.988, 0.991, 0.993, 0.995, 0.996, 0.997, 0.998, 0.998, 1);
  --spring-soft: linear(0, 0.033, 0.113, 0.22, 0.337, 0.454, 0.563, 0.661, 0.745, 0.816, 0.873, 0.918, 0.953, 0.978, 0.996, 1.007, 1.015, 1.019, 1.02, 1.02, 1.018, 1.016, 1.014, 1.011, 1.009, 1.007, 1.005, 1.004, 1.003, 1.002, 1.001, 1.001, 1);
  --spring-bounce: linear(0, 0.047, 0.165, 0.324, 0.497, 0.665, 0.814, 0.938, 1.031, 1.095, 1.132, 1.147, 1.144, 1.13, 1.108, 1.082, 1.057, 1.034, 1.014, 0.999, 0.988, 0.982, 0.979, 0.978, 0.98, 0.983, 0.987, 0.99, 0.994, 0.997, 0.999, 1.001, 1.002, 1.003, 1.003, 1.003, 1.003, 1.002, 1.002, 1.001, 1);
}

/* Light — only when the browser or system asks for it. Same roles, light values. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    /* white ground, cool neutral greys */
    --bg: #ffffff;
    --surface: #f5f5f7;
    --surface-2: #e8e8ed;
    --surface-3: #d2d2d7;
    --line: rgba(0, 0, 0, 0.1);
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #86868b;
    --paper: #ffffff;

    --red-c: #fbe2e1;    --on-red-c: #b3201f;
    --green-c: #d8f7e6;  --on-green-c: #087a43;
    --violet-c: #e9e0fd; --on-violet-c: #5a22d6;
    --orange-c: #fde6d2; --on-orange-c: #a94a08;
    --grey-c: #e8e8ed;   --on-grey-c: #424245;
    --yellow-c: #f3f0a6; --on-yellow-c: #5a5700;

    --on-text: #ffffff;
    --text-hi: #424245;
    --body: #333336;
    --dim: #c7c7cc;
    --mock: #d2d2d7;
    --mock-2: #c7c7cc;
    --mock-3: #8e8e93;
    --mock-card: #e8e8ed;
    --wash: rgba(0, 0, 0, 0.035);
    --wash-2: rgba(0, 0, 0, 0.12);
    --focus: #1d1d1f;
    --sheet: #ffffff;
    --field-on: #ffffff;
    --glass: rgba(255, 255, 255, 0.22);
    --glass-dim: 1.04;
    --glass-halo: rgba(255, 255, 255, 0.75);
    --glass-rim: rgba(255, 255, 255, 0.95);
    --glass-rim-low: rgba(0, 0, 0, 0.06);
    --glass-glow: rgba(255, 255, 255, 0.5);
  }
}

/* ── 2. Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, video, svg { display: block; max-width: 100%; }
::selection { background: var(--yellow); color: var(--on-yellow); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.icon {
  flex: none;
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
}

.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, currentColor 55%, transparent);
}

/* ── 3. Components ─────────────────────────────────────────────────────── */

/* Badge — the one pill, in every colour role */
.badge {
  --b-bg: var(--grey-c);
  --b-ink: var(--on-grey-c);
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  height: 2em;
  padding: 0 0.78em;
  border-radius: 999px;
  background: var(--b-bg);
  color: var(--b-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: lowercase;
  white-space: nowrap;
}
.badge .icon { width: 1.1em; height: 1.1em; }
.badge--yellow   { --b-bg: var(--yellow);   --b-ink: var(--on-yellow); }
.badge--green    { --b-bg: var(--green);    --b-ink: var(--on-green); }
.badge--violet   { --b-bg: var(--violet);   --b-ink: var(--on-violet); }
.badge--red      { --b-bg: var(--red);      --b-ink: var(--on-red); }
.badge--orange   { --b-bg: var(--orange);   --b-ink: var(--on-orange); }
.badge--grey     { --b-bg: var(--grey);     --b-ink: var(--on-grey); }
.badge--red-t    { --b-bg: var(--red-c);    --b-ink: var(--on-red-c); }
.badge--green-t  { --b-bg: var(--green-c);  --b-ink: var(--on-green-c); }
.badge--violet-t { --b-bg: var(--violet-c); --b-ink: var(--on-violet-c); }
.badge--orange-t { --b-bg: var(--orange-c); --b-ink: var(--on-orange-c); }

/* Button — a pill that squares its corners while pressed */
.btn {
  --btn-bg: var(--text);
  --btn-ink: var(--on-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 3.25rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 1.625rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-radius 0.45s var(--spring-soft),
    transform 0.45s var(--spring-soft),
    background-color 0.25s ease,
    color 0.25s ease;
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform 0.5s var(--spring-soft); }
.btn:active {
  border-radius: 0.875rem;
  transform: scale(0.97);
  transition-duration: 0.12s;
}
.btn--sm { height: 2.5rem; padding: 0 1.05rem; border-radius: 1.25rem; font-size: 0.9375rem; }
.btn--lg { height: 3.75rem; padding: 0 1.75rem; border-radius: 1.875rem; font-size: 1.125rem; }
.btn--tonal { --btn-bg: var(--surface-2); --btn-ink: var(--text); }
.btn--ink { --btn-bg: var(--ink); --btn-ink: #fff; }
.btn--onpanel { --btn-bg: rgba(0, 0, 0, 0.1); --btn-ink: currentColor; }
.btn--plan { --btn-bg: var(--on-plan); --btn-ink: var(--plan); }
.btn__meta {
  padding: 0.24em 0.55em;
  border-radius: 999px;
  background: var(--wash-2);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .btn:hover { --btn-bg: var(--text-hi); }
  .btn--tonal:hover { --btn-bg: var(--surface-3); }
  .btn--ink:hover { --btn-bg: #222; }
  .btn--onpanel:hover { --btn-bg: rgba(0, 0, 0, 0.17); }
  .btn--plan:hover { --btn-bg: var(--on-plan); }
  .btn:hover .icon { transform: translateX(3px); }
  .btn:hover .icon:has([href$="#arrow-down"]) { transform: translateY(3px); }
  .btn:hover .icon:has([href$="#arrow-up-right"]) { transform: translate(2px, -2px); }
}

/* Round icon button */
.iconbtn {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.45s var(--spring-soft), border-radius 0.45s var(--spring-soft);
}
.iconbtn .icon { width: 1.25rem; height: 1.25rem; transition: transform 0.5s var(--spring-soft); }
.iconbtn--sm { width: 2.5rem; height: 2.5rem; }
.iconbtn--sm .icon { width: 1rem; height: 1rem; }
.iconbtn:active { transform: scale(0.94); border-radius: 36%; transition-duration: 0.12s; }
@media (hover: hover) {
  .iconbtn:hover { background: var(--text); color: var(--on-text); }
}

/* Text link */
.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.4s var(--ease-out);
}
@media (hover: hover) {
  .link:hover { background-size: 0 1px; background-position: 100% 100%; }
}

/* Segmented control — dark track, light thumb that slides on a spring */
.segmented {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface-2);
}
.segmented__thumb {
  position: absolute;
  z-index: -1;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--w, 0px);
  border-radius: 999px;
  background: var(--text);
  transform: translateX(var(--x, 0px));
}
.segmented.is-ready .segmented__thumb {
  transition: transform 0.55s var(--spring-soft), width 0.55s var(--spring-soft), scale 0.3s var(--spring);
}
.segmented:active .segmented__thumb { scale: 0.96; }
.segmented label { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.segmented input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.seg {
  display: block;
  height: 2.875rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 600;
  line-height: 2.875rem;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.seg__short { display: none; }
.segmented input:checked + .seg { color: var(--on-text); }
.segmented input:focus-visible + .seg { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) {
  .segmented input:not(:checked):hover + .seg { color: var(--text); }
}
html:not(.js) .segmented input:checked + .seg { background: var(--text); }
.segmented--sm .seg { height: 2.375rem; padding: 0 1rem; font-size: 0.9375rem; line-height: 2.375rem; }
.segmented--full { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.segmented--full .seg { padding-inline: 0.5rem; }
.segmented--paper { background: rgba(0, 0, 0, 0.07); }
.segmented--paper .segmented__thumb { background: var(--ink); }
.segmented--paper .seg { color: #6e6e73; }
.segmented--paper input:checked + .seg { color: #fff; }
.segmented--paper input:focus-visible + .seg { outline-color: var(--ink); }
@media (hover: hover) {
  .segmented--paper input:not(:checked):hover + .seg { color: var(--ink); }
}
html:not(.js) .segmented--paper input:checked + .seg { background: var(--ink); }

/* Chip — a filter toggle */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  height: 2.5rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 1.25rem;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-radius 0.45s var(--spring-soft), transform 0.45s var(--spring-soft);
}
.chip sup { font-size: 0.72em; line-height: 1; opacity: 0.6; transform: translateY(-0.2em); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--on-text); }
.chip:active { border-radius: 0.75rem; transform: scale(0.96); transition-duration: 0.12s; }
@media (hover: hover) {
  .chip[aria-pressed="false"]:hover { background: var(--surface-3); color: var(--text); }
}

/* Reveal on scroll */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── 4. Sections ───────────────────────────────────────────────────────── */

.section { padding-block: clamp(96px, 12vw, 168px); }

.head {
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-bottom: clamp(44px, 6vw, 72px);
  text-align: center;
}
.head h2 {
  max-width: 17ch;
  font-size: clamp(2.125rem, 4.6vw, 3.625rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.head p {
  max-width: 40ch;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.42;
  text-wrap: pretty;
}
.head .filter, .head .segmented { margin-top: 16px; }

/* Navigation — an island that tightens once you scroll */
.nav {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav__island {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  min-height: var(--nav-h);
  padding: 0 10px 0 22px;
  border-radius: 30px;
  background: transparent;
  box-shadow: inset 0 0 0 1px transparent;
  pointer-events: auto;
  transition: max-width 0.8s var(--spring), background-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-scrolled .nav__island {
  max-width: 770px;
  /* liquid glass: a clear, lightly tinted pane. The page stays readable through
     it, softened and richer, and the rim catches the light instead of a border */
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(170%) brightness(var(--glass-dim));
  backdrop-filter: blur(12px) saturate(170%) brightness(var(--glass-dim));
  box-shadow:
    inset 0 1px 0.5px var(--glass-rim),
    inset 0 -1px 0.5px var(--glass-rim-low),
    inset 0 0 14px var(--glass-glow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-scrolled .nav__island { background: var(--surface); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled .nav__island { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav__logo { justify-self: start; display: block; padding: 8px 0; color: var(--text); }
.nav__logo svg { width: 122px; height: 20px; fill: currentColor; }
.nav__links { position: relative; isolation: isolate; display: flex; }
.nav__links a {
  padding: 0 15px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 40px;
  transition: color 0.25s ease;
}
.nav__links a.is-active, .nav__links a:hover { color: var(--text); }
.nav.is-scrolled .nav__links a, .nav.is-scrolled .lang { color: var(--text); text-shadow: 0 1px 8px var(--glass-halo); }
.nav.is-scrolled .nav__logo svg, .nav.is-scrolled .lang .icon { filter: drop-shadow(0 1px 4px var(--glass-halo)); }
.nav.is-scrolled .nav__links a.is-active, .nav.is-scrolled .nav__links a:hover { color: var(--text); }
.nav.is-scrolled .nav__thumb { background: color-mix(in srgb, var(--text) 14%, transparent); }
.nav__thumb {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: var(--w, 0px);
  height: 40px;
  border-radius: 999px;
  background: var(--surface-2);
  opacity: var(--o, 0);
  transform: translateX(var(--x, 0px));
  transition: transform 0.5s var(--spring-soft), width 0.5s var(--spring-soft), opacity 0.25s ease;
}
.nav__end { justify-self: end; display: flex; align-items: center; gap: 6px; }
/* language switch: a small globe with the other language's code */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 12px 0 10px;
  border-radius: 20px;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background-color 0.25s ease, color 0.25s ease, border-radius 0.45s var(--spring-soft), transform 0.45s var(--spring-soft);
}
.lang .icon { width: 1.25em; height: 1.25em; transition: transform 0.7s var(--spring-soft); }
.lang:active { border-radius: 12px; transform: scale(0.95); transition-duration: 0.12s; }
@media (hover: hover) {
  .lang:hover { background: var(--surface-2); color: var(--text); }
  .lang:hover .icon { transform: rotate(24deg); }
}
.nav__links .nav__lang { display: none; }
.nav__toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
}
.nav__toggle span {
  grid-area: 1 / 1;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.45s var(--spring-soft);
}
.nav__toggle span:first-child { transform: translateY(-3px); }
.nav__toggle span:last-child { transform: translateY(3px); }
.nav.is-open .nav__toggle span:first-child { transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: rotate(-45deg); }

/* Hero — the page opens on black. The title sits bottom left, the three
   promises bottom right, the latest makeover is a small news card top right. */
.hero {
  display: grid;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 36px) 0 36px;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto;
  grid-template-areas: "news" "title" "sub" "proof";
}
.hero__title {
  grid-area: title;
  align-self: end;
  margin-top: 40px;
  font-size: clamp(2rem, 10.2vw, 4.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.hero__title .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
  vertical-align: top;
}
.hero__title .w i {
  display: inline-block;
  font-style: normal;
  animation: rise 1.1s var(--ease-out) both;
  animation-delay: calc(var(--i) * 60ms + 100ms);
}
.br-d { display: none; }

/* the word that changes: it rolls like a counter, its icon tile follows */
.rotor {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  height: 1.04em;
  vertical-align: top;
  animation: fade-up 0.9s var(--ease-out) 0.28s both;
}
.rotor__words {
  display: inline-grid;
  width: var(--w, auto);
  height: 1.04em;
  transition: width 0.7s var(--spring-soft);
}
.rotor__word {
  grid-area: 1 / 1;
  justify-self: start;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.42em);
  filter: blur(10px);
  transition: opacity 0.35s ease, transform 0.75s var(--spring-soft), filter 0.35s ease;
}
.rotor__word.is-on { opacity: 1; transform: none; filter: none; }
.rotor__word.is-out {
  opacity: 0;
  transform: translateY(-0.42em);
  filter: blur(10px);
  transition-duration: 0.28s, 0.5s, 0.28s;
}
.rotor__tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 0.8em;
  height: 0.8em;
  margin-top: 0.06em;
  border-radius: 0.23em;
  background: var(--yellow);
  color: var(--on-yellow);
  transition: background-color 0.5s ease, color 0.3s ease;
}
.rotor__tile[data-hue="violet"] { background: var(--violet); color: #fff; }
.rotor__tile[data-hue="green"] { background: var(--green); color: var(--on-green); }
.rotor__tile .icon {
  grid-area: 1 / 1;
  width: 0.5em;
  height: 0.5em;
  opacity: 0;
  transform: scale(0.3) rotate(-50deg);
  transition: opacity 0.2s ease, transform 0.7s var(--spring-bounce);
}
.rotor__tile .icon.is-on { opacity: 1; transform: none; }

.hero__sub { grid-area: sub; }
.hero__lede {
  max-width: 34em;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.45;
  text-wrap: pretty;
  animation: fade-up 1s var(--ease-out) 0.7s both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  animation: fade-up 1s var(--ease-out) 0.82s both;
}
.hero__proof {
  grid-area: proof;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.hero__proof .badge { animation: pop 0.8s var(--spring-bounce) both; }
.hero__proof .badge:nth-child(1) { animation-delay: 1.05s; }
.hero__proof .badge:nth-child(2) { animation-delay: 1.13s; }
.hero__proof .badge:nth-child(3) { animation-delay: 1.21s; }

/* News — the latest Internet Makeover: two tags and one small card whose
   picture wipes from the old site to the new one */
.news {
  grid-area: news;
  justify-self: end;
  align-self: start;
  display: grid;
  justify-items: end;
  gap: 10px;
}
.news__tags { display: flex; gap: 6px; }
.news__tags .badge { font-size: 0.8125rem; animation: pop 0.8s var(--spring-bounce) 0.5s both; }
.news__tags .badge + .badge { animation-delay: 0.58s; }
.news__card {
  display: grid;
  grid-template-columns: 104px minmax(0, 200px);
  align-items: center;
  padding: 8px 12px 8px 8px;
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  transition: background-color 0.25s ease, border-radius 0.45s var(--spring-soft), scale 0.45s var(--spring-soft);
  animation: card-in 1.1s var(--spring-soft) 0.62s both;
}
.news__card:active { scale: 0.97; border-radius: 18px; transition-duration: 0.12s; }
.news__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-2);
}
.news__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 1.2s var(--spring);
}
.news__after { object-position: 22% 50%; }
.news__before { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); animation: wipe 9s 1.8s infinite both; }
.news__media::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 2px;
  background: #fff;
  animation: wipe-line 9s 1.8s infinite both;
}
.news__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: auto;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: transform 0.5s var(--spring-soft);
}
.news__play .icon { width: 12px; height: 12px; margin-left: 1px; }
.news__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 12px; }
.news__text { display: grid; gap: 3px; min-width: 0; }
.news__kicker { color: var(--text-3); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.news__title { font-size: 0.9375rem; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance; }
.news__go {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.news__go .icon { width: 12px; height: 12px; transition: transform 0.5s var(--spring-soft); }
@media (hover: hover) {
  .news__card:hover { background: var(--surface-2); }
  .news__card:hover img { transform: scale(1.05); }
  .news__card:hover .news__go { background: var(--text); color: var(--on-text); }
  .news__card:hover .news__go .icon { transform: translate(1px, -1px); }
  .news__card:hover .news__play { transform: scale(1.1); }
}

@keyframes wipe {
  0%, 30% { clip-path: inset(0 0 0 0); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  42%, 88% { clip-path: inset(0 100% 0 0); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes wipe-line {
  0%, 30% { left: calc(100% + 2px); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  42%, 88% { left: -2px; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  100% { left: calc(100% + 2px); }
}
@media (min-width: 860px) {
  .hero { padding-bottom: clamp(36px, 5.5vh, 56px); }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto;
    grid-template-areas: ". news" "title title" "sub proof";
    column-gap: 32px;
  }
  .hero__title { font-size: clamp(2.75rem, 5vw, 4.75rem); }
  .br-d { display: inline; }
  .br-m { display: none; }
  .hero__proof { align-self: end; justify-content: flex-end; margin-top: 0; }
}

@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: none; } }

/* Work */
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.projects {
  display: grid;
  gap: clamp(72px, 9vw, 128px);
  transition: opacity 0.2s ease;
}
.projects.is-switching { opacity: 0; }
.project[hidden] { display: none; }
.project { scroll-margin-top: 96px; }

/* the frame is the touch target: the picture moves inside it, the frame gives under a press */
.project__frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--r-frame);
  background: var(--surface);
  transition: border-radius 0.6s var(--spring-soft), scale 0.6s var(--spring-soft);
  will-change: transform;
}
/* a picture fills the frame, the site plays on a screen set in its middle */
.project__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 1.2s var(--spring);
}
.project__screen {
  position: relative;
  width: 74%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-screen);
  background: var(--surface-2);
}
.project__screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project__frame:active { scale: 0.985; border-radius: calc(var(--r-frame) - 6px); transition-duration: 0.14s; }
.project__meta {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) 8.5rem;
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 28px;
  padding-inline: 6px;
}
.project__id h3 {
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.project__id p { margin-top: 8px; color: var(--text-2); font-size: 1.0625rem; line-height: 1.4; }
.project__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.project__quote blockquote { font-size: 1.0625rem; line-height: 1.45; text-wrap: pretty; }
.project__quote figcaption { margin-top: 14px; color: var(--text-3); font-size: 0.9375rem; }
.project__quote figcaption b { margin-right: 0.5em; color: var(--text-2); font-weight: 600; }

/* Visit — a round button that opens into a labelled pill when its project is hovered */
.visit {
  grid-column: 3;
  justify-self: end;
  display: inline-grid;
  grid-template-columns: 0fr auto;
  align-items: center;
  height: 3.25rem;
  padding: 0 1rem;
  border-radius: 1.625rem;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    grid-template-columns 0.6s var(--spring),
    background-color 0.25s ease,
    color 0.25s ease,
    border-radius 0.45s var(--spring-soft),
    transform 0.45s var(--spring-soft);
}
.visit__label { min-width: 0; overflow: hidden; opacity: 0; transition: opacity 0.2s ease; }
.visit__label span { display: block; padding: 0 0.55em 0 0.25em; }
.visit .icon { width: 1.25rem; height: 1.25rem; transition: transform 0.5s var(--spring-soft); }
.visit:active { transform: scale(0.95); border-radius: 0.875rem; transition-duration: 0.12s; }
.project:has(.project__frame:focus-visible) .visit { grid-template-columns: 1fr auto; background: var(--text); color: var(--on-text); }
.project:has(.project__frame:focus-visible) .visit__label { opacity: 1; }
@media (hover: hover) {
  .project__frame:hover .project__bg { transform: scale(1.04); }
  .project:has(.project__frame:hover) .visit,
  .visit:hover { grid-template-columns: 1fr auto; background: var(--text); color: var(--on-text); }
  .project:has(.project__frame:hover) .visit__label,
  .visit:hover .visit__label { opacity: 1; transition-delay: 0.08s; }
  .project:has(.project__frame:hover) .visit .icon,
  .visit:hover .icon { transform: translate(1px, -1px); }
}

/* Offers — a coloured panel holding a paper card */
.stage {
  --plan: var(--green);
  --on-plan: var(--on-green);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--pad);
  padding: var(--pad);
  border-radius: var(--r-xl);
  background: var(--plan);
  color: var(--on-plan);
}
.js .stage[data-reveal] {
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out), background-color 0.7s var(--ease-out), color 0.4s ease;
}
.stage[data-plan="launch"] { --plan: var(--violet); --on-plan: var(--on-violet); }
.stage[data-plan="complete"] { --plan: var(--orange); --on-plan: var(--on-orange); }
.stage__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 500px;
  padding: clamp(22px, 2.6vw, 34px);
}
.stage__badge {
  --b-bg: color-mix(in srgb, var(--on-plan) 12%, transparent);
  --b-ink: var(--on-plan);
}
.stage__copy { margin-top: auto; padding-top: 48px; }
.stage__name {
  font-size: clamp(3.5rem, 8vw, 6.25rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
  margin-left: -0.04em;
}
.stage__promise {
  margin-top: 20px;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.stage__for {
  max-width: 30em;
  margin-top: 12px;
  font-size: 1.0625rem;
  line-height: 1.42;
  opacity: 0.72;
  text-wrap: pretty;
}
.stage__lead .btn { margin-top: 32px; }
.stage__card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: calc(var(--r-xl) - var(--pad));
  background: var(--paper);
  color: var(--ink);
}
.stage__figures { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.price {
  display: flex;
  align-items: baseline;
  margin-top: 10px;
  font-size: clamp(3.25rem, 6.4vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.odo { display: inline-flex; align-items: baseline; }
.odo__col { display: inline-block; height: 1em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; transition: transform 0.9s var(--spring-soft); }
.odo__strip span { display: block; height: 1em; line-height: 1; }
.stage__time { text-align: right; }
.time { margin-top: 10px; font-size: 1.0625rem; line-height: 1.2; color: #6e6e73; }
.time b { margin-right: 0.15em; color: var(--ink); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; }
.stage__rule { height: 1px; background: rgba(0, 0, 0, 0.1); }
.stage__list { display: grid; gap: 13px; margin-top: 18px; }
.stage__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
}
.tick {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--plan);
  color: var(--on-plan);
  transition: background-color 0.7s var(--ease-out), color 0.4s ease;
}
.tick .icon { width: 12px; height: 12px; }
.stage__note { margin-top: auto; color: #6e6e73; font-size: 0.9375rem; line-height: 1.4; }

/* content swap when the plan changes */
.stage .btn--plan span, .time b { display: inline-block; }
.stage [data-swap] > *, .stage__list li, .stage .btn--plan span, .time b, [data-price-label] {
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--spring);
}
.stage [data-swap] > :nth-child(2), .stage__list li:nth-child(2) { transition-delay: 40ms; }
.stage [data-swap] > :nth-child(3), .stage__list li:nth-child(3) { transition-delay: 80ms; }
.stage__list li:nth-child(4) { transition-delay: 120ms; }
.stage__list li:nth-child(5) { transition-delay: 160ms; }
.stage__list li:nth-child(6) { transition-delay: 200ms; }
.stage.is-swapping [data-swap] > *,
.stage.is-swapping .stage__list li,
.stage.is-swapping .btn--plan span,
.stage.is-swapping [data-price-label],
.stage.is-swapping .time b {
  opacity: 0;
  transform: translateY(10px);
  transition-duration: 0.14s;
  transition-delay: 0s;
}

.offers__foot {
  margin-top: 32px;
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
}

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pad); }
.step {
  display: flex;
  flex-direction: column;
  padding: var(--pad) var(--pad) 34px;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.step__ill {
  position: relative;
  display: grid;
  place-items: center;
  place-content: center;
  height: 252px;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - var(--pad));
  background: var(--bg);
}
.step__body { padding: 28px 18px 0; }
.step__n {
  display: block;
  color: var(--text-3);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.step h3 {
  margin-top: 14px;
  font-size: clamp(1.4375rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.step p { margin-top: 8px; color: var(--text-2); font-size: 1.0625rem; line-height: 1.42; }

/* loops only run while their card is on screen */
.js [data-loop] .step__ill * { animation-play-state: paused; }
.js [data-loop].is-live .step__ill * { animation-play-state: running; }

/* 01 — brief: three things get ticked off */
.ill-brief { gap: 8px; }
.ill-brief .badge {
  --b-bg: var(--green-c);
  --b-ink: var(--on-green-c);
  font-size: 1.125rem;
  animation: pick-1 7s infinite;
}
.ill-brief .badge .icon { animation: tick-1 7s infinite; }
.ill-brief .pick--2 { animation-name: pick-2; }
.ill-brief .pick--2 .icon { animation-name: tick-2; }
.ill-brief .pick--3 { animation-name: pick-3; }
.ill-brief .pick--3 .icon { animation-name: tick-3; }

@keyframes pick-1 {
  0%, 9% { background: var(--grey-c); color: var(--on-grey-c); }
  13%, 94% { background: var(--green-c); color: var(--on-green-c); }
  100% { background: var(--grey-c); color: var(--on-grey-c); }
}
@keyframes pick-2 {
  0%, 25% { background: var(--grey-c); color: var(--on-grey-c); }
  29%, 94% { background: var(--green-c); color: var(--on-green-c); }
  100% { background: var(--grey-c); color: var(--on-grey-c); }
}
@keyframes pick-3 {
  0%, 41% { background: var(--grey-c); color: var(--on-grey-c); }
  45%, 94% { background: var(--green-c); color: var(--on-green-c); }
  100% { background: var(--grey-c); color: var(--on-grey-c); }
}
@keyframes tick-1 {
  0%, 9% { width: 0; margin-left: -0.42em; transform: scale(0); animation-timing-function: var(--spring-bounce); }
  17%, 94% { width: 1.1em; margin-left: 0; transform: scale(1); }
  100% { width: 0; margin-left: -0.42em; transform: scale(0); }
}
@keyframes tick-2 {
  0%, 25% { width: 0; margin-left: -0.42em; transform: scale(0); animation-timing-function: var(--spring-bounce); }
  33%, 94% { width: 1.1em; margin-left: 0; transform: scale(1); }
  100% { width: 0; margin-left: -0.42em; transform: scale(0); }
}
@keyframes tick-3 {
  0%, 41% { width: 0; margin-left: -0.42em; transform: scale(0); animation-timing-function: var(--spring-bounce); }
  49%, 94% { width: 1.1em; margin-left: 0; transform: scale(1); }
  100% { width: 0; margin-left: -0.42em; transform: scale(0); }
}

/* 02 — build: a page assembles itself */
.ill-build { gap: 14px; }
.win {
  width: 250px;
  max-width: 78%;
  padding: 10px 14px 14px;
  border-radius: 16px;
  background: var(--surface-2);
}
.win__bar { display: flex; gap: 5px; margin-bottom: 12px; }
.win__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); }
.win__body { position: relative; height: 96px; }
.b { position: absolute; display: block; border-radius: 5px; background: var(--mock); animation: 7s infinite; }
.b-title { top: 2px; left: 0; width: 50%; height: 14px; background: var(--text); transform-origin: left; animation-name: b-title; }
.b-line { top: 26px; left: 0; width: 44%; height: 6px; border-radius: 3px; transform-origin: left; animation-name: b-line; }
.b-line--2 { top: 38px; width: 30%; animation-name: b-line-2; }
.b-btn { top: 64px; left: 0; width: 64px; height: 24px; border-radius: 12px; background: var(--yellow); transform-origin: left center; animation-name: b-btn; }
.b-img { top: 0; right: 0; width: 38%; height: 100%; border-radius: 12px; background: var(--violet); animation-name: b-img; }
.build-status { display: grid; place-items: center; }
.build-status .badge { grid-area: 1 / 1; animation: 7s infinite; }
.build-status .bs--1 { opacity: 0; animation-name: bs-1; }
.build-status .bs--2 { animation-name: bs-2; }

@keyframes b-title {
  0%, 6% { transform: scaleX(0); opacity: 1; }
  18%, 94% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes b-line {
  0%, 13% { transform: scaleX(0); opacity: 1; }
  25%, 94% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes b-line-2 {
  0%, 17% { transform: scaleX(0); opacity: 1; }
  29%, 94% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes b-btn {
  0%, 29% { transform: scale(0); opacity: 1; animation-timing-function: var(--spring-bounce); }
  40%, 94% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes b-img {
  0%, 38% { clip-path: inset(100% 0 0 0 round 12px); opacity: 1; animation-timing-function: var(--ease-out); }
  54%, 94% { clip-path: inset(0 0 0 0 round 12px); opacity: 1; }
  100% { clip-path: inset(0 0 0 0 round 12px); opacity: 0; }
}
@keyframes bs-1 {
  0%, 54% { opacity: 1; transform: none; }
  58%, 100% { opacity: 0; transform: scale(0.8); }
}
@keyframes bs-2 {
  0%, 55% { opacity: 0; transform: scale(0.6); animation-timing-function: var(--spring-bounce); }
  64%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

/* 03 — refine: a note lands, the headline gets bolder, it is approved */
.rcard {
  display: grid;
  justify-items: start;
  gap: 9px;
  width: 230px;
  max-width: 72%;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface-2);
}
.rcard i { display: block; border-radius: 3px; background: var(--mock); }
.rcard .r-title { width: 78%; height: 18px; border-radius: 5px; background: var(--text); animation: r-title 7s infinite; }
.rcard .r-line { width: 88%; height: 6px; }
.rcard .r-line--2 { width: 58%; }
.rcard .r-btn { width: 60px; height: 22px; margin-top: 8px; border-radius: 11px; background: var(--yellow); }
.r-note, .r-ok { position: absolute; animation: 7s infinite; }
.r-note { top: 13%; left: 7%; opacity: 0; transform-origin: 20% 100%; animation-name: r-note; }
.r-ok { right: 7%; bottom: 13%; transform-origin: 80% 0; animation-name: r-ok; }

@keyframes r-title {
  0%, 30% { width: 46%; height: 10px; background: var(--mock-3); animation-timing-function: var(--spring-soft); }
  42%, 94% { width: 78%; height: 18px; background: var(--text); }
  100% { width: 46%; height: 10px; background: var(--mock-3); }
}
@keyframes r-note {
  0%, 6% { opacity: 0; transform: scale(0.5); animation-timing-function: var(--spring-bounce); }
  16%, 44% { opacity: 1; transform: none; }
  50%, 100% { opacity: 0; transform: scale(0.85); }
}
@keyframes r-ok {
  0%, 52% { opacity: 0; transform: scale(0.4); animation-timing-function: var(--spring-bounce); }
  63%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

/* A word from the founder — large type on black, with tokens that wake up as you read */
.note { max-width: 960px; margin: clamp(88px, 11vw, 160px) auto 0; }
.note__text {
  margin-top: 28px;
  font-size: clamp(1.625rem, 3.7vw, 3rem);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.032em;
  text-wrap: pretty;
}
.js .note__text .wd, .js .note__text .nb { color: var(--dim); transition: color 0.6s ease; }
.js .note__text .is-lit { color: var(--text); }
.nb { white-space: nowrap; }
.nb .tok { margin-right: -0.09em; }   /* punctuation sits against the token */

/* Token — a word with an icon tile, set inline */
.tok {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  padding: 0.03em 0.3em 0.05em 0.13em;
  border-radius: 0.3em;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.1;
  white-space: nowrap;
  transition: background-color 0.6s ease, color 0.6s ease;
}
.tok__tile {
  align-self: center;
  display: grid;
  place-items: center;
  flex: none;
  width: 0.88em;
  height: 0.88em;
  border-radius: 0.25em;
  background: var(--tile, var(--surface-3));
  color: var(--tile-ink, #fff);
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.7s var(--spring-bounce);
}
.tok__tile--violet { --tile: var(--violet); --tile-ink: #fff; }
.tok__tile--orange { --tile: var(--orange); --tile-ink: var(--on-orange); }
.tok__tile--yellow { --tile: var(--yellow); --tile-ink: var(--on-yellow); }
.tok__tile--red    { --tile: var(--red);    --tile-ink: #fff; }
.tok__tile--green  { --tile: var(--green);  --tile-ink: var(--on-green); }
.tok__tile--paper  { --tile: var(--text);   --tile-ink: var(--on-text); }
.js .tok:not(.is-on) { background: var(--surface); color: var(--dim); }
.js .tok:not(.is-on) .tok__tile { background: var(--surface-2); color: var(--text-3); transform: scale(0.84); }

/* the icons: drawn with strokes so each part can move on its own */
.ic {
  width: 0.62em;
  height: 0.62em;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic [pathLength] { stroke-dasharray: 1 1.5; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* pen: it travels, and leaves a line behind */
.ic-pen__body { transform-origin: 12px 12px; }
.tok.is-on .ic-pen__body { animation: pen-move 1s var(--ease-out) 0.08s both; }
.tok.is-on .ic-pen__line { animation: draw 0.6s var(--ease-out) 0.12s both; }
@keyframes pen-move {
  0% { transform: translate(-6px, 1.5px) rotate(-12deg); }
  55% { transform: translate(3.5px, 0) rotate(5deg); }
  100% { transform: none; }
}

/* code: the brackets spring apart, the slash drops in */
.tok.is-on .ic-code__l { animation: code-l 0.8s var(--spring-bounce) 0.05s both; }
.tok.is-on .ic-code__r { animation: code-r 0.8s var(--spring-bounce) 0.05s both; }
.tok.is-on .ic-code__s { animation: draw 0.4s var(--ease-out) 0.32s both; }
@keyframes code-l { from { transform: translateX(5px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes code-r { from { transform: translateX(-5px); opacity: 0; } to { transform: none; opacity: 1; } }

/* bolt: outlined first, then it fills and lands */
.ic-bolt__p { fill: currentColor; }
.tok.is-on .ic-bolt__p { animation: bolt-draw 0.85s ease both; }
.tok.is-on .ic-bolt { animation: land 0.8s var(--spring-bounce) 0.36s both; }
@keyframes bolt-draw {
  0% { stroke-dashoffset: 1; fill-opacity: 0; }
  55% { stroke-dashoffset: 0; fill-opacity: 0; }
  100% { stroke-dashoffset: 0; fill-opacity: 1; }
}
@keyframes land { from { transform: scale(0.8) rotate(-12deg); } to { transform: none; } }

/* heart: two beats */
.ic-heart__p { fill: currentColor; transform-origin: 12px 13px; }
.tok.is-on .ic-heart__p { animation: beat 1.3s both; }
@keyframes beat {
  0% { transform: scale(0.2); opacity: 0; animation-timing-function: var(--spring-bounce); }
  42% { transform: scale(1); opacity: 1; animation-timing-function: ease-out; }
  56% { transform: scale(1.16); animation-timing-function: var(--spring-soft); }
  100% { transform: none; }
}

/* seal: the ring closes, the tick lands */
.ic-seal__ring { transform-origin: 12px 12px; transform: rotate(-90deg); }
.tok.is-on .ic-seal__ring { animation: draw 0.6s var(--ease-out) both; }
.tok.is-on .ic-seal__tick { animation: draw 0.34s var(--ease-out) 0.46s both; }
.tok.is-on .ic-seal { animation: settle 0.7s var(--spring-bounce) 0.52s both; }
@keyframes settle { from { transform: scale(0.84); } to { transform: none; } }

/* eye: it opens, looks both ways, then follows the pointer */
.ic-eye__lid { transform-origin: 12px 12px; }
.ic-eye__pupil { fill: currentColor; stroke: none; transform-origin: 12px 12px; }
.ic-eye__look { transform: translate(calc(var(--lx, 0) * 1px), calc(var(--ly, 0) * 1px)); }
.tok.is-on .ic-eye__lid { animation: eye-open 0.7s var(--spring-soft) both; }
.tok.is-on .ic-eye__pupil { animation: eye-glance 1.7s ease 0.12s both; }
@keyframes eye-open { from { transform: scaleY(0.06); } to { transform: none; } }
@keyframes eye-glance {
  0% { transform: scale(0); }
  16% { transform: scale(1); }
  38% { transform: translateX(-2.6px); }
  62% { transform: translateX(2.6px); }
  84%, 100% { transform: none; }
}

/* star: one large, one small, each lands with a turn */
.ic-star path { fill: currentColor; stroke: none; }
.ic-star__big { transform-origin: 10.5px 13px; }
.ic-star__small { transform-origin: 18.5px 6px; }
.tok.is-on .ic-star__big { animation: twinkle 0.9s var(--spring-bounce) both; }
.tok.is-on .ic-star__small { animation: twinkle 0.8s var(--spring-bounce) 0.24s both; }
@keyframes twinkle { from { transform: scale(0) rotate(-70deg); opacity: 0; } to { transform: none; opacity: 1; } }

.note__sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.35;
}
.note__sign b { display: block; color: var(--text); font-weight: 600; }
.note__mono {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Creator hub — shelves of content */
.shelves { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); transition: opacity 0.2s ease; }
.shelf, .lcard { min-width: 0; scroll-margin-top: 96px; }
.shelves.is-switching { opacity: 0; }
.shelf[hidden], .lcard[hidden] { display: none; }
/* a shelf that is announced but not open yet: visible, quiet, not clickable */
.is-soon .shelf__row, .is-soon .lrow { opacity: 0.42; filter: grayscale(1); pointer-events: none; user-select: none; }
.shelf--pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--pad);
}
.shelf--pair:not(:has(> :not([hidden]))) { display: none; }
.shelf__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 18px; padding-inline: 6px; }
.shelf__head h3 {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.shelf__head .badge { font-size: 0.8125rem; }
.shelf__row { display: grid; gap: var(--pad); }
.shelf__row--videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shelf__row--partners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shelf__foot { margin-top: 16px; padding-inline: 6px; color: var(--text-3); font-size: 0.9375rem; }

.vcard {
  display: flex;
  flex-direction: column;
  padding: var(--pad) var(--pad) 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - var(--pad));
  background: var(--th-bg);
  color: var(--th-ink);
}
.thumb--green  { --th-bg: var(--green-c);  --th-ink: var(--on-green-c); }
.thumb--violet { --th-bg: var(--violet-c); --th-ink: var(--on-violet-c); }
.thumb--orange { --th-bg: var(--orange-c); --th-ink: var(--on-orange-c); }
.thumb__n {
  position: absolute;
  left: 16px;
  bottom: 8px;
  font-size: clamp(3rem, 5.4vw, 4.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.thumb__play {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--th-ink);
  color: var(--th-bg);
}
.thumb__play .icon { width: 20px; height: 20px; margin-left: 2px; }
.vcard__body { display: grid; justify-items: start; gap: 12px; padding: 18px 10px 0; }
.vcard__body .badge { font-size: 0.8125rem; }
.vcard h4 { font-size: 1.1875rem; font-weight: 600; line-height: 1.24; letter-spacing: -0.02em; text-wrap: balance; }

.lcard { padding: 26px 0 8px; border-radius: var(--r-lg); background: var(--surface); }
.lcard .shelf__head { margin-bottom: 8px; padding-inline: 28px; }
.lrow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 22px 18px 28px;
}
.lrow + .lrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: var(--line);
}
a.lrow { color: inherit; transition: background-color 0.25s ease; }
a.lrow .lrow__icon { transition: background-color 0.25s ease, color 0.25s ease, transform 0.45s var(--spring-soft); }
a.lrow .lrow__icon .icon { transition: transform 0.5s var(--spring-soft); }
a.lrow:active .lrow__icon { transform: scale(0.9); }
a.lrow:focus-visible { outline-offset: -4px; border-radius: 20px; }
@media (hover: hover) {
  a.lrow:hover { background: var(--wash); }
  a.lrow:hover .lrow__icon { background: var(--text); color: var(--on-text); }
  a.lrow:hover .lrow__icon .icon { transform: translateX(2px); }
}
.lrow h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; text-wrap: pretty; }
.lrow p { margin-top: 4px; color: var(--text-3); font-size: 0.9375rem; line-height: 1.35; }
.lrow__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
}
.lrow__icon .icon { width: 16px; height: 16px; }

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: background-color 0.35s ease, color 0.25s ease, border-radius 0.45s var(--spring-soft), scale 0.45s var(--spring-soft);
}
.pcard p { transition: color 0.25s ease, opacity 0.25s ease; }
.pcard:active { scale: 0.975; border-radius: calc(var(--r-lg) - 10px); transition-duration: 0.12s; }
.pcard__logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.pcard__go {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--text-3);
  transition: transform 0.5s var(--spring-soft), color 0.25s ease;
}
.pcard h4 { margin-top: auto; padding-top: 28px; font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.pcard p { margin-top: 6px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.35; }
@media (hover: hover) {
  /* on hover the card takes the tool's own brand colour */
  .pcard:hover { background: var(--brand, var(--surface-2)); color: var(--on-brand, var(--text)); }
  .pcard:hover p { color: inherit; opacity: 0.78; }
  .pcard:hover .pcard__go { color: inherit; transform: translate(2px, -2px); }
}

.socials { display: grid; justify-items: center; gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.socials .label { color: var(--text-3); }
.socials__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Reviews — one voice at a time, large; the clients' names are the control */
.voice { display: grid; justify-items: center; gap: clamp(36px, 5vw, 56px); }
.voice__stage { display: grid; width: 100%; }
.voice__quote {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: clamp(28px, 3.4vw, 40px);
  max-width: 980px;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.8s var(--spring-soft), filter 0.4s ease, visibility 0s 0.4s;
}
.voice__quote.is-on { opacity: 1; transform: none; filter: none; visibility: visible; transition-delay: 0.12s, 0.12s, 0.12s, 0s; }
.voice__quote blockquote {
  font-size: clamp(1.5rem, 3.3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.voice__quote figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; color: var(--text-2); font-size: 1rem; text-align: left; }
.voice__who { display: grid; gap: 1px; line-height: 1.3; }
.voice__who b { color: var(--text); font-size: 1.0625rem; font-weight: 600; }
.voice__quote .link { margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--line); color: var(--text-2); font-weight: 500; line-height: 2.2; background-position: 20px 82%; background-size: calc(100% - 20px) 1px; }

/* Avatar — a photo, or initials on a tint when there is none */
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.avatar--xs { width: 26px; height: 26px; font-size: 0.625rem; letter-spacing: 0; }
.avatar--green  { background: var(--green-c);  color: var(--on-green-c); }
.avatar--violet { background: var(--violet-c); color: var(--on-violet-c); }
.avatar--orange { background: var(--orange-c); color: var(--on-orange-c); }
.avatar--red    { background: var(--red-c);    color: var(--on-red-c); }
.voice__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.voice__tab {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 2.625rem;
  padding: 0 1rem 0 0.5rem;
  border: 0;
  border-radius: 1.3125rem;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-radius 0.45s var(--spring-soft), transform 0.45s var(--spring-soft);
}
.voice__tab i { position: absolute; z-index: -1; inset: 0; background: var(--wash-2); transform: scaleX(0); transform-origin: left; }
.voice__tab.is-on { background: var(--surface-3); color: var(--text); }
.voice.is-playing .voice__tab.is-on i { animation: voice-fill 6.5s linear forwards; }
.voice.is-held .voice__tab.is-on { background: var(--text); color: var(--on-text); }
.voice__tab:active { border-radius: 0.75rem; transform: scale(0.96); transition-duration: 0.12s; }
@media (hover: hover) {
  .voice__tab:not(.is-on):hover { background: var(--surface-3); color: var(--text); }
}
@keyframes voice-fill { to { transform: scaleX(1); } }
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.trust .badge { height: 2.25em; padding: 0 0.9em; }
.trust .badge b { font-weight: 700; font-variant-numeric: tabular-nums; text-transform: none; }

/* French: the euro sign follows the amount */
html[lang="fr"] .price__cur { order: 2; margin-left: 0.14em; }

/* FAQ — an inset grouped list */
.faq__list {
  max-width: 820px;
  margin-inline: auto;
  padding: 6px 0;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.faq__item { position: relative; }
.faq__item + .faq__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: var(--line);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 22px 24px 28px;
  border: 0;
  background: none;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq__q:focus-visible { outline-offset: -4px; border-radius: 20px; }
.faq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.55s var(--spring-soft);
}
.faq__icon .icon { width: 14px; height: 14px; }
.faq__q:active .faq__icon { transform: scale(0.9); }
.faq__item.is-open .faq__icon { background: var(--text); color: var(--on-text); transform: rotate(45deg); }
@media (hover: hover) {
  .faq__q:hover .faq__icon { background: var(--surface-3); }
  .faq__item.is-open .faq__q:hover .faq__icon { background: var(--text); }
}
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--spring); }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 120px 28px 28px;
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.6s var(--spring);
  text-wrap: pretty;
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: 0.08s; }
html:not(.js) .faq__a { grid-template-rows: 1fr; }
html:not(.js) .faq__a p { opacity: 1; transform: none; }

/* Final call — the brand colour, once, holding a one-line brief */
.cta { padding-bottom: clamp(24px, 4vw, 48px); }
.cta__panel {
  --plan: var(--green);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--pad);
  padding: var(--pad);
  border-radius: var(--r-xl);
  background: var(--yellow);
  color: var(--on-yellow);
  will-change: transform;
}
.cta__panel[data-plan="launch"] { --plan: var(--violet); }
.cta__panel[data-plan="complete"] { --plan: var(--orange); }
.cta__panel :focus-visible { outline-color: var(--ink); }
.cta__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 440px;
  padding: clamp(22px, 2.6vw, 34px);
}
.cta__badge { --b-bg: rgba(0, 0, 0, 0.1); --b-ink: var(--on-yellow); }
.cta__title {
  margin-top: auto;
  padding-top: 48px;
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.04em;
}
.cta__call { margin-top: 26px; color: var(--on-yellow); font-size: 1.0625rem; }

/* Slot — the token in the headline that repeats what you type */
.slot {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  max-width: 100%;
  padding: 0.02em 0.3em 0.06em 0.13em;
  border-radius: 0.28em;
  background: rgba(0, 0, 0, 0.1);
  line-height: 1.1;
  white-space: nowrap;
  vertical-align: baseline;
}
.slot__tile {
  align-self: center;
  display: grid;
  place-items: center;
  flex: none;
  width: 0.82em;
  height: 0.82em;
  border-radius: 0.24em;
  background: var(--ink);
  color: var(--yellow);
  transition: transform 0.7s var(--spring-bounce);
}
.slot__tile .icon { width: 0.5em; height: 0.5em; }
.slot__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.22s ease, filter 0.22s ease, transform 0.5s var(--spring-soft);
}
.slot.is-swapping .slot__text { opacity: 0; filter: blur(6px); transform: translateY(0.14em); transition-duration: 0.12s; }
.slot.is-swapping .slot__tile { transform: scale(0.6) rotate(-30deg); transition-duration: 0.12s; }

.cta__card {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(22px, 2.8vw, 36px);
  border-radius: calc(var(--r-xl) - var(--pad));
  background: var(--paper);
  color: var(--ink);
}
.cta__row { display: grid; gap: 12px; }
.cta__input {
  display: block;
  width: 100%;
  height: 3.5rem;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  outline: 2px solid transparent;
  outline-offset: 0;
  transition: outline-color 0.2s ease, background-color 0.2s ease;
}
.cta__input::placeholder { color: #86868b; }
.cta__input:focus { outline-color: var(--ink); outline-offset: 0; background: rgba(0, 0, 0, 0.03); }
.cta__foot { display: grid; gap: 14px; margin-top: auto; padding-top: 6px; }
.cta__summary { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.cta__summary i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--plan);
  transition: background-color 0.5s var(--ease-out);
}
.cta__summary span { transition: opacity 0.22s ease; }
.cta__panel.is-swapping .cta__summary span,
.cta__panel.is-swapping .cta__card .btn span,
.cta__panel.is-swapping [data-cta-label] { opacity: 0; }
.cta__card .btn { width: 100%; justify-content: space-between; padding-inline: 1.6rem 1.35rem; }
.cta__card .btn span, [data-cta-label] { transition: opacity 0.22s ease; }
.cta__hint { color: #6e6e73; font-size: 0.9375rem; }

/* Footer — a bento of cards, then the wordmark, which fills in as the page ends */
.footer { padding: clamp(24px, 4vw, 48px) 0 28px; }
.footer__bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "lead lead site hub" "lead lead site social";
  gap: var(--pad);
}
.fcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.fcard .label { margin-bottom: 14px; color: var(--text-3); }
.fcard--lead { grid-area: lead; min-height: 372px; padding: clamp(24px, 2.8vw, 36px); }
.fcard--site { grid-area: site; }
.fcard--hub { grid-area: hub; }
.fcard--social { grid-area: social; }
.footer__logo { display: block; color: var(--text); }
.footer__logo svg { width: 134px; height: 22px; fill: currentColor; }
.footer__line {
  max-width: 17em;
  margin-top: auto;
  padding-top: 48px;
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.footer__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.flink {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 5px 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}
.flink .icon {
  width: 0.72em;
  height: 0.72em;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.5s var(--spring-soft);
}
.flink:active { color: var(--text-2); }
@media (hover: hover) {
  .flink:hover .icon { opacity: 1; transform: none; }
}
.fsocial { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.fsocial .iconbtn { width: 2.75rem; height: 2.75rem; }
.fsocial .iconbtn .icon { width: 1.125rem; height: 1.125rem; }
.fsocial__note { margin-left: 6px; color: var(--text-2); font-size: 0.9375rem; }
.fsocial__note b { color: var(--text); font-weight: 600; }

.footer__mark {
  position: relative;
  margin-top: clamp(24px, 4vw, 56px);
  aspect-ratio: 270 / 65;
  color: var(--text);
  cursor: default;
  touch-action: pan-y;
}
.footer__still { position: absolute; left: 1.48%; top: 24.6%; width: 97.04%; height: auto; fill: currentColor; }
.footer__lottie { position: absolute; inset: 0; filter: blur(14px); opacity: 0; transition: filter 1.6s var(--ease-out), opacity 0.9s ease; }
.footer__mark.is-shown .footer__lottie { filter: none; opacity: 1; }
.footer__lottie svg { display: block; overflow: visible; }
.footer__lottie path { fill: var(--text); }
.footer__mark.is-live .footer__still { display: none; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(12px, 2vw, 24px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.9375rem;
}
.footer__top { display: inline-flex; align-items: center; gap: 0.4em; color: var(--text-2); transition: color 0.25s ease; }
.footer__top .icon { width: 0.8em; height: 0.8em; transform: rotate(180deg); transition: transform 0.5s var(--spring-soft); }
@media (hover: hover) {
  .footer__top:hover { color: var(--text); }
  .footer__top:hover .icon { transform: rotate(180deg) translateY(3px); }
}

/* Start a project — a sheet */
.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}
.sheet[open] { display: grid; place-items: center; }
.sheet::backdrop { background: transparent; }
.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.sheet__card {
  position: relative;
  width: min(100%, 540px);
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.55s var(--spring-soft);
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__card { opacity: 1; transform: none; }
.sheet.is-dragging .sheet__card { transition: none; }
.sheet__grab { display: none; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.sheet__head h2 { font-size: 1.75rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.sheet__head p { max-width: 28em; margin-top: 8px; color: var(--text-2); line-height: 1.4; }
.sheet__form { display: grid; gap: 16px; margin-top: 24px; }
.sheet__summary { margin-top: -4px; color: var(--text-2); font-size: 0.9375rem; text-align: center; }
.field label { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--text-2); font-size: 0.9375rem; font-weight: 600; }
.field label span { color: var(--text-3); font-weight: 500; }
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.3;
  outline: 2px solid transparent;
  outline-offset: 0;
  resize: none;
  transition: outline-color 0.2s ease, background-color 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus { outline-color: var(--focus); background: var(--field-on); }
.field.is-invalid input { outline-color: var(--on-red-c); }
.field__error { display: none; margin-top: 8px; color: var(--on-red-c); font-size: 0.9375rem; }
.field.is-invalid .field__error { display: block; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sheet__fail { color: var(--on-red-c); font-size: 0.9375rem; line-height: 1.45; }
.sheet__fail[hidden] { display: none; }
.sheet__form [type="submit"][aria-busy="true"] { opacity: 0.55; pointer-events: none; }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sheet__actions .btn { flex: 1 1 auto; }
.sheet__done { display: grid; justify-items: start; gap: 14px; margin-top: 24px; }
.sheet__done[hidden] { display: none; }
.sheet__done h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.sheet__done p { color: var(--text-2); line-height: 1.45; }
.sheet__done .sheet__actions { width: 100%; }
html:has(.sheet[open]) { overflow: hidden; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .stage__lead { min-height: 0; }
  .stage__copy { padding-top: 56px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-bottom: var(--pad); }
  .step__body { padding: 8px 18px 8px 28px; }
  .shelf__row--partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "lead lead" "site hub" "social social"; }
  .fcard--lead { min-height: 0; }
  .cta__panel { grid-template-columns: minmax(0, 1fr); }
  .cta__lead { min-height: 0; }
  .cta__title { padding-top: 56px; }
}

/* the final call's picker uses short labels until its card is wide enough */
@media (max-width: 1240px) {
  .cta .seg__long { display: none; }
  .cta .seg__short { display: inline; }
}

@media (max-width: 760px) {
  :root { --r-xl: 30px; --r-lg: 26px; --r-frame: 16px; --r-screen: 6px; --pad: 10px; --nav-h: 56px; }

  .nav__island {
    grid-template-columns: 1fr auto;
    padding: 8px 8px 8px 18px;
    border-radius: 28px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .nav.is-scrolled .nav__island { max-width: var(--max); }
  .nav.is-scrolled.is-open .nav__island { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }

  .nav__logo svg { width: 110px; height: 18px; }
  .nav__toggle { display: grid; }
  .nav__links {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.55s var(--spring), opacity 0.3s ease, padding 0.55s var(--spring);
  }
  .nav.is-open .nav__links { max-height: 240px; padding: 10px 0 8px; opacity: 1; }
  .nav__links a { padding: 0 4px; color: var(--text); font-size: 1.375rem; font-weight: 600; line-height: 2.3; letter-spacing: -0.02em; }
  .nav__thumb { display: none; }
  .lang { display: none; }
  .nav__end .btn--sm { padding: 0 0.8rem; font-size: 0.875rem; }
  .nav__logo svg { width: 100px; height: 17px; }
  .nav__links .nav__lang { display: block; color: var(--text-2); }
  .nav.is-open .nav__links { max-height: 300px; }


  .seg__long { display: none; }
  .seg__short { display: inline; }

  .project__frame { aspect-ratio: 4 / 3; }
  .project__screen { width: 88%; }
  .project__meta { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; margin-top: 20px; }
  .project__quote { grid-column: 1 / -1; grid-row: 2; }
  .project__meta .visit { grid-column: 2; grid-row: 1; }

  .shelf__row--videos {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .shelf__row--videos::-webkit-scrollbar { display: none; }
  .shelf__row--videos > * { scroll-snap-align: start; }
  .pcard { min-height: 168px; padding: 18px; }
  .pcard__go { top: 20px; right: 18px; }
  .lcard .shelf__head { padding-inline: 20px; }
  .lrow { padding: 16px 16px 16px 20px; }
  .lrow + .lrow::before { left: 20px; right: 20px; }

  .stage__figures { flex-direction: column; align-items: flex-start; gap: 22px; }
  .stage__time { text-align: left; }
  .step { grid-template-columns: minmax(0, 1fr); padding-bottom: 26px; }
  .step__ill { height: 220px; }
  .step__body { padding: 22px 14px 0; }

  .faq__q { padding: 20px 16px 20px 20px; }
  .faq__item + .faq__item::before { left: 20px; right: 20px; }
  .faq__a p { padding: 0 20px 24px; }

  .fcard { padding: 22px; }
  .flink { font-size: 1.125rem; }
  .footer__line { padding-top: 40px; }

  /* the sheet rises from the bottom edge and can be dragged down */
  .sheet { padding: 0; }
  .sheet[open] { place-items: end center; }
  .sheet__card {
    width: 100%;
    max-height: 92svh;
    padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    opacity: 1;
    transform: translateY(100%);
  }
  .sheet.is-open .sheet__card { transform: translateY(var(--drag, 0px)); }
  .sheet__grab { display: grid; place-items: center; height: 28px; touch-action: none; cursor: grab; }
  .sheet__grab span { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); }
  .sheet__head { touch-action: none; }
}

/* phones: the hero's two buttons and its promises are sized to share a line;
   whatever still doesn't fit wraps to the next one */
@media (max-width: 480px) {
  .hero__actions { gap: 8px; }
  .hero__actions .btn { height: 3rem; padding: 0 0.875rem; font-size: 0.9375rem; }
  /* the French title has a longer last line: keep it inside the screen */
  :lang(fr) .hero__title { font-size: clamp(1.75rem, 8.6vw, 4.5rem); }
  .hero__proof { gap: 6px; }
  .hero__proof .badge { font-size: 0.8125rem; }
}

/* ── 5. Motion and contrast preferences ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .bs--1 { display: none; }
  .rotor__word { filter: none; }
}

@media (prefers-contrast: more) {
  :root { --text-2: #d0d0d0; --text-3: #a8a8a8; --line: rgba(255, 255, 255, 0.3); }
}

.sheet__form[hidden] { display: none; }
