/* ============================================================
   Ricky Docto — Web Developer & Digital Systems Specialist
   Design system + component styles
   ============================================================ */

/* ---------- Fonts (self-hosted Inter, variable) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg-0: #05070d;
  --bg-1: #080b12;
  --bg-2: #0b1020;
  --surface: rgba(15, 21, 40, 0.55);
  --surface-solid: #0c1120;
  --surface-hover: rgba(22, 30, 56, 0.6);

  --line: rgba(148, 163, 255, 0.12);
  --line-strong: rgba(148, 163, 255, 0.26);

  --text: #eef2ff;
  --text-soft: #c6cfe8;
  --muted: #93a0c0;
  --muted-2: #64708f;

  --violet: #8b5cf6;
  --blue: #4f7cff;
  --sky: #38bdf8;
  --pink: #ec4899;
  --green: #34d399;

  --grad: linear-gradient(100deg, #a78bfa 0%, #6366f1 40%, #3b82f6 75%, #38bdf8 100%);
  --grad-pink: linear-gradient(100deg, #a78bfa 0%, #818cf8 45%, #ec4899 130%);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: 1400px;
}

.section {
  position: relative;
  padding-block: clamp(84px, 11vw, 140px);
}

section[id],
div[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--grad);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-head.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head.section-head--center .eyebrow::before {
  display: none;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 20px;
  max-width: 620px;
}

.section-head--center p {
  margin-inline: auto;
}

.h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-top: 16px;
}

.h2 .line {
  display: block;
}

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient--soft {
  background: var(--grad-pink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .text-gradient,
  .text-gradient--soft {
    color: transparent;
  }
}

/* ---------- Background field ---------- */
.bg-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

.glow--violet {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 65%);
}

.glow--blue {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.42), transparent 65%);
}

.glow--pink {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.32), transparent 65%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease);
  will-change: transform;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, #7c3aed, #4f46e5 50%, #2563eb);
  background-size: 160% 100%;
  box-shadow: 0 10px 34px -12px rgba(99, 102, 241, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 90% 0;
  box-shadow: 0 16px 42px -12px rgba(99, 102, 241, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(15, 21, 40, 0.5);
  color: var(--text-soft);
}

.btn--ghost:hover {
  border-color: rgba(148, 163, 255, 0.5);
  background: rgba(24, 32, 60, 0.6);
  transform: translateY(-2px);
  color: #fff;
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn--ghost .arrow-down {
  transition: transform 0.25s var(--ease);
}

.btn--ghost:hover .arrow-down {
  transform: translateY(3px);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 7, 13, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.8);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.monogram {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.monogram__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.monogram:hover .monogram__img {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgba(99, 102, 241, 0.7);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__menu > a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__menu > a:hover {
  color: var(--text);
  background: rgba(148, 163, 255, 0.08);
}

.nav__menu > a.is-active {
  color: var(--text);
}

.nav__menu-cta {
  display: none;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.availability .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

.availability .dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.5);
  animation: pulse-ring 2.4s ease-out infinite;
}

.nav__contact {
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.nav__contact:hover {
  border-color: rgba(148, 163, 255, 0.5);
  background: rgba(148, 163, 255, 0.08);
}

.nav__toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 21, 40, 0.5);
}

.nav__toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease),
    top 0.3s var(--ease);
}

.nav__toggle span:nth-child(1) {
  top: 15px;
}

.nav__toggle span:nth-child(2) {
  top: 20px;
}

.nav__toggle span:nth-child(3) {
  top: 25px;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 92px));
  padding-bottom: clamp(30px, 5vw, 60px);
  overflow: hidden;
}

.hero .glow--violet {
  top: -120px;
  left: -140px;
}

.hero .glow--blue {
  top: 40px;
  right: -160px;
  opacity: 0.4;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__content {
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 21, 40, 0.4);
  margin-bottom: 30px;
}

.hero__eyebrow .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
}

.hero__title {
  font-size: clamp(42px, 5.6vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 26px;
}

.hero__title .row {
  display: block;
}

.hero__copy {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.hero__status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
}

/* Hero media */
.hero__media {
  position: relative;
}

.hero__media-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0b1020, #070a14);
  box-shadow: 0 40px 90px -40px rgba(99, 102, 241, 0.35);
}

.hero__media-wrap::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: radial-gradient(70% 60% at 50% 0%, rgba(139, 92, 246, 0.25), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero__img {
  position: relative;
  width: 100%;
  height: clamp(420px, 52vw, 620px);
  object-fit: cover;
  object-position: top center;
  -webkit-mask-image: linear-gradient(#000 76%, transparent 100%);
  mask-image: linear-gradient(#000 76%, transparent 100%);
}

.hero__media-glow {
  position: absolute;
  inset: auto -30px -40px -30px;
  height: 240px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(99, 102, 241, 0.35), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__availability-chip {
  position: absolute;
  left: -18px;
  bottom: 96px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(11, 16, 32, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}

.hero__availability-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
}

/* Terminal card */
.terminal {
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: min(320px, 82vw);
  border-radius: var(--radius-sm);
  background: rgba(8, 11, 20, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  padding-bottom: 16px;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.terminal__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.terminal__bar i:nth-child(1) {
  background: #f47174;
}

.terminal__bar i:nth-child(2) {
  background: #f5b565;
}

.terminal__bar i:nth-child(3) {
  background: #4ade80;
}

.terminal__bar span {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-left: 8px;
  letter-spacing: 0.03em;
}

.terminal__body {
  padding: 16px 18px 4px;
  font-family: "SF Mono", ui-monospace, "Menlo", "Consolas", monospace;
  font-size: 12.5px;
  line-height: 1.9;
}

.terminal__cmd {
  color: var(--muted);
}

.terminal__cmd .prompt {
  color: var(--green);
}

.terminal__cmd .cmd-text {
  color: var(--text-soft);
}

.terminal__line {
  display: flex;
  gap: 8px;
  color: var(--text-soft);
}

.terminal__line .check {
  color: var(--green);
}

/* Signature decoration */
.hero__signature {
  position: absolute;
  left: -46px;
  top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  opacity: 0.8;
  transform: rotate(-4deg);
  pointer-events: none;
}

.hero__signature .sig-words {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(198, 207, 232, 0.55);
}

.hero__signature .sig-name {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(198, 207, 232, 0.72);
  line-height: 1.1;
}

.hero__signature .sig-stroke {
  width: 96px;
  height: 10px;
  margin-top: 2px;
  opacity: 0.6;
}

/* ---------- Stats bar ---------- */
.stats {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.55), rgba(8, 11, 18, 0.55));
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  position: relative;
  padding: clamp(30px, 4vw, 48px) clamp(20px, 2.5vw, 36px);
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat .stat-num {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat .stat-num .suffix {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .stat-label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat .stat-stat {
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--text-soft);
}

/* ---------- Services ---------- */
.services {
  background: var(--bg-1);
}

.services .glow--pink {
  top: -160px;
  right: -120px;
  opacity: 0.28;
}

.services__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 20% 0%, rgba(139, 92, 246, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(148, 163, 255, 0.38);
  box-shadow: 0 30px 60px -28px rgba(99, 102, 241, 0.4);
  background: var(--surface-hover);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.service-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.16), rgba(37, 99, 235, 0.14));
  color: var(--sky);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.service-card h3 {
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.service-card .sc-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.service-card .sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 255, 0.05);
}

/* ---------- Process ---------- */
.process-wrap {
  position: relative;
}

.process {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process__step {
  flex: 0 0 auto;
  width: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.process__node {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(15, 21, 40, 0.6));
  color: var(--sky);
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.process__node svg {
  width: 22px;
  height: 22px;
}

.process__step:hover .process__node {
  box-shadow: 0 0 26px -4px rgba(139, 92, 246, 0.55);
  transform: translateY(-2px);
}

.process__step small {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}

.process__edge {
  flex: 1;
  min-width: 26px;
  height: 2px;
  margin-top: 27px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.55), rgba(56, 189, 248, 0.55), transparent);
  background-size: 220% 100%;
  animation: edge-flow 2.8s linear infinite;
  opacity: 0.7;
}

/* ---------- Projects ---------- */
.projects {
  background: var(--bg-1);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.project-card {
  grid-column: span 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.project-card--wide {
  grid-column: span 3;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(148, 163, 255, 0.4);
  box-shadow: 0 34px 70px -30px rgba(99, 102, 241, 0.45);
}

.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1330, #070a14);
}

.shot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.shot__art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.shot--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(90% 90% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(90% 90% at 50% 40%, #000 30%, transparent 75%);
}

.shot--placeholder::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 65%);
  filter: blur(18px);
}

.shot__initial {
  position: relative;
  z-index: 2;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

.shot__hint {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 20, 0.7);
}

.shot__hint i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.9;
}

.project-card__body {
  padding: clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
}

.project-card__body h3 {
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.project-card__body p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 20px;
  flex: 1;
}

.project-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.metric {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 255, 0.05);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.project-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.project-card__links .project-card__link {
  color: var(--text-soft);
}

.project-card__link .arrow {
  color: var(--blue);
  transition: transform 0.25s var(--ease);
}

.project-card:hover .project-card__link {
  color: #fff;
}

.project-card:hover .project-card__link .arrow {
  transform: translateX(4px);
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.about__media {
  position: relative;
}

.about__media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0b1020, #070a14);
  box-shadow: 0 40px 90px -40px rgba(99, 102, 241, 0.35);
}

.about__media-frame img {
  width: 100%;
  height: clamp(380px, 46vw, 560px);
  object-fit: cover;
  object-position: top center;
}

.about__media::before {
  content: "";
  position: absolute;
  inset: -40px -40px auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 65%);
  filter: blur(40px);
  z-index: -1;
}

.about__copy h2 {
  margin-top: 14px;
  margin-bottom: 26px;
}

.about__copy p {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 18px;
  max-width: 620px;
}

.about__location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 255, 0.05);
  margin-top: 8px;
}

.about__location svg {
  width: 16px;
  height: 16px;
  color: var(--sky);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  border-left: 1px solid var(--line);
  margin-left: 10px;
  padding-left: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 46px);
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * (clamp(28px, 4vw, 44px) + 10px) + 1px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.18);
  transform: translateX(calc(50% - 2px));
}

.timeline__item.is-current::before {
  border-color: var(--green);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.16), 0 0 18px rgba(52, 211, 153, 0.5);
}

.timeline__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.timeline__years {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sky);
  text-transform: uppercase;
}

.timeline__current {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
}

.timeline__item h3 {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.timeline__item p {
  color: var(--muted);
  font-size: 15px;
  max-width: 640px;
}

.timeline__focus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ---------- AI tools ---------- */
.ai {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}

.ai__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.ai__wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.ai__copy p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 18px;
  max-width: 560px;
}

.ai__tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ai-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.ai-tag svg {
  width: 20px;
  height: 20px;
  color: var(--sky);
  flex-shrink: 0;
}

.ai-tag:hover {
  border-color: rgba(148, 163, 255, 0.4);
  transform: translateY(-3px);
}

/* ---------- Toolbox ---------- */
.toolbox__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tool-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(24px, 2.6vw, 32px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.tool-group:hover {
  border-color: rgba(148, 163, 255, 0.35);
  transform: translateY(-4px);
}

.tool-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.tool-group__head svg {
  width: 20px;
  height: 20px;
  color: var(--violet);
}

.tool-group__head h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.tool-group__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--bg-1);
}

.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.t-card:last-child {
  grid-column: 1 / -1;
}

.t-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(24px, 2.6vw, 34px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.t-card:hover {
  transform: translateY(-5px);
  border-color: rgba(148, 163, 255, 0.36);
}

.t-card__stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
}

.t-card__stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.t-card__quote {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.7;
  flex: 1;
}

.t-card__quote::before {
  content: "\201C";
  display: block;
  font-size: 42px;
  line-height: 0.6;
  margin-bottom: 14px;
  color: rgba(139, 92, 246, 0.6);
  font-family: Georgia, serif;
}

.t-card__person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.t-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}

.t-card__avatar--fallback {
  display: grid;
  place-items: center;
  color: var(--sky);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.2), rgba(37, 99, 235, 0.15));
  font-weight: 700;
  font-size: 15px;
}

.t-card__person strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.t-card__person span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- Contact / CTA ---------- */
.contact {
  overflow: hidden;
}

.contact .glow--violet {
  left: 50%;
  top: -260px;
  transform: translateX(-50%);
  width: 720px;
  height: 620px;
  opacity: 0.45;
}

.contact__panel {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-0));
  padding: clamp(36px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.9);
}

.contact__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(60% 80% at 80% 0%, rgba(99, 102, 241, 0.16), transparent 60%);
  pointer-events: none;
}

.contact__left h2 {
  margin-top: 14px;
  margin-bottom: 22px;
}

.contact__left > p {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 520px;
  margin-bottom: 32px;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(148, 163, 255, 0.04);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact__row:hover {
  border-color: rgba(148, 163, 255, 0.38);
  transform: translateX(4px);
}

.contact__row .c-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.16), rgba(37, 99, 235, 0.14));
  color: var(--sky);
}

.contact__row .c-icon svg {
  width: 18px;
  height: 18px;
}

.contact__row small {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted-2);
  margin-bottom: 2px;
}

.contact__row strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  word-break: break-word;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-0);
  padding: clamp(40px, 6vw, 64px) 0 40px;
}

.footer__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 300px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__nav h4,
.footer__social h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0 0 12px;
}

.footer__nav a,
.footer__social a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer__nav a:hover {
  color: var(--text);
  padding-left: 6px;
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__social a:hover {
  color: var(--text);
  padding-left: 6px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted-2);
}

.footer__bottom .monogram-sm {
  color: var(--muted);
}

/* ---------- Case study ---------- */
.cs-hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(30px, 4vw, 50px);
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 34px;
  transition: color 0.2s var(--ease);
}

.cs-back:hover {
  color: var(--text);
}

.cs-back .back-arrow {
  transition: transform 0.2s var(--ease);
}

.cs-back:hover .back-arrow {
  transform: translateX(-4px);
}

.cs-title {
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-top: 18px;
}

.cs-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-top: 16px;
}

.cs-hero__shot {
  position: relative;
  margin-top: clamp(36px, 5vw, 56px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0d1330, #070a14);
  aspect-ratio: 21 / 9;
  display: grid;
  place-items: center;
}

.cs-hero__shot .shot__initial {
  font-size: clamp(64px, 10vw, 140px);
}

.cs-hero__shot .shot__hint {
  position: absolute;
}

.cs-section {
  padding-block: clamp(48px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.cs-section__grid {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}

.cs-section__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
}

.cs-section__body h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cs-section__body p {
  color: var(--muted);
  font-size: 16px;
  max-width: 680px;
}

.cs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
}

.cs-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.cs-list li .check {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.cs-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cs-result {
  padding: 26px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.cs-result strong {
  display: block;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cs-result span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cs-gallery .shot {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.cs-gallery .shot .shot__initial {
  font-size: 34px;
}

.cs-next {
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cs-next small {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.cs-next strong {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cs-next .btn {
  margin-top: 10px;
}

/* ---------- Resume page ---------- */
.resume-hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 92px));
  padding-bottom: clamp(24px, 3vw, 40px);
}

.resume-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.resume-hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-top: 14px;
}

.resume-section {
  padding-block: clamp(36px, 4vw, 52px);
  border-top: 1px solid var(--line);
}

.resume-section h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}

.resume-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding-block: 22px;
}

.resume-row + .resume-row {
  border-top: 1px solid var(--line);
}

.resume-row .r-period {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  padding-top: 4px;
}

.resume-row h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.resume-row p {
  color: var(--muted);
  font-size: 15px;
  max-width: 720px;
}

.resume-print {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 21, 40, 0.5);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.resume-print:hover {
  border-color: rgba(148, 163, 255, 0.5);
  background: rgba(24, 32, 60, 0.6);
}

/* ---------- Reveal animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Keyframes ---------- */
@keyframes pulse-ring {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes edge-flow {
  from {
    background-position: 220% 0;
  }
  to {
    background-position: -220% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr 0.9fr;
    gap: 44px;
  }

  .hero__title {
    font-size: clamp(38px, 5.6vw, 64px);
  }

  .position-chips {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__media {
    max-width: 460px;
  }

  .toolbox__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-section__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cs-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav__availability,
  .nav__desktop-contact {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(5, 7, 13, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 18px var(--gutter) 26px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .nav__menu.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__menu a {
    font-size: 17px;
    font-weight: 600;
    color: var(--muted);
    padding: 14px 6px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav__menu a.is-active {
    color: var(--text);
  }

  .nav__menu .nav__menu-cta {
    display: block;
    margin-top: 14px;
    text-align: center;
    color: #fff;
    background: linear-gradient(120deg, #7c3aed, #4f46e5 50%, #2563eb);
    border: none;
    border-radius: 999px;
    padding: 14px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__media {
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }

  .hero__signature {
    left: 0;
  }

  .terminal {
    right: 12px;
  }

  .hero__availability-chip {
    left: 12px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .process {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-left: 6px;
  }

  .process__step {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0;
  }

  .process__node {
    margin-bottom: 14px;
  }

  .process__step small {
    margin-bottom: 18px;
  }

  .process__edge {
    width: 2px;
    height: 30px;
    margin: 0 0 0 27px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.55), rgba(56, 189, 248, 0.55), transparent);
    background-size: 100% 220%;
    animation: edge-flow-v 2.8s linear infinite;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card--wide {
    grid-column: span 1;
  }

  .contact__panel {
    grid-template-columns: 1fr;
  }

  .ai__wrap {
    grid-template-columns: 1fr;
  }

  .t-grid {
    grid-template-columns: 1fr;
  }

  .resume-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@keyframes edge-flow-v {
  from {
    background-position: 0 -220%;
  }
  to {
    background-position: -220% -220%;
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: clamp(34px, 10.5vw, 48px);
  }

  .hero__copy {
    font-size: 16px;
  }

  .ai__tags {
    grid-template-columns: 1fr;
  }

  .cs-list {
    grid-template-columns: 1fr;
  }

  .cs-results {
    grid-template-columns: 1fr;
  }

  .cs-gallery {
    grid-template-columns: 1fr;
  }

  .cs-hero__shot {
    aspect-ratio: 16 / 10;
  }
}