/* Portfolio v4 (2026-11-06). Desktop first: 1440 is the design width, 1280 and 1920 checked; tablet and phone only
   must not break (a later pass polishes them). Every animation is off under prefers-reduced-motion. */
:root {
  --night: #060A14;
  --night-2: #0B1326;
  --night-3: #121D38;
  --night-ink: #EAF0FF;
  --night-ink-2: #C3CEE6;
  --paper: #F4F6FA;
  --paper-2: #E9EEF6;
  --surface: #FFFFFF;
  --ink: #0D1626;
  --ink-2: #4A5668;
  --line: #D6DDE8;
  --accent: #2F5BFF;
  --accent-2: #1E44E0;
  --accent-ink: #FFFFFF;
  --cyan: #5BE1FF;
  --violet: #8C6BFF;
  --claude: #D97757;
  --done: #0E7A4E;
  --done-bg: #DDF4E8;
  --demo: #2148D8;
  --demo-bg: #E3E9FF;
  --can: #7A5A00;
  --can-bg: #FBF0CC;
  --f: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fd: "Unbounded", "Geologica", system-ui, sans-serif;
  --fm: "JetBrains Mono", ui-monospace, monospace;
  --t-body: 17px;
  --t-small: 16px;
  --lh: 1.55;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --r-xl: 36px;
  --wrap: 1240px;
  --gut: 40px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 2px rgba(13, 22, 38, .06), 0 12px 32px -12px rgba(13, 22, 38, .18);
  --shadow-lg: 0 2px 4px rgba(13, 22, 38, .06), 0 30px 60px -24px rgba(13, 22, 38, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: var(--t-body);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 28px -10px rgba(47, 91, 255, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(47, 91, 255, .9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1d2a40; transform: translateY(-1px); }
.btn-glass {
  color: var(--night-ink); background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.btn-glass:hover { background: rgba(255,255,255,.14); }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-2); text-decoration: none; min-height: 44px; }
.textlink svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--night-ink);
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.top-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.top.is-solid { background: rgba(6, 10, 20, .95); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; margin-right: auto; }
.brand-mono {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font: 800 14px/1 var(--fd);
  background: linear-gradient(135deg, var(--accent), var(--violet)); color: #fff; box-shadow: 0 6px 20px -6px rgba(47,91,255,.9);
}
.brand-name { font-size: 16px; letter-spacing: .01em; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: 16px; color: var(--night-ink-2); transition: color .2s, background-color .2s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.langs { position: relative; }
.langs summary {
  list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font-size: 16px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.langs summary::-webkit-details-marker { display: none; }
.langs svg { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 8px; border-radius: var(--r-m);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.langs li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 16px; min-height: 44px; }
.langs li a:hover { background: var(--paper); }
.langs li a[aria-current] { font-weight: 700; background: var(--paper-2); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--night-ink); isolation: isolate; background: var(--night);
  padding: 120px 0 0; min-height: max(860px, 100svh);
}
/* full-bleed background, his cut-out in front (the talpys cover pattern): every layer covers the whole hero */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .layer { position: absolute; inset: 0; will-change: transform; }
.hero-bg .layer-far, .hero-bg .layer-mid { inset: -3%; }
.layer-far {
  background: radial-gradient(1100px 760px at 72% 40%, #152c6c 0%, rgba(21,44,108,0) 62%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  opacity: 0; animation: fadeIn 1.4s .1s ease forwards;
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.g1 { width: 560px; height: 560px; left: -160px; top: 140px; background: radial-gradient(circle, #2F5BFF 0%, transparent 70%); }
.g2 { width: 520px; height: 520px; right: 6%; top: -140px; background: radial-gradient(circle, #8C6BFF 0%, transparent 70%); opacity: .42; animation-duration: 22s; }
@keyframes drift { from { translate: 0 0; } to { translate: 80px 60px; } }
.grid-floor {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 340px; overflow: hidden;
  transform: perspective(520px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
/* the grid scrolls by translate (compositor only), not by background-position */
.grid-floor::before {
  content: ""; position: absolute; inset: -56px 0 0 0;
  background-image: linear-gradient(rgba(91,225,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(91,225,255,.13) 1px, transparent 1px);
  background-size: 56px 56px; animation: floor 4s linear infinite;
}
@keyframes floor { to { translate: 0 56px; } }
/* off screen or in a hidden tab every hero animation waits (app.js sets the class) */
.hero.is-idle *, .hero.is-idle *::before, .hero.is-idle *::after { animation-play-state: paused !important; }
/* the copy pool on the left and the fade into block 2 */
.hero-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,10,20,.88) 0%, rgba(6,10,20,.62) 32%, rgba(6,10,20,0) 56%),
    linear-gradient(0deg, var(--night-2) 0%, rgba(11,19,38,.85) 7%, rgba(11,19,38,0) 22%);
}
.hero-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; background: linear-gradient(to top, var(--night-2) 0%, rgba(11,19,38,.7) 45%, rgba(11,19,38,0) 100%); }
.pbox { position: absolute; right: max(0px, calc((100vw - var(--wrap)) / 2 - 30px)); bottom: -24px; width: 700px; height: calc(100% - 64px); }
.halo {
  position: absolute; left: 12%; right: 12%; top: 14%; height: 64%; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,91,255,.55) 0%, rgba(140,107,255,.22) 45%, transparent 70%); filter: blur(36px);
  animation: halo 7s ease-in-out infinite;
}
@keyframes halo { 0%, 100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.08; } }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; min-height: calc(max(860px, 100svh) - 120px); }
.hero-text { position: relative; z-index: 3; padding-bottom: 64px; }
.role { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: 18px; color: var(--night-ink-2); margin-bottom: 26px; opacity: 0; animation: fadeUp .7s .1s var(--ease) forwards; }
.role .dot { color: var(--cyan); margin: 0 2px; }
.cc-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  color: #fff; font-weight: 600; font-size: 16px;
  background: linear-gradient(135deg, rgba(217,119,87,.28), rgba(217,119,87,.08)); box-shadow: inset 0 0 0 1px rgba(217,119,87,.55);
}
.cc-spark { width: 24px; height: 24px; color: var(--claude); filter: drop-shadow(0 0 8px rgba(217,119,87,.7)); transform-origin: 50% 50%; animation: sparkIn 1.1s .5s var(--ease) both, sparkSpin 3.2s 1.6s var(--ease) infinite; }
@keyframes sparkSpin { 0% { transform: rotate(0) scale(1); } 35% { transform: rotate(180deg) scale(1.18); } 60%, 100% { transform: rotate(180deg) scale(1); } }
.cc-badge { animation: ccGlow 3.2s 1.6s ease-in-out infinite; }
@keyframes ccGlow { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(217,119,87,.55), 0 0 0 rgba(217,119,87,0); } 35% { box-shadow: inset 0 0 0 1px rgba(217,119,87,.9), 0 0 22px rgba(217,119,87,.45); } }
@keyframes sparkIn { from { transform: scale(0) rotate(-200deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }

.name { font-family: var(--fd); font-weight: 800; font-size: clamp(56px, 7.3vw, 116px); line-height: .98; letter-spacing: -0.035em; margin-bottom: 30px; }
.nm-line { display: block; white-space: nowrap; }
.nm-2 { padding-left: .55em; }
.ch {
  display: inline-block; opacity: 0; transform: translateY(.55em) rotate(6deg); filter: blur(10px);
  animation: chIn .9s calc(.25s + var(--i) * 55ms) var(--ease) forwards;
  background: linear-gradient(100deg, #fff 30%, #9fc1ff 50%, #fff 70%); background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes chIn { to { opacity: 1; transform: none; filter: blur(0); } }
.js .name.is-shine .ch { animation: chIn .9s calc(.25s + var(--i) * 55ms) var(--ease) forwards, shine 2.4s calc(var(--i) * 40ms) ease-in-out 1; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }

.lead { font-size: 26px; line-height: 1.35; font-weight: 600; color: #fff; max-width: 34ch; margin-bottom: 16px; letter-spacing: -0.01em; opacity: 0; animation: fadeUp .8s .95s var(--ease) forwards; }
.sub { font-size: 18px; color: var(--night-ink-2); max-width: 52ch; margin-bottom: 34px; opacity: 0; animation: fadeUp .8s 1.1s var(--ease) forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; opacity: 0; animation: fadeUp .8s 1.25s var(--ease) forwards; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 17px; color: #d5ddef; opacity: 0; animation: fadeUp .8s 1.4s var(--ease) forwards; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--cyan); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* his cut-out and the live event chips (app.js cycles them) */
.me-cut {
  position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; translate: -50% 0;
  filter: drop-shadow(0 0 40px rgba(47,91,255,.35)) drop-shadow(-14px 0 30px rgba(91,225,255,.12));
  opacity: 0; animation: meIn 1.2s .45s var(--ease) forwards;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes meIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.agent {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 16px;
  font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(14,24,48,.58); box-shadow: inset 0 0 0 1px rgba(160,190,255,.28), 0 14px 34px rgba(0,0,0,.35);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  animation: bob 6s ease-in-out infinite;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .agent { opacity: 0; transform: translateY(12px) scale(.95); }
.js .agent.is-on { opacity: 1; transform: none; }
.agent i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(91,225,255,.18), 0 0 14px var(--cyan); }
.agent.is-on i { animation: ping 1.2s ease-out 1; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(91,225,255,.7), 0 0 14px var(--cyan); } 100% { box-shadow: 0 0 0 14px rgba(91,225,255,0), 0 0 14px var(--cyan); } }
.slot-1 { left: 0; top: 12%; }
.slot-2 { right: -4%; top: 30%; animation-delay: -1.5s; }
.slot-2 i { background: #b9a6ff; box-shadow: 0 0 0 4px rgba(140,107,255,.2), 0 0 14px var(--violet); }
.slot-3 { left: -2%; top: 62%; animation-delay: -3s; }
.slot-3 i { background: #7dffb5; box-shadow: 0 0 0 4px rgba(125,255,181,.2), 0 0 14px #7dffb5; }
.slot-4 { right: 0; top: 78%; animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

/* iPhone (17 Pro proportions: 402 x 874 pt screen scaled to 290 px, thin bezel, Dynamic Island 126 x 37 pt) */
.iphone-wrap { position: relative; z-index: 6; margin: 40px 0 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.iphone-wrap figcaption { font-size: 16px; line-height: 1.45; color: var(--ink-2); text-align: center; max-width: 300px; }
.phone-cta { min-width: 220px; }
.iphone {
  position: relative; width: 304px; height: 644px; border-radius: 58px; padding: 7px;
  background: linear-gradient(150deg, #3b4f7a 0%, #1b2742 22%, #2c3d63 48%, #141d33 74%, #43588a 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 0 0 3px #0b1222, 0 0 0 1px rgba(0,0,0,.6), 0 60px 90px -40px rgba(6,10,20,.75), 0 0 80px -20px rgba(47,91,255,.4);
  transform-style: preserve-3d;
}
.iphone::before { content: ""; position: absolute; left: -2.5px; top: 132px; width: 2.5px; height: 30px; border-radius: 2px 0 0 2px; background: #22304f; box-shadow: 0 50px 0 0 #22304f, 0 94px 0 0 #22304f; }
.iphone::after { content: ""; position: absolute; right: -2.5px; top: 170px; width: 2.5px; height: 72px; border-radius: 0 2px 2px 0; background: #22304f; }
.iphone-screen {
  position: relative; height: 100%; border-radius: 51px; overflow: hidden; background: #fff;
}
.island {
  position: absolute; z-index: 5; left: 50%; top: 9px; transform: translateX(-50%); width: 91px; height: 27px; border-radius: 14px; background: #000;
  display: flex; align-items: center; justify-content: flex-end; padding: 0 9px; overflow: hidden;
  transition: width .55s var(--ease), height .55s var(--ease), border-radius .55s var(--ease), top .55s var(--ease);
}
.island-cam { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3a5a, #05070c 60%); flex: none; }
.island-note { position: absolute; left: 10px; right: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity .25s; }
.island-ava { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.island-text { display: flex; flex-direction: column; min-width: 0; color: #fff; line-height: 1.25; }
.island-text b { font-size: 13px; }
.island-text i { font-style: normal; font-size: 12px; color: #b9c2d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island.is-open { width: 262px; height: 62px; border-radius: 31px; }
.island.is-open .island-note { opacity: 1; transition-delay: .25s; }
.island.is-open .island-cam { opacity: 0; }
.status { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; height: 45px; padding: 0 30px 0 36px; font-size: 14.5px; font-weight: 600; color: #111; letter-spacing: -.01em; }
.status-r { display: flex; gap: 5px; align-items: center; }
.status-r i { display: block; background: #111; }
.sig { width: 16px; height: 10px; clip-path: polygon(0 100%, 22% 100%, 22% 70%, 0 70%, 0 100%, 26% 100%, 26% 50%, 48% 50%, 48% 100%, 52% 100%, 52% 28%, 74% 28%, 74% 100%, 78% 100%, 78% 0, 100% 0, 100% 100%); }
.wifi { width: 14px; height: 10px; clip-path: polygon(50% 100%, 0 30%, 15% 12%, 50% 0, 85% 12%, 100% 30%); }
.bat { width: 24px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1.4px #111; background: linear-gradient(90deg, #111 0 78%, transparent 78%) !important; background-clip: content-box !important; padding: 2px; }
/* the print shop widget fills the screen under the status bar; its own styles are scoped under .pc (pc/chat.css) */
.phone-chat { position: absolute; z-index: 3; left: 0; right: 0; top: 45px; bottom: 0; padding-bottom: 16px; background: #fff; }
.phone-chat .pc { --pc-size: 13.5px; border-radius: 0; box-shadow: none; }

/* ---------- shared section bits ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fm); font-size: 16px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
h2 { font-family: var(--fd); font-weight: 700; font-size: clamp(32px, 3.3vw, 48px); letter-spacing: -0.03em; line-height: 1.1; }
.sec-lead { font-size: 19px; color: var(--ink-2); max-width: 62ch; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 16px; line-height: 1.1; padding: 9px 13px; border-radius: 999px; background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; padding: 6px 12px; border-radius: 999px; letter-spacing: .02em; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-done { color: var(--done); background: var(--done-bg); }
.pill-demo { color: var(--demo); background: var(--demo-bg); }
.pill-can { color: var(--can); background: var(--can-bg); }

/* reveal (JS adds .js on <html>; without JS everything is visible) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--k, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- hiring ---------- */
.hire { position: relative; z-index: 5; padding: 0 0 40px; background: linear-gradient(180deg, var(--night-2) 0, #1b2747 90px, #8e9ab4 240px, var(--paper) 380px); }
.hire-card { margin-top: 40px; }
.hire-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; }
.hire-card {
  display: grid; grid-template-columns: 400px 1fr; gap: 28px; align-items: center; padding: 28px 48px 28px 8px;
  border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lg);
}
.hire-art { aspect-ratio: 1; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.hire-img { width: 100%; height: 100%; object-fit: cover; }
.hire h2 { font-size: clamp(24px, 2vw, 30px); margin-bottom: 16px; }
.hire-exp { font-size: 18px; font-weight: 600; color: var(--ink); padding: 12px 16px; border-radius: 14px; background: var(--paper); box-shadow: inset 3px 0 0 var(--accent); margin-bottom: 14px; }
.hire-text > p:not(.kicker):not(.hire-exp) { color: var(--ink-2); margin-bottom: 18px; max-width: 64ch; }
.hire-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }

/* ---------- outcomes ---------- */
.outcomes { padding: 110px 0 64px; }
.out-head { max-width: 900px; margin-bottom: 56px; }
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; counter-reset: pain; }
.pain {
  display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: center; padding: 22px 30px 22px 22px;
  border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pain-art { border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: var(--paper-2); }
.pain-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pain:hover .pain-img { transform: scale(1.05); }
.pain-q { font-family: var(--fd); font-weight: 700; font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 12px; }
.pain-a { color: var(--ink-2); margin-bottom: 8px; }

/* ---------- work ---------- */
.work { padding: 40px 0 20px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.work-intro { padding: 40px 0 10px; max-width: var(--wrap); }
.work-sec { padding: 70px 0 60px; }
.work-sec + .work-sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 2.7vw, 40px); }
.sec-art { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); transform: rotate(2deg); }
.sec-art-img { width: 100%; height: 100%; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; grid-column: span 6; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-l { grid-column: span 12; flex-direction: row; }
.card-wide { grid-column: span 12; flex-direction: row; }
.card-wide .card-visual { flex: 1.1; }
.card-wide .card-body { flex: 1; justify-content: center; }
.card-l .card-visual { flex: 1.25; }
.card-l .card-body { flex: 1; padding: 40px 44px; justify-content: center; }
.card-visual { position: relative; padding: 22px 22px 0; background: linear-gradient(160deg, #e7edff, #f1ecff 60%, #fdf1ec); }
.card-l .card-visual { padding: 34px; display: flex; align-items: center; }
.card-visual-art { padding: 0; }
.card-art { width: 100%; height: 100%; max-height: 520px; object-fit: cover; object-position: 50% 30%; }
.card-visual-phone { display: flex; justify-content: center; padding-top: 26px; overflow: hidden; height: 330px; }
.card-wide .card-visual-phone { height: 420px; }
.card-body { display: flex; flex-direction: column; gap: 14px; padding: 26px 30px 30px; flex: 1; }
.card-top { display: flex; gap: 8px; }
.card h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; }
.card-l h3 { font-size: 28px; }
.card-body > p { color: var(--ink-2); }
.fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--ink-2) !important; font-size: 16px; padding: 12px 16px; border-radius: 14px; background: var(--paper); }
.fact b { font-family: var(--fd); font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.browser { display: block; width: 100%; border-radius: 14px 14px 0 0; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(13,22,38,.08), 0 20px 40px -20px rgba(13,22,38,.4); text-decoration: none; }
.card-l .browser { border-radius: 14px; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #f1f3f7; border-bottom: 1px solid #e3e7ee; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-url { margin-left: 12px; flex: 1; min-width: 0; height: 22px; line-height: 22px; padding: 0 10px; border-radius: 6px; background: #fff; font-family: var(--fm); font-size: 13px; color: #5a6475; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-view { display: block; aspect-ratio: 3 / 2; overflow: hidden; } /* the shots are cut to 3:2 in img.py */
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .8s var(--ease); transform-origin: top left; }
.browser:hover .browser-view img { transform: scale(1.05); }

.mini-phone { position: relative; display: block; width: 230px; height: 470px; border-radius: 40px; padding: 8px; background: linear-gradient(145deg, #4b4f57, #1d1f24 35%, #3a3d44 60%, #15171b); box-shadow: 0 30px 50px -20px rgba(13,22,38,.55); transition: transform .5s var(--ease); }
.card:hover .mini-phone { transform: translateY(-12px); }
.mini-island { position: absolute; z-index: 2; left: 50%; top: 16px; width: 70px; height: 20px; border-radius: 12px; background: #000; transform: translateX(-50%); }
.mini-screen { display: block; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; }
.mini-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.minor { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.minor-item { padding: 22px 24px; border-radius: var(--r-m); background: rgba(255,255,255,.65); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.minor-item h3 { font-size: 18px; }
.minor-item p { color: var(--ink-2); font-size: 16px; }
.can { margin-top: 28px; padding: 22px 26px; border-radius: var(--r-m); border: 1.5px dashed #d9c78b; background: rgba(251,240,204,.35); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.can-h { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.can .chips li { background: #fff; }
.sec-cta { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; border-radius: var(--r-l); background: var(--ink); color: #fff; }
.sec-cta p { font-size: 19px; font-weight: 500; max-width: 60ch; }
.sec-cta .btn-dark { background: #fff; color: var(--ink); }
.sec-cta .btn-dark:hover { background: #e9eefc; }

/* ---------- how ---------- */
.how { padding: 120px 0; background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.how::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -400px; transform: translateX(-50%); background: radial-gradient(circle, rgba(47,91,255,.28), transparent 65%); }
.how .kicker { color: var(--cyan); }
.how .sec-lead { color: var(--night-ink-2); }
.how-head { position: relative; max-width: 860px; margin-bottom: 60px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.step { position: relative; padding: 16px 16px 28px; border-radius: var(--r-l); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.step-art { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 22px; background: var(--night-3); }
.step-img { width: 100%; height: 100%; object-fit: cover; }
.step-n { position: absolute; left: 14px; top: 14px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font: 800 20px/1 var(--fd); color: #fff; background: linear-gradient(135deg, var(--accent), var(--violet)); box-shadow: 0 8px 20px -6px rgba(47,91,255,.9); }
.step h3 { font-size: 22px; padding: 0 10px; margin-bottom: 8px; color: #fff; }
.step p { padding: 0 10px; color: var(--night-ink-2); }
.how-proof { position: relative; margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 30px; border-radius: var(--r-l); background: rgba(91,225,255,.08); box-shadow: inset 0 0 0 1px rgba(91,225,255,.3); }
.how-proof p { font-size: 19px; max-width: 70ch; }
.how-proof .btn-dark { background: #fff; color: var(--ink); }

/* ---------- contact ---------- */
.contact { position: relative; padding: 120px 0; background: radial-gradient(900px 500px at 85% 40%, #dfe6ff, transparent 70%), var(--paper); }
.anchor { position: absolute; top: 0; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.contact h2 { font-size: clamp(36px, 4vw, 58px); }
.start-steps { counter-reset: s; margin: 28px 0 34px; display: grid; gap: 12px; }
.start-steps li { counter-increment: s; display: flex; align-items: center; gap: 14px; font-size: 18px; }
.start-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font: 700 16px/1 var(--fd); color: var(--accent-2); background: var(--demo-bg); }
.contact-art { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.contact-img { width: 100%; }
.cbtns { display: grid; gap: 12px; }
.cbtns-inline { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 26px; }
.cbtn {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; text-decoration: none; min-height: 64px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cbtn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--accent), 0 12px 24px -14px rgba(47,91,255,.6); }
.cbtn > svg { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 12px; color: #fff; }
.cbtn span { display: flex; flex-direction: column; min-width: 0; }
.cbtn b { font-size: 16px; }
.cbtn i { font-style: normal; font-size: 16px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbtn-tg > svg { background: #229ED9; }
.cbtn-wa > svg { background: #25D366; }
.cbtn-mail > svg { background: var(--ink); }
.cbtn-li > svg { background: #0A66C2; padding: 10px; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--night-ink-2); padding: 34px 0; font-size: 16px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot-in p { display: flex; align-items: center; gap: 10px; }
.foot-spark { width: 18px; height: 18px; color: var(--claude); }
.foot-langs { display: flex; gap: 6px; }
.foot-langs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 44px; border-radius: 999px; text-decoration: none; }
.foot-langs a:hover { background: rgba(255,255,255,.08); color: #fff; }
.foot-langs svg { width: 20px; height: 14px; border-radius: 2px; }

/* ---------- modals ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: visible; color: var(--ink); }
.modal::backdrop { background: rgba(6,10,20,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .35s var(--ease); }
.modal[open]::backdrop { animation: fadeIn .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-in { position: relative; width: 480px; max-width: 100%; padding: 30px; border-radius: 30px; background: var(--surface); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.modal-x { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.modal-x svg { width: 20px; height: 20px; }
.modal-x:hover { background: var(--paper-2); }
.modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding-right: 40px; }
.modal-ava { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: linear-gradient(135deg, #2F5BFF, #8C6BFF); flex: none; }
.modal-head h2 { font-size: 26px; }
.modal-head p { color: var(--ink-2); font-size: 16px; margin-top: 4px; }
.cbtns-modal .cbtn { min-height: 68px; }
.copy-mail { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--paper); cursor: pointer; font-size: 16px; font-weight: 600; }
.copy-mail svg { width: 18px; height: 18px; }
.modal-note { margin-top: 14px; font-size: 16px; color: var(--ink-2); }

.modal-chat { width: 440px; }
.pchat { position: relative; display: flex; flex-direction: column; height: min(720px, calc(100dvh - 32px)); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.pchat .modal-x { z-index: 5; top: 10px; right: 10px; }
.pchat-box { flex: 1; min-height: 0; }
.pchat-box .pc { --pc-size: 16px; }
.pchat-note, .pchat-alt { padding: 0 18px; font-size: 16px; line-height: 1.4; color: var(--ink-2); background: #fff; }
.pchat-note { padding-top: 10px; border-top: 1px solid #e4e6eb; }
.pchat-alt { padding-bottom: 14px; }
.pchat-alt a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--accent-2); }
.pchat-alt svg { width: 14px; height: 14px; }
/* the global :focus-visible box would square off the widget's pill input, chips and send button */
.pc .pc-input:focus-visible { outline: none; border-radius: 999px; }
.pc .pc-chip:focus-visible { border-radius: 999px; outline-offset: 2px; }
.pc .pc-send:focus-visible { border-radius: 50%; outline-offset: 2px; }

/* ---------- 1920: let the hero breathe ---------- */
@media (min-width: 1700px) {
  :root { --wrap: 1400px; }
  .pbox { width: 780px; }
}

/* ---------- below desktop: keep it from breaking (polished in a later pass) ---------- */
@media (max-width: 1380px) {
  .pbox { width: 620px; right: 0; }
  .slot-2, .slot-4 { right: 4%; }
}

@media (max-width: 1180px) {
  :root { --gut: 28px; }
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 40px; }
  .hero-grade { background: linear-gradient(90deg, rgba(6,10,20,.9) 0%, rgba(6,10,20,.55) 70%, rgba(6,10,20,.3) 100%), linear-gradient(0deg, var(--night-2) 0%, rgba(11,19,38,0) 16%); }
  .pbox { width: 520px; right: -60px; opacity: .55; }
  .layer-chips { display: none; }
  .hire-grid { grid-template-columns: 1fr; }
  .iphone-wrap { margin-top: 10px; }
  .hire-card { grid-template-columns: 1fr; padding: 24px; }
  .hire-art { max-width: 320px; }
  .pains { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-art { display: none; }
  .card, .card-l, .card-wide { grid-column: span 12; }
  .card-l, .card-wide { flex-direction: column; }
  .minor { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .sec-cta, .how-proof { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  :root { --gut: 16px; }
  .brand-name { display: none; }
  .top-in { gap: 10px; }
  .hero { padding-top: 96px; }
  .name { font-size: 50px; }
  .nm-2 { padding-left: 0; }
  .lead { font-size: 21px; }
  .pbox { width: 380px; right: -110px; opacity: .4; }
  .pain { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .card-l .card-body { padding: 26px; }
  .modal-chat { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ch, .role, .lead, .sub, .hero-cta, .hero-hire, .hero-facts, .agent, .layer-far { opacity: 1 !important; filter: none !important; transform: none; }
  .me-cut { opacity: 1 !important; transform: none; }
  .js .agent { opacity: 1 !important; transform: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .browser:hover .browser-view img { transform: none; }
}

/* round 2: contacts printed in the hiring card, the hero line for employers */
.hire-contact { margin-top: 14px; font-size: 16px; color: var(--ink-2); }
.hire-contact a { color: var(--accent-2); font-weight: 600; }
.hero-hire { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 22px; font-size: 17px; font-weight: 600; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; opacity: 0; animation: fadeUp .8s 1.3s var(--ease) forwards; }
.hero-hire:hover { border-color: #fff; }
.hero-hire svg { width: 18px; height: 18px; }
