/* Omnia Studio, r5-white: pure white ground, ink type, cobalt the only accent. White-ceramic and cobalt blocks travel the page. */

@font-face {
  font-family: "Switzer";
  src: url("fonts/switzer-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #FFFFFF;
  --ink: #141414;
  --ink-2: #4E5057;       /* supporting text, 8.1:1 on white */
  --ink-3: #6B6D74;       /* meta text, 5.3:1 on white */
  --rule: #E7E8EC;        /* hairlines */
  --rule-2: #D3D5DB;      /* ghost-button rings, stronger lines */
  --cobalt: #1C33F0;      /* the only accent: active, hovered, now (7.6:1 on white) */
  --cobalt-hi: #3048FF;
  --cobalt-ink: #1428C8;  /* cobalt for small text and hairlines (9.6:1 on white) */
  --cobalt-wash: #EEF0FE; /* a cobalt tint for hover grounds */

  --M: clamp(16px, 3.2vw, 48px);
  --G: clamp(12px, 1.6vw, 24px);
  --sec: clamp(72px, 7vw, 116px);
  --bar-h: 72px;

  --f: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --f-wm: "Montserrat", "Switzer", sans-serif;

  --t-hero: clamp(2.625rem, 5.3vw + 0.3rem, 5.75rem);
  --t-xxl: clamp(2.5rem, 5vw, 5rem);
  --t-xl: clamp(2.125rem, 3.9vw, 3.75rem);
  --t-l: clamp(1.625rem, 2.4vw, 2.375rem);
  --t-m: clamp(1.25rem, 1.6vw, 1.5rem);
  --t-quote: clamp(1.75rem, 3.1vw, 3rem);
  --t-lead: clamp(1.125rem, 1.4vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-micro: 0.8125rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  color-scheme: light;
}
@media (max-width: 759px) {
  :root { --bar-h: 60px; --t-body: 1rem; --t-small: 0.875rem; --sec: 80px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 12px);
  background: var(--ground);
  scrollbar-color: var(--rule-2) var(--ground);
  scrollbar-width: thin;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: 0;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  caret-color: var(--cobalt);
}
::selection { background: var(--cobalt); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 10px; border: 3px solid var(--ground); }
::-webkit-scrollbar-thumb:hover { background: var(--cobalt); }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; border-radius: 4px; }
section[tabindex="-1"]:focus, section[tabindex="-1"]:focus-visible { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 60; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip:focus-visible { transform: none; }
.tnum { font-variant-numeric: tabular-nums; }

/* layering: the cursor light under the blocks, the blocks under every word */
.lay { position: relative; z-index: 2; }
#gl { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.gl-on #gl { opacity: 1; }

.wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--M); }

/* ---------- type roles ---------- */
.h-hero { font-size: var(--t-hero); font-weight: 500; letter-spacing: -0.038em; line-height: 0.98; text-wrap: balance; }
.h-xxl { font-size: var(--t-xxl); font-weight: 500; letter-spacing: -0.032em; line-height: 1; text-wrap: balance; }
.h-xl { font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.h-l { font-size: var(--t-l); font-weight: 500; letter-spacing: -0.024em; line-height: 1.08; text-wrap: balance; }
.lead { font-size: var(--t-lead); line-height: 1.45; color: var(--ink-2); max-width: 38ch; text-wrap: pretty; font-weight: 400; }
.body { color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.hint { font-size: var(--t-micro); color: var(--ink-3); letter-spacing: 0.005em; }
.note { font-size: var(--t-micro); color: var(--ink-3); margin-top: 20px; }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 520; letter-spacing: 0.01em; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-2); white-space: nowrap;
}

/* ---------- the mark (inline SVG, filled from links.js) ---------- */
.mk { overflow: visible; fill: currentColor; }
.mk .lk { transition: transform .5s var(--ease), fill .3s var(--ease), opacity .3s var(--ease); }

/* ---------- header ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--M);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.bar.scrolled { background: rgba(255, 255, 255, 0.94); border-bottom-color: var(--rule); }
.wm { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); padding: 10px 0; min-height: 44px; }
.wm-tilt { display: block; perspective: 120px; }
.wm-mk { width: 30px; height: 30px; transform-style: preserve-3d; }
.wm-text { font-family: var(--f-wm); font-weight: 400; font-size: 12.5px; letter-spacing: 0.42em; margin-right: -0.42em; white-space: nowrap; transition: letter-spacing .5s var(--ease); }
.wm:hover .wm-text, .wm:focus-visible .wm-text { letter-spacing: 0.5em; }
.wm:hover .wm-mk .lk-A, .wm:focus-visible .wm-mk .lk-A { transform: translate(0, -92px); }
.wm:hover .wm-mk .lk-B, .wm:focus-visible .wm-mk .lk-B { transform: translate(-80px, 46px); }
.wm:hover .wm-mk .lk-C, .wm:focus-visible .wm-mk .lk-C { transform: translate(80px, 46px); }
.wm-mk .lk.now { fill: var(--cobalt); }

.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); margin-left: auto; }
.nav a { position: relative; font-size: 0.9375rem; font-weight: 460; color: var(--ink-2); padding: 12px 0; transition: color .25s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--cobalt); transform: scaleX(0); transform-origin: right; transition: transform .42s var(--ease); }
.nav a:hover, .nav a:focus-visible, .nav a.now { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav a.now::after { transform: scaleX(1); background: var(--ink); }

.lang { position: relative; display: flex; gap: 2px; margin-left: clamp(8px, 2vw, 28px); }
.lang button { min-width: 44px; height: 44px; font-size: 0.8125rem; font-weight: 560; letter-spacing: 0.06em; color: var(--ink-3); transition: color .25s, transform .5s var(--ease); }
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang button:hover { color: var(--cobalt); }
.lang-bar { position: absolute; left: 0; bottom: 6px; width: 44px; height: 1px; background: var(--cobalt); transition: transform .45s var(--ease); pointer-events: none; }
html[lang="nl"] .lang-bar { transform: translateX(46px); }
@media (max-width: 899px) { .nav { display: none; } .lang { margin-left: auto; } }

/* ---------- buttons: glyph links interlock on hover; magnetic on laptops ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 26px 0 20px; border-radius: 999px;
  font-size: 1rem; font-weight: 520; letter-spacing: -0.004em; white-space: nowrap;
  transition: color .3s var(--ease), box-shadow .3s var(--ease), transform .55s var(--ease);
}
.btn > span { display: inline-block; transition: transform .55s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(102%); transition: transform .48s var(--ease); }
.btn .glyph { width: 22px; height: 22px; flex: none; }
.glyph .lk { transition: transform .46s var(--ease); }
.glyph .lk-A { transform: translate(0, -168px); }
.glyph .lk-B { transform: translate(-146px, 84px); }
.glyph .lk-C { transform: translate(146px, 84px); }
.btn:hover .glyph .lk, .btn:focus-visible .glyph .lk, .btn:active .glyph .lk { transform: none; }
.btn:active { transform: scale(.98) !important; }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 10px 22px -14px rgba(14, 18, 40, 0.55); }
.btn-primary::before { background: var(--cobalt-hi); }
.btn-primary:hover::before, .btn-primary:focus-visible::before { transform: none; }
.btn-primary:hover { box-shadow: 0 16px 28px -14px rgba(14, 18, 40, 0.6); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover::before, .btn-ghost:focus-visible::before { transform: none; }
.btn small { font-size: 0.875rem; font-weight: 420; color: inherit; opacity: .72; margin-left: 2px; font-variant-numeric: tabular-nums; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.btn:hover .ico-call, .btn:focus-visible .ico-call { transform: rotate(-14deg); }
.btn:hover .ico-chat, .btn:focus-visible .ico-chat { transform: translateY(-2px) rotate(-6deg); }
.ico-mail .flap { transition: transform .45s var(--ease); transform-origin: 10px 6px; }
.btn:hover .ico-mail .flap, .btn:focus-visible .ico-mail .flap { transform: translateY(2px); }

.tl { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; padding: 12px 0; margin: -6px 0; min-height: 44px; }
.tl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--rule-2); }
.tl::before { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--cobalt); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); z-index: 1; }
.tl:hover, .tl:focus-visible { color: var(--cobalt-ink); }
.tl:hover::before, .tl:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.tl .arr { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.5; fill: none; transition: transform .4s var(--ease); }
.tl:hover .arr, .tl:focus-visible .arr { transform: translate(3px, -3px); }

/* ---------- 1. hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--bar-h) + 24px) var(--M) 88px; overflow: clip; }
.pile { position: absolute; top: calc(var(--bar-h) + 1vh); bottom: 48px; right: 0; width: 50vw; z-index: 0; touch-action: pan-y; }
.still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1; transition: opacity .7s var(--ease); }
.gl-live .still { opacity: 0; }
.hero-in { max-width: min(58vw, 900px); }
.h-hero { max-width: 8.6em; }
.h-hero .hw { position: relative; display: inline-block; cursor: default; color: var(--ink); transition: color .3s var(--ease); }
.h-hero .hw::after { content: ""; position: absolute; left: 0.2em; right: 0.22em; bottom: 0.12em; height: 0.055em; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.h-hero .hw.on { color: var(--cobalt); }
.h-hero .hw.on::after { transform: scaleX(1); }
.h-hero .w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.h-hero .wi { display: inline-block; will-change: transform; }
.h-hero.in .w { overflow: visible; }
.h-hero .hw { padding: 0.1em 0.2em; margin: -0.1em -0.2em; }
.hero-sub { margin-top: clamp(20px, 2.4vw, 30px); font-size: var(--t-lead); color: var(--ink-2); max-width: 30ch; line-height: 1.42; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: clamp(26px, 3.2vw, 42px); }
.hero .hint { position: absolute; left: var(--M); bottom: 26px; }
@media (max-width: 759px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: var(--bar-h) var(--M) 56px; min-height: auto; }
  .pile { position: relative; inset: auto; width: calc(100% + 2 * var(--M)); margin: 0 calc(-1 * var(--M)); height: min(42svh, 340px); flex: none; }
  .hero-in { max-width: none; margin-top: 2px; }
  .h-hero { font-size: clamp(2.375rem, 10.6vw, 2.75rem); }
  .hero-sub { margin-top: 16px; font-size: 1.125rem; }
  .hero-cta { margin-top: 24px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero .hint { position: static; margin-top: 20px; }
}

/* ---------- 2. the three sides: the mark in the middle, the three sides around it (r5-paper) ---------- */
.sides { position: relative; padding-block: clamp(40px, 4vw, 64px) 0; }
.sides-stage { position: relative; height: clamp(570px, 70vh, 630px); }
.sides-head { position: absolute; left: 0; top: 0; width: 30%; }
.sides-head .lead { margin-top: 20px; max-width: 26ch; }
.mark3 { position: absolute; left: 33%; width: 41%; top: 2%; height: 96%; }
.flat3 { display: none; }
/* leader lines: each label is tied to the outer edge of its own link, always drawn; the active one runs in cobalt */
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; pointer-events: none; }
.leaders path { fill: none; stroke-width: 1; }
.leaders .ld-base { stroke: var(--rule-2); transition: opacity .35s var(--ease); }
.leaders .ld-run { stroke: var(--cobalt); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); }
.leaders g.on .ld-run { stroke-dashoffset: 0; }
.leaders circle { fill: #fff; stroke: var(--ink-3); stroke-width: 1; transition: fill .8s var(--ease), stroke .8s var(--ease), opacity .8s var(--ease), r .9s var(--ease); }
.leaders g.on circle { fill: var(--cobalt); stroke: var(--cobalt); r: 4.5; }
.leaders g.off .ld-base, .leaders g.off circle { opacity: .38; }
.no-gl .flat3 { display: block; position: absolute; inset: 10%; width: 80%; height: 80%; color: #D9DCE4; }
.no-gl .flat3 .lk { fill: #D9DCE4; transition: transform .5s var(--ease); }
.no-gl .sides-stage[data-side="A"] .flat3 .lk-A, .no-gl .sides-stage[data-side="B"] .flat3 .lk-B, .no-gl .sides-stage[data-side="C"] .flat3 .lk-C { fill: var(--cobalt); }
.no-gl .sides-stage[data-side="A"] .flat3 .lk-A { transform: translate(0, -60px); }
.no-gl .sides-stage[data-side="B"] .flat3 .lk-B { transform: translate(-52px, 30px); }
.no-gl .sides-stage[data-side="C"] .flat3 .lk-C { transform: translate(52px, 30px); }
.side { position: absolute; width: 23%; cursor: default; outline-offset: 8px; }
.side > * { transition: opacity .9s var(--ease); }
.side-C { transition: translate 1s var(--ease); }
.side-A { right: 0; top: 4%; width: 25%; }
.side-C { right: 0; top: 54%; width: 21%; }
.side-B { left: 0; top: 54%; width: 27%; }
.side-h { font-size: var(--t-l); font-weight: 500; letter-spacing: -0.024em; line-height: 1.08; }
/* the name: on hover a cobalt copy of it wipes across from the left while the name steps toward its link */
.side-hi { position: relative; display: inline-block; color: var(--ink); transition: transform 1.2s var(--ease); }
.side-hi::after { content: attr(data-t); position: absolute; left: 0; top: 0; color: var(--cobalt); white-space: nowrap; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease); }
.side-B .side-hi::after { clip-path: inset(0 0 0 100%); }
.side.on .side-hi::after { clip-path: inset(0 0 0 0); }
.side-A.on .side-hi, .side-C.on .side-hi { transform: translateX(8px); }
.side-B.on .side-hi { transform: translateX(-8px); }
.side-p { margin-top: 12px; color: var(--ink-3); max-width: 30ch; font-size: var(--t-small); line-height: 1.5; transition: color .8s var(--ease); }
.side-items { margin-top: 14px; }
.side-items li { position: relative; padding: 6px 0 7px; border-top: 1px solid var(--rule); font-size: var(--t-small); color: var(--ink-2); clip-path: inset(0 0 100% 0); transform: translateY(10px); transition: clip-path .9s var(--ease), transform 1.2s var(--ease), color .6s var(--ease); }
.side-items li::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.side-B .side-items li::after { transform-origin: right; }
.side-items li:last-child { border-bottom: 1px solid var(--rule); }
.side.on .side-p { color: var(--ink-2); }
.side.on .side-items li { clip-path: inset(-2px 0 0 0); transform: none; }
.side.on .side-items li:first-child::after { transform: scaleX(1); }
.side.on .side-items li:nth-child(2) { transition-delay: .1s; }
.side.on .side-items li:nth-child(3) { transition-delay: .2s; }
.side.on .side-items li:nth-child(4) { transition-delay: .3s; }
.side.on .side-items li:nth-child(5) { transition-delay: .4s; }
.side.off > * { opacity: .38; }
@media (max-width: 899px) {
  /* phones: the mark, the three names and one shared detail area below them fit one screen. The detail area has a
     fixed height (the tallest of the three, measured in main.js), so nothing moves while the sides take turns. */
  .sides-stage { height: auto; padding-bottom: calc(var(--more-h, 200px) + 18px); }
  .sides-head { position: static; width: auto; }
  .leaders { display: none; }
  .mark3 { position: relative; left: auto; top: auto; width: 100%; height: min(52vw, 212px); margin-top: 10px; }
  .side { position: static; inset: auto; width: auto; padding: 12px 0 13px; border-top: 1px solid var(--rule); cursor: pointer; min-height: 44px; }
  .side-B { width: auto; border-bottom: 1px solid var(--rule); }
  .side-h { font-size: 1.375rem; }
  .side-B .side-hi::after { clip-path: inset(0 100% 0 0); }
  .side-B.on .side-hi { transform: translateX(8px); }
  .side-more { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none; transition: opacity .8s var(--ease), transform 1.1s var(--ease), visibility 0s .8s; }
  .side.on .side-more { opacity: 1; visibility: visible; transform: none; transition: opacity .8s var(--ease), transform 1.1s var(--ease), visibility 0s; }
  .side-p { margin-top: 0; color: var(--ink-2); }
  .side-items { margin-top: 10px; }
  .side-items li, .side-items li:last-child { display: inline; padding: 0; border: 0; font-size: 0.875rem; line-height: 1.6; color: var(--ink-3); clip-path: none; transform: none; }
  .side-items li::after { display: none; }
  .side-items li:not(:last-child)::before { content: none; }
  .side-items li:not(:last-child)::after { display: inline; content: " · "; position: static; background: none; transform: none; color: var(--rule-2); }
  .side.off > .side-h { opacity: 1; }
  .side:not(.on) > .side-more { opacity: 0; visibility: hidden; }
  .side.off .side-hi { color: var(--ink-3); }
}

/* ---------- 3. founders ---------- */
.team { position: relative; padding-top: calc(var(--sec) - 48px); overflow: clip; }
.team-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--G); align-items: end; }
.team-head h2 { grid-column: 1 / span 6; max-width: 9em; }
.team-head .lead { grid-column: 8 / span 5; }
.team-stage { position: relative; display: grid; grid-template-columns: repeat(2, min(440px, 38vw)); justify-content: center; column-gap: clamp(72px, 10vw, 168px); margin-top: clamp(96px, 9vw, 144px); }
.founder { position: relative; display: flex; flex-direction: column; }
.founder .fig { position: relative; aspect-ratio: 1 / 1; width: 100%; overflow: clip; }
.founder img { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; transform-origin: 50% 100%; transition: transform .7s var(--ease); }
.founder figcaption { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 16px 2px 0; border-top: 1px solid var(--ink); }
.founder .f-name { font-size: var(--t-m); font-weight: 500; letter-spacing: -0.016em; position: relative; justify-self: start; }
.founder .f-name::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--cobalt); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.founder .f-role { color: var(--ink-2); font-size: var(--t-small); }
.founder .f-wa { grid-column: 1 / -1; justify-self: start; font-size: var(--t-small); color: var(--ink-2); margin-top: 0; }
/* who they are: two or three facts under the name, set as a quiet hairline list (no frames, no badges) */
.founder .f-facts { grid-column: 1 / -1; margin-top: 14px; }
.founder .f-facts li { position: relative; padding: 9px 0 10px 18px; border-top: 1px solid var(--rule); font-size: var(--t-small); line-height: 1.42; color: var(--ink); text-wrap: pretty; }
.founder .f-facts li::before { content: ""; position: absolute; left: 1px; top: 16px; width: 6px; height: 6px; background: var(--cobalt); transform: rotate(45deg); }
.founder .f-facts li:last-child { border-bottom: 1px solid var(--rule); }
.founder .f-facts b { font-weight: 600; color: var(--cobalt-ink); }
.founder .f-langs { grid-column: 1 / -1; margin-top: 10px; font-size: var(--t-micro); color: var(--ink-3); }
.founder:hover img { transform: scale(1.02); }
.founder:hover .f-name::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 899px) {
  .team-head h2, .team-head .lead { grid-column: 1 / -1; }
  .team-head .lead { margin-top: 18px; }
  .team-stage { grid-template-columns: 1fr; row-gap: 104px; margin-top: 84px; justify-content: stretch; }
  .founder.f0 { width: 86%; }
  .founder.f1 { width: 86%; margin-left: 14%; }
}

/* ---------- 4. work: the folder pack ---------- */
.work { position: relative; padding-top: var(--sec); }
.work-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--G); align-items: end; }
.work-head h2 { grid-column: 1 / span 5; }
.work-head .body { grid-column: 7 / span 5; }
.pack-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--G); align-items: center; margin-top: clamp(8px, 2vw, 24px); }
.pack { grid-column: 1 / span 7; position: relative; height: clamp(520px, 46vw, 660px); touch-action: pan-y; cursor: default; outline-offset: -8px; -webkit-user-select: none; user-select: none; }
.pk-cam { position: absolute; inset: 0; }
.pk-scene { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.pf { position: absolute; left: 0; top: 0; display: block; transform-origin: 0 0; }
.pf-shadow { background: rgba(11, 16, 40, 0.13); filter: blur(10px); border-radius: 12px; }
.pf-floor { background: #E3E5EA; }
.pf-back { background: linear-gradient(180deg, #F3F4F7 0%, #E6E8ED 100%); box-shadow: inset 0 0 0 1px #D9DCE2, inset 0 -18px 22px -14px rgba(20, 26, 48, 0.16); }
.pf-left-in { background: linear-gradient(180deg, #ECEEF2 0%, #DDE0E6 100%); box-shadow: inset 0 0 0 1px #D3D6DD, inset 0 -18px 22px -14px rgba(20, 26, 48, 0.18); }
.pf-front { background: linear-gradient(180deg, #FFFFFF 0%, #F2F3F6 100%); box-shadow: inset 0 0 0 1px #D2D5DC, inset 0 10px 10px -10px rgba(20, 26, 48, 0.14); }
.pf-right { background: linear-gradient(180deg, #E6E8ED 0%, #D7DAE1 100%); box-shadow: inset 0 0 0 1px #C9CDD5, inset 0 10px 10px -10px rgba(20, 26, 48, 0.16); }
.pf-rim { background: #FFFFFF; box-shadow: inset 0 0 0 1px #D2D5DC; }
.pl { position: absolute; left: 0; top: 0; }
.pl > * { position: absolute; left: 0; top: 0; display: block; transform-origin: 0 0; }
.pl-face { overflow: hidden; background: #F3F4F6; background: color-mix(in srgb, var(--edge) 34%, #F4F5F7); border: 1px solid rgba(20, 20, 20, 0.14); }
.pl-face img:not([src]) { visibility: hidden; }
.pl-face img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transform-origin: 50% 50%; opacity: 0; }
.pl-top { background: var(--edge); }
.pl-side { background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--edge); }
.pl.up .pl-face { box-shadow: 0 0 0 1px var(--edge), 0 26px 30px -18px rgba(11, 16, 40, 0.42); }
.pack.over { cursor: pointer; }
.pack-rest { position: absolute; width: 1px; height: 1px; }
.pack-hint { position: absolute; left: 0; bottom: 4px; z-index: 3; transition: opacity .6s var(--ease); }
html.fine .pack-hint { opacity: 0; }
html.fine .pack-hint.show { opacity: 1; }
.pack-info { grid-column: 9 / span 4; align-self: center; }
.pi-name { margin-bottom: 12px; }
.pi-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--ink-2); font-size: var(--t-small); }
.pi-note { margin-top: 18px; max-width: 34ch; min-height: 4.8em; }
.pack-info .tl { margin-top: 18px; }
@media (max-width: 899px) {
  .work-head h2, .work-head .body { grid-column: 1 / -1; }
  .work-head .body { margin-top: 16px; }
  .pack-grid { grid-template-columns: minmax(0, 1fr); }
  .pack { grid-column: 1; height: min(108vw, 440px); }
  .pack-info { grid-column: 1; margin-top: 8px; }
  .pi-note { min-height: 0; }
}

/* ---------- 5. three examples ---------- */
.demos { position: relative; padding-top: var(--sec); }
.demos-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--G); align-items: end; }
.demos-head h2 { grid-column: 1 / span 6; max-width: 12em; }
.demos-head .body { grid-column: 8 / span 5; }
@media (max-width: 899px) {
  .demos-head h2, .demos-head .body { grid-column: 1 / -1; }
  .demos-head .body { margin-top: 14px; max-width: 34em; }
  .demos-mark { display: none; }
}
/* ---------- 6. sample testimonials ---------- */
.quotes { position: relative; padding-top: calc(var(--sec) + 48px); }
.q-stage { position: relative; padding: 8px 0 0 clamp(84px, 9vw, 144px); display: flex; flex-direction: column; outline-offset: 8px; }
.q-mark { position: absolute; left: clamp(20px, 2.6vw, 40px); top: 26px; width: 1px; height: 1px; }
.q-quote { font-size: var(--t-quote); font-weight: 450; letter-spacing: -0.026em; line-height: 1.14; max-width: 24em; text-wrap: balance; color: var(--ink); min-height: 3.5em; }
.q-quote p::before { content: "“"; color: var(--cobalt); margin-left: -0.42em; padding-right: 0.04em; }
.q-quote p::after { content: "”"; color: var(--cobalt); }
.q-who { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: clamp(20px, 2.2vw, 30px); color: var(--ink-2); font-size: var(--t-small); }
.tag-sample { color: var(--cobalt-ink); box-shadow: inset 0 0 0 1px rgba(28, 51, 240, 0.35); }
.q-zones { position: relative; display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 32px); margin-top: auto; padding-top: clamp(34px, 3.6vw, 48px); }
.q-dots { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.q-z { text-align: left; display: grid; gap: 10px; padding: 10px 0; min-height: 44px; color: var(--ink-3); font-size: var(--t-micro); transition: color .3s var(--ease); cursor: pointer; }
.q-z i { display: block; height: 2px; background: var(--rule); border-radius: 2px; position: relative; overflow: hidden; }
.q-z i::after { content: ""; position: absolute; inset: 0; background: var(--cobalt); transform: scaleX(0); transform-origin: left; }
.q-z.on { color: var(--ink); }
.q-z.on i::after { transform: scaleX(var(--p, 0)); }
.q-z.on i { background: var(--rule-2); }
html.reduced-q .q-z.on i::after { transform: none; }
.q-z:hover { color: var(--cobalt-ink); }
.q-arrows { display: flex; gap: 12px; flex: none; }
.q-arr { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--rule-2); transition: box-shadow .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease); }
.q-arr svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
@media (hover: hover) {
  .q-arr:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
  .q-prev:hover svg { transform: translateX(-2px); }
  .q-next:hover svg { transform: translateX(2px); }
}
.q-arr:active { transform: scale(.96); }
.q-hint { position: absolute; right: 0; top: 4px; }
.q-note { margin-left: clamp(84px, 9vw, 144px); margin-top: 18px; }
@media (max-width: 759px) {
  .q-stage { padding-left: 0; padding-top: 72px; }
  .q-zones { flex-direction: column; align-items: stretch; gap: 8px; }
  .q-arrows { justify-content: flex-end; }
  .q-mark { left: 28px; top: 24px; }
  .q-note { margin-left: 0; }
  .q-hint { position: static; grid-column: 1 / -1; }
  .q-quote { min-height: 0; }
}

/* ---------- 7. how it works: r5-paper's stair, paced so each step holds long enough to read ---------- */
.how { position: relative; padding-top: var(--sec); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--G); margin-top: clamp(120px, 11vw, 160px); }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--rule-2); color: var(--ink-3); transform: translateY(calc((3 - var(--i, 0)) * 36px)); transition: color .6s var(--ease); cursor: default; }
.step:nth-child(1) { --i: 0; } .step:nth-child(2) { --i: 1; } .step:nth-child(3) { --i: 2; } .step:nth-child(4) { --i: 3; }
.step .st-pt { position: absolute; left: 46px; top: -62px; width: 1px; height: 1px; }
.step .st-no { display: block; font-size: var(--t-micro); font-weight: 560; color: var(--ink-3); transition: color .6s var(--ease); }
.step h3 { margin-top: 10px; font-size: var(--t-m); font-weight: 520; letter-spacing: -0.016em; line-height: 1.2; color: var(--ink-2); transition: color .6s var(--ease); }
.step p { margin-top: 10px; font-size: var(--t-small); max-width: 30ch; transition: color .6s var(--ease); }
/* the rule of the current step draws in cobalt over the whole time it holds, so the pace is visible */
.step::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--cobalt); transform: scaleX(0); transform-origin: left; }
.step.now::before { transform: scaleX(var(--hold, 1)); }
.step.done::before { transform: scaleX(1); background: var(--ink); }
.step.now, .step.now h3 { color: var(--ink); }
.step.now p { color: var(--ink-2); }
.step.now .st-no { color: var(--cobalt-ink); }
.step.done h3 { color: var(--ink); }
@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .step { transform: none; padding: 16px 0 18px 84px; }
  .step .st-pt { left: 34px; top: 46px; }
}

/* ---------- 8. contact ---------- */
.contact { position: relative; padding-block: var(--sec) clamp(48px, 5vw, 80px); }
.ct-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--G); align-items: center; }
.ct-text { grid-column: 1 / span 6; }
.ct-text .lead { margin-top: 20px; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 16px 20px; margin-top: clamp(28px, 3vw, 40px); }
.ct-mark { grid-column: 7 / span 6; position: relative; height: clamp(380px, calc(100svh - 300px), 600px); touch-action: pan-y; }
.ct-flat { display: none; position: absolute; left: 50%; top: 50%; width: 60%; transform: translate(-50%, -50%); color: var(--cobalt); }
.no-gl .ct-flat { display: block; }
.ct-hint { position: absolute; right: 0; bottom: -8px; white-space: nowrap; z-index: 3; }
@media (max-width: 899px) {
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-text { grid-column: 1; }
  .ct-mark { grid-column: 1; grid-row: 2; height: min(84vw, 340px); }
}

/* ---------- footer ---------- */
.foot { position: relative; padding: 28px 0 32px; border-top: 1px solid var(--rule); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.foot-t { color: var(--ink-3); font-size: var(--t-micro); }
.foot-top { font-size: var(--t-small); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation-duration: .01s !important; }
}

/* ---------- phones: a tighter rhythm, so the page stays short on a 664 px Safari screen ---------- */
@media (max-width: 759px) {
  .foot { padding: 20px 0 22px; }
  .foot-in { gap: 10px 20px; }
  .quotes { padding-top: var(--sec); }
  .q-stage { padding-top: 56px; }
  .contact { padding-block: 64px 36px; }
  .ct-mark { height: min(76vw, 300px); }
  .work { padding-top: 64px; }
  .demos { padding-top: 64px; }
}

/* ---------- the cursor trail: a chain of the mark's links on one canvas (never a circle); desktop pointers only ---------- */
.cft { position: fixed; left: 0; top: 0; z-index: 70; width: 100vw; height: 100vh; pointer-events: none; display: none; }
html.has-cf .cft { display: block; }
@media (hover: none), (prefers-reduced-motion: reduce) { .cft { display: none !important; } }
