/* ==========================================================================
   Magnifize — Amsterdam
   Thesis: two colours do the work — near-black and warm off-white. The third,
   lime, appears only on the button we want pressed. Big words, few of them.
   Depth comes from light, not colour: a faint grid, a glow that follows the
   cursor, hairlines that catch it. The hero shows the machine at work; motion
   carries the rest: lines rise, words come into focus, one section pins.
   ========================================================================== */

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
[id] { scroll-margin-top: 5.5rem; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a, button, summary { touch-action: manipulation; }
p, li, h1, h2, h3, h4, dd { overflow-wrap: break-word; }
ul[class], ol[class] { list-style: none; padding: 0; }

/* --- tokens --------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* palette — named by role. Contrast figures are against --bg. */
  --bg:        #0A0A0A;   /* the room */
  --bg-2:      #111110;   /* the second surface: services, process, footer */
  --surface:   #171715;   /* cards */
  --surface-2: #1F1F1C;   /* raised inside a card */
  --line:      #262623;   /* hairlines */
  --line-2:    #3A3934;   /* borders that must be seen */
  --text:      #F5F3EE;   /* warm off-white, 17.9:1 */
  --text-2:    #B3AFA6;   /* secondary, 9.1:1 */
  --text-3:    #8C887F;   /* labels and meta, 5.6:1 (5.0:1 on --surface) */
  --silver:    #D9D5CC;   /* the second colour, lit — large type, lines, numbers */
  --silver-lo: #8C887F;
  --silver-hi: #FFFFFF;   /* the highlight in the sheen */
  --signal:    #F5F3EE;   /* "done" inside the machine: light, not colour */
  --glow:      rgba(245, 243, 238, 0.09);
  --hair:      rgba(245, 243, 238, 0.08);  /* glass edges */

  /* primary button: the only coloured object on the page (lime on near-black, 16.8:1) */
  --btn-bg:   #C8FF3D;
  --btn-fg:   #0A0A0A;
  --btn-lift: #DBFF7A;
  --btn-glow: rgba(200, 255, 61, 0.42);

  /* type */
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-hero: clamp(2.6rem, 7vw, 7.25rem);
  --t-xl:   clamp(2.25rem, 5.4vw, 5.25rem);
  --t-l:    clamp(1.75rem, 3.5vw, 3.25rem);
  --t-m:    clamp(1.3rem, 2vw, 1.75rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  /* space */
  --s1: 0.5rem;  --s2: 1rem;  --s3: 1.5rem;  --s4: 2.5rem;
  --s5: 4rem;    --s6: 6rem;  --s7: 9rem;
  --section: clamp(5rem, 11vw, 10rem);

  /* structure */
  --gutter: clamp(1rem, 4.5vw, 4.5rem);
  --max: 1440px;
  --nav-h: 4.25rem;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);    /* fast start, long settle */
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- base ----------------------------------------------------------------- */
html { background: var(--bg); scrollbar-gutter: stable; height: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  min-height: 100%;
}
h1, h2, h3 { font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: var(--t-hero); letter-spacing: -0.05em; line-height: 0.96; }
h2 { font-size: var(--t-xl); letter-spacing: -0.045em; }
h3 { font-size: var(--t-m); letter-spacing: -0.025em; line-height: 1.15; }
p { text-wrap: pretty; }
a { color: inherit; }
strong { font-weight: 600; }
::selection { background: var(--text); color: var(--bg); }

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

/* film grain over everything: a still image, drawn once, so it costs nothing while scrolling */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (forced-colors: active), print { body::after { display: none; } }

/* from page to page: the old page dissolves while the new one settles in (browsers that support it) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.nav { view-transition-name: site-nav; }
::view-transition-group(site-nav) { animation: none; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

.inner { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--mist { background: var(--bg-2); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--line { box-shadow: inset 0 1px 0 var(--line); }

/* the stage: a lighter band with a hairline above and below */
.dark { background: var(--bg-2); color: var(--text); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }

.muted { color: var(--text-2); }
/* the section label: a small glass pill with a point of light */
.label {
  display: inline-flex; align-items: center; gap: 0.6rem; width: fit-content; max-width: 100%; justify-self: start;
  padding: 0.38rem 0.85rem 0.38rem 0.7rem; border-radius: 999px;
  background: rgba(245, 243, 238, 0.035); box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.005em; line-height: 1.3;
  color: var(--text-2);
}
.label::before {
  content: ""; flex: none; width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: var(--text); box-shadow: 0 0 0 3px rgba(245, 243, 238, 0.1), 0 0 10px rgba(245, 243, 238, 0.5);
}
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--btn-bg); color: var(--btn-fg); padding: 0.75rem 1rem; border-radius: 999px;
  text-decoration: none; font-size: var(--t-small);
}
.skip:focus { top: 1rem; }

/* the silver accent — brushed metal, one sweep of light on arrival */
.silver {
  color: var(--silver);
  background: linear-gradient(100deg, var(--silver-lo) 0%, var(--silver) 35%, var(--silver-hi) 47%, var(--silver) 59%, var(--silver-lo) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.is-loaded .silver { animation: sheen 2.6s var(--ease-io) 0.6s both; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@media (forced-colors: active) { .silver { -webkit-text-fill-color: CanvasText; background: none; } }

/* --- buttons & links ------------------------------------------------------ */
.btn {
  --b: var(--btn-bg); --f: var(--btn-fg); --lift: var(--btn-lift);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0 1.6rem;
  background: var(--b); color: var(--f);
  border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 0.975rem; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 1px rgba(200, 255, 61, 0.35), 0 10px 32px -12px var(--btn-glow);
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.4s var(--ease-out);
}
.btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 1px rgba(200, 255, 61, 0.5), 0 14px 44px -10px var(--btn-glow); }
/* one sweep of light across the button on hover */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform 0.9s var(--ease-out);
}
.btn:hover::after { transform: translateX(110%); }
/* a lighter layer rises from below on hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--lift); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn__arrow { display: inline-block; transition: transform 0.5s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
/* feedback on press, instantly — scale lives on the label so the magnet can own the button */
.btn__label { display: inline-flex; align-items: center; gap: 0.6rem; transition: transform 0.12s ease-out; }
.btn:active .btn__label { transform: scale(0.96); }

.btn--ghost { --b: transparent; --f: var(--text); --lift: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 500; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text-3); }
.btn--ghost::after { content: none; }
.btn--small { min-height: 2.5rem; padding: 0 1.1rem; font-size: 0.875rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 20px -10px var(--btn-glow); }
/* the smallest phones: a long label wraps inside the button instead of pushing the page wider */
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; padding-block: 0.7rem; } }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 500; text-decoration: none; padding-block: 0.2rem;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; opacity: 0.55; transform-origin: right; transition: transform 0.6s var(--ease-out);
}
.link:hover::after { transform: scaleX(0); }
.link .arr { display: inline-block; transition: transform 0.5s var(--ease-out); }
.link:hover .arr { transform: translateX(4px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }

/* one quiet line under a call to action: what the call costs you (nothing) */
.reassure {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem;
  margin-top: var(--s2); font-size: 0.8125rem; color: var(--text-3); letter-spacing: 0.005em;
}
.reassure span + span::before { content: "·"; margin-right: 0.7rem; color: var(--line-2); }

/* --- nav ------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: transform 0.6s var(--ease-out), background-color 0.4s, box-shadow 0.4s;
}
.nav .inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.nav--scrolled {
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px);
  box-shadow: 0 1px 0 var(--hair);
}
@media (prefers-reduced-transparency: reduce) {
  .nav--scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav--hidden { transform: translateY(-100%); }
@media (min-width: 881px) { .nav--hidden { transform: translateY(calc(-100% - 3rem)); } }
.nav__mark {
  font-size: 1.1rem; font-weight: 650; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
/* the magnifier over the first I of the wordmark. Sized in em, so the same markup works at
   menu size and at footer size. line-height 1 puts Geist's cap centre at exactly 50% of the box. */
.mark-i { position: relative; display: inline-block; line-height: 1; margin-inline: 0.3em; }
.lens {
  --ring: 0.085em;
  position: absolute; left: calc(0.135em - 0.5em); top: calc(50% - 0.5em);
  width: 1em; height: 1em; pointer-events: none;
}
.lens::before, .lens::after {
  content: ""; position: absolute;
  background: linear-gradient(135deg, var(--silver-lo) 0%, var(--silver) 35%, var(--silver-hi) 50%, var(--silver) 65%, var(--silver-lo) 100%);
}
.lens::before {
  inset: 0; border-radius: 50%;
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--ring) - 0.5px), #000 calc(100% - var(--ring) + 0.5px));
  mask: radial-gradient(closest-side, transparent calc(100% - var(--ring) - 0.5px), #000 calc(100% - var(--ring) + 0.5px));
}
.lens::after {
  left: 0.82em; top: calc(0.82em - 0.065em); width: 0.42em; height: 0.13em; border-radius: 0.065em;
  transform: rotate(45deg); transform-origin: 0 50%;
}
@media (forced-colors: active) { .lens::before, .lens::after { background: CanvasText; } }

/* --- homepage intro: the wordmark writes itself into the menu ------------
   Only when head.js has set .intro-play (homepage, arriving from outside, motion welcome).
   It never covers the page: headline and call to action are there from the first frame.
   The failsafe shows the mark after 2 s even if the script never runs. */
.intro-play .nav__mark { clip-path: inset(-1em 100% -1em -1em); animation: intro-failsafe 0s linear 2s forwards; }
.intro-play .nav__mark .lens { opacity: 0; animation: intro-failsafe-lens 0s linear 2s forwards; }
@keyframes intro-failsafe { to { clip-path: inset(-1em -1em -1em -1em); } }
@keyframes intro-failsafe-lens { to { opacity: 1; } }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav__links > a:not(.btn) {
  position: relative; font-size: 0.9rem; font-weight: 450; text-decoration: none; color: var(--text-2);
  transition: color 0.3s;
}
.nav__links > a:not(.btn):hover, .nav__links > a[aria-current="page"] { color: var(--text); }
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.35rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out);
}
.nav__links > a:not(.btn):hover::after, .nav__links > a[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--line-2); font-size: 0.8rem; font-weight: 500; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; text-decoration: none; color: var(--text-3); padding: 0.25rem; transition: color 0.3s; }
.lang a:hover, .lang a[aria-current="true"] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.nav__toggle { display: none; }

/* wide screens: the bar floats as a glass capsule; it firms up once the page moves */
@media (min-width: 881px) {
  .nav { top: 0.5rem; }
  .nav .inner { position: relative; isolation: isolate; }
  .nav .inner::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    inset: 0.45rem calc(var(--gutter) - 1.1rem);
    border-radius: 999px;
    background: rgba(17, 17, 16, 0.38);
    box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 rgba(245, 243, 238, 0.06);
    -webkit-backdrop-filter: saturate(150%) blur(18px); backdrop-filter: saturate(150%) blur(18px);
    transition: background-color 0.4s, box-shadow 0.4s;
  }
  .nav--scrolled { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .nav--scrolled .inner::before {
    background: rgba(17, 17, 16, 0.74);
    box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.1), inset 0 1px 0 rgba(245, 243, 238, 0.07), 0 16px 40px -18px rgba(0, 0, 0, 0.9);
  }
  .nav__links { gap: 0.2rem; }
  .nav__links > a:not(.btn) { padding: 0.5rem 0.8rem; border-radius: 999px; transition: color 0.3s, background-color 0.3s; }
  .nav__links > a:not(.btn):hover { background: rgba(245, 243, 238, 0.06); }
  .nav__links > a[aria-current="page"] { background: rgba(245, 243, 238, 0.08); }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__links > .btn { margin-left: 0.5rem; }
  .nav__links .lang { margin-left: 0.4rem; }
}
@media (min-width: 881px) and (prefers-reduced-transparency: reduce) {
  .nav .inner::before, .nav--scrolled .inner::before { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* mobile: without JS the links simply wrap under the mark; with JS they fold into a sheet */
@media (max-width: 880px) {
  .nav { height: auto; background: rgba(10, 10, 10, 0.92); }
  .nav .inner { flex-wrap: wrap; padding-block: 0.9rem; }
  .nav__links { flex-wrap: wrap; gap: 0.75rem 1.1rem; }

  .js .nav { height: var(--nav-h); background: transparent; }
  .js .nav--scrolled { background: rgba(10, 10, 10, 0.78); }
  .js .nav .inner { flex-wrap: nowrap; padding-block: 0; }
  .js .nav__toggle {
    display: inline-flex; align-items: center; gap: 0.6rem; position: relative; z-index: 2;
    font-size: 0.9rem; font-weight: 500; min-height: 2.75rem; padding-inline: 0.25rem;
  }
  .nav__bars { position: relative; width: 1.25rem; height: 0.6rem; }
  .nav__bars::before, .nav__bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
    transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
  }
  .nav__bars::before { top: 0; }
  .nav__bars::after { top: calc(100% - 1.5px); }
  .menu-open .nav__bars::before { top: calc(50% - 0.75px); transform: rotate(45deg); }
  .menu-open .nav__bars::after { top: calc(50% - 0.75px); transform: rotate(-45deg); }
  .js .nav__mark { position: relative; z-index: 2; }

  .js .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; flex-wrap: nowrap;
    gap: 0.4rem; padding: calc(var(--nav-h) + 1rem) var(--gutter) max(2.5rem, env(safe-area-inset-bottom));
    height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.7s var(--ease-out), visibility 0s linear 0.7s;
  }
  .menu-open .nav__links { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease-out); }
  .js .nav__links > a:not(.btn) {
    font-size: clamp(2.2rem, 11vw, 3.5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.15;
    color: var(--text);
    opacity: 0; transform: translateY(1.25rem);
    transition: opacity 0.5s, transform 0.7s var(--ease-out);
  }
  .js .nav__links > a:not(.btn)::after { display: none; }
  .menu-open .nav__links > a:not(.btn) { opacity: 1; transform: none; }
  .menu-open .nav__links > a:nth-child(2) { transition-delay: 0.05s; }
  .menu-open .nav__links > a:nth-child(3) { transition-delay: 0.1s; }
  .menu-open .nav__links > a:nth-child(4) { transition-delay: 0.15s; }
  .menu-open .nav__links > a:nth-child(5) { transition-delay: 0.2s; }
  .js .nav__links > .btn { margin-top: 1.75rem; }
  .js .nav__links .lang { margin-top: 1rem; font-size: 1rem; gap: 1rem; }
  .menu-open .nav { background: var(--bg); box-shadow: none; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* phone held sideways: the sheet starts under the bar and scrolls instead of spilling over it */
@media (max-width: 880px) and (max-height: 540px) {
  .js .nav__links { justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 1.5rem; }
  .js .nav__links > a:not(.btn) { font-size: clamp(1.6rem, 9vh, 2.4rem); }
  .js .nav__links > .btn { margin-top: 1rem; }
}

/* --- motion primitives ---------------------------------------------------- */
/* Everything is visible by default. Only when head.js has confirmed that motion
   is welcome (.js-motion on <html>) do elements start hidden and wait for a cue.
   .is-loaded is set on <html> by script.js once the fonts are in (or after 0.5 s). */

/* lines: a mask, the text rises through it */
.line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line__in { display: block; }
.js-motion .line__in { transform: translateY(108%); transition: transform 1.1s var(--ease-out); }
.js-motion.is-loaded .hero .line__in,
.js-motion.is-loaded .phero .line__in,
.js-motion .is-in .line__in { transform: none; }
.line:nth-child(2) .line__in { transition-delay: 0.07s; }
.line:nth-child(3) .line__in { transition-delay: 0.14s; }
.line:nth-child(4) .line__in { transition-delay: 0.21s; }

/* words: split by script.js; each word comes into focus — out of a blur, up a few pixels */
.w { display: inline-block; vertical-align: top; }
.w__in { display: inline-block; }
.js-motion [data-split] .w__in {
  opacity: 0; filter: blur(10px); transform: translateY(0.32em);
  transition: opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out), transform 1.1s var(--ease-out);
}
.js-motion [data-split].is-in .w__in { opacity: 1; filter: blur(0); transform: none; }

/* scroll-filled paragraph: words light up as you read down */
.js-motion .fill .f { color: var(--text-3); transition: color 0.35s; }
.js-motion .fill .f.is-on { color: var(--text); }

/* generic rise, with a touch of focus */
.js-motion .reveal { opacity: 0; transform: translateY(1.75rem); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out); }
.js-motion .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* hero furniture: a short fade right after the lines. Calls to action never wait. */
.js-motion .fade-late { opacity: 0; transform: translateY(0.5rem); transition: opacity 0.6s var(--ease-out) 0.12s, transform 0.8s var(--ease-out) 0.12s; }
.js-motion.is-loaded .fade-late { opacity: 1; transform: none; }

/* --- hero (home): the promise on the left, the machine on the right ------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 5vh, 4rem));
  padding-bottom: clamp(3rem, 8vh, 5rem);
}
/* the backdrop: a faint measuring grid that fades out toward the edges, one warm light
   behind the machine, and a second light that follows the cursor (script.js sets --mx/--my) */
.hero::before, .phero::after, .cta::after {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  inset: 0 calc(50% - 50vw);
  background-image:
    linear-gradient(to right, rgba(245, 243, 238, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 243, 238, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 0 calc(50% - 50vw);
  background:
    radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%), rgba(245, 243, 238, 0.07), transparent 60%),
    radial-gradient(38% 46% at 72% 48%, var(--glow), transparent 72%);
  transition: opacity 0.6s;
}
.hero h1 { font-size: clamp(2.6rem, 4.4vw, 5rem); margin-block: var(--s3) var(--s3); }
.hero__lede { max-width: 42ch; font-size: 1.125rem; color: var(--text-2); }
.hero .actions { margin-top: var(--s4); }
.hero__visual { position: relative; min-width: 0; }
/* one line above the example, so a first-time visitor knows what the panel shows */
.hero__caption { max-width: 44ch; margin-bottom: var(--s2); font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); }
.hero__caption strong { color: var(--text); font-weight: 600; }
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; align-items: start; gap: var(--s5); }
  .hero__visual { max-width: 36rem; }
}
@media (max-width: 700px) {
  .hero { padding-top: calc(var(--nav-h) + 2.25rem); gap: var(--s4); }
  .hero h1 { margin-block: var(--s2) var(--s3); }
  .hero__lede { font-size: 1.0625rem; }
  .hero .actions { margin-top: var(--s3); }
}

/* --- the machine: an example quote request, handled while you watch ------
   Default (no JS, reduced motion): the finished state. script.js adds .is-live and
   then walks the steps; every state below is only a class on an element. */
.machine {
  position: relative; border-radius: 1.25rem; overflow: hidden;
  background: linear-gradient(180deg, rgba(245, 243, 238, 0.06), rgba(245, 243, 238, 0.018));
  border: 1px solid rgba(245, 243, 238, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(245, 243, 238, 0.08),
    0 50px 100px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 120px -40px rgba(245, 243, 238, 0.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 0.9375rem; line-height: 1.45;
}
/* a thin beam of light that travels the edge of the panel */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.machine::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--beam), transparent 0deg 280deg, rgba(245, 243, 238, 0.85) 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 7s linear infinite;
}
@keyframes beam { to { --beam: 360deg; } }
@media (prefers-reduced-motion: reduce) { .machine::before { animation: none; } }
.machine__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: 0.85rem 1.15rem; border-bottom: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--text-3);
}
.machine__tools { display: inline-flex; align-items: center; gap: 0.5rem; }
.machine__replay { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--text-2); transition: color 0.2s, background-color 0.2s; }
.machine__replay[hidden] { display: none; }
.machine__replay:disabled { opacity: 0.35; cursor: default; }
.machine__replay:not(:disabled):hover { color: var(--text); background: var(--surface-2); }
.machine__replay svg { width: 1.125rem; height: 1.125rem; }
.machine__where { display: inline-flex; align-items: center; gap: 0.6rem; }
.machine__where::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(245, 243, 238, 0.12), 0 0 10px rgba(245, 243, 238, 0.45); }
.machine__tag {
  padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; color: var(--text-2);
}
.machine__body { display: grid; gap: 0.9rem; padding: 1.15rem; transition: opacity 0.5s var(--ease-out); }
.machine.is-resetting .machine__body { opacity: 0; }

/* the request as it arrives */
.mreq {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.15rem 0.85rem;
  padding: 0.9rem 1rem; border-radius: 0.9rem;
  background: var(--surface); border: 1px solid var(--line);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}
.mreq__av {
  grid-row: span 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--silver);
}
.mreq__title { font-weight: 600; letter-spacing: -0.01em; }
.mreq__time { font-size: 0.8125rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mreq__meta { grid-column: 2 / -1; font-size: 0.875rem; color: var(--text-2); }

/* the steps the machine takes */
.msteps { display: grid; padding-inline: 0.25rem; }
.mstep {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.85rem;
  padding-block: 0.62rem; border-bottom: 1px solid var(--line);
  transition: opacity 0.4s var(--ease-out);
}
.mstep:last-child { border-bottom: 0; }
.mstep__ic {
  position: relative; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: rgba(245, 243, 238, 0.12); color: var(--signal);
  transition: background-color 0.3s;
}
.mstep__ic svg { width: 0.75rem; height: 0.75rem; transition: opacity 0.25s, transform 0.4s var(--ease-out); }
.mstep__txt { color: var(--text); }
.mstep__meta { font-size: 0.8125rem; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity 0.4s; }

/* waiting for a person: the machine stops here, on purpose */
.mfoot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem 1rem; border-radius: 0.9rem;
  background: rgba(245, 243, 238, 0.045); border: 1px solid rgba(245, 243, 238, 0.14);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}
.mfoot__wait { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.mfoot__wait::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--signal); animation: wait-pulse 1.8s var(--ease-io) infinite; }
@keyframes wait-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 243, 238, 0.45); } 60% { box-shadow: 0 0 0 7px rgba(245, 243, 238, 0); } }
.mfoot__btns { display: inline-flex; gap: 0.5rem; }
.mbtn {
  display: inline-flex; align-items: center; min-height: 2rem; padding: 0 0.85rem; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500; border: 1px solid var(--line-2); color: var(--text-2);
}
.mbtn--go { background: rgba(245, 243, 238, 0.12); color: var(--text); border-color: var(--line-2); }
.msaved {
  display: flex; justify-content: space-between; gap: var(--s2);
  padding: 0.1rem 0.25rem 0; font-size: 0.8125rem; color: var(--text-3);
  transition: opacity 0.6s var(--ease-out) 0.15s, transform 0.7s var(--ease-out) 0.15s;
}
.msaved b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* live states */
.machine.is-live .mreq:not(.is-show) { opacity: 0; transform: translateY(-0.6rem) scale(0.98); }
.machine.is-live .mstep:not(.is-run):not(.is-done) { opacity: 0.38; }
.machine.is-live .mstep:not(.is-done) .mstep__ic { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.machine.is-live .mstep:not(.is-done) .mstep__ic svg { opacity: 0; transform: scale(0.4); }
.machine.is-live .mstep.is-run .mstep__ic {
  box-shadow: none;
  background: conic-gradient(from 0deg, var(--silver-hi), transparent 70%);
  -webkit-mask: radial-gradient(closest-side, transparent 62%, #000 66%); mask: radial-gradient(closest-side, transparent 62%, #000 66%);
  animation: mspin 0.8s linear infinite;
}
.machine.is-live .mstep:not(.is-done) .mstep__meta { opacity: 0; }
.machine.is-live .mfoot:not(.is-show), .machine.is-live .msaved:not(.is-show) { opacity: 0; transform: translateY(0.5rem); }
@keyframes mspin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .machine { font-size: 0.875rem; }
  .machine__body { padding: 0.9rem; }
  .mstep__meta { display: none; }
}

/* --- page hero (subpages) ------------------------------------------------- */
.phero { position: relative; isolation: isolate; padding-top: calc(var(--nav-h) + clamp(4rem, 12vh, 8rem)); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.phero::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 0 40%; pointer-events: none;
  background: radial-gradient(40% 50% at 70% 30%, var(--glow), transparent 70%);
}
.phero h1 { margin-top: var(--s3); }
.phero .lead-p { margin-top: var(--s4); color: var(--text-2); font-size: var(--t-m); line-height: 1.4; letter-spacing: -0.015em; max-width: 38ch; }
.phero .actions { margin-top: var(--s4); }

/* --- section heads -------------------------------------------------------- */
.head { display: grid; gap: var(--s3); margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.head h2 { max-width: 18ch; }

/* --- statement ------------------------------------------------------------ */
.statement .label { margin-bottom: var(--s4); }
.statement .fill {
  font-size: var(--t-l); font-weight: 500; line-height: 1.18; letter-spacing: -0.035em;
  max-width: 26ch;
}

/* --- work: one client, then the concept sites ------------------------------ */
.work .head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.case {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 1.5rem;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.case__media { position: relative; padding-bottom: 6%; padding-right: 9%; }
.frame {
  border-radius: 0.85rem; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.frame__bar {
  display: flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line); font-size: 0.75rem; color: var(--text-3);
}
.frame__bar i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--line-2); }
.frame__url { margin-left: 0.5rem; padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--bg); }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.case__phone {
  position: absolute; right: 0; bottom: 0; width: 24%; max-width: 9.5rem;
  border-radius: 0.9rem; border: 1px solid var(--line-2); overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.case__phone img { width: 100%; height: auto; aspect-ratio: 416 / 900; object-fit: cover; }
.case__body { display: grid; gap: var(--s2); align-content: start; }
.case__body h3 { font-size: var(--t-l); letter-spacing: -0.045em; }
.case__body > p { color: var(--text-2); max-width: 40ch; }
.case__parts { display: grid; margin-top: var(--s2); border-top: 1px solid var(--line); }
.case__parts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s2); padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.case__parts dt { font-size: var(--t-small); font-weight: 500; color: var(--text-3); padding-top: 0.15rem; }
.case__parts dd { display: grid; gap: 0.6rem; justify-items: start; color: var(--text-2); }
.status {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 0.78rem; font-weight: 500; color: var(--text-2);
}
.status::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--silver); }
.status--live::before { background: var(--signal); box-shadow: 0 0 0 3px rgba(245, 243, 238, 0.1), 0 0 8px rgba(245, 243, 238, 0.55); }
@media (max-width: 960px) {
  .case { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .case__parts > div { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .reassure span:last-child { flex-basis: 100%; }
  .reassure span:last-child::before { content: none; }
}

.concepts { margin-top: clamp(3rem, 6vw, 5rem); }
.concepts__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); margin-bottom: var(--s3); }
.concepts__head p { color: var(--text-2); max-width: 46ch; }
/* the concept sites: one endless strip that stops under the cursor or keyboard focus.
   Without motion it is a row you can scroll sideways, and the copy for the loop is hidden. */
.marquee {
  margin-inline: calc(50% - 50vw); overflow: hidden; padding-block: 0.25rem 0.75rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; gap: var(--s3); width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: var(--s3); }
.marquee__list li { flex: none; width: clamp(15.5rem, 24vw, 21rem); }
.marquee__list:first-child li:first-child { margin-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s3) / 2)); } }
:root:not(.js-motion) .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
:root:not(.js-motion) .marquee__track { animation: none; }
:root:not(.js-motion) .marquee__list[aria-hidden="true"] { display: none; }
:root:not(.js-motion) .marquee__list li:last-child { margin-right: var(--gutter); }
.concepts__card { display: grid; gap: 0.75rem; text-decoration: none; }
.concepts__shot {
  display: block; border-radius: 0.85rem; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.4s, transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.concepts__shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 0.9s var(--ease-out); }
.concepts__card:hover .concepts__shot { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9); }
.concepts__card:hover .concepts__shot img { transform: scale(1.04); }
.concepts__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1); font-weight: 500; letter-spacing: -0.01em; }
.tag-concept { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); padding: 0.12rem 0.5rem; border: 1px solid var(--line-2); border-radius: 999px; }

/* --- what we make: four tiles, each with a small working picture ----------- */
.head--split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--s5); }
@media (max-width: 900px) { .head--split { grid-template-columns: minmax(0, 1fr); } }
.head--split > div { display: grid; gap: var(--s3); justify-items: start; }
.head__aside { max-width: 34ch; color: var(--text-2); display: grid; gap: var(--s2); justify-items: start; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s3); }
.tile {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: 1.5rem; background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hair);
  transition: border-color 0.5s var(--ease-out);
}
.tile:hover { border-color: var(--line-2); }
.tile:nth-child(1) { grid-column: span 7; }
.tile:nth-child(2) { grid-column: span 5; }
.tile:nth-child(3) { grid-column: span 5; }
.tile:nth-child(4) { grid-column: span 7; }
.tile__visual {
  position: relative; height: clamp(13rem, 20vw, 16rem); overflow: hidden;
  display: grid; place-items: center; padding: var(--s3);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 50% 100%, rgba(245, 243, 238, 0.06), transparent 70%),
    linear-gradient(to right, rgba(245, 243, 238, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(245, 243, 238, 0.04) 1px, transparent 1px) 0 0 / 28px 28px;
}
.tile__tag {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 1;
  padding: 0.12rem 0.55rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 10, 10, 0.55);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em; color: var(--text-3);
}
.tile__body { display: grid; gap: var(--s2); align-content: start; padding: clamp(1.5rem, 2.6vw, 2.25rem); }
.tile__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s2); }
.tile h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -0.04em; }
.tile__meta { font-size: var(--t-small); font-weight: 500; color: var(--text-3); white-space: nowrap; }
.tile__body > p { color: var(--text-2); max-width: 46ch; }
.tile__link { margin-top: var(--s1); justify-self: start; font-size: 0.95rem; }
/* websites: a browser window with one of the concept sites */
.mini-browser {
  width: min(100%, 26rem); border-radius: 0.75rem; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transform: translateY(1.75rem) rotate(-1.5deg); transition: transform 0.9s var(--ease-out);
}
.tile:hover .mini-browser { transform: translateY(0.75rem) rotate(0deg); }
.mini-browser__bar { display: flex; gap: 0.3rem; padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--line); }
.mini-browser__bar i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--line-2); }
.mini-browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
/* automation: three systems, one light running between them */
.flow { display: flex; align-items: center; width: 100%; max-width: 24rem; }
.flow__node {
  flex: none; display: grid; gap: 0.2rem; justify-items: center; padding: 0.7rem 0.8rem; min-width: 5.5rem;
  border-radius: 0.8rem; background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 0.78rem; font-weight: 500; color: var(--text); text-align: center;
}
.flow__node small { font-size: 0.68rem; font-weight: 400; color: var(--text-3); }
.flow__wire { position: relative; flex: 1; height: 1px; background: var(--line-2); overflow: visible; }
.flow__wire::after {
  content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--text); box-shadow: 0 0 10px 2px rgba(245, 243, 238, 0.6);
  animation: wire 2.4s var(--ease-io) infinite;
}
.flow__wire + .flow__node + .flow__wire::after { animation-delay: 1.2s; }
@keyframes wire { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0; } }
/* agents: what it may do on its own, and what it must ask first */
.bounds { display: grid; gap: 0.6rem; width: 100%; max-width: 22rem; }
.bounds__row {
  display: grid; gap: 0.45rem; padding: 0.75rem 0.85rem; border-radius: 0.8rem;
  background: var(--surface-2); border: 1px solid var(--line-2);
}
.bounds__row--ask { background: transparent; border-style: dashed; }
.bounds__k { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.bounds__v { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.bounds__v span { padding: 0.18rem 0.55rem; border-radius: 999px; background: rgba(245, 243, 238, 0.07); font-size: 0.78rem; color: var(--text); }
.bounds__row--ask .bounds__v span { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
/* chat: a question, an answer from the company's own documents, a hand-over */
.chat-demo { display: grid; gap: 0.5rem; width: 100%; max-width: 24rem; font-size: 0.82rem; line-height: 1.4; }
.chat-demo__q, .chat-demo__a { max-width: 85%; padding: 0.55rem 0.8rem; border-radius: 0.9rem; }
.chat-demo__q { justify-self: end; background: var(--text); color: var(--bg); border-bottom-right-radius: 0.25rem; }
.chat-demo__a { justify-self: start; background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-left-radius: 0.25rem; }
.chat-demo__a small { display: block; margin-top: 0.3rem; font-size: 0.7rem; color: var(--text-3); }
.chat-demo__hand {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.65rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: 0.72rem; color: var(--text-2);
}
.chat-demo__hand::before { content: ""; width: 0.38rem; height: 0.38rem; border-radius: 50%; background: var(--text); }
@media (max-width: 960px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile:nth-child(n) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .flow__wire::after { animation: none; left: calc(50% - 2.5px); } }
@media (max-width: 420px) { .flow__node { min-width: 0; padding: 0.6rem 0.55rem; } .flow__wire { min-width: 1rem; } }

/* --- how the price works: two amounts, fixed before anything starts --------- */
.price3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
/* start price + monthly fee: a small plus where the first two cards meet */
.price3 { position: relative; }
.price3::before {
  content: "+"; position: absolute; z-index: 4; top: 50%; left: calc((100% - 2 * var(--s3)) / 3 + var(--s3) / 2);
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 6px var(--bg);
  font-size: 1.2rem; font-weight: 500; line-height: 1; color: var(--text);
}
.pcard {
  display: grid; align-content: start; gap: var(--s2); min-height: 15rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem); border-radius: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hair);
}
.pcard__k { font-size: var(--t-small); font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; margin-bottom: auto; padding-bottom: var(--s4); }
.pcard h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.04em; }
.pcard p { color: var(--text-2); max-width: 36ch; }
.pcard--plus { position: relative; }
.price3__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); margin-top: var(--s4); color: var(--text-2); }
@media (max-width: 900px) { .price3 { grid-template-columns: minmax(0, 1fr); } .price3::before { display: none; } .pcard { min-height: 0; } .pcard__k { padding-bottom: var(--s2); } }

/* --- process: the stage, pinned horizontally on wide screens -------------- */
.process { position: relative; }
.process__pin { padding-block: var(--section); }
.process .process__track {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3);
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
}
.step {
  position: relative; display: flex; flex-direction: column; gap: var(--s2);
  padding: clamp(1.5rem, 2.6vw, 2.5rem); min-height: 18rem;
  background: linear-gradient(180deg, var(--surface), rgba(23, 23, 21, 0.55));
  border: 1px solid var(--line); border-radius: 1.25rem;
  box-shadow: inset 0 1px 0 var(--hair);
  transition: border-color 0.6s;
}
.step.is-active { border-color: var(--line-2); }
.step__no {
  display: block; font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums; margin-bottom: auto; padding-bottom: var(--s4);
  color: var(--silver-lo); transition: color 0.6s;
}
.step.is-active .step__no { color: var(--text); }
.step h3 { font-size: var(--t-m); }
.step p { color: var(--text-2); max-width: 30ch; }
.process__bar { display: none; }

@media (max-width: 1100px) { .process .process__track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .process .process__track { grid-template-columns: 1fr; } .step { min-height: 0; } }

/* pinned mode — script.js sets the section height and moves the track */
.process.is-pinned .process__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--nav-h) + 1rem) 3rem;
}
.process.is-pinned .head { margin-bottom: clamp(1.5rem, 5vh, 3.5rem); }
.process.is-pinned .head h2 { font-size: min(var(--t-xl), 8.5vh); }
.process.is-pinned .process__track {
  display: flex; gap: var(--s3); width: max-content; max-width: none; margin-inline: 0;
  /* line the first card up with the heading, even when the page is wider than --max */
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  will-change: transform;
}
.process.is-pinned .step { width: clamp(20rem, 34vw, 30rem); min-height: clamp(16rem, 42vh, 27rem); }
.process.is-pinned .process__bar {
  display: block; position: relative; height: 1px; margin-top: clamp(2rem, 5vh, 3rem);
  background: var(--line);
}
.process__bar span { position: absolute; inset: 0; background: var(--silver); transform-origin: left; transform: scaleX(0); }

/* --- straight talk: four short answers, as cards -------------------------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.fact {
  display: grid; gap: 0.75rem; align-content: start;
  padding: clamp(1.5rem, 2.6vw, 2.25rem); border-radius: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hair);
  transition: border-color 0.4s var(--ease-out);
}
.fact:hover { border-color: var(--line-2); }
.fact p { color: var(--text-2); max-width: 40ch; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* --- closing call to action ----------------------------------------------- */
.cta {
  position: relative; isolation: isolate;
  padding-block: clamp(6rem, 16vw, 13rem);
  transition: background-color 0.6s var(--ease-out);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 20% 60%, var(--glow), transparent 70%);
}
.cta.is-in { background-color: var(--bg-2); }
.cta::after { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 25% 60%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 25% 60%, #000 10%, transparent 70%); }
.phero::after { -webkit-mask-image: radial-gradient(ellipse 60% 80% at 75% 20%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 80% at 75% 20%, #000 10%, transparent 70%); }
.cta h2 { font-size: var(--t-hero); letter-spacing: -0.055em; line-height: 0.96; }
.cta p { margin-top: var(--s4); color: var(--text-2); font-size: var(--t-m); max-width: 36ch; letter-spacing: -0.015em; line-height: 1.4; }
.cta .actions { margin-top: var(--s5); }
.cta p.reassure { margin-top: var(--s2); font-size: 0.8125rem; letter-spacing: 0.005em; line-height: 1.6; max-width: none; color: var(--text-3); }
.cta .note { margin-top: var(--s3); font-size: var(--t-small); }

/* --- services page -------------------------------------------------------- */
/* the price in one line, right under the page title */
.pchips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--s4); }
.pchips li {
  display: inline-flex; align-items: baseline; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 999px;
  background: rgba(245, 243, 238, 0.035); box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em;
}
.pchips li span { font-weight: 400; color: var(--text-2); }
.pchips li.pchips__plus { padding-inline: 0.2rem; background: none; box-shadow: none; color: var(--text-3); font-weight: 400; }

/* the four services as tabs that float along while you read; a light pill follows the one in view */
.tabs-wrap { position: sticky; top: calc(var(--nav-h) + 1rem); z-index: 20; display: flex; justify-content: center; margin-bottom: clamp(3rem, 6vw, 5rem); transition: top 0.6s var(--ease-out); pointer-events: none; }
.nav-up .tabs-wrap { top: 0.75rem; }
.index {
  position: relative; display: flex; gap: 0.15rem; max-width: 100%; padding: 0.35rem; pointer-events: auto;
  border-radius: 999px; overflow-x: auto; scrollbar-width: none;
  background: rgba(17, 17, 16, 0.78); box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.1), 0 16px 40px -18px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: saturate(150%) blur(18px); backdrop-filter: saturate(150%) blur(18px);
}
.index::-webkit-scrollbar { display: none; }
.index a {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.5rem; padding: 0 1rem; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-size: 0.9rem; font-weight: 500; letter-spacing: -0.01em; color: var(--text-2);
  transition: color 0.35s var(--ease-out), background-color 0.3s;
}
.index a span { font-size: 0.72rem; color: var(--text-3); font-variant-numeric: tabular-nums; transition: color 0.35s; }
.index a:hover { color: var(--text); }
.index a[aria-current="true"] { color: var(--bg); background: var(--text); }
.index a[aria-current="true"] span { color: rgba(10, 10, 10, 0.55); }
.index.has-pill a[aria-current="true"] { background: transparent; }
.index__pill {
  position: absolute; z-index: 0; top: 0.35rem; bottom: 0.35rem; left: 0; width: 0; border-radius: 999px;
  background: var(--text); box-shadow: 0 6px 20px -8px rgba(245, 243, 238, 0.5);
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out), opacity 0.3s;
}
@media (prefers-reduced-transparency: reduce) { .index { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 700px) {
  .tabs-wrap { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .index a { padding: 0 0.8rem; font-size: 0.85rem; }
  .index a span { display: none; }
}

.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s4) var(--s6); scroll-margin-top: calc(var(--nav-h) + 5.5rem); }
.detail + .detail { margin-top: clamp(3.5rem, 7vw, 6.5rem); padding-top: clamp(3.5rem, 7vw, 6.5rem); border-top: 1px solid var(--line); }
.detail__no { font-size: var(--t-small); font-weight: 500; color: var(--text-3); display: flex; gap: 0.75rem; align-items: baseline; }
.detail__no b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.detail h2 { font-size: var(--t-l); margin-top: var(--s3); max-width: 16ch; }
.detail__body > p { font-size: 1.125rem; color: var(--text-2); max-width: 44ch; }
.gets { margin-top: var(--s4); display: grid; }
.gets li { display: flex; gap: 1rem; padding-block: 0.95rem; border-top: 1px solid var(--line); font-weight: 450; }
.gets li::before { content: ""; flex: none; width: 0.4rem; height: 0.4rem; margin-top: 0.62rem; border-radius: 50%; background: var(--silver); box-shadow: 0 0 8px rgba(245, 243, 238, 0.35); }
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.spec > div { padding-top: var(--s2); border-top: 1px solid var(--line-2); }
.spec dt { font-size: var(--t-small); color: var(--text-3); margin-bottom: 0.35rem; }
.spec dd { font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: var(--s2); }
}
.gets__title { margin-top: var(--s4); font-size: var(--t-small); font-weight: 500; letter-spacing: 0; color: var(--text-3); }
.gets__title + .gets { margin-top: var(--s2); }
.band__text { font-size: var(--t-l); font-weight: 500; line-height: 1.2; letter-spacing: -0.035em; max-width: 26ch; margin-top: var(--s4); }

/* --- packages: what each one contains; the price follows in the quote ------- */
.pkgs-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s3); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.pkgs-head h3 { font-size: var(--t-m); }
.pkgs-head p { font-size: var(--t-small); color: var(--text-3); }
.pkgs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.pkgs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pkg {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: clamp(1.5rem, 2.4vw, 2rem); border-radius: 1.5rem;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hair);
  transition: border-color 0.5s var(--ease-out), translate 0.6s var(--ease-out);
}
.pkg:hover { border-color: var(--line-2); translate: 0 -3px; }
.pkg__no { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.pkg__name { font-size: clamp(1.45rem, 2.2vw, 1.85rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.04em; text-wrap: balance; }
.pkg__for { color: var(--text-2); font-size: 0.95rem; line-height: 1.5; }
.pkg__list { display: grid; gap: 0.1rem; margin-top: var(--s1); }
.pkg__list li { display: flex; gap: 0.75rem; padding-block: 0.55rem; border-top: 1px solid var(--line); font-size: 0.95rem; line-height: 1.45; }
.pkg__list li::before {
  content: ""; flex: none; width: 1rem; height: 1rem; margin-top: 0.15rem; border-radius: 50%;
  background: rgba(245, 243, 238, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 6.2l1.9 1.9 4-4.3' stroke='%23F5F3EE' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}
.pkg__terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin-top: auto; padding-top: var(--s2); }
.pkg__terms dt { font-size: 0.78rem; color: var(--text-3); margin-bottom: 0.2rem; }
.pkg__terms dd { font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.pkg__cta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  margin-top: var(--s1); padding: 0.8rem 1rem; border-radius: 0.9rem;
  background: rgba(245, 243, 238, 0.04); box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 0.9rem; font-weight: 600; color: var(--text); text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.pkg__cta .arr { transition: transform 0.2s; }
.pkg__cta:hover { background: rgba(245, 243, 238, 0.08); box-shadow: inset 0 0 0 1px var(--line-2); }
.pkg__cta:hover .arr { transform: translateX(3px); }
.pkg__cta:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
/* contactpagina: welk pakket de bezoeker koos */
.topics__picked { margin-top: var(--s2); padding: 0.7rem 0.9rem; border-radius: 0.8rem; background: rgba(245, 243, 238, 0.05); box-shadow: inset 0 0 0 1px var(--hair); font-size: 0.92rem; color: var(--text); }
.pkgs-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); color: var(--text-2); }
@media (max-width: 1100px) { .pkgs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pkgs, .pkgs--2 { grid-template-columns: minmax(0, 1fr); } }

/* what the monthly amount covers */
.covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); margin-top: var(--s4); }
.gets__title + .covers { margin-top: var(--s2); }
.covers li { display: flex; gap: 0.75rem; padding-block: 0.8rem; border-top: 1px solid var(--line); }
.covers li::before { content: ""; flex: none; width: 0.4rem; height: 0.4rem; margin-top: 0.6rem; border-radius: 50%; background: var(--silver); }
@media (max-width: 560px) { .covers { grid-template-columns: 1fr; } }

/* how the fixed price comes about */
.pricing { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s4) var(--s6); align-items: start; }
.pricing h2 { font-size: var(--t-l); margin-top: var(--s3); max-width: 14ch; }
.pricing__steps { display: grid; counter-reset: ps; border-top: 1px solid var(--line); }
.pricing__steps li {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s2);
  padding-block: var(--s3); border-bottom: 1px solid var(--line); counter-increment: ps;
  font-size: 1.125rem; line-height: 1.5;
}
.pricing__steps li::before { content: "0" counter(ps); font-size: var(--t-small); font-weight: 600; color: var(--text-3); padding-top: 0.25rem; font-variant-numeric: tabular-nums; }
.pricing__note { margin-top: var(--s3); color: var(--text-2); max-width: 52ch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* --- about page ----------------------------------------------------------- */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4) var(--s6); align-items: end; }
.intro__big { font-size: var(--t-l); font-weight: 500; line-height: 1.18; letter-spacing: -0.035em; }
.intro .muted { max-width: 40ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s6); }
.stats div { padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stats dd { font-size: clamp(2rem, 4.6vw, 4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.stats dt { font-size: var(--t-small); color: var(--text-3); margin-top: 0.6rem; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.rule {
  padding: clamp(1.5rem, 2.4vw, 2.25rem); border-radius: 1.25rem; display: grid; align-content: start; gap: var(--s2); min-height: 15rem;
  background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.rule__no { font-size: var(--t-small); font-weight: 600; color: var(--text-3); margin-bottom: var(--s3); }
.rule p { color: var(--text-2); }
@media (max-width: 1000px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .rules { grid-template-columns: 1fr; } .rule { min-height: 0; } }

/* accordion — native <details>, animated where the browser allows it */
.split-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s4) var(--s6); }
.split-head h2 { font-size: var(--t-l); margin-top: var(--s3); }
@media (min-width: 901px) { .split-head > div:first-child { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; } }
@media (max-width: 900px) { .split-head { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding-block: var(--s3); cursor: pointer; list-style: none;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2);
  background:
    linear-gradient(var(--text), var(--text)) center / 0.85rem 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 0.85rem no-repeat;
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.faq summary:hover::after { background-color: var(--surface-2); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.6s var(--ease-out), content-visibility 0.6s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { padding-bottom: var(--s3); max-width: 58ch; color: var(--text-2); }
.faq details p a { text-underline-offset: 3px; color: var(--text); }

/* --- contact page --------------------------------------------------------- */
.routes { border-top: 1px solid var(--line-2); }
.route {
  position: relative; display: grid; grid-template-columns: 4rem minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center; gap: var(--s2) var(--s4);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0; border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.route::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--bg-2);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease-out);
}
.route:hover::before { transform: scaleY(1); }
.route__no { font-size: var(--t-small); font-weight: 600; color: var(--text-3); }
.route h2 { font-size: clamp(1.7rem, 3.4vw, 3rem); letter-spacing: -0.045em; }
.route p { color: var(--text-2); }
.route__act { justify-self: end; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.route__act .link { font-size: 1.05rem; }
@media (max-width: 900px) {
  .route { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .route p, .route__act { grid-column: 2; justify-self: start; }
}
.topics { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.topics legend { width: 100%; margin-bottom: 0.6rem; font-size: var(--t-small); font-weight: 600; color: var(--text); }
.topics legend span { font-weight: 400; color: var(--text-3); }
.topics label { position: relative; cursor: pointer; }
.topics input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topics label span {
  display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: var(--t-small); color: var(--text-2); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.topics label:hover span { border-color: var(--text-3); color: var(--text); }
.topics input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.topics input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
@media (max-width: 900px) { .topics { grid-column: 2; } .route--main .route__act { order: 1; } }
/* the call is the main route; email and phone sit below it, smaller */
.route--main { padding-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.routes__aside { padding: var(--s4) 0 var(--s1); font-size: var(--t-small); font-weight: 600; color: var(--text-3); border-bottom: 1px solid var(--line); }
.route--minor { padding: clamp(1.1rem, 2.4vw, 1.6rem) 0; }
.route--minor h2 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.03em; }
.route--minor p { font-size: var(--t-small); }
.note { margin-top: var(--s4); font-size: var(--t-small); color: var(--text-3); }

.callsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); counter-reset: cs; }
.callsteps li { padding-top: var(--s3); border-top: 1px solid var(--line-2); font-size: 1.125rem; line-height: 1.5; counter-increment: cs; }
.callsteps li::before { content: "0" counter(cs); display: block; margin-bottom: var(--s3); font-size: var(--t-small); font-weight: 600; color: var(--text-3); }
.practical { margin-top: var(--s6); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.practical dt { font-size: var(--t-small); color: var(--text-3); margin-bottom: 0.35rem; }
.practical dd { font-weight: 500; }
@media (max-width: 900px) { .callsteps { grid-template-columns: 1fr; } .practical { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- legal prose ---------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose__meta { font-size: var(--t-small); color: var(--text-3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); margin-bottom: var(--s4); }
.prose h2 { font-size: var(--t-m); letter-spacing: -0.025em; margin: var(--s5) 0 var(--s2); }
.prose h3 { font-size: 1.125rem; margin: var(--s4) 0 var(--s1); }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose p + p { margin-top: var(--s2); }
.prose ul, .prose ol { padding-left: 1.2rem; margin-top: var(--s2); display: grid; gap: 0.6rem; }
.prose a { text-underline-offset: 3px; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin-top: var(--s3); font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }

/* --- 404 list ------------------------------------------------------------- */
.pages { border-top: 1px solid var(--line); }
.pages a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: baseline;
  padding-block: var(--s3); border-bottom: 1px solid var(--line); text-decoration: none;
}
.pages b { font-size: var(--t-m); font-weight: 600; letter-spacing: -0.025em; transition: color 0.3s; }
.pages span { color: var(--text-3); font-size: var(--t-small); }
.pages a:hover b { color: var(--text-2); }

/* --- footer --------------------------------------------------------------- */
.foot { background: var(--bg-2); box-shadow: inset 0 1px 0 var(--line); padding-top: clamp(4rem, 8vw, 6.5rem); padding-bottom: clamp(1rem, 3vw, 2rem); overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
.foot__grid > div > p { max-width: 30ch; color: var(--text-2); }
.foot__col { display: grid; gap: 0.6rem; align-content: start; }
.foot__col a { text-decoration: none; width: fit-content; color: var(--text); transition: color 0.3s; }
.foot__col a:hover { color: var(--text-2); }
.foot__col .muted { color: var(--text-3); }
.foot__title { font-size: var(--t-small); color: var(--text-3); margin-bottom: 0.4rem; }
.foot__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3);
  margin-top: var(--s5); padding-block: var(--s3); border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--text-3);
}
.foot__legal a { display: inline-block; padding-block: 0.4rem; text-decoration: none; margin-right: 1rem; }
.foot__legal a:hover { color: var(--text); }
/* the giant wordmark: engraved metal, lit from above */
.foot__mark {
  display: block; font-size: min(18.2vw, 17rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.8;
  text-transform: uppercase; color: var(--line);
  margin-inline: -0.02em; white-space: nowrap; user-select: none;
}
.foot__mark .line__in {
  background: linear-gradient(180deg, #3A3934 0%, #141412 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.foot__mark.line { overflow: visible; padding-bottom: 0.03em; margin-bottom: 0; }
/* the giant wordmark is set tight (−0.06em), so its lens is smaller and the I gets less air */
.foot__mark .mark-i { margin-inline: 0.1em; }
.foot__mark .lens { --ring: 0.07em; transform: scale(0.86); opacity: 0.6; }
/* room in the reveal mask for the ring top and the handle, without moving the layout */
.foot__mark.line { padding-block: 0.06em 0.55em; margin-block: -0.06em 0; }
@media (forced-colors: active) { .foot__mark .line__in { -webkit-text-fill-color: CanvasText; background: none; } }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > div:first-child { grid-column: 1 / -1; } }

/* cards that also rise into view keep their own hover transitions */
.js-motion .reveal:is(.tile, .pcard, .fact, .rule, .pkg) {
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out),
              translate 0.6s var(--ease-out), border-color 0.5s var(--ease-out);
}

/* --- spotlight: cards catch the light where the cursor is ------------------
   script.js adds .spot and sets --mx/--my on fine pointers only; elsewhere nothing changes. */
.spot { position: relative; isolation: isolate; }
.spot::before, .spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.5s var(--ease-out);
}
.spot::after { z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 243, 238, 0.065), transparent 45%); }
.spot::before {
  z-index: 3; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 243, 238, 0.55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* --- small screens -------------------------------------------------------- */
@media (max-width: 700px) {
  .actions .btn { width: 100%; }
}
@media (max-width: 380px) {
  .svc__item { grid-template-columns: minmax(0, 1fr); }
  .svc__item p { grid-column: 1; }
  .route__act .btn { white-space: normal; text-align: center; padding: 0.75rem 1.2rem; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__grid > div:first-child { grid-column: auto; }
}
:root:not(.js) .nav { position: relative; }
:root:not(.js) .hero, :root:not(.js) .phero { padding-top: clamp(2rem, 6vw, 4rem); }
@media print {
  .nav, .chat-trigger, .chat-window, .machine__replay { display: none !important; }
  .js-motion .reveal, .js-motion .fade-late { opacity: 1; transform: none; }
  .js-motion .line__in, .js-motion [data-split] .w__in { transform: none; }
  .process.is-pinned { height: auto !important; }
  .process.is-pinned .process__pin { position: static; height: auto; overflow: visible; }
  .process.is-pinned .process__track { display: grid; width: auto; transform: none !important; }
  .process.is-pinned .step { width: auto; }
}

/* --- reduced motion: nothing moves, everything is there -------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
}

/* reviewpagina */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--s3); }
.review, .reviews__empty {
  display: grid; gap: var(--s2); align-content: start; margin: 0; padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 1.4rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair);
}
.review__stars { color: var(--text); letter-spacing: 0.15em; }
.review__text { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--text); }
.review__by { display: grid; gap: 0.2rem; font-size: 0.9rem; color: var(--text-2); }
.review__by b { color: var(--text); font-weight: 600; }
.review__by .link { justify-self: start; margin-top: var(--s1); }
.reviews__empty { grid-column: 1 / -1; max-width: 44rem; }
.reviews__empty h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.reviews__empty p { color: var(--text-2); }
