/* =========================================================
   Mohan Kumar Shrestha — portfolio
   Design system: electric blue + lime, bold grotesk,
   bento panels and an index-style project list.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Syne", "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --bg: #08090b;
  --bg-elev: #101216;
  --bg-soft: #14171c;
  --ink: #f2f3ef;
  --ink-soft: #d8dad4;
  --muted: #9aa0a9;
  --line: rgba(242, 243, 239, 0.13);
  --line-strong: rgba(242, 243, 239, 0.3);

  --accent: #c8f25a;
  --accent-ink: #0a0b12;
  --accent-soft: rgba(127, 140, 255, 0.14);
  --lime: #c8f25a;
  --lime-ink: #10130a;

  --max: 1240px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -30px rgba(0, 0, 0, 0.9);
  --shadow-md: 0 34px 80px -36px rgba(0, 0, 0, 0.95);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  scrollbar-gutter: stable;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

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

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

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

/* Scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 11px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--bg);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- Layout helpers ---------- */
.shell {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
}

.section-tint {
  background: var(--bg-soft);
}

#about {
  position: relative;
  background: radial-gradient(
      ellipse 55% 65% at 88% 12%,
      color-mix(in srgb, var(--accent) 12%, transparent),
      transparent 72%
    ),
    #101216;
}

#about .shell {
  position: relative;
  z-index: 1;
}

.section-intro {
  max-width: 62ch;
  margin: -18px 0 38px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Icon ---------- */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 40px;
  border: 1px solid transparent;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  translate: var(--tx, 0px) var(--ty, 0px);
  transition: transform 0.25s ease, translate 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn-label,
.btn .icon {
  position: relative;
  z-index: 1;
}

.btn-label {
  display: inline-flex;
}

.btn-letter {
  display: inline-block;
  will-change: transform, opacity;
}

.btn:hover .btn-letter {
  animation: btnLetterIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--bi) * 24ms);
}

@keyframes btnLetterIn {
  from {
    opacity: 0;
    transform: translate(var(--bx, 0px), var(--by, 0px)) rotate(var(--brot, 0deg));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-solid {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-solid:hover {
  color: var(--bg);
  box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn-line {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--ink);
  color: var(--bg);
}

/* ---------- Status pill ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 28%, transparent);
  animation: blink 2.4s ease-in-out infinite;
}

/* ---------- Skip link / progress / toast / noise ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

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

/* ---------- Fixed left section progress ---------- */
.side-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transform: translateY(-50%);
}

.side-nav-list {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 3px 0;
}

.side-nav-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: var(--line);
}

.side-nav-dot {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  transition: background-color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease, box-shadow 0.25s ease;
}

.side-nav-dot:hover {
  border-color: var(--accent);
}

.side-nav-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.side-nav-percent {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

@media (max-width: 1099px) {
  .side-nav {
    display: none;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 250;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-align: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 240;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- Custom follow cursor (small dot) ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease,
    opacity 0.25s ease;
  will-change: transform;
}

.cursor-dot.is-visible {
  opacity: 1;
}

.cursor-dot.is-hover {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: relative;
  z-index: 100;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.brand-word {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px 7px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.brand:hover .brand-word {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -14px rgba(120, 160, 20, 0.9);
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.brand:hover .brand-dot {
  transform: scale(1.4);
}

/* ---------- Full-screen menu ---------- */
.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: clamp(92px, 13vh, 132px) 0 clamp(28px, 6vh, 52px);
  background: #08090b;
  color: #f2f3ef;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity 0.35s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 72% 38%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 70% 62% at 72% 38%, #000 0%, transparent 76%);
  opacity: 0.5;
  pointer-events: none;
}

body.nav-open .nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.nav-open .nav::before {
  animation: navPatternIn 0.9s ease both;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .site-header {
  border-bottom-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.nav-open .menu-btn {
  border-color: rgba(255, 255, 255, 0.3);
  color: #f2f3ef;
}

body.nav-open .menu-btn:hover,
body.nav-open .menu-btn:focus-visible {
  border-color: var(--lime);
  color: var(--lime-ink);
}

.nav-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0;
  transform: scale(0.75);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

body.nav-open .nav-glow {
  opacity: 1;
  transform: none;
}

body.nav-open .nav-glow-a {
  transition-delay: 0.12s;
}

body.nav-open .nav-glow-b {
  transition-delay: 0.22s;
}

.nav-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.nav-glow-a {
  top: -18%;
  right: -6%;
  width: min(58vw, 560px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(47, 75, 255, 0.55), transparent 68%);
}

.nav-glow-b {
  bottom: -26%;
  left: -8%;
  width: min(46vw, 460px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(200, 242, 90, 0.32), transparent 68%);
}

.nav-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.36fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  width: min(100% - 48px, var(--max));
  margin: auto;
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: clamp(10px, 1.4vh, 18px) 4px;
  color: #f2f3ef;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition: color 0.25s ease, padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.nav-list a:hover,
.nav-list a.is-active {
  padding-left: 16px;
  color: var(--lime);
}

.nav-num {
  flex: none;
  width: 2.4ch;
  color: #8f9bff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  transition: color 0.25s ease;
}

.nav-list a:hover .nav-num,
.nav-list a.is-active .nav-num {
  color: var(--lime);
}

.nav-label {
  flex: 1;
}

.nav-arrow {
  flex: none;
  align-self: center;
  color: rgba(242, 243, 239, 0.3);
  font-size: 0.46em;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.nav-list a:hover .nav-arrow {
  color: var(--lime);
  transform: translate(3px, -3px);
}

.nav-photo {
  display: block;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  justify-self: end;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}

.nav-meta {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 10px;
}

.nav-meta-label {
  display: block;
  margin-bottom: 7px;
  color: #8b919a;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-mail {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: #f2f3ef;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: -0.02em;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-mail:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.nav-meta-value {
  color: #c9ccd2;
  font-size: 13.5px;
}

.nav-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-socials a {
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #c9ccd2;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.nav-socials a:hover {
  border-color: var(--lime);
  background: rgba(200, 242, 90, 0.12);
  color: var(--lime);
}

body.nav-open .nav-list a {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: calc(var(--i) * 65ms + 110ms);
}

.nav-photo,
.nav-meta {
  opacity: 0;
  transform: translateY(28px) scale(0.94);
  filter: blur(6px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease;
}

body.nav-open .nav-photo,
body.nav-open .nav-meta {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: 0.32s;
}

.header-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  isolation: isolate;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

/* Lime fill sweeps up from the bottom on hover */
.menu-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(160deg, #d9fb7d 0%, var(--lime) 52%, #a9e73d 100%);
  transform: translateY(102%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-btn:hover,
.menu-btn:focus-visible {
  border-color: var(--lime);
  color: var(--lime-ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -18px rgba(200, 242, 90, 0.75);
}

.menu-btn:hover::before,
.menu-btn:focus-visible::before {
  transform: translateY(0);
}

.menu-btn:active {
  transform: translateY(0) scale(0.97);
}

.menu-lines {
  display: grid;
  gap: 4px;
  width: 16px;
}

.menu-lines i {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Hover: the three lines ripple to the right in a quick stagger */
body:not(.nav-open) .menu-btn:hover .menu-lines i:nth-child(1),
body:not(.nav-open) .menu-btn:focus-visible .menu-lines i:nth-child(1) {
  transform: translate(2px, 1px);
}

body:not(.nav-open) .menu-btn:hover .menu-lines i:nth-child(2),
body:not(.nav-open) .menu-btn:focus-visible .menu-lines i:nth-child(2) {
  transform: translateX(4px);
  transition-delay: 0.05s;
}

body:not(.nav-open) .menu-btn:hover .menu-lines i:nth-child(3),
body:not(.nav-open) .menu-btn:focus-visible .menu-lines i:nth-child(3) {
  transform: translate(2px, -1px);
  transition-delay: 0.1s;
}

/* Open: top + bottom meet in the middle, middle line disappears */
body.nav-open .menu-lines i:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

body.nav-open .menu-lines i:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

body.nav-open .menu-lines i:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0 76px;
  background-image: radial-gradient(
      ellipse 55% 60% at 82% 18%,
      color-mix(in srgb, var(--accent) 7%, transparent),
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 45% at 8% 92%,
      rgba(127, 140, 255, 0.05),
      transparent 70%
    );
}

.hero .shell {
  display: grid;
  grid-template-columns: 70fr 30fr;
  align-items: center;
  gap: 40px;
}

.hero-main {
  grid-column: 1;
}

.hero-photo {
  position: relative;
  isolation: isolate;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 330px;
  margin: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: 50% 18%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
  animation: heroFloat 8s ease-in-out infinite;
  will-change: transform;
}

.hero-main {
  position: relative;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-eyebrow-line {
  width: 20px;
  height: 1px;
  background: var(--lime);
  transform-origin: left center;
  animation: eyebrowLine 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-eyebrow-text {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  letter-spacing: 0.35em;
  animation: eyebrowText 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes eyebrowLine {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes eyebrowText {
  to {
    opacity: 1;
    transform: none;
    letter-spacing: 0.2em;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-photo-caption {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-align: right;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.6vw, 4.2rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  margin-right: -0.08em;
  padding-right: 0.08em;
  margin-bottom: -0.08em;
  padding-bottom: 0.08em;
}

.hero-title .line > span {
  display: block;
}

.hero-title .letter {
  display: inline-block;
  opacity: 0;
  transform: translate(var(--tx, 0px), var(--ty, 0.6em)) rotate(var(--rot, 0deg))
    scale(0.92);
  filter: blur(10px);
  animation: letterIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 32ms + 80ms);
  will-change: transform, opacity, filter;
}

.hero-title .letter-space {
  width: 0.26em;
}

.hero-title .line-accent {
  color: var(--accent);
}

.hero-title.is-ready .letter {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

/* Section titles that animate like the hero headline (letters fly in) */
.title-split .word {
  display: inline-block;
  white-space: nowrap;
}

.title-split .letter {
  display: inline-block;
  opacity: 0;
  transform: translate(var(--tx, 0px), var(--ty, 0.6em)) rotate(var(--rot, 0deg))
    scale(0.92);
  filter: blur(10px);
  will-change: transform, opacity, filter;
}

.title-split.is-revealed .letter {
  animation: letterIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 30ms + 60ms);
}

/* Paragraphs that reveal word by word */
.text-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(var(--rot, 0deg));
  filter: blur(6px);
}

.text-reveal.is-revealed .word {
  animation: wordIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 18ms + 50ms);
}

/* =========================================================
   Section head
   ========================================================= */
.section-head {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 30px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.section-kicker {
  margin-bottom: 30px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Section labels animate in like the hero eyebrow */
.js .section-kicker {
  opacity: 0;
  transform: translateY(10px);
  letter-spacing: 0.32em;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .section-head.is-visible .section-kicker {
  opacity: 1;
  transform: none;
  letter-spacing: 0.2em;
}

#about .section-kicker,
#skills .section-kicker,
#experience .section-kicker,
#projects .section-kicker,
#contact .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#about .section-kicker::before,
#skills .section-kicker::before,
#experience .section-kicker::before,
#projects .section-kicker::before,
#contact .section-kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.js #about .section-kicker::before,
.js #skills .section-kicker::before,
.js #experience .section-kicker::before,
.js #projects .section-kicker::before,
.js #contact .section-kicker::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.js #about .section-head.is-visible .section-kicker::before,
.js #skills .section-head.is-visible .section-kicker::before,
.js #experience .section-head.is-visible .section-kicker::before,
.js #projects .section-head.is-visible .section-kicker::before,
.js #contact .section-head.is-visible .section-kicker::before {
  transform: scaleX(1);
}

.section-title {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-rule {
  flex: 1;
  height: 1px;
  margin-bottom: 8px;
  background: var(--line-strong);
}

.js .section-rule {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.js .section-head.is-visible .section-rule {
  transform: scaleX(1);
}

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  gap: clamp(32px, 5vw, 76px);
}

.about-copy > p {
  margin-bottom: 24px;
  color: var(--muted);
}

.about-copy strong {
  color: var(--ink);
  font-weight: 600;
}

/* Stats */
.about-stats {
  display: grid;
  align-content: center;
  gap: 12px;
}

.about-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  transition: border-color 0.3s ease, background-color 0.3s ease,
    translate 0.3s ease;
}

.about-stat:hover {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  translate: 0 -2px;
}

/* Staggered blur-slide entrance for the stat cards */
.js .about-stat.reveal {
  opacity: 0;
  transform: translate(38px, 14px) scale(0.96) rotate(-1.2deg);
  filter: blur(8px);
}

.js .about-stat.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  animation: statIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--d, 0) * 110ms + 60ms);
  transition: translate 0.3s ease, border-color 0.3s ease,
    background-color 0.3s ease;
  transition-delay: 0s;
}

.about-stat strong {
  min-width: 2.3em;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.about-stat-body h3 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.about-stat-body p {
  max-width: 30ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* =========================================================
   Skills
   ========================================================= */
.skill-rows {
  display: grid;
  gap: 14px;
}

.skill-row {
  display: grid;
  grid-template-columns: 54px minmax(220px, 0.9fr) 1.4fr 36px;
  align-items: center;
  gap: 28px;
  padding: 30px 24px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease,
    translate 0.35s ease;
}

.skill-row:hover {
  background: var(--accent);
  color: var(--accent-ink);
  translate: 0 -2px;
}

/* Staggered blur-slide entrance for the skill rows */
.js .skill-row.reveal {
  opacity: 0;
  transform: translate(-40px, 10px) scale(0.98);
  filter: blur(6px);
}

.js .skill-row.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  animation: skillRowIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--d, 0) * 90ms + 40ms);
  transition: background-color 0.35s ease, color 0.35s ease,
    translate 0.35s ease;
}

.skill-num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.skill-row:hover .skill-num {
  color: var(--accent-ink);
}

.skill-title h3 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

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

.chips li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: color 0.35s ease, border-color 0.35s ease;
}

.skill-row:hover .chips li {
  border-color: color-mix(in srgb, var(--bg) 26%, transparent);
  color: var(--bg);
}

.skill-arrow {
  justify-self: end;
  color: var(--muted);
  font-size: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.skill-row:hover .skill-arrow {
  color: var(--accent-ink);
  transform: translate(3px, -3px);
}

/* =========================================================
   Experience
   ========================================================= */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.exp-main {
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.exp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.exp-top h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.exp-top p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
}

.exp-date {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.exp-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  margin-top: 26px;
}

.exp-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.55;
}

.exp-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* Staggered entrance for the experience details */
.js .exp-list li.reveal {
  opacity: 0;
  transform: translateX(-22px);
  filter: blur(5px);
}

.js .exp-list li.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  animation: expItemIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--d, 0) * 80ms + 80ms);
  transition-delay: 0s;
}

.js .exp-list li::before {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 80ms + 220ms);
}

.js .exp-list li.is-visible::before {
  opacity: 1;
  transform: scale(1);
}

.js .exp-date.reveal {
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
}

.js .exp-date.reveal.is-visible {
  opacity: 1;
  transform: none;
  animation: expBadgeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(var(--d, 0) * 80ms + 120ms);
  transition-delay: 0s;
}

@keyframes expItemIn {
  from {
    opacity: 0;
    transform: translateX(-22px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes expBadgeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Projects
   ========================================================= */
.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-row {
  display: flex;
}

/* Staggered blur-rise entrance for the project cards */
.js .project-row.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.965) rotate(0.6deg);
  filter: blur(8px);
}

.js .project-row.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  animation: projectRowIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--d, 0) * 85ms + 60ms);
}

.project-link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  transition: border-color 0.3s ease, background-color 0.3s ease,
    translate 0.3s ease;
}

.project-link:hover {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  translate: 0 -2px;
}

.project-link.is-soon {
  cursor: default;
}

.p-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  transition: color 0.25s ease;
}

.project-link:hover .p-title {
  color: var(--accent);
}

.p-soon {
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.p-desc {
  max-width: 74ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.contact .shell {
  position: relative;
  z-index: 1;
}

.contact::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -10%;
  z-index: 0;
  width: min(52vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent 68%
  );
  filter: blur(90px);
  pointer-events: none;
}

.contact::after {
  content: "";
  position: absolute;
  bottom: 4%;
  left: -6%;
  z-index: 0;
  width: min(46vw, 420px);
  aspect-ratio: 1;
  background-image: radial-gradient(
    color-mix(in srgb, var(--ink) 16%, transparent) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 30% 70%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 30% 70%, #000, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 40px;
}

.contact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  transition: border-color 0.3s ease, background-color 0.3s ease,
    translate 0.3s ease;
}

.contact-stat:hover {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  translate: 0 -2px;
}

/* Staggered blur-rise entrance with a soft light sweep */
.js .contact-stat.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.94) rotate(-1deg);
  filter: blur(10px);
}

.js .contact-stat.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  animation: contactStatIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--d, 0) * 110ms + 60ms);
  transition: translate 0.3s ease, border-color 0.3s ease,
    background-color 0.3s ease;
  transition-delay: 0s;
}

.contact-stat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 32%,
    color-mix(in srgb, var(--accent) 20%, transparent) 50%,
    transparent 68%
  );
  transform: translateX(-130%);
  pointer-events: none;
}

.js .contact-stat.reveal.is-visible::after {
  animation: contactStatSweep 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}

.contact-stat-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-stat-value {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

a.contact-stat .contact-stat-value {
  transition: color 0.2s ease;
}

a.contact-stat:hover .contact-stat-value {
  color: var(--accent);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 56px 0 32px;
  background: #0b0c0e;
  color: #f2f3ef;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-brand .brand-mark {
  background: var(--lime);
  color: var(--lime-ink);
}

.footer-brand .brand-logo {
  height: 40px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  color: #9aa0a9;
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #ffffff;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9aa0a9;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

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

.back-top .icon {
  width: 13px;
  height: 13px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
}

.footer-bottom p {
  color: #8b919a;
  font-size: 11.5px;
}

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

.footer-social {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #9aa0a9;
  transition: color 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease, translate 0.25s ease;
}

.footer-social:hover {
  border-color: var(--lime);
  background: rgba(200, 242, 90, 0.12);
  color: var(--lime);
  translate: 0 -2px;
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

/* =========================================================
   Motion
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 80ms);
}

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

@keyframes letterIn {
  60% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
    filter: blur(0);
  }
}

@keyframes wordIn {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
    filter: blur(0);
  }
}

@keyframes statIn {
  from {
    opacity: 0;
    transform: translate(38px, 14px) scale(0.96) rotate(-1.2deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes contactStatIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.94) rotate(-1deg);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes contactStatSweep {
  to {
    transform: translateX(130%);
  }
}

@keyframes skillRowIn {
  from {
    opacity: 0;
    transform: translate(-40px, 10px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes projectRowIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.965) rotate(0.6deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.015);
  }
}

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero {
    padding: 64px 0 64px;
  }

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

  .about-stats {
    padding-left: 0;
    padding-top: 28px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .exp-grid {
    gap: 24px;
  }

  .skill-row {
    grid-template-columns: 44px minmax(0, 1fr) 30px;
    gap: 14px 20px;
    padding: 24px 18px;
  }

  .chips {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .skill-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .contact-stats {
    gap: 10px;
  }

}

@media (max-width: 980px) {
  .nav-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
  }

  .nav-list a {
    font-size: clamp(1.9rem, 6.4vw, 3rem);
  }

  .nav-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px 32px;
    padding-bottom: 0;
  }

  .nav-photo {
    max-width: 240px;
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .hero .shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-photo {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    max-width: 300px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: clamp(56px, 9vw, 90px) 0;
  }

  .hero {
    padding: 56px 0 60px;
  }

  .hero-eyebrow {
    margin-bottom: 22px;
  }

  .hero-cta {
    margin-top: 30px;
  }

  .hero-photo {
    max-width: 270px;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .section-rule {
    margin-bottom: 0;
  }

  .section-title {
    max-width: none;
  }

  .section-kicker {
    margin-bottom: 20px;
  }

  .section-intro {
    margin-top: -8px;
    margin-bottom: 28px;
  }

  .exp-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .exp-list {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
  }

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

  .project-link {
    padding: 16px;
  }

  .p-desc {
    font-size: 12.5px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .contact-stats {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 26px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    padding-top: 18px;
  }

  .footer-socials {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 36px, var(--max));
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 44px 0 52px;
  }

  .hero-eyebrow {
    margin-bottom: 18px;
    font-size: 11px;
  }

  .hero-cta {
    margin-top: 26px;
  }

  .hero-photo {
    max-width: 240px;
  }

  .hero-photo-caption {
    margin-top: 12px;
    font-size: 9px;
  }

  .section-kicker {
    margin-bottom: 16px;
  }

  .about-stat {
    gap: 14px;
    padding: 16px;
  }

  .about-stat strong {
    min-width: 2.1em;
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .about-stat-body p {
    font-size: 11.5px;
  }

  .skill-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 18px 14px;
  }

  .skill-num {
    font-size: 13px;
  }

  .skill-arrow {
    display: none;
  }

  .chips {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .brand-word {
    padding: 7px 12px 6px;
    font-size: 12px;
  }

  .brand-logo {
    height: 36px;
  }

  .menu-btn {
    gap: 7px;
    padding: 9px 13px;
  }

  .nav {
    padding-top: 84px;
  }

  .nav-inner {
    width: min(100% - 36px, var(--max));
  }

  .nav-list a {
    gap: 12px;
    font-size: clamp(1.6rem, 8.4vw, 2.2rem);
  }

  .nav-meta {
    flex-direction: column;
    gap: 16px;
  }

  .project-link {
    padding: 14px;
  }

  .p-title {
    font-size: 18px;
    gap: 7px;
  }

  .p-desc {
    font-size: 12px;
  }

  .p-soon {
    font-size: 7.5px;
  }

  .contact-stat {
    padding: 20px 16px;
  }

  .contact-stat-value {
    font-size: 14.5px;
  }

  .footer-nav {
    gap: 12px;
    font-size: 12px;
  }

  .footer-socials {
    gap: 6px;
  }

  .footer-social {
    width: 32px;
    height: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
  }

  .back-top {
    font-size: 9px;
  }
}

@media (max-width: 400px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .hero-photo {
    max-width: 210px;
  }

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

  .about-stat strong {
    min-width: 0;
  }

  .skill-row {
    padding: 16px 12px;
  }

  .contact-stat-value {
    font-size: 13.5px;
  }

  .footer-nav {
    gap: 10px;
    font-size: 11.5px;
  }
}

/* =========================================================
   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;
    transform: none;
  }

  .js .exp-list li.reveal,
  .js .exp-list li.reveal.is-visible,
  .js .exp-date.reveal,
  .js .exp-date.reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .js .exp-list li::before {
    opacity: 1;
    transform: none;
  }

  .js .about-stat.reveal,
  .js .about-stat.reveal.is-visible,
  .js .contact-stat.reveal,
  .js .contact-stat.reveal.is-visible,
  .js .contact-stat.reveal.is-visible::after {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .js .project-row.reveal,
  .js .project-row.reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .hero-title .letter {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .title-split .letter {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .text-reveal .word {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .js .section-kicker {
    opacity: 1;
    transform: none;
    letter-spacing: 0.2em;
  }

  .js #about .section-kicker::before,
  .js #skills .section-kicker::before,
  .js #experience .section-kicker::before,
  .js #projects .section-kicker::before,
  .js #contact .section-kicker::before {
    transform: none;
  }
}

/* =========================================================
   Section snapping (laptop & desktop)
   ========================================================= */
@media (min-width: 1024px) {
  html {
    scroll-snap-type: y proximity;
    scroll-padding-top: 0;
  }

  .hero,
  .section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    scroll-snap-align: start;
  }

  .hero {
    padding: 80px 0;
  }
}

/* =========================================================
   Print
   ========================================================= */
@media print {
  .site-header,
  .side-nav,
  .cursor-dot,
  .noise,
  .toast,
  .footer-nav,
  .back-top,
  .menu-btn,
  .contact::before,
  .contact::after {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #111111;
  }

  .section,
  .hero {
    padding: 22px 0;
  }

  .section-tint {
    background: #ffffff;
  }

  .js .reveal,
  .about-stat,
  .section-kicker,
  .hero-title .letter,
  .title-split .letter,
  .text-reveal .word,
  .hero-eyebrow-text,
  .hero-eyebrow-line {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  #about .section-kicker::before,
  #skills .section-kicker::before,
  #experience .section-kicker::before,
  #projects .section-kicker::before,
  #contact .section-kicker::before {
    transform: none !important;
  }

  .js .exp-list li::before {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-footer {
    padding-top: 18px;
    background: #ffffff;
    color: #111111;
  }

  .footer-brand,
  .footer-bottom p,
  .footer-brand .brand-mark {
    color: #111111;
  }

  .footer-brand .brand-mark {
    background: #eeeeee;
  }

  .footer-top,
  .footer-bottom {
    border-color: #dddddd;
  }

  .contact-list,
  .project-row,
  .exp-item {
    break-inside: avoid;
  }

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

  .project-link {
    grid-template-columns: 1fr;
    border-color: #dddddd;
    background: #ffffff;
  }

  .p-soon {
    display: none;
  }

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