/* ══════════════════════════════════════════════
   TOKENS
══════════════════════════════════════════════ */
:root {
  --bg:        #0d1110;
  --bg-2:      #131817;
  --bg-3:      #1b2220;

  --border:    rgba(220,231,226,0.08);
  --border-2:  rgba(220,231,226,0.14);

  --text:      #e7ece9;
  --text-2:    rgba(231,236,233,0.62);
  --text-3:    rgba(231,236,233,0.34);

  --accent:    #9bb8a5;
  --accent-2:  #c7d8ce;

  --red:       #e06b6b;
  --green:     #78d39c;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'Geist', system-ui, sans-serif;
  --radius:    14px;
--ease:      cubic-bezier(0.16, 1, 0.3, 1);
--nav-h:     64px;
}

/* ══════════════════════════════════════════════
   RESET
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: -30%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(155,184,165,0.16), transparent 30%),
    radial-gradient(circle at 78% 16%, rgba(72,84,146,0.16), transparent 34%),
    radial-gradient(circle at 80% 72%, rgba(213,166,206,0.10), transparent 30%),
    radial-gradient(circle at 26% 82%, rgba(199,216,206,0.08), transparent 28%);
  filter: blur(8px);
  animation: pageAurora 24s var(--ease) infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(231,236,233,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,236,233,0.018) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 74%);
  opacity: 0.42;
  transform: rotate(-8deg);
  animation: pageGridDrift 32s linear infinite;
}

@keyframes pageAurora {
  0% {
    transform: translate3d(-1%, -1%, 0) rotate(0deg) scale(1);
  }

  50% {
    transform: translate3d(2%, 1.5%, 0) rotate(7deg) scale(1.05);
  }

  100% {
    transform: translate3d(-1%, 2%, 0) rotate(-6deg) scale(1.03);
  }
}

@keyframes pageGridDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 76px 76px;
  }
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { cursor: none; background: none; border: none; font: inherit; color: inherit; }

.projects-section,
.skills-section,
.contact-section {
  background: transparent;
  position: relative;
}

/* ══════════════════════════════════════════════
   TIPTAP EDITOR
══════════════════════════════════════════════ */
.modal-desc > *:first-child {
  margin-top: 0;
}

.modal-desc > *:last-child {
  margin-bottom: 0;
}

.modal-desc p {
  margin: 0 0 0.65rem;
}

.modal-desc h2,
.modal-desc h3 {
  margin: 1rem 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

.modal-desc ul,
.modal-desc ol {
  margin: 0.65rem 0;
  padding-left: 1.15rem;
}

.modal-desc ul {
  list-style: disc;
}

.modal-desc ol {
  list-style: decimal;
}

.modal-desc li {
  margin: 0.25rem 0;
}

.modal-desc blockquote {
  margin: 0.85rem 0;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(155,184,165,0.35);
  color: var(--text-2);
}

.modal-desc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-desc-wrap {
  position: relative;
}

.modal-desc-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  pointer-events: none;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(155,184,165,0.72);
  background:
    linear-gradient(
      to bottom,
      rgba(19,24,23,0),
      rgba(19,24,23,0.82) 58%,
      rgba(19,24,23,1)
    );
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.modal-desc-wrap.is-scrollable .modal-desc-hint {
  opacity: 1;
  transform: translateY(0);
}

.modal-desc-wrap.is-at-bottom .modal-desc-hint {
  opacity: 0;
  transform: translateY(4px);
}

/* ══════════════════════════════════════════════
   NOISE
══════════════════════════════════════════════ */
.noise {
  position: fixed; inset: 0; z-index: 999;
  pointer-events: none;
  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)'/%3E%3C/svg%3E");
  opacity: 0.025;
}

/* ══════════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════════ */
.cursor {
  position: fixed; z-index: 9998;
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed; z-index: 9999;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 56px; height: 56px; opacity: 0.6; }

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 40px;
  padding: 0 48px;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: var(--bg-3);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}

#navName {
  display: inline-flex;
  align-items: center;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-logo-svg {
  display: block;
  height: 35px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(155,184,165,0.10));
}

.nav-links {
  display: flex; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.nav-cta:hover { background: var(--accent-2); transform: scale(1.04); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,0.03);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--accent);
  transform: scale(1.04);
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--text);
  border-radius: 999px;
  transform-origin: center;
  transition:
    transform 0.35s var(--ease),
    opacity 0.25s var(--ease),
    width 0.25s var(--ease),
    background 0.25s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ══════════════════════════════════════════════
   HERO SHOWCASE
══════════════════════════════════════════════ */
.hero-showcase {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 12px) 48px 96px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-showcase::before,
.hero-showcase::after,
.hero-showcase .hero-bg::after {
  content: none;
}

@keyframes heroBreath {
  0%, 100% {
    opacity: 0.68;
    transform: scale(1);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.03);
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.045;
  mix-blend-mode: screen;
  animation-timing-function: ease-in-out;
}

.blob-1 {
  width: 620px;
  height: 620px;
  background: #9bb8a5;
  top: -180px;
  left: -220px;
  animation: drift1 20s ease-in-out infinite alternate;
}

.blob-2 {
  width: 520px;
  height: 520px;
  background: #30415f;
  bottom: -180px;
  right: 4%;
  animation: drift2 24s ease-in-out infinite alternate;
}

.blob-3 {
  width: 380px;
  height: 380px;
  background: #d5a6ce;
  top: 28%;
  right: 24%;
  animation: drift3 18s ease-in-out infinite alternate;
}

@keyframes heroAurora {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1);
  }

  45% {
    transform: translate3d(2%, 1.5%, 0) rotate(8deg) scale(1.06);
  }

  100% {
    transform: translate3d(-1%, 2%, 0) rotate(-6deg) scale(1.03);
  }
}

@keyframes heroGridDrift {
  0% {
    background-position: 0 0;
    transform: rotate(-8deg) scale(1.12);
  }

  100% {
    background-position: 74px 74px;
    transform: rotate(-8deg) scale(1.12);
  }
}

@keyframes drift1 {
  0% {
    transform: translate3d(0,0,0) scale(1);
  }

  100% {
    transform: translate3d(90px,-40px,0) scale(1.08);
  }
}

@keyframes drift2 {
  0% {
    transform: translate3d(0,0,0) scale(1);
  }

  100% {
    transform: translate3d(-70px,40px,0) scale(1.12);
  }
}

@keyframes drift3 {
  0% {
    transform: translate3d(0,0,0) scale(1);
  }

  100% {
    transform: translate3d(36px,64px,0) scale(0.96);
  }
}

.hero-showcase-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 960px);
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 4vw, 54px);
}

.hero-showcase-copy {
  position: relative;
  width: fit-content;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 6px;
  margin-bottom: 8px;
  color: var(--text);
}

.hero-kicker span {
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.82;
}

.hero-kicker p {
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-display {
  position: relative;
  font-family: var(--font-sans);
  font-size: clamp(6.4rem, 12vw, 12rem);
  line-height: 0.76;
  letter-spacing: -0.105em;
  font-weight: 800;
  text-transform: lowercase;
}

.hero-display::after {
  content: '';
  position: absolute;
  inset: 8% -6% -2%;
  z-index: -1;
  background:
    radial-gradient(circle at 42% 42%, rgba(155,184,165,0.24), transparent 36%),
    radial-gradient(circle at 62% 58%, rgba(213,166,206,0.18), transparent 34%);
  filter: blur(34px);
  opacity: 0.72;
  animation: heroTextGlow 5.5s ease-in-out infinite;
}

.hero-display-line {
  display: block;
  width: fit-content;
  color: transparent;
  background:
    linear-gradient(
      115deg,
      #9bb8a5 0%,
      #c7d8ce 28%,
      #e7ece9 46%,
      #d5a6ce 68%,
      #9bb8a5 100%
    );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.12),
    0 24px 80px rgba(0,0,0,0.38);
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  filter: blur(10px);
  animation:
    heroTextReveal 0.9s var(--ease) forwards,
    heroTextGradient 7s ease-in-out infinite;
}

.hero-display-line-2 {
  margin-left: 4px;
  animation-delay: 0.14s, 0s;
}

@keyframes heroTextReveal {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.96);
    filter: blur(10px);
  }

  65% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

  50% {
    background-position: 100% 50%;
  }
}

@keyframes heroTextGlow {
  0%, 100% {
    opacity: 0.48;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.86;
    transform: scale(1.04);
  }
}

.hero-script {
  position: absolute;
  right: -66px;
  bottom: -20px;
  z-index: 3;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  font-style: italic;
  line-height: 1;
  color: rgba(231,236,233,0.88);
  transform: rotate(-8deg);
  text-shadow: 0 16px 40px rgba(0,0,0,0.5);
  pointer-events: none;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 440px;
  margin-top: 34px;
  margin-left: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-showcase-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
  margin-left: 8px;
}

.hero-author-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  height: 242px;
  padding: 8px 8px 18px;
  border: 1px solid rgba(155,184,165,0.42);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(155,184,165,0.12), rgba(255,255,255,0.025)),
    rgba(8,12,20,0.44);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 24px 80px rgba(0,0,0,0.35);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.hero-author-pill:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(155,184,165,0.18), rgba(255,255,255,0.035)),
    rgba(8,12,20,0.54);
}

.hero-author-photo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-3);
  border: 2px solid rgba(155,184,165,0.5);
  box-shadow: 0 0 0 4px rgba(155,184,165,0.08);
  flex-shrink: 0;
}

.hero-author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-author-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  gap: 6px;
  color: var(--text-2);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

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

.hero-showcase-bottom {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-available,
.hero-location-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 10px;
  font-size: 0.58rem;
  letter-spacing: 0.075em;
  gap: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.025);
  border-radius: 100px;
}

.pulse {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(92,224,122,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(92,224,122,0); }
}

.hero-social-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.social-icon-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  background: rgba(255,255,255,0.025);
  color: var(--text-2);
  backdrop-filter: blur(12px);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.social-icon-link i {
  font-size: 1rem;
  line-height: 1;
}

.social-icon-link:hover {
  color: var(--bg);
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-3px);
}

.scroll-down {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.55;
}

.scroll-down-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border-radius: 100px;
  transition: all 0.2s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(200,184,154,0.25); }
.btn-ghost {
  border: 1px solid var(--border-2);
  color: var(--text-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }

/* ══════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════ */
.section {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}

.container {
  position: relative;
  z-index: 1;
  width: min(100% - 96px, 1360px);
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.section::before {
  content: none;
}

.section::after {
  content: '';
  position: absolute;
  top: 0;
  left: -28vw;
  width: 28vw;
  height: 2px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(155,184,165,0.0) 12%,
      rgba(199,216,206,0.38) 42%,
      rgba(231,236,233,0.9) 50%,
      rgba(213,166,206,0.38) 58%,
      rgba(155,184,165,0.0) 88%,
      transparent 100%
    );
  filter: blur(0.35px);
  opacity: 0;
  animation: sectionSeparatorSweep 9s linear infinite;
  animation-delay: var(--separator-delay, 0s);
  box-shadow:
    0 0 10px rgba(199,216,206,0.14),
    0 0 22px rgba(213,166,206,0.08);
}

.projects-section {
  --separator-delay: 0s;
}

.skills-section {
  --separator-delay: 2.8s;
}

.contact-section {
  --separator-delay: 5.6s;
}

@keyframes sectionSeparatorSweep {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.95;
  }

  70% {
    opacity: 0.95;
  }

  100% {
    transform: translateX(156vw);
    opacity: 0;
  }
}

@keyframes sectionGlowDrift {
  0%, 100% {
    opacity: 0.52;
    transform: translateX(-50%) scaleX(0.96);
  }

  50% {
    opacity: 0.9;
    transform: translateX(-50%) scaleX(1.04);
  }
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1; max-width: 60px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}
.section-title em { font-style: italic; color: var(--accent); }

/* ══════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════ */
.social-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.social-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color 0.2s, background 0.2s;
}
.social-item:hover { border-color: var(--border-2); background: var(--bg-3); }
.social-platform {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  flex: 1;
}
.social-arrow { font-size: 0.75rem; color: var(--text-3); }

/* ══════════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════════ */

.projects-header {
  margin-bottom: 64px;
}

.projects-showcase {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.projects-featured-stack {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.project-editorial {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  min-height: 420px;
  padding: 18px 0;
  cursor: pointer;
}

.project-editorial.is-reversed {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
}

.project-editorial.is-reversed .project-editorial-content {
  grid-column: 2;
  grid-row: 1;
}

.project-editorial.is-reversed .project-editorial-media {
  grid-column: 1;
  grid-row: 1;
}

.project-editorial::before {
  content: '';
  position: absolute;
  inset: -24px;
  pointer-events: none;
  border-radius: 34px;
  background:
    radial-gradient(circle at 24% 24%, rgba(155,184,165,0.08), transparent 34%),
    radial-gradient(circle at 72% 70%, rgba(213,166,206,0.055), transparent 34%);
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.project-editorial:hover::before {
  opacity: 1;
  transform: scale(1);
}

.project-editorial-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-editorial-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.project-mark-line {
  width: 42px;
  height: 1px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(155,184,165,0.0),
      rgba(155,184,165,0.72),
      rgba(231,236,233,0.36)
    );
}

.project-mark-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 6px rgba(155,184,165,0.07),
    0 0 22px rgba(155,184,165,0.28);
}

.project-editorial:hover .project-mark-line {
  width: 58px;
}

.project-mark-line {
  transition: width 0.35s var(--ease), opacity 0.35s var(--ease);
}

.project-mark-dot {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.project-editorial:hover .project-mark-dot {
  transform: scale(2.15);
  box-shadow:
    0 0 0 8px rgba(155,184,165,0.08),
    0 0 28px rgba(155,184,165,0.36);
}

.project-editorial-number {
  position: absolute;
  top: -72px;
  left: -10px;
  z-index: -1;
  font-family: var(--font-serif);
  font-size: clamp(5rem, 11vw, 10rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(231,236,233,0.08);
  opacity: 0.9;
  pointer-events: none;
}

.project-editorial-title {
  max-width: 620px;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.8vw, 5.8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--text);
}

.project-editorial-desc {
  max-width: 520px;
  margin-top: 24px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.75;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-editorial .project-stack {
  margin-top: 24px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 10px;
  border: 1px solid rgba(155,184,165,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.022);
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-parent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(155,184,165,0.22);
  border-radius: 999px;
  background: rgba(155,184,165,0.06);
  color: var(--accent-2);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.project-parent-badge i {
  font-size: 0.6rem;
  color: var(--accent);
}

.project-archive-main .project-parent-badge {
  margin-bottom: 6px;
}

.modal-parent-badge-wrap:empty {
  display: none;
}

.modal-parent-badge-wrap .project-parent-badge {
  margin-bottom: 12px;
}

.project-editorial-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.project-editorial-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(220,231,226,0.10);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(13,17,16,0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 28px 80px rgba(0,0,0,0.32);
  transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
  transition:
    transform 0.55s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.project-editorial.is-reversed .project-editorial-media {
  transform: perspective(1000px) rotateY(3deg) rotateX(1deg);
}

.project-editorial:hover .project-editorial-media {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-6px);
  border-color: rgba(155,184,165,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 36px 100px rgba(0,0,0,0.42),
    0 0 80px rgba(155,184,165,0.06);
}

.project-editorial-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      110deg,
      transparent 0%,
      rgba(231,236,233,0.0) 32%,
      rgba(231,236,233,0.10) 50%,
      rgba(231,236,233,0.0) 68%,
      transparent 100%
    );
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease);
}

.project-editorial:hover .project-editorial-media::before {
  transform: translateX(120%);
}

/* Blurred backdrop layer — fills the sides with a glowing, softly
   scaled copy of the same image instead of cropping it */
.project-editorial-media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(42px) saturate(1.4) brightness(0.7);
  transform: scale(1.3);
  opacity: 0.9;
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease), opacity 0.5s var(--ease);
}

.project-editorial:hover .project-editorial-media-bg {
  transform: scale(1.4);
  filter: blur(46px) saturate(1.55) brightness(0.78);
}

/* Foreground image — always shown in full, never cropped */
.project-editorial-media-fg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
  transition: transform 0.75s var(--ease), filter 0.45s var(--ease);
}

.project-editorial:hover .project-editorial-media-fg {
  transform: scale(1.02);
  filter: drop-shadow(0 22px 48px rgba(0,0,0,0.5)) saturate(1.05);
}

/* Fallback: plain img with no bg layer (placeholder / non-large modes) */
.project-editorial-media > img:only-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease), filter 0.45s var(--ease);
}

.project-editorial:hover .project-editorial-media > img:only-child {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.project-editorial-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--text-3);
}

/* Archive */
.projects-archive {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

.projects-archive::after {
  content: '';
  position: absolute;
  left: 0;
  right: 10px;
  bottom: 0;
  height: 72px;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(13,17,16,0.72)
    );
  opacity: 0.9;
}

.projects-archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(220,231,226,0.08);
}

.projects-archive-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 400;
  color: var(--text);
}

.projects-archive-count {
  color: var(--text-3);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.projects-archive-list {
  display: flex;
  flex-direction: column;
  height: 430px;
  max-height: 430px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(155,184,165,0.32) transparent;
}

.projects-archive-list::-webkit-scrollbar {
  width: 6px;
}

.projects-archive-list::-webkit-scrollbar-track {
  background: transparent;
}

.projects-archive-list::-webkit-scrollbar-thumb {
  background: rgba(155,184,165,0.26);
  border-radius: 999px;
}

.projects-archive-list::-webkit-scrollbar-thumb:hover {
  background: rgba(155,184,165,0.42);
}

.projects-archive-list::after {
  content: '';
  flex: 0 0 56px;
}

.project-archive-row {
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  min-height: 86px;
  flex: 0 0 auto;
  overflow: hidden;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(160px, auto) auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(220,231,226,0.07);
  cursor: pointer;
  transition:
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.project-archive-row::before {
  content: '';
  position: absolute;
  inset: 8px -14px;
  z-index: 0;
  pointer-events: none;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 50%, rgba(155,184,165,0.09), transparent 32%),
    linear-gradient(
      90deg,
      rgba(155,184,165,0.065),
      transparent 48%,
      rgba(213,166,206,0.045)
    );
  opacity: 0;
  transform: scaleX(0.985);
  transform-origin: left;
  transition:
    opacity 0.38s var(--ease),
    transform 0.38s var(--ease);
}

.project-archive-row > * {
  position: relative;
  z-index: 1;
}

.project-archive-row:hover {
  border-color: rgba(220,231,226,0.15);
}

.project-archive-row:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.project-archive-thumb,
.project-archive-main,
.project-archive-row .project-stack,
.project-archive-links,
.project-archive-arrow {
  transition:
    transform 0.35s var(--ease),
    opacity 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.project-archive-row:hover .project-archive-thumb {
  transform: translateX(4px);
}

.project-archive-row:hover .project-archive-main {
  transform: translateX(6px);
}

.project-archive-row:hover .project-stack {
  transform: translateX(4px);
}

.project-archive-row:hover .project-archive-links {
  transform: translateX(3px);
}

.project-archive-row:hover .project-archive-arrow {
  color: var(--accent);
  transform: translateX(6px);
}

.project-archive-thumb {
  width: 86px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid rgba(220,231,226,0.08);
}

.project-archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.55s var(--ease),
    filter 0.55s var(--ease);
}

.project-archive-row:hover .project-archive-thumb img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.project-archive-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  color: var(--text-3);
  font-size: 1.4rem;
}

.project-archive-main {
  min-width: 0;
}

.project-archive-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.project-archive-desc {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 0.78rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-archive-main,
.project-archive-row .project-stack,
.project-archive-links {
  min-width: 0;
}

.project-archive-row .project-stack {
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow: hidden;
}

.project-archive-links {
  display: flex;
  gap: 7px;
}

.project-mini-link {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.72rem;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.project-mini-link:hover {
  color: var(--bg);
  border-color: var(--accent);
  background: var(--accent);
}

.project-archive-arrow {
  color: var(--text-3);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

/* ══════════════════════════════════════════════
   SKILLS — LANES
══════════════════════════════════════════════ */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 64px;
}

.skill-lane {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid rgba(220,231,226,0.08);
}

.skill-lane:last-child {
  border-bottom: 1px solid rgba(220,231,226,0.08);
}

.skill-lane::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 12% 50%,
      rgba(155,184,165,0.075),
      transparent 34%
    ),
    linear-gradient(
      90deg,
      rgba(155,184,165,0.045),
      transparent 38%,
      rgba(213,166,206,0.035)
    );
  opacity: 0;
  transform: scaleX(0.98);
  transform-origin: left;
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.skill-lane:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.skill-lane-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.skill-lane-index {
  width: 3px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(155,184,165,0.95),
    rgba(155,184,165,0.38),
    rgba(155,184,165,0.06)
  );
  box-shadow:
    0 0 18px rgba(155,184,165,0.18),
    0 0 0 1px rgba(255,255,255,0.02);
  color: transparent;
  font-size: 0;
  line-height: 0;
  -webkit-text-stroke: 0;
  opacity: 1;
  flex-shrink: 0;
}

.skill-lane-title-wrap {
  position: relative;
  min-width: 0;
}

.skill-lane-title-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 46px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(155,184,165,0.5),
    transparent
  );
  opacity: 0.5;
}

.skill-lane-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.skill-lane-meta {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-lane-line {
  display: none;
}

.skill-lane-track {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.skill-marquee {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%
    );
  mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%
    );
}

.skill-marquee.is-dragging {
  cursor: grabbing;
}

.skill-marquee-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  will-change: transform;
}

.skill-lane-track.is-static {
  justify-content: flex-end;
}

.skill-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 15px 9px 10px;
  border: 1px solid rgba(220,231,226,0.10);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(13,17,16,0.42);
  color: var(--text-2);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 34px rgba(0,0,0,0.14);
  overflow: hidden;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.skill-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      110deg,
      transparent 0%,
      rgba(199,216,206,0.12) 45%,
      transparent 70%
    );
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease);
}

.skill-pill:hover {
  color: var(--text);
  border-color: rgba(155,184,165,0.34);
  background:
    linear-gradient(180deg, rgba(155,184,165,0.10), rgba(255,255,255,0.025)),
    rgba(13,17,16,0.58);
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 42px rgba(0,0,0,0.22);
}

.skill-pill:hover::before {
  transform: translateX(120%);
}

.skill-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.045);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-icon img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.skill-name {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 400;
  color: currentColor;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-sub { color: var(--text-3); font-size: 0.95rem; margin-top: 20px; line-height: 1.7; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  cursor: text;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-status {
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
}
.form-status.success { color: var(--green); background: rgba(92,224,122,0.06); }
.form-status.error { color: var(--red); background: rgba(224,92,92,0.06); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  position: relative;
  overflow: hidden;
  padding: 24px 0 34px;
  border-top: 1px solid rgba(220,231,226,0.08);
  background:
    radial-gradient(circle at 16% 12%, rgba(155,184,165,0.12), transparent 30%),
    radial-gradient(circle at 82% 38%, rgba(213,166,206,0.075), transparent 28%),
    linear-gradient(180deg, transparent, rgba(19,24,23,0.48));
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(231,236,233,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,236,233,0.026) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent, black 24%, transparent 92%);
  opacity: 0.35;
}

.footer::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: min(720px, 78vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(199,216,206,0.7), rgba(213,166,206,0.36), transparent);
  box-shadow: 0 0 24px rgba(155,184,165,0.18);
}

.footer-inner {
  position: relative;
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  gap: 44px 56px;
  align-items: start;
  padding-top: 58px;
}

.footer-orb {
  position: absolute;
  right: clamp(18px, 7vw, 110px);
  top: 44px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(155,184,165,0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(231,236,233,0.16), transparent 18%),
    radial-gradient(circle at 56% 56%, rgba(155,184,165,0.12), transparent 34%),
    rgba(255,255,255,0.018);
  filter: blur(0.2px);
  opacity: 0.72;
  animation: footerOrbFloat 9s ease-in-out infinite;
}

.footer-orb::before,
.footer-orb::after {
  content: '';
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.footer-orb::before {
  inset: 26px;
  border: 1px solid rgba(199,216,206,0.12);
}

.footer-orb::after {
  inset: -18px;
  border: 1px solid rgba(213,166,206,0.08);
}

@keyframes footerOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-10px, 12px, 0) rotate(8deg); }
}

.footer-main {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.footer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(120,211,156,0.08);
}

.footer-title {
  display: block;
  max-width: 780px;
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: var(--text);
  transition: color 0.25s var(--ease), transform 0.35s var(--ease);
}

.footer-title em {
  display: block;
  font-style: italic;
  color: transparent;
  background: linear-gradient(115deg, var(--accent), var(--accent-2), #d5a6ce);
  -webkit-background-clip: text;
  background-clip: text;
}

.footer-title:hover {
  transform: translateY(-4px);
}

.footer-side {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: end;
  min-width: 260px;
}

.footer-portrait-wrap {
  pointer-events: none;
}

.footer-portrait {
  width: clamp(210px, 22vw, 360px);
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  opacity: 0.92;
  filter:
    drop-shadow(0 30px 70px rgba(0,0,0,0.42))
    drop-shadow(0 0 34px rgba(155,184,165,0.08));
  transform: translateY(36px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(220,231,226,0.08);
}

.footer-copy,
.footer-made {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .footer-orb {
    animation: none !important;
  }
}

/* ══════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: min(90vh, 820px);
  overflow: hidden;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--text-3);
  z-index: 1;
  transition: color 0.2s, border-color 0.2s;
}
.modal-close:hover { color: var(--text); border-color: var(--text); }
.modal-gallery {
  width: 100%;
  aspect-ratio: 16/8.5;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: var(--bg-3);
  position: relative;
  flex-shrink: 0;
}
.modal-gallery img { width: 100%; height: 100%; }

.modal-gallery-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-fit: cover;
  filter: blur(46px) saturate(1.4) brightness(0.65);
  transform: scale(1.3);
  opacity: 0.9;
}

.modal-gallery-fg {
  position: relative;
  z-index: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
}
.modal-gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--text-3);
}
/* gallery nav */
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--text);
  transition: background 0.2s;
  z-index: 2;
}
.gallery-btn:hover { background: rgba(0,0,0,0.8); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
}
.gallery-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.2s, width 0.2s;
}
.gallery-dot.active { background: white; width: 18px; border-radius: 3px; }

.modal-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: none;
}

.modal-body::-webkit-scrollbar {
  display: none;
}

.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
}
.modal-desc {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.75;
  scrollbar-width: none;
}

.modal-desc::-webkit-scrollbar {
  display: none;
}

.modal-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ══════════════════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* stagger children that are .reveal */
.hero-content .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.32s; }
.hero-content .reveal:nth-child(5) { transition-delay: 0.4s; }
.hero-photo-wrap.reveal           { transition-delay: 0.2s; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hero-showcase-inner {
    width: min(100%, 840px);
  }

  .hero-display {
    font-size: clamp(5rem, 10vw, 8.4rem);
  }

  .hero-script {
    right: -44px;
  }
}

@media (max-width: 900px) {
  .nav {
    padding: 0 20px;
    justify-content: flex-end;
  }

  .nav.scrolled {
    background: transparent;
    backdrop-filter: none;
    border-color: transparent;
  }

  .nav-logo {
    display: none;
  }

  .nav-logo-svg,
  .nav-logo-img {
    transition:
      opacity 0.35s var(--ease),
      transform 0.35s var(--ease),
      filter 0.35s var(--ease);
  }

  .nav.scrolled .nav-logo-svg,
  .nav.scrolled .nav-logo-img {
    opacity: 0.6;
    transform: scale(0.95);
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 102;
    background: rgba(13,17,16,0.62);
    backdrop-filter: blur(14px);
    border-color: rgba(220,231,226,0.18);
  }

  .nav-menu {
    position: fixed;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 76px 24px 24px;
    border: 1px solid var(--border-2);
    border-radius: 24px;
    background: rgba(13,17,16,0.94);
    backdrop-filter: blur(24px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-18px) scale(0.96);
    transition:
      opacity 0.35s var(--ease),
      transform 0.35s var(--ease);
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.35s var(--ease),
      transform 0.35s var(--ease),
      color 0.2s;
  }

  .nav-links a::after {
    content: '↗';
    color: var(--text-3);
    font-size: 0.75rem;
  }

  .nav-menu.is-open .nav-links a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.is-open .nav-links li:nth-child(1) a { transition-delay: 0.06s; }
  .nav-menu.is-open .nav-links li:nth-child(2) a { transition-delay: 0.11s; }
  .nav-menu.is-open .nav-links li:nth-child(3) a { transition-delay: 0.16s; }
  .nav-menu.is-open .nav-links li:nth-child(4) a { transition-delay: 0.21s; }

  .nav-cta {
    justify-content: center;
    text-align: center;
    padding: 13px 20px;
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.35s var(--ease) 0.26s,
      transform 0.35s var(--ease) 0.26s,
      background 0.2s;
  }

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

  body.nav-open {
    overflow: hidden;
  }

  .hero-showcase {
    min-height: 100svh;
    padding: calc(var(--nav-h) + 28px) 22px 118px;
    align-items: flex-start;
  }

  .hero-showcase-inner {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
    text-align: center;
    margin-top: 72px;
  }

  .hero-kicker {
    justify-content: center;
    margin-left: 0;
  }

  .hero-display {
    font-size: clamp(5.6rem, 28vw, 8.4rem);
    line-height: 0.74;
    text-align: center;
  }

  .hero-display-line {
    margin-inline: auto;
  }

  .hero-display-line-2 {
    margin-left: auto;
  }

  .hero-script {
    right: 50%;
    bottom: -28px;
    transform: translateX(50%) rotate(-8deg);
    font-size: clamp(2.1rem, 12vw, 4rem);
  }

  .hero-subtitle {
    margin: 44px auto 0;
    max-width: 340px;
  }

  .hero-showcase-actions {
    justify-content: center;
    margin-left: 0;
  }

  .hero-author-pill {
    width: min(100%, 280px);
    height: 74px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 24px;
    padding: 8px 22px 8px 8px;
  }

  .hero-author-text {
    writing-mode: initial;
    transform: none;
    flex: initial;
    flex-direction: row;
    gap: 6px;
    font-size: 0.85rem;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .hero-showcase-bottom {
    left: 22px;
    right: 22px;
    bottom: 24px;
    width: auto;
    max-width: none;
    transform: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .hero-meta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-direction: column;
    text-align: center;
  }

  .hero-available,
  .hero-location-chip {
    width: fit-content;
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-social-list {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .scroll-down {
    display: none;
  }

  .container {
    width: min(100% - 48px, 1360px);
    max-width: none;
    padding: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projects-showcase {
    gap: 56px;
  }

  .projects-featured-stack {
    gap: 58px;
  }

  .project-editorial,
  .project-editorial.is-reversed {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: auto;
  }

  .project-editorial.is-reversed .project-editorial-content,
  .project-editorial.is-reversed .project-editorial-media {
    grid-column: auto;
    grid-row: auto;
  }

  .project-editorial-content {
    order: 1;
  }

  .project-editorial-media {
    order: 2;
    transform: none;
    border-radius: 22px;
  }

  .project-editorial.is-reversed .project-editorial-media {
    transform: none;
  }

  .project-editorial:hover .project-editorial-media {
    transform: translateY(-4px);
  }

  .project-editorial-number {
    top: -54px;
    left: -4px;
  }

  .project-editorial-title {
    font-size: clamp(2.5rem, 13vw, 4.4rem);
  }

  .project-editorial-desc {
    margin-top: 18px;
  }

  .projects-archive-list {
    height: 430px;
    max-height: 430px;
    padding-right: 8px;
  }

  .projects-archive-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-archive-row {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .project-archive-row .project-stack,
  .project-archive-links {
    display: none;
  }

  .project-archive-thumb {
    width: 72px;
  }

  .project-archive-arrow {
    justify-self: end;
  }

  .skill-lane {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0;
  }

  .skill-lane-header {
    grid-template-columns: auto 1fr;
  }

  .skill-lane-track {
    justify-content: flex-start;
  }

  .skill-lane-track.is-static {
    justify-content: flex-start;
  }

  .skill-marquee {
    -webkit-mask-image:
      linear-gradient(
        90deg,
        transparent 0%,
        black 7%,
        black 93%,
        transparent 100%
      );
    mask-image:
      linear-gradient(
        90deg,
        transparent 0%,
        black 7%,
        black 93%,
        transparent 100%
      );
  }

  .skill-lane-index {
    height: 34px;
    width: 3px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 34px;
    padding-top: 44px;
    text-align: center;
  }

  .footer-side {
    justify-self: center;
    min-width: 0;
  }

  .footer-portrait {
    width: min(260px, 72vw);
    transform: translateY(18px);
    object-position: center bottom;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-orb {
    left: 50%;
    right: auto;
    top: 72px;
    transform: translateX(-50%);
    opacity: 0.34;
  }
}

@media (max-width: 600px) {

  .container {
    width: min(100% - 36px, 1360px);
  }

  .section {
    padding: 96px 0;
    overflow: hidden;
  }

  .section::after {
    left: -40vw;
    width: 40vw;
    height: 2px;
    animation-duration: 8s;
  }
  
  .hero-showcase {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-display {
    font-size: clamp(7rem, 27vw, 9.2rem);
    line-height: 0.74;
  }

  .hero-kicker p {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .hero-showcase-actions {
    width: 100%;
  }

  .hero-showcase-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-social-list {
    width: 100%;
  }

  .social-icon-link {
    width: 38px;
    height: 38px;
  }

  .social-icon-link i {
    font-size: 0.92rem;
  }
    .projects-header {
    margin-bottom: 48px;
  }

  .projects-showcase {
    gap: 48px;
  }

  .projects-featured-stack {
    gap: 50px;
  }

  .project-editorial {
    padding: 8px 0;
  }

  .project-editorial-title {
    font-size: clamp(2.3rem, 15vw, 3.9rem);
  }

  .project-editorial-links {
    width: 100%;
  }

  .project-editorial-links .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .projects-archive-list {
    height: 390px;
    max-height: 390px;
  }

  .project-archive-row {
    grid-template-columns: 1fr auto;
  }

  .project-archive-thumb {
    display: none;
  }

  .project-archive-desc {
    -webkit-line-clamp: 2;
  }

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

  .footer {
    padding-bottom: 28px;
  }

  .footer-title {
    font-size: clamp(3rem, 17vw, 5.4rem);
  }

  .footer-links {
    gap: 12px 16px;
  }


  .skills-container {
    margin-top: 44px;
    gap: 18px;
  }

  .skill-lane {
    gap: 16px;
    padding: 22px 0;
  }

  .skill-marquee-track {
    gap: 8px;
  }

  .skill-lane-track {
    gap: 8px;
  }

  .skill-pill {
    min-height: 39px;
    padding: 8px 13px 8px 9px;
  }

  .skill-icon {
    width: 23px;
    height: 23px;
  }

  .skill-icon img {
    width: 15px;
    height: 15px;
  }

  .skill-name {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .hero-showcase::before,
  .hero-showcase::after,
  .hero-showcase .hero-bg::after,
  .hero-blob,
  .hero-display-line,
  .hero-display::after,
  .section::after {
    animation: none !important;
  }

  .hero-display-line {
    opacity: 1;
    transform: none;
    filter: none;
  }
}