/* Pybase website: "the thread". One stylesheet for every page (the case study adds assets/case-study.css).
   World: the brand's own thread (threads.js) in deep, woven water. Every dark ground is a shade of the
   palette's abyss with a fine basket weave and grain in it; the grounds flow into each other with no seam,
   and their pools of light walk through the palette down the page (deep, teal, sky, ocean, deep). About is
   a sheet of paper laid on the water. The only light on the page comes from the threads and those pools:
   the interface itself never glows. Depth comes from layers: threads pass behind the statement plate.
   Colour: one family. The deep blues are the ground, the logo's cyan is the accent for every action, and
   violet with its blues (indigo, azure) is the second voice: a few strands in every thread, each service's
   branch, a light in the dark grounds, and the product and client cards. Archivo
   throughout, wide for headings and normal for text. 1px cool rules, 4px corners. Buttons speak in lines:
   an arrow whose shaft pulls longer, an underline drawn like a thread. */

@font-face { font-family: Archivo; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('assets/fonts/ArchivoVariable-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Archivo; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('assets/fonts/ArchivoVariable-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Night: shades of abyss, deepest first. --black keeps its name for the shared pages; it is night now. */
  --night-0: #000c10;
  --night-1: #00151d;
  --night-2: #011f2a;
  --black: var(--night-1);
  --raised: #032a3b;
  --ink: #f1f7fa;
  --body: #c7d6dc;
  --muted: #a6bcc6;
  --faint: #86a3ae;
  --line: rgba(122,210,228,.13);
  --line-strong: rgba(122,210,228,.22);
  --line-control: rgba(140,216,232,.36);
  --dev-warn: #ffb35c;
  --error-line: #ffb9ad;
  --error-text: #ffc1b5;
  --disabled-fill: #18302c;
  --disabled-text: #b4c9c3;
  --scrollbar: #1d4253;
  /* The weave: a basket weave of hairlines, 8px, seen only up close; the grain under it keeps the gradients from banding. */
  --weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%238cd8e8' fill-opacity='.032' d='M0 .5h4v1H0zM0 2.5h4v1H0zM4.5 0h1v4h-1zM6.5 0h1v4h-1zM.5 4h1v4h-1zM2.5 4h1v4h-1zM4 4.5h4v1H4zM4 6.5h4v1H4z'/%3E%3C/svg%3E");
  --weave-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%2301557c' fill-opacity='.035' d='M0 .5h4v1H0zM0 2.5h4v1H0zM4.5 0h1v4h-1zM6.5 0h1v4h-1zM.5 4h1v4h-1zM2.5 4h1v4h-1zM4 4.5h4v1H4zM4 6.5h4v1H4z'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .48 0 0 0 0 .82 0 0 0 0 .89 0 0 0 .028 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  --mint: #26fade;
  /* The accent (founder 2026-11-24): the logo's cyan carries every action (buttons, links, focus,
     selection, "tied."); violet (--violet) carries the small touches: numbers, stage dots, the link
     underline, the light pools and the threads' second colour. */
  --accent: #00f2fd;
  --accent-hover: #a6f8ff;
  --violet-soft: #b39bff;
  --cyan: #00f2fd;
  --sky: #01a9dd;
  --ocean: #0179ad;
  --turquoise: #13e4ce;
  --teal: #01b5b2;
  --deep: #01557c;
  --abyss: #012f40;
  --paper: #f3f8fa;
  --action-ink: #001716;
  --font: Archivo, "Segoe UI", system-ui, sans-serif;
  --wide: 118%;
  --ease: cubic-bezier(.16,1,.3,1);
  --glide: cubic-bezier(.65,0,.35,1);
  /* Violet and its blues: the second voice, never on text or controls (threads.js carries their strand tints). */
  --violet: #7b3ff2;
  --indigo: #5a5cf2;
  /* Dust: a coarse grain laid over the warm surfaces (overlay), the texture of the reference's gradients. */
  --dust: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23d)'/%3E%3C/svg%3E");
  /* Grit: a harder, higher-contrast grain laid over the dust on the product cards, for more of a hand-made texture. */
  --grit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncG type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncB type='linear' slope='2.2' intercept='-.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  --slow: cubic-bezier(.2,.7,.2,1);
  --container: 1280px;
  --gutter: clamp(20px,5.55vw,80px);
  --header-h: 64px;
  --section-breath: clamp(36px,3.6vw,52px);
  --type-hero: clamp(48px,6.5vw,96px);
  color-scheme: dark;
}

/* ---------- base ---------- */
*,*::before,*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--black); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); scrollbar-color: var(--scrollbar) var(--black); scrollbar-width: thin; }
body { margin: 0; background: var(--grain), var(--black); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
h1,h2,h3,h4,p,figure,dl,dd,ol,ul,blockquote { margin: 0; }
ol,ul { padding: 0; }
h1,h2,h3,h4 { font-stretch: var(--wide); font-weight: 620; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
p { max-width: 68ch; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; -webkit-tap-highlight-color: transparent; }
button,input,select,textarea { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--action-ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border: 3px solid var(--black); border-radius: 10px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 1100; padding: 14px 22px; border-radius: 4px; background: var(--accent); color: var(--action-ink); font-weight: 600; }
.skip-link:focus { top: 14px; }
.nowrap { white-space: nowrap; }

/* The thread scenes: decorative canvases behind their chapter's content (threads.js). */
.threads { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; }

/* ---------- grounds ----------
   A section takes a ground by remapping the tokens; everything inside follows.
   Paper: mint cannot be read on it (1.24:1), so links, icons, focus and selection take deep (7.57:1). */
.ground-paper {
  --black: var(--paper); --raised: #e7eef1;
  --ink: #0a161b; --body: #304048; --muted: #52636c; --faint: #65747c;
  --line: #d7e0e3; --line-strong: #bac6cc; --line-control: #73838b;
  --accent: var(--deep); --accent-hover: var(--abyss); --violet-soft: #5b2bd0; --cyan: var(--ocean); --sky: var(--ocean); --action-ink: #fff;
  --dim: #71858e;
  background: var(--black); color: var(--ink); color-scheme: light;
}
.ground-abyss {
  --black: var(--abyss); --raised: #013a4f;
  --line: #1d4658; --line-strong: #2d5a6e; --line-control: #4c7d92;
  --body: #d3e3ea; --muted: #b3c6cf; --faint: #9cb4bf;
  background: var(--black);
}

/* ---------- header ----------
   64px, black, no rule until the page has moved. A pill marks the chapter in view and slides to the next. */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); background: transparent; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), background-color .25s var(--ease); }
.is-scrolled .site-header,.case-page .site-header { background: var(--night-1); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 100%; }
.brand-link { display: inline-flex; flex: none; margin-left: -6px; }
.brand-lockup { width: 116px; height: 58px; object-fit: contain; }
.main-navigation { position: relative; display: flex; align-items: center; gap: 2px; }
.main-navigation > a { position: relative; z-index: 1; display: flex; align-items: center; min-height: 44px; padding-inline: 14px; font-size: 14px; font-weight: 500; color: var(--body); transition: color .15s var(--ease); }
.main-navigation > a.is-current { color: var(--ink); }
.nav-ink { position: absolute; left: 0; top: 50%; width: var(--ink-w,0px); height: 34px; margin-top: -17px; border-radius: 999px; background: rgba(241,247,250,.09); opacity: var(--ink-o,0); transform: translateX(var(--ink-x,0px)); transition: transform .3s var(--ease), width .3s var(--ease), opacity .15s linear; pointer-events: none; }
.main-navigation .nav-contact { gap: 10px; min-height: 40px; margin-left: 12px; padding: 0 14px 0 18px; border-radius: 999px; background: var(--accent); color: var(--action-ink); font-weight: 600; transition: background-color .2s var(--ease); }
.main-navigation .nav-contact .arrow { width: 18px; height: 18px; }
.menu-toggle { display: none; }
@media (hover: hover) {
  .main-navigation > a:not(.nav-contact):hover { color: #fff; }
  .main-navigation .nav-contact:hover { background: var(--accent-hover); }
}

/* ---------- actions ----------
   The arrow is two strokes: a shaft and a head. On hover and focus the shaft pulls longer and the head
   moves with it, the way a thread draws tight. Text links underline the way a thread is drawn: left to
   right in, and away to the right out. */
.arrow { width: 20px; height: 20px; flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.arrow .a-shaft { transform-origin: 4px 12px; transition: transform .3s var(--ease); }
.arrow .a-head { transition: transform .3s var(--ease); }
.arrow-out .a-shaft { transform-origin: 6px 18px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 56px; padding: 0 20px 0 24px; border-radius: 4px; font-size: 15px; font-weight: 600; letter-spacing: -.005em; transition: background-color .2s var(--ease), transform .12s var(--ease); }
.button-primary { background: var(--accent); color: var(--action-ink); }
.button-primary:disabled { background: var(--disabled-fill); color: var(--disabled-text); }
.button:active:not(:disabled) { transform: translate3d(0,1px,0); }
/* "Start a project" answers when it is pointed at: it rises a little on a soft shadow, a light inside it
   follows the pointer (--mx/--my, threads.js), a sheen crosses it once and the arrow's shaft draws out;
   pressed, it settles. Plain at rest. Reduced motion: only the colour changes. */
.button-alive { position: relative; isolation: isolate; overflow: hidden; transition: background-color .3s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease); }
.button-alive::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(110px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.75), rgba(255,255,255,0) 72%); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.button-alive::after { content: ""; position: absolute; top: 0; bottom: 0; left: -55%; z-index: 0; width: 40%; background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.7) 50%, rgba(255,255,255,0)); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.button-face { position: relative; z-index: 1; display: inline-flex; flex: 1; align-items: center; justify-content: space-between; gap: 26px; }
.button-alive:focus-visible .arrow .a-shaft { transform: scaleX(1.36); }
.button-alive:focus-visible .arrow .a-head { transform: translateX(5.4px); }
@keyframes sheen { from { opacity: 1; transform: translateX(0) skewX(-18deg); } to { opacity: 1; transform: translateX(430%) skewX(-18deg); } }
@media (hover: hover) {
  .button-alive:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0,8,12,.9), 0 4px 10px -6px rgba(0,8,12,.6); }
  .button-alive:hover::before { opacity: 1; }
  .button-alive:hover::after { animation: sheen .9s var(--ease) .05s 1 both; }
  .button-alive:hover .arrow .a-shaft { transform: scaleX(1.36); }
  .button-alive:hover .arrow .a-head { transform: translateX(5.4px); }
}
.button-alive:active:not(:disabled) { transform: translateY(0) scale(.985); box-shadow: 0 4px 10px -6px rgba(0,8,12,.6); transition-duration: .12s; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; width: fit-content; font-size: 15px; font-weight: 600; color: var(--ink); }
.text-link > span:first-child { padding-block: 3px; background: linear-gradient(var(--violet-soft),var(--violet-soft)) right bottom / 0 1px no-repeat; transition: background-size .36s var(--ease); }
.text-link .arrow,.text-link .icon { width: 18px; height: 18px; color: var(--accent); }
.text-link:focus-visible > span:first-child { background-size: 100% 1px; background-position: left bottom; }
:is(.text-link,.channel):focus-visible .arrow-out .a-shaft { transform: scale(1.3); }
:is(.text-link,.channel):focus-visible .arrow-out .a-head { transform: translate(3.6px,-3.6px); }
@media (hover: hover) {
  .button-primary:hover:not(:disabled) { background: var(--accent-hover); }
  .text-link:hover > span:first-child { background-size: 100% 1px; background-position: left bottom; }
  :is(.text-link,.channel):hover .arrow-out .a-shaft { transform: scale(1.3); }
  :is(.text-link,.channel):hover .arrow-out .a-head { transform: translate(3.6px,-3.6px); }
  .back-to-top:hover .icon { transform: translateY(-3px); }
}
.back-to-top .icon,.text-link > .icon,.button > .icon { transition: transform .3s var(--ease); }
@media (hover: hover) {
  .text-link:not(:has(> span)):hover { text-decoration: underline; }
  .text-link:not(.back-to-top):hover > .icon,.button:hover > .icon { transform: translateX(3px); }
}
.light-link { color: var(--ink); }

/* ---------- sections ---------- */
.section { position: relative; padding-block: var(--section-breath); }
.section-intro { max-width: 46rem; margin-bottom: clamp(44px,5vw,72px); }
.section-intro h2 { font-stretch: 120%; font-weight: 640; font-size: clamp(40px,4.6vw,68px); line-height: 1; letter-spacing: -.034em; }
.section-intro p { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 46ch; }

/* ---------- the opening: the hero and the statement on one ground ----------
   One ground and one canvas for both. The current enters loose from the lower left, out of the statement,
   orders into a ribbon under the copy and crosses the hero to the upper right; so no thread is ever cut
   where the hero ends. Nothing waits for it: the copy is there at once. */
.opening { --spill: 520px; position: relative; overflow-x: clip; background: var(--weave), var(--grain), radial-gradient(ellipse 34% 22% at 90% 9%, rgba(123,63,242,.11), rgba(123,63,242,0) 72%), radial-gradient(ellipse 40% 24% at var(--pool-x,58%) var(--pool-y,40%), rgba(1,85,124,.5), rgba(1,85,124,0) 72%), radial-gradient(ellipse 34% 20% at 6% 62%, rgba(1,181,178,.1), rgba(1,181,178,0) 72%), linear-gradient(180deg, var(--night-1) 0%, #011b26 28%, #012535 56%, var(--night-2) 80%, #011a24 100%); }
.hero { position: relative; isolation: isolate; display: flex; min-height: clamp(660px, calc(100svh - var(--header-h)), 980px); }
.hero > .threads { bottom: auto; height: calc(100% + var(--spill)); }
.hero-inner { padding-block: clamp(56px,11vh,128px) 0; }
.hero-copy { max-width: 720px; }
.hero h1 { max-width: 11ch; font-stretch: 120%; font-weight: 640; font-size: var(--type-hero); line-height: .96; letter-spacing: -.036em; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--accent); }
/* "tied." (threads.js): a plain word in ink until the current has crossed the hero; then it takes the
   accent and a soft reflection crosses it once, left to right (a light copy from data-word, never read,
   masked to a band at --sheen). Afterwards the reflection follows a pointer over the word, faintly. Without
   the script, or with reduced motion, it is simply the accent; if the script never comes, it turns on its own. */
@property --sheen { syntax: '<percentage>'; inherits: true; initial-value: -40%; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .hero h1 em { color: var(--ink); animation: tie-late .8s var(--ease) 6s forwards; }
}
@keyframes tie-late { to { color: var(--accent); } }
.hero h1 em.tied-word { position: relative; display: inline-block; color: var(--ink); animation: none; transition: color .8s var(--ease); }
.hero h1 em.tied-word.is-tied { color: var(--accent); }
.tied-word::after { content: attr(data-word) / ""; position: absolute; left: 0; top: 0; color: #f2ffff; white-space: nowrap; pointer-events: none; opacity: 0; -webkit-mask-image: linear-gradient(105deg, transparent calc(var(--sheen) - 20%), #000 var(--sheen), transparent calc(var(--sheen) + 20%)); mask-image: linear-gradient(105deg, transparent calc(var(--sheen) - 20%), #000 var(--sheen), transparent calc(var(--sheen) + 20%)); transition: opacity .35s var(--ease); }
.tied-word.is-shining::after { opacity: .85; animation: sheen-pass 1.6s cubic-bezier(.45,0,.25,1); }
.tied-word.is-lit::after { opacity: .5; }
@keyframes sheen-pass { from { --sheen: -30%; } to { --sheen: 130%; } }
.hero-sub { max-width: 35ch; margin-top: 28px; font-size: clamp(18px,1.42vw,21px); line-height: 1.5; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: 38px; }

/* ---------- the statement ----------
   The problem in one sentence, on a plate of abyss that the loose threads pass behind. Beside it, above the
   answer, seven loose threads lie tangled and comb out into one point as the plate comes into view. */
.statement { padding-block: clamp(24px,4vw,64px) var(--section-breath); }
.plate { position: relative; padding: clamp(36px,5.6vw,88px) clamp(28px,5.6vw,88px); border: 1px solid var(--line-strong); border-radius: 4px; background: var(--weave), var(--abyss); }
.statement-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); align-items: end; gap: clamp(28px,3vw,44px) clamp(16px,2.4vw,40px); }
.statement h2 { grid-column: 1 / span 7; grid-row: 1 / span 2; max-width: 12ch; font-stretch: 120%; font-weight: 640; font-size: clamp(40px,5.2vw,78px); line-height: .98; letter-spacing: -.038em; }
.statement-body { grid-column: 8 / span 5; grid-row: 2; max-width: 38ch; font-size: clamp(18px,1.45vw,21px); line-height: 1.55; color: var(--body); }
/* Under the statement: Tazkeer AI's teaser, an advert more than a diagram. Its character stands at the
   right and rises above the band's top edge; one line, the platforms and the waitlist. */
.teaser { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(220px,19vw,260px); margin-top: clamp(72px,7vw,104px); padding: clamp(28px,3.4vw,48px) clamp(24px,4vw,56px); color: #fff; }
.teaser::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grit), var(--dust), radial-gradient(70% 140% at 100% 100%, #2f5cff 0%, rgba(0,0,0,0) 65%), radial-gradient(60% 120% at 0% 0%, #7a3cf0 0%, rgba(0,0,0,0) 70%), linear-gradient(120deg, #1a1060 0%, #0b1440 100%); background-blend-mode: soft-light, overlay, normal, normal, normal; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.teaser-text { position: relative; z-index: 1; max-width: 58%; }
.teaser .stage-label { font-size: 14px; font-weight: 600; }
.teaser-line { margin-top: 12px; font-stretch: 116%; font-size: clamp(34px,4.2vw,60px); font-weight: 640; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.teaser-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 14px; }
.teaser-more,.teaser-more .arrow { color: #fff; }
/* The Tazkeer AI waitlist: an email and a button (app.js posts it to /api/waitlist, a Cloudflare Pages
   Function). It says "on the list" only when the server confirms; otherwise it says so and offers email. */
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; max-width: 470px; margin-top: 26px; }
.waitlist input[type="email"] { flex: 1 1 220px; min-height: 54px; padding: 0 16px; border: 1px solid rgba(255,255,255,.34); border-radius: 4px; background: rgba(4,6,30,.35); color: #fff; font-size: 16px; caret-color: var(--accent); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.waitlist input[type="email"]::placeholder { color: rgba(255,255,255,.7); opacity: 1; }
.waitlist input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.waitlist input[aria-invalid="true"] { border-color: #ffb9ad; }
.waitlist .button { flex: none; }
.waitlist-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-status { flex-basis: 100%; font-size: 14px; color: #fff; }
.waitlist-status:empty { display: none; }
.waitlist-status[data-state="success"] { color: var(--accent); font-weight: 600; }
.waitlist-status[data-state="error"] { color: #ffd6cf; }
.waitlist-status a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.waitlist-note { flex-basis: 100%; font-size: 13px; color: rgba(255,255,255,.88); }
@media (hover: hover) { .waitlist input[type="email"]:hover { border-color: rgba(255,255,255,.55); } }
.teaser-figure { position: absolute; right: clamp(0px,6vw,96px); bottom: 0; z-index: 0; display: flex; align-items: flex-end; height: calc(100% + 80px); padding: 0 40px; }
/* The character answers only when the pointer reaches it or the space right around it, or when it is pressed. */
.teaser-character { display: block; width: auto; height: 100%; transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.34,1.5,.64,1); filter: drop-shadow(0 24px 30px rgba(4,4,30,.55)); }
@media (hover: hover) { .teaser-figure:hover .teaser-character { transform: rotate(-4deg) translateY(-10px) scale(1.03); } }
.teaser-figure.is-pressed .teaser-character { transform: rotate(-4deg) translateY(-10px) scale(1.03); }
.tangle { position: relative; isolation: isolate; grid-column: 8 / span 5; grid-row: 1; align-self: stretch; min-height: clamp(150px,13vw,196px); }
.tangle > .threads { inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); }

/* ---------- what we build ----------
   The rope comes in from the left and splits; each branch ends in a point of light at its item. */
.services { background: var(--weave), var(--grain), radial-gradient(ellipse 40% 40% at 12% 60%, rgba(1,181,178,.13), rgba(1,181,178,0) 72%), linear-gradient(180deg, #011a24 0%, var(--night-1) 100%); }
.split { position: relative; isolation: isolate; }
/* The canvas reaches a little above the list, so the rope can come in clear of the first item. */
.split > .threads { top: -56px; bottom: auto; height: calc(100% + 56px); }
.branch-list { list-style: none; margin-left: clamp(0px,28vw,420px); }
.branch { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: start; gap: 12px clamp(24px,4vw,64px); padding-block: clamp(30px,3.2vw,44px); border-top: 1px solid var(--line); transition: border-color .3s var(--ease); }
.branch:last-child { border-bottom: 1px solid var(--line); }
.branch h3 { padding-top: 2px; font-stretch: 118%; font-weight: 620; font-size: clamp(26px,2.5vw,36px); line-height: 1.04; letter-spacing: -.03em; }
.branch-line { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.branch-body > p:not(.branch-line) { margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 52ch; }
.branch .text-link { margin-top: 10px; }

/* ---------- how we work: four steps, real pictures ----------
   The way every project runs, in four steps, each with a photograph (generic, CC0, no faces: they stand for
   the work, not for our team). A thread runs along the numbers and draws in as the steps come into view. */
.how { background: var(--weave), var(--grain), radial-gradient(ellipse 40% 30% at 85% 40%, rgba(123,63,242,.08), rgba(123,63,242,0) 72%), var(--night-1); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(20px,2.4vw,36px); list-style: none; }
.step-photo { position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 3; border-radius: 4px; background: var(--night-2); }
.step-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); transition: transform .9s var(--slow); }
.step-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,21,29,0) 55%, rgba(0,21,29,.35)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.step-n { position: relative; margin-top: 22px; padding-top: 16px; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--violet-soft); font-variant-numeric: tabular-nums; }
.step-n::before { content: ""; position: absolute; left: 0; right: calc(clamp(20px,2.4vw,36px) * -1); top: 0; height: 1px; background: linear-gradient(90deg, var(--accent), var(--violet)); transform: scaleX(var(--drawn,1)); transform-origin: left; transition: transform 1.1s var(--slow) var(--d,0s); }
.step:last-child .step-n::before { right: 0; }
/* With the script the steps arrive one by one with the scroll (--in from interactions.js). */
.steps.is-scrolling .step { opacity: var(--in,0); transform: translate3d(calc((1 - var(--in,0)) * -28px), calc((1 - var(--in,0)) * 18px), 0); will-change: opacity, transform; }
.steps.is-scrolling .step-n::before { --drawn: var(--in,0); transition: none; }
.step h3 { margin-top: 10px; font-stretch: 110%; font-size: clamp(20px,1.6vw,24px); font-weight: 620; line-height: 1.2; letter-spacing: -.015em; }
.step h3 + p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (hover: hover) { .step:hover .step-photo img { transform: scale(1.04); } }

/* ---------- our products: Tazkeer first, the lab together ----------
   Tazkeer AI has the stage: its own violet-to-blue card under the grain, its words on the left and a phone
   on the right showing its mark and its character (a launch screen, not an interface it does not have
   yet). The five products in the lab sit together in one row of small tiles in the same colour family:
   a name and "In the lab", nothing to open. */
.products { background: var(--weave), var(--grain), radial-gradient(ellipse 62% 40% at 50% 58%, rgba(1,169,221,.16), rgba(1,169,221,0) 72%), var(--night-1); }
.featured { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; gap: 40px; min-height: clamp(440px,38vw,540px); padding: clamp(32px,4vw,64px); color: #fff; }
.featured::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--grit), var(--dust), radial-gradient(90% 80% at 0% 0%, #7a3cf0 0%, rgba(0,0,0,0) 62%), radial-gradient(80% 90% at 100% 100%, #2f5cff 0%, rgba(0,0,0,0) 68%), linear-gradient(150deg, #1a1060 0%, #0b1440 100%); background-blend-mode: soft-light, overlay, normal, normal, normal; }
.featured::after { content: ""; position: absolute; inset: 0; z-index: -1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); pointer-events: none; }
.featured-stage { font-size: 14px; font-weight: 600; }
.featured .stage-label,.teaser .stage-label { padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(8,6,36,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: #fff; }
.featured-name { margin-top: 14px; font-stretch: 112%; font-size: clamp(40px,4.4vw,64px); font-weight: 640; line-height: 1; letter-spacing: -.034em; }
.featured-line { max-width: 30ch; margin-top: 18px; font-size: clamp(18px,1.5vw,21px); line-height: 1.5; color: #fff; }
.featured-meaning { display: flex; align-items: center; gap: 16px; max-width: 34em; margin-top: 18px; font-size: 15px; line-height: 1.55; color: #fff; }
.featured-arabic { flex: none; padding: 2px 14px 6px; border-radius: 4px; background: rgba(8,6,36,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", system-ui, sans-serif; font-size: 30px; font-weight: 700; line-height: 1.3; color: var(--accent); }
.featured-features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; max-width: 34em; margin-top: 22px; list-style: none; }
.featured-features li { display: grid; grid-template-columns: 22px minmax(0,1fr); column-gap: 12px; align-items: start; padding: 14px 16px; border-radius: 4px; background: rgba(8,6,36,.42); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.featured-features .icon { grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--accent); }
.featured-features b { font-size: 15px; font-weight: 640; }
.featured-features span { margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.88); }
.featured-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 16px; }
.featured-actions .featured-go { margin-top: 0; }
.featured-go { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; margin-top: 30px; padding: 13px 24px; border: 1px solid rgba(255,255,255,.4); font-size: 15px; font-weight: 600; color: #fff; transition: background-color .25s, color .25s, border-color .25s; }
.featured-go .arrow { width: 18px; height: 18px; }
@media (hover: hover) { .featured-go:hover { background: #fff; border-color: #fff; color: var(--night-0); } }
/* The phone: drawn in CSS, its screen a launch screen. */
.phone { justify-self: center; width: clamp(200px,16vw,236px); aspect-ratio: 9 / 19; padding: 10px; border-radius: 40px; background: linear-gradient(160deg, #2b2f45, #0c0e18 60%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 40px 70px -30px rgba(0,0,0,.85), 0 12px 28px -14px rgba(0,0,0,.6); transform: rotate(-4deg); transition: transform .7s cubic-bezier(.34,1.4,.64,1); }
.phone-screen { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; height: 100%; padding-top: 22%; border-radius: 31px; background: radial-gradient(90% 60% at 50% 0%, #4a2ab8 0%, rgba(0,0,0,0) 70%), linear-gradient(180deg, #160d4a 0%, #0a0f33 100%); }
.phone-screen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 30%; height: 18px; margin-left: -15%; border-radius: 12px; background: #05060c; }
.phone-mark { width: 30%; height: auto; }
.phone-name { margin-top: 12px; font-stretch: 110%; font-size: 17px; font-weight: 640; letter-spacing: -.01em; }
.phone-soon { margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.phone-character { position: absolute; bottom: -4%; left: 50%; width: 62%; height: auto; margin-left: -31%; }
/* The phone answers when the pointer reaches it or the space around it in its column, or when pressed. */
.phone-zone { display: grid; place-items: center; align-self: stretch; margin: calc(clamp(32px,4vw,64px) * -1) calc(clamp(32px,4vw,64px) * -1) calc(clamp(32px,4vw,64px) * -1) 0; padding: clamp(32px,4vw,64px) clamp(32px,4vw,64px) clamp(32px,4vw,64px) 0; }
@media (hover: hover) { .phone-zone:hover .phone { transform: rotate(-1deg) translateY(-12px) scale(1.03); } }
.phone-zone.is-pressed .phone { transform: rotate(-1deg) translateY(-12px) scale(1.03); }
.lab { margin-top: clamp(40px,4vw,56px); }
.lab-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 18px; }
.lab-head h3 { font-stretch: 112%; font-size: clamp(22px,1.9vw,28px); font-weight: 620; letter-spacing: -.02em; }
.lab-head p { max-width: 52ch; font-size: 15px; color: var(--muted); }
.lab-list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; list-style: none; }
.lab-item { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 132px; padding: 18px 18px 16px; color: #fff; }
.lab-item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grit), var(--dust), radial-gradient(90% 110% at 100% 100%, var(--l1) 0%, rgba(0,0,0,0) 72%), var(--l2); background-blend-mode: soft-light, overlay, normal, normal; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.lab-name { font-stretch: 104%; font-size: 19px; font-weight: 620; line-height: 1.15; letter-spacing: -.01em; }
.lab-item .stage-label { font-size: 13px; color: rgba(255,255,255,.86); }
.lab-item .stage-lab::before { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.86); }
.arrow-back { transform: scaleX(-1); }

/* Meta lines and stage labels: shared by the cards, the client work and the case study. */
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.stage-label { display: inline-flex; align-items: center; gap: 8px; }
.stage-label { color: var(--body); font-size: inherit; }
.stage-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.stage-soon::before { background: var(--violet-soft); }
.stage-lab::before { background: none; box-shadow: inset 0 0 0 1.5px var(--muted); }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.project-tags li { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; color: var(--body); }

/* ---------- client work: a client at a time ----------
   Each client is a card laid on the deep water: a dark gradient of two dyes of its own under the dust, the
   client's site on the left as it really looks (no filter on it), and beside it the number in the card's
   light dye, the name, the line and what we built. The card in front is lit; the next one waits at the
   edge, dimmed, its words hidden. The arrows and the count sit with the heading; the row also scrolls and
   snaps under a finger or a trackpad. */
.clients { background: var(--weave), var(--grain), radial-gradient(ellipse 36% 26% at 12% 72%, rgba(91,92,242,.1), rgba(91,92,242,0) 72%), radial-gradient(ellipse 58% 34% at 66% 50%, rgba(1,121,173,.27), rgba(1,121,173,0) 72%), linear-gradient(180deg, var(--night-1) 0%, var(--night-0) 100%); }
.clients-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(40px,4.4vw,64px); }
.clients-head .section-intro { margin-bottom: 0; }
.slider-controls { display: flex; align-items: center; gap: 10px; }
.slider-count { margin-right: 14px; font-size: 17px; color: var(--muted); font-variant-numeric: tabular-nums; }
.slider-count b { font-weight: 640; color: var(--ink); }
.slider-button { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.35); color: #fff; transition: background-color .25s, color .25s, border-color .25s, opacity .2s; }
.slider-button:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .slider-button:not(:disabled):hover { background: #fff; border-color: #fff; color: var(--night-0); } }
/* The track keeps room above and below for the cards' shadows (a scroller clips what overflows it). */
.client-track { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; overscroll-behavior-x: contain; margin-block: -28px -72px; padding-block: 28px 72px; }
.client-track::-webkit-scrollbar { display: none; }
/* Room after the last client, so it comes to rest where every other one does. */
.client-track::after { content: ""; flex: 0 0 calc(14% - 32px); }
.client-slide { --body: rgba(255,255,255,.86); --muted: rgba(255,255,255,.74); position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: clamp(28px,3.4vw,56px); flex: 0 0 86%; padding: clamp(14px,1.3vw,20px) clamp(28px,3.4vw,52px) clamp(14px,1.3vw,20px) clamp(14px,1.3vw,20px); background: var(--c4,var(--night-0)); box-shadow: 0 36px 72px -30px rgba(0,0,0,.8), 0 10px 24px -12px rgba(0,0,0,.5); scroll-snap-align: start; transition: opacity .5s var(--ease); }
.client-slide::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--dust), radial-gradient(75% 95% at 0% 100%, var(--c1) 0%, rgba(0,0,0,0) 64%), radial-gradient(60% 85% at 100% 0%, var(--c2) 0%, rgba(0,0,0,0) 70%), linear-gradient(135deg, var(--c3) 0%, var(--c4) 100%); background-blend-mode: overlay, normal, normal, normal; }
.client-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.08); pointer-events: none; }
.client-slide:not(.is-on) { opacity: .5; }
.client-media { position: relative; overflow: hidden; min-height: clamp(320px,29vw,420px); background: var(--night-0); box-shadow: 0 22px 44px -20px rgba(0,0,0,.75); }
.client-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--slow); }
.client-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); pointer-events: none; }
#vintage .client-media img { object-position: 0% 50%; }
.client-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-block: clamp(14px,1.6vw,24px); transition: opacity .5s; }
.client-slide:not(.is-on) .client-body { opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.client-num { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--num,var(--violet-soft)); font-variant-numeric: tabular-nums; }
.client-body h3 { margin-top: 10px; font-stretch: 104%; font-size: clamp(40px,3.9vw,56px); font-weight: 620; line-height: 1.04; letter-spacing: -.032em; }
.client-body .project-meta { margin-top: 14px; }
.client-body .stage-label::before { background: var(--num,var(--cyan)); }
.client-line { max-width: 26em; margin-top: auto; padding-top: 32px; font-size: clamp(18px,1.46vw,21px); line-height: 1.45; color: rgba(255,255,255,.86); }
.client-built-label { margin-top: 22px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.66); }
.client-built { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; list-style: none; font-size: 15.5px; line-height: 1.6; color: #fff; }
.client-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 26px; }
.client-go { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 13px 24px; border: 1px solid rgba(255,255,255,.4); font-size: 15px; font-weight: 600; color: #fff; transition: background-color .25s, color .25s, border-color .25s; }
.client-go .arrow { width: 18px; height: 18px; }
@media (hover: hover) {
  .client-slide.is-on .client-media:hover img { transform: scale(1.03); }
  .client-go:hover { background: #fff; border-color: #fff; color: var(--night-0); }
}

/* ---------- about: a sheet of paper on the deep water ----------
   The reading chapter, one column read top to bottom: the sentence lights word by word as it is read, and
   one thread runs across the sheet and ties our three principles to it as the page scrolls. The deep water
   flows around the sheet from Client work into Contact, so neither of its edges is a seam. */
.sheet-wrap { padding: clamp(8px,1.4vw,20px); background: var(--weave), var(--grain), radial-gradient(ellipse 58% 200px at 50% calc(100% + 80px), rgba(1,85,124,.55), rgba(1,85,124,0) 75%), linear-gradient(180deg, var(--night-0) 0%, #001b26 52%, var(--abyss) 100%); }
.about.ground-paper { padding-block: clamp(48px,6vw,96px) clamp(48px,6vw,88px); border-radius: 4px; background: var(--weave-ink), var(--paper); }
.about-statement { max-width: 16ch; font-stretch: 120%; font-weight: 640; font-size: clamp(40px,5.4vw,80px); line-height: 1; letter-spacing: -.036em; }
.about-statement[data-ready] .w { color: var(--dim); transition: color .5s var(--ease); }
.about-statement[data-ready] .w.is-lit { color: var(--ink); }
.about-text { display: grid; gap: 16px; max-width: 860px; margin-top: clamp(32px,4vw,56px); }
.about-text > p { max-width: none; }
.about-lead { font-size: clamp(20px,1.6vw,23px); line-height: 1.5; color: var(--ink); }
.about-text > p:not(.about-lead) { font-size: 17px; line-height: 1.75; color: var(--muted); }
.principles { position: relative; margin-top: clamp(56px,7vw,104px); }
.principles-thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.principles-thread path { fill: none; stroke-width: 1.2; stroke-linecap: round; }
.principles-thread .tie { fill: var(--paper); stroke: var(--deep); stroke-width: 1.5; transition: fill .45s var(--ease); }
.principles-thread .tie.is-tied { fill: var(--deep); }
.principles-list { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: clamp(20px,3vw,48px); padding-top: 58px; }
.principle dt { font-stretch: 110%; font-size: clamp(20px,1.6vw,24px); font-weight: 620; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }
.principle dd { max-width: 34ch; margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.geography { margin-top: clamp(40px,5vw,64px); font-size: 14px; color: var(--muted); }

/* ---------- contact: where the last thread ties ---------- */
.contact { padding-top: 0; }
.contact.ground-abyss { background: var(--weave), var(--grain), radial-gradient(ellipse 38% 30% at 88% 78%, rgba(123,63,242,.13), rgba(123,63,242,0) 72%), radial-gradient(ellipse 58% 200px at 50% 80px, rgba(1,85,124,.55), rgba(1,85,124,0) 75%), linear-gradient(180deg, var(--abyss) 0%, var(--abyss) 62%, var(--night-0) 100%); }
.seam { position: relative; isolation: isolate; height: clamp(120px,12vw,176px); margin-bottom: clamp(8px,2vw,32px); }
.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 48px clamp(48px,7vw,112px); }
.contact-intro h2 { max-width: 11ch; font-stretch: 120%; font-weight: 640; font-size: clamp(40px,4.6vw,68px); line-height: 1; letter-spacing: -.034em; }
.contact-intro > p { max-width: 38ch; margin-top: 24px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.contact-product-note { margin-top: 40px; font-size: 14px; color: var(--muted); }
.contact-product-note > span { display: block; }
.inline-button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink); }
.inline-button[aria-pressed="true"] { color: var(--accent); text-decoration: underline; }
.inline-button .arrow { width: 18px; height: 18px; color: var(--accent); }
.contact-direct { min-width: 0; padding-top: 6px; }
.contact-topic { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.contact-topic strong { min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact-topic-clear { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin-inline-start: auto; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); }
.contact-topic-clear .icon { width: 14px; height: 14px; transform: rotate(45deg); }
.channel-list { display: grid; gap: 12px; list-style: none; }
.channel { display: grid; grid-template-columns: auto minmax(0,1fr) 20px; align-items: center; gap: 4px 20px; min-height: 76px; padding: 14px 24px; border: 1px solid var(--line-control); border-radius: 4px; color: var(--ink); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.channel-name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.channel-value { justify-self: end; min-width: 0; font-size: 15px; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.channel .arrow { color: var(--accent); }
/* WhatsApp leads when it is set; when only one channel ships, that one takes the filled style. */
.channel-primary,.channel-list > li:only-child > .channel { background: var(--accent); border-color: var(--accent); color: var(--action-ink); }
.channel-primary .channel-value,.channel-list > li:only-child > .channel .channel-value { color: var(--action-ink); font-weight: 450; }
.channel-primary .arrow,.channel-list > li:only-child > .channel .arrow { color: var(--action-ink); }
.channel[data-unset] { background: none; border-style: dashed; border-color: var(--line-control); color: var(--muted); cursor: not-allowed; }
.channel[data-unset] .channel-value { color: var(--dev-warn); }
.channel[data-unset] .arrow { color: var(--muted); }
.channel-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.email-help { max-width: 52ch; margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--ink); }
.email-help a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.email-help .icon { width: 14px; height: 14px; }
@media (hover: hover) {
  .inline-button:hover { color: var(--accent); }
  .contact-topic-clear:hover { border-color: var(--line-control); color: var(--ink); }
  .channel:hover { border-color: var(--accent); }
  .channel-primary:hover,.channel-list > li:only-child > .channel:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
  .channel[data-unset]:hover { border-color: var(--line-control); }
  .channel[data-unset]:hover .arrow .a-shaft,.channel[data-unset]:hover .arrow .a-head { transform: none; }
}
/* Online form: hidden until it can really send (site.config.js). */
.inquiry-form { min-width: 0; margin-top: 44px; }
.form-availability p { font-size: 13px; color: var(--muted); }
.contact-privacy { color: inherit; text-decoration: underline; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { min-width: 0; margin-bottom: 24px; }
.field label { display: block; margin-bottom: 10px; font-size: 14px; color: var(--ink); }
.field label span { margin-left: 3px; font-size: 13px; color: var(--muted); }
.field input,.field textarea,.field select { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid var(--line-control); border-radius: 4px; background: var(--raised); color: var(--ink); font-size: 16px; line-height: 1.5; caret-color: var(--accent); transition: border-color .15s var(--ease); }
.field input::placeholder,.field textarea::placeholder { color: var(--faint); opacity: 1; }
.field textarea { min-height: 120px; resize: vertical; }
.field input[aria-invalid="true"],.field textarea[aria-invalid="true"] { border-color: var(--error-line); }
.field-help { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.field-error { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--error-text); }
.field-error:empty { display: none; }
.select-wrap { position: relative; }
.field select { padding-right: 46px; appearance: none; }
.select-arrow { position: absolute; right: 16px; top: 16px; transform: rotate(90deg); pointer-events: none; color: var(--muted); }
.submit-button { width: 100%; margin-top: 8px; }
.form-status { margin-top: 16px; font-size: 14px; color: var(--accent); }
.form-status[data-state="error"] { color: var(--error-text); }
.form-status:empty { display: none; }
@media (hover: hover) { .field input:hover,.field textarea:hover,.field select:hover { border-color: var(--faint); } }

/* ---------- footer ---------- */
.site-footer { padding-bottom: 20px; background: var(--weave), var(--grain), radial-gradient(ellipse 50% 60% at 85% 0%, rgba(123,63,242,.1), rgba(123,63,242,0) 70%), var(--night-0); }
/* The close: the line the page began with, and one last way in. */
.footer-close { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; padding-block: clamp(48px,6vw,88px) clamp(36px,4vw,56px); border-bottom: 1px solid var(--line); }
.footer-signature { max-width: 14ch; font-stretch: 120%; font-size: clamp(40px,5.6vw,84px); font-weight: 640; line-height: .98; letter-spacing: -.038em; color: var(--ink); }
.footer-signature em { font-style: normal; color: var(--accent); }
.footer-close-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3,minmax(0,1fr)); gap: 32px 40px; padding-block: clamp(36px,4vw,56px); }
.footer-line { max-width: 34ch; margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.footer-head { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--violet-soft); }
.footer-col ul { display: grid; gap: 2px; list-style: none; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--body); transition: color .15s var(--ease); }
.footer-tag { margin-left: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.footer-place { display: inline-block; padding-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.footer-channels a[data-unset] { color: var(--dev-warn); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.back-to-top { margin-left: auto; }
@media (hover: hover) { .footer-col a:hover { color: var(--accent); } }

/* ---------- privacy: a plain reading page ---------- */
.legal { padding-block: clamp(40px,6vw,88px) clamp(56px,7vw,104px); }
.legal .container { max-width: calc(760px + var(--gutter) * 2); }
.legal-head h1 { font-stretch: 120%; font-size: clamp(44px,6vw,80px); font-weight: 640; line-height: 1; letter-spacing: -.036em; }
.legal-lead { margin-top: 20px; font-size: clamp(18px,1.5vw,21px); line-height: 1.55; color: var(--body); }
.legal-date { margin-top: 14px; font-size: 14px; color: var(--muted); }
.legal-section { margin-top: clamp(32px,4vw,48px); padding-top: clamp(24px,3vw,32px); border-top: 1px solid var(--line); }
.legal-section h2 { font-stretch: 110%; font-size: clamp(22px,2vw,28px); font-weight: 620; letter-spacing: -.02em; }
.legal-section p,.legal-section li { font-size: 16.5px; line-height: 1.7; color: var(--body); }
.legal-section p { margin-top: 14px; }
.legal-section ul { display: grid; gap: 12px; margin-top: 16px; padding-left: 20px; }
.legal-section li::marker { color: var(--violet-soft); }
.legal-section strong { color: var(--ink); font-weight: 620; }
.legal-section a,.waitlist-note a,.footer-privacy { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-foot { margin-top: clamp(40px,5vw,56px); font-size: 14px; color: var(--muted); }
.legal-back { margin-top: 10px; }
.footer-privacy { margin-left: 10px; color: var(--body); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  /* The row scrolls under a finger; every card is open. */
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 40px; }
  .step:nth-child(2) .step-n::before { right: 0; }
  .lab-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .client-slide { grid-template-columns: 1fr; gap: 22px; flex-basis: 86%; padding: 12px 12px 26px; }
  .client-media { min-height: 0; aspect-ratio: 16 / 10; }
  .client-body { padding: 0 12px; }
  .client-line { padding-top: 22px; }
  .branch { grid-template-columns: 1fr; }
  .branch-list { margin-left: clamp(0px,30vw,340px); }
  .statement h2 { grid-column: 1 / -1; grid-row: auto; max-width: 14ch; }
  .tangle { grid-column: 5 / -1; grid-row: auto; min-height: 150px; }
  .statement-body { grid-column: 5 / -1; grid-row: auto; }
}
@media (max-width: 899px) {
  .opening { --spill: 340px; }
  .hero { min-height: 0; }
  .hero-inner { padding-block: clamp(48px,9vh,80px) clamp(270px,60vw,340px); }
  .statement-grid { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; gap: 36px; }
  .featured-meaning { flex-direction: column; align-items: flex-start; gap: 10px; }
  .phone { width: 220px; }
  .phone-zone { margin: 0; padding: 0 0 8px; }
  .statement h2,.statement-body,.tangle { grid-column: auto; }
  .teaser { align-items: flex-start; min-height: 0; padding-bottom: 250px; }
  .waitlist .button { flex: 1 1 100%; }
  .teaser-text { max-width: none; }
  .teaser .stage-label { font-size: 13px; align-items: flex-start; }
  .teaser .stage-label::before { margin-top: 6px; }
  .teaser-figure { right: 50%; height: 226px; margin-right: -105px; }
  .tangle { min-height: 132px; }
  .branch-list { margin-left: 0; padding-left: 52px; }
  .principles-list { grid-template-columns: 1fr; gap: 36px; padding-top: 0; padding-left: 40px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .main-navigation > a { padding-inline: 10px; font-size: 13px; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; --section-breath: 32px; }
  .brand-lockup { width: 108px; height: 54px; }
  .menu-toggle:not([hidden]) { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; color: var(--body); font-size: 14px; font-weight: 500; }
  .menu-lines { display: flex; flex-direction: column; gap: 5px; width: 21px; }
  .menu-lines > span { width: 21px; height: 1px; background: var(--body); transition: transform .24s var(--ease); }
  .menu-toggle[aria-expanded="true"] .menu-lines > span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines > span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .js .main-navigation { position: absolute; inset: calc(var(--header-h) - 1px) 0 auto; display: none; padding: 12px var(--gutter) 28px; background: var(--black); border-bottom: 1px solid var(--line); }
  .js .main-navigation.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .js .main-navigation > a { justify-content: space-between; min-height: 64px; padding-inline: 0; font-size: 22px; border-bottom: 1px solid var(--line); }
  .js .main-navigation .nav-contact { margin: 16px 0 0; min-height: 64px; padding-inline: 18px; justify-content: space-between; border-bottom: 0; border-radius: 4px; }
  .nav-ink { display: none; }
  .hero h1 { font-size: clamp(42px,12.4vw,54px); font-stretch: 112%; }
  .hero-sub { margin-top: 20px; font-size: 17px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .button { width: 100%; }
  .plate { padding: 30px 22px 32px; }
  .steps { grid-template-columns: 1fr; }
  .step-n::before { right: 0 !important; }
  .lab-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .featured-features { grid-template-columns: 1fr; }
  .featured { padding: 28px 22px 0; }
  /* Without the script there is no menu button: the links wrap under the logo instead of widening the page. */
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; }
  html:not(.js) .main-navigation { flex-wrap: wrap; }
  .statement h2 { font-size: clamp(36px,10.6vw,46px); }
  .section-intro p { font-size: 16px; }
  .branch-list { padding-left: 44px; }
  .branch h3 { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .channel { grid-template-columns: minmax(0,1fr) 20px; min-height: 68px; padding: 12px 18px; }
  .channel-value { grid-column: 1; grid-row: 2; justify-self: start; text-align: left; }
  .channel .arrow { grid-column: 2; grid-row: 1 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col li { display: flex; flex-direction: column; align-items: flex-start; }
  .footer-tag { margin: -8px 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .arrow .a-shaft,.arrow .a-head,.back-to-top .icon,.client-media img,.button-alive,.step-photo img,.phone { transform: none !important; }
  .tied-word::after { display: none; }
  .teaser-character,.phone { transform: none !important; }
  .step-n::before { --drawn: 1 !important; }
  .button-alive,.button-alive:hover { box-shadow: none !important; }
  .button-alive::before,.button-alive::after { display: none; }
}
