/* ---------- Design tokens ---------- */
:root {
  --bg: #f6f8f7;
  --bg-soft: #eef3f1;
  --surface: #ffffff;
  --surface-2: #f3f7f5;
  --border: #e1e8e5;
  --border-strong: #cbd6d1;
  --text: #0e1a15;
  --text-muted: #4f6058;
  --accent: #047857;
  --accent-bright: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-contrast: #ffffff;
  --warn: #a16207;
  --warn-soft: rgba(234, 179, 8, 0.16);
  --shadow-sm: 0 1px 2px rgba(15, 26, 21, 0.06);
  --shadow-lg: 0 24px 60px -24px rgba(15, 40, 30, 0.28);
  --glow: rgba(16, 185, 129, 0.2);
  --grid-line: rgba(14, 26, 21, 0.05);

  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1160px;
  --nav-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090e0c;
    --bg-soft: #0c1310;
    --surface: #111a16;
    --surface-2: #15201b;
    --border: #1e2b25;
    --border-strong: #2c3c35;
    --text: #e7efeb;
    --text-muted: #9aaba4;
    --accent: #34d399;
    --accent-bright: #34d399;
    --accent-soft: rgba(52, 211, 153, 0.12);
    --accent-contrast: #052e1f;
    --warn: #facc15;
    --warn-soft: rgba(250, 204, 21, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 80px -28px rgba(0, 0, 0, 0.75);
    --glow: rgba(52, 211, 153, 0.14);
    --grid-line: rgba(255, 255, 255, 0.04);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #090e0c;
  --bg-soft: #0c1310;
  --surface: #111a16;
  --surface-2: #15201b;
  --border: #1e2b25;
  --border-strong: #2c3c35;
  --text: #e7efeb;
  --text-muted: #9aaba4;
  --accent: #34d399;
  --accent-bright: #34d399;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --accent-contrast: #052e1f;
  --warn: #facc15;
  --warn-soft: rgba(250, 204, 21, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 80px -28px rgba(0, 0, 0, 0.75);
  --glow: rgba(52, 211, 153, 0.14);
  --grid-line: rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s ease, color 0.25s ease;
}

svg {
  display: block;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

section {
  scroll-margin-top: var(--nav-h);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--sm {
  height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
  border-radius: 10px;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 10px 24px -12px var(--accent-bright);
}

.btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn--light {
  background: #ffffff;
  color: #053b2a;
}

.btn--light:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}

.btn--light:hover svg {
  transform: none;
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn--outline-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.25s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 32px;
  height: 32px;
}

.brand b {
  color: var(--accent);
}

.brand--sm {
  font-size: 1rem;
}

.brand--sm .brand__mark {
  width: 26px;
  height: 26px;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="true"] {
  color: var(--text);
  background: var(--surface-2);
}

.nav__links-contact {
  display: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__menu {
  display: none;
}

.nav__menu .i-close,
.nav__menu[aria-expanded="true"] .i-open {
  display: none;
}

.nav__menu[aria-expanded="true"] .i-close {
  display: block;
}

.theme-toggle .i-sun,
:root[data-theme="dark"] .theme-toggle .i-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .i-sun {
  display: block;
}

:root:not(.js) .theme-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 35%, transparent 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  z-index: -1;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: pulse 2.2s ease-in-out infinite;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 4.2vw + 0.6rem, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.038em;
}

.nowrap {
  white-space: nowrap;
}

.accent {
  background: linear-gradient(100deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 54ch;
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.2rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin: 44px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.hero__meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__meta small {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__meta strong {
  font-weight: 600;
}

/*
 * Hero visual. Everything inside .stack is sized in em, and the stack's
 * font-size scales with the column width (520px wide = 16px), so the whole
 * composition shrinks evenly on smaller screens.
 */
.hero__visual {
  container-type: inline-size;
  display: flex;
  justify-content: center;
}

.stack {
  position: relative;
  width: 32.5em;
  height: 34em;
  margin-top: 1.5em;
  font-size: 16px;
  font-size: calc(min(100cqi, 520px) / 520 * 16);
}

/* Code editor (always dark, like a real editor) */
.window {
  position: absolute;
  top: 0;
  left: 0;
  width: 26em;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1em;
  background: #0d1512;
  box-shadow: var(--shadow-lg);
  color: #d5e2dc;
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 0.45em;
  height: 2.5em;
  padding: 0 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.window__dot {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: #34433d;
}

.window__file {
  margin-left: 0.9em;
  color: #8fa39b;
  font-family: var(--mono);
  font-size: 0.75em;
}

.code {
  padding: 1em 1.25em 1em 0.5em;
  counter-reset: ln;
  font-family: var(--mono);
  font-size: 0.78em;
  font-variant-ligatures: none;
  line-height: 1.8;
}

.ln {
  display: block;
  min-height: 1.8em;
  white-space: pre;
  counter-increment: ln;
}

.ln::before {
  content: counter(ln);
  display: inline-block;
  width: 2em;
  margin-right: 1.25em;
  color: #4b5c55;
  text-align: right;
}

.c-k { color: #6ee7b7; }
.c-f { color: #93c5fd; }
.c-s { color: #fcd34d; }
.c-n { color: #f9a8d4; }

.term {
  padding: 0.9em 1.75em 1.1em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #8fa39b;
  font-family: var(--mono);
  font-size: 0.72em;
  line-height: 1.9;
}

.term__line {
  display: block;
}

.term__ok {
  color: #d5e2dc;
}

.term__ok i {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.7em;
  border-radius: 50%;
  background: #34d399;
}

/* Phone (inner sizes are em of the phone's own font-size) */
.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18.75em;
  aspect-ratio: 300 / 610;
  padding: 0.625em;
  border-radius: 2.875em;
  background: linear-gradient(145deg, #222c28, #0a0f0d);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 0.72em;
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.25em;
  background: var(--bg);
}

.phone__screen::after {
  content: "";
  position: absolute;
  bottom: 0.5em;
  left: 50%;
  width: 6em;
  height: 0.25em;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.3;
  transform: translateX(-50%);
}

.phone__notch {
  position: absolute;
  top: 0.625em;
  left: 50%;
  width: 5.25em;
  height: 1.375em;
  border-radius: 999px;
  background: #0a0f0d;
  transform: translateX(-50%);
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1em 2.2em 0;
  font-size: 0.72em;
  font-weight: 600;
}

.phone__signal {
  display: flex;
  align-items: flex-end;
  gap: 0.2em;
  height: 0.9em;
}

.phone__signal i {
  width: 0.28em;
  border-radius: 1px;
  background: var(--text);
}

.phone__signal i:nth-child(1) { height: 40%; }
.phone__signal i:nth-child(2) { height: 70%; }
.phone__signal i:nth-child(3) { height: 100%; }

.app {
  display: flex;
  flex-direction: column;
  gap: 0.625em;
  padding: 1.75em 0.875em 0.875em;
}

.app__head {
  display: flex;
  align-items: center;
  gap: 0.625em;
  margin-bottom: 0.25em;
}

.app__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5em;
  height: 2.5em;
  border-radius: 0.75em;
  background: linear-gradient(135deg, #34d399, #047857);
  color: #ffffff;
}

.app__icon svg {
  width: 1.25em;
  height: 1.25em;
}

.app__title {
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.2;
}

.app__sub {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.68em;
}

.track {
  padding: 0.7em 0.75em;
  border: 1px solid var(--border);
  border-radius: 0.875em;
  background: var(--surface);
}

.track--active {
  border-color: color-mix(in srgb, var(--accent-bright) 45%, var(--border));
  box-shadow: 0 0 0 0.19em var(--accent-soft);
}

.track__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}

.track__name {
  font-size: 0.8em;
  font-weight: 600;
}

.track__meta {
  margin-top: 0.35em;
  color: var(--text-muted);
  font-size: 0.7em;
}

.badge {
  padding: 0.3em 0.8em;
  border-radius: 999px;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--ok {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.progress {
  height: 0.375em;
  margin-top: 0.625em;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.progress span {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
  animation: grow 1.6s 0.6s ease-out both;
}

.checklist {
  display: grid;
  gap: 0.5em;
  margin: 0.25em 0 0;
  padding: 0.75em;
  border: 1px dashed var(--border-strong);
  border-radius: 0.875em;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-size: 0.74em;
}

.checklist svg {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  color: var(--accent-bright);
}

/* Floating status chips */
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.75em 1.1em 0.75em 0.75em;
  border: 1px solid var(--border);
  border-radius: 1.1em;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.float small {
  display: block;
  color: var(--text-muted);
  font-size: 0.88em;
  font-weight: 500;
}

.float__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6em;
  height: 2.6em;
  border-radius: 0.75em;
  background: var(--accent-soft);
  color: var(--accent);
}

.float__icon svg {
  width: 1.35em;
  height: 1.35em;
}

/* Over the editor's empty title bar */
.float--a {
  top: -1.6em;
  right: 3em;
}

/* In the open space beside the phone */
.float--b {
  bottom: 3.5em;
  left: 1.5em;
  animation-delay: -3s;
}

/* ---------- Sections ---------- */
.section {
  padding: 104px 0;
}

.section--alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 2.4vw + 1rem, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.032em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.section__head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section__head p:not(.eyebrow) {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.075rem;
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 18px 0 0;
  list-style: none;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.services .card {
  padding: 32px;
}

.services h3 {
  font-size: 1.25rem;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 56px;
}

.about h2 {
  max-width: 14ch;
}

.about__body > p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 1.075rem;
}

.about__body strong {
  color: var(--text);
  font-weight: 600;
}

.goal {
  position: relative;
  margin-top: 28px;
  padding: 22px 24px 22px 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.goal::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--accent-bright), var(--accent));
}

.goal__label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.goal p {
  margin: 0;
  font-size: 1.075rem;
  font-weight: 500;
  line-height: 1.55;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 72px;
}

/* Process timeline */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 21px;
  right: 0;
  left: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-bright), var(--border) 85%);
}

.timeline__item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.timeline__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border: 2px solid var(--accent-bright);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 0 0 6px var(--bg);
}

.timeline__item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.note {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 56px;
  padding: 24px 28px;
  border: 1px solid color-mix(in srgb, var(--accent-bright) 35%, var(--border));
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--accent-soft), transparent 70%), var(--surface);
}

.note .card__icon {
  margin: 0;
}

.note h3 {
  margin-bottom: 4px;
}

.note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.note .btn {
  flex: none;
  margin-left: auto;
}

/* Skills */
.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skills__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.skills__head h3 {
  margin: 0;
}

.skills__head span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.15s ease;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.chip:hover {
  border-color: var(--accent-bright);
}

/* Contact */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 48px;
  border-radius: 28px;
  background: linear-gradient(135deg, #065f46 0%, #053b2a 55%, #04261c 100%);
  color: #ffffff;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.cta::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  z-index: -1;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.35), transparent 60%);
  transform: translateX(-50%);
}

.cta .eyebrow {
  color: #6ee7b7;
}

.cta h2 {
  max-width: 20ch;
  margin-inline: auto;
}

.cta p:not(.eyebrow) {
  max-width: 52ch;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.075rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer .brand {
  color: var(--text);
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer ul a:hover {
  color: var(--text);
}

.footer p {
  margin: 0;
}

/* 404 page */
.notfound {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.notfound__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.notfound .brand {
  margin-bottom: 48px;
}

.notfound .lead {
  margin-inline: auto;
}

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}

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

.js .card.reveal.is-visible:hover {
  transform: translateY(-3px);
  transition-delay: 0s;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft), 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 8px transparent; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.5em); }
}

@keyframes grow {
  from { width: 0; }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    padding: 48px 0 80px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about h2 {
    max-width: none;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }

  .timeline::before {
    display: none;
  }

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

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

  .note {
    flex-wrap: wrap;
  }

  .note > div {
    flex: 1 1 320px;
  }

  .note .btn {
    margin-left: 64px;
  }
}

@media (max-width: 760px) {
  .nav__menu {
    display: inline-grid;
  }

  .nav__cta {
    display: none;
  }

  .nav__links {
    position: absolute;
    top: calc(var(--nav-h) - 4px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .nav__links-contact {
    display: block;
  }

  .section {
    padding: 80px 0;
  }

  .services,
  .values,
  .skills {
    grid-template-columns: 1fr;
  }

  .values {
    margin-top: 48px;
  }

  /* Vertical timeline */
  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline::before {
    display: block;
    top: 22px;
    bottom: 22px;
    left: 21px;
    width: 2px;
    height: auto;
    background: linear-gradient(var(--accent-bright), var(--border) 90%);
  }

  .timeline__item {
    padding-left: 68px;
  }

  .timeline__num {
    position: absolute;
    top: 0;
    left: 0;
  }

  .timeline__item h3 {
    margin-top: 10px;
  }

  .card,
  .services .card {
    padding: 24px;
  }

  .note {
    margin-top: 48px;
    padding: 24px;
  }

  .note .btn {
    width: 100%;
    margin-left: 0;
  }

  .cta {
    padding: 56px 24px;
    border-radius: 22px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 16px;
  }

  .hero__cta .btn {
    flex: 1 1 auto;
  }

  .hero__meta {
    gap: 16px 28px;
  }

  .cta__actions .btn {
    width: 100%;
  }
}
