/* ============================================================
   DESIGN SYSTEM — Change palette here, nowhere else
   ============================================================ */
:root {
  --color-bg:         #080C10;
  --color-surface:    #0F1520;
  --color-border:     #1E2A3A;
  --color-accent:     #4A7FA5;
  --color-accent-dim: #2A4A63;
  --color-text:       #F0F4F8;
  --color-muted:      #6B8299;

  --orb-primary:   rgba(74, 127, 165, 0.13);
  --orb-secondary: rgba(42,  74,  99, 0.10);
  --orb-tertiary:  rgba(30,  42,  58, 0.18);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;

  /* Spacing scale (base-8) */
  --s1:  8px;
  --s2:  16px;
  --s3:  24px;
  --s4:  32px;
  --s5:  48px;
  --s6:  64px;
  --s7:  80px;
  --s8:  120px;

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

/* Stacking: orbs(0) → noise(1) → content(2+) */
main   { position: relative; z-index: 2; }
footer { position: relative; z-index: 2; }
.mobile-nav { z-index: 10; }

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-snap-type: y mandatory;
}

section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  cursor: none;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(74, 127, 165, 0.07) 0%, transparent 70%);
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   BACKGROUND ORBS
   ============================================================ */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orbs__orb--1 {
  position: absolute;
  top: -20%;
  left: -15%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(ellipse at center, var(--orb-primary) 0%, transparent 65%);
  animation: orbDrift1 20s ease-in-out infinite alternate;
  will-change: transform;
}

.bg-orbs__orb--2 {
  position: absolute;
  bottom: 5%;
  right: -20%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(ellipse at center, var(--orb-secondary) 0%, transparent 65%);
  animation: orbDrift2 25s ease-in-out infinite alternate;
  will-change: transform;
}

.bg-orbs__orb--3 {
  position: absolute;
  top: 45%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(ellipse at center, var(--orb-tertiary) 0%, transparent 60%);
  animation: orbDrift3 30s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes orbDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4%, 6%) scale(1.05); }
}
@keyframes orbDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5%, -4%) scale(1.08); }
}
@keyframes orbDrift3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -5%) scale(0.95); }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width var(--duration) var(--ease),
              height var(--duration) var(--ease),
              background var(--duration) var(--ease),
              border var(--duration) var(--ease);
  will-change: transform;
}

.cursor.cursor--hover {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--color-accent);
}

/* ============================================================
   DOT NAV
   ============================================================ */
.dot-nav {
  position: fixed;
  left: var(--s4);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0;
  animation: fadeInUp 1s var(--ease) 1.2s both;
}

.dot-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  list-style: none;
}

.dot-nav__link {
  display: flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
  position: relative;
}

.dot-nav__dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  border: 1px solid var(--color-muted);
  flex-shrink: 0;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.dot-nav__label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
  opacity: 0;
  position: absolute;
  left: calc(100% + var(--s2));
  transform: translateX(-4px);
  transition: opacity var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              color var(--duration) var(--ease);
  pointer-events: none;
}

.dot-nav__link:hover .dot-nav__dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.4);
}

.dot-nav__link:hover .dot-nav__label {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-text);
}

/* Active dot — always shows label */
.dot-nav__link.dot-nav__link--active .dot-nav__dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.5);
}

.dot-nav__link.dot-nav__link--active .dot-nav__label {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-accent);
}

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

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.hamburger {
  display: none;
  position: fixed;
  top: var(--s3);
  right: var(--s3);
  z-index: 300;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(15, 21, 32, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease);
}

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

.hamburger__line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.hamburger.is-open .hamburger__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.is-open .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open .hamburger__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) { .hamburger { display: flex; } }

/* ============================================================
   FULL-SCREEN NAV OVERLAY
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s8) var(--s5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-overlay__link {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  font-family: var(--font-display);
  font-size: clamp(40px, 13vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(240, 244, 248, 0.15);
  text-decoration: none;
  line-height: 1.15;
  transition: color 0.25s var(--ease);
}

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

.nav-overlay__num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  opacity: 0.8;
  align-self: flex-start;
  padding-top: 10px;
  min-width: 28px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  overflow: hidden;
  isolation: isolate;
}

/* Particles canvas — behind all hero content */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

/* Available badge */
.hero__available {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 6px 14px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.05s both;
}

.hero__available-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF82;
  box-shadow: 0 0 6px rgba(76, 175, 130, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* Name */
.hero__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 160px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
}

.hero__word {
  display: block;
  overflow: hidden;
}

.hero__word-inner {
  display: block;
  opacity: 0;
  transform: translateY(60px);
  animation: wordReveal 0.9s var(--ease) forwards;
}

.hero__word:nth-child(1) .hero__word-inner { animation-delay: 0.15s; }
.hero__word:nth-child(2) .hero__word-inner { animation-delay: 0.3s; }

@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Subtitle */
.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.5s both;
}

/* CTAs */
.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--s2);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.65s both;
  margin-top: var(--s1);
}

.hero__cta {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 2px;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.hero__cta--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border: 1px solid var(--color-accent);
}

.hero__cta--primary:hover {
  background: var(--color-text);
  border-color: var(--color-text);
  transform: translateY(-2px);
}

.hero__cta--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.hero__cta--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  right: var(--s4);
  bottom: var(--s5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0;
  animation: fadeInUp 1s var(--ease) 0.9s both;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollLine 1.8s var(--ease) infinite 1s;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Grain on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  padding: var(--s8) var(--s8);
  max-width: 1280px;
  margin: 0 auto;
  padding-left: calc(var(--s8) + var(--s5));
}

.section__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.section__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
  max-width: 120px;
}

/* Section intro line */
.section__intro {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-top: calc(-1 * var(--s4));
  margin-bottom: var(--s5);
  opacity: 0.85;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__body {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  max-width: 700px;
  margin-bottom: var(--s6);
}

.about__statement {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.8;
  color: var(--color-muted);
}

.about__availability {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-muted);
  opacity: 0.8;
}

.about__availability strong {
  color: var(--color-text);
  font-weight: 500;
}

.about__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-border);
}

.about__strip-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s3) var(--s4) var(--s3) 0;
  border-right: 1px solid var(--color-border);
}

.about__strip-item + .about__strip-item {
  padding-left: var(--s4);
}

.about__strip-item:last-child {
  border-right: none;
}

.about__strip-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.about__strip-value {
  font-size: 15px;
  color: var(--color-text);
  font-weight: 400;
}

/* ============================================================
   WORK
   ============================================================ */
.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  align-items: stretch;
}

.work__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.work__card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(74, 127, 165, 0.07);
}

.work__card--muted {
  opacity: 0.5;
  border-color: transparent;
}
.work__card--muted:hover {
  opacity: 0.75;
}

/* 5th card — full width, horizontal layout so it feels intentional */
.work__card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0 var(--s6);
}

.work__card--wide .work__title {
  grid-column: 1;
  grid-row: 1;
}

.work__card--wide .work__desc {
  grid-column: 1;
  grid-row: 2;
  max-width: 100%;
}

.work__card--wide .work__tech {
  grid-column: 2;
  grid-row: 1 / -1;
  border-top: none;
  border-left: 1px solid var(--color-border);
  padding-top: 0;
  padding-left: var(--s6);
  margin-top: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.work__card--wide .work__tech-tag {
  font-size: 12px;
}

.work__card--wide .work__tech-tag + .work__tech-tag::before {
  display: none;
}

.work__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.work__desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-muted);
  flex: 1;
}

.work__tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s1);
  padding-top: var(--s2);
  border-top: 1px solid var(--color-border);
}

.work__tech-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.03em;
  transition: color var(--duration) var(--ease);
}

.work__card:hover .work__tech-tag { color: var(--color-accent); }

.work__tech-tag + .work__tech-tag::before {
  content: '·';
  margin-right: var(--s1);
  color: var(--color-border);
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience__timeline {
  position: relative;
  padding-left: var(--s5);
}

.experience__timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.experience__item {
  position: relative;
  padding-bottom: var(--s6);
}

.experience__item:last-child { padding-bottom: 0; }

.experience__dot {
  position: absolute;
  left: calc(-1 * var(--s5) - 4px);
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-accent);
}


.experience__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s2);
  flex-wrap: wrap;
}

.experience__company {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.experience__role {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-muted);
  margin-top: 2px;
}

.experience__meta { text-align: right; }

.experience__date {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.experience__location {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2px;
}

.experience__bullets {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  margin-top: var(--s2);
}

.experience__bullet {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  padding-left: var(--s2);
  position: relative;
}

.experience__bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 4px;
  height: 1px;
  background: var(--color-accent);
}

/* ============================================================
   TECH STACK
   ============================================================ */
.stack__groups {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.stack__groups > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration) var(--ease);
}

.stack__groups > div:last-child {
  border-bottom: none;
}

.stack__groups > div:hover {
  background: var(--color-surface);
}

.stack__group-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0;
  flex-shrink: 0;
}

.stack__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.stack__tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 6px 14px;
  background: transparent;
  transition: border-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
  letter-spacing: 0.02em;
}

.stack__tag:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: var(--s8) var(--s8);
  padding-left: calc(var(--s8) + var(--s5));
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.contact__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: start;
}

.contact__headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.contact__right {
  padding-top: var(--s2);
}

.contact__sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: var(--s5);
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.contact__link {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--color-border);
  transition: border-color var(--duration) var(--ease);
}

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

.contact__link-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  min-width: 56px;
  flex-shrink: 0;
}

.contact__link-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--duration) var(--ease);
}

.contact__link:hover .contact__link-value {
  color: var(--color-accent);
}

/* Large decorative text behind contact */
.contact__decoration {
  position: absolute;
  bottom: -10px;
  right: 0;
  left: 0;
  display: flex;
  justify-content: flex-end;
  gap: var(--s3);
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  padding-right: var(--s6);
}

.contact__decoration span {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-border);
  opacity: 0.35;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .contact__decoration { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--s6);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--s2);
  position: relative;
  z-index: 2;
}

.footer__text {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.footer__link {
  transition: color var(--duration) var(--ease);
}

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

/* Subtle seam between sections */
.section,
.contact-section {
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --s6: 24px;
    --s7: 48px;
    --s8: 64px;
  }

  body { cursor: auto; }
  .cursor { display: none; }

  .section {
    padding: var(--s7) var(--s3);
    padding-left: var(--s3);
  }

  .contact-section {
    padding: var(--s7) var(--s3);
  }

  .hero__name { font-size: clamp(42px, 14vw, 80px); }
  .hero__scroll { display: none; }
  .hero__ctas { flex-direction: row; flex-wrap: wrap; justify-content: center; }

  .about__strip { grid-template-columns: 1fr 1fr; }
  .about__strip-item,
  .about__strip-item + .about__strip-item { padding-left: 0; padding-right: 0; border-right: none; border-bottom: 1px solid var(--color-border); }
  .about__strip-item:nth-child(odd) { padding-right: var(--s3); border-right: 1px solid var(--color-border); }
  .about__strip-item:nth-child(even) { padding-left: var(--s3); }
  .about__strip-item:nth-last-child(-n+2) { border-bottom: none; }

  .stack__groups > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s2);
    padding: var(--s3);
  }

  .work__grid { grid-template-columns: 1fr; }
  .work__card--wide {
    grid-column: 1;
    display: flex;
    flex-direction: column;
  }
  .work__card--wide .work__tech {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: var(--s2);
    flex-direction: row;
    flex-wrap: wrap;
  }
  .work__card--wide .work__tech-tag + .work__tech-tag::before {
    display: inline;
  }

  .experience__header { flex-direction: column; gap: var(--s1); }
  .experience__meta { text-align: left; }

  .contact__body { grid-template-columns: 1fr; }
  .contact__decoration { display: none; }

  .footer { flex-direction: column; text-align: center; padding: var(--s3); }
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .about__strip { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: 1fr 1fr; }
  .contact__body { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }
