/* bugrahanunsal.com
   Layout: a dark "growth engine" control room in his own brand colours. Left-aligned, 1240px max; one orchestrated
   moment (the AI core behind his portrait), thin luminous lines and quiet panels everywhere else.
   Type: Onest (closest open match to his logo wordmark) for headings, Albert Sans (his site's body and menu face) for text.
   No inline styles anywhere (the Content-Security-Policy forbids them): every state is a class or an attribute. */

@font-face { font-family: "Onest"; src: url("../fonts/onest-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albertsans-var.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  /* colour: black, white and greys only (the status dot is graphite too).
     No pure black or pure white text: the dark ground is graphite #121212 and its text off-white #EDEDED (softer on the
     eyes, still far above AAA contrast) */
  --void: #121212;
  --deep: #161616;
  --panel: #181818;
  --panel-2: #202020;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .17);
  --text: #EDEDED;
  --text-2: #ADADAD;
  --text-3: #8A8A8A;
  --blue: #EDEDED;
  --blue-2: #EDEDED;            /* icons and small marks */
  --indigo: #EDEDED;
  --hi: #F5F5F5;                /* links */
  --violet: #6E6E6E;            /* the faded end of lines */
  --signal: #F5F5F5;            /* focus ring, small lights */
  --live: #EDEDED;              /* status dots: same ink as the text */
  --grad: linear-gradient(#EDEDED, #EDEDED);       /* primary buttons: off-white on graphite */
  --on-grad: #141414;
  --sweep: rgba(0, 0, 0, .07);
  --grad-line: linear-gradient(90deg, #EDEDED, rgba(255, 255, 255, .25));
  --grad-text: linear-gradient(180deg, #F5F5F5 0%, #BDBDBD 100%);
  --orb: radial-gradient(circle at 50% 36%, #454545 0%, #2E2E2E 40%, #202020 72%, #181818 100%);
  --core: #262626;
  /* colour triplets used with an alpha: rgba(var(--tint), .1) */
  --tint: 255, 255, 255;        /* lines and washes */
  --glow: 255, 255, 255;        /* light: beams, scans, pulses */
  --card: 24, 24, 24;           /* card and panel fills */
  --card-2: 32, 32, 32;         /* the same, one step lighter (hover) */
  --ground: 18, 18, 18;         /* header glass, fields */
  --menu: 26, 26, 26;           /* menus and floating chips */
  --stat-hover: #1C1C1C;
  --kind-text: #E6E6E6;
  --placeholder: #7A7A7A;
  --sheet: #171717;             /* the chat panel */
  /* the hero network sphere (read by site.js) */
  --net-line: 255, 255, 255;
  --net-dot: 225, 225, 225;
  --net-dot-2: 255, 255, 255;
  --net-pulse: 255, 255, 255;
  --net-spark: 255, 255, 255;
  /* type */
  --font-d: "Onest", "Albert Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font: "Albert Sans", "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  /* space */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --sec: clamp(52px, 7vw, 100px);
  --r: 8px;
  --hd-h: 76px;
}

/* ------------------------------------------------------------------ light theme: the default look (white). Dark = html[data-theme="dark"] */
:root:not([data-theme="dark"]) {
  color-scheme: light;
  --void: #FFFFFF;
  --deep: #F6F6F6;
  --panel: #FFFFFF;
  --panel-2: #F4F4F4;
  --line: rgba(0, 0, 0, .09);
  --line-2: rgba(0, 0, 0, .16);
  --text: #1A1A1A;              /* ink: softer than pure black */
  --text-2: #454545;
  --text-3: #6B6B6B;
  --blue: #1A1A1A;
  --blue-2: #1A1A1A;
  --hi: #1A1A1A;
  --violet: #A3A3A3;
  --signal: #1A1A1A;
  --live: #1A1A1A;
  --grad: linear-gradient(#262626, #262626);        /* primary buttons: graphite, white text */
  --on-grad: #FFFFFF;
  --sweep: rgba(255, 255, 255, .16);
  --grad-line: linear-gradient(90deg, #262626, rgba(0, 0, 0, .2));
  --grad-text: linear-gradient(180deg, #1A1A1A 0%, #404040 100%);
  --orb: radial-gradient(circle at 50% 36%, #FBFBFB 0%, #EFEFEF 42%, #E0E0E0 76%, #D2D2D2 100%);
  --core: #262626;
  --tint: 0, 0, 0;
  --glow: 0, 0, 0;
  --card: 255, 255, 255;
  --card-2: 247, 247, 247;
  --ground: 255, 255, 255;
  --menu: 255, 255, 255;
  --stat-hover: #F7F7F7;
  --kind-text: #1F1F1F;
  --placeholder: #8F8F8F;
  --sheet: #FFFFFF;
  --net-line: 0, 0, 0;
  --net-dot: 40, 40, 40;
  --net-dot-2: 0, 0, 0;
  --net-pulse: 0, 0, 0;
  --net-spark: 0, 0, 0;
}
/* project covers are drawn artwork: they stay black in the light theme */
:root:not([data-theme="dark"]) .media {
  color-scheme: dark;
  --void: #121212; --deep: #161616; --panel: #181818; --panel-2: #202020;
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .17);
  --text: #EDEDED; --text-2: #ADADAD; --text-3: #8A8A8A; --blue-2: #EDEDED; --hi: #F5F5F5; --violet: #6E6E6E; --signal: #F5F5F5;
  --grad-text: linear-gradient(180deg, #F5F5F5 0%, #BDBDBD 100%);
  --tint: 255, 255, 255; --glow: 255, 255, 255; --card: 24, 24, 24; --card-2: 32, 32, 32; --ground: 18, 18, 18;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { scroll-padding-top: calc(var(--hd-h) + 18px + env(safe-area-inset-top, 0px)); }   /* jumps (links to a part of a page, find, focus) stop below the header */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.jump { scroll-behavior: auto; }                                /* site.js: putting a new page at its top, never animated */
body {
  margin: 0; background: var(--void); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--void); }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-d); color: var(--text); text-wrap: balance; letter-spacing: -.02em; }
h1 { font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
h2 { font-weight: 750; font-size: clamp(1.85rem, 1.15rem + 2.3vw, 2.9rem); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
h4 { font-weight: 700; font-size: 1.06rem; line-height: 1.3; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(var(--tint), .22); color: var(--text); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); top: -60px; z-index: 100; padding: 10px 16px; border-radius: 6px; background: var(--text); color: var(--void); font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ------------------------------------------------------------------ icons */
.i { width: 20px; height: 20px; flex: none; }
.ic { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 7px; border: 1px solid var(--line-2);
  background: rgba(var(--tint), .05); color: var(--text); }
.ic .i { width: 21px; height: 21px; }

/* ------------------------------------------------------------------ buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border: 1px solid rgba(var(--tint), .08); border-radius: 7px; color: var(--on-grad);
  background: linear-gradient(110deg, transparent 45%, var(--sweep) 50%, transparent 55%) 170% 0 / 280% 100% no-repeat, var(--grad);
  font: 650 1rem/1 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  transition: box-shadow .2s, transform .2s, background-color .2s, border-color .2s, background-position .7s cubic-bezier(.2, .7, .2, 1);
}
.btn:hover { background-position: -70% 0, 0 0; color: var(--on-grad); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .35); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.btn .i { width: 19px; height: 19px; }
.btn-ghost { background: rgba(var(--tint), .05); border-color: var(--line-2); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: rgba(var(--tint), .09); border-color: rgba(var(--tint), .38); box-shadow: none; color: var(--text); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .94rem; border-radius: 6px; }
.go { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; text-decoration: none; }
.go::after { content: ""; flex: none; width: 18px; height: 1.5px; background: var(--grad-line); transition: width .2s; }
.go:hover { color: var(--text); }
.go:hover::after { width: 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }

/* ------------------------------------------------------------------ header: a floating glass bar
   The bar floats 10px below the top with the page visible around it. The glass sits on a pseudo-element: a backdrop-filter
   on the bar itself would trap the fixed phone menu inside it. Clicks around the bar reach the page (pointer-events). */
.hd { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; padding-top: 10px; pointer-events: none; }
.hd-in { pointer-events: auto; position: relative; isolation: isolate; display: flex; align-items: center; gap: 16px; min-height: 60px;
  padding: 0 10px 0 16px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .3s, box-shadow .3s; }
.hd-in::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; transition: background .3s;
  background: rgba(var(--ground), .6); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.hd-in::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -1px; height: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: linear-gradient(90deg, transparent, rgba(var(--glow), .7), rgba(var(--glow), .3), transparent); }
.hd.scrolled .hd-in { border-color: var(--line-2); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.hd.scrolled .hd-in::before { background: rgba(var(--ground), .84); }
.hd.scrolled .hd-in::after { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex: none; }
.brand .mark { flex: none; width: 38px; height: 38px; }
/* the words of the logo: the wordmark sets the width; the bar and the tagline line (SVG) stretch to exactly that width */
.brand-t { display: inline-grid; grid-template-columns: max-content; gap: 5px; line-height: 1; }
.brand-t b { font: 800 1.2rem/1 var(--font-d); letter-spacing: .01em; }
.brand-tag { display: block; width: 0; min-width: 100%; height: auto; aspect-ratio: 1330 / 64; overflow: visible; }
.brand-tag text { font: 500 56px var(--font); fill: currentColor; }
.brand-nav .mark { width: 32px; height: 32px; }
.brand-nav .brand-t b { font-size: 1.02rem; }
.brand-ft { gap: 16px; }
.brand-ft .mark { width: 48px; height: 48px; }
.brand-ft .brand-t { gap: 7px; }
.ft-about { container-type: inline-size; }                       /* the footer logo grows with its column, never past it */
.brand-ft .brand-t b { font-size: clamp(1.05rem, calc(8.4cqi - 7px), 1.55rem); }
.brand:hover { color: var(--text); }

/* the links sit in a track; a highlight slides to the link under the pointer and rests on the current page */
.nav { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 4px; list-style: none;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(var(--tint), .04); }
.nav-list > li { display: flex; align-items: center; }
.nav-a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 7px;
  color: var(--text-2); font: 600 .95rem/1 var(--font); letter-spacing: 0; text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav-a:hover, .nav-a[aria-current="page"], .nav-a.on { color: var(--text); }
.nav-ink { position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0; border-radius: 7px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(var(--tint), .17), rgba(var(--tint), .08)); box-shadow: inset 0 0 0 1px rgba(var(--tint), .2);
  transition: transform .38s cubic-bezier(.3, .7, .2, 1), width .38s cubic-bezier(.3, .7, .2, 1), height .38s, opacity .25s; }
.nav-ink::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 20px; height: 2px; margin-left: -10px; border-radius: 2px;
  background: var(--grad-line); }
.nav-ink.on { opacity: 1; }
.nav-ink.no-anim { transition: none; }
.has-mega { position: static; }
.mega-btn { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 28px; height: 36px; margin-left: -10px; border: 0; border-radius: 5px;
  background: none; color: var(--text-2); cursor: pointer; }
.mega-btn .i { width: 16px; height: 16px; transition: transform .2s; }
.mega-btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.mega-btn:hover { color: var(--text); }
.nav-li, .nav-cta { min-height: 40px; }
.mega {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  display: none; grid-template-columns: minmax(0, 1fr) 280px; gap: 10px; padding: 12px;
  border: 1px solid var(--line-2); border-radius: 12px; background: rgba(var(--menu), .98);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
}
.has-mega.open .mega { display: grid; }
@media (hover: hover) and (pointer: fine) and (min-width: 1100px) { .has-mega:hover .mega { display: grid; } }
.mega-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 4px; }
.mega-list li { display: flex; }                                  /* every service row as tall as the tallest */
.mega-list li > a { flex: 1; }
.mega-list a { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 7px; text-decoration: none; color: var(--text); }
.mega-list a:hover, .mega-list a[aria-current="page"] { background: rgba(var(--tint), .07); }
.mega-list .ic { width: 38px; height: 38px; border-radius: 6px; }
.mg-t { display: grid; gap: 3px; min-width: 0; }
.mg-t b { font: 700 .98rem/1.25 var(--font-d); letter-spacing: -.01em; }
.mg-t small { font-size: .84rem; line-height: 1.4; color: var(--text-3); }
.mega-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; border-radius: 7px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(var(--tint), .06), transparent 60%), var(--panel); border: 1px solid var(--line); }
.mega-h { font: 750 1.1rem/1.25 var(--font-d); letter-spacing: -.015em; }
.mega-side p:not(.mega-h) { color: var(--text-2); font-size: .94rem; }
.mega-side .go { margin-top: auto; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(var(--tint), .06); cursor: pointer; place-items: center; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: var(--text); transition: transform .2s, background .2s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.hd.open .burger { background: transparent; }
.hd.open .burger::before { transform: translateY(6px) rotate(45deg); }
.hd.open .burger::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1100px) and (max-width: 1279px) { .brand-hd .brand-t b { font-size: 1.06rem; } .brand-hd .mark { width: 34px; height: 34px; } }
@media (min-width: 1100px) and (max-width: 1239px) { .nav { gap: 6px; } .nav-a { padding: 0 11px; } .nav-li { padding: 0 13px; } }

/* phones and tablets: the bar keeps the brand, LinkedIn and the menu button; the menu is a panel that slides in from the
   left, over a dimmed page. Its top row repeats the brand and has the close button */
.nav-top, .nav-scrim, .nav-theme, .mega-tgl, .mega-all { display: none; }
@media (max-width: 1099px) {
  .hd { padding-top: 8px; }
  .hd-in { min-height: 58px; gap: 10px; padding: 0 8px 0 12px; }
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; z-index: 59; top: 0; bottom: 0; left: 0; width: min(400px, 88vw);
    display: flex; flex-direction: column; align-items: stretch; gap: 16px; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 20px calc(22px + env(safe-area-inset-bottom, 0px)) calc(22px + env(safe-area-inset-left, 0px));
    border-right: 1px solid var(--line-2); border-radius: 0 16px 16px 0; background-color: var(--void); box-shadow: 24px 0 60px -30px rgba(0, 0, 0, .6);
    transform: translateX(-104%); visibility: hidden; transition: transform .36s cubic-bezier(.5, 0, .75, 0), visibility 0s linear .36s;
  }
  .hd.open .nav { transform: none; visibility: visible; transition: transform .62s cubic-bezier(.16, .9, .2, 1), visibility 0s; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 58; background: rgba(8, 8, 8, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity .32s, visibility 0s linear .32s; }
  .hd.open .nav-scrim { opacity: 1; visibility: visible; transition: opacity .45s; }
  .nav-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-bottom: -4px; }
  .nav-x { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(var(--tint), .06);
    color: var(--text); cursor: pointer; }
  .nav-x:hover { background: rgba(var(--tint), .12); color: var(--text); }
  .nav-x .i { width: 20px; height: 20px; }
  .nav-list { position: relative; flex-direction: column; align-items: stretch; gap: 0; margin: 0 0 0 14px; padding: 0; border: 0; border-radius: 0; background: none; }
  .nav-list > li { position: relative; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li:not(.has-mega), .nav-theme { z-index: 2; background-color: var(--void); }   /* the curtain over the Services list as it moves */
  .theme-sw.sw-d { display: none; }
  /* dark mode: its own row at the foot of the panel */
  .nav-theme { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 16px;
    border-top: 1px solid var(--line); color: var(--text); font: 650 1rem/1 var(--font); }
  /* the trace down the left of the items, with a node for each */
  .nav-list::before { content: ""; position: absolute; left: -14px; top: 27px; bottom: 27px; width: 1px; background: var(--line-2); transform-origin: 0 0; }
  .nav-list > li::before { content: ""; position: absolute; left: -17px; top: 24px; width: 7px; height: 7px; border: 1px solid var(--line-2); border-radius: 50%;
    background: var(--void); box-sizing: border-box; }
  .nav-list > li:has(> .nav-a[aria-current="page"], > .nav-a.on)::before { background: var(--text); border-color: var(--text); }
  .nav-ink { display: none; }
  .nav-a { min-height: 54px; padding: 0; font: 750 1.25rem/1 var(--font-d); letter-spacing: -.01em; color: var(--text); }
  .mega-btn, .has-mega > .nav-a { display: none; }
  /* Services: a list that opens under its title (closed when the menu opens). site.js uncovers it and glides the rest down */
  .mega-tgl { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 54px; padding: 0; border: 0;
    background: none; color: var(--text); font: 750 1.25rem/1 var(--font-d); letter-spacing: -.01em; text-align: left; cursor: pointer; }
  .mega-tgl .i { width: 20px; height: 20px; color: var(--text-2); transition: transform .4s cubic-bezier(.3, .7, .2, 1); }
  .mega-tgl[aria-expanded="true"] .i { transform: rotate(180deg); color: var(--text); }
  .mega { position: static; display: block; height: 0; overflow: hidden; visibility: hidden; padding: 0; margin: 0; border: 0; border-radius: 0;
    background: none; box-shadow: none; width: 100%; transition: visibility 0s linear .34s; }
  .has-mega.open .mega { display: block; height: auto; visibility: visible; transition: none; }
  .mega-list { position: relative; }
  .mega-list::before { content: ""; position: absolute; left: 17px; top: 22px; bottom: 22px; width: 1px; background: var(--line-2); transform-origin: 0 0; }
  .mega-list .ic { position: relative; z-index: 1; background: linear-gradient(rgba(var(--tint), .06), rgba(var(--tint), .06)), var(--void); }
  .mega-all { display: inline-flex; margin: 6px 0 16px 48px; padding: 8px 0; color: var(--text); font: 650 .95rem/1 var(--font); text-decoration: underline;
    text-underline-offset: 3px; }
  .mega-all:hover { color: var(--text); }
  .mega-list { grid-template-columns: 1fr; gap: 0; }
  .mega-list a { padding: 10px 0; }
  .mega-list .ic { width: 34px; height: 34px; }
  .mega-side { display: none; }
  .nav-cta { min-height: 52px; }
  body.menu-open { overflow: hidden; }
  /* while the menu is open the page behind it holds still, so its blur is drawn once and the menu moves smoothly */
  body.menu-open main *, body.menu-open main *::before, body.menu-open main *::after,
  body.menu-open .ft *, body.menu-open .ft *::before, body.menu-open .ft *::after { animation-play-state: paused !important; }
}
/* the menu's entrance: a light runs down the panel's edge, the trace draws itself with a signal running down it, each
   node lights as its item slides in (and the titles decode, site.js) */
@media (max-width: 1099px) and (prefers-reduced-motion: no-preference) {
  .nav { background-image: linear-gradient(to bottom, transparent, rgba(var(--glow), .85) 50%, transparent); background-repeat: no-repeat;
    background-size: 2px 30%; background-position: 100% -60%; }
  .hd.open .nav { animation: nav-beam 1s .1s cubic-bezier(.3, .6, .3, 1) both; }
  .nav-list::before { transform: scaleY(0); }
  .hd.open .nav-list::before { transform: scaleY(1); transition: transform .8s .16s cubic-bezier(.3, .7, .2, 1); }
  .nav-list::after { content: ""; position: absolute; left: -16px; top: 27px; width: 5px; height: 5px; border-radius: 50%; background: var(--text); opacity: 0; }
  .hd.open .nav-list::after { animation: trace-run .85s .16s cubic-bezier(.4, 0, .3, 1) both; }
  .nav-top, .nav-list > li, .nav > .nav-cta, .nav > .nav-li, .nav-theme { opacity: 0; transform: translateX(-18px); }
  .hd.open .nav-top, .hd.open .nav-list > li, .hd.open .nav > .nav-cta, .hd.open .nav > .nav-li, .hd.open .nav-theme { opacity: 1; transform: none;
    transition: opacity .4s, transform .55s cubic-bezier(.2, .8, .2, 1); }
  .hd.open .nav-top { transition-delay: .04s; }
  .hd.open .nav-list > li:nth-child(1) { transition-delay: .14s; }
  .hd.open .nav-list > li:nth-child(2) { transition-delay: .36s; }
  .hd.open .nav-list > li:nth-child(3) { transition-delay: .43s; }
  .hd.open .nav-list > li:nth-child(4) { transition-delay: .5s; }
  .hd.open .nav-list > li:nth-child(5) { transition-delay: .57s; }
  .hd.open .nav > .nav-li, .hd.open .nav > .nav-cta { transition-delay: .64s; }
  .hd.open .nav-theme { transition-delay: .72s; }
  .hd.open .nav-list > li::before { animation: node-on .6s both; }
  .hd.open .nav-list > li:nth-child(1)::before { animation-delay: .18s; }
  .hd.open .nav-list > li:nth-child(2)::before { animation-delay: .62s; }
  .hd.open .nav-list > li:nth-child(3)::before { animation-delay: .7s; }
  .hd.open .nav-list > li:nth-child(4)::before { animation-delay: .78s; }
  .hd.open .nav-list > li:nth-child(5)::before { animation-delay: .86s; }
  .mega-list li, .mega-all { opacity: 0; transform: translateX(-12px); transition: opacity .16s, transform .24s; }   /* closing: they fade at once */
  /* opening: each row slides in as the gliding curtain uncovers it (site.js sets each row's delay from where it sits) */
  .has-mega.open .mega-list li, .has-mega.open .mega-all { opacity: 1; transform: none; transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1); }
  .mega-list::before { transform: scaleY(0); }
  .has-mega.open .mega-list::before { transform: scaleY(1); transition: transform .56s cubic-bezier(.22, .8, .2, 1); }
  .has-mega.open.shut .mega-list li, .has-mega.open.shut .mega-all { opacity: 0; transform: translateX(-12px); transition: opacity .16s, transform .24s; }
  .has-mega.open.shut .mega-list::before { opacity: 0; transition: opacity .16s; }
  .has-mega.measure .mega-list li, .has-mega.measure .mega-all, .has-mega.measure .mega-list::before { transition: none !important; }
}
@keyframes nav-beam { from { background-position: 100% -60%; } to { background-position: 100% 170%; } }
@keyframes trace-run { 0% { top: 27px; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 30px); opacity: 0; } }
@keyframes node-on { 0% { background: var(--void); box-shadow: 0 0 0 0 rgba(var(--glow), 0); } 35% { background: var(--text); box-shadow: 0 0 0 5px rgba(var(--glow), .14); }
  100% { box-shadow: 0 0 0 0 rgba(var(--glow), 0); } }
@media (max-width: 499px) { .brand-hd .brand-t b { font-size: 1.02rem; } .brand-hd .mark { width: 32px; height: 32px; } }

/* LinkedIn and GitHub in the header on every page: beside the call to action on desktop (icons only where the bar is
   tight), beside the menu button on phones and tablets */
.nav-li { padding: 0 14px; }
.nav-li .gh-i, .nav-li .li-i { flex: none; }
.hd-li { display: none; }
@media (min-width: 1100px) and (max-width: 1319px) {
  .nav-li { padding: 0 11px; }
  .nav-li > span:not(.sr) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1099px) {
  .nav-li { display: none; }
  .hd-li { display: inline-flex; align-items: center; min-height: 42px; margin-left: auto; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px;
    background: rgba(var(--tint), .06); color: var(--text); font: 650 .9rem/1 var(--font); letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
  .hd-li:hover { color: var(--text); background: rgba(var(--tint), .12); border-color: rgba(var(--tint), .5); }
  .hd-li + .menu-btn { margin-left: 0; }
  .hd-li + .hd-gh { margin-left: 0; }
}
@media (max-width: 359px) {
  .hd-li { display: none; }
  .hd-li + .menu-btn { margin-left: auto; }
  .nav-li { display: inline-flex; min-height: 52px; }
}

/* ------------------------------------------------------------------ sections */
.sec { padding-block: var(--sec); position: relative; }
.sec + .sec { padding-top: calc(var(--sec) * .55); }
.sec-hd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 14px 56px; align-items: end; margin-bottom: clamp(26px, 3.6vw, 44px); }
.sec-hd p { color: var(--text-2); max-width: 36em; }
.sec-hd .go { justify-self: end; grid-column: 2; }
.sec-hd p + .go { justify-self: start; margin-top: -4px; }
@media (max-width: 860px) { .sec-hd { grid-template-columns: 1fr; } .sec-hd .go { justify-self: start; grid-column: 1; } }
.sec-narrow .faq { max-width: 900px; }

/* ------------------------------------------------------------------ home hero */
.hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(28px, 5vw, 72px) clamp(40px, 6vw, 84px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(55% 60% at 78% 42%, rgba(var(--tint), .06), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(rgba(var(--tint), .07) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--tint), .07) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(75% 70% at 65% 40%, #000 0%, transparent 78%); mask-image: radial-gradient(75% 70% at 65% 40%, #000 0%, transparent 78%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "copy vis" "dock dock";
  column-gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { grid-area: copy; }
.hero-vis { grid-area: vis; }
.hero-in > .dock { grid-area: dock; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 5px;
  background: rgba(var(--card), .7); color: var(--text-2); font-size: .88rem; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(var(--tint), .3); }
@media (prefers-reduced-motion: no-preference) { .dot { animation: ping 2.6s ease-out infinite; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--tint), .3); } 75%, 100% { box-shadow: 0 0 0 9px rgba(var(--tint), 0); } }
.hero h1 { margin-top: 22px; font-size: clamp(2.45rem, 1.2rem + 4.3vw, 4.55rem); }
.hero h1 .hi { display: block; margin-bottom: .32em; font-size: .44em; font-weight: 650; letter-spacing: -.01em; color: var(--text-3); }
.hero-lead { margin-top: 22px; max-width: 34em; font-size: clamp(1.07rem, 1rem + .35vw, 1.24rem); color: var(--text-2); }
.hero-lead strong { display: block; margin-bottom: 8px; color: var(--text); font-weight: 700; }   /* what he brings, as a slogan */
.hero .actions { margin-top: 30px; }
.hire { margin-top: 16px; color: var(--text-3); font-size: .98rem; }
.hire a { color: var(--text); font-weight: 600; }
/* the seven services under the hero: one even 4 × 2 grid (the eighth tile opens all services) */
.dock { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: clamp(30px, 4vw, 48px); }
.dock a { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 62px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(var(--card), .6); color: var(--text); font-weight: 600; font-size: .97rem; line-height: 1.25; text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.dock a:hover { color: var(--text); border-color: rgba(var(--tint), .28); background: rgba(var(--card-2), .65); transform: translateY(-1px); }
.dock .ic { width: 40px; height: 40px; border-radius: 6px; }
.dock .ic .i { width: 19px; height: 19px; }
.dock-t { flex: 1; min-width: 0; }
.dock .go-i { width: 16px; height: 16px; color: var(--text-3); transition: transform .2s, color .2s; }
.dock a:hover .go-i { color: var(--blue-2); transform: translateX(3px); }
.dock .dock-all { justify-content: space-between; padding-left: 18px; border: 1px solid transparent;
  background: var(--grad); color: var(--on-grad); }
.dock .dock-all .go-i, .dock .dock-all:hover .go-i { color: var(--on-grad); }
.dock .dock-all:hover { color: var(--on-grad); background: var(--grad); border-color: transparent; }   /* stays dark: the light card hover must not reach it */
@media (max-width: 1099px) { .dock { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 459px) { .dock { gap: 8px; } .dock a { min-height: 56px; gap: 10px; padding: 8px 10px 8px 8px; font-size: .9rem; } .dock .ic { width: 34px; height: 34px; } .dock .go-i { display: none; } .dock .dock-all .go-i { display: block; } }

/* the AI core: a network sphere (canvas) with his cut-out portrait standing in front of it. Nothing behind him and nothing
   cut away from him: only the photo's own straight edges (his arms at its sides, the bottom of the frame) fade out softly.
   Measured on the 1038 x 1384 cut-out: the centre of his head at 59.5% of its width */
.hero-vis { position: relative; width: 100%; max-width: 560px; justify-self: center; }
.stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 100%; }
.core-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cut { position: absolute; inset: 0; pointer-events: none; }
.cut img { position: absolute; left: 50%; bottom: 0; width: auto; height: 100%; max-width: none; transform: translateX(-59.5%);
  -webkit-mask-image: linear-gradient(#000 78%, transparent 99%), linear-gradient(90deg, transparent, #000 7%, #000 87%, transparent 99.5%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(#000 78%, transparent 99%), linear-gradient(90deg, transparent, #000 7%, #000 87%, transparent 99.5%);
  mask-composite: intersect; }
.mono { position: absolute; inset: 15%; display: grid; place-items: center; border-radius: 50%; font: 850 clamp(2.4rem, 7vw, 4rem)/1 var(--font-d); letter-spacing: -.03em; color: var(--text); }
@media (max-width: 899px) {
  .hero-in { grid-template-columns: 1fr; grid-template-areas: "copy" "vis" "dock"; row-gap: 28px; }
  .hero-vis { max-width: 460px; }
  .hero-in > .dock { margin-top: 0; }
}

/* brands strip */
.brands { border-block: 1px solid var(--line); background: var(--deep); }
.brands-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-block: 22px; }
.brands h2 { font: 600 .9rem/1.3 var(--font); letter-spacing: .02em; color: var(--text-3); }
.brands ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 34px; }
.brands a { font: 750 1.06rem/1.2 var(--font-d); letter-spacing: -.01em; color: var(--text-2); text-decoration: none; }
.brands a:hover { color: var(--text); }

/* ------------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { display: grid; align-content: start; gap: 10px; padding: clamp(20px, 3vw, 34px); background: var(--void); color: var(--text); text-decoration: none; transition: background .2s; }
.stat:hover { color: var(--text); background: var(--stat-hover); }
.stat-n { font: 800 clamp(2.3rem, 1.4rem + 2.6vw, 3.5rem)/1 var(--font-d); letter-spacing: -.04em; font-variant-numeric: proportional-nums;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-l { color: var(--text-2); font-size: 1rem; max-width: 24em; }
@media (max-width: 799px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 459px) { .stat { padding: 18px 16px; } .stat-l { font-size: .92rem; } }

/* ------------------------------------------------------------------ engine */
.sec-engine { background: radial-gradient(60% 55% at 25% 55%, rgba(var(--tint), .04), transparent 70%); }
.engine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.engine-svg { width: 100%; height: auto; overflow: visible; }
.e-halo { fill: url(#ehalo); }
.eh-0 { stop-color: rgb(var(--glow)); stop-opacity: .08; }
.eh-1 { stop-color: rgb(var(--glow)); stop-opacity: 0; }
.e-ring { fill: none; stroke: rgba(var(--tint), .22); stroke-width: 1.2; }
.e-ring-2 { stroke: rgba(var(--tint), .1); stroke-dasharray: 2 6; }
.e-comet { fill: none; stroke: rgba(var(--glow), .8); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 80 1252; }
.e-comet-2 { stroke-dashoffset: -666; opacity: .7; }
.e-spoke { stroke: rgba(var(--glow), .55); stroke-width: 1.4; stroke-dasharray: 2 9; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .e-comet { animation: comet 10s linear infinite; }
  .e-comet-2 { animation: comet2 10s linear infinite; }
  .e-spoke { animation: flow 1.4s linear infinite; }
  .e-spoke.rev { animation-direction: reverse; }
}
@keyframes comet { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1332; } }
@keyframes comet2 { from { stroke-dashoffset: -666; } to { stroke-dashoffset: -1998; } }
@keyframes flow { to { stroke-dashoffset: -22; } }
.e-core { fill: var(--core); stroke: rgba(var(--tint), .45); stroke-width: 1.2; }
.e-core-ring { fill: none; stroke: rgba(var(--tint), .3); stroke-width: 1; stroke-dasharray: 3 5; }
.e-ai { fill: var(--text); font: 800 46px var(--font-d); letter-spacing: -1.5px; }
.e-ai-s { fill: var(--text-2); font: 600 15px var(--font); letter-spacing: 1.5px; }
.e-node rect { fill: var(--panel); stroke: var(--line-2); stroke-width: 1.2; }
.e-n { fill: var(--text); font: 700 15.5px var(--font-d); }
.e-r { fill: var(--text-3); font: 600 12.5px var(--font); letter-spacing: .6px; }
.flow { list-style: none; position: relative; display: grid; gap: 6px; }
.flow::before { content: ""; position: absolute; left: 21px; top: 26px; bottom: 26px; width: 1px; background: linear-gradient(var(--blue-2), var(--violet) 60%, rgba(var(--tint), .06)); }
.flow a { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 10px 12px 10px 0; border-radius: 7px; color: var(--text); text-decoration: none; }
.flow a:hover { background: rgba(var(--tint), .05); }
.flow-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--void);
  font: 700 .86rem/1 var(--font-d); color: var(--blue-2); box-shadow: 0 0 0 5px var(--void); }
.flow-t { display: grid; gap: 2px; min-width: 0; }
.flow-t b { font: 700 1.1rem/1.3 var(--font-d); letter-spacing: -.01em; }
.flow-r { font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.flow-d { color: var(--text-2); font-size: .97rem; }
@media (max-width: 899px) { .engine { grid-template-columns: 1fr; } .engine-vis { display: none; } }

.hud { border: 1px solid transparent; border-radius: var(--r);
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
              linear-gradient(150deg, rgba(var(--tint), .3), rgba(var(--tint), .08) 32%, rgba(var(--tint), .08) 68%, rgba(var(--tint), .22)) border-box; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 650; color: var(--live); white-space: nowrap; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state-soon { color: var(--signal); }

/* ------------------------------------------------------------------ services bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(var(--card-2), .7), rgba(var(--card), .45)); color: var(--text); text-decoration: none; overflow: hidden; transition: border-color .2s, background .2s; }
.tile:hover { color: var(--text); border-color: var(--line-2); background: linear-gradient(180deg, rgba(var(--card-2), .8), rgba(var(--card), .55)); }
.tile h3 { font-size: 1.18rem; }
.tile p { color: var(--text-2); font-size: .98rem; }
.tile-xl { grid-column: span 2; grid-row: span 2; padding: clamp(24px, 3vw, 36px); }
.tile-xl h3 { font-size: clamp(1.5rem, 1.15rem + 1vw, 2.05rem); }
.tile-xl > p { font-size: 1.06rem; max-width: 32em; }
.tile-wide { grid-column: span 2; }
.tile-xl, .tile-wide { border: 1px solid transparent;
  background: radial-gradient(90% 80% at 100% 0%, rgba(var(--tint), .05), transparent 60%) padding-box, linear-gradient(var(--panel), var(--panel)) padding-box,
              linear-gradient(150deg, rgba(var(--tint), .3), rgba(var(--tint), .08) 35%, rgba(var(--tint), .08) 65%, rgba(var(--tint), .22)) border-box; }
.tile-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tile-tags li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 5px; font-size: .78rem; color: var(--text-3); }
.tile-covers { margin-top: 6px; padding-block: 18px; border-block: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px;
  font-size: .98rem; color: var(--text); }
.tile-ways { display: grid; gap: 12px; margin-top: 4px; }
.tile-ways p { font-size: .86rem; font-weight: 650; color: var(--text-3); }
.tile-ways ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile-ways li { display: grid; gap: 6px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: rgba(var(--card), .35); }
.tile-ways b { font: 700 .98rem/1.25 var(--font-d); color: var(--text); }
.tile-ways span { font-size: .86rem; line-height: 1.4; color: var(--text-3); }
.tile-cta { justify-content: center; border-style: dashed; border-color: var(--line-2); background: rgba(var(--card), .4); }
.tile-cta .btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 1099px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile-xl { grid-row: auto; } }
@media (max-width: 599px) { .bento { grid-template-columns: 1fr; } .tile-xl, .tile-wide { grid-column: auto; } .tile { padding: 20px; } .tile-covers, .tile-ways ul { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ AI lab */
.lab { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sys { display: flex; flex-direction: column; gap: 12px; padding: 22px; color: var(--text); text-decoration: none; transition: transform .2s; }
.sys:hover { color: var(--text); transform: translateY(-2px); }
.sys-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sys h3 { font-size: 1.12rem; }
.sys p { color: var(--text-2); font-size: .97rem; }
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.stack li { padding: 3px 9px; border-radius: 4px; background: rgba(var(--tint), .08); font-size: .78rem; color: var(--text-3); }
@media (max-width: 1023px) { .lab { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .lab { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ work cards and covers */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 32px); }
.work { display: grid; gap: 16px; align-content: start; min-width: 0; }
.work-media { display: block; border-radius: var(--r); }
.work-body { display: grid; gap: 10px; align-content: start; min-width: 0; }
.work h2, .work h3 { font-size: clamp(1.18rem, 1rem + .6vw, 1.45rem); }
.work h2 a, .work h3 a { color: var(--text); text-decoration: none; }
.work h2 a:hover, .work h3 a:hover { text-decoration: underline; text-decoration-color: var(--blue-2); }
.work-body > p:not(.meta) { color: var(--text-2); }
.work:hover .media img { transform: scale(1.02); }
.work.span2 { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(18px, 3vw, 40px); }
/* the featured project (Glass Railing Store): first, across the whole row, the screen large beside the words */
.work-feat { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3.4vw, 48px);
  padding: clamp(14px, 1.6vw, 20px); border: 1px solid transparent; border-radius: calc(var(--r) + 6px);
  background: radial-gradient(70% 90% at 100% 0%, rgba(var(--tint), .06), transparent 60%) padding-box, linear-gradient(var(--panel), var(--panel)) padding-box,
              linear-gradient(150deg, rgba(var(--tint), .34), rgba(var(--tint), .08) 38%, rgba(var(--tint), .08) 62%, rgba(var(--tint), .26)) border-box; }
.work-feat .work-body { gap: 12px; padding-right: clamp(0px, 1.6vw, 18px); }
.work-feat h2, .work-feat h3 { font-size: clamp(1.4rem, 1.05rem + 1.1vw, 2rem); letter-spacing: -.02em; }
.work-feat .work-body > p:not(.meta) { font-size: 1.04rem; }
.feat-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 5px; background: var(--text); color: var(--void); font-weight: 650; }
@media (max-width: 760px) { .works { grid-template-columns: 1fr; } .work.span2, .work-feat { grid-template-columns: 1fr; } .work-feat .work-body { padding: 4px 6px 8px; } }

/* a project's real screens, captioned with the page's address */
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 1.4em; }
.screen { margin: 0; min-width: 0; }
.screens > .screen:first-child:nth-last-child(odd) { grid-column: 1 / -1; }        /* an odd number of screens: the first one runs wide */
.screen img { display: block; width: 100%; height: auto; border-radius: 7px; border: 1px solid var(--line-2); background: var(--deep); }
.screen figcaption { margin-top: 8px; font-size: .86rem; color: var(--text-3); overflow-wrap: anywhere; }
@media (max-width: 599px) { .screens { grid-template-columns: 1fr; } }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .84rem; font-weight: 600; color: var(--text-3); }
.meta a { color: var(--text-2); }
.kind { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 5px; border: 1px solid var(--line-2); background: rgba(var(--tint), .05); color: var(--kind-text); font-size: .78rem; font-weight: 650; letter-spacing: .01em; }
.st::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--live); vertical-align: 1px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 5px; font-size: .82rem; color: var(--text-2); text-decoration: none; }
.tags a:hover { color: var(--text); border-color: var(--line-2); }

.media { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--deep); container-type: inline-size; }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease; }
.media-shot { padding-top: 28px; background: #111111; }
.chrome { position: absolute; top: 0; left: 0; right: 0; height: 28px; display: flex; align-items: center; gap: 6px; padding-left: 12px; background: #1A1A1A; border-bottom: 1px solid var(--line); }
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--tint), .3); }

.cv { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4cqi; padding: 5.5cqi;
  background: radial-gradient(70% 90% at 85% 10%, rgba(var(--tint), .1), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(var(--tint), .05), transparent 65%), var(--panel); }
.cv::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(var(--tint), .06) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--tint), .06) 1px, transparent 1px); background-size: 6cqi 6cqi; }
.cv > * { position: relative; z-index: 1; }
.cv-top { display: flex; justify-content: space-between; gap: 3cqi; font: 600 clamp(9px, 2.2cqi, 15px)/1.2 var(--font); color: var(--text-3); }
.cv-hero { display: grid; gap: 1.4cqi; margin-top: auto; }
.cv-hero b { font: 800 clamp(40px, 17cqi, 150px)/.9 var(--font-d); letter-spacing: -.05em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cv-hero span { font: 600 clamp(11px, 3cqi, 22px)/1.2 var(--font-d); color: var(--text-2); }
.cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqi; padding-top: 3.4cqi; border-top: 1px solid var(--line); }
.cv-row b { display: block; font: 800 clamp(16px, 6.4cqi, 54px)/1 var(--font-d); letter-spacing: -.03em; color: var(--text); }
.cv-row span { font-size: clamp(9px, 2.3cqi, 17px); color: var(--text-3); }
.cv-langs { flex: 1; width: 100%; height: auto; min-height: 0; }
.ll line { stroke: rgba(var(--glow), .4); stroke-width: 1.4; stroke-dasharray: 3 6; }
.ln circle { fill: var(--panel-2); stroke: rgba(var(--tint), .45); stroke-width: 1.4; }
.ln text { fill: var(--text); font: 800 17px var(--font-d); }
.lc rect { fill: #FFFFFF; stroke: none; }
.lc text { fill: #1A1A1A; font: 700 17px var(--font-d); }
.cv-frames { list-style: none; flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2cqi; align-items: stretch; padding-block: 3.4cqi;
  background-image: radial-gradient(circle, rgba(var(--tint), .35) .55cqi, transparent .6cqi), radial-gradient(circle, rgba(var(--tint), .35) .55cqi, transparent .6cqi);
  background-size: 4cqi 2.6cqi; background-repeat: repeat-x; background-position: 0 0, 0 100%; }
.cv-frames li { display: flex; align-items: flex-end; padding: 2cqi; border-radius: .6cqi; border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(var(--tint), .12), rgba(var(--tint), .04) 50%, rgba(var(--card), .9)); font: 700 clamp(8px, 2.3cqi, 17px)/1.15 var(--font-d); color: var(--text); }
.cv-frames li.on { border-color: rgba(var(--glow), .6); box-shadow: 0 0 3cqi rgba(var(--glow), .2); background: linear-gradient(160deg, rgba(var(--tint), .24), rgba(var(--tint), .08) 55%, rgba(var(--card), .9)); }
.cv-scrub { display: flex; align-items: center; gap: 2.4cqi; color: var(--text); }
.cv-scrub .i { width: clamp(14px, 4cqi, 30px); height: clamp(14px, 4cqi, 30px); fill: currentColor; }
.trk { flex: 1; height: max(3px, .8cqi); border-radius: 9px; background: rgba(var(--tint), .2); overflow: hidden; }
.trk i { display: block; width: 38%; height: 100%; background: var(--grad-line); }
.gta-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 2cqi; align-items: stretch; }
.gta-figs { list-style: none; display: grid; align-content: center; gap: 3.2cqi; }
.gta-figs b { display: block; font: 800 clamp(20px, 9cqi, 76px)/.95 var(--font-d); letter-spacing: -.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gta-figs span { font: 600 clamp(9px, 2.3cqi, 17px)/1.2 var(--font); color: var(--text-2); }
.gta-map { width: 100%; height: 100%; min-height: 0; }
.gm-lake { fill: rgba(var(--tint), .06); stroke: rgba(var(--tint), .3); stroke-width: 1.2; }
.gm-spoke { stroke: rgba(var(--glow), .4); stroke-width: 1; stroke-dasharray: 2 5; }
.gm-city circle { fill: var(--panel-2); stroke: rgba(var(--tint), .65); stroke-width: 1.3; }
.gm-city text { fill: var(--text-2); font: 600 12px var(--font); }
.gm-base circle { fill: #FFFFFF; stroke: #121212; stroke-width: 1.6; }
.gm-base text { fill: var(--text); font: 700 13px var(--font-d); }

/* ------------------------------------------------------------------ process */
.steps { list-style: none; counter-reset: s; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.steps::before { content: ""; position: absolute; left: 22px; right: 12%; top: 22px; height: 1px; background: linear-gradient(90deg, var(--blue-2), var(--violet) 70%, transparent); }
.steps li { counter-increment: s; position: relative; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--void); box-shadow: 0 0 0 6px var(--void); font: 700 .86rem/1 var(--font-d); color: var(--blue-2); }
.steps b { font: 700 1.12rem/1.3 var(--font-d); letter-spacing: -.01em; }
.steps span { color: var(--text-2); font-size: .97rem; }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) {
  .steps, .steps-4 { grid-template-columns: 1fr; gap: 18px; }
  .steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; background: linear-gradient(var(--blue-2), var(--violet) 70%, transparent); }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
  .steps li::before { grid-row: span 2; margin: 0; }
}

/* ------------------------------------------------------------------ career, tools, industries */
.career { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.col-h { margin-bottom: 22px; font: 650 .84rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tl { list-style: none; position: relative; display: grid; gap: 26px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--blue-2), var(--violet) 70%, rgba(var(--tint), .06)); }
.tl li { position: relative; display: grid; gap: 4px; padding-left: 36px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--blue-2); background: var(--void); }
.tl li:first-child::before { background: var(--blue-2); }
.when { font-size: .84rem; font-weight: 650; color: var(--text-3); }
.org { color: var(--blue-2); font-weight: 600; font-size: .97rem; }
.tl p { margin-top: 4px; color: var(--text-2); font-size: .98rem; }
.career .actions { margin-top: 30px; }
@media (max-width: 860px) { .career { grid-template-columns: 1fr; } }

.marquee { position: relative; overflow: hidden; padding-block: 18px; margin-bottom: 36px; border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; }
.mq { display: flex; gap: 48px; padding-right: 48px; }
.mq span { font: 750 1.3rem/1 var(--font-d); letter-spacing: -.01em; color: var(--text-3); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .mq-track { animation: marquee 46s linear infinite; } .marquee:hover .mq-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tg { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(var(--card), .5); }
.tg h3, .inds h3 { margin-bottom: 14px; font-size: 1rem; }
.chips-s { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.chips-s li { padding: 5px 11px; border-radius: 5px; background: rgba(var(--tint), .08); color: var(--text-2); font-size: .88rem; }
.inds { margin-top: 28px; }
@media (max-width: 1023px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .tools { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ blog */
.ins { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
.feat { display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); }
.feat h2, .feat h3 { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.8rem); }
.feat h2 a, .feat h3 a { color: var(--text); text-decoration: none; }
.feat h2 a:hover, .feat h3 a:hover { text-decoration: underline; text-decoration-color: var(--blue-2); }
.feat > p:not(.meta) { color: var(--text-2); }
.feat .go { justify-self: start; }
.posts { list-style: none; display: grid; border-top: 1px solid var(--line); }
.post { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.post h2, .post h3 { font-size: 1.1rem; }
.post h2 a, .post h3 a { color: var(--text); text-decoration: none; }
.post h2 a:hover, .post h3 a:hover { color: var(--hi); }
.post p:not(.meta) { color: var(--text-2); font-size: .96rem; }
.ext { display: inline-block; width: 15px; height: 15px; margin-left: 6px; vertical-align: -1px; color: var(--text-3); }
@media (max-width: 899px) { .ins { grid-template-columns: 1fr; } }
/* blog: the topic filter (shown by site.js; without it every post is listed) */
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; padding-top: clamp(22px, 3vw, 34px); }
.blog-filter[hidden] { display: none; }
.tchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--text-2); font: 600 .9rem/1 var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tchip .n { color: var(--text-3); font-weight: 500; font-size: .8rem; }
.tchip:hover { color: var(--text); border-color: rgba(var(--tint), .5); }
.tchip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--void); }
.tchip[aria-pressed="true"] .n { color: inherit; opacity: .7; }
.arts > [hidden], .blog-part[hidden], .blog-none[hidden] { display: none !important; }
.blog-none { padding-block: 24px 48px; color: var(--text-2); }
.bf-wrap + .blog-part { padding-top: clamp(26px, 3.5vw, 44px); }
/* blog page: the newest post large, then one row of three; earlier posts three to a row */
.arts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.feat-lg { grid-column: 1 / -1; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 18px clamp(24px, 4vw, 60px); align-items: center; }
.feat-main { display: grid; gap: 14px; align-content: start; }
.feat-main > p:not(.meta) { color: var(--text-2); }
.feat-main .go { justify-self: start; }
/* every post has its image: on top of its card, beside the newest post, as a thumbnail in lists, under an article's title */
.art-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 7px; border: 1px solid var(--line); background: #141414; }
.art-media img, .art-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.art-card:hover .art-media img, .feat:hover .art-media img, .post:hover .art-media img { transform: scale(1.02); }
.art-card { --pad: clamp(20px, 2.4vw, 28px); display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; padding: var(--pad); }
.art-card > .art-media { margin: calc(var(--pad) * -1 + 1px) calc(var(--pad) * -1 + 1px) 6px; border: 0; border-bottom: 1px solid var(--line); border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; }
.feat > .art-media { margin-bottom: 4px; }
.art-card h2, .art-card h3 { font-size: clamp(1.12rem, 1rem + .45vw, 1.32rem); line-height: 1.3; }
.art-card h2 a, .art-card h3 a { color: var(--text); text-decoration: none; }
.art-card h2 a:hover, .art-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--blue-2); }
.art-card > p:not(.meta) { color: var(--text-2); font-size: .97rem; }
.art-card .go { justify-self: start; }
.post { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; }
.post-t { display: grid; gap: 8px; min-width: 0; }
.art-cover { margin-top: clamp(4px, 1vw, 12px); }
.art-cover-img, .svc-cover img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); background: #141414; }
.svc-cover { margin-top: clamp(4px, 1vw, 12px); }
.toc-plain li::before { content: ""; width: 7px; height: 7px; margin-top: .52em; border: 0; border-radius: 50%; background: var(--blue-2); }
.posts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 44px); }
@media (max-width: 999px) { .arts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .arts:not(.arts-3) > .art-card:last-child:nth-child(even) { grid-column: 1 / -1; }
  .feat-lg { grid-template-columns: 1fr; } .feat-lg > .art-media { order: -1; } }
@media (max-width: 639px) { .arts, .posts-2 { grid-template-columns: 1fr; } }
@media (max-width: 459px) { .post { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; } }
/* ------------------------------------------------------------------ FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 2px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2, .faq summary h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; color: var(--blue-2); transition: transform .2s;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.6px no-repeat, linear-gradient(currentColor, currentColor) center / 1.6px 100% no-repeat; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover h2, .faq summary:hover h3 { color: var(--hi); }
.ans { padding: 0 2px 22px; max-width: 70ch; color: var(--text-2); }
.ans a { color: var(--hi); }

/* ------------------------------------------------------------------ closer */
.closer { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line); }
.closer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 70% at 18% 100%, rgba(var(--tint), .05), transparent 70%); }
.closer h2 { max-width: 18ch; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); }
.closer-big h2 { max-width: 13ch; font-size: clamp(2.5rem, 1.2rem + 5vw, 5.2rem); line-height: 1; letter-spacing: -.045em; }
.closer-t { margin-top: 18px; max-width: 38em; color: var(--text-2); font-size: 1.1rem; }
.closer .actions { margin-top: 30px; }
.reach { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.reach li { display: grid; gap: 4px; min-width: 0; }
.reach-l { font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.reach a { color: var(--text); text-decoration: none; font-weight: 600; }
.reach a:hover { color: var(--hi); }
.copy { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.copy button { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 5px; background: rgba(var(--tint), .08); color: var(--text-2); font-size: .8rem; font-weight: 650; cursor: pointer; }
.copy button:hover { color: var(--text); border-color: rgba(var(--tint), .5); }

/* ------------------------------------------------------------------ footer */
.ft { border-top: 1px solid var(--line); background: var(--deep); padding-block: 56px calc(30px + env(safe-area-inset-bottom, 0px)); }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 32px; }
.ft-contact { container-type: inline-size; }
.ft-mail { white-space: nowrap; font-size: min(1em, 7.3cqi); }   /* the address stays on one line: smaller only when its column is narrower than it */
.ft-about p { margin-top: 16px; max-width: 30em; color: var(--text-2); font-size: .95rem; }
.ft-out { display: flex; gap: 18px; }
.ft-out a { color: var(--text); font-weight: 600; font-size: .95rem; }
.ft h2 { margin-bottom: 12px; font: 650 .82rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ft ul { list-style: none; display: grid; gap: 8px; }
.ft li { color: var(--text-2); font-size: .94rem; overflow-wrap: anywhere; }
.ft li a { color: var(--text-2); text-decoration: none; }
.ft li a:hover { color: var(--text); }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .86rem; }
@media (max-width: 1023px) { .ft-grid { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 28px 20px; } .ft-about { grid-column: 1 / -1; } }
@media (max-width: 339px) { .ft-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ inner pages */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(34px, 4vw, 52px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(50% 80% at 85% 0%, rgba(var(--tint), .05), transparent 70%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: linear-gradient(rgba(var(--tint), .06) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--tint), .06) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(22px, 3vw, 36px); font-size: .86rem; color: var(--text-3); }
.crumbs li { display: inline-flex; gap: 6px; }
.crumbs li + li::before { content: "/"; color: rgba(var(--tint), .35); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.ph { display: grid; gap: clamp(28px, 4vw, 56px); align-items: end; }
.ph-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.ph-copy { display: grid; align-content: start; min-width: 0; }
.ph-copy h1 { font-size: clamp(2.1rem, 1.25rem + 2.9vw, 3.6rem); max-width: 22ch; }
.ph-meta { margin-bottom: 18px; }
.lead { margin-top: 20px; max-width: 40em; font-size: clamp(1.07rem, 1rem + .35vw, 1.22rem); color: var(--text-2); }
.ph-copy .actions { margin-top: 28px; }
@media (max-width: 899px) { .ph-split { grid-template-columns: 1fr; } }
/* service pages: the title runs across the whole header, so it takes two lines on a computer instead of three;
   the lead, the buttons and the panel beside them sit underneath */
.ph-wide { row-gap: 0; }
.ph-wide > h1 { grid-column: 1 / -1; font-size: clamp(2.1rem, 1.25rem + 2.9vw, 3.6rem); max-width: 30ch; }
.ph-wide > .ph-meta { grid-column: 1 / -1; }
@media (max-width: 899px) { .ph-wide > .ph-copy + * { margin-top: clamp(28px, 4vw, 56px); } }
.nf .ticks { margin-top: 26px; }
.page-hero.nf { padding-top: clamp(48px, 7vw, 96px); }

/* panels beside a page title */
.glance, .facts { padding: 22px; display: grid; gap: 20px; align-self: end; min-width: 0; }
.g-tools h2, .side h2, .side-card h2 { margin-bottom: 12px; font: 650 .8rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 0; }
.facts dt, .kv dt { font-size: .76rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.facts dd, .kv dd { margin: 4px 0 0; color: var(--text); font-size: .97rem; overflow-wrap: anywhere; }
@media (max-width: 459px) { .facts dl { grid-template-columns: 1fr; } }
/* case study layout */
.case-cover { margin-top: clamp(28px, 4vw, 48px); }
.case-cover .media { box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .45); }
.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: var(--sec); align-items: start; }
.side { position: sticky; top: calc(var(--hd-h) + 24px + env(safe-area-inset-top, 0px)); display: grid; gap: 26px; align-content: start; }
.side ul { list-style: none; display: grid; gap: 4px; }
.side li a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--text-2); text-decoration: none; font-size: .94rem; }
.side li a:hover, .side li a[aria-current="true"] { color: var(--text); border-left-color: var(--blue-2); }
.side .btn { justify-self: start; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } .side { position: static; } .side .toc { display: none; } }

.prose { min-width: 0; max-width: 72ch; color: var(--text-2); font-size: 1.06rem; }
.prose > * + * { margin-top: 1.1em; }
.prose section + section { margin-top: clamp(40px, 5vw, 64px); }
.prose section > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.55rem, 1.15rem + 1.3vw, 2.15rem); color: var(--text); }
.prose section, .art-body > h2 { scroll-margin-top: calc(var(--hd-h) + 24px); }
.prose h3 { font-size: 1.2rem; }
.prose a { color: var(--hi); }
.prose ul:not(.results-list):not(.ticks):not(.sources):not(.scr-list) { padding-left: 1.2em; }
.prose ul:not(.results-list):not(.ticks):not(.sources):not(.scr-list) li + li { margin-top: .4em; }
.prose ol { padding-left: 1.4em; }
.prose ol li + li { margin-top: .55em; }
.prose li::marker { color: var(--blue-2); font-weight: 700; }
.prose b, .prose strong { color: var(--text); font-weight: 650; }
.prose code { padding: .12em .4em; border-radius: 4px; background: rgba(var(--tint), .1); color: var(--text); font: .88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.art-body > h2 { margin-top: 1.9em; }
.art-body > h2:first-child { margin-top: 0; }
/* sources at the end of an article */
.sources { list-style: none; display: grid; gap: 12px; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: .95rem; }
.sources li { display: grid; gap: 2px; }
.sources a { overflow-wrap: anywhere; }
.src-by { color: var(--text-3); font-size: .86rem; }
.ticks { list-style: none; display: grid; gap: 10px; padding: 0; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--grad-line); }
.ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 599px) { .ticks.cols { grid-template-columns: 1fr; } }
.results-list { list-style: none; display: grid; gap: 1px; padding: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.results-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 18px 22px; background: var(--void); }
.results-list b { font: 800 1.7rem/1 var(--font-d); letter-spacing: -.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.results-list span { color: var(--text-2); }
@media (max-width: 559px) { .results-list li { grid-template-columns: 1fr; gap: 6px; } }
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.modules div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 7px; background: rgba(var(--card), .5); }
.modules dt { font: 700 1.02rem/1.3 var(--font-d); color: var(--text); }
.modules dd { margin: 6px 0 0; font-size: .97rem; }
@media (max-width: 599px) { .modules { grid-template-columns: 1fr; } }
.shot { margin: 1.6em 0 0; }
.shot img { width: 100%; border-radius: 7px; border: 1px solid var(--line-2); background: var(--deep); }
.shot figcaption { margin-top: 10px; font-size: .9rem; color: var(--text-3); }
.shot-phone { max-width: 320px; }
.shot-phone img { border-radius: 14px; }
.access { display: grid; gap: 1px; margin-top: 1.4em; background: var(--line); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; font-size: .9rem; }
.access > div { display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, 62px); align-items: center; background: var(--void); }
.access > div > * { padding: 9px 6px; text-align: center; }
.access > div > :first-child { text-align: left; padding-left: 14px; color: var(--text); font-weight: 600; }
.access .a-hd { background: var(--panel); font-size: .72rem; font-weight: 650; color: var(--text-3); line-height: 1.2; }
.access i { display: block; width: 14px; height: 14px; margin: auto; border-radius: 4px; border: 1px solid var(--line-2); }
.access i.y { background: var(--grad-line); border-color: transparent; }
@media (max-width: 599px) { .access > div { grid-template-columns: minmax(0, 1fr) repeat(5, 38px); } .access .a-hd { font-size: .58rem; } .access > div > :first-child { font-size: .82rem; padding-left: 10px; } }

/* services hub rows */
.svc-rows { display: grid; gap: 14px; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .7fr); gap: clamp(20px, 3vw, 40px); padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--r); background: rgba(var(--card), .45); scroll-margin-top: calc(var(--hd-h) + 20px); }
.svc-head { display: grid; gap: 12px; align-content: start; }
.svc-head h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); }
.svc-head h2 a { color: var(--text); text-decoration: none; }
.svc-head h2 a:hover { color: var(--hi); }
.svc-head p { color: var(--text-2); }
.svc-head .go { margin-top: 4px; justify-self: start; }
.svc-inc h3, .svc-proof h3 { margin-bottom: 12px; font: 650 .8rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.svc-inc .ticks { gap: 7px; font-size: .95rem; color: var(--text-2); }
.svc-proof ul { list-style: none; display: grid; gap: 8px; }
.svc-proof a { color: var(--text); font-weight: 600; font-size: .95rem; }
@media (max-width: 999px) { .svc-row { grid-template-columns: 1fr 1fr; } .svc-head { grid-column: 1 / -1; } }
@media (max-width: 599px) { .svc-row { grid-template-columns: 1fr; } }

/* service pages: the problems a service solves, each with what changes for the team */
.solves { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.solves li { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(var(--card), .45); }
.sv-p { color: var(--text-3); font-size: .95rem; font-weight: 600; }
.sv-s { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); font-size: 1.02rem; line-height: 1.5; }
@media (max-width: 699px) { .solves { grid-template-columns: 1fr; } }

/* service page blocks */
.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.blk { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(var(--card), .45); }
.blk h3 { margin-bottom: 14px; font-size: 1.1rem; }
.blk .ticks { gap: 8px; font-size: .96rem; color: var(--text-2); }
.blocks-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blocks-n5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.blocks-n5 .blk { grid-column: span 2; }
.blocks-n5 .blk:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1023px) {
  .blocks, .blocks-n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blocks-n5 .blk, .blocks-n5 .blk:nth-child(n+4) { grid-column: auto; }
  .blocks-n3 .blk:last-child, .blocks-n5 .blk:last-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) { .blocks, .blocks-n4, .blocks-n5 { grid-template-columns: 1fr; } .blocks-n3 .blk:last-child, .blocks-n5 .blk:last-child { grid-column: auto; } }
.proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.proof { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; color: var(--text); text-decoration: none; }
.proof:hover { color: var(--text); }
.proof h3 { font-size: 1.2rem; }
.proof p { color: var(--text-2); font-size: .98rem; }
.go-t { margin-top: auto; color: var(--hi); font-weight: 650; font-size: .94rem; }
.proof:hover .go-t { color: var(--text); }
@media (max-width: 899px) { .proofs { grid-template-columns: 1fr; } }
.rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rel-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(var(--card), .45); color: var(--text); text-decoration: none; transition: border-color .2s; }
.rel-card:hover { color: var(--text); border-color: var(--line-2); }
.rel-card h3 { font-size: 1.12rem; }
.rel-card p { color: var(--text-2); font-size: .95rem; }
@media (max-width: 899px) { .rel { grid-template-columns: 1fr; } }

/* about */
.portrait-wrap { width: 100%; max-width: 440px; justify-self: center; align-self: center; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.split-2 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); }
.ai-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.ai-list a { display: grid; gap: 6px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: rgba(var(--card), .45); color: var(--text); text-decoration: none; }
.ai-list a:hover { color: var(--text); border-color: var(--line-2); }
.ai-list b { font: 700 1.02rem/1.3 var(--font-d); }
.ai-list span { color: var(--text-2); font-size: .93rem; }
@media (max-width: 860px) { .split-2 { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .kv, .ai-list { grid-template-columns: 1fr; } }

/* article author */
.author-box { display: flex; gap: 18px; align-items: center; margin-top: 3em; padding: 20px; }
.ab-t { display: grid; gap: 14px; justify-items: start; }
/* service pages: who runs the service, with the LinkedIn profile */
.by { display: flex; align-items: center; gap: 14px; max-width: 580px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.author-img.author-sm { width: 50px; height: 50px; }
.by-t { display: grid; gap: 3px; min-width: 0; }
.by-t b { color: var(--text); font: 700 1.02rem/1.25 var(--font-d); }
.by-t span { color: var(--text-3); font-size: .9rem; line-height: 1.35; }
.by-li { display: inline-flex; align-items: center; gap: 9px; flex: none; min-height: 42px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 7px;
  background: rgba(var(--tint), .06); color: var(--text); font: 650 .92rem/1 var(--font); text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s; }
.by-li:hover { color: var(--text); background: rgba(var(--tint), .12); border-color: rgba(var(--tint), .5); }
.by-li .i { width: 18px; height: 18px; color: var(--blue-2); }
.by .by-li { margin-left: auto; }
@media (max-width: 459px) { .by { flex-wrap: wrap; } .by .by-li { margin-left: 64px; } }
.author-box p { font-size: .98rem; }
.author-box b { color: var(--text); }
.author-img { position: relative; width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; background: var(--orb); border: 1px solid var(--line-2); }
.author-img img { position: absolute; left: 0; top: 4px; width: 100%; height: auto; }

/* faq page */
.faq-groups { display: grid; gap: clamp(36px, 5vw, 56px); min-width: 0; }
.faq-group { scroll-margin-top: calc(var(--hd-h) + 24px); }
.faq-group h2 { margin-bottom: 16px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }

/* work filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(var(--card), .5); color: var(--text-2); font-weight: 600; font-size: .92rem; cursor: pointer; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: var(--on-grad); }
.filters .n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 4px; background: rgba(255, 255, 255, .12); font-size: .76rem; }

/* contact */
.form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); position: relative; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 650; font-size: .95rem; color: var(--text); }
.opt { font-weight: 500; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(var(--ground), .75); color: var(--text);
  font: 400 16px/1.4 var(--font); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386A6FF' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field select option { background: var(--panel); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(var(--tint), .12); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: .9rem; color: var(--text-3); }
.form-msg { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(var(--tint), .04); color: var(--text); }
.form-msg.err { border-color: rgba(255, 128, 150, .55); background: rgba(255, 128, 150, .07); }
.side-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(var(--card), .45); }
.side-card.hud { border-color: transparent; }
.side-card p { color: var(--text-2); }
.side-card .kv { margin: 0 0 18px; padding: 0; border: 0; grid-template-columns: 1fr; }
@media (max-width: 559px) { .field-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ contact: the form is the page. The title runs across
   the top; under it the ways to reach me and what happens next sit beside the form, whose first question is a set of
   tiles (the services, an interview, something else). A tile also changes the message box's hint to what is worth
   saying about it. Sent: the form gives way to a confirmation. */
.cx { padding-block: clamp(28px, 3.6vw, 48px) clamp(52px, 6vw, 96px); }
.cx-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head head" "info form";
  column-gap: clamp(28px, 4.4vw, 72px); row-gap: clamp(26px, 3.4vw, 44px); align-items: start; }
.cx-head { grid-area: head; }
.cx-head h1 { font-size: clamp(2.1rem, 1.25rem + 2.9vw, 3.6rem); max-width: 26ch; }
.cx-info { grid-area: info; display: grid; gap: 22px; justify-items: start; min-width: 0; }
.cx-form { grid-area: form; display: grid; gap: 20px; padding: clamp(20px, 2.6vw, 34px); position: relative; min-width: 0; }
:root .cx .cx-form.hud { box-shadow: 0 34px 80px -46px rgba(0, 0, 0, .42), 0 1px 2px rgba(0, 0, 0, .05); }
.cx-form textarea { min-height: 136px; }

.cx-topics { margin: 0; padding: 0; border: 0; min-width: 0; }
.cx-topics legend { padding: 0; margin-bottom: 12px; font-weight: 650; font-size: .95rem; color: var(--text); }
.cx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cx-tile { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 13px;
  border: 1px solid var(--line-2); border-radius: 8px; background: rgba(var(--tint), .025); color: var(--text);
  font: 600 .92rem/1.25 var(--font); cursor: pointer; -webkit-user-select: none; user-select: none;
  transition: background-color .18s, border-color .18s, color .18s; }
.cx-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cx-tile .i { flex: none; width: 20px; height: 20px; color: var(--text-2); transition: color .18s; }
.cx-tile:hover { border-color: rgba(var(--tint), .4); background: rgba(var(--tint), .055); }
.cx-tile.is-on, .cx-tile:has(input:checked) { background: var(--text); border-color: var(--text); color: var(--void); }
.cx-tile.is-on .i, .cx-tile:has(input:checked) .i { color: var(--void); }
.cx-tile:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.cx-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cx-send .btn { min-width: 176px; }

.cx-form.is-sent > :not(.cx-done) { display: none; }
.cx-done { display: grid; justify-items: start; gap: 12px; padding-block: clamp(8px, 3vw, 28px); }
.cx-done[hidden] { display: none; }
.cx-done:focus { outline: none; }
.cx-done-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 50%; background: var(--text); color: var(--void); }
.cx-done-ic .i { width: 24px; height: 24px; }
.cx-done h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.cx-done p { max-width: 34em; color: var(--text-2); }
.cx-done .btn { margin-top: 6px; }

.cx-direct { list-style: none; width: 100%; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cx-direct li { display: grid; grid-template-columns: 38px 74px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cx-ic { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(var(--tint), .03); color: var(--text); }
.cx-ic .i { width: 18px; height: 18px; }
.cx-k { font-size: .88rem; color: var(--text-3); }
.cx-v { display: grid; gap: 2px; min-width: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.cx-v a { color: var(--text); text-decoration-color: rgba(var(--tint), .35); text-underline-offset: 3px; }
.cx-v a:hover { text-decoration-color: currentColor; }
.cx-sub { font-weight: 400; font-size: .88rem; color: var(--text-3); }
.cx-time { font-variant-numeric: tabular-nums; }

.cx-next { width: 100%; margin-top: 10px; }
.cx-next h2 { font-size: 1.15rem; letter-spacing: -.01em; }
.cx-steps { list-style: none; counter-reset: s; display: grid; gap: 18px; margin: 18px 0 0; padding: 0 0 0 4px; }
.cx-steps li { counter-increment: s; position: relative; display: grid; gap: 3px; padding-left: 40px; }
.cx-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--void); font: 700 .8rem/1 var(--font-d); color: var(--text); z-index: 1; }
.cx-steps li + li::after { content: ""; position: absolute; left: 12.5px; top: -18px; height: 18px; border-left: 1px solid var(--line-2); }
.cx-steps b { font-family: var(--font-d); font-size: 1rem; color: var(--text); }
.cx-steps span { color: var(--text-2); font-size: .95rem; }

.cx-ask { padding-block: clamp(30px, 4vw, 52px); border-top: 1px solid var(--line); background: rgba(var(--tint), .02); }
.cx-ask-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px clamp(18px, 3vw, 36px); }
.cx-ask-ic { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text); }
.cx-ask-ic .i { width: 22px; height: 22px; }
.cx-ask h2 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
.cx-ask p { margin-top: 4px; color: var(--text-2); }
.cx-ask-acts { display: grid; justify-items: end; gap: 8px; text-align: right; }
@media (max-width: 1099px) { .cx-tile { font-size: .88rem; padding-inline: 11px; } }
@media (max-width: 979px) {
  .cx-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "info"; }
  .cx-info { grid-template-columns: minmax(0, 1fr); }
  .cx-ask-in { grid-template-columns: auto minmax(0, 1fr); }
  .cx-ask-acts { grid-column: 1 / -1; justify-items: start; text-align: left; }
}
@media (max-width: 599px) {
  .cx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-tile { min-height: 54px; }
  .cx-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cx-direct li { grid-template-columns: 38px minmax(0, 1fr); }
  .cx-direct .cx-k { display: none; }
  .cx-ask-ic { display: none; }
  .cx-ask-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359px) { .cx-tiles { grid-template-columns: minmax(0, 1fr); } }

/* site map */
.map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.map h2 { margin-bottom: 14px; font-size: 1.3rem; }
.map h2 a { color: var(--text); text-decoration: none; }
.map ul { list-style: none; display: grid; gap: 9px; }
.map li a { color: var(--text-2); text-decoration: none; }
.map li a:hover { color: var(--text); }
@media (max-width: 799px) { .map { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ motion preferences */
/* ------------------------------------------------------------------ digital motion
   1. a loading line when you leave for another page, finished on arrival; 2. one scan over the screen as a page arrives;
   3. page changes wipe in from the top (browsers with cross-page view transitions); 4. on cards: a thin light runs once
   around the border; 5. a thin ring where you tap. Crisp lines only: no glow, no fog.
   All of it is decoration over complete pages, and none of it moves for visitors who ask for reduced motion. */
.loadbar { position: fixed; z-index: 90; left: 0; top: 0; width: 100%; height: 2px; pointer-events: none; opacity: 0; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(var(--glow), 0), rgba(var(--glow), .45) 40%, rgba(var(--glow), .9)); }
html.is-leaving .loadbar { opacity: 1; animation: lb-go 2.4s cubic-bezier(.08, .7, .2, 1) forwards; }
.loadbar.arrive { animation: lb-done .6s ease-out forwards; }
html.is-leaving, html.is-leaving a { cursor: progress; }
@keyframes lb-go { from { transform: scaleX(.05); } to { transform: scaleX(.88); } }
@keyframes lb-done { 0% { opacity: 1; transform: scaleX(.88); } 55% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
.scan { position: fixed; z-index: 85; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(var(--glow), 0), rgba(var(--glow), .3) 25%, rgba(var(--glow), .3) 75%, rgba(var(--glow), 0));
  animation: scan-down 1s cubic-bezier(.45, 0, .2, 1) .05s forwards; }
@keyframes scan-down { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(100vh); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: vt-out .24s ease-in both; }
::view-transition-new(root) { animation: vt-in .6s cubic-bezier(.2, .75, .15, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: .3; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.fx-rel { position: relative; }
.has-fx { isolation: isolate; }
.fx { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.fx::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; opacity: 0;
  background: conic-gradient(from var(--beam), transparent 0 70%, rgba(var(--glow), .55) 84%, rgba(var(--glow), .14) 90%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.has-fx:hover > .fx::after { animation: beam-once 1.5s cubic-bezier(.45, 0, .25, 1) both; }
.work-media > .fx { z-index: 2; --glow: 255, 255, 255; }
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes beam-once { 0% { --beam: 0deg; opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 100% { --beam: 360deg; opacity: 0; } }
.ic { position: relative; overflow: hidden; }
.ic::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; opacity: 0; background: rgba(var(--glow), .4); }
.has-fx:hover .ic::after { animation: ic-scan .9s ease-in-out; }
@keyframes ic-scan { 0% { transform: translateY(0); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateY(42px); opacity: 0; } }
.ping { position: absolute; z-index: 3; left: var(--px); top: var(--py); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(var(--glow), .45); animation: tap-ping .55s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes tap-ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html.is-leaving .loadbar { animation: none; transform: scaleX(.7); }
  .loadbar.arrive, .scan { animation: none; display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ------------------------------------------------------------------ "Ask my AI" chat (every page) */
.ai-open {
  position: fixed; z-index: 55; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px 0 15px; border: 1px solid var(--line-2);
  border-radius: 7px; background: var(--grad); color: var(--on-grad); font: 650 .96rem/1 var(--font); letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .55); transition: transform .2s, box-shadow .2s;
}
.ai-open:hover { transform: translateY(-1px); }
.ai-open .i { width: 19px; height: 19px; }
.ai.is-open .ai-open { background: var(--panel); border-color: var(--line-2); box-shadow: none; color: var(--text); }
.ai-panel {
  position: fixed; z-index: 66; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(max(20px, env(safe-area-inset-bottom, 0px)) + 62px);
  display: flex; flex-direction: column; width: min(400px, calc(100vw - 40px)); height: min(620px, calc(100vh - 150px)); height: min(620px, calc(100dvh - 150px));
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--sheet); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8); overflow: hidden;
}
.ai-panel[hidden] { display: none; }
.ai-hd { display: flex; align-items: center; gap: 14px; padding: 12px 10px 12px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: #141414; color: #EDEDED; }
.ai-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 7px; background: var(--grad); color: var(--on-grad); }
/* the chat's header is the assistant's dark room in both themes: its live face (chat.js + ai-face.js), the same head of light
   points as the welcome's, in a window beside its name */
.ai-avatar.has-face { width: 76px; height: 88px; border-radius: 10px; background: radial-gradient(90% 75% at 50% 38%, #222 0%, #0B0B0B 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; }
.ai-avatar.has-face > .aif { display: none; }
.ai-face { display: block; width: 76px; height: 88px; }
.ai-hd .ai-title { color: #F2F2F2; }
.ai-hd .ai-sub { color: #A3A3A3; }
.ai-hd .ai-x, .ai-hd .ai-snd { color: #C9C9C9; }
.ai-hd .ai-x:hover, .ai-hd .ai-snd:hover { background: rgba(255, 255, 255, .1); color: #FFFFFF; }
.ai-hd .ai-x:focus-visible, .ai-hd .ai-snd:focus-visible { outline: 2px solid #F2F2F2; outline-offset: 1px; }
.ai-avatar .i { width: 19px; height: 19px; }
.ai-hd-t { min-width: 0; }
.ai-title { font: 700 1.02rem/1.2 var(--font-d); color: var(--text); }
.ai-sub { margin-top: 2px; font-size: .8rem; line-height: 1.3; color: var(--text-3); }
.ai-x { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; flex: none; border: 0; border-radius: 6px; background: none; color: var(--text-2); cursor: pointer; }
/* the voice switch in the chat header: a speaker (voice on) or a crossed speaker (voice off) */
.ai-snd { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; flex: none; border: 0; border-radius: 6px; background: none; color: var(--text-2); cursor: pointer; }
.ai-snd[hidden] { display: none; }
.ai-snd:not([hidden]) + .ai-x { margin-left: 0; }
.ai-snd:hover { background: rgba(var(--tint), .1); color: var(--text); }
.ai-snd .i { width: 20px; height: 20px; }
.ai-snd[aria-pressed="true"] .i-off, .ai-snd[aria-pressed="false"] .i-on { display: none; }
.ai-x:hover { background: rgba(var(--tint), .1); color: var(--text); }
.ai-x .i { width: 20px; height: 20px; }
.ai-log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 8px; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg p + p { margin-top: .45em; }
.msg.bot { align-self: flex-start; border: 1px solid var(--line); background: rgba(var(--tint), .06); color: var(--text-2); }
.msg.me { align-self: flex-end; border: 1px solid transparent; background: var(--text); color: var(--void); }
.msg.err { border-color: rgba(255, 186, 140, .45); }
.msg a { color: var(--hi); }
.msg.typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 15px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.ai-sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-sugg button { padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(var(--tint), .05); color: var(--text);
  font: 600 .87rem/1.25 var(--font); text-align: left; cursor: pointer; }
.ai-sugg button:hover { border-color: rgba(var(--tint), .5); background: rgba(var(--tint), .12); }
.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 10px; border-top: 1px solid var(--line); }
.ai-form textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 120px; padding: 12px 13px; resize: none; border: 1px solid var(--line-2); border-radius: 7px;
  background: rgba(var(--ground), .75); color: var(--text); font: 400 16px/1.4 var(--font); }
.ai-form textarea::placeholder { color: var(--text-3); }
.ai-form textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.ai-send { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 0; border-radius: 7px; background: var(--grad); color: var(--on-grad); cursor: pointer; }
.ai-send .i { width: 20px; height: 20px; stroke-width: 2; }
.ai-send:disabled { opacity: .55; cursor: progress; }
.ai-note { padding: 0 14px 12px; font-size: .76rem; line-height: 1.45; color: var(--text-3); }
.ai-note a { color: var(--text-2); }
/* the chat box opens: it rises from its button, a line of light runs down it, the first messages follow */
@media (prefers-reduced-motion: no-preference) {
  .ai-panel:not([hidden]) { transform-origin: 100% 100%; animation: ai-in .5s cubic-bezier(.2, .8, .2, 1) both; }
  .ai-panel:not([hidden])::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(var(--glow), .9), transparent); animation: ai-scan 1s .12s cubic-bezier(.4, 0, .2, 1) both; }
  .ai-log > .msg, .ai-sugg button { animation: msg-in .45s cubic-bezier(.2, .8, .2, 1) both; }
  .ai-panel:not([hidden]) .ai-log > .msg:first-child { animation-delay: .25s; }
  .ai-sugg button:nth-child(1) { animation-delay: .35s; }
  .ai-sugg button:nth-child(2) { animation-delay: .42s; }
  .ai-sugg button:nth-child(3) { animation-delay: .49s; }
  .ai-sugg button:nth-child(4) { animation-delay: .56s; }
  .msg.typing i { animation: ai-dot 1.2s infinite both; }
  .msg.typing i:nth-child(2) { animation-delay: .2s; }
  .msg.typing i:nth-child(3) { animation-delay: .4s; }
}
@keyframes ai-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes ai-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes ai-up { from { opacity: 0; transform: translateY(48px); } }
@keyframes ai-scan { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 599px) {
  .ai-open { right: 14px; bottom: max(14px, env(safe-area-inset-bottom, 0px)); min-height: 48px; padding: 0 16px 0 13px; font-size: .92rem; }
  .ai-panel { left: 0; right: 0; bottom: 0; width: 100%; height: min(88vh, 700px); height: min(88dvh, 700px);
    border-width: 1px 0 0; border-radius: var(--r) var(--r) 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .ai.is-open .ai-open { display: none; }
  html.ai-lock, html.ai-lock body { overflow: hidden; }
  /* a phone's chat is a sheet over a dimmed page (above the header); a tap on the page closes it */
  .ai.is-open::before { content: ""; position: fixed; inset: 0; z-index: 64; background: rgba(8, 8, 8, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  .ai-panel:not([hidden]) { animation-name: ai-up; }
}
@media print { .ai { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .mq + .mq { display: none; }
  .mq { flex-wrap: wrap; gap: 14px 36px; padding-right: 0; }
  .mq-track { width: auto; }
}

/* ------------------------------------------------------------------ light theme: the parts that are more than a token */
:root:not([data-theme="dark"]) :is(.tile, .hud, .dock a, .rel-card, .blk, .side-card, .ai-list a, .tg, .modules div) { box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
:root:not([data-theme="dark"]) .dock a:hover { box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .25); }
:root:not([data-theme="dark"]) .dock .dock-all { box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
:root:not([data-theme="dark"]) .dock .dock-all:hover { box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .35); }
:root:not([data-theme="dark"]) .ai-panel { box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .22); }
:root:not([data-theme="dark"]) .ai-open { box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 8px 18px -10px rgba(0, 0, 0, .3); }
:root:not([data-theme="dark"]) .btn-ghost { background: rgba(0, 0, 0, .025); }
:root:not([data-theme="dark"]) .btn-ghost:hover { background: rgba(0, 0, 0, .05); }

/* ------------------------------------------------------------------ theme switch: dark mode on or off (in the header bar on
   desktop; beside "Services" in the phone menu). The knob shows a sun when off and a moon when on */
.theme-sw { display: inline-flex; align-items: center; flex: none; padding: 4px 0; border: 0; border-radius: 999px; background: none; color: var(--text); cursor: pointer; }
.sw-track { position: relative; display: block; width: 54px; height: 30px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(var(--tint), .06);
  transition: background .3s, border-color .3s; }
.sw-knob { position: absolute; top: 2px; left: 2px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--text);
  color: var(--void); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .38s cubic-bezier(.3, .7, .25, 1.25), background .3s, color .3s; }
.sw-knob .i { width: 14px; height: 14px; stroke-width: 2; }
.theme-sw[aria-checked="true"] .sw-knob { transform: translateX(24px); }
.theme-sw[aria-checked="true"] .sw-track { background: rgba(var(--tint), .14); }
.theme-sw:hover .sw-track { border-color: rgba(var(--tint), .5); background: rgba(var(--tint), .12); }
.theme-sw:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
:root:not([data-theme="dark"]) .theme-sw .i-moon, :root[data-theme="dark"] .theme-sw .i-sun { display: none; }
/* switching themes: the new colours spread in a circle from the switch */
html.theme-vt::view-transition-old(root) { animation: none; }
html.theme-vt::view-transition-new(root) { animation: theme-in .65s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes theme-in { from { clip-path: circle(0 at var(--tx, 50%) var(--ty, 0)); } to { clip-path: circle(150vmax at var(--tx, 50%) var(--ty, 0)); } }

/* ------------------------------------------------------------------ LinkedIn mark (his file, one colour) */
.li-i { width: 18px; height: 18px; flex: none; }
.btn .li-i { width: 18px; height: 18px; }
.by-li .li-i, .hd-li .li-i, .nav-li .li-i { color: var(--blue-2); }
.hd-li.li-only { width: 42px; padding: 0; justify-content: center; }
.hd-li.li-only .li-i { width: 19px; height: 19px; }
.btn .gh-i { width: 18px; height: 18px; }
.hd-li.li-only .gh-i { width: 20px; height: 20px; }
.ft-out a .li-i, .reach .li-i { display: inline-block; width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px; color: var(--blue-2); }
.ft-out a .gh-i, .reach .gh-i { display: inline-block; width: 16px; height: 16px; margin-right: 7px; vertical-align: -3px; }

/* ------------------------------------------------------------------ services menu: a bridge over the gap under the header, so the
   pointer can travel from "Services" down to the panel without it closing */
@media (min-width: 1100px) { .mega::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; } }
/* the engine's core stays a deep blue disc in both themes, so its words stay light */
.e-ai { fill: #FFFFFF !important; }
.e-ai-s { fill: rgba(255, 255, 255, .62) !important; }
@media (min-width: 1100px) { :root:not([data-theme="dark"]) .mega { background: #FFFFFF; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .18); } }
:root:not([data-theme="dark"]) .hd.scrolled .hd-in { box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px -18px rgba(0, 0, 0, .16); }
:root:not([data-theme="dark"]) .hd-in::before { box-shadow: none; }
@media (max-width: 1099px) { :root:not([data-theme="dark"]) .nav { box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .2); } }

/* ------------------------------------------------------------------ the assistant: its small mark and the welcome (chat.js)
   Small mark (chat button and chat header): a head in profile with a little neural network inside.
   Welcome, once a week: a dark room where a digital head (particles, a neural network in the skull, cables in the neck)
   appears and talks; its words are written underneath and it brings up small dashboards on both sides, joined to it by
   cables. Then it moves into a card that opens around it and runs its cables into the chat button. Light greys on near
   black, in both themes. On phones it is a small card above the button instead, never a cover. */
.aif { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.aif circle { fill: currentColor; stroke: none; }
.aif .aif-n { stroke-width: 1.1; }
.ai-avatar .aif { width: 24px; height: 24px; }

/* the welcome is always the dark room, whatever the site's theme */
.hello, .hello-scrim { color-scheme: dark; --sheet: #141414; --text: #EDEDED; --text-2: #ADADAD; --text-3: #8A8A8A; --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .17); --tint: 255, 255, 255; --glow: 255, 255, 255; --grad: linear-gradient(#EDEDED, #EDEDED); --on-grad: #141414;
  --sweep: rgba(0, 0, 0, .07); --signal: #F5F5F5; --hi: #F5F5F5; }
.hello-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(10, 10, 10, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .5s; }
.hello-scrim.on { opacity: 1; }
.ai.is-hello .ai-open { z-index: 83; background: #EDEDED; color: #141414; border-color: transparent; }
.ai.is-hello .ai-open::after { content: ""; position: absolute; inset: -6px; border: 1.5px solid #EDEDED; border-radius: 11px; opacity: 0; pointer-events: none; }
.ai-open { isolation: isolate; }

/* the stage. Intro: the head, its dashboards and captions. Card: the panel opens around the head (a circle from the head) */
.hello { position: fixed; z-index: 82; left: 50%; top: 50%; isolation: isolate; width: min(700px, calc(100vw - 40px)); display: grid;
  grid-template-columns: 196px minmax(0, 1fr); align-items: end; column-gap: 26px; padding: 0 30px 0 22px; color: var(--text);
  opacity: 0; transform: translate(-50%, -46%); transition: opacity .45s, transform .55s cubic-bezier(.2, .8, .2, 1); }
.hello::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--sheet);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); }
.hello.opened::before { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .9s cubic-bezier(.3, .6, .2, 1); }
.hello.on { opacity: 1; transform: translate(-50%, -50%); }
.hello.gone { opacity: 0; transform: translate(calc(-50% + var(--gx, 0px)), calc(-50% + var(--gy, 0px))) scale(.06);
  transition: opacity .45s ease-in, transform .5s cubic-bezier(.6, 0, .8, .4); }
.hello:focus { outline: none; }
.hello-face { position: relative; z-index: 1; align-self: end; color: #E2E2E2; transform-origin: 0 0; transition: transform .85s cubic-bezier(.3, .7, .2, 1); }
/* the face (ai-face.js draws it on this canvas): 172 x 226 units with the neck in the card, 172 x 200 without it in the intro */
.hf { display: block; width: 196px; height: 258px; touch-action: manipulation; }
.hello-aif { display: block; width: 120px; height: 120px; margin: 0 auto 60px; color: #D6D6D6; }
.hello-face.flip { transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(var(--fs, 1)); transition: none; }
.hello-t { align-self: center; padding: 34px 0 30px; }
.hello.is-card .hello-t { opacity: 0; transform: translateY(8px); }
.hello.opened .hello-t { opacity: 1; transform: none; transition: opacity .5s .35s, transform .5s .35s; }
.hello-h { font: 750 1.62rem/1.15 var(--font-d); letter-spacing: -.025em; color: var(--text); }
.hello-p { margin-top: 10px; color: var(--text-2); font-size: 1rem; line-height: 1.55; }
.hello-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.hello-acts .btn { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.hello-later, .hello-skip { padding: 10px 6px; border: 0; background: none; color: var(--text-3); font: 600 .92rem/1 var(--font); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
.hello-later:hover, .hello-skip:hover { color: var(--text); }
.hello-x { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 6px;
  background: none; color: var(--text-3); cursor: pointer; }
.hello-x:hover { background: rgba(var(--tint), .08); color: var(--text); }
.hello-x .i { width: 18px; height: 18px; }

.hello.is-intro:not(.is-compact) { width: min(980px, calc(100vw - 40px)); grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: start; padding: 0; }
.hello.is-intro:not(.is-compact) .hello-t { display: none; }
.hello.is-intro:not(.is-compact) .hf { --hw: min(300px, calc((100vh - 300px) * .86)); width: var(--hw); height: calc(var(--hw) * 200 / 172); }
.hello.is-intro .hello-x { top: 0; right: 0; }
.hello.is-card .hello-cap, .hello.is-card .hello-skip, .hello.is-card .hello-row { display: none; }
/* the intro's sound switch, next to "Skip intro": the voice starts only when the visitor asks for it */
.hello-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin-top: 28px; }
.hello-snd { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(var(--tint), .06); color: var(--text); font: 600 .92rem/1 var(--font); cursor: pointer; }
.hello-snd:hover { background: rgba(var(--tint), .12); }
.hello-snd .i { width: 18px; height: 18px; }
.hello-snd[aria-pressed="true"] { border-color: var(--text-2); }
.hello-snd[data-wait] { visibility: hidden; }                      /* until the browser has answered: never the wrong words */
/* a browser that allows sound only after a tap: the face waits for it, the switch is the way in, the whole card listens */
.hello.is-ask .hello-face, .hello.is-ask .hello-cap { cursor: pointer; }
.hello.is-ask .hello-snd { position: relative; background: #EDEDED; border-color: transparent; color: #141414; }
.hello.is-ask .hello-snd:hover { background: #FFFFFF; }
.hello.is-ask .hello-snd::after { content: ""; position: absolute; inset: -5px; border: 1.5px solid rgba(237, 237, 237, .55); border-radius: inherit;
  opacity: 0; pointer-events: none; }
.cap-now.cap-ask { color: var(--text-2); font-weight: 650; }
@media (prefers-reduced-motion: no-preference) {
  .hello.is-ask .hello-snd::after { animation: ask-ring 1.6s ease-out infinite; }
  .cap-now.cap-ask { animation: cap-line .4s ease-out both; }
}
@keyframes ask-ring { 0% { opacity: .9; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.12); } }
.hello-cap { width: 100%; min-height: 5.6em; margin-top: 20px; text-align: center; }
.cap-prev { min-height: 1.5em; color: var(--text-3); font: 600 1.02rem/1.5 var(--font); opacity: 0; }
.cap-prev.in { animation: cap-in .45s ease-out forwards; }
.cap-now { position: relative; max-width: 30ch; margin: 4px auto 0; font: 750 clamp(1.4rem, 1rem + 1.2vw, 1.85rem)/1.25 var(--font-d); letter-spacing: -.02em;
  color: var(--text); text-wrap: balance; }
/* an AI caption: the line waits in grey, each word lights up as the face says it, a soft mark moves with the word being said */
.cap-now .cw, .hello-typed .cw { position: relative; z-index: 1; }
.cap-now .cw { opacity: .34; transition: opacity .2s ease-out; }
.cap-now .cw.said { opacity: 1; }
.cap-mark { position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0; border-radius: 7px; background: rgba(255, 255, 255, .11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); opacity: 0; pointer-events: none;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), width .18s cubic-bezier(.2, .8, .2, 1), height .18s, opacity .25s; }
.cap-mark.on { opacity: 1; }
.cap-mark.jump { transition: none; }
/* the small card's title: its words appear as the face says them */
.hello-typed .cw { opacity: 0; filter: blur(3px); transition: opacity .25s ease-out, filter .25s ease-out; }
.hello-typed .cw.said { opacity: 1; filter: none; }
.hello-typed .cap-mark { display: none; }
@keyframes cap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cap-line { from { opacity: 0; transform: translateY(6px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }

/* the dashboards on both sides of the head */
.hello-panels { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; color: #C9C9C9; transition: opacity .4s; }
.hello-panels.gone { opacity: 0; }
.pn .tr { fill: none; stroke: currentColor; stroke-width: 1; opacity: .5; }
.pn .sig { fill: none; stroke: #FFFFFF; stroke-width: 2; opacity: 0; }
.pn .jn { fill: currentColor; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); }
.pn .box { opacity: 0; transition: opacity .45s .4s; }
.pn.on .box { opacity: 1; }
.pn .frame { fill: rgba(255, 255, 255, .035); stroke: currentColor; stroke-width: 1; opacity: .8; }
.pn .t { font: 650 10px var(--font); letter-spacing: .02em; fill: #E6E6E6; }
.pn .hl { fill: currentColor; opacity: .35; }
.pn .bar { fill: currentColor; opacity: .75; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.pn .plot { fill: none; stroke: #EDEDED; stroke-width: 1.3; stroke-linejoin: round; }
.pn .fill { fill: currentColor; opacity: 0; transition: opacity .6s 1.2s; }
.pn.on .fill { opacity: .12; }

@media (prefers-reduced-motion: no-preference) {
  .pn .tr { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .pn.on .tr { animation: wf-draw .55s ease-out forwards; }
  .pn.on .jn { animation: wf-pop .3s ease-out both; }
  .pn.on .jn ~ .jn { animation-delay: .5s; }
  .pn .plot { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .pn.on .plot { animation: wf-draw .9s ease-out .65s forwards; }
  .pn.on .bar { animation: bar-up .6s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: calc(.65s + var(--d, 0) * 1s); }
  .pn.on .sig { stroke-dasharray: .07 1; stroke-dashoffset: .07; animation: pn-sig 1.7s ease-in-out 1s infinite; }
  .cap-now.in { animation: cap-line .4s ease-out both; }
  .ai.is-hello.hint .ai-open::after { animation: hint-ring 1.1s ease-out 2; }
}
@media (prefers-reduced-motion: reduce) { .pn .jn, .pn .bar { transform: none; } }
@keyframes wf-draw { to { stroke-dashoffset: 0; } }
@keyframes wf-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes bar-up { to { transform: scaleY(1); } }
@keyframes pn-sig { 0% { stroke-dashoffset: .07; opacity: .9; } 90% { opacity: .9; } 100% { stroke-dashoffset: -1; opacity: 0; } }
@keyframes hint-ring { 0% { opacity: .9; transform: scale(.94); } 100% { opacity: 0; transform: scale(1.16); } }

/* the small card above the chat button: where the intro's head lands, or straight away for a visitor who is already reading.
   The head in its dark window, how it can help, and two answers that say where they lead. It points at the chat button */
.hello.is-compact { left: auto; right: 20px; top: auto; bottom: calc(max(20px, env(safe-area-inset-bottom, 0px)) + 66px);
  width: min(392px, calc(100vw - 24px)); grid-template-columns: 92px minmax(0, 1fr); grid-template-areas: "face h" "face p" "acts acts";
  align-items: start; column-gap: 16px; padding: 16px 16px 12px; transform: translateY(10px); }
.hello.is-compact::before { clip-path: none; border-radius: 14px; box-shadow: 0 28px 60px -22px rgba(0, 0, 0, .65), 0 2px 6px rgba(0, 0, 0, .18); }
.hello.is-compact.on { transform: none; }
.hello.is-compact.gone { transform: translate(var(--gx, 0px), var(--gy, 0px)) scale(.08); }
.hello.no-move, .hello.no-move::before { transition: none; }
.hello.is-compact .hello-t { display: contents; opacity: 1; transform: none; }
.hello.is-compact .hello-face { grid-area: face; align-self: start; width: 92px; height: 106px; border-radius: 10px; overflow: hidden;
  background: radial-gradient(90% 75% at 50% 38%, #222 0%, #0B0B0B 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.hello.is-compact .hf { width: 92px; height: 106px; }
.hello.is-compact .hello-aif { width: 48px; height: 48px; margin: 29px 22px; }
.hello.is-compact .hello-h { grid-area: h; padding: 6px 36px 0 0; font-size: 1.22rem; line-height: 1.2; }
.hello.is-compact .hello-p { grid-area: p; margin-top: 6px; font-size: .9rem; line-height: 1.5; }
.hello.is-compact .hello-acts { grid-area: acts; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; }
.hello.is-compact.is-intro .hello-p, .hello.is-compact.is-intro .hello-acts { visibility: hidden; opacity: 0; }
.hello.is-compact.opened .hello-p, .hello.is-compact.opened .hello-acts { visibility: visible; opacity: 1; transition: opacity .45s .12s; }
.hello.is-compact .hello-x { top: 8px; right: 8px; width: 36px; height: 36px; }
.hello.is-compact::after { content: ""; position: absolute; right: 34px; bottom: -7px; width: 12px; height: 12px; background: var(--sheet);
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transform: rotate(45deg); }
/* the two answers: what you are, and under it what the chat helps with then */
.hello-pick { display: grid; gap: 3px; width: 100%; padding: 11px 14px 12px; border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(var(--tint), .035); color: var(--text); text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.hello-pick:hover { background: rgba(var(--tint), .08); border-color: rgba(var(--tint), .3); }
.hello-pick:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }
.hp-t { font: 650 .95rem/1.25 var(--font); }
.hp-s { font: 500 .82rem/1.35 var(--font); color: var(--text-3); }
.hello.is-compact .hello-later { justify-self: end; padding: 6px 2px 2px; font-size: .86rem; }
/* after the intro: the room clears and the card rises from the chat button as the head flies into its window */
.hello.docked::before { transform-origin: calc(100% - 40px) 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hello.docked.opened::before { animation: dock-in .55s cubic-bezier(.2, .8, .2, 1) both; }
  .hello.docked.opened .hello-h { animation: dock-text .45s .2s ease-out both; }
}
@keyframes dock-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dock-text { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) {
  .hello.is-compact { left: 12px; right: 12px; width: auto; bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 62px);
    grid-template-columns: 76px minmax(0, 1fr); column-gap: 13px; padding: 13px 13px 10px; }
  .hello.is-compact .hello-face, .hello.is-compact .hf { width: 76px; height: 88px; }
  .hello.is-compact .hello-aif { margin: 20px 14px; }
  .hello.is-compact .hello-h { font-size: 1.1rem; padding-top: 4px; }
  .hello.is-compact .hello-p { font-size: .86rem; }
  .hello.is-compact .hello-acts { margin-top: 12px; }
  .hello.is-compact::after { right: 30px; }
}
/* phones (and short screens): the same dark-room intro, the face sized to the screen; the card stacks its face on top */
.hello.is-phone:not(.is-compact) { width: calc(100vw - 24px); }
.hello.is-phone.is-intro:not(.is-compact) { width: calc(100vw - 24px); }
.hello.is-phone.is-intro:not(.is-compact) .hf { --hw: min(74vw, 300px, calc((100vh - 290px) * .86)); }
.hello.is-phone.is-intro .cap-now { font-size: 1.32rem; }
.hello.is-phone.is-card:not(.is-compact) { grid-template-columns: minmax(0, 1fr); justify-items: center; column-gap: 0; padding: 20px 18px 22px; text-align: center; }
.hello.is-phone.is-card:not(.is-compact) .hello-face { align-self: center; }
.hello.is-phone.is-card:not(.is-compact) .hf { width: 128px; height: 168px; }
.hello.is-phone.is-card:not(.is-compact) .hello-t { padding: 8px 0 0; }
.hello.is-phone.is-card:not(.is-compact) .hello-h { font-size: 1.36rem; }
.hello.is-phone.is-card:not(.is-compact) .hello-acts { justify-content: center; }
@media print { .hello, .hello-scrim { display: none !important; } }

/* ------------------------------------------------------------------ a website case study's cover as a browser window: its button opens the viewer */
.browser { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.br-bar { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 7px 8px 7px 14px; border-bottom: 1px solid var(--line);
  background: rgba(var(--tint), .035); }
.br-dots { display: flex; gap: 6px; flex: none; }
.br-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--tint), .2); }
.br-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 7px;
  background: rgba(var(--tint), .06); color: var(--text-2); font: 500 .88rem/1 var(--font); white-space: nowrap; overflow: hidden; }
.br-url .i { width: 14px; height: 14px; flex: none; }
.br-host { color: var(--text); }
.br-view { position: relative; overflow: hidden; background: var(--deep); }
.browser .br-poster .media { border: 0; border-radius: 0; box-shadow: none; }
.browser .chrome { display: none; }
.br-start { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 10px; padding: 80px 20px 24px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .7)); }
.br-go { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); }
.br-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.br-alt { border: 1px solid rgba(255, 255, 255, .62); background: rgba(0, 0, 0, .25); color: #FFFFFF; }
.br-alt:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
.br-go .i { width: 18px; height: 18px; }
.br-msg { max-width: 52ch; color: #EDEDED; font-size: .9rem; line-height: 1.45; text-align: center; }
@media (min-width: 641px) {
  .br-poster .cv { padding-bottom: 180px; }             /* a typographic cover keeps its text above the Browse button */
}
@media (max-width: 640px) {
  .br-dots { display: none; }
  .br-bar { gap: 8px; padding-left: 8px; }
  .br-start { position: static; padding: 16px; background: var(--deep); }
  .br-msg { color: var(--text-2); }
  .br-alt { border-color: var(--line-2); background: transparent; color: var(--text); }
  .br-alt:hover { color: var(--text); }
}

/* the website development page's showroom: the websites as tabs (their own icon, name and kind), the chosen one's
   browser window beside them; on a phone the tabs are a row that scrolls sideways above the window */
.shr { display: grid; gap: 16px; padding: clamp(10px, 1.6vw, 18px); border: 1px solid var(--line); border-radius: 20px; background: var(--deep); }
.shr-tabs { display: flex; gap: 6px; margin: -4px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.shr-tabs::-webkit-scrollbar { display: none; }
.shr-tabs [role="tab"] { display: flex; align-items: center; gap: 11px; flex: none; min-height: 50px; padding: 8px 14px 8px 8px; border: 1px solid transparent;
  border-radius: 12px; background: none; color: var(--text-2); text-align: left; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.shr-tabs [role="tab"]:hover { background: rgba(var(--tint), .05); color: var(--text); }
.shr-tabs [role="tab"][aria-selected="true"] { border-color: var(--line-2); background: var(--panel); color: var(--text); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .45); }
.shr-tabs [role="tab"]:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.shr-fav { display: grid; place-items: center; flex: none; width: 34px; height: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px;
  background: #FFFFFF; color: #1A1A1A; font: 700 .95rem/1 var(--font-d); }
.shr-fav img { width: 20px; height: 20px; }
.shr-tt { display: grid; gap: 1px; min-width: 0; }
.shr-tt b { font: 650 .95rem/1.25 var(--font); white-space: nowrap; }
.shr-tt span { color: var(--text-3); font-size: .8rem; white-space: nowrap; }
.shr-stage { min-width: 0; }
.shr-info { display: grid; gap: 10px; padding: 18px 6px 6px; }
.shr-info h3 { font-size: clamp(1.12rem, .98rem + .5vw, 1.38rem); }
.shr-info h3 a { color: var(--text); text-decoration: none; }
.shr-info h3 a:hover { text-decoration: underline; }
.shr-info p { max-width: 68ch; color: var(--text-2); }
.shr-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 4px; }
.shr-foot .tags { margin: 0; }
@media (min-width: 980px) {
  .shr { grid-template-columns: 264px minmax(0, 1fr); gap: 20px; align-items: start; }
  .shr-tabs { position: sticky; top: calc(var(--hd-h) + 24px); flex-direction: column; margin: 0; padding: 0; overflow: visible; }
  .shr-tabs [role="tab"] { padding: 10px 14px 10px 10px; }
}
@media (max-width: 599px) { .shr-tt span { display: none; } }
/* the same layout as a tour of an app (the AI automation page's Image Library): line icons instead of site icons, and
   each area's screen in a plain browser window */
.shr-ic { background: var(--panel); color: var(--text); }
.shr-ic .i { width: 19px; height: 19px; }
.shr-tabs [role="tab"][aria-selected="true"] .shr-ic { border-color: var(--line-2); }
.tour-shot { margin: 0; }
.tour-shot .br-view img { display: block; width: 100%; height: auto; }
.shr-tour .shr-info .ticks { margin-top: 2px; }

/* a redesign, before and after: one image over the other, the range input (invisible, full size) moves the line */
.ba { margin: 28px 0; }
.ba-view { --pos: 50%; position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: var(--deep); }
.ba-img { display: block; width: 100%; height: auto; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before .ba-img { height: 100%; object-fit: cover; object-position: top; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(0, 0, 0, .28); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%); border-radius: 50%; background: #FFFFFF;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .12); }
.ba-knob::before, .ba-knob::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid #161616; border-width: 0 0 2px 2px; }
.ba-knob::before { left: 11px; transform: translateY(-50%) rotate(45deg); }
.ba-knob::after { right: 11px; transform: translateY(-50%) rotate(-135deg); }
.ba-tag { position: absolute; top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(10, 10, 10, .72); color: #FFFFFF; font: 650 .8rem/1 var(--font); pointer-events: none; }
.ba-tag-b { left: 12px; }
.ba-tag-a { right: 12px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba-view:has(.ba-range:focus-visible) .ba-knob { outline: 3px solid var(--text); outline-offset: 3px; }
.ba figcaption { margin-top: 10px; color: var(--text-3); font-size: .9rem; }
.ba-old { margin-top: 18px; }
.ba-old summary { cursor: pointer; font-weight: 650; }

/* ------------------------------------------------------------------ the site viewer (viewer.js): his websites in a full-screen
   browser window on this page, one tab per site. It grows out of the button that opened it. */
.view-btn[hidden] { display: none !important; }
.work .view-btn { justify-self: start; margin-top: 4px; }
.view-btn .i { width: 18px; height: 18px; }
.sec-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
html.vw-open { overflow: hidden; }
.vw { position: fixed; inset: 0; z-index: 88; }
.vw[hidden] { display: none; }
.vw-scrim { position: absolute; inset: 0; background: rgba(10, 10, 10, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vw-win { position: absolute; inset: clamp(10px, 2vw, 26px); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); box-shadow: 0 60px 140px -40px rgba(0, 0, 0, .75); transform-origin: 0 0; }
.vw-top { display: flex; align-items: flex-end; gap: 12px; padding: 10px 10px 0 18px; background: var(--deep); }
.vw-dots { display: flex; gap: 7px; flex: none; align-self: center; margin-top: -4px; }
.vw-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(var(--tint), .22); }
.vw-tabs { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.vw-tabs::-webkit-scrollbar { display: none; }
.vw-tabs [role="tab"] { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px; border: 1px solid transparent;
  border-bottom: 0; border-radius: 10px 10px 0 0; background: transparent; color: var(--text-2); font: 650 .9rem/1 var(--font); cursor: pointer; white-space: nowrap; }
.vw-tabs [role="tab"]:hover { color: var(--text); background: rgba(var(--tint), .05); }
.vw-tabs [role="tab"][aria-selected="true"] { position: relative; top: 1px; background: var(--panel); color: var(--text); border-color: var(--line-2); }
.vw-fav { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.vw-mono { display: grid; place-items: center; background: var(--text); color: var(--void); font: 800 10px/1 var(--font-d); }
.vw-x { flex: none; align-self: center; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 6px; padding: 0; border: 1px solid var(--line-2);
  border-radius: 9px; background: transparent; color: var(--text); cursor: pointer; }
.vw-x:hover { background: rgba(var(--tint), .08); }
.vw-x .i { width: 20px; height: 20px; }
.vw-bar { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); background: var(--panel); }
.vw-b { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent;
  color: var(--text-2); cursor: pointer; }
.vw-b:hover:not(:disabled) { background: rgba(var(--tint), .08); color: var(--text); }
.vw-b:disabled { opacity: .3; cursor: default; }
.vw-b .i { width: 18px; height: 18px; }
.vw-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 38px; margin: 0 6px; padding: 0 14px; border-radius: 9px;
  background: var(--deep); color: var(--text-3); font: 500 .92rem/1 var(--font); white-space: nowrap; overflow: hidden; }
.vw-url .i { width: 14px; height: 14px; flex: none; }
.vw-host { color: var(--text); font-weight: 650; }
.vw-path { overflow: hidden; text-overflow: ellipsis; }
.vw-demo { flex: none; margin-left: auto; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2);
  font: 650 .74rem/1 var(--font); }
.vw-demo[hidden], .vw-mode[hidden] { display: none; }
.vw-mode { display: flex; flex: none; gap: 2px; margin-right: 6px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--deep); }
.vw-m { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font: 650 .86rem/1 var(--font);
  white-space: nowrap; cursor: pointer; }
.vw-m:hover { color: var(--text); }
.vw-m[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
.vw-dev { display: flex; gap: 4px; }
.vw-dev [aria-pressed="true"] { border-color: var(--line-2); background: rgba(var(--tint), .1); color: var(--text); }
.vw-stage { position: relative; overflow: hidden; background: #FFFFFF; }
.vw-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #FFFFFF; }
.vw-frame[hidden] { display: none; }
.vw.is-phone .vw-stage { background: var(--deep); }
.vw.is-phone .vw-frame { inset: auto; left: 50%; top: 14px; transform-origin: 50% 0; border-radius: 30px; box-shadow: 0 0 0 10px #0D0D0D, 0 30px 70px -24px rgba(0, 0, 0, .6); }
.vw-load { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, #1A1A1A, transparent) no-repeat; background-size: 30% 100%; }
.vw.is-loading .vw-load { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .vw.is-loading .vw-load { animation: vw-load 1.1s linear infinite; } }
@keyframes vw-load { from { background-position: -30% 0; } to { background-position: 130% 0; } }
.vw-screens { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: #EDEDEA; }
.vw-screens[hidden] { display: none; }
.vw-screens figure { margin: 0; }
.vw-screens img { display: block; width: 100%; height: auto; }
.vw-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--deep); }
.vw-note { min-width: 0; color: var(--text-3); font-size: .86rem; line-height: 1.4; }
.vw-case { flex: none; font-size: .92rem; }
.vw.is-screens .vw-dev, .vw.is-small .vw-dev, .vw.is-small .vw-dots { display: none; }
@media (max-width: 759px) {
  .vw-win { inset: 0; border: 0; border-radius: 0; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
  .vw-top { gap: 8px; padding: 8px 8px 0; }
  .vw-tabs [role="tab"] { height: 40px; padding: 0 12px; font-size: .86rem; }
  .vw-bar { gap: 2px; padding: 6px 8px; }
  .vw-b { width: 36px; height: 36px; }
  .vw-url { margin: 0 4px; padding: 0 10px; font-size: .86rem; }
  .vw-demo { display: none; }
  .vw-mode { margin-right: 2px; }
  .vw-m { padding: 0 8px; font-size: .8rem; }
  .vw-foot { flex-wrap: wrap; gap: 4px 14px; padding: 8px 12px; }
  .vw-note { font-size: .8rem; }
}

/* the digital sweep (site.js, when Services opens): for a moment the screen's colours invert under a striped band that runs
   down it, then everything is as before */
.dfx { position: fixed; inset: 0; z-index: 96; overflow: hidden; pointer-events: none; mix-blend-mode: difference; visibility: hidden; }
.dfx.go { visibility: visible; }
.dfx::before { content: ""; position: absolute; left: 0; right: 0; top: 0; background: #FFFFFF; transform: translateY(-45vh); }
.dfx::before { height: 28vh;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent), repeating-linear-gradient(#000 0 2px, rgba(0, 0, 0, .35) 2px 4px);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent), repeating-linear-gradient(#000 0 2px, rgba(0, 0, 0, .35) 2px 4px);
  mask-composite: intersect; }
.dfx.go::before { animation: dfx-run 1.3s cubic-bezier(.4, .05, .3, 1) forwards; }
@keyframes dfx-run { from { transform: translateY(-45vh); } to { transform: translateY(150vh); } }
@media (prefers-reduced-motion: reduce) { .dfx { display: none; } }
@media print { .dfx { display: none !important; } }

/* home hero: quote, LinkedIn, GitHub and CV fit on one line on desktop */
.hero-copy .actions .btn-ghost { padding-inline: 18px; }
@media (min-width: 900px) { .hero-copy .actions { gap: 10px; } }

/* videos (content/videos.json, placed by the admin panel): a dark screening room in both themes. Films: the one chosen
   plays large, the others are listed beside it (under it in a narrow column); Reels: phone-shaped cards in a row that
   scrolls sideways, with arrows and a thin line that shows where you are. Container queries fit it to the page or to a
   case study's text column. The poster is a link; site.js swaps it for the player when pressed, one video at a time */
.scr { container-type: inline-size; display: grid; gap: clamp(34px, 4.5vw, 52px); padding: clamp(16px, 3vw, 34px); border-radius: 20px;
  background: #161616; color: #EDEDED; color-scheme: dark; --text: #EDEDED; --text-2: #B3B3B3; --text-3: #8F8F8F; --hi: #F5F5F5; --signal: #F5F5F5;
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .17); --tint: 255, 255, 255; }
html[data-theme="dark"] .scr { background: #1B1B1B; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.scr-block { min-width: 0; }
.scr-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 16px; }
.scr-hd h3 { display: flex; align-items: baseline; gap: 10px; color: var(--text); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.42rem); }
.scr-count { color: var(--text-3); font: 600 .92rem/1 var(--font); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.vid { margin: 0; min-width: 0; }
.vid-play, .vid-el { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 12px; background: #0C0C0C; }
.vid-v .vid-play, .vid-v .vid-el { aspect-ratio: 9 / 16; }
.vid-h .vid-play, .vid-h .vid-el { aspect-ratio: 16 / 9; }
.vid-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid-el { object-fit: contain; }
.vid-frame { height: auto; border: 0; }
.vid-noimg { background: linear-gradient(160deg, #343434, #111111); }
.vid-play:focus-visible, .scr-item:focus-visible, .scr-arrow:focus-visible, .scr-rail:focus-visible { outline: 2px solid #F5F5F5; outline-offset: 3px; }
/* the play button: a light disc, larger on the screen than on a reel */
.vid-btn { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(245, 245, 245, .94); color: #141414; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); transition: transform .25s ease, background .25s; }
.vid-btn .i { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.scr-film .vid-btn { width: clamp(58px, 7cqi, 76px); height: clamp(58px, 7cqi, 76px); }
.scr-film .vid-btn .i { width: 40%; height: 40%; }
.vid-dur { position: absolute; right: 10px; bottom: 10px; padding: 4px 7px; border-radius: 6px; background: rgba(0, 0, 0, .66); color: #F5F5F5;
  font: 600 .76rem/1 var(--font); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .vid-play img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
  .vid-play:hover img { transform: scale(1.025); }
  .vid-play:hover .vid-btn { transform: scale(1.06); background: #FFFFFF; }
}

/* the screen and its list */
.scr-player { display: grid; gap: 22px; }
.scr-now { min-width: 0; }
.scr-cap { display: grid; gap: 7px; margin-top: 18px; max-width: 68ch; }
.scr-cap h4 { color: var(--text); font: 700 clamp(1.1rem, .98rem + .5vw, 1.36rem)/1.25 var(--font-d); letter-spacing: -.015em; text-wrap: balance; }
.scr-cap p { color: var(--text-2); font-size: .98rem; line-height: 1.55; }
.scr .scr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 2px; color: var(--text-3); font-size: .88rem; }
.scr .scr-meta a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); text-decoration: none; }
.scr .scr-meta a:hover { color: var(--text); text-decoration: underline; }
.scr-meta .i { width: 15px; height: 15px; }
.scr-list { display: grid; align-content: start; gap: 2px; margin: 0; padding: 0; list-style: none; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; }
.scr .scr-item { position: relative; display: grid; grid-template-columns: clamp(112px, 34%, 140px) minmax(0, 1fr); align-items: center; gap: 14px; padding: 8px;
  border-radius: 12px; color: var(--text-2); text-decoration: none; transition: background .2s, color .2s; }
.scr .scr-item:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.scr .scr-item[aria-current="true"] { background: rgba(255, 255, 255, .09); color: var(--text); }
.scr-th { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #262626; color: #8F8F8F; }
.scr-th img { width: 100%; height: 100%; object-fit: cover; }
.scr-th > .i { width: 26px; height: 26px; }
.scr-item[aria-current="true"] .scr-th { box-shadow: 0 0 0 2px #EDEDED; }
.scr-d { position: absolute; right: 5px; bottom: 5px; padding: 2px 5px; border-radius: 4px; background: rgba(0, 0, 0, .7); color: #F5F5F5; font: 600 .7rem/1.2 var(--font); }
.scr-it { display: grid; gap: 4px; min-width: 0; }
.scr .scr-it b { display: -webkit-box; overflow: hidden; color: inherit; font: 600 .93rem/1.32 var(--font); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.scr-it > span { color: var(--text-3); font-size: .8rem; }
@container (min-width: 820px) {
  .scr-player:not(.scr-one) { grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
  .scr-list { max-height: calc((100cqi - 356px) * 9 / 16); overflow-y: auto; margin-right: -6px; padding-right: 6px; }
}

/* the reels: a row that scrolls sideways; the next card shows at the edge, so there is clearly more */
.scr-arrows { display: flex; gap: 8px; }
.scr-arrows[hidden] { display: none; }
.scr-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: none;
  color: #EDEDED; cursor: pointer; transition: background .2s, opacity .2s; }
.scr-arrow:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.scr-arrow:disabled { opacity: .3; cursor: default; }
.scr-arrow .i { width: 20px; height: 20px; }
.scr-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100cqi - 4 * 14px) / 4.45); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; }
.scr-rail::-webkit-scrollbar { display: none; }
@container (min-width: 1000px) { .scr-rail { grid-auto-columns: calc((100cqi - 5 * 14px) / 5.45); } }
@container (max-width: 699px) { .scr-rail { grid-auto-columns: calc((100cqi - 2 * 14px) / 2.45); } }
@container (max-width: 459px) { .scr-rail { grid-auto-columns: 64cqi; } }
.scr-reel { position: relative; scroll-snap-align: start; }
.scr-reel .vid-play, .scr-reel .vid-el { border-radius: 14px; }
.scr-reel figcaption { position: absolute; inset: auto 0 0; padding: 44px 14px 14px; border-radius: 0 0 14px 14px; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .74)); color: #F2F2F2; font: 600 .9rem/1.3 var(--font); }
.scr-reel:has(.vid-el) figcaption { display: none; }
.scr-prog { position: relative; height: 2px; margin-top: 18px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.scr-prog[hidden] { display: none; }
.scr-prog span { position: absolute; inset: 0 auto 0 0; width: var(--w, 30%); border-radius: 2px; background: #EDEDED; transform: translateX(var(--x, 0%)); }
/* an Instagram reel: no picture to share, so a tile that says where it opens */
.vid-ig { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, #313131 0%, #161616 72%); color: #EDEDED; }
.vid-ig > .i { width: 46px; height: 46px; stroke-width: 1.3; }
.vid-ig b { font: 700 1.06rem/1.25 var(--font-d); letter-spacing: -.01em; }
.vid-ig span { display: inline-flex; align-items: center; gap: 5px; color: #BDBDBD; font: 600 .86rem/1 var(--font); }
.vid-ig span .i { width: 14px; height: 14px; }
.vid-igl:hover .vid-ig span { color: #FFFFFF; }
@media (prefers-reduced-motion: reduce) { .scr-rail { scroll-behavior: auto; } }

/* contact form: Cloudflare Turnstile's box, shown only when it needs the visitor */
.f-check { min-height: 0; }
.f-check:not([hidden]) { margin-top: 4px; }
