/* =========================================================
   SPC STUDIO - Marketing site
   Base defaults + design-system components + page + responsive.
   ========================================================= */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--studio-neutral-50);
  color: var(--studio-neutral-800);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--fg);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  margin: 0;
}

img { max-width: 100%; display: block; }

a { color: var(--studio-coral-600); text-decoration: none; transition: color var(--dur-base) var(--ease-out); }
a:hover { color: var(--studio-coral-700); }

button { font-family: inherit; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { max-width: var(--container-max); margin: 0 auto; padding-left: var(--container-pad); padding-right: var(--container-pad); }

/* =========================================================
   DESIGN SYSTEM - Button (.spcs-btn)
   ========================================================= */
.spcs-btn {
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;   /* the hero's labels morph the button's width (js/main.js) */
}
.spcs-btn__label { display: inline-block; }
.spcs-btn--sm { font-size: 14px; line-height: 20px; padding: 10px 20px; }   /* 40px tall, like the SPC nav CTA */
.spcs-btn--md { font-size: 14px; padding: 12px 22px; }
.spcs-btn--lg { font-size: 15px; padding: 15px 28px; }
.spcs-btn__from { font-size: 0.82em; font-weight: 400; opacity: 0.8; margin-left: 2px; }

.spcs-btn--primary { background: var(--studio-cta); color: #fff; box-shadow: var(--shadow-cta); }
.spcs-btn--primary:hover { background: var(--studio-cta-hover); color: #fff; box-shadow: var(--shadow-lg); }
.spcs-btn--primary:active { background: var(--studio-cta-pressed); transform: translateY(1px); box-shadow: var(--shadow-sm); }

.spcs-btn--secondary { background: var(--studio-violet-500); color: #fff; }
.spcs-btn--secondary:hover { background: var(--studio-violet-600); color: #fff; }
.spcs-btn--secondary:active { background: var(--studio-violet-700); transform: translateY(1px); }

.spcs-btn--outline { background: var(--surface); color: var(--studio-neutral-800); border: 1px solid var(--border-strong); }
.spcs-btn--outline:hover { background: var(--bg-muted); color: var(--studio-neutral-800); border-color: var(--studio-neutral-400); }

.spcs-btn--ghost { background: transparent; color: var(--studio-coral-600); }
.spcs-btn--ghost:hover { background: var(--studio-coral-50); }

/* outline on dark surfaces */
.spcs-btn--outline.on-dark {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.35);
}
.spcs-btn--outline.on-dark:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.6); }

.spcs-btn:disabled, .spcs-btn[aria-disabled="true"] {
  opacity: 0.4; cursor: not-allowed; box-shadow: none; pointer-events: none;
}

/* =========================================================
   DESIGN SYSTEM - Badge (.spcs-badge)
   ========================================================= */
.spcs-badge {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}
.spcs-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.spcs-badge--coral   { background: var(--studio-coral-50);  color: var(--studio-coral-700); }
.spcs-badge--violet  { background: var(--studio-violet-50); color: var(--studio-violet-700); }
.spcs-badge--blue    { background: var(--studio-blue-50);   color: var(--studio-blue-700); }
.spcs-badge--solid   { background: var(--studio-coral-500); color: #fff; }
.spcs-badge--success { background: #e6f4ec; color: #15734a; }
.spcs-badge--neutral { background: var(--bg-sunken); color: var(--fg); }

/* =========================================================
   DESIGN SYSTEM - Card (.spcs-card)
   ========================================================= */
.spcs-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--surface);
  transition: all var(--dur-base) var(--ease-out);
  display: block;
  text-decoration: none;
  color: inherit;
}
.spcs-card--interactive { cursor: pointer; }
.spcs-card--interactive:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.spcs-card__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--studio-violet-600); background: var(--studio-violet-50);
  padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 12px;
}
.spcs-card__title { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--fg); font-weight: 700; }
.spcs-card__body { font-size: 13px; color: var(--fg-muted); margin: 0 0 16px; line-height: 1.55; }
.spcs-card__link { font-size: 13px; font-weight: 600; color: var(--studio-coral-600); }
.spcs-card--interactive:hover .spcs-card__link { color: var(--studio-coral-700); }

/* =========================================================
   DESIGN SYSTEM - Field / Input (.spcs-field)
   ========================================================= */
.spcs-field { display: flex; flex-direction: column; }
.spcs-field__label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 6px;
}
.spcs-field__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px; color: var(--fg);
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: all var(--dur-base) var(--ease-out);
}
.spcs-field__input::placeholder { color: var(--fg-subtle); }
.spcs-field__input:focus {
  outline: none;
  border-color: var(--studio-coral-500);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.spcs-field--invalid .spcs-field__input { border-color: var(--danger); }
.spcs-field--invalid .spcs-field__input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 30%, transparent); }
.spcs-field__err { font-size: 11px; color: var(--danger); margin-top: 5px; }
.spcs-field__hint { font-size: 11px; color: var(--fg-muted); margin-top: 5px; }

/* =========================================================
   NAVBAR
   ========================================================= */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  /* Same bar as the SPC site: 80px tall (+1px border), 42px logo, 14px links,
     and the logo and button line up with the page frame (1280px with a 24px
     gutter), while the bar's background still runs edge to edge. */
  height: 80px; box-sizing: content-box;
  padding: 0 max(var(--container-pad), calc(50% - var(--container-max) / 2 + var(--container-pad)));
  background: rgba(250, 248, 246, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #ece6df;
}
.site-nav__brand { display: flex; align-items: flex-end; gap: 6px; }
.site-nav__brand img { height: 42px; width: auto; }
.site-nav__brand span {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px;
  line-height: 1; letter-spacing: -0.01em; color: var(--studio-coral-600); padding-bottom: 3px;
}
.site-nav__menu { display: flex; align-items: center; gap: 32px; }
.site-nav__menu .spcs-btn { margin-left: 8px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: #6b6560;
  transition: color var(--dur-base) var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--studio-coral-600); }
.nav-link--spc:hover { color: #2563eb; }

/* mobile menu toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: 0;
  border-radius: var(--radius-md); cursor: pointer; color: var(--studio-neutral-800);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* =========================================================
   SECTION SCAFFOLD
   ========================================================= */
.section { max-width: var(--container-max); margin: 0 auto; padding: 104px var(--container-pad) 0; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--studio-coral-600); display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--studio-coral-500); display: inline-block; }
.eyebrow--light { color: #fb6f4a; }

.section-head { max-width: 620px; }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 0 12px; font-weight: 700;
}
.section-sub { font-size: 18px; color: #6b6560; margin: 0; line-height: 1.55; max-width: 52ch; }

.section-topline {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
}
.section-topline--end { align-items: flex-end; margin-bottom: 40px; }
.section-glyph { overflow: visible; flex-shrink: 0; }

/* =========================================================
   HERO  (kinetic: the key word cycles; a category scene draws in on the right)
   ========================================================= */
@property --ha { syntax: '<color>'; inherits: true; initial-value: #ef4d23; }
.hero {
  --ha: #ef4d23; --ease: cubic-bezier(.16, 1, .3, 1);
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 82vh; display: grid; align-content: center; align-items: center;
  padding: 56px var(--container-pad) 64px;
}
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 74vmin; height: 74vmin; right: -10vmin; top: 50%; transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ha) 20%, transparent) 0%, color-mix(in srgb, var(--ha) 8%, transparent) 42%, transparent 70%);
  transition: --ha .7s var(--ease);
}
/* Paper behind the hero (Seb 2026-11-02, in place of the drafting grid): heavier and lighter spots and a fine
   grain (assets/paper/paper.svg), with a couple of coffee rings and pencil sketches in the margins. js/main.js still
   nudges the stage and the copy onto its 20px lattice (--g-cell), which the paper no longer draws. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../assets/paper/paper.svg") 0 0 / 720px 720px;
}
/* The paper fades into the page at the bottom of the hero */
.hero::before, .hero__paper {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
          mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.hero__paper { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__paper img { position: absolute; display: block; height: auto; user-select: none; }
.hero__stain--a { width: 250px; left: -96px; top: 4%; transform: rotate(-18deg); }
.hero__stain--b { width: 190px; right: 30%; bottom: -84px; transform: rotate(32deg); opacity: .8; }
.hero__sketch--tower { width: 116px; left: 3%; bottom: 7%; transform: rotate(-4deg); }
.hero__sketch--arc { width: 150px; right: 3%; top: 7%; transform: rotate(6deg); }
@media (max-width: 1000px) {
  .hero__paper .hero__sketch--tower, .hero__paper .hero__stain--b { display: none; }
  .hero__stain--a { width: 180px; left: -80px; }
  .hero__sketch--arc { width: 110px; }
}
@media (max-width: 600px) {
  .hero__paper .hero__sketch--arc { display: none; }
}
.hero__grid {
  position: relative; z-index: 1; width: 100%; max-width: calc(var(--container-max) - 2 * var(--container-pad)); margin: 0 auto;
  /* Zero-minimum halves: the split never depends on the content, so the
     stage keeps its width whatever the length of the scene's headline. */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
}
/* The headline and description sit on a soft, lighter patch of the paper; it fades out just above the buttons.
   js/main.js nudges the block onto the grid (left/top). */
.hero__copy { position: relative; }
.hero__copy::before {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  left: -14%; right: -12%; top: -18%; bottom: 36%; border-radius: 50%;
  background: radial-gradient(ellipse at 42% 50%, rgba(250, 248, 246, .6) 28%, rgba(250, 248, 246, .3) 58%, transparent 82%);
  /* Alive, barely: the wash drifts a few pixels and its outline goes very
     slightly lopsided and back; the halo below breathes on another period. */
  animation: wash-drift 12s var(--ease-in-out) infinite alternate;
}
@keyframes wash-drift {
  0%   { transform: translate(0, 0) scale(1);             border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  50%  { transform: translate(6px, -4px) scale(1.025, .985); border-radius: 46% 54% 52% 48% / 53% 47% 53% 47%; }
  100% { transform: translate(-5px, 5px) scale(.985, 1.03); border-radius: 53% 47% 46% 54% / 48% 52% 48% 52%; }
}
/* A soft halo under the key word in its colour (--ha, set per scene by the
   hero script); js/main.js keeps it centred on the word as it changes. */
.hero__halo {
  position: absolute; z-index: -1; pointer-events: none; left: 0; top: 0; width: 0; height: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ha) 30%, transparent), color-mix(in srgb, var(--ha) 11%, transparent) 55%, transparent);
  filter: blur(30px);
  transition: --ha .7s var(--ease), left .7s var(--ease), top .7s var(--ease), width .7s var(--ease), height .7s var(--ease);
  animation: halo-breathe 9s var(--ease-in-out) infinite alternate;
}
@keyframes halo-breathe {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-6px, 3px) scale(1.04, .97); }
  100% { transform: translate(5px, -4px) scale(.97, 1.04); }
}
.hero__title {
  font-family: var(--font-display); font-weight: 700; color: var(--studio-neutral-800);
  font-size: clamp(36px, 4.9vw, 68px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px;
  white-space: nowrap; /* two lines on desktop: "We make <word>" / "move." */
}
.hero__b1 { display: none; }
/* The words slide in and out inside a clip. A clip-path rather than
   overflow: hidden, because a hidden-overflow inline-block puts its baseline
   at its bottom edge, and the hand-written key word (another face, another
   size) must share the headline's real baseline. The clip reaches beyond the
   box for the pen's ascenders, descenders and flourishes. */
.kw { display: inline-block; vertical-align: baseline; clip-path: inset(-.22em -.1em -.32em -.08em); }
.kw__word { display: inline-block; white-space: nowrap; color: var(--ha); will-change: transform; }
.kw__word--end { color: var(--studio-neutral-800); }
/* The key word is hand-written (Playwrite US Modern), a shade smaller since
   its ascenders and loops run tall; its line-height keeps it inside the
   headline's line box. */
.hero__title .kw__word:not(.kw__word--end) { font-family: var(--font-hand); font-weight: 400; font-size: .92em; line-height: .84; letter-spacing: 0; }
.hero__desc {
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: #59544e;
  max-width: 44ch; min-height: 3.1em; margin: 0; transition: opacity .3s var(--ease-out);
}
/* The pill with an arrow on each side, hugging the pill's width (--pill-w, set by js/main.js) */
.hero__switch { position: relative; width: 100%; --pill-w: 170px; }
.hero__arrow {
  position: absolute; top: 2px; z-index: 1; width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--fg-muted); cursor: pointer;
  transition: left .42s var(--ease), right .42s var(--ease), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.hero__arrow svg { width: 18px; height: 18px; display: block; }
.hero__arrow--prev { right: calc(50% + var(--pill-w) / 2 + 10px); }
.hero__arrow--next { left: calc(50% + var(--pill-w) / 2 + 10px); }
.hero__arrow:hover { color: var(--ha); border-color: var(--ha); }
.hero__arrow--prev:hover { transform: translateX(-2px); }
.hero__arrow--next:hover { transform: translateX(2px); }
.hero__arrow:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
@media (any-pointer: coarse) { .hero__arrow { width: 44px; height: 44px; top: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__arrow { transition: none; } }
/* one badge at a time, centred under the design; out goes up, in comes from below */
.hero__badges { position: relative; width: 100%; height: 44px; }
.hero__badges .hero-a-pill {
  position: absolute; left: 50%; top: 0; cursor: default; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .34s var(--ease), transform .34s var(--ease), visibility 0s linear .34s;
}
.hero__badges .hero-a-pill.is-off { transform: translate(-50%, -10px); }
.hero__badges .hero-a-pill.is-on {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .42s var(--ease) .14s, transform .42s var(--ease) .14s, visibility 0s;
}
.hero-a-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid #d8cfc6; background: #fff; color: #6b6560;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap; transition: all 250ms var(--ease-out);
}
.hero-a-pill:hover { border-color: #b5aa9e; color: #2e2b27; }
.hero-a-pill__ico { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.hero__ctas { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin: 34px 0 0; }
/* The second call to action is plain text in the scene's colour. */
.hero__link {
  position: relative; display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
  color: var(--ha); white-space: nowrap; box-sizing: border-box;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--ha) 40%, transparent);
  transition: color .7s var(--ease), text-decoration-color .25s var(--ease-out);
}
.hero__link:hover { text-decoration-color: currentColor; }
/* A small lighter patch of paper behind it. */
.hero__link::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -18px; right: -18px; top: -14px; bottom: -14px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(250, 248, 246, .6) 30%, rgba(250, 248, 246, .3) 60%, transparent 85%);
}
.hero__note { margin: 22px 0 0; font-size: 13px; font-weight: 500; color: var(--fg-muted); }

/* right-hand stage: one Hairline figure per category (js/hairline/hero.js) */
/* 520px on desktop, on the grid (js/main.js nudges it onto a crossing). */
.hero__side { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 520px; justify-self: end; }
.hero__stage { position: relative; width: 100%; aspect-ratio: 520 / 440; }
.hero__figs { position: absolute; inset: 0; }
/* The figures stack, centred in the stage (each is 5:4, the kernel's own box); only the one on stage takes the pointer.
   The kernel's palette variables, set from the tokens: white plates, warm charcoal edges, and the category's accent for the one bright line. */
.hero__fig {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); pointer-events: none;
  --hl-plate: var(--studio-neutral-0); --hl-edge: var(--studio-neutral-700); --hl-mid: var(--studio-neutral-500);
  --hl-lo: var(--studio-neutral-300); --hairline-stroke: 1.25;
}
.hero__fig.is-on { pointer-events: auto; }
.hero__fig.is-held { visibility: hidden; }   /* drawn at rest while the pieces travel to it */
/* js/hairline/hero.js: the real figures fade out and in under the travelling lines, so their fills do too */
.hero__fig.is-fading { opacity: 0; transition: opacity .24s var(--ease-out); }
.hero__fig.is-arriving { animation: hero-fig-in .24s var(--ease-out) both; }
.hero__morph.is-leaving { opacity: 0; transition: opacity .24s var(--ease-in-out); }
@keyframes hero-fig-in { from { opacity: 0; } to { opacity: 1; } }
.hero__fig[data-figure="brand"]     { --hl-hi: var(--studio-coral-500); }
.hero__fig[data-figure="campaigns"] { --hl-hi: var(--studio-violet-500); }
.hero__fig[data-figure="content"]   { --hl-hi: #16a34a; }   /* the Content accent, as in js/main.js and the hero pill */
.hero__fig[data-figure="digital"]   { --hl-hi: var(--studio-blue-500); }

/* slideshow indicator: the active dot stretches into a track whose fill runs for one cycle */
.hero__dots { display: flex; align-items: center; justify-content: center; gap: 6px; }
.hero__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; transition: width .35s var(--ease); }
.hero__dot.is-on { width: 40px; cursor: default; }
.hero__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%);
  border-radius: 999px; background: var(--studio-neutral-300);
  transition: width .35s var(--ease), background .3s var(--ease);
}
.hero__dot:hover::before { background: var(--studio-neutral-400); }
.hero__dot.is-on::before { width: 28px; background: color-mix(in srgb, var(--ha) 22%, var(--studio-neutral-200)); }
.hero__dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 999px; background: var(--ha); opacity: 0;
  clip-path: inset(0 100% 0 0 round 999px);
}
.hero__dot.is-on::after { opacity: 1; clip-path: inset(0 0 0 0 round 999px); } /* full, no progress fill: the hero no longer switches by itself */
.hero__dot:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; border-radius: 999px; }
@keyframes cn-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(0, -5px) scale(1); } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 40px 24px 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__side { max-width: 480px; justify-self: center; }
  .hero__glow { width: 100vmin; height: 100vmin; right: -40vmin; top: 62%; }
}

/* shared with the section glyphs */
@keyframes ha-pulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.32); opacity: 1; } }
.hero-a-hub { animation: ha-pulse 2.6s var(--ease-in-out) infinite; transform-origin: center; transform-box: fill-box; }
.dot-morph {
  transition: cx 900ms cubic-bezier(.22,1,.36,1), cy 900ms cubic-bezier(.22,1,.36,1), opacity 700ms var(--ease-out);
  transform-origin: center; transform-box: fill-box;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px;
}
/* Service card: 4 distinct category colours + a tidy flex layout */
.svc-card { display: flex; flex-direction: column; --cat: var(--studio-coral-500); --cat-text: var(--studio-coral-600); --cat-soft: var(--studio-coral-50); }
.svc-card--brand     { --cat: #ef4d23; --cat-text: #d63d16; --cat-soft: #fff3ef; } /* coral */
.svc-card--campaigns { --cat: #6d47e6; --cat-text: #5a32d6; --cat-soft: #f2effe; } /* violet */
.svc-card--content   { --cat: #16a34a; --cat-text: #15803d; --cat-soft: #e6f4ea; } /* green */
.svc-card--digital   { --cat: #0f70b8; --cat-text: #005bad; --cat-soft: #eef5fb; } /* heritage blue */

/* Header: icon chip + title on one row */
.svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.svc-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: var(--cat-soft); color: var(--cat);
}
.svc-ico svg { width: 24px; height: 24px; }
.svc-card .spcs-card__title { margin: 0; font-size: 18px; white-space: nowrap; }
.svc-card .spcs-card__body { margin: 0 0 16px; }
.svc-card .spcs-card__link { margin-top: auto; color: var(--cat-text); } /* pin to card bottom */
.svc-card.spcs-card--interactive:hover .spcs-card__link { color: var(--cat-text); }
.services-cta { margin-top: 40px; text-align: center; }

/* =========================================================
   WORK
   Real showcase pieces: poster covers, muted hover previews,
   click opens the lightbox. Category colours via --cat like .svc-card.
   ========================================================= */
/* 12-column base: regular card = 4, featured = 8, compact = 3 */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.work-card { grid-column: span 4; display: flex; flex-direction: column; --cat: #ef4d23; --cat-text: #d63d16; --cat-soft: #fff3ef; }
.work-card--brand     { --cat: #ef4d23; --cat-text: #d63d16; --cat-soft: #fff3ef; } /* coral */
.work-card--campaigns { --cat: #6d47e6; --cat-text: #5a32d6; --cat-soft: #f2effe; } /* violet */
.work-card--content   { --cat: #16a34a; --cat-text: #15803d; --cat-soft: #e6f4ea; } /* green */
.work-card--digital   { --cat: #0f70b8; --cat-text: #005bad; --cat-soft: #eef5fb; } /* heritage blue */

.work-cover {
  position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 16px;
  aspect-ratio: 16 / 10; background: var(--studio-neutral-100, #f1ece7);
  isolation: isolate;
}
.work-cover__poster, .work-cover__preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.work-cover__poster--top { object-position: top center; }
.work-cover__preview { opacity: 0; transition: opacity .45s var(--ease-out); pointer-events: none; }
.work-card.is-previewing .work-cover__preview { opacity: 1; }
.work-cover__play {
  position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); color: var(--cat); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.work-cover__play svg { width: 20px; height: 20px; margin-left: 2px; }
.work-card:hover .work-cover__play { background: var(--cat); color: #fff; transform: scale(1.06); }
.work-cover__len {
  position: absolute; right: 12px; bottom: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 9px; border-radius: var(--radius-pill); background: rgba(31,29,26,0.72); color: #fff;
  font-variant-numeric: tabular-nums;
}
.work-card__text { display: flex; flex-direction: column; flex: 1; }
.work-card__tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--cat-text); background: var(--cat-soft);
  padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 12px;
}
.work-card__tag-ico { width: 12px; height: 12px; flex-shrink: 0; color: var(--cat); }
.work-card__title {
  font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em;
  margin: 0 0 8px; color: var(--studio-neutral-800); font-weight: 700;
}
.work-card__body { font-size: 13px; color: #6b6560; margin: 0 0 16px; line-height: 1.55; }
.work-card__link { font-size: 13px; font-weight: 600; color: var(--cat-text); margin-top: auto; }
.spcs-card--interactive:hover .work-card__link { color: var(--cat-text); }

/* Featured cards: two thirds wide, cover left (or right with --flip), text beside it */
.work-card--wide { grid-column: span 8; flex-direction: row; align-items: stretch; gap: 28px; }
.work-card--flip { flex-direction: row-reverse; }
/* the cover fills the row height (object-fit crops a little) instead of leaving air above and below */
.work-card--wide .work-cover { flex: 0 0 60%; margin-bottom: 0; aspect-ratio: auto; min-height: 240px; }
.work-card--wide .work-card__text { flex: 1; justify-content: center; }
.work-card--wide .work-card__title { font-size: 26px; margin-bottom: 10px; }
.work-card--wide .work-card__body { font-size: 15px; margin-bottom: 20px; }
.work-card--wide .work-card__link { margin-top: 0; }

/* Divider before the compact strip */
.work-grid__more {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 8px;
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: #8a837c;
}
.work-grid__more::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Compact cards: cover, tag and title only, three to a row */
.work-card--compact { grid-column: span 4; padding: 14px; }
.work-card--compact .work-cover { margin-bottom: 12px; border-radius: 8px; }
.work-card--compact .work-cover__play { width: 32px; height: 32px; left: 10px; bottom: 10px; }
.work-card--compact .work-cover__play svg { width: 16px; height: 16px; }
.work-card--compact .work-cover__len { right: 10px; bottom: 11px; font-size: 10px; padding: 3px 7px; }
.work-card--compact .work-card__tag { margin-bottom: 8px; }
.work-card--compact .work-card__title { font-size: 15px; margin-bottom: 8px; }
.work-card--compact .work-card__link { font-size: 12px; }

/* Home showcase: one piece per category, full width, cover and text side by side.
   The cover sits left on the first and third card and right on the second and fourth (--flip). */
.work-grid--rows { gap: 32px; }
.work-card.work-card--row { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 48px; }
.work-card.work-card--row.work-card--flip { flex-direction: row-reverse; }
.work-card--row .work-cover { flex: 0 0 56%; margin-bottom: 0; }
.work-card--row .work-card__text { flex: 1; justify-content: center; }
/* The title link is the card's one click target: stretched over the whole card, so the card stays
   clickable everywhere while "See more of this" (above the stretch) is its own link. */
.work-card--row { position: relative; }
.work-card__open { color: inherit; }
.work-card__open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.work-card__open:focus-visible { outline: none; }
.work-card--row:has(.work-card__open:focus-visible) { outline: 2px solid var(--cat); outline-offset: 3px; }
.work-card__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.work-card__more {
  position: relative; z-index: 2; font-size: 14px; font-weight: 600; color: var(--cat-text);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: color var(--dur-base) var(--ease-out), text-decoration-color var(--dur-base) var(--ease-out);
}
.work-card__more:hover { color: var(--cat-text); text-decoration-color: currentColor; }
.work-card--row .work-card__title { font-size: 28px; margin-bottom: 10px; }
.work-card--row .work-card__body { font-size: 15px; margin-bottom: 20px; max-width: 44ch; }
.work-card--row .work-card__link { margin-top: 0; font-size: 14px; }
.work-more { margin-top: 40px; text-align: center; }

/* Portfolio page (portfolio.html): every piece, grouped by category */
.portfolio { padding-top: 24px; }
.portfolio__title { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; }
.portfolio-group { margin-top: 64px; }
.portfolio-group__head { margin-bottom: 24px; padding-left: 16px; border-left: 3px solid var(--cat); }
.portfolio-group__title { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--studio-neutral-800); }
.portfolio-group__sub { font-size: 15px; color: #6b6560; margin: 0; line-height: 1.55; max-width: 60ch; }

/* =========================================================
   WORK LIGHTBOX
   ========================================================= */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(20, 14, 10, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .34s var(--ease-out);
}
.lightbox__panel {
  position: relative; width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(22px) scale(.955);
  transition: opacity .38s var(--ease-out), transform .46s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform;
}
/* in: backdrop fades, panel rises and settles; the bar arrives a beat later */
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox.is-open .lightbox__panel { opacity: 1; transform: none; }
.lightbox__bar { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease-out) .12s, transform .3s var(--ease-out) .12s; }
.lightbox.is-open .lightbox__bar { opacity: 1; transform: none; }
/* out: quicker, panel drops back and shrinks slightly while the backdrop clears */
.lightbox.is-closing .lightbox__backdrop { opacity: 0; transition-duration: .26s; }
.lightbox.is-closing .lightbox__panel { opacity: 0; transform: translateY(12px) scale(.975); transition-duration: .22s, .24s; }
.lightbox.is-closing .lightbox__bar { opacity: 0; transform: translateY(4px); transition-delay: 0s, 0s; transition-duration: .16s, .16s; }
@media (prefers-reduced-motion: reduce) {
  .lightbox__backdrop, .lightbox__panel, .lightbox__bar { transition: none !important; }
}
.lightbox__stage {
  position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: var(--shadow-xl); display: flex; align-items: center; justify-content: center;
  max-height: calc(100vh - 140px);
}
.lightbox__stage video, .lightbox__stage img {
  display: block; max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; margin: 0 auto;
}
.lightbox__stage video { width: 100%; }
.lightbox__close {
  position: absolute; top: -14px; right: -14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none;
  background: #fff; color: var(--studio-neutral-800); cursor: pointer; box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__close:hover { background: var(--studio-coral-500); color: #fff; transform: scale(1.06); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px 0; color: #fff; }
.lightbox__caption { margin: 0; font-size: 14px; color: rgba(255,255,255,0.78); }
.lightbox__link { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); }
.lightbox__link:hover { color: #fff; background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
.lightbox__link[hidden] { display: none; }
.lightbox__nav { display: inline-flex; align-items: center; gap: 8px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__count { font-size: 13px; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; min-width: 3.5ch; text-align: center; }
.lightbox__arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.08);
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.lightbox__arrow svg { width: 18px; height: 18px; }
.lightbox__arrow:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
body.lightbox-open { overflow: hidden; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.about-copy p { font-size: 17px; color: #59544e; margin: 0 0 16px; line-height: 1.7; }
.about-pull {
  font-size: 19px; font-weight: 600; color: var(--studio-neutral-800); line-height: 1.5;
  border-left: 3px solid var(--studio-coral-500); padding-left: 18px; margin: 8px 0 0;
}
.about-visual {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; justify-content: center; align-items: center;
  background: linear-gradient(150deg, #fff, #f3ede6);
  border: 1px solid #ece6df; border-radius: 20px; padding: 40px; min-height: 300px;
}
/* The card is a sheet of the hero's paper, with a pencil note in its corner */
.about-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("../assets/paper/paper.svg") 0 0 / 720px 720px; }
.about-visual .paper-deco { right: 18px; bottom: 14px; width: 128px; transform: rotate(-8deg); }

/* Paper patches elsewhere (Seb 2026-11-02): the hero's paper behind a block, fading out on every side,
   with a coffee ring or pencil sketch where there is room. Decorations hide on phones. */
.paper { position: relative; isolation: isolate; }
#contact.paper { overflow-x: clip; }
.paper::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0 -40px;
  background: url("../assets/paper/paper.svg") 0 0 / 720px 720px;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
          mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.paper-deco { position: absolute; z-index: -1; display: block; height: auto; pointer-events: none; user-select: none; }
.paper-deco--contact { width: 170px; left: 50%; top: 56px; transform: rotate(14deg); opacity: .85; }
.paper-deco--prices { width: 200px; right: 2%; top: -10px; transform: rotate(-22deg); }
.prices__head.paper::before { inset: -60px -80px -40px; }
@media (max-width: 760px) {
  .paper-deco--contact, .paper-deco--prices { display: none; }
  .paper::before, .prices__head.paper::before { inset: -30px 0; }
}

/* =========================================================
   SPC FAMILY (dark band)
   ========================================================= */
.family { max-width: var(--container-max); margin: 104px auto 0; padding: 0 var(--container-pad); }
.family__inner {
  background: #201d1a; border-radius: 20px; padding: 56px 48px; color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.family__copy { max-width: 620px; }
.family__title {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 14px; color: #fff; font-weight: 700;
}
.family__desc { font-size: 17px; color: rgba(255,255,255,0.72); margin: 0 0 26px; line-height: 1.6; }
.family__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.contact-card { background: #fff; border: 1px solid #ece6df; border-radius: 20px; padding: 32px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-form__single { margin-bottom: 16px; }
.contact-form__single--last { margin-bottom: 24px; }

.contact-thanks {
  display: none; background: #fff; border: 1px solid #ece6df; border-radius: 20px;
  padding: 48px 32px; text-align: center;
}
.contact-thanks__title {
  font-family: 'Space Grotesk', sans-serif; font-size: 34px; letter-spacing: -0.03em;
  margin: 18px 0 8px; font-weight: 700;
}
.contact-thanks__sub { font-size: 17px; color: #6b6560; margin: 0; }

.contact-aside { display: flex; flex-direction: column; gap: 18px; }
/* Send message, and next to it a way to the package builder (Seb 2026-11-05). */
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.contact-pack { font-size: 14px; font-weight: 600; color: var(--fg-muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; padding: 12px 0; }
.contact-pack:hover { color: var(--accent); text-decoration-color: currentColor; }
.contact-info { background: #fff; border: 1px solid #ece6df; border-radius: 20px; padding: 26px; }
.contact-info__label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  color: #8a8177; margin-bottom: 12px;
}
.contact-info__mail {
  font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--studio-coral-600); word-break: break-word;
}
.contact-info__note { font-size: 14px; color: #6b6560; margin: 10px 0 0; line-height: 1.55; }
.contact-info__note a { font-weight: 600; }
.contact-promo {
  background: linear-gradient(150deg, #ef4d23, #d63d16); border-radius: 20px;
  padding: 26px; color: #fff;
}
.contact-promo__label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,0.8); margin-bottom: 10px;
}
.contact-promo p { font-size: 15px; line-height: 1.55; margin: 0; color: rgba(255,255,255,0.95); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--studio-neutral-900); color: #fff; margin-top: 112px; }
/* Same frame and arrangement as the SPC site's footer: brand 5/12, two link
   columns 2/12 each, contact 3/12; a rule, then legal left and meta right.
   One column below 768px with the bottom row centred. */
.site-footer__inner { max-width: var(--container-max); margin: 0 auto; padding: 64px var(--container-pad) 32px; }
.site-footer__top {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__brand-col { grid-column: span 5; }
.site-footer__col { grid-column: span 2; }
.site-footer__col:last-child { grid-column: span 3; }
.site-footer__brand { display: inline-flex; align-items: flex-end; gap: 7px; margin-bottom: 20px; }
.site-footer__brand img { height: 48px; width: auto; filter: brightness(0) invert(1); }
.site-footer__brand span {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px;
  line-height: 1; color: var(--studio-coral-400); padding-bottom: 3px;
}
.site-footer__blurb { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 320px; margin: 0; }
.site-footer__col h3 {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); font-weight: 700; margin: 0 0 16px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { font-size: 14px; color: rgba(255,255,255,0.8); transition: color var(--dur-base) var(--ease-out); }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 32px;
}
.site-footer__legal { font-size: 14px; color: rgba(255,255,255,0.5); margin: 0; }
.site-footer__meta { display: flex; gap: 20px; align-items: center; }
.site-footer__meta a, .site-footer__meta span { font-size: 14px; color: rgba(255,255,255,0.5); }
.site-footer__meta a:hover { color: #fff; }
@media (max-width: 767px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__brand-col, .site-footer__col, .site-footer__col:last-child { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
  .site-footer__meta { flex-wrap: wrap; justify-content: center; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  /* tablet: regular = half, featured = full row, compact = half */
  .work-card { grid-column: span 6; }
  .work-card--wide, .work-card--tab-wide { grid-column: span 12; }
  .work-card--tab-wide { flex-direction: row; align-items: stretch; gap: 28px; }
  .work-card--tab-wide .work-cover { flex: 0 0 52%; margin-bottom: 0; }
  .work-card--tab-wide .work-card__text { justify-content: center; }
  .work-card--wide .work-cover { flex-basis: 52%; aspect-ratio: 16 / 10; }
  .work-card--compact { grid-column: span 4; }
  .work-card.work-card--row { gap: 28px; }
  .work-card--row .work-cover { flex-basis: 52%; }
  .work-card--row .work-card__title { font-size: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { min-height: 240px; order: -1; }
  .family__inner { grid-template-columns: 1fr; gap: 28px; }
  .family__glyph { justify-self: start; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 767px) {
  /* Collapse nav into a sheet below it, as on the SPC site: same breakpoint,
     links centred in one column, the button last. */
  .nav-toggle { display: inline-flex; }
  .site-nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: center; gap: 24px;
    padding: 32px var(--container-pad);
    background: #faf8f6;
    border-top: 1px solid #ece6df;
    border-bottom: 1px solid #ece6df;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
  }
  .site-nav__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav__menu .nav-link { font-size: 18px; }
  .site-nav__menu .spcs-btn { margin-left: 0; }
}

@media (max-width: 720px) {
  .section { padding: 72px 24px 0; }
  .family { padding: 0 24px; margin-top: 72px; }
  .family__inner { padding: 40px 28px; }
  .services-grid { grid-template-columns: 1fr; }
  /* phone: everything full width, compact cards two per row */
  .work-card, .work-card--wide, .work-card--tab-wide { grid-column: span 12; flex-direction: column; align-items: stretch; gap: 0; }
  .work-card--wide .work-cover, .work-card--tab-wide .work-cover { flex: none; margin-bottom: 16px; aspect-ratio: 16 / 10; min-height: 0; }
  .work-card--compact { grid-column: span 12; flex-direction: row; align-items: center; gap: 14px; }
  .work-card--compact .work-cover { flex: 0 0 44%; margin-bottom: 0; }
  .work-card--compact .work-card__text { flex: 1; }
  .work-grid { gap: 16px; }
  .work-card--wide .work-card__title { font-size: 19px; }
  .work-card--wide .work-card__body { font-size: 13px; }
  .work-card.work-card--row, .work-card.work-card--row.work-card--flip { flex-direction: column; align-items: stretch; gap: 0; }
  .work-card--row .work-cover { flex: none; margin-bottom: 16px; }
  .work-card--row .work-card__title { font-size: 19px; }
  .work-card--row .work-card__body { font-size: 13px; }
  .work-grid--rows { gap: 16px; }
  .portfolio-group { margin-top: 48px; }
  .lightbox { padding: 12px; }
  .lightbox__close { top: -10px; right: -6px; width: 40px; height: 40px; }
  .lightbox__bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lightbox__link { padding: 6px 12px; }
  .contact-form__row { grid-template-columns: 1fr; }
  /* Let the hero size to its content on mobile so the CTAs never collapse
     onto the pills (the desktop 82vh + auto-margin pins them to the bottom). */
  .hero { min-height: auto; }
  .contact-topline .section-glyph, .work-topline .section-glyph, .services-topline .section-glyph { display: none; }
}

@media (max-width: 560px) {
  /* One content-sized pill per row, centered; CTAs full-width for easy tapping. */
  .hero__b1 { display: inline; } /* phones: back to the 3-line stack */
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 32px; }
  .hero__ctas .spcs-btn { width: 100%; }
  .hero__ctas .hero__link { align-self: center; }
}

@media (max-width: 420px) {
  .hero__title { font-size: clamp(36px, 11vw, 46px); }
}

/* =========================================================
   PACKAGES PAGE
   ========================================================= */
.pkg-hero { padding-top: 24px; padding-bottom: 0; }
/* With the builder up, the big title steps aside for screen readers only and Back to home sits in the row above the builder */
.cfg-on .pkg-hero { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cfg-top .back-link { margin: 0 auto 0 0; }
.pkg-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -0.035em; line-height: 1.02;
  margin: 4px 0 0; font-weight: 700; max-width: 15ch;
}
.pkg-hero__sub { font-size: 19px; color: var(--fg-muted); line-height: 1.55; max-width: 58ch; margin: 0; }

.back-link {
  display: inline-block; font-size: 14px; font-weight: 600;
  color: var(--fg-muted); margin-bottom: 12px;
  transition: color var(--dur-base) var(--ease-out);
}
.back-link:hover { color: var(--studio-coral-600); }

.pkg-section { padding-top: 48px; }

.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.pkg-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.pkg-card:hover { box-shadow: var(--shadow-md); }
.pkg-card--featured { border-color: var(--studio-coral-500); box-shadow: var(--shadow-lg); position: relative; }
.pkg-card--featured:hover { box-shadow: var(--shadow-xl); }
/* Full price list (prices.html): the package chosen in the builder, and a mark on each option in the selection */
.prices { padding-top: 24px; }
.prices__title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.prices__title { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.prices__build { font-size: 15px; font-weight: 600; color: var(--studio-coral-600); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--dur-base) var(--ease-out); }
.prices__build:hover { text-decoration-color: currentColor; }
.prices .cfg-details__intro { margin: 10px 0 32px; }
.prices .pkg-custom { margin-top: 72px; }
.pkg-card { position: relative; }
.pkg-card.is-on { border-color: var(--studio-coral-500); background: var(--accent-soft); box-shadow: var(--shadow-lg); }
.pkg-card__yours { position: absolute; top: -11px; left: 28px; }
.cfg-static__row.is-in dt { color: var(--fg); }
.cfg-static__row dt .cfg-static__in { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; border-radius: 50%; color: var(--surface); background: var(--studio-coral-600); }
.cfg-static__row dt .cfg-static__in--added { background: var(--studio-violet-600); }
.cfg-static__in svg { display: block; width: 13px; height: 13px; }

.pkg-card__badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--studio-coral-500); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--radius-pill); box-shadow: var(--shadow-cta);
}
.pkg-card__name {
  font-family: 'Space Grotesk', sans-serif; font-size: 25px; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 6px; color: var(--fg);
}
.pkg-card__tagline { font-size: 14px; color: var(--fg-muted); line-height: 1.5; margin: 0 0 22px; min-height: 42px; }

.pkg-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.pkg-price__from { font-size: 12px; font-weight: 700; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.1em; }
.pkg-price__amount { font-family: 'Space Grotesk', sans-serif; font-size: 42px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); line-height: 1; }
.pkg-price__vat { font-size: 13px; color: var(--fg-muted); margin: 0 0 24px; }

.pkg-features { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pkg-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg); line-height: 1.45; }
.pkg-features li.is-muted { color: var(--fg-muted); }
.pkg-features svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--studio-coral-500); margin-top: 1px; }
.pkg-card__was { margin: 0; font-size: 15px; color: var(--fg-muted); }
.pkg-card__save { margin: 4px 0 18px; font-size: 13px; font-weight: 600; color: var(--success); }
.pkg-card__lead { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--fg); }

.pkg-card__cta { margin-top: auto; }
.pkg-card__cta .spcs-btn { width: 100%; }

.pkg-note { font-size: 13px; color: var(--fg-muted); margin: 26px 0 0; line-height: 1.6; }

.pkg-custom {
  margin-top: 24px; background: var(--studio-neutral-900); color: #fff;
  border-radius: var(--radius-xl); padding: 44px;
  display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center;
}
.pkg-custom__title {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; color: #fff; font-weight: 700;
}
.pkg-custom__desc { font-size: 16px; color: rgba(255,255,255,0.72); line-height: 1.6; margin: 0; max-width: 62ch; }
.pkg-custom__actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.pkg-custom__actions .spcs-btn { white-space: nowrap; }
.pkg-custom__mail { font-size: 13px; color: var(--studio-coral-300); text-align: center; }
.pkg-custom__mail:hover { color: var(--studio-coral-200); }

/* Scroll reveal - only active when JS is present, so no-JS still shows content */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .pkg-grid { grid-template-columns: 1fr; max-width: 460px; }
  .pkg-card--featured { order: -1; }
  .pkg-custom { grid-template-columns: 1fr; gap: 24px; padding: 36px 28px; }
}

@media (max-width: 720px) {
  .pkg-hero { padding-top: 28px; }
}

/* =========================================================
   PACKAGE CONFIGURATOR (services.html, js/configurator.js)
   Tokens only. Desktop: summary sticky in the right column.
   Under 1000px: the summary is a bottom bar that opens into a sheet.
   ========================================================= */
.cfg { padding-top: 40px; }
.cfg-app { display: none; }
.cfg-app.is-on { display: block; }
.cfg-static[hidden] { display: none; }
.cfg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.cfg-main { min-width: 0; }

.cfg-error { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--danger); border-radius: var(--radius-md); color: var(--danger); font-size: 14px; }

/* Fieldsets reset to plain blocks; the legend carries the group title. */
.cfg fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cfg fieldset.cfg-group { margin-top: 44px; }
.cfg-group__title { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; padding: 0; margin: 0 0 4px; color: var(--fg); }
.cfg-group__desc { font-size: 14px; color: var(--fg-muted); margin: 0 0 14px; line-height: 1.5; }
.cfg-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; } /* a list: one option per row (Seb 2026-10-28) */

/* Package picker (step 1) and the inline confirm when a change would end the saving */
.cfg-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cfg-pack {
  position: relative; display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  padding: 20px 20px 18px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-xl);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.cfg-pack:hover { box-shadow: var(--shadow-md); }
.cfg-pack.is-on { border-color: var(--studio-coral-500); background: var(--accent-soft); box-shadow: var(--shadow-md); }
.cfg-pack__radio { position: absolute; top: 18px; right: 18px; }
.cfg-pack__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--studio-coral-600); margin-bottom: 8px; }
.cfg-pack__icon svg { width: 26px; height: 26px; }
.cfg-pack__badge { position: absolute; top: -11px; left: 20px; }
/* Best value is violet so it never reads as the selected card, which is coral (Seb 2026-10-28) */
.cfg-pack--best { border-color: var(--secondary); }
.cfg-pack__badge.spcs-badge--solid { background: var(--secondary); color: var(--fg-on-brand); }
.cfg-pack--best.is-on { border-color: var(--studio-coral-500); }
.cfg-pack.is-on .cfg-pack__icon { background: var(--surface); }
.cfg-pack__name { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--fg); padding-right: 32px; white-space: nowrap; }
.cfg-pack__lead { font-size: 13px; font-weight: 600; color: var(--fg); margin-top: 12px; }
.cfg-pack__gets { list-style: none; margin: 6px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cfg-pack__gets li { position: relative; padding-left: 18px; font-size: 14px; color: var(--fg-muted); line-height: 1.45; }
.cfg-pack__gets li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; background: var(--studio-coral-500); }
.cfg-pack__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--fg); margin-top: 6px; }
.cfg-pack__now { white-space: nowrap; }
.cfg-pack__now .cfg-price__pre { margin-right: 4px; font-family: var(--font-body, inherit); letter-spacing: 0; }
.cfg-pack__save { font-size: 13px; color: var(--success); font-weight: 600; min-height: 2.9em; line-height: 1.45; }
.cfg-pack__meta { font-size: 13px; color: var(--fg-muted); padding-top: 10px; border-top: 1px solid var(--border); }
.cfg-group--packs { margin-bottom: 8px; }
.cfg-confirm {
  margin-top: 10px; padding: 14px 16px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.5;
  border: 1px solid var(--studio-violet-200); background: var(--secondary-soft); color: var(--fg);
}
.cfg-confirm[hidden] { display: none; }
.cfg-confirm p { margin: 0 0 10px; }
.cfg-confirm p.cfg-confirm__q { margin-bottom: 2px; font-weight: 700; }
.cfg-confirm__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cfg-lines .cfg-saving { color: var(--success); }
/* Discounts: the list price struck through, the price, and the saving in green */
.cfg-was { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0 6px; }
.cfg-was__list, .cfg-pack__list { color: var(--fg-muted); font-weight: 400; text-decoration: line-through; }
.cfg-was__save { flex-basis: 100%; text-align: right; font-size: 12px; font-weight: 600; color: var(--success); }
.cfg-pack__list { font-family: var(--font-body, inherit); font-size: 15px; letter-spacing: 0; min-height: 1.4em; margin-top: 6px; }
.cfg-pack__save { min-height: 1.45em; }

/* Meet us and build it together: next to the packages, not one of them */
.cfg-meet { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 16px; padding: 18px 22px; border: 1px solid var(--studio-violet-200); border-radius: var(--radius-xl); background: var(--secondary-soft); }
.cfg-meet__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; color: var(--fg); }
.cfg-meet__text { font-size: 14px; line-height: 1.5; color: var(--fg-muted); margin: 0; max-width: 62ch; }
.cfg-meet__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; flex-shrink: 0; }
.cfg-meet__mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.cfg-meet__mail:hover { color: var(--studio-coral-600); }
.pkg-hero[hidden] { display: none; }
.cfg-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--fg); cursor: pointer; min-height: 44px; }
.cfg-check input { margin-top: 1px; }

/* Show prices: one-off or monthly */
.cfg-view { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 14px; }
.cfg-view__label { font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.cfg-view__seg { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg-sunken); }
.cfg-view__btn { min-height: 34px; padding: 4px 16px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--fg-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cfg-view__btn[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.08)); }
.cfg-view__note { font-size: 12px; color: var(--fg-muted); margin: 0; line-height: 1.45; }
.cfg-view__note:empty { display: none; }
.cfg input[type="radio"], .cfg input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--studio-coral-600); flex-shrink: 0; cursor: pointer; }

/* Item rows: one structure for every option. Name and Details (next to the title, Seb 2026-10-28, 16:27) | price on top, the description folds out under it,
   and the control (box or stepper) sits bottom right (Seb 2026-10-28, 16:18). A closed card is one compact line, the control at its right end (16:40). */
.cfg-item {
  display: grid; grid-template-columns: minmax(0, max-content) auto minmax(0, 1fr) auto auto; grid-template-rows: auto auto 1fr; grid-template-areas: "name more . price price" "desc desc desc desc desc" ". . . ctl ctl";
  column-gap: 12px; align-items: center;
  padding: 10px 12px 10px 16px; min-height: 56px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  cursor: pointer; transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.cfg-item:hover { border-color: var(--border-strong); }
.cfg-item.is-on { border-color: var(--studio-coral-500); background: var(--accent-soft); }
.cfg-item.is-off { opacity: 0.6; cursor: not-allowed; }
.cfg-item.is-off input { cursor: not-allowed; }
.cfg-item--step { cursor: default; }
.cfg-item__text { grid-area: name; min-width: 0; }
.cfg-item__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--fg); line-height: 1.3; }
.cfg-item__price { grid-area: price; margin-left: 20px; font-family: var(--font-display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--fg); text-align: right; white-space: nowrap; }
.cfg-item__ctl { grid-area: ctl; align-self: end; justify-self: end; display: flex; align-items: center; margin-top: 10px; }
.cfg-item:not(.is-open) { grid-template-rows: auto; grid-template-areas: "name more . price ctl"; }
.cfg-item:not(.is-open) .cfg-item__ctl { align-self: center; margin-top: 0; margin-left: 8px; }
/* "No website", "Decide later": no price, no details, so the control stays on the one line */
.cfg-item--none, .cfg-item--none:not(.is-open) { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; grid-template-areas: "name ctl"; }
.cfg-item--none .cfg-item__ctl { align-self: center; margin-top: 0; margin-left: 0; }
.cfg-item--none .cfg-item__price, .cfg-item--none .cfg-item__more { display: none; }
.cfg-item__more {
  grid-area: more; justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 4px;
  border: 0; background: transparent; color: var(--fg-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.cfg-item__more::after { content: ''; width: 7px; height: 7px; margin: 0 2px 3px 4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform var(--dur-base) var(--ease-out); }
.cfg-item__more:hover { color: var(--studio-coral-600); }
.cfg-item__more[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: -2px; }
.cfg-item__more--none::after { content: none; }
/* A hairline between the row and its description (Seb 2026-10-28, 16:15: a subtle clean divide), the text kept to a readable measure */
.cfg-item__desc { grid-area: desc; display: block; font-family: var(--font-body); font-size: 14px; color: var(--fg-muted); line-height: 1.55; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.cfg-item__desc > span { display: block; max-width: 68ch; }
.cfg-item__point { position: relative; display: block; padding-left: 16px; }
.cfg-item__point + .cfg-item__point { margin-top: 4px; }
.cfg-item__point::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--studio-coral-500); }
.cfg-item__desc[hidden] { display: none; }

/* Controls: the stepper and the Add / Select pill share one size, outline and weight (Seb 2026-10-28) */
.cfg { --cfg-ctl-w: 7.5rem; --cfg-ctl-h: 38px; }
.cfg-stepper { display: inline-flex; align-items: center; justify-content: space-between; width: var(--cfg-ctl-w); height: var(--cfg-ctl-h); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); }
.cfg-item.is-on .cfg-stepper { border-color: var(--studio-coral-500); }
.cfg-pick { position: relative; display: inline-flex; width: var(--cfg-ctl-w); height: var(--cfg-ctl-h); }
.cfg .cfg-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cfg-pick__face {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--fg); transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.cfg-pick__face::before { content: '+'; font-size: 17px; font-weight: 500; line-height: 1; }
.cfg-pick--one .cfg-pick__face::before { content: ''; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; box-sizing: border-box; }
.cfg-pick__face::after { content: attr(data-off); }
.cfg-pick input:hover + .cfg-pick__face { background: var(--bg-sunken); }
.cfg-pick input:checked + .cfg-pick__face { border-color: var(--studio-coral-500); background: var(--surface); color: var(--studio-coral-600); }
.cfg-pick input:checked + .cfg-pick__face::after { content: attr(data-on); }
.cfg-pick input:checked + .cfg-pick__face::before { content: ''; width: 10px; height: 5px; border: solid currentColor; border-width: 0 0 2px 2px; border-radius: 0; transform: translateY(-2px) rotate(-45deg); }
.cfg-pick--one input:checked + .cfg-pick__face::before { width: 12px; height: 12px; border: 4px solid currentColor; border-radius: 50%; transform: none; }
.cfg-pick input:focus-visible + .cfg-pick__face { outline: 2px solid var(--studio-coral-600); outline-offset: 2px; }
.cfg-pick input:disabled { cursor: not-allowed; }
.cfg-pick input:disabled + .cfg-pick__face { color: var(--fg-subtle); }
.cfg-stepper__btn {
  width: 36px; height: 100%; border: 0; background: transparent; color: var(--fg); font-size: 20px; line-height: 1; cursor: pointer;
  border-radius: var(--radius-pill); transition: background var(--dur-base) var(--ease-out);
}
.cfg-stepper__btn:hover:not(:disabled) { background: var(--bg-sunken); }
.cfg-stepper__btn:disabled { color: var(--fg-subtle); cursor: not-allowed; }
.cfg-stepper__input {
  width: 3ch; min-width: 40px; border: 0; background: transparent; text-align: center; font: inherit; font-size: 16px; font-weight: 600; color: var(--fg);
  padding: 0; -moz-appearance: textfield; appearance: textfield;
}
.cfg-stepper__input::-webkit-outer-spin-button, .cfg-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Summary */
.cfg-summary {
  position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
}
.cfg-summary__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; }
.cfg-summary__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.cfg-live { font-size: 15px; font-weight: 600; color: var(--fg); }
/* "Package price activated": a short note at the bottom of the screen */
.cfg-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); display: flex; flex-direction: column; gap: 2px; max-width: min(440px, calc(100vw - 32px)); padding: 12px 18px 12px 46px; border-radius: var(--radius-md); background: var(--studio-neutral-900, #1c1c1c); color: #fff; box-shadow: var(--shadow-md); font-size: 14px; line-height: 1.4; animation: cfg-toast-in .3s var(--ease, ease) both; }
.cfg-toast::before { content: "✓"; position: absolute; left: 16px; top: 12px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--success); color: #fff; font-size: 12px; font-weight: 700; }
.cfg-toast[hidden] { display: none; }
.cfg-toast strong { font-size: 15px; }
.cfg-toast.is-out { opacity: 0; transform: translate(-50%, 8px); transition: opacity .3s, transform .3s; }
@keyframes cfg-toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (prefers-reduced-motion: reduce) { .cfg-toast { animation: none; } .cfg-toast.is-out { transition: none; } }
@media (max-width: 1000px) { .cfg-toast { bottom: 112px; width: calc(100vw - 32px); } } /* above the summary bar */
.cfg-summary__toggle { display: none; flex-shrink: 0; min-height: 44px; }
.cfg-summary__body { padding: 0 22px 22px; }
.cfg-sum-h { font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--fg-muted); margin: 16px 0 6px; }
.cfg-lines { list-style: none; margin: 0; padding: 0; }
.cfg-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.4; }
.cfg-lines li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.cfg-lines li > span:last-child { white-space: nowrap; font-weight: 600; }
.cfg-lines small { display: block; font-size: 12px; color: var(--fg-muted); font-weight: 400; }
.cfg-empty { font-size: 14px; color: var(--fg-muted); margin: 8px 0 0; }
/* The package in the side panel: its name and price, then what it holds as a plain list */
.cfg-sum-pkg { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 4px; }
.cfg-sum-pkg__name { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 0; }
.cfg-sum-pkg__price { font-weight: 600; font-size: 14px; white-space: nowrap; }
.cfg-sum-pkg__list { list-style: none; margin: 0; padding: 0 0 8px; border-bottom: 1px solid var(--border); }
.cfg-sum-pkg__list li { position: relative; padding: 2px 0 2px 16px; font-size: 14px; line-height: 1.4; }
.cfg-sum-pkg__list li::before { content: ''; position: absolute; left: 2px; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--studio-coral-500); }
.cfg-sum-pkg__list small { font-size: 12px; color: var(--fg-muted); }
/* The saving, under the list and above the total */
p.cfg-saving { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--success); }

.cfg .cfg-where { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.cfg-where legend { grid-column: 1 / -1; }
.cfg-where legend { padding: 0; }
.cfg-where .spcs-field__input { font-size: 16px; } /* 16px or iOS Safari zooms in on focus */
.cfg-where__company { grid-column: 1 / -1; }

.cfg-totals[hidden] { display: none; }
.cfg-totals { margin: 16px 0 0; padding: 12px 0 0; border-top: 2px solid var(--border-strong); }
.cfg-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.cfg-totals dt { color: var(--fg); font-weight: 600; }
.cfg-totals dd { margin: 0; text-align: right; }
.cfg-totals dd strong { display: block; font-size: 16px; }
.cfg-totals dd span { display: block; font-size: 12px; color: var(--fg-muted); }
.cfg-totals .is-total dd strong { font-family: var(--font-display); font-size: 18px; color: var(--studio-coral-600); }
.cfg-totals__note { font-size: 12px; color: var(--fg-muted); margin: 2px 0 6px; line-height: 1.45; }

/* Sections: the menu on the left (Packages, Branding, Campaigns, Content, Digital, then Review and send), one panel at a time,
   Back and Next under it. Each section keeps the colour of its card in the home page hero. */
.cfg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cfg-menu { position: relative; align-self: start; }
.cfg-menu__list { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
.cfg-menu__item { --cat: var(--studio-coral-600); }
.cfg-menu__item--packages { --cat: var(--fg); }
.cfg-menu__item--campaigns { --cat: var(--studio-violet-600); }
.cfg-menu__item--content { --cat: var(--success); }
.cfg-menu__item--digital { --cat: var(--studio-blue-600); }
.cfg-menu__item--review { --cat: var(--studio-coral-600); }
/* A line between every section of the menu (Seb 2026-11-05). */
.cfg-menu__item + .cfg-menu__item { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.cfg-menu__btn {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px 6px 7px; cursor: pointer;
  border: 0; border-radius: var(--radius-md); background: transparent; color: var(--fg-muted); font: inherit; font-size: 14px; font-weight: 600; text-align: left;
}
.cfg-menu__btn:hover { background: var(--bg-sunken); color: var(--fg); }
.cfg-menu__btn[aria-current] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
.cfg-menu__icon { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--cat); background: color-mix(in srgb, var(--cat) 10%, transparent); }
.cfg-menu__btn[aria-current] .cfg-menu__icon { color: var(--surface); background: var(--cat); }
/* Only a sub-section of this category is on screen: no white card, a dashed outline and "Show all". */
.cfg-menu__all { display: none; flex: none; font-size: 12px; font-weight: 600; color: var(--cat); }
.cfg-menu__item.is-partial > .cfg-menu__btn[aria-current] { background: transparent; box-shadow: none; outline: 1.5px dashed color-mix(in srgb, var(--cat) 55%, transparent); outline-offset: -1.5px; }
.cfg-menu__item.is-partial > .cfg-menu__btn[aria-current] .cfg-menu__icon { color: var(--cat); background: color-mix(in srgb, var(--cat) 14%, transparent); }
.cfg-menu__item.is-partial > .cfg-menu__btn:hover { background: var(--bg-sunken); }
.cfg-menu__icon svg { width: 17px; height: 17px; }
.cfg-menu__label { flex: 1 1 auto; min-width: 0; }
.cfg-menu__count { flex: none; font-size: 12px; color: var(--cat); }
.cfg-menu__count:not(:empty) { padding: 1px 8px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--cat) 10%, transparent); }
.cfg-menu__sub { display: none; list-style: none; margin: 2px 0 6px 21px; padding: 0 0 0 14px; border-left: 1px solid var(--border); }
.cfg-menu__item.is-open > .cfg-menu__sub { display: block; }
.cfg-menu__step { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 5px 8px; cursor: pointer; border: 0; border-radius: 6px; background: none; color: var(--fg-muted); font: inherit; font-size: 13px; text-align: left; }
.cfg-menu__step:hover { color: var(--fg); background: var(--bg-sunken); }
.cfg-menu__step[aria-current="step"], .cfg-menu__step[aria-current="location"] { color: var(--fg); font-weight: 600; }
#cfg-app .cfg-off { display: none !important; }
.cfg-menu__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(.4); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.cfg-menu__step.has-pick .cfg-menu__dot { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .cfg-menu__dot { transition: none; } }
/* Extra revision and priority: under the options of whichever section is open */
.cfg-extras { margin-top: 24px; }
.cfg-panel[hidden] { display: none; }
.cfg-panel__count { font-size: 13px; font-weight: 600; color: var(--studio-coral-600); margin: 0 0 4px; }
.cfg-panel__title { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 6px; outline: none; }
.cfg-panel__desc { font-size: 15px; color: var(--fg-muted); margin: 0 0 14px; line-height: 1.5; max-width: 70ch; }
.cfg-panel > .cfg-group:first-of-type { margin-top: 18px; }
.cfg-item[hidden] { display: none; }
.cfg-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.cfg-nav .spcs-btn[hidden] { display: none; }
.cfg-nav #cfg-next { margin-left: auto; }

/* Review: the recap with remove and add on the left, what they pay and the button on the right */
.cfg-app.is-review .cfg-layout { grid-template-columns: minmax(0, 1fr); }
.cfg-app.is-review .cfg-summary { display: none; }
.cfg-app.is-review .cfg-main { padding-bottom: 0; }
.cfg-app.is-review .cfg-nav { position: static; }
.cfg-review { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; margin-top: 12px; }
.cfg-review__main > .cfg-sum-h:first-child, .cfg-recap > .cfg-sum-h:first-child { margin-top: 0; }
.cfg-recap__list { list-style: none; margin: 0; padding: 0; }
.cfg-recap__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
/* The option's name opens its step to change it */
.cfg-recap__edit { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.cfg-recap__edit:hover { color: var(--accent); text-decoration-color: currentColor; }
.cfg-recap__edit:focus-visible { outline: 2px solid var(--studio-coral-500); outline-offset: 2px; border-radius: 2px; }
.cfg-recap__name small { display: block; font-size: 12px; color: var(--fg-muted); }
.cfg-recap__price { font-weight: 600; text-align: right; white-space: nowrap; }
.cfg-recap__row.cfg-saving { color: var(--success); }
.cfg-recap__del { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--fg-muted); font-size: 16px; line-height: 1; cursor: pointer; }
.cfg-recap__del:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }
.cfg-recap__del:disabled { opacity: 0.35; cursor: not-allowed; }
.cfg-add { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.cfg-add__label { font-size: 14px; font-weight: 600; color: var(--studio-coral-600); white-space: nowrap; }
.cfg-add__select.spcs-field__input { flex: 1; min-width: 0; font-size: 14px; }
.cfg-review .cfg-where { margin-top: 24px; }
.cfg-review__side { position: sticky; top: 96px; }

.cfg-pay { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.cfg-pay__switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cfg-pay__rows { margin: 0; }
/* Every amount in one right-hand column */
.cfg-pay__rows > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 4px 0; font-size: 14px; }
.cfg-pay__rows dt { color: var(--fg-muted); min-width: 0; }
.cfg-pay__rows dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.cfg-pay__rows .cfg-pay__head { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.cfg-pay__rows .cfg-pay__head:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cfg-pay__rows .cfg-pay__head dt { font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--fg-muted); }
.cfg-pay__rows .is-total dt { color: var(--fg); font-weight: 600; }
.cfg-pay__rows .is-total dd { font-family: var(--font-display); font-size: 22px; color: var(--studio-coral-600); }
.cfg-pay__rows .is-fine { font-size: 13px; }
.cfg-pay__rows .cfg-was { justify-content: flex-end; }
.cfg-pay__fine { font-size: 12px; color: var(--fg-muted); margin: 8px 0 0; line-height: 1.45; }
.cfg-get { width: 100%; margin-top: 14px; min-height: 48px; }
.cfg-get[hidden], .cfg-get__note[hidden] { display: none; }
.cfg-get__note { font-size: 12px; color: var(--fg-muted); margin: 8px 0 0; text-align: center; line-height: 1.45; }
.cfg-vat-line, .cfg-delivery, .cfg-estimate { font-size: 12px; color: var(--fg-muted); margin: 10px 0 0; line-height: 1.5; }
.cfg-vat-line:empty, .cfg-delivery:empty { display: none; }
/* The small print under the side panel's totals */
.cfg-sum-notes { font-size: 12px; color: var(--fg-muted); margin: 10px 0 0; line-height: 1.45; }
.cfg-sum-notes:empty { display: none; }
.cfg-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--fg-muted); }
.cfg-copy input { flex: 1 1 100%; font-size: 16px; }

.cfg-form { margin-top: 16px; display: grid; gap: 12px; }
.cfg-form h3 { font-family: var(--font-display); font-size: 18px; margin: 0; letter-spacing: -0.02em; }
.cfg-form .spcs-field__input { font-size: 16px; }
.cfg-form textarea.spcs-field__input { min-height: 96px; resize: vertical; }
.cfg-trap { position: absolute; left: -9999px; }
.cfg-consent { font-size: 12px; color: var(--fg-muted); margin: 0; line-height: 1.5; }
.cfg-consent a { color: var(--studio-coral-600); text-decoration: underline; }
.cfg-form .spcs-btn { width: 100%; min-height: 44px; }
.cfg-thanks { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.cfg-thanks[hidden], .cfg-form[hidden] { display: none; }

/* No-JS price list */
.cfg-static__cat { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 48px 0 0; padding-top: 20px; border-top: 2px solid var(--border-strong); }
.cfg-static__cat + .cfg-static__group { margin-top: 16px; }
.cfg-static__group { margin-top: 36px; }
.cfg-static__group h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; margin: 0 0 8px; }
.cfg-static dl { margin: 0; }
.cfg-static__row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cfg-static__row dt { min-width: 0; font-weight: 600; }
.cfg-static__row dt span { display: block; font-weight: 400; font-size: 14px; color: var(--fg-muted); }
.cfg-static__row dd { margin: 0; font-weight: 600; text-align: right; }
.pkg-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Package cues: an item already in the chosen package, and the "per page" under a price */
.cfg-item__tag { display: inline-block; margin-left: 4px; vertical-align: 1px; padding: 1px 8px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); font-size: 11px; font-weight: 700; letter-spacing: 0.01em; vertical-align: 2px; white-space: nowrap; }
.cfg-item__tag[hidden] { display: none; }
.cfg-item__price { display: flex; flex-direction: column; align-items: flex-end; }
.cfg-price__main { display: inline-flex; align-items: baseline; gap: 6px; }
.cfg-price__pre { font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--fg-muted); }
.cfg-price__sub { font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--fg-muted); line-height: 1.5; }
.cfg-price__sub.is-save { color: var(--success); font-weight: 600; }
.cfg-item__unit { font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--fg-muted); line-height: 1.3; }
.cfg-item__price .cfg-was__save { font-size: 12px; }

/* Toggle and steps on one row */
.cfg-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 24px; }
.cfg-top .cfg-view { margin: 0; }
/* The review step has the same switch in its total card: one is enough there */
.cfg-app.is-review .cfg-top .cfg-view { visibility: hidden; }
@media (max-width: 1000px) { .cfg-app.is-review .cfg-top .cfg-view { display: none; } } /* there it sits on a row of its own */

/* ---------- Questions before the builder (js/configurator.js, "questions first") ---------- */
.cfg-app.is-intro .cfg-layout, .cfg-app.is-intro .cfg-top .cfg-view { display: none; }
.cfg-intro[hidden] { display: none; }
.cfg-q { max-width: 880px; margin: 8px auto 0; }
.cfg-q__count { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.cfg-q__bar { height: 4px; border-radius: var(--radius-pill); background: var(--bg-sunken); overflow: hidden; margin: 0 0 22px; }
.cfg-q__bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .4s var(--ease-out); }
.cfg-q__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; margin: 0 0 22px; outline: none; }
.cfg-q__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cfg-q__cards--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.cfg-q__card {
  --cat: var(--studio-coral-600);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 120px; padding: 20px; text-align: left; cursor: pointer;
  font: inherit; color: var(--fg); background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-xl);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.cfg-q__card--campaigns { --cat: var(--studio-violet-600); }
.cfg-q__card--content { --cat: var(--success); }
.cfg-q__card--digital { --cat: var(--studio-blue-600); }
.cfg-q__card:hover { box-shadow: var(--shadow-md); }
.cfg-q__card.is-on { border-color: var(--cat); background: color-mix(in srgb, var(--cat) 6%, var(--surface)); box-shadow: var(--shadow-md); }
.cfg-q__card.is-on .cfg-menu__icon { color: var(--surface); background: var(--cat); }
.cfg-q__card .cfg-menu__icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 6px; }
.cfg-q__card .cfg-menu__icon svg { width: 21px; height: 21px; }
.cfg-q__label { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.cfg-q__desc { font-size: 14px; color: var(--fg-muted); line-height: 1.45; }
.cfg-q__sets { display: grid; gap: 22px; margin: 28px 0 0; }
.cfg-q__sets:not(:has(.cfg-q__picks:not([hidden]))) { display: none; }
.cfg-q__picks { --cat: var(--studio-coral-600); display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cfg-q__picks--campaigns { --cat: var(--studio-violet-600); }
.cfg-q__picks--content { --cat: var(--success); }
.cfg-q__picks--digital { --cat: var(--studio-blue-600); }
.cfg-q__picks[hidden] { display: none; }
.cfg-q__picks legend { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--fg); }
.cfg-q__picks legend .cfg-menu__icon { width: 28px; height: 28px; border-radius: 8px; color: var(--surface); background: var(--cat); }
.cfg-q__picks legend .cfg-menu__icon svg { width: 16px; height: 16px; }
.cfg-q__pick { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border: 1.5px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); cursor: pointer; font-size: 15px; font-weight: 500; transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out); }
.cfg-q__pick:hover { border-color: color-mix(in srgb, var(--cat) 45%, var(--border)); }
.cfg-q__pick:has(input:checked) { border-color: var(--cat); background: color-mix(in srgb, var(--cat) 7%, var(--surface)); }
/* Drawn checkbox: light when empty in every browser, filled with the category colour when ticked. */
.cfg .cfg-q__pick input { appearance: none; -webkit-appearance: none; display: grid; place-items: center; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--border-strong, var(--border)); border-radius: 6px; background: var(--surface); flex-shrink: 0; cursor: pointer; transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.cfg .cfg-q__pick input::after { content: ""; width: 10px; height: 6px; border: solid var(--surface); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.cfg .cfg-q__pick input:checked { background: var(--cat); border-color: var(--cat); }
.cfg .cfg-q__pick input:checked::after { opacity: 1; }
/* What a choice contains: a card above the pill on hover or keyboard focus. */
.cfg-q__tip { position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 20; width: max-content; max-width: min(300px, calc(100vw - 32px)); padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg, var(--shadow-md)); font-size: 14px; font-weight: 400; color: var(--fg); line-height: 1.45; text-align: left; cursor: default; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base); }
.cfg-q__tip-title { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.cfg-q__tip ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 4px; }
.cfg-q__tip li::marker { color: var(--cat); }
.cfg-q__pick.is-flip .cfg-q__tip { left: auto; right: 0; }
.cfg-q__pick:has(input:focus-visible) .cfg-q__tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) { .cfg-q__pick:hover .cfg-q__tip { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; } }
.cfg-q__next { display: flex; justify-content: flex-end; }
.cfg-q__go { margin-top: 22px; }
.cfg-q__go:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.cfg-q__foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); }
.cfg-q__link { font: inherit; font-size: 14px; font-weight: 600; color: var(--fg-muted); background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; }
.cfg-q__link:hover { color: var(--accent); text-decoration-color: currentColor; }
.cfg-q__skip { margin-left: auto; }
.cfg-q__card:focus-visible, .cfg-q__link:focus-visible, .cfg-q__pick:has(input:focus-visible) { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
/* The recommendation */
.cfg-rec { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; padding: 24px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.cfg-rec__name { font-family: var(--font-display); font-size: 22px; margin: 0 0 12px; letter-spacing: -0.01em; }
.cfg-rec__items { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 15px; }
.cfg-rec__items li::marker { color: var(--accent); }
.cfg-rec__side { display: flex; flex-direction: column; gap: 10px; }
.cfg-rec__side .cfg-saving dt, .cfg-rec__side .cfg-saving dd { color: var(--success); }
.cfg-rec__note { margin: 0; font-size: 12px; color: var(--fg-muted); line-height: 1.5; }
.cfg-rec__btns { display: grid; gap: 10px; margin-top: auto; }
.cfg-rec__btns .spcs-btn { width: 100%; min-height: 48px; justify-content: center; }
.cfg-q__other { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 12px 0 0; }
@media (max-width: 720px) {
  .cfg-q__cards, .cfg-q__cards--4 { grid-template-columns: 1fr; gap: 10px; }
  .cfg-q__cards--4 { grid-template-columns: 1fr 1fr; }
  .cfg-q__card { min-height: 0; padding: 16px; }
  .cfg-rec { grid-template-columns: 1fr; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .cfg-q__bar span, .cfg-q__tip, .cfg-q__pick, .cfg .cfg-q__pick input { transition: none; } }
.cfg-nav__details { align-self: center; margin: 0 auto 0 0; font-size: 13px; font-weight: 600; color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; }
.cfg-nav__details:hover { color: var(--studio-coral-600); }
.cfg-nav__btns { display: flex; gap: 12px; margin-left: auto; }
/* Under the total ticket: Back small, Next filling the rest */
.cfg-summary > .cfg-nav__btns { margin: 0; padding: 0 18px 18px; }
.cfg-summary > .cfg-nav__btns .spcs-btn { min-height: 44px; padding: 10px 16px; font-size: 15px; white-space: normal; line-height: 1.25; }
.cfg-summary > .cfg-nav__btns #cfg-next { flex: 1 1 auto; }
.cfg-summary > .cfg-nav__btns .spcs-btn[hidden] { display: none; }
@media (max-width: 560px) { .cfg-nav__details { display: none; } }
}

/* Under the builder: every item with its full description (the no-JS price list, kept as the details) */
.cfg-static.is-details { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--border); }
.cfg-static.is-details > .pkg-note { display: none; }
.cfg-static:not(.is-details) > .cfg-details__intro { display: none; }
.cfg-details__intro { font-size: 15px; color: var(--fg-muted); line-height: 1.55; max-width: 70ch; margin: 0 0 24px; }
.cfg-details__title { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; scroll-margin-top: 100px; }

/* Laptop and up: each step fits one screen (checked at 1440x780, 1512x860 and 1728x1000).
   Items sit two to a row, the type is a step smaller and the spacing tighter. */
@media (min-width: 1001px) {
  .cfg { padding-top: 20px; }
  .cfg-app { max-width: 1320px; margin: 0 auto; }
  .cfg-top { margin-bottom: 16px; }
  /* Menu, options, total. The menu is an icon rail until 1200px. */
  .cfg-layout { grid-template-columns: 52px minmax(0, 1fr) 270px; gap: 24px; }
  .cfg-app.is-review .cfg-layout { grid-template-columns: 52px minmax(0, 1fr); }
  .cfg-menu { position: sticky; top: 96px; }
  .cfg-menu__btn { padding: 7px 11px; }
  .cfg-menu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cfg-menu__count:not(:empty) { position: absolute; top: 0; right: -4px; min-width: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; text-align: center; color: var(--surface); background: var(--cat); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cfg-menu__item--packages .cfg-menu__count:not(:empty) { width: 8px; min-width: 0; height: 8px; padding: 0; top: 4px; right: 4px; color: transparent; }
  .cfg-menu__item.is-open > .cfg-menu__sub { display: none; }
  .cfg-summary { top: 96px; max-height: calc(100vh - 112px); }
  .cfg-summary__head { padding: 16px 18px 10px; }
  .cfg-summary__body { padding: 0 18px 18px; }
  .cfg-panel__count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cfg-top .cfg-view__label { display: none; }
  /* Title and its one-line note share a line */
  .cfg-panel__title { display: inline; font-size: 22px; margin: 0 12px 0 0; }
  .cfg-panel__desc { display: inline; font-size: 14px; margin: 0; }
  .cfg-panel__desc.cfg-fit { display: block; margin-top: 4px; }
  .cfg fieldset.cfg-group { margin-top: 10px; }
  .cfg-panel > .cfg-group:first-of-type { margin-top: 10px; }
  .cfg-group__title { font-size: 17px; margin: 0 0 6px; }
  .cfg-group__desc { display: none; }
  .cfg-item { padding: 6px 10px 6px 14px; min-height: 48px; border-radius: var(--radius-md); }
  .cfg-item__name { font-size: 16px; }
  .cfg-item__price { font-size: 18px; }
  .cfg { --cfg-ctl-h: 32px; }
  .cfg-stepper__btn { width: 30px; font-size: 17px; }
  .cfg-pick__face { font-size: 13px; }
  .cfg-stepper__input { min-width: 28px; font-size: 14px; }
  .cfg-packs { gap: 12px; }
  /* Rows: icon and name, list price, price, saving, lead, what you get (takes the slack), VAT and delivery at the bottom. */
  .cfg-pack { padding: 14px 16px 12px; gap: 2px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: repeat(5, auto) 1fr auto; column-gap: 10px; }
  .cfg-pack > * { grid-column: 1 / -1; }
  .cfg-pack > .cfg-pack__icon { grid-column: 1; width: 34px; height: 34px; margin: 0; }
  .cfg-pack > .cfg-pack__name { grid-column: 2; align-self: center; font-size: 19px; }
  .cfg-pack > .cfg-pack__badge, .cfg-pack > .cfg-pack__radio { grid-column: auto; }
  .cfg-pack__icon svg { width: 20px; height: 20px; }
  .cfg-pack__radio { top: 14px; right: 14px; }
  .cfg-pack__price { font-size: 24px; margin-top: 6px; }
  .cfg-pack__gets li { font-size: 13px; }
  .cfg-pack__meta { font-size: 12px; }
  /* Four packages in a row next to the menu: no icon, a step smaller, so the whole step fits one screen */
  .cfg-packs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .cfg-pack { padding: 12px 12px 10px; }
  .cfg-pack > .cfg-pack__icon { display: none; }
  .cfg-pack > .cfg-pack__name { grid-column: 1 / -1; font-size: 17px; padding-right: 26px; }
  .cfg-pack__radio { top: 12px; right: 12px; }
  .cfg-pack__price { font-size: 22px; }
  .cfg-pack__list { font-size: 13px; }
  .cfg-pack__gets li { font-size: 12.5px; padding-left: 14px; }
  .cfg-pack__gets li::before { left: 0; }
  .cfg-confirm { padding: 10px 12px; }
  /* Back and Next stay in view on a short screen */
  .cfg-nav { position: sticky; bottom: 0; z-index: 2; margin-top: 12px; padding: 10px 0 12px; background: var(--studio-neutral-50); }
}

@media (min-width: 1200px) {
  .cfg-layout { grid-template-columns: 196px minmax(0, 1fr) 300px; }
  .cfg-app.is-review .cfg-layout { grid-template-columns: 196px minmax(0, 1fr); }
  .cfg-menu__btn { padding: 6px 10px 6px 7px; }
  .cfg-menu__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .cfg-menu__count:not(:empty), .cfg-menu__item--packages .cfg-menu__count:not(:empty) { position: static; width: auto; height: auto; min-width: 0; max-width: 90px; padding: 1px 8px; font-size: 12px; line-height: inherit; color: var(--cat); background: color-mix(in srgb, var(--cat) 10%, transparent); }
  /* Sub-sections are folded, except in the open section and in sections with something chosen (Seb 2026-11-05). */
  .cfg-menu__item.is-open > .cfg-menu__sub, .cfg-menu__item.has-picks > .cfg-menu__sub { display: block; }
  .cfg-menu__item.is-partial .cfg-menu__all { display: inline; }
  .cfg-menu__item.is-partial .cfg-menu__count { display: none; }
}

@media (max-width: 1000px) {
  .cfg-review { grid-template-columns: minmax(0, 1fr); }
  .cfg-review__side { position: static; }
  .cfg-page:has(.cfg-app.is-review) .site-footer { padding-bottom: 0; }
  .cfg-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cfg-main { padding-bottom: 88px; }
  /* The menu becomes a row of chips that scrolls sideways */
  .cfg-menu { overflow-x: auto; scrollbar-width: none; margin: -4px 0 0; padding: 4px 0; }
  .cfg-menu::-webkit-scrollbar { display: none; }
  .cfg-menu__list { flex-direction: row; gap: 8px; width: max-content; }
  .cfg-menu__item--review, .cfg-menu__item + .cfg-menu__item { margin: 0; padding: 0; border: 0; }
  .cfg-menu__btn { width: auto; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 5px 14px 5px 6px; background: var(--surface); white-space: nowrap; }
  .cfg-menu__btn[aria-current] { border-color: var(--cat); box-shadow: none; }
  .cfg-menu__icon { width: 30px; height: 30px; border-radius: 50%; }
  .cfg-menu__item.is-open > .cfg-menu__sub { display: none; }
  .cfg-summary {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 40; max-height: 88vh; display: flex; flex-direction: column;
    border-width: 1px 0 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-xl);
  }
  .cfg-summary__head { padding: 12px 16px; }
  .cfg-summary__toggle { display: inline-flex; }
  .cfg-summary__body { display: none; padding: 0 16px 20px; overflow-y: auto; }
  .cfg-summary.is-open .cfg-summary__body { display: block; }
  .cfg-page .site-footer { padding-bottom: 84px; }
}
/* Tablets: the four packages in one row as on a laptop */
@media (min-width: 721px) and (max-width: 1000px) {
  .cfg-packs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .cfg-pack { padding: 14px 12px 12px; }
  .cfg-pack__icon { display: none; }
  .cfg-pack__name { font-size: 18px; padding-right: 26px; }
  .cfg-pack__radio { top: 14px; right: 12px; }
  .cfg-pack__price { font-size: 22px; }
  .cfg-pack__list { font-size: 13px; }
  .cfg-pack__gets li { font-size: 13px; padding-left: 14px; }
  .cfg-pack__gets li::before { left: 0; }
}
@media (max-width: 900px) {
  .pkg-grid--two { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
}
@media (max-width: 560px) {
  .cfg-packs { grid-template-columns: 1fr; }
  .cfg-meet { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  /* Phones: name and Details on the first line, the description, then price and control at the bottom */
  .cfg-item { grid-template-columns: minmax(0, max-content) auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "name more ." "desc desc desc" "price price ctl"; row-gap: 4px; padding: 10px 10px 10px 14px; }
  .cfg-item__price { text-align: left; margin-left: 0; align-self: end; }
  .cfg-item__price.cfg-item__price { align-items: flex-start; }
  .cfg-item__ctl { justify-content: flex-end; }
  .cfg-item__more--none { display: none; }
  .cfg-item:not(.is-open) { grid-template-rows: auto auto; grid-template-areas: "name more ." "price price ctl"; }
  .cfg-item:not(.is-open) .cfg-item__ctl { margin-left: 0; }
  .cfg-item--none, .cfg-item--none:not(.is-open) { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; grid-template-areas: "name ctl"; }
  .cfg-item--none .cfg-item__price { display: none; }
  .cfg-panel__title { font-size: 26px; }
  .cfg-nav__btns { flex: 1 1 auto; margin-left: 0; }
  .cfg-nav .spcs-btn { flex: 1 1 0; min-width: 0; white-space: normal; padding-left: 14px; padding-right: 14px; }
  .cfg-static__row { flex-direction: column; gap: 2px; }
  .cfg-static__row dd { text-align: left; }
}
@media (any-pointer: coarse) {
  .cfg { --cfg-ctl-h: 44px; --cfg-ctl-w: 8.5rem; }
  .cfg-stepper__btn { width: 44px; }
  .cfg-item { min-height: 56px; }
  .cfg .spcs-btn--sm { min-height: 44px; }
  .cfg-form .spcs-field__input, .cfg-where select.spcs-field__input { min-height: 44px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-a-particle, .dot-morph { transition: none !important; }
}

/* ── Page wipe to and from the SPC site — see js/wipe.js ──────────────────────
   The destination is pre-loaded in a full-screen frame and revealed behind a
   moving front with a thin coral edge; only the edge is coral. */
.wipe-frame {
  position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 10000;
  pointer-events: none; background: transparent;
  /* Painted and composited from the start, just fully clipped, so the sweep's
     first frames have nothing left to prepare. */
  clip-path: inset(0 0 0 100%); will-change: clip-path;
}
.wipe-edge {
  position: fixed; top: 0; bottom: 0; left: 0; width: 12px; z-index: 10001;
  pointer-events: none; background: #ef4d23; will-change: transform;
}
.wipe-edge--spc { width: 44px; background: #2563eb; }
/* Coral band, wavy on both sides (in phase, constant 24px thickness); js/wipe.js
   drifts it and cuts the frame's reveal edge with the same curve. */
.wipe-edge--wave {
  width: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='160' viewBox='0 0 36 160'%3E%3Cpath fill='%23ef4d23' d='M6 0 Q-6 40 6 80 T6 160 L30 160 Q42 120 30 80 T30 0 Z'/%3E%3C/svg%3E") repeat-y 0 0 / 36px 160px;
}

/* Preview mode (this page pre-loaded inside the SPC site's wipe): the reveal
   elements start hidden and snap in as the front reaches them. */
html.wipe-preview :is(.site-nav__brand, .site-nav__menu > *, .hero__title, .hero__desc, .hero__ctas > *, .hero__note, .hero__side, .pkg-hero > *) { opacity: 0; }
/* The clicked wipe link while the destination is still loading. */
.wipe-loading { animation: wipe-link-loading .8s var(--ease-in-out) infinite; }
@keyframes wipe-link-loading {
  0%, 100% { opacity: 1;  transform: translateX(0); }
  50%      { opacity: .45; transform: translateX(3px); }
}
.wipe-snap { animation: wipe-snap .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes wipe-snap {
  from { opacity: 0; transform: translateX(var(--wipe-dx, 18px)) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.wipe-preview :is(.site-nav__brand, .site-nav__menu > *, .hero__title, .hero__desc, .hero__ctas > *, .hero__note, .hero__side, .pkg-hero > *) { opacity: 1; }
}

/* ── Placeholders while the wipe reveals this page (js/placeholders.js) ──────
   html.wipe-ph (set in <head> before first paint): the reveal elements are
   hidden and a .ph layer draws a bar per text line, a pill per button and a
   block per image or stage exactly where they are. The look is picked with
   <html data-ph="bars|tint|blueprint|ghost">. In preview mode the bars snap in
   as the front passes; on the real page html.wipe-ph-go (and .ph.is-go) makes
   them dissolve as the content resolves, row by row (--ph-i is the row). The
   bar element carries geometry and state; its ::after carries the paint. */
/* !important: the hero script sets inline opacity on the description while it
   cycles. html.wipe-ph comes off the moment the resolve animation starts. */
html.wipe-ph :is(.site-nav__brand, .site-nav__menu > *, .hero__title, .hero__desc, .hero__ctas > *, .hero__note, .hero__side, .pkg-hero > *) { opacity: 0 !important; }
.ph { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 60; pointer-events: none; }
.ph__bar { position: absolute; display: block; border-radius: 5px; transform-origin: center; }
.ph__bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ph__bar--pill, .ph__bar--block { border-radius: var(--ph-r, 999px); }   /* the element's own corners, set by the script */
.ph__bar--wait { opacity: 0; }   /* preview mode: waiting for the front */
.ph__bar.is-in { animation: ph-snap .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ph-snap {
  from { opacity: 0; transform: translateX(var(--wipe-dx, 14px)); }
  to   { opacity: 1; transform: none; }
}
.ph.is-go .ph__bar { animation: ph-bar-out .5s var(--ease-out) both; animation-delay: calc(var(--ph-i, 0) * 40ms); }
html.wipe-ph-go :is(.site-nav__brand, .site-nav__menu > *, .hero__title, .hero__desc, .hero__ctas > *, .hero__note, .hero__side, .pkg-hero > *) { animation: ph-resolve .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--ph-i, 0) * 40ms); }
@keyframes ph-bar-out {
  from { opacity: 1; transform: none; filter: blur(0); }
  to   { opacity: 0; transform: scale(.97); filter: blur(2px); }
}
@keyframes ph-resolve {
  from { opacity: 0; filter: blur(10px); transform: translateY(5px); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}

/* Bars: warm neutral, one soft highlight sweeping across all of them together
   (--ph-sweep is the highlight's position in viewport widths, --ph-x the bar's). */
@property --ph-sweep { syntax: '<number>'; inherits: true; initial-value: -0.6; }
.ph--bars { animation: ph-sweep 1.8s linear infinite; }
@keyframes ph-sweep { from { --ph-sweep: -0.6; } to { --ph-sweep: 1.3; } }
.ph--bars .ph__bar::after {
  background:
    linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .7) 50%, transparent 75%)
      no-repeat calc(var(--ph-sweep) * 100vw - var(--ph-x, 0px)) 0 / 40vw 100%,
    var(--studio-neutral-200);
}
.ph--bars .ph__bar--block::after { background-color: color-mix(in srgb, var(--studio-neutral-200) 55%, var(--studio-neutral-50)); }

/* Tint: each bar takes a faint wash of its own element's colour and breathes. */
.ph--tint .ph__bar::after {
  background: color-mix(in srgb, var(--ph-c, var(--studio-neutral-500)) 18%, var(--studio-neutral-50));
  animation: ph-breathe 2.2s var(--ease-in-out) infinite; animation-delay: calc(var(--ph-i, 0) * -160ms);
}
.ph--tint .ph__bar--block::after { background: color-mix(in srgb, var(--ph-c, var(--studio-neutral-500)) 9%, var(--studio-neutral-50)); }
@keyframes ph-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Blueprint: dashed outlines over a slowly drifting hatch, squarer corners,
   a coral mark on the blocks. */
.ph--blueprint .ph__bar--text  { border-radius: 3px; }
.ph--blueprint .ph__bar--block { border-radius: min(8px, var(--ph-r, 8px)); }
.ph--blueprint .ph__bar::after {
  box-sizing: border-box; border: 1.5px dashed var(--studio-neutral-300);
  background: repeating-linear-gradient(135deg, rgba(46, 43, 39, .08) 0 1px, transparent 1px 7.071px) 0 0 / 10px 10px;
  animation: ph-hatch 1.2s linear infinite;
}
.ph--blueprint .ph__bar--block::before {
  content: ""; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px;
  background: var(--studio-coral-500); border-radius: 1px;
}
@keyframes ph-hatch { to { background-position: 10px 0; } }

/* Ghost: no bars; the content itself sits frosted and defrosts on arrival. */
html.wipe-ph[data-ph="ghost"] :is(.site-nav__brand, .site-nav__menu > *, .hero__title, .hero__desc, .hero__ctas > *, .hero__note, .hero__side, .pkg-hero > *) { opacity: .45 !important; filter: blur(9px) saturate(0); }
html.wipe-ph-go[data-ph="ghost"] :is(.site-nav__brand, .site-nav__menu > *, .hero__title, .hero__desc, .hero__ctas > *, .hero__note, .hero__side, .pkg-hero > *) { animation-name: ph-defrost; animation-duration: .9s; }
@keyframes ph-defrost {
  from { opacity: .45; filter: blur(9px) saturate(0); transform: none; }
  to   { opacity: 1; filter: blur(0) saturate(1); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.wipe-ph :is(.site-nav__brand, .site-nav__menu > *, .hero__title, .hero__desc, .hero__ctas > *, .hero__note, .hero__side, .pkg-hero > *) { opacity: 1; filter: none; animation: none; }
  .ph { display: none; }
}

/* Arriving from the Studio card on the SPC site: the brand and the primary
   CTA have just flown into place, so they stay put; the rest of the nav and hero
   pop in. Hidden only while html.via-card is set, and only until the pop-in
   runs (or the safety timeout in <head> clears it). */
html.via-card:not(.via-card-go) .site-nav__menu > :not(.spcs-btn),
html.via-card:not(.via-card-go) .hero__title,
html.via-card:not(.via-card-go) .hero__desc,
html.via-card:not(.via-card-go) .hero__ctas .hero__link,
html.via-card:not(.via-card-go) .hero__note,
html.via-card:not(.via-card-go) .hero__side { opacity: 0; }
html.via-card-go .site-nav__menu > :not(.spcs-btn) { animation: arrive-up .55s cubic-bezier(.2,.8,.2,1) both; }
html.via-card-go .site-nav__menu > :nth-child(2) { animation-delay: .04s; }
html.via-card-go .site-nav__menu > :nth-child(3) { animation-delay: .08s; }
html.via-card-go .site-nav__menu > :nth-child(4) { animation-delay: .12s; }
html.via-card-go .site-nav__menu > :nth-child(5) { animation-delay: .16s; }
html.via-card-go .site-nav__menu > :nth-child(6) { animation-delay: .20s; }
html.via-card-go .hero__title { animation: arrive-up .65s cubic-bezier(.2,.8,.2,1) .05s both; }
html.via-card-go .hero__desc  { animation: arrive-up .65s cubic-bezier(.2,.8,.2,1) .12s both; }
html.via-card-go .hero__ctas .hero__link { animation: arrive-up .6s cubic-bezier(.2,.8,.2,1) .18s both; }
html.via-card-go .hero__note  { animation: arrive-up .6s cubic-bezier(.2,.8,.2,1) .24s both; }
html.via-card-go .hero__side  { animation: arrive-scale .8s cubic-bezier(.2,.8,.2,1) .10s both; }
@keyframes arrive-up    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes arrive-scale { from { opacity: 0; transform: scale(.94); }      to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.via-card .site-nav__menu > *, html.via-card .hero__title, html.via-card .hero__desc,
  html.via-card .hero__ctas .hero__link, html.via-card .hero__note, html.via-card .hero__side { opacity: 1; animation: none; }
}

/* ===================== PRIVACY ===================== */
.legal { padding-top: 40px; max-width: 72ch; }
.legal h2 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; color: var(--fg); margin: 36px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: var(--fg-muted); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--fg); }
.legal a { color: var(--studio-coral-600); text-decoration: underline; }
.legal__updated { margin-top: 32px; font-size: 13px; }

/* =========================================================
   CASE STUDIES  (work/*.html)
   One page per showcased piece. Category colour via --cat, the same
   values as the work cards; kept in its own block so the work-card
   rules can change without touching these pages.
   ========================================================= */
.case { --cat: #ef4d23; --cat-text: #d63d16; --cat-soft: #fff3ef; padding-top: 48px; }
.case--brand     { --cat: #ef4d23; --cat-text: #d63d16; --cat-soft: #fff3ef; }
.case--campaigns { --cat: #6d47e6; --cat-text: #5a32d6; --cat-soft: #f2effe; }
.case--content   { --cat: #16a34a; --cat-text: #15803d; --cat-soft: #e6f4ea; }
.case--digital   { --cat: #0f70b8; --cat-text: #005bad; --cat-soft: #eef5fb; }

.case__crumbs ol { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--fg-muted); }
.case__crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--fg-subtle); }
.case__crumbs a { color: var(--fg-muted); font-weight: 600; transition: color var(--dur-base) var(--ease-out); }
.case__crumbs a:hover { color: var(--studio-coral-600); }

.case__head { max-width: 760px; margin-bottom: 40px; }
.case__head .work-card__tag { margin-bottom: 16px; }
.case__title { font-family: var(--font-display); font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 20px; }
.case__lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--studio-neutral-700); margin: 0; }

.case__media { margin: 0 0 56px; }
.case__media video, .case__media img {
  display: block; width: 100%; height: auto; border-radius: var(--radius-lg);
  background: var(--bg-sunken); box-shadow: var(--shadow-md);
}
.case__media--pages { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case__media--shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case__media--shots img:first-child { grid-column: 1 / -1; }
.case__media--vertical { max-width: 400px; margin-left: auto; margin-right: auto; }
.case__media--vertical video { aspect-ratio: 9 / 16; object-fit: cover; }
.case__media figcaption { margin-top: 12px; }
.case__ext { font-weight: 600; color: var(--cat-text); }

.case__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.case__facts {
  position: sticky; top: 96px; padding: var(--space-5); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.case__facts-title { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--fg-muted); margin: 0 0 16px; }
.case__facts dl { margin: 0; display: grid; gap: 14px; }
.case__facts dt { font-size: 13px; font-weight: 600; color: var(--fg-muted); margin-bottom: 2px; }
.case__facts dd a { color: var(--cat-text); font-weight: 600; }
.case__facts dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--fg); }

.case__body { max-width: 68ch; }
.case__body h2 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 40px 0 12px; }
.case__body h2:first-child { margin-top: 0; }
.case__body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 24px 0 6px; }
.case__body p { font-size: 17px; line-height: 1.7; color: var(--studio-neutral-700); margin: 0 0 14px; }

.case__cta {
  margin-top: 72px; padding: 40px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); display: grid; gap: 8px;
}
.case__cta h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.case__cta p { margin: 0 0 16px; font-size: 17px; color: var(--studio-neutral-700); }
.case__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.case-more { margin-top: 64px; }
.case-more__title-h { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 20px; }
.case-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-card { display: flex; flex-direction: column; height: 100%; padding: 16px; }
.case-card__cover { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 14px; background: var(--bg-sunken); }
.case-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-card__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--fg); margin-bottom: 12px; }
.case-card__link { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--cat-text); }

.case-more--portfolio { margin-top: 40px; }
.case-more--portfolio ul { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.case__legal { margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.6; color: var(--fg-muted); max-width: 90ch; }

@media (max-width: 900px) {
  .case__grid { grid-template-columns: 1fr; gap: 32px; }
  .case__facts { position: static; }
  .case-more ul, .case-more--portfolio ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .case__media--pages, .case__media--shots { grid-template-columns: 1fr; }
  .case__cta { padding: 28px 20px; }
  .case-more ul, .case-more--portfolio ul { grid-template-columns: 1fr; }
}

/* Portfolio: Other references (work made as an employee). Small poster tiles, no text; a click plays the film in the lightbox. */
.portfolio-refs { margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--border); }
.portfolio-refs .portfolio-group__head { border-left-color: var(--border-strong, var(--border)); }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.work-card--ref { grid-column: auto; display: block; border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; }
.work-card--ref .work-cover { margin: 0; aspect-ratio: 16 / 9; border-radius: 12px; }
.work-card--ref .work-cover__play { transform: scale(.8); }
.work-card--ref:focus-visible { outline: 2px solid var(--studio-coral-500); outline-offset: 3px; }
.portfolio-refs__legal { margin: 20px 0 0; font-size: 13px; line-height: 1.6; color: var(--fg-muted); max-width: 90ch; }
@media (max-width: 600px) { .ref-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .work-card--ref .work-cover__play { transform: scale(.65); } }

/* Portfolio cards that have a case study (article + stretched title link, like the home rows): the card still opens the
   lightbox, "Read the case study" sits above the stretched link. */
article.work-card { position: relative; }
.work-card__text .work-card__links { margin-top: auto; }
.work-card__links .work-card__link { margin-top: 0; }
article.work-card:has(.work-card__open:focus-visible) { outline: 2px solid var(--cat); outline-offset: 3px; }

/* ── Home showcase rows: taller covers, one-line description + meta row ─────
   The cover gets a fixed height from the viewport instead of 16:10, so each row
   fills more of the screen; Learn more on the service cards centres the row
   (js/main.js, "In-page scrolling"). */
.work-card__meta { font-size: 13px; font-weight: 600; color: var(--fg-muted); margin: 0 0 20px; letter-spacing: 0.01em; }
.work-card--row .work-card__body { margin-bottom: 8px; }
@media (min-width: 981px) {
  .work-card--row .work-cover { aspect-ratio: auto; height: clamp(380px, 58vh, 580px); }
}
@media (min-width: 768px) and (max-width: 980px) {
  .work-card--row .work-cover { aspect-ratio: auto; height: clamp(300px, 44vh, 440px); }
}
@media (max-width: 767px) {
  .work-card--row .work-cover { aspect-ratio: 4 / 3; }
  .work-card__meta { font-size: 12px; margin-bottom: 16px; }
}

/* ── Placeholder loaders ────────────────────────────────────────────────────
   js/main.js ("Media loaders") puts .is-loading-media on a cover while its image
   is still loading (a shimmer, then the image fades in), on a case-page image
   itself, and on the lightbox stage (a spinner over the poster or the empty
   stage). Only with JS, so no-JS pages show the images as they are. */
@keyframes media-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes media-spin { to { transform: rotate(360deg); } }
.work-cover__poster, .case-card__cover img { transition: opacity .6s var(--ease-out); }
.js .work-cover.is-loading-media, .js .case-card__cover.is-loading-media, .js img.is-loading-media {
  background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%);
  background-size: 200% 100%; background-repeat: no-repeat;
  animation: media-shimmer 1.5s var(--ease-in-out) infinite;
}
.js .work-cover.is-loading-media .work-cover__poster, .js .case-card__cover.is-loading-media img { opacity: 0; }
.js img.is-loading-media { color: transparent; min-height: 120px; }
.lightbox__stage.is-loading-media { min-height: min(60vh, 420px); min-width: min(80vw, 640px); }
.lightbox__stage.is-loading-media::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff;
  animation: media-spin .9s var(--ease-in-out) infinite; pointer-events: none; z-index: 1;
}

/* ── Rise on scroll ─────────────────────────────────────────────────────────
   js/main.js tags section heads, cards and case-page blocks with data-rise; they
   fade and rise in on the shared ease-out curve, a few ms apart within a row.
   `translate` (not `transform`) so card hover lifts keep working, and `all` first
   so the cards' own hover transitions stay as they were. */
.js [data-rise] {
  opacity: 0; translate: 0 22px;
  transition: all var(--dur-base) var(--ease-out), opacity .7s var(--ease-out) var(--rise-delay, 0s), translate .7s var(--ease-out) var(--rise-delay, 0s);
}
.js [data-rise].is-in { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) { .js [data-rise] { opacity: 1 !important; translate: none !important; } }

/* Paying at once costs less: a "Best price" tag on top of At once; its explanation shows on hover of the tag
   or keyboard focus of the button (Seb 2026-11-05). */
.cfg-view__btn { position: relative; }
.cfg-view__perk { position: absolute; left: 50%; bottom: calc(100% - 6px); transform: translateX(-50%); z-index: 3; padding: 1px 8px; border-radius: var(--radius-pill); font-size: 10.5px; font-weight: 700; line-height: 16px; letter-spacing: .01em; color: var(--surface); background: var(--success); white-space: nowrap; cursor: help; }
.cfg-view__seg:has(.cfg-view__perk) { margin-top: 8px; }
.cfg-view__perk-tip { position: absolute; top: calc(100% + 8px); left: 50%; width: max-content; max-width: min(280px, calc(100vw - 32px)); padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-lg, var(--shadow-md)); color: var(--fg); font-size: 13px; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-align: left; white-space: normal; transform: translate(calc(-50% + var(--shift, 0px)), 4px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base); }
.cfg-view__perk:hover .cfg-view__perk-tip, .cfg-view__btn:focus-visible .cfg-view__perk-tip { opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--shift, 0px)), 0); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .cfg-view__perk-tip { transition: none; } }
/* Tooltip bullets (spans, since they sit inside a button) and the switch filling the ticket card (Seb 2026-11-05). */
.cfg-view__perk-title { display: block; margin-bottom: 6px; font-weight: 700; }
.cfg-view__perk-list { display: grid; gap: 4px; }
.cfg-view__perk-item { position: relative; display: block; padding-left: 14px; }
.cfg-view__perk-item::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.cfg-pay__switch { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 8px; }
.cfg-pay__switch .cfg-view__seg { display: flex; width: 100%; box-sizing: border-box; }
.cfg-pay__switch .cfg-view__btn { flex: 1 1 0; }
.cfg-pay__save { color: var(--success); font-weight: 700; }
.cfg-pay__delivery { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--fg-muted); }
