/* Self-hosted fonts: no third-party request before first paint */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: normal; src: url("fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-display: swap; }

/* ==============================================================
   styles.css — Usman Ahmed · Portfolio 2026
   1 Tokens  2 Base  3 Nav + menu  4 Hero  5 Proof  6 Manifesto
   7 Work stack  8 Skills receipt  9 Experience  10 Contact
   11 Footer  12 Overlays  13 Ask  14 Cursor  15 Responsive  16 Motion
   ============================================================== */

/* 1. TOKENS ---------------------------------------------------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --bg-3: #1a1a1d;
  --fg: #f2efe8;
  --fg-2: #c9c6bf;
  --mute: #86847e;
  --line: rgba(242, 239, 232, 0.1);
  --line-2: rgba(242, 239, 232, 0.2);
  --acc: #d4ff3a;          /* signal lime */
  --acc-rgb: 212, 255, 58;
  --acc-ink: #0a0a0b;      /* text on accent */
  --acc-text: #d4ff3a;     /* accent used as text */
  --net: 242, 239, 232;    /* canvas node colour (rgb) */
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f2efe8;
  --bg-2: #e9e5dc;
  --bg-3: #dfdbd1;
  --fg: #0d0d0e;
  --fg-2: #2e2d2a;
  --mute: #6c6a64;
  --line: rgba(13, 13, 14, 0.1);
  --line-2: rgba(13, 13, 14, 0.22);
  --acc: #d4ff3a;
  --acc-ink: #0d0d0e;
  --acc-text: #4a6b00;
  --net: 13, 13, 14;
  color-scheme: light;
}

/* 2. BASE ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.5s, color 0.5s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ol, ul { list-style: none; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute);
}
.sq { width: 7px; height: 7px; background: var(--acc); display: inline-block; }
.h2 {
  font-size: clamp(40px, 6vw, 92px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-top: 18px;
}
.h2 em, .hero__pitch em, .contact__big em, .manifesto em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex-shrink: 0; animation: ping 2.4s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(212, 255, 58, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(212, 255, 58, 0); }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 15px; font-weight: 500;
  transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--fg); }
.btn--acc { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.btn--acc:hover { border-color: var(--acc); box-shadow: 0 10px 30px -10px rgba(212, 255, 58, 0.6); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--mute); transition: color 0.2s, border-color 0.2s; }
.icon-btn:hover { color: var(--fg); }
.icon-btn--line { border: 1px solid var(--line-2); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg-2); }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

.progress { position: fixed; inset: 0 0 auto; height: 2px; background: var(--acc); transform-origin: 0 50%; transform: scaleX(0); z-index: 300; }

/* 3. NAV ------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--pad);
  transition: background-color 0.35s, border-color 0.35s, transform 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-color: var(--line);
}
.nav.hide { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.nav__mono {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--fg); color: var(--bg);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: -0.02em;
}
.nav__links { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.nav__links a { padding: 7px 16px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: background-color 0.2s, color 0.2s; }
.nav__links a:hover, .nav__links a.active { background: var(--fg); color: var(--bg); }
.nav__right { display: flex; align-items: center; gap: 6px; }
.nav__tldr {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: 12px; color: var(--fg-2);
  transition: border-color 0.2s, color 0.2s;
}
.nav__tldr:hover { border-color: var(--acc); color: var(--fg); }
.nav__cv { height: 38px; padding: 0 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; }
.i-moon { display: none; }
html[data-theme="light"] .i-sun { display: none; }
html[data-theme="light"] .i-moon { display: block; }
.nav__burger { display: none; width: 42px; height: 38px; border-radius: 999px; border: 1px solid var(--line-2); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { width: 16px; height: 1.5px; background: var(--fg); transition: transform 0.35s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 190;
  background: var(--bg);
  padding: calc(var(--nav-h) + 30px) var(--pad) 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  animation: menuIn 0.5s var(--ease) both;
}
.menu[hidden] { display: none; }
@keyframes menuIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-size: clamp(44px, 13vw, 72px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1;
  padding: 6px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px;
}
.menu nav a i { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--mute); letter-spacing: 0; }
.menu__foot { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--fg-2); }

/* 4. HERO ------------------------------------------------------ */
.hero {
  position: relative;
  height: 100svh; min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {   /* soft vignette so edges stay calm */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 40%, transparent 40%, var(--bg) 100%);
}
.hero__name {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 2vh);
  display: flex; flex-direction: column; align-items: center;
  font-size: clamp(96px, 21.5vw, 420px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.065em;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.hero__line { display: block; overflow: hidden; padding: 0.02em 0.04em 0.06em; }
.hero__word { display: inline-block; white-space: nowrap; }
.hero__word .ch { display: inline-block; animation: chUp 1.2s var(--ease) both; animation-delay: calc(0.1s + var(--i) * 0.05s); }
@keyframes chUp { from { transform: translateY(105%); } to { transform: none; } }
.hero__line--outline { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
html[data-theme="light"] .hero__line--outline { -webkit-text-stroke-width: 2px; }

.hero__me {
  position: absolute; bottom: 0; left: 50%;
  height: min(80svh, 960px);
  aspect-ratio: 900 / 1308;
  transform: translateX(-50%);
  z-index: 2;
  will-change: transform;
}
.hero__me img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 9%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 9%, #000 88%, transparent 100%);
  mask-composite: intersect;
  animation: meUp 1.5s 0.35s var(--ease) both;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}
html[data-theme="light"] .hero__me img { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.12)); }
@keyframes meUp { from { transform: translateY(14%); opacity: 0; } to { transform: none; opacity: 1; } }

.hero__intro {
  position: absolute; left: var(--pad); bottom: clamp(28px, 6vh, 64px);
  width: min(340px, 26vw);
  z-index: 3;
  animation: fadeUp 1s 0.9s var(--ease) backwards;
}
.hero__pitch { font-size: clamp(20px, 1.8vw, 27px); line-height: 1.22; letter-spacing: -0.02em; margin: 14px 0 22px; font-weight: 500; }
.hero__pitch em { color: var(--acc-text); font-size: 1.08em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 8px; }

.hero__status {
  position: absolute; right: var(--pad); bottom: clamp(28px, 6vh, 64px);
  width: min(300px, 24vw);
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 3;
  animation: fadeUp 1s 1.05s var(--ease) backwards;
}
.status__top { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.status__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.status__row span { color: var(--mute); font-family: var(--mono); font-size: 12px; }
.status__row b { font-weight: 500; text-align: right; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 3; display: none;
}

/* 5. PROOF ----------------------------------------------------- */
.proof { padding: clamp(70px, 10vw, 130px) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--line); }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.proof__item { padding: 0 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.proof__item + .proof__item { padding-left: 24px; border-left: 1px solid var(--line); }
.proof__item:nth-child(2) { transition-delay: 0.08s; }
.proof__item:nth-child(3) { transition-delay: 0.16s; }
.proof__item:nth-child(4) { transition-delay: 0.24s; }
.proof__item b { font-size: clamp(54px, 7vw, 108px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.85; }
.proof__item > span { color: var(--fg-2); font-size: 15px; max-width: 220px; }
.clients { display: flex; align-items: center; gap: 28px; margin-top: clamp(50px, 7vw, 90px); flex-wrap: wrap; }
.clients__lbl { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }
.clients__list { display: flex; flex-wrap: wrap; gap: 10px 36px; }
.clients__list li { font-size: clamp(22px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.035em; color: var(--fg-2); transition: color 0.25s; }
.clients__list li:hover { color: var(--fg); }

/* 6. MANIFESTO ------------------------------------------------- */
.manifesto { padding: clamp(90px, 14vw, 200px) 0; }
.manifesto__text {
  margin-top: 26px;
  font-size: clamp(28px, 4.1vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 1150px;
}
.manifesto__text .w { opacity: 0.16; transition: opacity 0.35s, color 0.35s; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__text .w.hl { color: var(--acc-text); font-family: var(--serif); font-style: italic; font-weight: 400; }

/* 7. WORK STACK ------------------------------------------------ */
.work { padding: 40px 0 clamp(60px, 8vw, 120px); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(40px, 6vw, 80px); }
.work__head .h2 em, .skills__head .h2 em { color: var(--acc-text); }
.work__note { max-width: 330px; color: var(--fg-2); font-size: 15px; }

.stack { display: flex; flex-direction: column; gap: 28px; }
.card {
  position: sticky;
  top: calc(var(--nav-h) + 18px + var(--i) * 12px);
  min-height: min(76svh, 720px);
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: clamp(24px, 3.5vw, 56px);
  padding: clamp(22px, 3vw, 44px);
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  transform-origin: 50% 0;
  will-change: transform;
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.6);
}
.card__info { display: flex; flex-direction: column; min-width: 0; }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.card__badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-weight: 500; }
.card__name { font-size: clamp(42px, 5.4vw, 84px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.92; margin: clamp(18px, 3vw, 36px) 0 12px; }
.card__pitch { font-size: clamp(17px, 1.4vw, 20px); color: var(--fg-2); line-height: 1.4; letter-spacing: -0.01em; }
.card__built { margin: 22px 0; display: flex; flex-direction: column; }
.card__built li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line); font-size: 14.5px; position: relative; color: var(--fg-2); }
.card__built li::before { content: "→"; position: absolute; left: 0; color: var(--acc-text); }
.card__foot { margin-top: auto; display: flex; flex-direction: column; gap: 18px; }
.card__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.card__shot {
  position: relative; min-width: 0;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  overflow: hidden;
  display: flex; flex-direction: column;
  align-self: stretch;
  cursor: none;
}
.card__chrome { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.card__chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.card__chrome span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__img { flex: 1; position: relative; overflow: hidden; min-height: 240px; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.card__shot:hover .card__img img { transform: scale(1.04); }
.card__img .fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(40px, 6vw, 90px); font-weight: 700; letter-spacing: -0.05em; color: var(--line-2); }

.card--cta { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); grid-template-columns: 1fr; place-items: start; align-content: space-between; }
.card--cta .card__top { color: rgba(10, 10, 11, 0.6); }
.card--cta .card__name { font-size: clamp(48px, 8vw, 130px); }
.card--cta .card__pitch { color: rgba(10, 10, 11, 0.75); max-width: 560px; }
.card--cta .btn { background: var(--acc-ink); color: var(--acc); border-color: var(--acc-ink); }

/* 8. SKILLS RECEIPT -------------------------------------------- */
.skills { padding: clamp(80px, 11vw, 160px) 0; border-top: 1px solid var(--line); }
.skills__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(40px, 5vw, 70px); }
.skills__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.skills__group + .skills__group { margin-top: 26px; }
.skills__group h3 { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.skills__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill {
  height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 15px; color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.skill:hover { border-color: var(--fg); color: var(--fg); transform: translateY(-2px); }
.skill[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.skill small { font-family: var(--mono); font-size: 12px; opacity: 0.6; }

.receipt { position: sticky; top: calc(var(--nav-h) + 30px); }
.receipt__paper {
  background: #f4f1ea; color: #111;
  padding: 26px 24px 22px;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
  position: relative;
  transform: rotate(1.2deg);
  transition: transform 0.5s var(--ease);
}
.receipt__paper::after {   /* torn edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(-45deg, transparent 6px, #f4f1ea 0) 0 0 / 12px 12px repeat-x,
              linear-gradient(45deg, transparent 6px, #f4f1ea 0) 0 0 / 12px 12px repeat-x;
}
.receipt:hover .receipt__paper { transform: rotate(0deg); }
.receipt.print .receipt__paper { animation: print 0.55s var(--ease); }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-12px) rotate(1.2deg); } to { clip-path: inset(0 0 -20px 0); } }
.receipt__head { display: flex; justify-content: space-between; font-size: 12px; color: #555; }
.receipt__skill { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; margin: 16px 0 10px; }
.receipt__rule { border-top: 1.5px dashed #9c9a94; margin: 12px 0; }
.receipt__lines li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 7px 0; font-size: 12.5px; line-height: 1.4; }
.receipt__lines li small { grid-column: 1 / -1; color: #666; font-size: 12px; }
.receipt__lines a { text-decoration: underline; text-underline-offset: 2px; }
.receipt__total { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; }
.receipt__bar {
  height: 40px; margin: 16px 0 8px;
  background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 9px, #111 9px 12px, transparent 12px 13px);
}
.receipt__thanks { text-align: center; font-size: 12px; color: #555; letter-spacing: 0.08em; }

/* 9. EXPERIENCE ------------------------------------------------ */
.exp { padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 150px); border-top: 1px solid var(--line); }
.exp__list { border-top: 1px solid var(--line); }
.exp__row {
  display: grid; grid-template-columns: 170px 1fr 220px; gap: 30px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.exp__row::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--acc);
  transition: width 0.6s var(--ease);
}
.exp__row:hover::before { width: 100%; }
.exp__when { font-size: 12.5px; color: var(--mute); padding-top: 8px; display: flex; gap: 10px; align-items: baseline; }
.exp__when .live { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); display: inline-block; }
.exp__what h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.exp__what h3 span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--mute); margin-left: 6px; letter-spacing: -0.01em; }
.exp__what p { margin-top: 12px; color: var(--fg-2); max-width: 700px; font-size: 15.5px; }
.exp__what b { color: var(--fg); font-weight: 600; }
.exp__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-content: flex-start; padding-top: 6px; }
.exp__tags span { font-family: var(--mono); font-size: 12px; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--mute); }

.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; }
.edu__card { padding: 28px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.edu__card span { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }
.edu__card h4 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; margin: 10px 0 6px; line-height: 1.2; }
.edu__card p { color: var(--fg-2); font-size: 14.5px; }
.edu__card b { color: var(--acc-text); font-weight: 600; }

/* 10. CONTACT -------------------------------------------------- */
.contact { padding: clamp(80px, 11vw, 160px) 0 clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); }
.contact__big { font-size: clamp(56px, 10.5vw, 180px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.88; margin: 22px 0 clamp(40px, 6vw, 80px); }
.contact__big em { color: var(--acc-text); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--fg-2); max-width: 440px; letter-spacing: -0.01em; }
.contact__mail { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.contact__mail a { font-size: clamp(19px, 2vw, 28px); font-weight: 500; letter-spacing: -0.02em; background: linear-gradient(var(--acc), var(--acc)) 0 100% / 0 2px no-repeat; transition: background-size 0.5s var(--ease); padding-bottom: 2px; word-break: break-all; }
.contact__mail a:hover { background-size: 100% 2px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 26px; color: var(--fg-2); font-size: 15px; }
.contact__links a:hover { color: var(--fg); }
.form { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-2); border-radius: 24px; background: var(--bg-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--mute); }
.form input, .form textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 6px 0 12px; font-size: 16px; color: var(--fg); outline: none; resize: vertical;
  transition: border-color 0.2s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--mute); opacity: 0.7; }
.form input:focus, .form textarea:focus { border-color: var(--acc); }
.form .btn { align-self: flex-start; }
.form__hint { font-size: 12px; color: var(--mute); margin-top: -10px; }

/* 11. FOOTER --------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-top: 22px; overflow: hidden; }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.footer__row a:hover { color: var(--fg); }
.bigname { padding-top: clamp(30px, 5vw, 60px); }
.bigname__word {
  display: flex; justify-content: center;
  font-size: clamp(100px, 27vw, 520px);
  font-weight: 800; line-height: 0.74; letter-spacing: -0.075em;
  color: var(--bg-3);
  user-select: none;
  margin-bottom: -0.05em;
}
.bigname__word .l { display: inline-block; transition: transform 0.6s var(--ease), color 0.4s; transform: translateY(calc(var(--lift, 0) * -1px)); }
.bigname__word .l.hot { color: var(--acc); }

/* 12. OVERLAYS ------------------------------------------------- */
.x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--mute); display: grid; place-items: center; background: var(--bg-2); }
.x:hover { color: var(--fg); border-color: var(--fg); }
.x--sm { position: static; width: 30px; height: 30px; margin-left: auto; font-size: 12px; }
.drawer { position: fixed; inset: 0; z-index: 400; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade 0.3s both; }
@keyframes fade { from { opacity: 0; } }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: var(--bg-2); border-left: 1px solid var(--line); padding: 64px 34px 34px; overflow-y: auto; animation: slideIn 0.55s var(--ease) both; }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer__panel h3 { font-size: 36px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 16px 0 26px; }
.tldr div { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.tldr dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); padding-top: 3px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.45s var(--ease); z-index: 500; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 13. ASK ------------------------------------------------------ */
.ask {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 14px;
  border-radius: 999px; background: var(--fg); color: var(--bg);
  font-size: 14px; font-weight: 500;
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.ask:hover { transform: translateY(-3px); }
.ask.away { opacity: 0; pointer-events: none; transform: translateY(20px); }
.ask__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(212, 255, 58, 0.25); }
.askp { position: fixed; right: 20px; bottom: 78px; z-index: 150; width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100svh - 120px)); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; overflow: hidden; animation: pop 0.4s var(--ease) both; }
.askp[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.askp__head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.askp__head strong { display: block; font-size: 14.5px; }
.askp__head span { font-size: 12px; color: var(--mute); }
.askp__avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--acc); }
.askp__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transform: scale(1.6) translateY(14%); }
.askp__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.askp__empty { margin-top: auto; }
.askp__empty p { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 16px; }
.askp__sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.askp__sugg button { font-size: 12.5px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg-2); }
.askp__sugg button:hover { border-color: var(--acc); color: var(--fg); }
.msg { max-width: 88%; font-size: 14px; line-height: 1.5; padding: 10px 14px; border-radius: 16px; white-space: pre-line; }
.msg--me { align-self: flex-end; background: var(--acc); color: var(--acc-ink); border-bottom-right-radius: 4px; }
.msg--bot { align-self: flex-start; background: var(--bg-3); border-bottom-left-radius: 4px; }
.askp__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.askp__form input { flex: 1; min-width: 0; background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; font-size: 14px; outline: none; }
.askp__form input:focus { border-color: var(--acc); }
.askp__form button { width: 40px; height: 40px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); font-weight: 700; }
.askp__note { font-size: 12px; color: var(--mute); text-align: center; padding: 0 12px 10px; }

/* 14. CURSOR (desktop only) ------------------------------------ */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 250;
  width: 86px; height: 86px; margin: -43px 0 0 -43px;
  border-radius: 50%; background: var(--acc); color: var(--acc-ink);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  pointer-events: none;
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}
.cursor.on { transform: scale(1); }

/* 15. RESPONSIVE ----------------------------------------------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero__intro { width: min(320px, 30vw); }
  .hero__status { width: min(270px, 28vw); }
  .exp__row { grid-template-columns: 130px 1fr; }
  .exp__tags { grid-column: 2; justify-content: flex-start; }
  .skills__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__cv { display: none; }
  /* hero becomes a vertical composition */
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 16px); }
  .hero__name { position: relative; top: auto; font-size: 25.5vw; }
  .hero__me { position: relative; left: auto; transform: none; margin: -21vw auto 0; height: auto; width: min(78vw, 440px); }
  .hero__intro, .hero__status { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: 0 var(--pad); }
  .hero__intro { margin-top: -8px; padding-top: 22px; border-top: 1px solid var(--line); }
  .hero__status { margin-top: 22px; margin-bottom: 40px; }
  .hero::after { background: radial-gradient(140% 60% at 50% 25%, transparent 40%, var(--bg) 100%); }

  .proof__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .proof__item:nth-child(3) { padding-left: 0; border-left: 0; }

  .work__head, .skills__head { flex-direction: column; align-items: flex-start; }
  .card { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; border-radius: 22px; }
  .card__shot { order: -1; }
  .card__img { aspect-ratio: 16 / 10; min-height: 0; }
  .skills__grid { grid-template-columns: 1fr; }
  .receipt { position: relative; top: auto; max-width: 440px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --nav-h: 60px; }
  .nav__name { display: none; }
  .nav__tldr { height: 36px; padding: 0 12px; font-size: 12px; }
  .proof__item { padding-right: 12px; }
  .proof__item + .proof__item { padding-left: 14px; }
  .proof__item > span { font-size: 13.5px; }
  .clients { gap: 14px; }
  .exp__row { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .exp__tags { grid-column: auto; }
  .edu { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .tldr div { grid-template-columns: 1fr; gap: 2px; }
  .drawer__panel { padding: 60px 22px 28px; }
  .ask { right: 14px; bottom: 14px; height: 40px; padding: 0 14px 0 12px; font-size: 13px; }
  .ask__label { display: none; }
  .askp { right: 10px; left: 10px; width: auto; bottom: 68px; }
  .card__actions .btn { flex: 1; justify-content: center; }
}

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

/* 16. REDUCED MOTION ------------------------------------------
   With Reduce Motion on, fades, reveals and hovers stay; large
   movement (smooth scroll, parallax, tilt, grain jitter) is removed
   in main.js and here. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .hero__name, .hero__me { transform: none !important; }
}

/* ==============================================================
   17. MOTION LAYER — award-style details
   ============================================================== */

/* Smooth scroll (Lenis) housekeeping */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Film grain */
.grain {
  position: fixed; inset: -50%; z-index: 260; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(4) infinite;
}
html[data-theme="light"] .grain { opacity: 0.09; mix-blend-mode: multiply; }
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

/* Small blend cursor dot (desktop) */
.dotc {
  position: fixed; left: 0; top: 0; z-index: 255; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), opacity 0.3s;
  opacity: 0;
}
.dotc.on { opacity: 1; }
.dotc.big { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.dotc.hide { opacity: 0; }
@media (hover: none), (pointer: coarse) { .dotc { display: none; } }

/* Headings: words rise out of a mask, slightly rotated in 3D */
[data-words] .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-words] .wd > span { display: inline-block; transform-origin: 50% 100%; }
.js [data-words]:not(.in) .wd > span { transform: translateY(110%) rotateX(-70deg); opacity: 0; }
.js [data-words] .wd > span { transition: transform 1.1s var(--ease), opacity 0.8s var(--ease); transition-delay: calc(var(--d) * 45ms); }

/* Rolling link text */
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; height: 1.25em; }
.roll > span { display: inline-block; text-shadow: 0 1.25em currentColor; transition: transform 0.5s var(--ease); }
a:hover > .roll > span, button:hover > .roll > span, .roll-host:hover .roll > span { transform: translateY(-1.25em); }

/* Magnetic elements move smoothly back */
.mag { transition: transform 0.45s var(--ease); }
.mag.pull { transition: transform 0.15s linear; }

/* Screenshot reveal: clip-path unmask + inner zoom + scroll parallax */
.card__img { clip-path: inset(0 0 0 0); transition: clip-path 1.3s cubic-bezier(0.76, 0, 0.24, 1); }
.js .card:not(.shown) .card__img { clip-path: inset(100% 0 0 0); }
.card__img img { transform: translateY(var(--py, 0px)) scale(var(--sc, 1.12)); transition: transform 1.6s var(--ease); }
.js .card:not(.shown) .card__img img { --sc: 1.35; }
.card__shot:hover .card__img img { --sc: 1.17; }
.card__shot:hover .card__img img { transform: translateY(var(--py, 0px)) scale(var(--sc)); }

/* 3D tilt + glare on screenshots */
.card__shot { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease); transform-style: preserve-3d; }
.card__shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.16), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.card__shot:hover::after { opacity: 1; }

/* Card text stagger when a card enters */
.js .card:not(.shown) .card__built li, .js .card:not(.shown) .chips span { opacity: 0; transform: translateY(14px); }
.card__built li, .card .chips span { transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--k, 0) * 60ms + 250ms); }

/* Proof + client stagger */
.js .clients:not(.in) .clients__list li { opacity: 0; transform: translateY(20px); }
.clients__list li { transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), color 0.25s; }
.clients__list li:nth-child(2) { transition-delay: 0.08s; } .clients__list li:nth-child(3) { transition-delay: 0.16s; } .clients__list li:nth-child(4) { transition-delay: 0.24s; }

/* Receipt lines print one by one */
.receipt.print .receipt__lines li { animation: lineIn 0.45s var(--ease) both; animation-delay: calc(var(--k) * 70ms + 200ms); }
@keyframes lineIn { from { opacity: 0; transform: translateX(-8px); } }

/* Experience rows: index number + slide on hover */
.exp__what h3 { transition: transform 0.5s var(--ease); }
.exp__row:hover .exp__what h3 { transform: translateX(10px); }

/* Hero scroll-out */
.hero__intro, .hero__status { transition: opacity 0.2s linear; }

/* Footer revealed from beneath the page (curtain) */
.hero, .proof, .manifesto, .work, .skills, .exp, .contact { position: relative; z-index: 1; background: var(--bg); }
.contact { border-radius: 0 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.6); border-bottom: 1px solid var(--line); }
.footer { position: sticky; bottom: 0; z-index: 0; border-top: 0; background: var(--bg-2); padding-top: 96px; margin-top: -48px; }
.footer .bigname__word { color: color-mix(in srgb, var(--fg) 13%, var(--bg-2)); }
.footer .footer__row { padding-top: 30px; }

/* Theme switch: circular reveal (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: themeIn 0.75s cubic-bezier(0.76, 0, 0.24, 1); }
@keyframes themeIn { from { clip-path: circle(0 at var(--tx, 90%) var(--ty, 4%)); } to { clip-path: circle(150vmax at var(--tx, 90%) var(--ty, 4%)); } }

@media (max-width: 860px) {
  .card__shot { transform: none; }
}


/* 18. PERSONAL TOUCHES ----------------------------------------- */
.now { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 1150px; }
.now__lbl { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 4px; }
.now ul { display: flex; flex-direction: column; gap: 10px; }
.now li { font-size: clamp(16px, 1.4vw, 19px); color: var(--fg-2); display: flex; gap: 12px; align-items: baseline; }
.now li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex-shrink: 0; transform: translateY(-2px); }
.now li b { color: var(--fg); font-weight: 600; }

.footer__info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 30px; align-items: start; }
.gh__lbl { display: block; font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.gh li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.gh li a { font-weight: 500; }
.gh li a:hover { color: var(--acc-text); }
.gh li .mono { font-size: 12px; color: var(--mute); white-space: nowrap; }
.colophon { grid-column: 2; font-size: 14px; color: var(--mute); max-width: 420px; justify-self: end; line-height: 1.6; }
.gh[hidden] + .colophon { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 760px) {
  .now { grid-template-columns: 1fr; gap: 12px; }
  .footer__info { grid-template-columns: 1fr; }
  .colophon { grid-column: auto; justify-self: start; }
}

/* 19. MONOGRAM — U and A share one stem; drawn like a pen stroke */
.nav__mark { width: 34px; height: 29px; overflow: visible; color: var(--fg); transition: transform 0.45s var(--ease); }
.nav__mark .mk { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.nav__mark .mk--bar { stroke: var(--acc); transform-origin: 14px 15px; transition: transform 0.5s var(--ease); }
html[data-theme="light"] .nav__mark .mk--bar { stroke: var(--acc-text); }
.js .nav__mark .mk--u { animation: draw 0.9s 0.15s var(--ease) both; }
.js .nav__mark .mk--a { animation: draw 0.9s 0.55s var(--ease) both; }
.js .nav__mark .mk--bar { animation: draw 0.5s 1.05s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.nav__brand:hover .mk--bar { transform: scaleX(1.35); }

/* 20. No status dots — quieter, plainer cues */
.dot, .ask__dot, .exp__when .live { display: none !important; }
.now li::before { display: none; }
.now li b { min-width: 92px; display: inline-block; }
.status__top { gap: 0; }
.ask { padding: 0 18px; }

/* 21. INK MARKS — pen-stroke drawing instead of blinking dots */
.ink { width: 18px; height: 16px; flex-shrink: 0; overflow: visible; margin-right: 9px; }
.ink path, .ink circle { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ink--ua path { stroke-width: 3.4; }
.ink--clock { width: 15px; height: 15px; margin-right: 8px; }
.ink--clock circle, .ink--clock path { stroke-width: 1.7; }
.ink .ink__acc { stroke: var(--acc-text); }
.status__top .ink { width: 22px; height: 19px; margin-right: 10px; }
.ask .ink { margin-right: 8px; }
.ask .ink .ink__acc { stroke: var(--acc); }
html:not([data-theme="light"]) .ask .ink .ink__acc { stroke: #5b7d00; }
.js .ink:not(.drawn) path, .js .ink:not(.drawn) circle { stroke-dashoffset: 1; }
.ink.draw path, .ink.draw circle { animation: draw 0.75s var(--ease) both; }
.ink.draw > :nth-child(2) { animation-delay: 0.3s; }
.ink.draw > :nth-child(3) { animation-delay: 0.65s; animation-duration: 0.45s; }

/* "Now" list: a short green stroke draws in front of each line */
.now li::before { display: block !important; content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--acc-text); transform: scaleX(0) translateY(-4px); transform-origin: 0 50%; transition: transform 0.7s var(--ease); flex-shrink: 0; }
.now.in li::before { transform: scaleX(1) translateY(-4px); }
.now.in li:nth-child(2)::before { transition-delay: 0.15s; }
.now.in li:nth-child(3)::before { transition-delay: 0.3s; }

/* 22. Looping monogram before section labels — draws, holds, erases, repeats */
.ualoop { width: 17px; height: 15px; flex-shrink: 0; overflow: visible; color: var(--fg); }
.ualoop path { fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: uaLoop 4.8s var(--ease) infinite both; }
.ualoop path:nth-child(2) { animation-delay: 0.25s; }
.ualoop .ualoop__bar { stroke: var(--acc-text); animation-delay: 0.5s; }
@keyframes uaLoop {
  0%        { stroke-dashoffset: 1; }
  28%, 72%  { stroke-dashoffset: 0; }
  100%      { stroke-dashoffset: -1; }
}

/* 23. In-development tag on project cards */
.card__dev { font-style: normal; display: inline-block; margin-right: 10px; padding: 4px 9px; border: 1px dashed var(--line-2); border-radius: 999px; color: var(--fg-2); }

/* 24. Smaller portrait — present, not dominant */
.hero__me { height: min(54svh, 600px); }
@media (max-width: 860px) {
  .hero__me { width: min(52vw, 280px); margin-top: -12vw; }
  .hero__intro { margin-top: -4px; }
}

/* 25. Outline name uses a static Geist cut: the variable font's overlapping
   contours show through -webkit-text-stroke (stray marks inside the H). */
@font-face { font-family: "Geist Static"; src: url("fonts/Geist-Black.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Geist Static"; src: url("fonts/Geist-Bold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
.hero__line--outline, .bigname__word { font-family: "Geist Static", var(--sans); }
@media (max-width: 860px) {
  .hero__me { height: auto; margin-top: -10vw; }
}

/* 26. QA fixes ---------------------------------------------------- */
/* Layout stability: the footer name reserves its own height before the font loads */
.bigname__word { height: 0.74em; }
/* Photo: smaller, at the right-hand edge of the hero */
.hero__me { left: auto; right: var(--pad); transform: none; height: min(50svh, 540px); }
.hero__status { right: calc(var(--pad) + min(50svh, 540px) * 0.69 + 24px); }
@media (max-width: 1100px) {
  .hero__me { height: min(42svh, 420px); }
  .hero__status { right: calc(var(--pad) + min(42svh, 420px) * 0.69 + 16px); }
}
@media (max-width: 860px) {
  .hero__me { right: auto; width: min(46vw, 240px); margin: -8vw var(--pad) 0 auto; }
  .hero__status { right: auto; }
}
/* Screenshots: show the whole frame, never crop the sides */
.card__shot { align-self: start; }
.card__img { flex: none; aspect-ratio: 1600 / 966; min-height: 0; }
/* Comfortable tap targets for text links */
.contact__links a, .footer__row a, .footer__col a { display: inline-block; padding: 6px 0; }

/* 27. Chatbot on phones: a compact sheet, not a full-screen takeover */
@media (max-width: 600px) {
  .askp { left: auto; right: 10px; width: min(340px, calc(100vw - 20px)); height: min(430px, 58svh); bottom: 64px; border-radius: 18px; }
  .askp__empty p { font-size: 20px; margin-bottom: 12px; }
  .askp__sugg button { padding: 7px 10px; }
  .askp__log { padding: 12px; }
}

/* 28. "Open to roles" sits on the shirt as a liquid-glass card (desktop);
       phones put the portrait back in the centre, in front of the name */
.hero__status {
  --glass: rgba(16, 16, 18, 0.46);
  right: calc(var(--pad) + min(50svh, 540px) * 0.69 / 2 - 140px);
  width: 280px;
  bottom: clamp(24px, 5vh, 56px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(220px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0.06)),
    var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 22px rgba(255, 255, 255, 0.05),
    0 24px 60px -18px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.hero__status::before {   /* specular rim — the bright edge iOS glass has */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.hero__status .status__row { border-top-color: rgba(255, 255, 255, 0.12); }
html[data-theme="light"] .hero__status {
  --glass: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 60px -20px rgba(0, 0, 0, 0.25);
}
html[data-theme="light"] .hero__status .status__row { border-top-color: rgba(0, 0, 0, 0.08); }
@media (max-width: 1100px) {
  .hero__status { right: calc(var(--pad) + min(42svh, 420px) * 0.69 / 2 - 130px); width: 260px; }
}
@media (max-width: 860px) {
  .hero__status { right: auto; width: auto; }
  .hero__me { right: auto; width: min(64vw, 320px); margin: -17vw auto 0; }
}
/* 28b. glass card refinements */
.hero__status { --glass: rgba(14, 14, 16, 0.56); bottom: clamp(92px, 13vh, 130px); }
.hero__status .status__row span { color: rgba(242, 239, 232, 0.72); }
html[data-theme="light"] .hero__status .status__row span { color: rgba(13, 13, 14, 0.62); }
.status__top .ink { flex: 0 0 22px; margin-right: 12px; }
@media (max-width: 860px) { .hero__status { bottom: auto; } }

/* 29. Live preview frames */
.card__frame { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 0.8s var(--ease); background: transparent; pointer-events: none; }
.card__frame.ready { opacity: 1; }
.card__frame iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.card__live { margin-left: auto; font: 500 12px var(--mono); color: var(--acc-text); letter-spacing: 0.06em; text-transform: uppercase; }

/* 30. "LIVE" only appears once the site is actually running in the frame */
.card__live { opacity: 0; transition: opacity 0.4s; }
.card__live.on { opacity: 1; }

/* 32. About: intro on the left, quick facts on the right */
.about2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about2 .manifesto__text { font-size: clamp(26px, 2.9vw, 44px); line-height: 1.16; max-width: none; }
.facts { position: sticky; top: calc(var(--nav-h) + 32px); padding: 26px 26px 22px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--bg-2); }
.facts__list > div { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts__list > div:first-child { border-top: 0; padding-top: 0; }
.facts__list dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); padding-top: 2px; }
.facts__list dd b { color: var(--acc-text); font-weight: 600; }
.facts .now { margin-top: 18px; padding-top: 18px; grid-template-columns: 1fr; gap: 12px; max-width: none; }
.facts .now li { font-size: 15px; }
.facts .now li b { min-width: 0; margin-right: 2px; }
@media (max-width: 900px) {
  .about2 { grid-template-columns: 1fr; gap: 36px; }
  .facts { position: relative; top: auto; }
}

/* 33. Inputs at 16px on phones so iOS doesn't zoom on focus */
@media (max-width: 860px) { input, textarea, select { font-size: 16px !important; } }
.facts .now li { display: block; position: relative; padding-left: 26px; line-height: 1.45; }
.facts .now li::before { position: absolute; left: 0; top: 0.72em; }
.facts .now li b { display: inline; min-width: 0; margin-right: 0; }
.facts.in .now li::before { transform: scaleX(1) translateY(-4px); }
.facts.in .now li:nth-child(2)::before { transition-delay: 0.15s; }
.facts.in .now li:nth-child(3)::before { transition-delay: 0.3s; }

/* 34. Safari stability ---------------------------------------------------
   - Footer is back in normal flow: Safari mis-paints a sticky footer that sits
     under relatively-positioned sections (it showed through mid-page).
   - Grain is a viewport-sized static texture with no blend mode: the animated
     200%-viewport blended layer exhausted Safari's tile memory (blank areas).
   - Cards no longer each force their own compositing layer. */
.footer { position: relative; bottom: auto; z-index: auto; margin-top: 0; padding-top: 40px; }
.hero, .proof, .manifesto, .work, .skills, .exp, .contact { z-index: auto; }
.contact { box-shadow: none; }
.grain { inset: 0; animation: none !important; mix-blend-mode: normal !important; opacity: 0.045; }
html[data-theme="light"] .grain { opacity: 0.06; }
.card { will-change: auto; }

/* 35. Contact form sends directly */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__opt { color: var(--mute); font-weight: 400; }
.form .btn[disabled] { opacity: 0.6; pointer-events: none; }
#formStatus a { text-decoration: underline; }