/* ============================================
   Kartik Yadav — portfolio styles
   1. Tokens & base
   2. Header / nav
   3. Hero
   4. About
   5. Work / project mockups
   6. Skills
   7. Contact & footer
   8. Motion / responsive
   ============================================ */

/* ---------- 1. Tokens & base ---------- */
:root {
  --bg: #08080a;
  --surface: #131316;
  --surface-2: #17171b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --muted-soft: #71717a;
  --accent: #ff8a3c;
  --accent-2: #ffb347;
  --accent-deep: #f97316;
  --accent-soft: rgba(255, 138, 60, 0.11);
  --green: #4ade80;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --container: 1160px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

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

/* Ambient background + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 540px at 80% -10%, rgba(255, 138, 60, 0.09), transparent 65%),
    radial-gradient(700px 520px at -10% 38%, rgba(255, 138, 60, 0.045), transparent 60%),
    radial-gradient(800px 600px at 100% 100%, rgba(120, 80, 255, 0.04), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
p,
dl,
dd,
dt,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

svg {
  display: block;
}

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

::selection {
  background: var(--accent);
  color: #180c03;
}

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

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #180c03;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grad {
  background: linear-gradient(105deg, var(--accent-2), var(--accent) 45%, #ff7a18 80%);
  background-size: 180% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 9s ease-in-out infinite;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(180deg, #ffa65c, var(--accent-deep));
  color: #1c0e04;
  box-shadow: 0 10px 34px -14px rgba(249, 115, 22, 0.7);
}

.btn--primary:hover {
  box-shadow: 0 16px 40px -14px rgba(249, 115, 22, 0.8);
  filter: brightness(1.04);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.045);
}

.btn--sm {
  height: 40px;
  padding: 0 17px;
  font-size: 13px;
}

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
}

.js .reveal.is-visible {
  animation: reveal-in 0.75s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.03);
  }
}

/* ---------- 2. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent-deep));
  color: #1c0e04;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.32);
  transition: transform 0.3s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(-7deg) scale(1.04);
}

.logo-text span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  margin-left: 22px;
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

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

.nav-toggle span:first-child {
  top: 16px;
}

.nav-toggle span:last-child {
  top: 23px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

/* ---------- 3. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 15%, #000 10%, transparent 80%);
  mask-image: radial-gradient(75% 65% at 50% 15%, #000 10%, transparent 80%);
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    480px circle at var(--glow-x, 72%) var(--glow-y, 34%),
    rgba(255, 138, 60, 0.09),
    transparent 68%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
  animation: pulse-dot 2.8s ease-in-out infinite;
  flex: none;
}

.status-dot--sm {
  width: 6px;
  height: 6px;
}

.kicker-sep {
  color: #52525b;
}

.kicker-role {
  color: var(--muted);
}

.hero-title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.3vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 52ch;
  margin-top: 26px;
  font-size: clamp(1rem, 1.1vw, 1.06rem);
  line-height: 1.72;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stack {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  max-width: 540px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
}

.hero-stack__label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-stack__list {
  color: var(--muted);
}

/* Code card */
.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 470px);
  padding: 16px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -12% 4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 138, 60, 0.2), transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.code-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: #0c0c0f;
  box-shadow: 0 36px 90px -36px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
  will-change: transform;
}

.code-card:hover {
  border-color: rgba(255, 138, 60, 0.3);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.mock-dots {
  display: flex;
  gap: 5px;
  flex: none;
}

.mock-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3f3f46;
}

.mock-dots i:first-child {
  background: rgba(255, 95, 87, 0.7);
}

.mock-dots i:nth-child(2) {
  background: rgba(254, 188, 46, 0.7);
}

.mock-dots i:last-child {
  background: rgba(40, 200, 64, 0.65);
}

.code-file {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-inline: auto;
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
}

.code {
  margin: 0;
  padding: 22px 22px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 2;
  color: #d4d4d8;
  scrollbar-width: thin;
}

.code code {
  display: block;
}

.tok-key {
  color: var(--accent);
}

.tok-var,
.tok-prop {
  color: #f4f4f5;
}

.tok-str {
  color: #a7e8a0;
}

.tok-bool {
  color: #79b8ff;
}

.tok-fn {
  color: #e9c46a;
}

.tok-punc {
  color: #8b8b96;
}

.tok-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1.15s steps(1) infinite;
}

.code-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-soft);
}

.code-status__left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.code-status__left i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

/* Floating badges */
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(19, 19, 22, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  animation: float-y 7s ease-in-out infinite;
}

.float-card--a {
  top: -4px;
  left: -18px;
}

.float-card--b {
  right: -16px;
  bottom: 32px;
  animation-delay: -3.5s;
}

.float-avatar,
.float-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent-deep));
  color: #1c0e04;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 14px -6px rgba(249, 115, 22, 0.7);
}

.float-icon svg {
  width: 15px;
  height: 15px;
}

.float-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.float-copy strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.float-copy > span {
  font-size: 10.5px;
  color: var(--muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-stats li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-stats span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Shared section bits ---------- */
.section {
  position: relative;
  padding: clamp(80px, 10vw, 124px) 0;
}

.section-head {
  max-width: 700px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-label span {
  color: var(--muted-soft);
  letter-spacing: 0.08em;
}

.section-label::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 138, 60, 0.6), transparent);
}

.section-head h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.9vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: none;
}

.head-aside {
  max-width: 330px;
  padding-bottom: 4px;
}

.head-aside p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.head-aside .text-link {
  margin-top: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.text-link span {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(255, 138, 60, 0.45);
}

.text-link:hover span {
  transform: translate(1px, -1px);
}

.text-link--muted {
  color: var(--muted);
}

/* ---------- 4. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5.5vw, 76px);
  align-items: start;
  margin-top: clamp(44px, 5vw, 60px);
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 138, 60, 0.28), transparent 55%),
    radial-gradient(90% 70% at 90% 100%, rgba(255, 179, 71, 0.08), transparent 60%),
    linear-gradient(160deg, #1a1a1f, #0a0a0d 75%);
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(80% 70% at 50% 45%, #000 20%, transparent 78%);
  opacity: 0.7;
  pointer-events: none;
}

.portrait::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -70px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: inset 0 0 0 32px rgba(255, 255, 255, 0.015);
  pointer-events: none;
}

.portrait-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 58px;
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 8vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.16));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portrait-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(9, 9, 11, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portrait-meta span:first-child {
  color: var(--text);
  font-size: 10px;
}

.portrait-meta span:last-child {
  color: var(--muted);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facts {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.facts-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dl {
  margin-top: 8px;
}

.fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.fact dt {
  font-size: 12.5px;
  color: var(--muted);
}

.fact dd {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  text-align: right;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}

.about-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.about-body p + p {
  margin-top: 18px;
}

.about-body .about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.55rem);
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: -0.02em;
  color: #e4e4e7;
}

.values {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.values li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.value-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid rgba(255, 138, 60, 0.2);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
}

.value-icon svg {
  width: 13px;
  height: 13px;
}

.value-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.value-copy > span {
  display: block;
  margin-top: 1px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- 5. Work ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(40px, 4.5vw, 52px);
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #131316, #0f0f12);
  box-shadow: 0 24px 60px -44px rgba(0, 0, 0, 0.9);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, translate 0.35s var(--ease);
}

.project:hover {
  border-color: rgba(255, 138, 60, 0.32);
  box-shadow: 0 32px 70px -44px rgba(0, 0, 0, 0.95);
  translate: 0 -4px;
}

.project--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.project-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 138, 60, 0.11), transparent 62%),
    #0a0a0d;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.project--featured .project-media {
  min-height: 440px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(85% 75% at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(85% 75% at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.55;
  pointer-events: none;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 10, 0.3));
  pointer-events: none;
}

.project:not(.project--featured) .project-media {
  aspect-ratio: 16 / 10;
}

.project-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 32px);
}

.project--featured .project-body {
  justify-content: center;
  padding: clamp(28px, 3.6vw, 44px);
}

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

.project-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-meta span {
  margin: 0 5px;
  color: #52525b;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #52525b;
}

.project h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.project--featured h3 {
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
}

.project h3 a {
  transition: color 0.2s ease;
}

.project h3 a:hover {
  color: var(--accent);
}

.project-desc {
  margin-top: 10px;
  font-size: 13.8px;
  line-height: 1.68;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.tags li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #c4c4cc;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  width: 100%;
}

/* --- Mockup: shared window chrome --- */
.mock {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 470px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: #0d0d11;
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.95);
  transition: transform 0.5s var(--ease);
}

.project:hover .mock {
  transform: translateY(-3px);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.mock-bar .mock-dots i {
  width: 6px;
  height: 6px;
}

.mock-url {
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  color: #6b6b75;
}

.mock-chip {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(74, 222, 128, 0.1);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
}

/* --- Mockup: dashboard --- */
.mock--dash {
  max-width: 520px;
}

.dash {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 296px;
}

.dash-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.dash-logo {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent-deep));
  color: #1c0e04;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
}

.dash-side i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
}

.dash-side i.is-active {
  background: rgba(255, 138, 60, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 60, 0.25);
}

.dash-main {
  padding: 13px 14px 14px;
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dash-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.dash-pill {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: var(--muted);
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.022);
}

.dash-stat span {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.dash-stat strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.dash-stat em {
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
  color: var(--green);
}

.dash-chart {
  margin-top: 10px;
  padding: 10px 10px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 24px,
    rgba(255, 255, 255, 0.035) 25px
  );
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 100px;
}

.chart-bars span {
  flex: 1;
  height: var(--h);
  min-height: 5px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(255, 166, 92, 0.95), rgba(249, 115, 22, 0.22));
  opacity: 0.8;
}

.chart-bars span:nth-child(2n) {
  opacity: 0.55;
}

.chart-bars span:last-child {
  opacity: 1;
  box-shadow: 0 0 16px rgba(255, 138, 60, 0.25);
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  color: #5c5c66;
}

/* --- Mockup: monitoring --- */
.mock--monitor {
  max-width: 430px;
}

.mon-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #c9c9d1;
}

.mon-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
  flex: none;
}

.mon-uptime {
  margin-left: auto;
  color: var(--muted-soft);
  font-size: 8px;
}

.spark-wrap {
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.035) 21px
  );
}

.spark {
  width: 100%;
  height: 92px;
}

.mon-rows {
  padding: 4px 13px 8px;
}

.mon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px 34px 56px;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.mon-row:last-child {
  border-bottom: 0;
}

.svc {
  overflow: hidden;
  color: #d4d4d8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ok {
  color: var(--green);
}

.ms {
  color: var(--muted-soft);
  text-align: right;
}

.mon-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.mon-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 138, 60, 0.5), var(--accent));
}

/* --- Mockup: phones --- */
.mock--phones {
  max-width: none;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.phones {
  position: relative;
  width: min(100%, 320px);
  height: 260px;
}

.phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 132px;
  height: 252px;
  padding: 5px;
  border: 1px solid #2b2b31;
  border-radius: 22px;
  background: #060608;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.9);
}

.phone--back {
  transform: translate(-72%, -51%) rotate(-7deg) scale(0.94);
  opacity: 0.75;
}

.phone--front {
  transform: translate(-30%, -49%) rotate(2deg);
  border-color: #3a3a42;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(180deg, #121216, #0c0c0f);
  padding: 12px 10px;
}

.phone-screen--splash {
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 60% at 50% 25%, rgba(255, 138, 60, 0.35), transparent 70%),
    #0c0c0f;
}

.phone-screen--splash span {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.ph-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 6.5px;
  color: var(--muted);
}

.ph-battery {
  width: 14px;
  height: 6px;
  border: 1px solid #52525b;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 70%, transparent 70%);
}

.ph-greeting {
  margin-top: 13px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.ph-title {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ph-ring {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 12px auto 11px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, 0.075) 0);
}

.ph-ring span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0f0f13;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text);
}

.ph-habits {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ph-habit {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
}

.ph-habit .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex: none;
}

.dot--amber {
  background: var(--accent);
}

.dot--lilac {
  background: #c4b5fd;
}

.dot--green {
  background: var(--green);
}

.ph-habit span {
  flex: 1;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 6px;
  color: #c9c9d1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-habit b {
  display: grid;
  place-items: center;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-size: 6px;
  font-weight: 500;
  color: transparent;
  flex: none;
}

.ph-habit b.checked {
  border-color: transparent;
  background: var(--accent);
  color: #1c0e04;
}

/* ---------- 6. Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(40px, 4.5vw, 52px);
}

.skill-group {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), rgba(15, 15, 18, 0.55));
  transition: border-color 0.3s ease, background 0.3s ease;
}

.skill-group:hover {
  border-color: rgba(255, 138, 60, 0.28);
}

.skill-head {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.skill-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
}

.skill-head h3 {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.skill-desc {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.022);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #c9c9d1;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  border-color: rgba(255, 138, 60, 0.35);
  background: var(--accent-soft);
  color: var(--text);
}

.skills-foot {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.skills-foot span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- 7. Contact & footer ---------- */
.contact {
  padding-bottom: clamp(72px, 8vw, 104px);
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(720px 380px at 50% -12%, rgba(255, 138, 60, 0.16), transparent 65%),
    linear-gradient(180deg, #151518, #0d0d10);
  text-align: center;
  isolation: isolate;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 10%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}

.section-label--center {
  justify-content: center;
}

.section-label--center::after {
  display: none;
}

.contact-card h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.contact-lead {
  max-width: 48ch;
  margin: 20px auto 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.copy-btn.is-copied {
  border-color: rgba(74, 222, 128, 0.45);
  color: #86efac;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 26px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.socials a span {
  font-size: 10px;
  color: var(--accent);
}

.socials a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 11.5px;
  color: var(--muted-soft);
}

.logo--footer {
  font-size: 13.5px;
}

.logo--footer .logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: none;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.back-top:hover {
  color: var(--accent);
}

/* ---------- 8. Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    justify-self: start;
    width: min(100%, 540px);
    padding: 0;
  }

  .float-card {
    display: none;
  }

  .hero-stats {
    margin-top: 56px;
  }
}

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-aside {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
  }

  .portrait {
    max-width: 320px;
  }

  .project--featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .project--featured .project-media {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project--featured .project-body {
    justify-content: flex-start;
  }

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

  .skill-group:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: 16px;
  }

  .nav {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: #101013;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-link.is-active {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 8px;
    height: 44px;
  }

  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .head-aside {
    max-width: 460px;
  }

  .contact-actions .btn {
    height: 46px;
    font-size: 13.5px;
  }
}

@media (max-width: 820px) {
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project--featured {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    height: 64px;
  }

  .nav {
    top: 72px;
    left: 12px;
    right: 12px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-title {
    font-size: clamp(2.45rem, 11vw, 3.3rem);
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 150px;
    height: 46px;
    padding: 0 18px;
    font-size: 13.5px;
  }

  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 44px;
    padding-top: 8px;
  }

  .hero-stats li {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats li + li {
    padding-left: 0;
    border-left: 0;
  }

  .hero-stats li:last-child {
    border-bottom: 0;
  }

  .code {
    font-size: 11.5px;
    padding: 18px 16px 14px;
  }

  .code-file {
    font-size: 10px;
  }

  .about-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait {
    max-width: 100%;
  }

  .facts {
    padding: 18px 20px;
  }

  .section-head h2 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .project--featured .project-media {
    min-height: 300px;
    padding: 20px;
  }

  .project-media {
    padding: 18px;
  }

  .project-body,
  .project--featured .project-body {
    padding: 24px 20px;
  }

  .dash {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 0;
  }

  .dash-main {
    padding: 10px;
  }

  .dash-stats {
    gap: 5px;
  }

  .dash-stat {
    padding: 6px;
  }

  .dash-stat strong {
    font-size: 11.5px;
  }

  .dash-stat em {
    display: none;
  }

  .chart-bars {
    height: 72px;
    gap: 4px;
  }

  .mon-row {
    grid-template-columns: minmax(0, 1fr) 24px 30px 44px;
    gap: 6px;
  }

  .spark {
    height: 74px;
  }

  .project.project--tempo .project-media {
    aspect-ratio: 4 / 3;
  }

  .phones {
    height: 240px;
  }

  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .skill-group:last-child {
    grid-column: auto;
  }

  .skill-group {
    padding: 22px;
  }

  .contact-card {
    padding: 44px 20px;
    border-radius: 22px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .socials {
    gap: 2px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .phones {
    height: 230px;
    transform: scale(0.84);
    transform-origin: center;
  }
}

@media (max-width: 380px) {
  .phones {
    transform: scale(0.78);
  }

  .code {
    font-size: 10.5px;
  }

  .dash-stat span {
    font-size: 6px;
  }

  .mock-url {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
  }

  .js .reveal.is-visible {
    animation: none;
  }
}

/* Subtle scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg);
  border-radius: 99px;
  background: #2a2a30;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a42;
}
