/* Fonts, self-hosted from /fonts (all SIL Open Font License): Geist, Geist Mono and Mr Dafoe, Latin and
   Latin Extended. The browser fetches a file only when the page uses characters from its range. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/geist-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/geist-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mr Dafoe"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/mr-dafoe-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mr Dafoe"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/mr-dafoe-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* =========================================================
   Syntax Shell — Mudassar Naeem portfolio
   "Glass": white paper and black ink stay in charge; an iridescent violet → blue → pink ink
   adds colour as light — drifting behind the page, pooling under the cursor, running along
   glass rims and through the signature script. Surfaces are frosted glass. The dark slabs
   (tech ticker, terminal, contact) are the same components with the tokens inverted (.invert).
   ========================================================= */

:root {
  color-scheme: light;

  /* Paper */
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --bg-mute: #ececec;

  /* Ink */
  --ink: #0a0a0a;
  --ink-2: #474747;
  --ink-3: #707070;
  --ink-4: #a8a8a8;

  /* Lines */
  --line: rgba(10, 10, 10, 0.09);
  --line-2: rgba(10, 10, 10, 0.15);
  --line-3: rgba(10, 10, 10, 0.34);
  --tint: rgba(10, 10, 10, 0.045);

  /* Colour: an iridescent ink, used as light rather than as paint */
  --violet: #6a4dff;
  --blue: #1f8fff;
  --cyan: #12c8c0;
  --pink: #ff4f9a;
  --amber: #ff9a3d;
  --live: #17c79a;
  --grad: linear-gradient(100deg, var(--violet) 0%, var(--blue) 48%, var(--pink) 100%);
  --grad-warm: linear-gradient(100deg, var(--pink), var(--amber));

  /* Glass */
  --glass: rgba(255, 255, 255, 0.54);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.9);
  --glass-edge: rgba(24, 18, 70, 0.07);
  --glass-blur: blur(22px) saturate(175%);
  --glass-shadow: 0 0 0 1px var(--glass-edge), 0 26px 56px -30px rgba(56, 42, 140, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.95);

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Mr Dafoe", "Brush Script MT", "Segoe Script", cursive;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 30px 60px -36px rgba(10, 10, 10, 0.3);
  --shadow-lg: 0 50px 110px -40px rgba(10, 10, 10, 0.4);
  --nav-h: 60px;
}

/* The same components, printed white on black */
.invert {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-soft: #151515;
  --bg-mute: #212121;
  --ink: #ffffff;
  --ink-2: #c6c6c6;
  --ink-3: #909090;
  --ink-4: #5c5c5c;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.17);
  --line-3: rgba(255, 255, 255, 0.38);
  --tint: rgba(255, 255, 255, 0.06);
  --shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.8);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-edge: rgba(0, 0, 0, 0);
  --glass-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: var(--bg);
  color: var(--ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; overflow-x: clip;
  scrollbar-color: #c4c4c4 var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); font-size: 0.88em; letter-spacing: -0.01em; }
.dim { color: var(--ink-3); }
.accent { color: var(--ink-3); }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* The signature script: accent words are signed in the iridescent ink, which keeps shifting */
.sig {
  font-family: var(--font-script); font-weight: 400; font-style: normal; letter-spacing: 0;
  background: var(--grad) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0.14em 0.24em 0.22em 0.22em; margin: -0.14em -0.18em -0.22em -0.18em;
  animation: ink-shift 8s ease-in-out infinite alternate;
}
@keyframes ink-shift { to { background-position: 100% 0; } }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ---------- Surfaces: frosted glass ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* Cards are glass too: they tilt in 3D under the cursor, lift, and catch coloured light —
   a pool of it inside the pane and an iridescent rim that follows the pointer. */
.card {
  position: relative; isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.6s var(--ease), box-shadow 0.5s var(--ease);
}
.card.is-tilting { transition: transform 0.08s linear, box-shadow 0.5s var(--ease); }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(106, 77, 255, 0.22), transparent 62%),
    radial-gradient(460px circle at calc(var(--mx, 50%) + 140px) calc(var(--my, 0%) + 90px), rgba(255, 79, 154, 0.15), transparent 62%);
  opacity: 0; transition: opacity 0.45s;
}
.card::after {
  content: ""; position: absolute; inset: -1px; z-index: 1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), var(--violet), var(--blue) 34%, var(--pink) 58%, transparent 76%);
  -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 exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.45s;
}
@media (hover: hover) {
  .card:hover { --lift: -6px; box-shadow: 0 0 0 1px var(--glass-edge), 0 42px 72px -34px rgba(76, 54, 190, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.95); }
  .card:hover::before, .card:hover::after { opacity: 1; }
  .brief:hover, .terminal:hover, .exp-callout:hover { --lift: 0px; }
}
[data-tilt] { --rx: 0deg; --ry: 0deg; }

/* ---------- Buttons ---------- */
/* Ink floods in from the exact point where the cursor entered (--bx / --by, set in main.js) */
.btn {
  --h: 50px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  height: var(--h); padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--ink);
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  transition: color 0.4s var(--ease), border-color 0.35s, transform 0.3s var(--ease), box-shadow 0.45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: var(--bx, 50%); top: var(--by, 50%);
  width: 0; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-out);
}
.btn .i { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.btn--sm { --h: 40px; padding: 0 17px; font-size: 14px; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary::before { background: var(--grad); }
.btn--ghost { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); color: var(--ink); border-color: var(--line-2); box-shadow: inset 0 1px 0 var(--glass-line); }
.btn--ghost::before { background: var(--ink); }
@media (hover: hover) {
  .btn:hover::before { width: 260%; }
  .btn--primary:hover { color: #fff; border-color: transparent; box-shadow: 0 16px 36px -14px rgba(106, 77, 255, 0.75); }
  .btn--ghost:hover { color: var(--bg); border-color: var(--ink); }
  .btn:hover .i:last-child:not(:first-child) { transform: translate(2px, -2px); }
}
.btn:active { transform: scale(0.97); }
.btn.magnetic { --mgx: 0px; --mgy: 0px; transform: translate3d(var(--mgx), var(--mgy), 0); }
.btn.magnetic.is-magnet { transition: color 0.4s var(--ease), border-color 0.35s, transform 0.12s linear; }
.btn.magnetic:active { transform: translate3d(var(--mgx), var(--mgy), 0) scale(0.97); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink-2); border: 1px solid var(--line-2); background: var(--glass-strong);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.icon-btn:hover { color: var(--bg); border-color: var(--ink); background: var(--ink); }

/* Link labels roll: the word slides up and a copy follows it in */
.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; }
.roll > span { display: block; }
.roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
@media (hover: hover) {
  .roll > span, .roll::after { transition: transform 0.5s var(--ease-out); }
  a:hover > .roll > span, a:hover > .roll::after { transform: translateY(-100%); }
}

/* ---------- Small atoms ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 11px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  color: var(--ink-2); font-size: 13px; font-weight: 500;
}
.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; display: inline-block; box-shadow: 0 0 10px rgba(23, 199, 154, 0.7); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--live); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }

main { counter-reset: sec; }
.section { counter-increment: sec; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 22px;
}
.eyebrow::before { content: counter(sec, decimal-leading-zero) " /"; letter-spacing: 0.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow::after { content: ""; width: 44px; height: 2px; border-radius: 2px; background: var(--grad); }

.h2 {
  font-size: clamp(2.3rem, 4.8vw, 4.1rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em;
  text-wrap: balance;
}
.h2 .sig { font-size: 1.24em; line-height: 0.8; }
.h2--xl { font-size: clamp(2.8rem, 6.6vw, 5.6rem); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.62); border: 1px solid var(--line-2);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.tags--sm li { padding: 3px 10px; font-size: 12.5px; }
@media (hover: hover) { .tags li:hover { color: var(--bg); border-color: var(--ink); background: var(--ink); } }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink-2); background: var(--glass-strong); border: 1px solid var(--line-2);
}
.badge--live { color: var(--ink); border-color: rgba(23, 199, 154, 0.55); }
.badge--accent { color: #fff; background: var(--grad); border-color: transparent; }

.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-3); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); transition: transform 0.7s var(--ease-out);
}
.brand__mark svg { width: 24px; height: 24px; fill: none; stroke: var(--bg); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark--sm { width: 30px; height: 30px; border-radius: 9px; }
.brand__mark--sm svg { width: 21px; height: 21px; }
.brand:hover .brand__mark { transform: rotate(-180deg); }
.brand__name { font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: -0.02em; }
.brand__name span { color: var(--ink-3); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 50;
  width: min(1260px, 100% - 24px);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--nav-h); padding: 0 9px 0 13px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.nav.is-scrolled {
  background: var(--glass-strong); border-color: var(--glass-line);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.nav__links { position: relative; isolation: isolate; display: flex; gap: 2px; }
.nav__links a {
  position: relative; padding: 9px 15px; border-radius: 999px; color: var(--ink-3); font-size: 14px; font-weight: 500; line-height: 1.3;
  transition: color 0.25s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; border: 1px solid var(--line-2); background: var(--bg); }
.nav__toggle .i { width: 19px; height: 19px; }

.mobile-menu {
  position: fixed; z-index: 49; top: calc(12px + var(--nav-h) + 8px); left: 12px; right: 12px;
  display: grid; gap: 2px; padding: 10px;
  border-radius: 24px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  animation: drop 0.3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 13px 14px; border-radius: 14px; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: var(--bg-soft); }
.mobile-menu { max-height: calc(100dvh - var(--nav-h) - 44px); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu a[aria-current="page"] { background: rgba(106, 77, 255, 0.08); }
.mobile-menu__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px; padding: 0 0 8px 14px; }
.mobile-menu__sub a { font-size: 15px; padding: 8px 12px; color: var(--ink-2); letter-spacing: -0.01em; }
.mobile-menu__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mobile-menu .mobile-menu__cta .btn { padding: 0 16px; border-radius: 999px; font-size: 15px; letter-spacing: -0.01em; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* Sliding pills behind the active nav link and project filter */
.nav__pill, .filters__pill {
  position: absolute; left: 0; z-index: -1; border-radius: 999px; pointer-events: none; opacity: 0;
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out), opacity 0.3s;
}
.nav__pill { top: 0; bottom: 0; background: rgba(20, 16, 60, 0.07); }
.filters__pill { top: 4px; bottom: 4px; background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: max(100vh, 680px); min-height: max(100svh, 680px); }
.hero__main {
  position: relative; isolation: isolate; flex: 1;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 44px) 0 44px;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 3; }
.hero__copy { max-width: 600px; }
.hero__prompt { margin-top: 26px; color: var(--ink-2); font-size: 14px; }
.hero__title {
  width: max-content; margin-top: 10px;
  font-size: clamp(3.4rem, min(9.6vw, 17.5vh), 9.4rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.06em;
  white-space: nowrap;
}
.hero__line { display: block; overflow: hidden; overflow: clip; padding: 0 0.1em 0.14em 0; margin: 0 -0.1em -0.14em 0; animation: line-in 1.1s var(--ease-out) 0.15s backwards; }
.hero__line + .hero__line { animation-delay: 0.3s; }
.hero__line--sig { overflow: visible; margin-top: -0.06em; }
.hero__title .sig { display: inline-block; font-size: 1.34em; line-height: 0.92; letter-spacing: 0; padding: 0.12em 0.3em 0.24em 0.3em; margin: -0.12em -0.2em -0.2em -0.26em; }
/* the surname is written on, left to right, after the first name has landed */
.js .hero__title .sig { clip-path: inset(-12% 102% -12% -4%); }
.js .hero__title.is-ready .sig { clip-path: inset(-12% -6% -12% -4%); transition: clip-path 1.25s cubic-bezier(0.62, 0.04, 0.3, 1) calc(var(--hold, 0s) + 0.8s); }
@keyframes line-in { from { opacity: 0; transform: translateY(0.35em); } }
/* split by main.js: each letter rises out of the line, then swells towards the cursor */
.hero__title.is-split .hero__line { animation: none; }
.hero__title .ch {
  display: inline-block; transform-origin: 0 100%;
  animation: ch-in 1.15s var(--ease-out) backwards; animation-delay: calc(var(--hold, 0s) + 0.15s + var(--i) * 0.045s);
}
@keyframes ch-in { from { transform: translate3d(0, 112%, 0) rotate(7deg); } }
.hero__title.is-settled .hero__line { overflow: visible; }
/* hidden until main.js has prepared the letters; shows anyway if the script never runs */
.js .hero__title:not(.is-ready) { visibility: hidden; animation: show-anyway 0s linear 3s forwards; }
@keyframes show-anyway { to { visibility: visible; } }

.hero__role { margin-top: 26px; font-size: clamp(14px, 1.25vw, 16.5px); color: var(--ink); min-height: 1.7em; }
.hero__role .scr { color: var(--ink-4); }
.caret { display: inline-block; width: 0.55em; height: 1.05em; margin-left: 4px; vertical-align: -0.16em; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { margin-top: 16px; max-width: 520px; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

/* The figure and the 3D glass scene around him (js/hero3d.js) */
.orbit { position: absolute; z-index: 1; inset: 0; pointer-events: none; --fig-x: calc(50% + min(24vw, 400px)); }
.orbit::before { /* a dot grid that fades out around him */
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--fig-x); width: min(54vw, 880px); transform: translateX(-50%);
  background-image: radial-gradient(circle, rgba(24, 18, 70, 0.22) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 56%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 50% 60% at 50% 56%, #000 0%, transparent 76%);
}
.orbit__canvas { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.orbit.is-live .orbit__canvas { opacity: 1; }
.orbit__figure {
  position: absolute; z-index: 2; left: var(--fig-x); bottom: -3px;
  height: min(88%, 880px); width: auto; max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 26px 34px rgba(46, 34, 120, 0.2));
}
.js .orbit__figure { opacity: 0; clip-path: inset(100% -70px 0 -70px); translate: 0 3%; }
.js .orbit__figure.is-in { opacity: 1; clip-path: inset(0 -70px 0 -70px); translate: 0 0; transition: opacity 0.5s var(--hold, 0s), clip-path 1.4s var(--ease-out) var(--hold, 0s), translate 1.4s var(--ease-out) var(--hold, 0s); }
/* labels riding the ring bands: little panes of glass */
.orbit__chip {
  position: absolute; left: 0; top: 0; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 10px; border-radius: 999px;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(14px) saturate(175%); backdrop-filter: blur(14px) saturate(175%);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  color: var(--ink); font-family: var(--font-mono); font-size: 11px; line-height: 1.3; letter-spacing: 0.02em; white-space: nowrap;
  opacity: 0; will-change: transform; transition: opacity 0.8s var(--ease);
}
.orbit__chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.orbit__chip.is-far { z-index: 1; }
.orbit.is-live .orbit__chip { opacity: 1; }
.orbit.is-live .orbit__chip.is-far { opacity: 0.6; }
.orbit.no-3d .orbit__chip { display: none; }

.scroll-cue {
  position: absolute; z-index: 3; left: max(var(--gutter), calc((100% - var(--container)) / 2)); bottom: 24px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  transition: color 0.2s;
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue span { position: relative; width: 44px; height: 1px; background: var(--line-2); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

/* ---------- Tech ticker: the black floor the figure stands on ---------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden; padding: 21px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero .marquee { -webkit-mask-image: none; mask-image: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; will-change: transform; }
.marquee ul { display: flex; flex: none; }
.marquee li {
  display: flex; align-items: center; gap: 34px; padding-right: 34px;
  font-weight: 500; font-size: clamp(18px, 1.9vw, 24px); line-height: 1.3; letter-spacing: -0.03em; color: var(--ink);
  white-space: nowrap;
}
.marquee li:nth-child(even) { background: linear-gradient(100deg, #a393ff, #6fbcff 50%, #ff8fc0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad-warm); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(92px, 11vw, 148px) 0; }
.section__head { max-width: 800px; margin-bottom: clamp(48px, 6vw, 76px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section__head--row > div { max-width: 680px; }
.section__lead { margin-top: 20px; color: var(--ink-2); font-size: clamp(16px, 1.35vw, 18px); max-width: 600px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(40px, 7vw, 108px); align-items: center; }
.about__media { display: grid; place-items: center; perspective: 1200px; }
.portrait {
  --rx: 0deg; --ry: 0deg;
  position: relative; width: min(100%, 430px); aspect-ratio: 1076 / 1383;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}
.portrait.is-tilting { transition: transform 0.08s linear; }
.portrait__panel { /* the pane of glass he is leaning out of */
  position: absolute; inset: 15% 0 0 0; overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(70% 60% at 86% 8%, rgba(106, 77, 255, 0.34), transparent 70%),
    radial-gradient(70% 60% at 6% 96%, rgba(255, 79, 154, 0.26), transparent 70%),
    radial-gradient(60% 50% at 10% 14%, rgba(31, 143, 255, 0.22), transparent 70%),
    var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
}
.portrait__panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(24, 18, 70, 0.2) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%); mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.portrait__panel::after { content: ""; position: absolute; left: 50%; top: -34%; width: 96%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.85); }
.portrait__img, .portrait__fx {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0 0 30px 30px;
  transform: translateZ(26px);
}
.portrait__img { object-fit: contain; object-position: 50% 100%; transition: opacity 0.3s; }
.portrait__fx { opacity: 0; pointer-events: none; }
.portrait.has-fx .portrait__fx { opacity: 1; }
.portrait.has-fx .portrait__img { opacity: 0; }
.portrait__tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 16px;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(16px) saturate(175%); backdrop-filter: blur(16px) saturate(175%);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  transform: translateZ(60px);
}
.portrait__tag strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.portrait__tag small { display: block; color: var(--ink-3); font-size: 12.5px; }
.float-chip {
  position: absolute; z-index: 3; top: 47%; left: -11%; padding: 8px 12px; border-radius: 10px; font-size: 11.5px; color: var(--ink);
  background: var(--glass-strong); -webkit-backdrop-filter: blur(14px) saturate(175%); backdrop-filter: blur(14px) saturate(175%);
  border: 1px solid var(--glass-line); white-space: nowrap; box-shadow: var(--glass-shadow);
  transform: translateZ(74px); animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -10px; } }
/* A brand stamp whose lettering keeps turning */
.seal {
  position: absolute; z-index: 3; right: -5%; top: 10%; width: 108px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--bg);
  transform: translateZ(86px); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.6), 0 20px 40px -14px rgba(106, 77, 255, 0.7);
}
.seal__text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.seal__text text { fill: currentColor; font-family: var(--font-mono); font-size: 8.4px; text-transform: uppercase; }
.seal__mark { width: 40px; height: 40px; fill: none; stroke: #b9aaff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(1turn); } }

.prose { display: grid; gap: 16px; color: var(--ink-2); font-size: 17px; margin-top: 28px; }
.prose strong { color: var(--ink); font-weight: 500; }
/* the story inks in word by word as you scroll through it */
.prose.is-highlight .hl { color: var(--ink-4); transition: color 0.45s var(--ease); }
.prose.is-highlight .hl.on { color: var(--ink-2); }
.prose.is-highlight strong .hl.on { color: var(--ink); }
.skills { display: grid; gap: 12px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.skills__row { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: start; }
.skills__label { padding-top: 6px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.cert { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; }
.cert strong { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.cert small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 12.5px; }
.cert__icon {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(106, 77, 255, 0.8); transition: transform 0.6s var(--ease-out);
}
.cert:hover .cert__icon { transform: rotate(-12deg) scale(1.08); }

.stats { position: relative; margin-top: clamp(64px, 8vw, 108px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.stats::before { /* a stroke of ink running along the rule */
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--violet), var(--blue), var(--pink), transparent) no-repeat;
  background-size: 320px 2px; background-position: -320px 0;
  animation: rail 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes rail { to { background-position: calc(100% + 320px) 0; } }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 28px 24px 0; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat dt { color: var(--ink-3); font-size: 13.5px; font-weight: 400; line-height: 1.45; max-width: 18ch; }
.stat dd {
  margin: 0; font-weight: 500; font-size: clamp(2.6rem, 4.8vw, 4.4rem); line-height: 1; letter-spacing: -0.055em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat__word { font-family: var(--font-script); font-weight: 400 !important; letter-spacing: 0 !important; font-size: clamp(2.5rem, 4.4vw, 4.1rem) !important; line-height: 1.05 !important; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; padding: 0.1em 0.3em 0.2em 0.06em; margin: -0.1em 0 -0.2em -0.06em !important; }

/* ---------- Services ---------- */
.services__layout { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.services__visual { position: sticky; top: calc(var(--nav-h) + 36px); }
/* The ink-dot sculpture (js/sculpture.js) re-forms into whichever service is in focus */
.sculpt {
  position: relative; isolation: isolate; aspect-ratio: 1; overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(60% 55% at 88% 6%, rgba(106, 77, 255, 0.28), transparent 70%),
    radial-gradient(60% 55% at 6% 94%, rgba(255, 79, 154, 0.22), transparent 70%),
    radial-gradient(50% 45% at 96% 92%, rgba(18, 200, 192, 0.2), transparent 70%),
    var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.sculpt.is-dragging { cursor: grabbing; }
.sculpt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(24, 18, 70, 0.2) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 46%, #000 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 46%, #000 100%);
}
.sculpt canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s var(--ease); }
.sculpt.is-ready canvas { opacity: 1; }
.sculpt__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); transition: opacity 0.5s; }
.sculpt__fallback .i { grid-area: 1 / 1; width: 34%; height: 34%; stroke-width: 0.9; opacity: 0; transform: scale(0.9); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out); }
.sculpt[data-active="0"] .sculpt__fallback .i:nth-child(1),
.sculpt[data-active="1"] .sculpt__fallback .i:nth-child(2),
.sculpt[data-active="2"] .sculpt__fallback .i:nth-child(3) { opacity: 1; transform: none; }
.sculpt.is-ready .sculpt__fallback { opacity: 0; }
.sculpt__fig, .sculpt__hint { position: absolute; top: 20px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }
.sculpt__fig { left: 22px; }
.sculpt__hint { right: 22px; opacity: 0; transition: opacity 0.6s; }
.sculpt.is-ready .sculpt__hint { opacity: 1; }
.sculpt.was-dragged .sculpt__hint { opacity: 0; }
.sculpt__label { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; pointer-events: none; }
.sculpt__label > * { transition: opacity 0.26s var(--ease), transform 0.26s var(--ease); }
.sculpt__label.is-swapping > * { opacity: 0; transform: translateY(6px); }
.sculpt__title { font-size: 17px; font-weight: 600; letter-spacing: -0.03em; }
.sculpt__sub { color: var(--ink-3); font-size: 13px; }

.service {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px;
  padding: 38px 0 40px; border-top: 1px solid var(--line-2);
  transition: opacity 0.55s var(--ease);
}
.service:last-child { border-bottom: 1px solid var(--line-2); }
.service::before { /* the rule above the service in focus inks in */
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; border-radius: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.9s var(--ease-out);
}
.js .service { opacity: 0.34; }
.js .service.is-active { opacity: 1; }
.service.is-active::before { transform: scaleX(1); }
.service__num { padding-top: 9px; color: var(--ink-3); font-size: 12px; }
.service__icon { display: none; }
.service__body { display: grid; gap: 14px; }
.service h3 { font-size: clamp(1.6rem, 2.7vw, 2.3rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.service__body > p { color: var(--ink-2); font-size: 16.5px; max-width: 54ch; }
.checks { display: grid; gap: 9px; margin: 4px 0 8px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--grad); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"), var(--grad); background-position: center, 0 0; background-size: 9px, 100% 100%; background-repeat: no-repeat;
}

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(64px, 8vw, 104px); }
.process li { /* each step is a pane of glass that lifts and lights up */
  position: relative; overflow: hidden; padding: 26px 24px 28px; border-radius: 24px;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  transition: transform 0.6s var(--ease-out), box-shadow 0.5s var(--ease);
}
.process li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s var(--ease-out); }
.process li::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 130px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(106, 77, 255, 0.3), transparent); opacity: 0; transition: opacity 0.5s; }
.process li:nth-child(2)::after { background: radial-gradient(closest-side, rgba(31, 143, 255, 0.3), transparent); }
.process li:nth-child(3)::after { background: radial-gradient(closest-side, rgba(255, 79, 154, 0.28), transparent); }
.process li:nth-child(4)::after { background: radial-gradient(closest-side, rgba(255, 154, 61, 0.3), transparent); }
@media (hover: hover) {
  .process li:hover { transform: translateY(-8px) perspective(900px) rotateX(5deg); box-shadow: 0 0 0 1px var(--glass-edge), 0 40px 64px -32px rgba(76, 54, 190, 0.5), inset 0 1px 0 #fff; }
  .process li:hover::before { transform: scaleX(1); }
  .process li:hover::after { opacity: 1; }
}
.process li .mono { display: inline-block; font-size: 12px; margin-bottom: 14px; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--grad); }
.process strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 6px; }
.process p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- Work ---------- */
.filters { position: relative; isolation: isolate; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; }
.filters button { padding: 9px 17px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-3); transition: color 0.25s, background-color 0.25s; }
.filters button:hover { color: var(--ink); }
.filters button.is-active { background: var(--ink); color: var(--bg); }
.filters.has-pill button.is-active { background: none; }

.work-group { margin-top: 24px; }
.work-group + .work-group { margin-top: clamp(80px, 10vw, 136px); }
.work-group.is-hidden { display: none; }
.group-title {
  display: flex; align-items: center; gap: 14px; margin-bottom: 40px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.group-title .mono { color: var(--ink); font-size: 1em; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 9vw, 128px); }
.feature--flip .feature__stage { order: 2; }
.feature__stage { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 26px; padding: 44px 0 12px; perspective: 1200px; }
.feature__stage::before { /* a pale disc behind the device */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 45%; width: min(94%, 450px); aspect-ratio: 1;
  border-radius: 50%; border: 1px solid var(--glass-line);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%), conic-gradient(from 210deg, rgba(106, 77, 255, 0.5), rgba(31, 143, 255, 0.45), rgba(18, 200, 192, 0.35), rgba(255, 79, 154, 0.45), rgba(255, 154, 61, 0.4), rgba(106, 77, 255, 0.5));
  filter: blur(2px) saturate(1.1); animation: spin 26s linear infinite; translate: -50% -50%; transform: none;
}
.feature__stage::after { /* contact shadow under the device */
  content: ""; position: absolute; left: 50%; bottom: 40px; z-index: -1; width: min(230px, 58vw); height: 24px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 10, 10, 0.34), transparent); filter: blur(5px);
  animation: shadow-breathe 7s ease-in-out infinite;
}
.feature--flip .feature__stage::after { animation-delay: -3.5s; }
@keyframes shadow-breathe { 50% { transform: translateX(-50%) scale(0.84); opacity: 0.6; } }
.feature__body { display: grid; gap: 16px; justify-items: start; }
.feature__body > p { color: var(--ink-2); font-size: 16.5px; max-width: 600px; }
.feature__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.feature__meta .mono { font-size: 12px; }
.feature__title { font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 600; letter-spacing: -0.055em; line-height: 1; }
.feature__tagline { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -0.025em; margin-top: -6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.challenge {
  margin: 4px 0 0; padding: 18px 20px; border-radius: 4px 18px 18px 4px; max-width: 600px;
  border: 1px solid var(--glass-line); border-left: 3px solid var(--violet);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow);
  color: var(--ink-2); font-size: 15px;
}
.challenge .mono { display: block; margin-bottom: 6px; color: var(--violet); text-transform: uppercase; letter-spacing: 0.14em; font-size: 10.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.phone__screen img, .browser__view img { transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }

/* Phone mockup — black titanium */
.phone {
  --rx: var(--srx, 6deg); --ry: var(--sry, -16deg); /* main.js turns featured phones as they scroll past */
  position: relative; display: block;
  width: min(286px, 70vw); aspect-ratio: 540 / 1170;
  padding: 10px; border-radius: 46px;
  background: linear-gradient(145deg, #4b4b4b 0%, #161616 22%, #050505 55%, #232323 85%, #454545 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 6px #050505,
    0 56px 80px -38px rgba(30, 20, 90, 0.6),
    0 30px 60px -30px rgba(106, 77, 255, 0.5);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
  cursor: zoom-in;
}
.phone.is-tilting { transition: transform 0.1s linear; }
.phone::before { /* punch-hole camera */
  content: ""; position: absolute; top: 21px; left: 50%; z-index: 3; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3d3d3d, #050505 60%);
}
.phone::after { /* side button */
  content: ""; position: absolute; right: -3px; top: 24%; width: 3px; height: 64px; border-radius: 0 3px 3px 0; background: linear-gradient(#3c3c3c, #161616);
}
.phone__screen { position: relative; display: block; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #000; }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.phone__screen img:first-child, .phone__screen img.is-active { opacity: 1; }
.phone__screen.has-slides img:first-child:not(.is-active) { opacity: 0; }
.phone__screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.05));
}
.phone__screen::before { /* light sliding over the glass */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.16) 46%, rgba(255, 255, 255, 0.04) 52%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 170% 0;
  animation: glint 7s ease-in-out infinite;
}
@keyframes glint { 0%, 70% { background-position: 170% 0; } 100% { background-position: -70% 0; } }
.feature--flip .phone { --ry: var(--sry, 16deg); }
.feature__stage .phone { animation: phone-float 7s ease-in-out infinite; }
.feature--flip .feature__stage .phone { animation-delay: -3.5s; }
@keyframes phone-float { 50% { translate: 0 -14px; } }
.phone--sm { width: min(196px, 56vw); padding: 7px; border-radius: 33px; --rx: 4deg; --ry: -10deg; }
.feature--flip .feature__stage::before { animation-direction: reverse; }
.phone--sm .phone__screen { border-radius: 27px; }
.phone--sm::before { top: 15px; width: 8px; height: 8px; margin-left: -4px; }
.phone--static { cursor: default; }
.phone__dots { display: flex; gap: 6px; }
.phone__dots button { width: 6px; height: 6px; border-radius: 99px; background: var(--line-3); transition: width 0.3s var(--ease), background-color 0.3s; }
.phone__dots button.is-active { width: 22px; background: var(--ink); }

/* Smart Store illustration */
.store-ui { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 34px 12px 12px; background: #fff; color: #0a0a0a; font-family: var(--font-sans); }
.store-ui__top { display: flex; justify-content: space-between; align-items: center; }
.store-ui__top b { font-size: 12px; font-weight: 600; white-space: nowrap; }
.store-ui__top i { font-style: normal; font-size: 9px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: #0a0a0a; color: #fff; }
.store-ui__kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.store-ui__kpi > span { padding: 8px; border-radius: 10px; background: #f4f4f4; }
.store-ui__kpi small { display: block; font-size: 8px; color: #707070; font-weight: 600; }
.store-ui__kpi b { display: block; height: 8px; margin-top: 6px; border-radius: 4px; background: #0a0a0a; }
.store-ui__kpi > span:last-child b { width: 60%; background: #9a9a9a; }
.store-ui__chart { display: flex; align-items: flex-end; gap: 5px; height: 62px; padding: 8px; border-radius: 10px; background: #f4f4f4; }
.store-ui__chart i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: #cfcfcf; }
.store-ui__chart i:nth-child(4), .store-ui__chart i:nth-child(6) { background: #0a0a0a; }
.store-ui__list { display: grid; gap: 6px; }
.store-ui__list > span { display: grid; grid-template-columns: 18px 1fr 26px; align-items: center; gap: 7px; padding: 6px; border-radius: 9px; background: #f4f4f4; }
.store-ui__list i { width: 18px; height: 18px; border-radius: 6px; background: #0a0a0a; }
.store-ui__list em { height: 6px; border-radius: 4px; background: #c4c4c4; }
.store-ui__list b { height: 6px; border-radius: 4px; background: #8a8a8a; }
.store-ui__roles { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.store-ui__roles span { text-align: center; font-size: 8.5px; font-weight: 600; padding: 7px 4px; border-radius: 99px; border: 1px solid #d0d0d0; color: #474747; }
.store-ui__roles span:first-child { background: #0a0a0a; color: #fff; border-color: transparent; }

/* APK cards */
.apk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apk-card { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 28px; border-radius: var(--radius-lg); }
.apk-card__stage { position: relative; isolation: isolate; perspective: 1000px; padding: 6px 4px; }
.apk-card__stage::before { content: ""; position: absolute; inset: 8% -16%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(106, 77, 255, 0.34), rgba(31, 143, 255, 0.16) 60%, transparent); }
.apk-card + .apk-card .apk-card__stage::before { background: radial-gradient(closest-side, rgba(255, 79, 154, 0.3), rgba(255, 154, 61, 0.16) 60%, transparent); }
.apk-card .phone--sm { width: 166px; }
.apk-card__body { display: grid; gap: 12px; justify-items: start; }
.apk-card__body h4 { font-size: 26px; letter-spacing: -0.045em; }
.apk-card__body p { color: var(--ink-2); font-size: 15px; }

/* Web sites */
.sites-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.site-card { padding: 10px; display: flex; flex-direction: column; border-radius: var(--radius-lg); }
.browser { border-radius: 15px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; }
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 9px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.browser__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-3); font-size: 11.5px; text-align: center; }
.browser__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; cursor: pointer; }
.browser__view > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser__view .full { position: absolute; inset: 0 0 auto 0; width: 100%; height: auto; opacity: 0; transform: translateY(0); transition: opacity 0.4s, transform 0.6s var(--ease); }
.site-card:hover .browser__view .full.is-ready { opacity: 1; transform: translateY(var(--scroll, 0)); transition: opacity 0.4s, transform var(--dur, 6s) cubic-bezier(0.45, 0, 0.55, 1) 0.2s; }
.site-card:hover .browser__view > img:first-child { transform: scale(1.03); }
/* screenshots wipe in from below as they scroll into view */
.js .browser__view[data-wipe] { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-out); }
.js .browser__view[data-wipe] > img:first-child { scale: 1.16; transition: transform 0.8s var(--ease), scale 1.6s var(--ease-out); }
.js .browser__view[data-wipe].is-in { clip-path: inset(0 0 0 0); }
.js .browser__view[data-wipe].is-in > img:first-child { scale: 1; }
.site-card__body { display: grid; gap: 10px; justify-items: start; padding: 22px 14px 14px; flex: 1; align-content: start; }
.site-card__body h4 { font-size: 26px; letter-spacing: -0.045em; }
.site-card__body p { color: var(--ink-2); font-size: 15px; }
.site-card__body .actions { margin-top: auto; padding-top: 6px; }

/* ---------- Experience ---------- */
.experience__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.experience__head { position: sticky; top: 120px; margin-bottom: 0; }
.exp-callout { display: flex; align-items: center; gap: 20px; margin-top: 34px; padding: 18px 22px; border-radius: 20px; color: var(--ink-2); font-size: 15px; }
.exp-callout__num { font-weight: 700; font-size: 76px; line-height: 0.9; letter-spacing: -0.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }

.terminal { width: 100%; margin-top: 14px; padding: 0; border-radius: 20px; }
.terminal.card { background: rgba(12, 11, 22, 0.86); border-color: rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px -30px rgba(40, 28, 120, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.terminal__bar .dots i:nth-child(1) { background: var(--pink); }
.terminal__bar .dots i:nth-child(2) { background: var(--amber); }
.terminal__bar .dots i:nth-child(3) { background: var(--live); }
.terminal__bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 11.5px; }
.terminal__body { margin: 0; padding: 16px 18px 18px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); white-space: pre-wrap; min-height: 222px; }
.terminal__body .t-line { color: var(--ink); }
.terminal__body .t-out { color: var(--ink-3); }
.terminal__body .t-ok { color: var(--live); font-weight: 500; }
.terminal__body .accent { color: #a393ff; }

.timeline { position: relative; display: grid; gap: 16px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline::after { /* ink that follows your scroll down the line */
  content: ""; position: absolute; left: 6.5px; top: 8px; width: 2px;
  height: calc((100% - 16px) * var(--fill, 0)); background: linear-gradient(var(--violet), var(--blue), var(--pink)); border-radius: 2px;
}
.tl { position: relative; display: grid; gap: 10px; }
.tl::before {
  content: ""; position: absolute; left: -33px; top: 5px; z-index: 1; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--ink-4);
  transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.tl.is-lit::before { background: var(--violet); border-color: #fff; box-shadow: 0 0 0 5px rgba(106, 77, 255, 0.16), 0 0 18px rgba(106, 77, 255, 0.7); }
.tl__when { color: var(--ink-3); font-size: 12px; letter-spacing: 0.04em; transition: color 0.5s; }
.tl.is-lit .tl__when { color: var(--ink); }
.tl__card { padding: 22px 24px; border-radius: 20px; display: grid; gap: 10px; }
.tl__card h3 { font-size: 19px; letter-spacing: -0.03em; }
.tl__card h3 span { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.tl__card p { color: var(--ink-2); font-size: 15px; }

/* ---------- Contact: a black slab set into the page ---------- */
.contact { padding: 0 12px; }
.contact__slab { position: relative; overflow: hidden; border-radius: clamp(26px, 3.4vw, 46px); padding: clamp(76px, 9vw, 128px) 0 clamp(64px, 8vw, 104px); }
.contact__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 6vw, 80px); }
.contact__intro .h2 { margin-top: 0; }
.locale { display: flex; flex-wrap: wrap; gap: 18px 36px; margin: 34px 0 0; padding-top: 24px; border-top: 1px solid var(--line-2); }
.locale dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.locale dd { display: flex; align-items: center; gap: 7px; margin: 6px 0 0; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.locale dd .i { width: 15px; height: 15px; }

.globe {
  position: relative; justify-self: center; width: min(100%, 560px); aspect-ratio: 1;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.globe.is-dragging { cursor: grabbing; }
.globe[hidden] { display: none; }
.globe::before { /* backlight */
  content: ""; position: absolute; inset: 6%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(126, 104, 255, 0.4), rgba(255, 79, 154, 0.12) 70%, transparent);
  filter: blur(34px);
}
.contact__slab { isolation: isolate; }
.contact__slab::before { /* coloured light inside the slab, for its glass to catch */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 40% at 4% 0%, rgba(106, 77, 255, 0.5), transparent 70%),
    radial-gradient(40% 36% at 100% 30%, rgba(31, 143, 255, 0.34), transparent 70%),
    radial-gradient(44% 40% at 88% 100%, rgba(255, 79, 154, 0.38), transparent 70%),
    radial-gradient(36% 32% at 12% 96%, rgba(255, 154, 61, 0.22), transparent 70%);
  animation: slab-light 18s ease-in-out infinite alternate;
}
@keyframes slab-light { to { transform: scale(1.14) rotate(4deg); } }
.globe__canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.globe.is-ready .globe__canvas { opacity: 1; }
.globe__pin {
  position: absolute; left: 0; top: 0; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 9px; border-radius: 999px;
  font-size: 11.5px; color: #0a0a0a; white-space: nowrap; pointer-events: none;
  background: #fff;
  transform: translate(calc(var(--px, -999px) + 14px), calc(var(--py, -999px) - 50%));
  opacity: var(--pin-o, 0); transition: opacity 0.3s;
}
.globe__pin i { width: 6px; height: 6px; border-radius: 50%; background: #0a0a0a; }
.globe__hint { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); color: var(--ink-3); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity 0.6s; }
.globe.is-ready .globe__hint { opacity: 1; }
.globe.was-dragged .globe__hint { opacity: 0; }

.contact__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__channels { position: sticky; top: 110px; }
.channels { display: grid; gap: 10px; }
.channel { display: flex; align-items: center; border-radius: 18px; padding: 6px; transition: border-color 0.25s, transform 0.4s var(--ease-out), background-color 0.25s; }
.channel:hover { border-color: var(--line-3); transform: translateX(6px); }
.channel > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 8px 10px; }
.channel > a > span:last-child { min-width: 0; overflow-wrap: anywhere; font-weight: 500; font-size: 15.5px; letter-spacing: -0.01em; }
.channel small { display: block; color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.channel__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(106, 77, 255, 0.9); transition: transform 0.5s var(--ease-out); }
.channel:nth-child(2) .channel__icon { background: linear-gradient(135deg, var(--live), var(--cyan)); box-shadow: 0 10px 24px -10px rgba(23, 199, 154, 0.9); }
.channel:nth-child(3) .channel__icon { background: var(--grad-warm); box-shadow: 0 10px 24px -10px rgba(255, 79, 154, 0.9); }
.channel:hover .channel__icon { transform: rotate(-10deg) scale(1.06); }
.channel__icon .i { width: 19px; height: 19px; }
.copy-btn { display: grid; place-items: center; width: 40px; height: 40px; margin-right: 4px; border-radius: 50%; color: var(--ink-3); transition: color 0.2s, background-color 0.2s; flex: none; }
.copy-btn:hover { color: var(--ink); background: var(--tint); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social { display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 999px; font-weight: 500; font-size: 14px; transition: border-color 0.25s, transform 0.3s var(--ease), background-color 0.25s, color 0.25s; }
.social:hover { color: var(--bg); border-color: var(--ink); background: var(--ink); transform: translateY(-2px); }
.social .i { width: 17px; height: 17px; }

.brief { padding: clamp(24px, 3.4vw, 38px); display: grid; gap: 18px; border-radius: 26px; }
.brief h3 { font-size: 24px; letter-spacing: -0.04em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line-2); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-3); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23909090' 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; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #a393ff; box-shadow: 0 0 0 4px rgba(126, 104, 255, 0.28); }
.field select option { background: #15141f; color: #fff; }
.field .is-invalid { border-color: var(--ink); border-style: dashed; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.choice span:hover { border-color: var(--line-3); color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-error { min-height: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.form-error:not(:empty)::before { content: "! "; font-family: var(--font-mono); }
.form-error:empty { display: none; }
.form-note { color: var(--ink-3); font-size: 13px; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding-top: clamp(64px, 8vw, 104px); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.85fr)) minmax(0, 1.3fr); gap: 40px clamp(20px, 3vw, 44px); }
.footer__blurb { margin: 18px 0 22px; color: var(--ink-2); max-width: 34ch; font-size: 15px; }
.footer__col { display: grid; align-content: start; justify-items: start; gap: 11px; }
.footer__head { margin-bottom: 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.footer__col a, .footer__place { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; transition: color 0.2s; }
.footer__col a:hover { color: var(--ink); }
.footer__place { display: inline-flex; align-items: flex-start; gap: 7px; color: var(--ink-3); }
.footer__place .i { width: 15px; height: 15px; margin-top: 2px; }
.footer__links { display: flex; gap: 8px; }
.footer__links a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2); transition: color 0.25s, border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease); }
.footer__links a:hover { color: var(--bg); border-color: var(--ink); background: var(--ink); transform: translateY(-2px); }
.footer__links .i { width: 17px; height: 17px; }
.footer__base { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 64px); padding-top: 22px; border-top: 1px solid var(--line-2); }
.footer__copy { color: var(--ink-3); font-size: 13.5px; }
.footer__top { color: var(--ink-2); font-size: 12.5px; transition: color 0.2s; }
.footer__label { display: block; color: var(--ink-3); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a { color: var(--ink-3); font-size: 13.5px; transition: color 0.2s; }
.footer__legal a:hover { color: var(--ink); }
.footer__top:hover { color: var(--ink); }
.footer__mark { /* each letter swells towards the cursor (main.js) */
  margin-top: 26px; padding-bottom: calc(20px + env(safe-area-inset-bottom));
  text-align: center; white-space: nowrap; user-select: none; -webkit-user-select: none;
  font-weight: 500; font-size: clamp(3.2rem, 15.6vw, 15rem); line-height: 0.82; letter-spacing: -0.07em; color: var(--ink);
}
.footer__mark .ch { display: inline-block; }
.footer__mark .alt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.footer__mark .alt .ch { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__sign { color: var(--ink-3); font-size: 13.5px; display: inline-flex; align-items: baseline; gap: 8px; }
.footer__sign .sig { font-size: 30px; line-height: 1; }

/* ---------- Modals ---------- */
.modal {
  padding: 0; border: 1px solid var(--glass-line); border-radius: 26px; color: var(--ink);
  background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: pop 0.4s var(--ease-out); }
.modal::backdrop { background: rgba(14, 10, 40, 0.56); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.modal__head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.modal--gallery { width: 560px; }
.gallery { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 20px; min-height: 0; }
.gallery__frame { display: grid; place-items: center; min-height: 0; }
.gallery__frame img { max-height: calc(100dvh - 140px); width: auto; max-width: 100%; aspect-ratio: 540 / 1170; object-fit: contain; border-radius: 24px; border: 1px solid var(--line-2); background: #000; }

.modal--video { width: 460px; }
.video-frame { padding: 18px; display: grid; place-items: center; }
.video-frame video { width: auto; max-width: 100%; max-height: calc(100dvh - 130px); aspect-ratio: 432 / 936; border-radius: 24px; background: #000; border: 1px solid var(--line-2); }

.modal--site { width: min(1180px, 100vw - 24px); height: min(860px, 100dvh - 24px); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); }
.seg button { padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-3); transition: color 0.2s; }
.seg button:hover { color: var(--ink); }
.seg button.is-active { background: var(--ink); color: var(--bg); }
.seg button:disabled { opacity: 0.4; cursor: not-allowed; }
.site-frame { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-soft); }
.site-frame__body { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.site-frame__body img { width: 100%; height: auto; }
.site-frame__body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.site-frame__note { position: sticky; bottom: 12px; margin: 0 auto; width: max-content; max-width: calc(100% - 24px); padding: 8px 15px; border-radius: 999px; font-size: 12.5px; color: #fff; background: rgba(10, 10, 10, 0.9); text-align: center; }
.loader { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; background: var(--bg-soft); }
.loader::before { content: ""; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: spin 0.9s linear infinite; margin-bottom: 44px; grid-area: 1 / 1; }
.loader span { grid-area: 1 / 1; margin-top: 30px; }

/* ---------- Chat ---------- */
.chat { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat__fab {
  position: relative; display: inline-flex; align-items: center; gap: 11px;
  height: 56px; padding: 0 21px 0 7px; border-radius: 999px;
  background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
  font-weight: 500; font-size: 14.5px; letter-spacing: -0.01em;
  box-shadow: 0 20px 40px -18px rgba(10, 10, 10, 0.6);
  transition: transform 0.35s var(--ease-out), box-shadow 0.3s;
}
.chat__fab:hover { transform: translateY(-3px); box-shadow: 0 26px 46px -18px rgba(10, 10, 10, 0.7); }
.chat__orb { position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(from 0deg, var(--violet), var(--blue), var(--cyan), var(--pink), var(--amber), var(--violet)); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 8px 20px -6px rgba(106, 77, 255, 0.9); transition: transform 0.6s var(--ease-out); }
.chat__fab:hover .chat__orb { transform: rotate(-14deg); }
.chat__orb .i { width: 19px; height: 19px; stroke-width: 2; }
.chat__orb-x { display: none; }
.chat.is-open .chat__orb .i:first-child { display: none; }
.chat.is-open .chat__orb-x { display: block; }
.chat__fab-ring { position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid var(--violet); animation: fab-ring 3s var(--ease) infinite; pointer-events: none; }
@keyframes fab-ring { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12, 1.4); } }
.chat.is-open .chat__fab-ring { display: none; }
.chat__badge {
  position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 99px;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: #0a0a0a;
  background: #fff; border: 2px solid #0a0a0a;
}
.chat__badge[hidden] { display: none; }
.chat.is-open .chat__fab { padding: 0 6px; }
.chat.is-open .chat__fab-label { display: none; }

.chat__nudge { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 16px; border-radius: 18px; max-width: 300px; animation: pop 0.4s var(--ease); background: var(--glass-strong); }
.chat__nudge[hidden] { display: none; }
.chat__nudge-text { text-align: left; font-size: 14px; color: var(--ink-2); padding: 6px 0; }
.chat__nudge-text strong { color: var(--ink); font-weight: 600; }
.chat__nudge-x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-3); flex: none; }
.chat__nudge-x:hover { color: var(--ink); background: var(--tint); }
.chat__nudge-x .i { width: 16px; height: 16px; }

.chat__panel {
  width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 26px; border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 0 1px var(--glass-edge), var(--shadow-lg);
  transform-origin: 100% 100%;
  animation: chat-in 0.4s var(--ease-out);
}
.chat__panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); }
.chat__avatar { position: relative; flex: none; }
.chat__avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--violet); }
.chat__who { flex: 1; min-width: 0; }
.chat__who h2 { font-size: 15px; letter-spacing: -0.02em; }
.chat__who p { display: flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__head .icon-btn { width: 34px; height: 34px; font-size: 16px; }
.chat__log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; animation: msg-in 0.35s var(--ease-out); overflow-wrap: anywhere; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.msg--bot { align-self: flex-start; background: rgba(106, 77, 255, 0.08); border-bottom-left-radius: 5px; color: var(--ink-2); }
.msg--bot strong { color: var(--ink); font-weight: 600; }
.msg--bot a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.msg--bot ul { margin: 6px 0 2px; padding-left: 18px; list-style: disc; }
.msg--bot li + li { margin-top: 3px; }
.msg--user { align-self: flex-end; background: var(--ink); color: var(--bg); font-weight: 500; border-bottom-right-radius: 5px; }
.msg--admin { align-self: flex-start; color: var(--ink); border-bottom-left-radius: 5px; background: rgba(23, 199, 154, 0.1); border: 1px solid rgba(23, 199, 154, 0.5); }
.msg__from { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.msg__from::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.msg__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg__actions a, .msg__actions button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none !important;
  color: var(--ink) !important; background: var(--bg); border: 1px solid var(--line-3);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.msg__actions a:hover, .msg__actions button:hover { color: var(--bg) !important; background: var(--ink); border-color: var(--ink); }
.msg__actions .i { width: 14px; height: 14px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: typing 1.2s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat__chips { display: flex; gap: 6px; padding: 6px 14px 10px; overflow-x: auto; scrollbar-width: none; flex: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chat__chips:empty { display: none; }
.chat__chips button { flex: none; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--bg); transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.chat__chips button:hover { color: var(--bg); border-color: var(--ink); background: var(--ink); }
.chat__form { display: flex; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; height: 44px; padding: 0 17px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-soft); }
.chat__form input:focus { outline: none; border-color: var(--ink); background: var(--bg); }
.chat__form button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; flex: none; transition: transform 0.3s var(--ease-out); }
.chat__form button:hover { transform: scale(1.06) rotate(-8deg); }
.chat__foot { padding: 4px 16px 10px; text-align: center; color: var(--ink-3); font-size: 11px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px);
  max-width: min(460px, calc(100vw - 32px)); padding: 12px 20px; border-radius: 999px;
  background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cursor companion (fine pointers only, added by main.js) ---------- */
.cursor-ring, .cursor-label { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor-ring { mix-blend-mode: difference; }
/* a pool of coloured light that trails the pointer underneath the glass */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(106, 77, 255, 0.2), rgba(255, 79, 154, 0.1) 48%, transparent 72%);
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.cursor-glow.is-on { opacity: 1; }
.cursor-ring.is-on, .cursor-label.is-on { opacity: 1; }
.cursor-ring i { display: block; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid #fff; transition: transform 0.45s var(--ease-out), opacity 0.3s, border-width 0.3s; }
.cursor-ring.is-link i { transform: scale(1.55); border-width: 1.5px; }
.cursor-ring.is-down i { transform: scale(0.8); }
.cursor-ring.is-hidden i { opacity: 0; transform: scale(0.3); }
.cursor-label i {
  display: grid; place-items: center; width: 82px; height: 82px; margin: -41px 0 0 -41px; border-radius: 50%;
  background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.22); color: #fff;
  font: 500 11px/1 var(--font-mono); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase;
  transform: scale(0); transition: transform 0.5s var(--ease-out);
}
.cursor-label.is-shown i { transform: scale(1); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .hero [data-reveal] { transition-delay: calc(var(--hold, 0s) + var(--d, 0ms)); }
/* glass cards swing up into place in 3D */
.js .card[data-reveal] { transform: perspective(1200px) rotateX(18deg) translateY(60px) scale(0.95); transform-origin: 50% 100%; }
.js .tl[data-reveal] { transform: perspective(1200px) rotateY(-16deg) translateX(46px); transform-origin: 0 50%; }
.js .card[data-reveal].is-in, .js .tl[data-reveal].is-in { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Headlines rise word by word out of their own line */
.split .w { display: inline-block; overflow: hidden; overflow: clip; vertical-align: top; padding: 0 0.14em 0.16em 0; margin: 0 -0.14em -0.16em 0; }
.split .wi {
  display: inline-block; transform: translate3d(0, 110%, 0) rotate(5deg); transform-origin: 0 100%;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.split.is-shown .wi { transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .apk-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 56px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .nav { background: var(--glass-strong); border-color: var(--glass-line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); }
  .about__grid, .experience__grid, .contact__grid, .contact__top { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .float-chip { left: -3%; }
  .seal { right: -2%; width: 94px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(-n + 2) { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .experience__head { position: static; }
  .contact__channels { position: static; }
  .globe { width: min(100%, 440px); }
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__stage { order: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .sites-grid { grid-template-columns: 1fr; }
  /* the sculpture pins under the nav while the services scroll past it */
  .services__layout { grid-template-columns: 1fr; gap: 0; }
  .services__visual { z-index: 2; top: calc(var(--nav-h) + 20px); padding-bottom: 14px; }
  .sculpt { background-color: rgba(255, 255, 255, 0.82); }
  .sculpt { aspect-ratio: auto; height: min(36vh, 300px); height: min(36svh, 300px); border-radius: 24px; }
  .sculpt__fig, .sculpt__hint { top: 14px; }
  .sculpt__label { bottom: 12px; }
}

@media (max-width: 760px) {
  /* the copy stacks above the figure, who stands on the ticker below the fold */
  .hero { min-height: 0; }
  .hero__main { flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .hero__title { font-size: clamp(3.4rem, 17.5vw, 6.2rem); }
  .hero__title .sig { margin-left: -0.04em; } /* keep the opening flourish inside the screen edge */
  .orbit { position: relative; inset: auto; width: 100%; height: min(122vw, 600px); margin-top: 26px; --fig-x: 50%; }
  .orbit::before { width: 100%; }
  .orbit__figure { height: 94%; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .certs { grid-template-columns: 1fr; }
  .skills__row { grid-template-columns: 1fr; gap: 8px; }
  .skills__label { padding-top: 0; }
  .service { grid-template-columns: 1fr; row-gap: 6px; padding: 30px 0 32px; }
  .service__num { padding-top: 0; }
  .apk-card { grid-template-columns: 1fr; justify-items: center; padding: 22px; }
  .apk-card__body { justify-items: stretch; }
  .apk-card__body .badge { justify-self: start; }
  .field-row { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
  .brief .actions .btn { flex: 1 1 100%; }
  .stat { padding: 20px 16px 0; }
  .stat dt { font-size: 12.5px; }
  .contact { padding: 0 8px; }
  .chat { right: 12px; bottom: 12px; }
  .chat__fab-label { display: none; }
  .chat__fab { padding: 0 6px; height: 56px; }
  .chat__panel { width: calc(100vw - 24px); height: calc(100dvh - 100px); }
  .modal__head { padding-left: 16px; }
  .modal--site .modal__head { flex-wrap: wrap; }
  .modal--site .modal__head h2 { flex-basis: calc(100% - 60px); }
  .gallery { grid-template-columns: 1fr; padding: 14px; }
  .gallery__nav { display: none; }
  .process { grid-template-columns: 1fr; }
  .locale { gap: 16px 28px; }
}

@media (hover: none) {
  .phone { cursor: pointer; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .scroll-cue { display: none; }
}

/* the sticky experience column only sticks when it fits on screen */
@media (max-height: 860px) {
  .experience__head { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .orbit__figure { opacity: 1; clip-path: none; translate: 0 0; }
  .js .hero__title .sig { clip-path: none; }
  .intro { display: none; }
  html.js { --hold: 0s; }
  .js .browser__view[data-wipe] { clip-path: none; }
  .js .browser__view[data-wipe] > img:first-child { scale: 1; }
  .js .service { opacity: 1; }
  .marquee__track { animation: none; }
}

/* =========================================================
   Light behind the glass, and the opening signature
   ========================================================= */
/* Four soft pools of colour drift behind the whole page; main.js slides them as you scroll,
   so every pane of glass has something moving to blur. */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; translate: 0 calc(var(--scroll, 0) * var(--travel, 0px)); }
.aurora i:nth-child(1) { --travel: 46vh; width: 64vmax; height: 64vmax; right: -18vmax; top: -24vmax; background: radial-gradient(closest-side, rgba(106, 77, 255, 0.36), rgba(106, 77, 255, 0) 72%); animation: drift 34s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { --travel: -58vh; width: 54vmax; height: 54vmax; left: -24vmax; top: 34vh; background: radial-gradient(closest-side, rgba(31, 143, 255, 0.3), rgba(31, 143, 255, 0) 72%); animation: drift 42s ease-in-out -12s infinite alternate-reverse; }
.aurora i:nth-child(3) { --travel: -70vh; width: 50vmax; height: 50vmax; right: -14vmax; bottom: -26vmax; background: radial-gradient(closest-side, rgba(255, 79, 154, 0.28), rgba(255, 79, 154, 0) 72%); animation: drift 38s ease-in-out -20s infinite alternate; }
.aurora i:nth-child(4) { --travel: -40vh; width: 44vmax; height: 44vmax; left: 16vw; bottom: -30vmax; background: radial-gradient(closest-side, rgba(255, 154, 61, 0.22), rgba(255, 154, 61, 0) 72%); animation: drift 46s ease-in-out -6s infinite alternate-reverse; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(7vmax, 5vmax, 0) scale(1.14); }
  100% { transform: translate3d(-6vmax, 9vmax, 0) scale(0.94); }
}

/* The page opens with the signature being written, then the sheet lifts away.
   A small script in <head> adds .intro-go once the script font is ready, and .no-intro on
   later visits in the same tab. --hold keeps the hero's own entrance waiting meanwhile. */
html.js:not(.no-intro) { --hold: 2.05s; }
.intro {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; overflow: hidden;
  background: #fff; clip-path: inset(0 0 0 0);
  animation: intro-out 0.8s var(--ease-out) 4s forwards;
}
html:not(.js) .intro, .no-intro .intro { display: none; }
.intro::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 40% at 26% 30%, rgba(106, 77, 255, 0.3), transparent 70%),
    radial-gradient(38% 38% at 76% 66%, rgba(255, 79, 154, 0.26), transparent 70%),
    radial-gradient(34% 34% at 70% 24%, rgba(31, 143, 255, 0.24), transparent 70%);
  animation: slab-light 6s ease-in-out infinite alternate;
}
.intro__inner { position: relative; display: grid; justify-items: center; gap: 4px; }
.intro__sig {
  font-family: var(--font-script); font-size: clamp(3.2rem, 11vw, 8.6rem); line-height: 1.1; white-space: nowrap;
  padding: 0.12em 0.34em 0.26em 0.14em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  clip-path: inset(-10% 102% -10% 0);
}
.intro__line { width: min(52vw, 460px); height: 4px; border-radius: 4px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; rotate: -2deg; margin-top: -0.6em; }
.intro__meta { margin-top: 26px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); opacity: 0; }
.intro-go .intro { animation: intro-out 0.85s cubic-bezier(0.7, 0, 0.2, 1) 1.75s forwards; }
.intro-go .intro__sig { animation: write 1.2s cubic-bezier(0.62, 0.04, 0.3, 1) 0.1s forwards; }
.intro-go .intro__line { animation: underline 0.6s var(--ease-out) 1s forwards; }
.intro-go .intro__meta { animation: fade-in 0.6s var(--ease) 0.5s forwards; }
@keyframes write { to { clip-path: inset(-10% -4% -10% 0); } }
@keyframes underline { to { transform: scaleX(1); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* =========================================================
   Multi-page site: services menu, quote badge, page transitions, shared page parts
   ========================================================= */
/* The Services link opens a glass menu of every service with its starting price */
.nav__item { display: flex; }
.nav__links .nav__mega-trigger { display: inline-flex; align-items: center; gap: 3px; padding-right: 11px; }
.nav__chev { width: 14px; height: 14px; transition: transform 0.45s var(--ease-out); }
.mega {
  position: absolute; z-index: 5; top: calc(100% + 20px); left: 50%;
  width: min(720px, calc(100vw - 40px)); padding: 10px; border-radius: 28px;
  background: rgba(255, 255, 255, 0.95); border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), 0 50px 90px -40px rgba(56, 42, 140, 0.5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, 10px) scale(0.98); transform-origin: 50% 0;
  transition: opacity 0.22s var(--ease), transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; } /* bridge from the link */
@media (hover: hover) {
  .nav__item--mega:hover .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); transition: opacity 0.22s var(--ease) 0.06s, transform 0.4s var(--ease-out) 0.06s, visibility 0s; }
  .nav__item--mega:hover .nav__chev { transform: rotate(180deg); }
}
.nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); transition: opacity 0.22s var(--ease), transform 0.4s var(--ease-out), visibility 0s; }
.nav__item--mega:focus-within .nav__chev { transform: rotate(180deg); }
.nav__item--mega.is-closed .mega { opacity: 0; visibility: hidden; pointer-events: none; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav__links .mega__item {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px 12px 12px; border-radius: 18px; color: var(--ink); font-size: 14px; line-height: 1.3;
  transition: background-color 0.25s;
}
.nav__links .mega__item:hover, .nav__links .mega__item:focus-visible { background: rgba(106, 77, 255, 0.07); }
.mega__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #fff; background: var(--grad); box-shadow: 0 10px 20px -10px rgba(106, 77, 255, 0.8); transition: transform 0.5s var(--ease-out); }
.mega__item:nth-child(2) .mega__icon { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.mega__item:nth-child(3) .mega__icon { background: linear-gradient(135deg, var(--violet), var(--pink)); }
.mega__item:nth-child(4) .mega__icon { background: linear-gradient(135deg, #3d2bd9, var(--violet)); }
.mega__item:nth-child(5) .mega__icon { background: var(--grad-warm); }
.mega__item:nth-child(6) .mega__icon { background: linear-gradient(135deg, var(--live), var(--cyan)); }
.mega__item:hover .mega__icon { transform: rotate(-8deg) scale(1.06); }
.mega__icon .i { width: 19px; height: 19px; }
.mega__item strong { display: block; font-weight: 600; letter-spacing: -0.02em; }
.mega__item small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12.5px; }
.mega__item em { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.nav__links .mega__foot {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 13px; border-radius: 18px;
  color: #fff; font-size: 14px; font-weight: 500; background: var(--ink); transition: background-color 0.3s;
}
.nav__links .mega__foot:hover { background: #24205a; }
.mega__foots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.nav__links .mega__foots .mega__foot { margin-top: 0; padding: 12px 14px; font-size: 13px; text-align: center; }
.nav__links .mega__foots .mega__foot:first-child { background: var(--grad); }
.nav__links .mega__foots .mega__foot:first-child:hover { background: linear-gradient(100deg, #5a3df0, #1378e6 48%, #f03f8a); }
.nav__links .mega__item[aria-current="page"] { background: rgba(106, 77, 255, 0.09); }
.mobile-menu__tag { margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #fff; font-family: var(--font-mono); font-size: 11px; font-style: normal; letter-spacing: 0; vertical-align: 4px; }

/* The saved quote follows the visitor round the site */
.nav__quote {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  font-size: 13.5px; font-weight: 500; white-space: nowrap; animation: pop 0.5s var(--ease-out);
  transition: transform 0.35s var(--ease-out);
}
.nav__quote:hover { transform: translateY(-2px); }
.nav__quote[hidden] { display: none; }
.nav__quote .i { width: 17px; height: 17px; }
.nav__quote-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; color: #fff; background: var(--grad); font-size: 11.5px; }
.nav__quote-total { font-variant-numeric: tabular-nums; }

/* Pages cross-fade into each other (where the browser supports it); the nav and chat stay put */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
.chat { view-transition-name: site-chat; }
::view-transition-old(root) { animation: page-out 0.32s var(--ease) both; }
::view-transition-new(root) { animation: page-in 0.6s var(--ease-out) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(22px); } }

/* Page heroes (Services, Tech News) */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(64px, 9vw, 112px)) 0 clamp(40px, 6vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }
.crumbs a { transition: color 0.2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.page-hero__title { font-size: clamp(3.1rem, 7.6vw, 6.6rem); font-weight: 600; line-height: 0.95; letter-spacing: -0.058em; text-wrap: balance; }
.page-hero__title .sig { font-size: 1.2em; line-height: 0.8; }
.page-hero__lead { margin-top: 24px; max-width: 640px; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); }

/* A short "more on another page" band */
.section__more {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px;
  margin-top: clamp(40px, 5vw, 64px); padding: 20px 20px 20px 28px; border-radius: 26px;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
}
.section__more p { font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; letter-spacing: -0.02em; }

/* Filter chips (Tech News categories, admin) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button, .chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.62); color: var(--ink-2); font-size: 14px; font-weight: 500;
  transition: color 0.2s, background-color 0.25s, border-color 0.25s;
}
.chips button:hover { color: var(--ink); border-color: var(--line-3); }
.chips button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }

/* Loading placeholders */
.skeleton { position: relative; overflow: hidden; background: rgba(24, 18, 70, 0.06); border-radius: 12px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.btn--lg { --h: 58px; padding: 0 30px; font-size: 16px; }

@media (max-width: 1100px) and (min-width: 901px) {
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav__quote { height: 42px; padding: 0 12px; }
  .nav__quote-total { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .mobile-menu__sub { grid-template-columns: 1fr; }
  .section__more { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* =========================================================
   Tech News cards and generated covers (Home, Tech News, articles)
   ========================================================= */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { min-width: 0; }
.post-card__link { display: flex; flex-direction: column; height: 100%; padding: 10px; border-radius: 28px; color: inherit; }
.post-card__cover { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 20px; }
.post-card__cover .cover { position: absolute; inset: 0; transition: transform 1.1s var(--ease-out); }
.post-card__link:hover .post-card__cover .cover { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 12px 12px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--ink-3); font-size: 12.5px; }
.post-card__title { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.2; letter-spacing: -0.03em; text-wrap: balance; }
.post-card__excerpt { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; }
.post-card__more .i { width: 15px; height: 15px; transition: transform 0.4s var(--ease-out); }
.post-card__link:hover .post-card__more .i { transform: translate(3px, -3px); }
.post-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  color: var(--violet); background: rgba(106, 77, 255, 0.09); border: 1px solid rgba(106, 77, 255, 0.22);
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.post-chip[data-cat="flutter"] { color: #0f6fd6; background: rgba(31, 143, 255, 0.09); border-color: rgba(31, 143, 255, 0.25); }
.post-chip[data-cat="web"] { color: #3d2bd9; background: rgba(61, 43, 217, 0.08); border-color: rgba(61, 43, 217, 0.22); }
.post-chip[data-cat="ai"] { color: #c21d6c; background: rgba(255, 79, 154, 0.09); border-color: rgba(255, 79, 154, 0.25); }
.post-chip[data-cat="tutorials"] { color: #0b8f7f; background: rgba(18, 200, 192, 0.1); border-color: rgba(18, 200, 192, 0.28); }
.post-chip[data-cat="business"] { color: #b4560c; background: rgba(255, 154, 61, 0.12); border-color: rgba(255, 154, 61, 0.3); }

/* Generated cover art: three drifting colour pools under a pane of glass, with the category glyph */
.cover { position: relative; overflow: hidden; width: 100%; height: 100%; isolation: isolate; background: #f4f2ff; }
.cover--image img { width: 100%; height: 100%; object-fit: cover; }
.cover--art { background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 22%, #fff), color-mix(in srgb, var(--c3) 18%, #fff)); }
.cover__blob { position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(28px); opacity: 0.85; translate: -50% -50%; animation: cover-drift 14s ease-in-out infinite alternate; }
.cover__blob:nth-child(1) { left: var(--x1); top: var(--y1); background: var(--c1); }
.cover__blob:nth-child(2) { left: var(--x2); top: var(--y2); background: var(--c2); animation-delay: -5s; }
.cover__blob:nth-child(3) { left: var(--x3); top: var(--y3); width: 52%; background: var(--c3); animation-delay: -9s; }
@keyframes cover-drift { to { transform: translate(8%, -6%) scale(1.12); } }
.cover__grid { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 1px, transparent 1.6px); background-size: 18px 18px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }
.cover__pane {
  position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; border-radius: 28%;
  translate: -50% -50%; rotate: var(--rot);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 30px 50px -24px rgba(20, 12, 70, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.cover__glyph {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  color: #fff; font-family: var(--font-sans); font-weight: 700; font-size: clamp(2.2rem, 5.5vw, 4.4rem); letter-spacing: -0.06em; line-height: 1;
  text-shadow: 0 6px 24px rgba(20, 12, 70, 0.35); white-space: nowrap;
}

@media (max-width: 1000px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Closing slab: a call to action with the contact channels (Home, About, Our work…)
   ========================================================= */
.home-cta__inner { display: grid; justify-items: center; text-align: center; }
.home-cta__inner .section__lead { margin-inline: auto; }
.home-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.home-cta__channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 1180px; margin-top: clamp(40px, 6vw, 64px); text-align: left; }
.home-cta__channels .channel > a > span:last-child { font-size: 14.5px; }
.channel:nth-child(4) .channel__icon { background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 10px 24px -10px rgba(31, 143, 255, 0.9); }
@media (max-width: 1100px) { .home-cta__channels { grid-template-columns: 1fr 1fr; max-width: 760px; } }
@media (max-width: 640px) { .home-cta__channels { grid-template-columns: 1fr; max-width: 520px; } }

/* =========================================================
   Team: each person leans out of their own pane of coloured glass
   ========================================================= */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.member { --tone-a: rgba(106, 77, 255, 0.36); --tone-b: rgba(31, 143, 255, 0.24); --tone-c: rgba(255, 79, 154, 0.22);
  display: flex; flex-direction: column; padding: 10px; border-radius: 28px; scroll-margin-top: 110px; }
.member:nth-child(5n + 2) { --tone-a: rgba(31, 143, 255, 0.34); --tone-b: rgba(18, 200, 192, 0.24); --tone-c: rgba(106, 77, 255, 0.2); }
.member:nth-child(5n + 3) { --tone-a: rgba(255, 79, 154, 0.3); --tone-b: rgba(106, 77, 255, 0.24); --tone-c: rgba(255, 154, 61, 0.2); }
.member:nth-child(5n + 4) { --tone-a: rgba(18, 200, 192, 0.3); --tone-b: rgba(31, 143, 255, 0.26); --tone-c: rgba(106, 77, 255, 0.2); }
.member:nth-child(5n + 5) { --tone-a: rgba(255, 154, 61, 0.26); --tone-b: rgba(255, 79, 154, 0.24); --tone-c: rgba(106, 77, 255, 0.22); }
.member__photo { position: relative; aspect-ratio: 4 / 5; }
.member__photo::before { /* the pane */
  content: ""; position: absolute; inset: 15% 0 0 0; border-radius: 20px;
  background:
    radial-gradient(70% 60% at 86% 8%, var(--tone-a), transparent 70%),
    radial-gradient(70% 60% at 6% 96%, var(--tone-c), transparent 70%),
    radial-gradient(60% 50% at 10% 14%, var(--tone-b), transparent 70%),
    rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.member__photo::after { /* dot grid fading down the pane */
  content: ""; position: absolute; inset: 15% 0 0 0; border-radius: 20px; pointer-events: none;
  background-image: radial-gradient(circle, rgba(24, 18, 70, 0.18) 1px, transparent 1.5px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.member__photo img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  border-radius: 0 0 20px 20px; filter: drop-shadow(0 18px 24px rgba(46, 34, 120, 0.22));
  transform-origin: 50% 100%; transition: transform 0.8s var(--ease-out);
}
@media (hover: hover) { .member:hover .member__photo img { transform: scale(1.035) translateY(-6px); } }
.member__body { display: grid; gap: 8px; justify-items: start; padding: 20px 14px 14px; flex: 1; align-content: start; }
.member__role { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.member__role::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.member__name { font-size: clamp(22px, 2vw, 27px); letter-spacing: -0.045em; }
.member__bio { color: var(--ink-2); font-size: 15px; }
.member .tags { margin-top: 6px; }

/* An empty seat: the careers card at the end of the team */
.member--join { justify-content: space-between; border-style: dashed; border-color: var(--line-3); background: rgba(255, 255, 255, 0.34); }
.member--join .member__photo { display: grid; place-items: center; }
.member--join .member__photo::before { border-style: dashed; border-color: var(--line-2); background: radial-gradient(60% 50% at 50% 60%, rgba(106, 77, 255, 0.14), transparent 70%), rgba(255, 255, 255, 0.4); }
.member__seat { position: relative; z-index: 1; display: grid; place-items: center; width: 96px; height: 96px; margin-top: 15%; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 18px 36px -16px rgba(106, 77, 255, 0.8); transition: transform 0.6s var(--ease-out), background-color 0.4s; }
.member__seat .i { width: 34px; height: 34px; stroke-width: 1.6; }
@media (hover: hover) { .member--join:hover .member__seat { transform: rotate(90deg) scale(1.06); background: var(--violet); } }
.member--join .actions { margin-top: 10px; }

/* Home: the team in one strip */
.team-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.team-strip .member { padding: 8px; border-radius: 24px; color: inherit; }
.team-strip .member__photo::before, .team-strip .member__photo::after, .team-strip .member__photo img { border-radius: 0 0 17px 17px; }
.team-strip .member__photo::before, .team-strip .member__photo::after { border-radius: 17px; }
.team-strip .member__body { gap: 4px; padding: 14px 8px 8px; }
.team-strip .member__name { font-size: 19px; }
.team-strip .member__role { font-size: 10px; letter-spacing: 0.1em; }

@media (max-width: 1000px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(190px, 34%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; margin: -6px -4px 0; scrollbar-width: thin; }
  .team-strip > * { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .team-strip { grid-auto-columns: minmax(170px, 62%); }
}

/* =========================================================
   Phones: tighter rhythm, a two-column footer, and the chat button kept clear of sticky bars
   ========================================================= */
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
  .h2 { font-size: clamp(2.05rem, 9.4vw, 2.6rem); }
  .page-hero { padding-top: calc(var(--nav-h) + 52px); }
  .page-hero__title { font-size: clamp(2.6rem, 12.4vw, 3.6rem); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer__brand, .footer__grid > .footer__col:last-child { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .team-strip .member__name { font-size: 17px; line-height: 1.2; }
  .team-strip .member__role { font-size: 9.5px; letter-spacing: 0.06em; }
  .chat__nudge { max-width: min(250px, calc(100vw - 100px)); padding: 4px 4px 4px 12px; }
  .chat__nudge-text { font-size: 13px; }
}
