/* -------------------------------------------------------------
 * Dr. Ethan Nanev - Portfolio Stylesheet
 * Elegant glassmorphism, responsive grid layouts, custom scrollbar
 * ------------------------------------------------------------- */

/* Custom Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* HSL Color System */
  --bg-primary: 30, 7%, 7%;          /* Warm charcoal foundation */
  --bg-secondary: 30, 6%, 11%;       /* Muted charcoal surfaces */
  --bg-tertiary: 32, 6%, 17%;        /* Warm stone accents */
  
  --text-primary: 38, 18%, 92%;      /* Soft ivory */
  --text-secondary: 34, 8%, 70%;     /* Warm grey */
  --text-muted: 30, 6%, 48%;         /* Muted stone */
  
  --accent-gold: 33, 42%, 53%;        /* Brushed brass */
  --accent-gold-hover: 34, 44%, 60%;  /* Illuminated brass */
  --accent-gold-muted: 31, 34%, 32%;  /* Deep bronze */
  --brass-light: #C8A06A;
  --brass-mid: #B98B54;
  --brass-deep: #A97846;
  --brass-shadow: #8F6339;
  
  --border-color: 240, 8%, 18%;      /* Grid line / border color */
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-glow: rgba(199, 153, 82, 0.15); /* Gold glow */
  --glass-surface: rgba(24, 24, 29, 0.58);
  --glass-surface-strong: rgba(18, 18, 22, 0.78);
  --glass-blur: 18px;
  
  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-interface: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar-width: 228px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 902;
  pointer-events: none;
  opacity: 0.026;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 903;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 56%, rgba(8, 7, 6, 0.012) 76%, rgba(8, 7, 6, 0.052) 100%);
}

body {
  position: relative;
  background-color: hsl(var(--bg-primary));
  color: hsl(var(--text-primary));
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at 72% 8%, rgba(92, 77, 59, 0.14), transparent 38%),
    linear-gradient(128deg, #151412 0%, #11100f 48%, #0d0c0b 100%);
  background-size: cover;
}

body::before {
  content: '';
  position: fixed;
  inset: -8% -12%;
  z-index: 900;
  pointer-events: none;
  background:
    conic-gradient(
      from 202deg at 108% 5%,
      transparent 0deg,
      rgba(241, 219, 181, 0.045) 8deg,
      rgba(232, 199, 147, 0.16) 22deg,
      rgba(215, 173, 111, 0.105) 39deg,
      rgba(199, 153, 82, 0.04) 56deg,
      transparent 72deg
    ),
    radial-gradient(ellipse at 106% 5%, rgba(248, 228, 193, 0.15) 0%, rgba(213, 171, 108, 0.052) 11%, transparent 29%);
  filter: blur(52px);
  mix-blend-mode: screen;
  transform: translateZ(0);
  transform-origin: 100% 12%;
  animation: lensBreathing 16s var(--ease-luxury) infinite alternate;
  will-change: transform, opacity;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 901;
  pointer-events: none;
  opacity: 0.052;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 760 620' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f2dfbd'%3E%3Ccircle cx='640' cy='42' r='.45' opacity='.28'/%3E%3Ccircle cx='586' cy='118' r='.7' opacity='.46'/%3E%3Ccircle cx='704' cy='194' r='.38' opacity='.24'/%3E%3Ccircle cx='531' cy='267' r='.8' opacity='.38'/%3E%3Ccircle cx='668' cy='355' r='.5' opacity='.3'/%3E%3Ccircle cx='492' cy='438' r='.34' opacity='.2'/%3E%3Ccircle cx='612' cy='542' r='.62' opacity='.4'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 520 700' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ead3ae'%3E%3Ccircle cx='438' cy='78' r='.3' opacity='.25'/%3E%3Ccircle cx='366' cy='224' r='.52' opacity='.32'/%3E%3Ccircle cx='477' cy='392' r='.28' opacity='.2'/%3E%3Ccircle cx='319' cy='566' r='.65' opacity='.3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 760px 620px, 520px 700px;
  mask-image: radial-gradient(ellipse at 106% 10%, #000 0%, rgba(0, 0, 0, 0.9) 24%, rgba(0, 0, 0, 0.35) 50%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 106% 10%, #000 0%, rgba(0, 0, 0, 0.9) 24%, rgba(0, 0, 0, 0.35) 50%, transparent 76%);
  animation: projectorDust 24s linear infinite;
}

@keyframes globalDustDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-0.7%, 0.35%, 0); }
}

@keyframes lensBreathing {
  0% { opacity: 0.988; transform: translateZ(0) scaleX(0.996) scaleY(0.999); }
  50% { opacity: 1; }
  100% { opacity: 0.992; transform: translateZ(0) scaleX(1.006) scaleY(1.001); }
}

@keyframes projectorDust {
  from { background-position: 0 -80px, 0 -35px; }
  to { background-position: -18px 540px, 24px 665px; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: hsl(var(--bg-primary));
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--accent-gold-muted));
  border-radius: 5px;
  border: 2px solid hsl(var(--bg-primary));
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--accent-gold));
}

/* Typography & Layout Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: hsl(var(--text-secondary));
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.section-container {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 110px) 0;
}

.section-title {
  font-family: var(--font-interface);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.05em;
  margin-bottom: 60px;
  position: relative;
  text-transform: uppercase;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: hsl(var(--accent-gold));
  margin: 15px 0 0;
}

/* -------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-interface);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-transform: uppercase;
}

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

.btn-primary:hover {
  background-color: hsl(var(--accent-gold-hover));
  border-color: hsl(var(--accent-gold-hover));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsla(var(--accent-gold), 0.25);
}

.btn-outline {
  background-color: transparent;
  color: hsl(var(--text-primary));
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: hsl(var(--text-primary));
  transform: translateY(-2px);
}

.btn-resume {
  font-size: 0.75rem;
  padding: 8px 18px;
  background-color: transparent;
  border: 1.5px solid hsl(var(--accent-gold));
  color: hsl(var(--accent-gold));
}

.btn-resume:hover {
  background-color: hsl(var(--accent-gold));
  color: hsl(var(--bg-primary));
  box-shadow: 0 4px 15px hsla(var(--accent-gold), 0.2);
}

/* -------------------------------------------------------------
 * Navigation Header
 * ------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100dvh;
  z-index: 1000;
  background-color: rgba(7, 7, 8, 0.91);
  border-right: 1px solid rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.site-header.scrolled {
  background-color: rgba(11, 11, 11, 0.94);
  border-bottom: 0;
  box-shadow: none;
}

.header-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: 42px 28px 32px;
}

.sidebar-brand { display: grid; gap: 5px; }
.sidebar-monogram { font-family: var(--font-heading); font-size: 2.82rem; line-height: 1; letter-spacing: -0.06em; }
.sidebar-name { font-family: var(--font-interface); font-size: 0.744rem; letter-spacing: 0.2em; text-transform: uppercase; color: hsla(var(--text-primary), 0.48); }
.sidebar-divider { height: 1px; margin: 30px 0 26px; background: rgba(255, 255, 255, 0.075); }
.sidebar-now { display: grid; gap: 7px; margin-bottom: 30px; }
.sidebar-now span { font-family: var(--font-interface); font-size: 0.672rem; letter-spacing: 0.16em; text-transform: uppercase; color: hsla(var(--accent-gold-hover), 0.48); }
.sidebar-now strong { font-family: var(--font-interface); font-size: 0.816rem; font-weight: 400; letter-spacing: 0.08em; color: hsla(var(--text-primary), 0.76); }

.nav-menu {
  display: block;
}

.nav-list {
  display: grid;
  list-style: none;
  gap: 2px;
}

.nav-link {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  min-height: 40px;
  font-family: var(--font-interface);
  font-weight: 400;
  font-size: 0.816rem;
  letter-spacing: 0.055em;
  color: hsla(var(--text-primary), 0.35);
  position: relative;
  padding: 5px 0;
}

.nav-link::before { content: attr(data-index); font-size: 0.624rem; letter-spacing: 0.08em; color: hsla(var(--text-primary), 0.22); transition: color 0.8s ease; }

.nav-link:hover {
  color: hsl(var(--text-primary));
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 0;
  background-color: hsl(var(--accent-gold));
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 1px;
  height: 55%;
}

.nav-link.active {
  color: hsl(var(--text-primary));
  background: linear-gradient(90deg, hsla(var(--accent-gold), 0.075), transparent 82%);
  text-shadow: 0 0 18px hsla(var(--accent-gold-hover), 0.22);
}

.nav-link.active::before { color: hsl(var(--accent-gold-hover)); text-shadow: 0 0 12px hsla(var(--accent-gold), 0.46); }
.nav-link.active::after { width: 1px; height: 55%; box-shadow: 0 0 14px 2px hsla(var(--accent-gold), 0.42); }

.sidebar-progress { position: absolute; top: 0; right: -1px; width: 1px; height: 100%; background: transparent; overflow: hidden; }
.sidebar-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent, hsl(var(--accent-gold-hover))); transform: scaleY(var(--page-progress, 0)); transform-origin: top; transition: transform 0.16s linear; }
.sidebar-socials { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-wrap: wrap; gap: 12px 16px; }
.sidebar-socials a { font-family: var(--font-interface); font-size: 0.684rem; letter-spacing: 0.08em; color: hsla(var(--text-primary), 0.36); }
.sidebar-socials a:hover, .sidebar-socials a:focus-visible { color: hsl(var(--accent-gold-hover)); transform: translateY(-2px); }

main,
.site-footer { margin-left: var(--sidebar-width); }

.editorial-label {
  margin-bottom: 22px;
  font-family: var(--font-interface);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsla(var(--accent-gold-hover), 0.52);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}

/* -------------------------------------------------------------
 * Hero Section
 * ------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: clamp(120px, 15vh, 180px) max(24px, calc((100vw - 1200px) / 2)) 32px;
  text-align: left;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: none;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 900 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f4ecdd'%3E%3Ccircle cx='714' cy='86' r='1' opacity='.55'/%3E%3Ccircle cx='653' cy='147' r='.7' opacity='.4'/%3E%3Ccircle cx='778' cy='191' r='1.1' opacity='.35'/%3E%3Ccircle cx='586' cy='226' r='.65' opacity='.45'/%3E%3Ccircle cx='690' cy='278' r='.8' opacity='.3'/%3E%3Ccircle cx='531' cy='322' r='1' opacity='.28'/%3E%3Ccircle cx='617' cy='384' r='.6' opacity='.42'/%3E%3Ccircle cx='472' cy='418' r='.75' opacity='.3'/%3E%3Ccircle cx='555' cy='493' r='.55' opacity='.36'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  background-size: cover, 180px 180px;
  mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.8) 32%, transparent 82%);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.8) 32%, transparent 82%);
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: 2;
  pointer-events: none;
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1200px, 100%);
  opacity: calc(1 - var(--hero-exit, 0));
  transform: translateY(calc(var(--hero-exit, 0) * -24px));
  will-change: opacity, transform;
}

.hero-copy {
  width: min(58vw, 740px);
}

.hero-heading-group {
  margin-bottom: clamp(30px, 5vh, 52px);
  opacity: 0;
  animation: heroFadeUp 1.05s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-kicker {
  margin-bottom: clamp(34px, 5vh, 58px);
  font-family: var(--font-interface);
  font-size: 1.44rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsla(var(--text-primary), 0.74);
}

.hero-title {
  max-width: 11ch;
  font-size: clamp(3.8rem, 6.8vw, 7rem);
  font-weight: 600;
  line-height: 0.94;
  margin-bottom: 0;
  color: hsl(var(--text-primary));
  font-family: var(--font-heading);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-title span {
  display: block;
}

.bio-text {
  max-width: 470px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
  color: hsl(var(--text-secondary));
  opacity: 0;
  animation: heroFadeUp 1s 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: clamp(32px, 5vh, 48px);
  opacity: 0;
  animation: heroFadeUp 1s 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cta .btn {
  min-width: 164px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

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

/* -------------------------------------------------------------
 * The Builder
 * ------------------------------------------------------------- */
.builder-section {
  position: relative;
  min-height: auto;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.builder-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  display: none;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 900 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f4ecdd'%3E%3Ccircle cx='735' cy='62' r='.8' opacity='.45'/%3E%3Ccircle cx='666' cy='141' r='.55' opacity='.32'/%3E%3Ccircle cx='794' cy='207' r='.9' opacity='.38'/%3E%3Ccircle cx='615' cy='276' r='.65' opacity='.3'/%3E%3Ccircle cx='704' cy='348' r='.75' opacity='.42'/%3E%3Ccircle cx='548' cy='412' r='.55' opacity='.28'/%3E%3Ccircle cx='641' cy='512' r='.7' opacity='.34'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  background-size: cover, 180px 180px;
  mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.75) 30%, transparent 82%);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.75) 30%, transparent 82%);
}

.builder-section::after {
  content: '';
  position: absolute;
  inset: -14%;
  z-index: -1;
  pointer-events: none;
  display: none;
}

.builder-container {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
  padding: clamp(40px, 4vw, 56px) 0 30px;
  opacity: calc(1 - var(--builder-exit, 0));
  transform: translateY(calc(var(--builder-exit, 0) * -26px));
  will-change: opacity, transform;
}

.builder-intro {
  margin-bottom: clamp(64px, 8vw, 108px);
}

.builder-heading {
  max-width: 10ch;
  margin-bottom: clamp(34px, 4vw, 52px);
  font-family: var(--font-heading);
  font-size: clamp(4.6rem, 9vw, 9rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: hsl(var(--text-primary));
}

.builder-copy {
  max-width: 620px;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.8;
  color: hsla(var(--text-primary), 0.68);
}

.builder-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.builder-card {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  min-height: 300px;
  padding: clamp(30px, 3.2vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 248, 235, 0) 0%, transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 38%, rgba(0, 0, 0, 0.18) 100%),
    rgba(15, 15, 16, 0.88);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.65s ease, box-shadow 0.65s ease, backdrop-filter 0.65s ease;
}

.builder-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 240px at var(--spot-x) var(--spot-y), rgba(255, 248, 235, 0.17), transparent 68%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.builder-card:hover {
  transform: translateY(-9px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.44), 0 0 30px rgba(255, 255, 255, 0.025), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.builder-card:hover::after {
  opacity: 1;
}

.builder-card-number {
  display: block;
  margin-bottom: clamp(70px, 7vw, 104px);
  font-family: var(--font-interface);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: hsla(var(--accent-gold), 0.7);
}

.builder-card h3 {
  margin-bottom: 18px;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: hsl(var(--text-primary));
}

.builder-card p {
  max-width: 30ch;
  font-size: 0.95rem;
  line-height: 1.7;
  color: hsla(var(--text-primary), 0.58);
}

.builder-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.builder-copy.builder-reveal {
  transition-delay: 0.14s;
}

.builder-card:nth-child(1) { transition-delay: 0.24s; }
.builder-card:nth-child(2) { transition-delay: 0.36s; }
.builder-card:nth-child(3) { transition-delay: 0.48s; }

/* -------------------------------------------------------------
 * What I Bring Section
 * ------------------------------------------------------------- */
.bring-section {
  position: relative;
  background: transparent;
}

.bring-container {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
  padding: 30px 0;
}

.bring-intro {
  margin-bottom: clamp(70px, 8vw, 110px);
}

.bring-heading {
  margin-bottom: clamp(34px, 4vw, 52px);
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 8.5vw, 8.5rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: hsl(var(--text-primary));
}

.bring-lead {
  max-width: 620px;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.8;
  color: hsla(var(--text-primary), 0.64);
}

.bring-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  opacity: calc(1 - var(--section-exit, 0));
  translate: 0 calc(var(--section-exit, 0) * -26px);
  will-change: opacity, translate;
}

.bring-card {
  --bring-x: 50%;
  --bring-y: 50%;
  position: relative;
  min-height: 330px;
  padding: clamp(30px, 3.1vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.01) 44%, rgba(0, 0, 0, 0.16)),
    rgba(14, 14, 15, 0.87);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.65s ease, box-shadow 0.65s ease, backdrop-filter 0.65s ease;
}

.bring-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 240px at var(--bring-x) var(--bring-y), rgba(255, 248, 236, 0.17), transparent 68%);
  opacity: 0;
  transition: opacity 0.55s ease;
}

.bring-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.19);
  box-shadow: 0 40px 92px rgba(0, 0, 0, 0.42), 0 0 26px rgba(255, 255, 255, 0.025), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bring-card:hover::after {
  opacity: 1;
}

.bring-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 52px;
  color: hsla(var(--accent-gold), 0.72);
  filter: drop-shadow(0 0 0 transparent);
  transition: color 0.55s ease, filter 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.bring-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bring-card:hover .bring-icon {
  color: hsla(var(--accent-gold-hover), 0.94);
  filter: drop-shadow(0 0 12px hsla(var(--accent-gold), 0.2));
  transform: translateY(-2px);
}

.bring-label {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-interface);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsla(var(--text-primary), 0.38);
}

.bring-card h3 {
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.2vw, 2.3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: hsl(var(--text-primary));
}

.bring-card p {
  max-width: 34ch;
  font-size: 0.94rem;
  line-height: 1.7;
  color: hsla(var(--text-primary), 0.56);
}

.bring-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.bring-lead.bring-reveal { transition-delay: 0.14s; }
.bring-card:nth-child(1) { transition-delay: 0.22s; }
.bring-card:nth-child(2) { transition-delay: 0.3s; }
.bring-card:nth-child(3) { transition-delay: 0.38s; }
.bring-card:nth-child(4) { transition-delay: 0.46s; }
.bring-card:nth-child(5) { transition-delay: 0.54s; }
.bring-card:nth-child(6) { transition-delay: 0.62s; }

/* -------------------------------------------------------------
 * Selected Work
 * ------------------------------------------------------------- */
.selected-work-section {
  position: relative;
  background: transparent;
}

.work-intro {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
  padding: 30px 0 clamp(70px, 8vw, 110px);
}

.work-heading {
  margin-bottom: clamp(34px, 4vw, 52px);
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 8.5vw, 8.5rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: hsl(var(--text-primary));
}

.work-lead {
  max-width: 640px;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.8;
  color: hsla(var(--text-primary), 0.64);
}

.work-carousel {
  width: min(100% - 48px, 1100px);
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: clamp(74px, 8vw, 110px);
  touch-action: pan-y;
  cursor: grab;
  perspective: 1600px;
  opacity: calc(1 - var(--section-exit, 0));
  translate: 0 calc(var(--section-exit, 0) * -26px);
  will-change: opacity, translate;
}

.work-track {
  --work-gap: clamp(18px, 2.4vw, 34px);
  display: flex;
  gap: var(--work-gap);
  padding-inline: 0;
  outline: none;
  transform: translate3d(var(--track-x, 0), 0, 0);
  transition: none;
  cursor: grab;
  user-select: none;
}

.work-track.is-dragging {
  cursor: grabbing;
  transition: none;
}

.work-track:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.18);
  outline-offset: 8px;
}

.work-slide {
  --slide-x: 50%;
  --slide-y: 50%;
  position: relative;
  flex: 0 0 min(32vw, 440px);
  min-height: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006) 45%, rgba(0, 0, 0, 0.16)), rgba(11, 11, 12, 0.86);
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
  opacity: 0.76;
  filter: blur(1.2px) brightness(0.78);
  transform: translateY(10px) translateZ(-40px) scale(0.95);
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.8s ease, box-shadow 0.8s ease;
}

.work-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle 250px at var(--slide-x) var(--slide-y), rgba(255, 248, 235, 0.17), transparent 68%);
  opacity: 0;
  transition: opacity 0.55s ease;
}

.work-slide > * {
  position: relative;
  z-index: 1;
}

.work-slide:hover::before {
  opacity: 1;
}

.work-slide.is-active {
  opacity: 1;
  filter: none;
  transform: translateY(-4px) translateZ(0) scale(1);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 52px 135px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.work-slide.is-active:hover {
  transform: translateY(-7px) translateZ(0) scale(1.01);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 58px 145px rgba(0, 0, 0, 0.54), 0 0 30px rgba(255, 255, 255, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.work-slide:not(.is-active):hover {
  opacity: 0.84;
  transform: translateY(5px) translateZ(-30px) scale(0.96);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 48px 125px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.work-slide.is-active:hover .work-visual {
  filter: brightness(1.05);
}

.work-visual {
  --work-x: 50%;
  --work-y: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: var(--work-placeholder, rgba(30, 27, 23, 0.92));
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s ease;
  opacity: 0.68;
  translate: 0 14px;
}

.work-slide.is-active .work-visual {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.85s 0.18s ease, translate 0.95s 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s ease;
}

.work-slide.is-active .work-visual::after {
  opacity: 0.18;
}

.work-slide.is-active .work-visual:hover::after {
  opacity: 1;
}

.work-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle 300px at var(--work-x) var(--work-y), rgba(255, 244, 224, 0.13), transparent 68%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.work-visual:hover {
  box-shadow: 0 52px 120px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.work-visual:hover::after {
  opacity: 1;
}

.work-visual img {
  width: 100%;
  height: 112%;
  display: block;
  object-fit: cover;
  transform: translateY(var(--parallax-y, -5%)) scale(1.001);
  filter: saturate(0.72) contrast(1.04) brightness(0.82);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.project-image.is-decoding {
  opacity: 0;
}

.project-image.is-decoded {
  opacity: 1;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-visual:hover img {
  transform: translateY(var(--parallax-y, -5%)) scale(1.03);
  filter: saturate(0.82) contrast(1.04) brightness(0.9);
}

.work-content {
  max-width: none;
  opacity: 0.42;
  transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-slide.is-active .work-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.work-number {
  display: block;
  margin-bottom: clamp(20px, 2vw, 30px);
  font-family: var(--font-interface);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: hsla(var(--accent-gold), 0.74);
}

.work-content h3 {
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: hsl(var(--text-primary));
}

.work-category {
  margin-bottom: 12px;
  font-family: var(--font-interface);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: hsla(var(--accent-gold), 0.76);
}

.work-description {
  margin-bottom: 20px;
  font-size: 0.82rem;
  line-height: 1.62;
  color: hsla(var(--text-primary), 0.6);
}

.work-details {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.work-details span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-interface);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: hsla(var(--text-primary), 0.38);
}

.work-details p {
  font-size: 0.72rem;
  line-height: 1.55;
  color: hsla(var(--text-primary), 0.56);
}

.work-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-interface);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: hsl(var(--text-primary));
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.55s ease, background-color 0.55s ease, box-shadow 0.55s ease;
}

.work-button:hover,
.work-button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), 0 0 22px rgba(255, 255, 255, 0.035);
}

.work-controls {
  width: min(100% - 48px, 960px);
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.work-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.work-progress span {
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.work-progress span::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: hsl(var(--accent-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-progress span.is-active::after {
  transform: scaleX(1);
}

.work-status {
  grid-column: 1 / -1;
  justify-self: center;
  font-family: var(--font-interface);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: hsla(var(--text-primary), 0.45);
}

.work-edge {
  font-family: var(--font-interface);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: hsla(var(--text-primary), 0.38);
}

.work-reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1), transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.selected-work-section .work-reveal {
  transition: none;
  will-change: opacity, transform;
}

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

.work-carousel.work-reveal.is-visible {
  opacity: calc(1 - var(--section-exit, 0));
  translate: 0 calc(var(--section-exit, 0) * -26px);
}

.work-lead.work-reveal {
  transition-delay: 0.14s;
}

/* -------------------------------------------------------------
 * My Process
 * ------------------------------------------------------------- */
.process-section {
  position: relative;
  background: transparent;
}

.process-container {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
  padding: 30px 0 clamp(120px, 13vw, 180px);
}

.process-intro {
  margin-bottom: clamp(80px, 9vw, 124px);
}

.process-heading {
  margin-bottom: clamp(34px, 4vw, 52px);
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 8.5vw, 8.5rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: hsl(var(--text-primary));
}

.process-lead {
  max-width: 620px;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.8;
  color: hsla(var(--text-primary), 0.64);
}

.process-timeline {
  --process-progress: 0;
  position: relative;
  opacity: calc(1 - var(--section-exit, 0));
  translate: 0 calc(var(--section-exit, 0) * -26px);
  will-change: opacity, translate;
}

.process-line {
  position: absolute;
  opacity: 0;
  transition: opacity 0.35s ease;
  top: 31px;
  left: 10%;
  right: 10%;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.process-timeline:hover .process-line,
.process-timeline:focus-within .process-line {
  opacity: 1;
}

.process-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, hsla(var(--accent-gold), 0.28), hsla(var(--accent-gold-hover), 0.92));
  box-shadow: 0 0 16px hsla(var(--accent-gold), 0.28);
  transform: scaleX(var(--process-progress));
  transform-origin: left;
  transition: transform 0.18s linear;
}

.process-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 34px);
  list-style: none;
}

.process-stage {
  position: relative;
  min-width: 0;
  outline: none;
  text-align: center;
}

.process-node {
  width: 62px;
  height: 62px;
  margin: 0 auto 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(12, 12, 13, 0.92);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-family: var(--font-interface);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  color: hsla(var(--text-primary), 0.46);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), color 0.65s ease, border-color 0.65s ease, box-shadow 0.65s ease, background-color 0.65s ease;
}

.process-stage h3 {
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: hsl(var(--text-primary));
}

.process-stage p {
  max-width: 27ch;
  margin: 0 auto;
  font-size: 0.86rem;
  line-height: 1.65;
  color: hsla(var(--text-primary), 0.56);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-stage:hover .process-node,
.process-stage:focus-visible .process-node,
.process-stage.is-active .process-node {
  transform: translateY(-4px) scale(1.04);
  color: hsl(var(--accent-gold-hover));
  border-color: hsla(var(--accent-gold-hover), 0.5);
  background: rgba(24, 21, 17, 0.94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42), 0 0 24px hsla(var(--accent-gold), 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.process-stage.is-preview p,
.process-stage:hover p,
.process-stage:focus-visible p,
.process-stage.is-active p {
  opacity: 1;
  transform: translateY(0);
}

.process-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.process-lead.process-reveal { transition-delay: 0.14s; }
.process-timeline.process-reveal { transition-delay: 0.24s; }

/* -------------------------------------------------------------
 * Skills Section
 * ------------------------------------------------------------- */
.skills-section {
  background-color: transparent;
  border-bottom: 0;
}

.capabilities-container {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
  padding: 30px 0 clamp(120px, 13vw, 180px);
}

.capabilities-intro {
  margin-bottom: clamp(64px, 7vw, 96px);
}

.capabilities-heading {
  margin-bottom: clamp(34px, 4vw, 52px);
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 8.5vw, 8.5rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: hsl(var(--text-primary));
}

.capabilities-lead {
  max-width: 620px;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.8;
  color: hsla(var(--text-primary), 0.64);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  opacity: calc(1 - var(--section-exit, 0));
  translate: 0 calc(var(--section-exit, 0) * -26px);
  will-change: opacity, translate;
}

.capability-card {
  --surface-x: 50%;
  --surface-y: 50%;
  position: relative;
  min-height: 340px;
  padding: clamp(32px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 20px;
  outline: none;
  background: linear-gradient(145deg, rgba(27, 27, 29, 0.78), rgba(12, 12, 13, 0.92));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.65s ease, box-shadow 0.65s ease, background-color 0.65s ease;
}

.capability-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle 300px at var(--surface-x) var(--surface-y), rgba(255, 241, 215, 0.14), transparent 68%);
  opacity: 0;
  transition: opacity 0.55s ease;
}

.capability-card > * {
  position: relative;
  z-index: 1;
}

.capability-card:hover,
.capability-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 239, 210, 0.24);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.capability-card:hover::before,
.capability-card:focus-visible::before {
  opacity: 1;
}

.capability-number {
  display: block;
  margin-bottom: clamp(44px, 6vw, 72px);
  font-family: var(--font-interface);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: hsla(var(--accent-gold-hover), 0.6);
}

.capability-card h3 {
  margin-bottom: 18px;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.5vw, 2.65rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: hsl(var(--text-primary));
}

.capability-card > p {
  max-width: 52ch;
  margin-bottom: 30px;
  font-size: 0.96rem;
  line-height: 1.7;
  color: hsla(var(--text-primary), 0.58);
}

.technology-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}

.technology-list li {
  min-height: 34px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-interface);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  color: hsla(var(--text-primary), 0.65);
  transition: color 0.5s ease, border-color 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
}

.capability-card:hover .technology-list li,
.capability-card:focus-visible .technology-list li {
  color: hsla(var(--text-primary), 0.88);
  border-color: rgba(255, 239, 210, 0.18);
  background: rgba(255, 245, 225, 0.045);
  box-shadow: 0 0 18px rgba(199, 151, 91, 0.045);
}

.capability-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.capabilities-lead.capability-reveal { transition-delay: 0.1s; }
.capability-card:nth-child(1) { transition-delay: 0.08s; }
.capability-card:nth-child(2) { transition-delay: 0.16s; }
.capability-card:nth-child(3) { transition-delay: 0.24s; }
.capability-card:nth-child(4) { transition-delay: 0.32s; }

/* -------------------------------------------------------------
 * Contact & Footer Section
 * ------------------------------------------------------------- */
.contact-section {
  position: relative;
  background-color: transparent;
  border-bottom: 0;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 3% -10% 0 35%;
  pointer-events: none;
  background: radial-gradient(ellipse at 62% 36%, rgba(198, 151, 94, 0.13), rgba(91, 66, 39, 0.045) 30%, transparent 68%);
  filter: blur(34px);
  animation: closingGlow 9s ease-in-out infinite alternate;
}

.contact-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(255, 241, 215, 0.52) 0 0.6px, transparent 0.8px);
  background-size: 73px 83px;
  mask-image: linear-gradient(to bottom, transparent, black 22%, black 72%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 22%, black 72%, transparent);
  animation: closingDust 18s linear infinite;
}

.closing-container {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1120px);
  min-height: 92vh;
  margin: 0 auto;
  padding: clamp(120px, 14vw, 190px) 0 96px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.contact-heading {
  margin-bottom: clamp(30px, 4vw, 46px);
  font-family: var(--font-heading);
  font-size: clamp(4.2rem, 9vw, 8.6rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: hsl(var(--text-primary));
  text-shadow: 0 0 80px rgba(210, 169, 112, 0.11);
}

.contact-text {
  max-width: 620px;
  margin: 0 auto clamp(42px, 5vw, 58px);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.8;
  color: hsla(var(--text-primary), 0.64);
}

.conversation-button {
  min-height: 56px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  gap: 34px;
  border: 1px solid rgba(255, 237, 205, 0.27);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 12px 34px rgba(0, 0, 0, 0.25);
  font-family: var(--font-interface);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: hsla(var(--text-primary), 0.9);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.55s ease, box-shadow 0.55s ease, background-color 0.55s ease;
}

.conversation-button:hover,
.conversation-button:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 229, 184, 0.55);
  background: rgba(22, 19, 16, 0.86);
  box-shadow: 0 0 26px rgba(205, 157, 96, 0.13), 0 20px 45px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.contact-links {
  width: min(100%, 780px);
  margin-top: clamp(88px, 10vw, 132px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-links a {
  position: relative;
  min-height: 110px;
  padding: 25px 22px;
  display: grid;
  align-content: center;
  gap: 10px;
  color: hsla(var(--text-primary), 0.58);
  transition: color 0.5s ease, background-color 0.5s ease;
}

.contact-links a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-links a span:first-child {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: hsla(var(--text-primary), 0.9);
}

.contact-links a span:last-child {
  font-family: var(--font-interface);
  font-size: 0.64rem;
  letter-spacing: 0.055em;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: hsl(var(--accent-gold-hover));
  background: rgba(255, 245, 225, 0.025);
}

.availability-card {
  --surface-x: 50%;
  --surface-y: 50%;
  position: relative;
  width: min(100%, 580px);
  margin-top: clamp(66px, 8vw, 100px);
  padding: 28px 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(24, 24, 25, 0.62), rgba(11, 11, 12, 0.84));
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  text-align: left;
}

.availability-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 260px at var(--surface-x) var(--surface-y), rgba(255, 241, 215, 0.12), transparent 68%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.availability-card:hover::before { opacity: 1; }

.availability-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.availability-heading h3 {
  font-family: var(--font-interface);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsla(var(--text-primary), 0.82);
}

.availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--accent-gold-hover));
  box-shadow: 0 0 13px hsla(var(--accent-gold), 0.55);
}

.availability-card > p {
  position: relative;
  margin-bottom: 20px;
  font-size: 0.87rem;
  color: hsla(var(--text-primary), 0.48);
}

.availability-card ul {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}

.availability-card li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  font-family: var(--font-interface);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: hsla(var(--text-primary), 0.62);
}

.closing-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.closing-reveal.is-visible { opacity: 1; transform: translateY(0); }
.contact-text.closing-reveal { transition-delay: 0.1s; }
.conversation-button.closing-reveal { transition-delay: 0.18s; }
.contact-links.closing-reveal { transition-delay: 0.26s; }
.availability-card.closing-reveal { transition-delay: 0.34s; }

.site-footer {
  position: relative;
  background-color: transparent;
  padding: 58px 24px 52px;
  border-top: 0;
  text-align: center;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: -150px 0 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(6, 6, 7, 0.82) 52%, #060607 100%);
}

.footer-container p {
  font-family: var(--font-interface);
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
  letter-spacing: 0.05em;
}

@keyframes closingGlow {
  from { opacity: 0.62; transform: translate3d(2%, -1%, 0); }
  to { opacity: 0.92; transform: translate3d(-2%, 2%, 0); }
}

@keyframes closingDust {
  to { background-position: 18px -42px; }
}

/* -------------------------------------------------------------
 * Environmental Light Narrative
 * Warm physical surfaces let the projector light evolve by scene.
 * ------------------------------------------------------------- */
.editorial-label,
.builder-card-number,
.bring-label,
.work-number,
.work-category,
.work-details span,
.capability-number,
.sidebar-now span,
.availability-heading h3 {
  color: transparent;
  background-image: linear-gradient(
    180deg,
    var(--brass-deep) 0%,
    var(--brass-mid) 38%,
    var(--brass-light) 52%,
    var(--brass-mid) 68%,
    var(--brass-shadow) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255, 235, 202, 0.055), 0 5px 16px rgba(169, 120, 70, 0.075);
  letter-spacing: 0.185em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-section .editorial-label,
.selected-work-section .editorial-label,
.selected-work-section .work-number,
.selected-work-section .work-category {
  filter: brightness(1.07);
}

.bring-section .editorial-label,
.process-section .editorial-label,
.contact-section .editorial-label {
  filter: brightness(0.94);
}

.nav-link.active {
  color: var(--brass-light);
  text-shadow: 0 1px 0 rgba(255, 235, 202, 0.06), 0 6px 18px rgba(169, 120, 70, 0.11);
  letter-spacing: 0.068em;
}

.nav-link.active::before {
  color: var(--brass-mid);
  text-shadow: 0 1px 0 rgba(255, 235, 202, 0.07), 0 5px 14px rgba(169, 120, 70, 0.1);
}

.process-stage:hover .process-node,
.process-stage:focus-visible .process-node,
.process-stage.is-active .process-node {
  color: var(--brass-light);
  text-shadow: 0 1px 0 rgba(255, 235, 202, 0.08), 0 5px 15px rgba(169, 120, 70, 0.1);
  letter-spacing: 0.15em;
}

.hero-section,
.builder-section,
.bring-section,
.selected-work-section,
.process-section,
.skills-section,
.contact-section {
  background-color: transparent;
  background-repeat: no-repeat;
}

.hero-section {
  background-image: none;
}

.hero-section::before {
  display: block;
  background-image:
    linear-gradient(116deg, transparent 0 43%, rgba(225, 193, 145, 0.035) 61%, rgba(238, 211, 168, 0.13) 100%),
    radial-gradient(ellipse at 104% 18%, rgba(239, 213, 174, 0.2), rgba(151, 119, 79, 0.06) 28%, transparent 61%),
    linear-gradient(to bottom, rgba(30, 28, 25, 0.26), transparent 84%);
  background-size: cover;
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.72) 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.72) 82%, transparent 100%);
}

.builder-section {
  background-image:
    radial-gradient(ellipse at 88% 34%, rgba(183, 151, 109, 0.095), transparent 48%),
    linear-gradient(to bottom, transparent 0%, rgba(45, 41, 36, 0.32) 30%, rgba(38, 35, 31, 0.24) 70%, transparent 100%);
}

.bring-section {
  background-image:
    radial-gradient(ellipse at 76% 56%, rgba(152, 126, 92, 0.07), transparent 52%),
    linear-gradient(to bottom, transparent, rgba(31, 29, 27, 0.22) 38%, rgba(33, 30, 27, 0.2) 72%, transparent);
}

.selected-work-section {
  background-image:
    radial-gradient(ellipse at 78% 46%, rgba(226, 193, 143, 0.12), rgba(126, 98, 66, 0.045) 35%, transparent 67%),
    linear-gradient(to bottom, transparent 0%, rgba(43, 39, 34, 0.27) 22%, rgba(30, 28, 25, 0.2) 78%, transparent 100%);
}

.process-section {
  background-image:
    radial-gradient(ellipse at 58% 48%, rgba(183, 157, 122, 0.085), transparent 62%),
    linear-gradient(to bottom, transparent, rgba(48, 44, 39, 0.25) 34%, rgba(42, 39, 35, 0.22) 72%, transparent);
}

.skills-section {
  background-image:
    radial-gradient(ellipse at 86% 38%, rgba(196, 159, 109, 0.085), transparent 53%),
    linear-gradient(to bottom, transparent, rgba(38, 35, 31, 0.25) 30%, rgba(31, 29, 27, 0.18) 76%, transparent);
}

.contact-section {
  background-image:
    radial-gradient(ellipse at 80% 24%, rgba(196, 157, 103, 0.1), transparent 49%),
    linear-gradient(to bottom, transparent 0%, rgba(34, 31, 28, 0.2) 32%, rgba(18, 17, 16, 0.58) 76%, rgba(10, 9, 9, 0.9) 100%);
}

.builder-card,
.bring-card,
.work-slide,
.capability-card,
.availability-card {
  border-color: rgba(242, 224, 196, 0.09);
}

/* Selected Work performance: keep entry and navigation on compositor-safe properties. */
.work-slide,
.work-slide.is-active,
.work-slide.is-active:hover,
.work-slide:not(.is-active):hover {
  filter: none;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition-property: opacity, transform;
  will-change: transform, opacity;
  transform-style: flat;
}

.work-slide::before,
.work-visual::after {
  display: none;
}

.work-visual,
.work-slide.is-active .work-visual,
.work-visual:hover {
  filter: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition-property: opacity, translate, transform;
  will-change: transform, opacity;
}

.work-visual img,
.work-visual:hover img {
  height: 100%;
  filter: none;
  transform: scale(1.001);
  transition-property: transform;
  will-change: transform;
}

.work-visual:hover img {
  transform: scale(1.025);
}

.work-visual .project-image.is-decoded {
  opacity: 1;
  transition-property: opacity, transform;
  transition-duration: 0.22s, 1.1s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.work-button {
  transition-property: transform, border-color, background-color;
}

.builder-card {
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 241, 216, 0) 0%, transparent 34%),
    linear-gradient(145deg, rgba(118, 99, 74, 0.085), rgba(44, 40, 35, 0.05) 42%, rgba(15, 14, 13, 0.2)),
    rgba(28, 26, 24, 0.88);
}

.bring-card {
  background:
    linear-gradient(145deg, rgba(113, 95, 73, 0.075), rgba(48, 43, 37, 0.04) 46%, rgba(14, 13, 12, 0.18)),
    rgba(26, 24, 22, 0.88);
}

.capability-card {
  background: linear-gradient(145deg, rgba(51, 46, 40, 0.88), rgba(23, 21, 19, 0.93));
}

.process-node {
  background: rgba(29, 27, 24, 0.94);
}

.site-header {
  background-color: rgba(18, 17, 15, 0.92);
}

.site-footer::before {
  background: linear-gradient(to bottom, transparent, rgba(16, 15, 14, 0.86) 48%, #0a0909 100%);
}

/* Cinematic exposure adaptation between chapters. */
.exposure-adaptation {
  position: fixed;
  inset: 0;
  z-index: 898;
  pointer-events: none;
  background: rgba(246, 228, 198, 0.32);
  mix-blend-mode: screen;
  opacity: 0.012;
  transition: opacity 0.42s var(--ease-luxury);
}

body::after {
  display: none;
}

.projector-dust {
  position: fixed;
  inset: -12%;
  z-index: 901;
  pointer-events: none;
  background-repeat: repeat;
  mask-image: radial-gradient(ellipse at 106% 10%, #000 0%, rgba(0, 0, 0, 0.86) 25%, rgba(0, 0, 0, 0.3) 50%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 106% 10%, #000 0%, rgba(0, 0, 0, 0.86) 25%, rgba(0, 0, 0, 0.3) 50%, transparent 76%);
  will-change: transform;
}

.dust-near {
  opacity: 0.05;
  background-size: 760px 620px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 760 620' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f2dfbd'%3E%3Ccircle cx='640' cy='42' r='.45' opacity='.28'/%3E%3Ccircle cx='586' cy='118' r='.7' opacity='.46'/%3E%3Ccircle cx='704' cy='194' r='.38' opacity='.24'/%3E%3Ccircle cx='531' cy='267' r='.8' opacity='.38'/%3E%3Ccircle cx='668' cy='355' r='.5' opacity='.3'/%3E%3Ccircle cx='492' cy='438' r='.34' opacity='.2'/%3E%3Ccircle cx='612' cy='542' r='.62' opacity='.4'/%3E%3C/g%3E%3C/svg%3E");
  animation: dustNearDrift 23s ease-in-out infinite alternate;
}

body::before {
  filter: none;
}

.dust-far {
  opacity: 0.032;
  background-size: 520px 700px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 520 700' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ead3ae'%3E%3Ccircle cx='438' cy='78' r='.3' opacity='.25'/%3E%3Ccircle cx='366' cy='224' r='.52' opacity='.32'/%3E%3Ccircle cx='477' cy='392' r='.28' opacity='.2'/%3E%3Ccircle cx='319' cy='566' r='.65' opacity='.3'/%3E%3C/g%3E%3C/svg%3E");
  animation: dustFarDrift 37s ease-in-out infinite alternate;
}

@keyframes dustNearDrift {
  from { transform: translate3d(0, -2.5%, 0); }
  to { transform: translate3d(-1.2%, 3.5%, 0); }
}

@keyframes dustFarDrift {
  from { transform: translate3d(-0.5%, -1.5%, 0); }
  to { transform: translate3d(1%, 2.5%, 0); }
}

body[data-scene="about"] .exposure-adaptation { opacity: 0.03; }
body[data-scene="builder"] .exposure-adaptation { opacity: 0.019; }
body[data-scene="what-i-bring"] .exposure-adaptation { opacity: 0.014; }
body[data-scene="projects"] .exposure-adaptation { opacity: 0.025; }
body[data-scene="process"] .exposure-adaptation { opacity: 0.018; }
body[data-scene="skills"] .exposure-adaptation { opacity: 0.013; }
body[data-scene="contact"] .exposure-adaptation { opacity: 0.005; }

/* Museum-glass reflection: one low-opacity, transform-only sweep. */
.work-visual::after {
  display: block;
  inset: -45% -65%;
  background: linear-gradient(118deg, transparent 40%, rgba(255, 244, 224, 0.075) 49%, rgba(255, 250, 240, 0.035) 52%, transparent 61%);
  opacity: 0.08;
  transform: translate3d(-58%, 20%, 0);
  transition: transform 0.6s var(--ease-luxury);
  will-change: transform;
}

.work-visual:hover::after {
  opacity: 0.08;
  transform: translate3d(58%, -20%, 0);
}

/* A restrained focus pull between the active and neighboring subjects. */
.work-slide .project-image.is-decoded {
  transition-property: opacity, transform, filter;
  transition-duration: 0.55s, 0.8s, 0.55s;
  transition-timing-function: var(--ease-luxury);
}

/* Final compositor budget overrides. */
.work-slide .project-image.is-decoded,
.work-slide:not(.is-active) .project-image.is-decoded,
.work-slide.is-active .project-image.is-decoded {
  filter: none;
  transition-property: opacity, transform;
}

.work-slide.is-active,
.work-slide.is-active:hover,
.work-slide:not(.is-active):hover,
.work-slide.is-active .work-visual,
.work-visual,
.work-visual:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  will-change: auto;
}

.work-track.is-dragging .work-slide {
  will-change: transform, opacity;
}

/* -------------------------------------------------------------
 * Continuous cinematic environment
 * Sections share one atmosphere, with no visual chapter breaks.
 * ------------------------------------------------------------- */
body {
  background: #11100e;
}

main {
  position: relative;
  isolation: isolate;
  background-color: transparent;
  background-image:
    radial-gradient(ellipse 78% 18% at 88% 7%, rgba(210, 174, 122, 0.105), transparent 70%),
    radial-gradient(ellipse 68% 16% at 18% 27%, rgba(102, 86, 66, 0.055), transparent 72%),
    radial-gradient(ellipse 76% 17% at 84% 47%, rgba(192, 151, 99, 0.075), transparent 72%),
    radial-gradient(ellipse 70% 16% at 28% 68%, rgba(91, 79, 63, 0.05), transparent 74%),
    radial-gradient(ellipse 82% 20% at 78% 88%, rgba(173, 132, 84, 0.065), transparent 74%),
    linear-gradient(132deg, #151310 0%, #12110f 34%, #100f0d 68%, #0d0c0b 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

main > section,
.hero-section,
.builder-section,
.bring-section,
.selected-work-section,
.process-section,
.skills-section,
.contact-section {
  position: relative;
  isolation: auto;
  overflow: visible;
  background: transparent !important;
  border-block: 0 !important;
  box-shadow: none !important;
}

main > section::before,
main > section::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hero-section {
  padding-top: clamp(112px, 13vh, 158px);
  padding-bottom: clamp(50px, 6vw, 76px);
}

.builder-container,
.bring-container,
.work-intro,
.process-container,
.capabilities-container,
.closing-container {
  padding-top: clamp(34px, 4.5vw, 62px);
  padding-bottom: clamp(48px, 6vw, 82px);
}

.builder-intro,
.bring-intro,
.process-intro,
.capabilities-intro {
  margin-bottom: clamp(44px, 5vw, 68px);
}

.work-intro {
  padding-bottom: clamp(38px, 4.5vw, 62px);
}

.work-carousel {
  padding-bottom: clamp(48px, 6vw, 78px);
}

.closing-container {
  min-height: auto;
}

.contact-links,
.contact-links a,
.sidebar-divider,
.sidebar-socials,
.site-footer,
.footer-container {
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.sidebar-divider {
  display: none;
}

.sidebar-socials {
  padding-top: 0;
}

.contact-links {
  margin-top: clamp(48px, 6vw, 76px);
}

.contact-links a {
  position: relative;
}

.contact-links a + a::before {
  content: none;
}

.site-footer {
  position: relative;
  margin: 0;
  padding-top: 20px;
  background: #0d0c0b;
}

.site-footer::before,
.site-footer::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 104px;
    padding-bottom: 40px;
  }

  .builder-container,
  .bring-container,
  .work-intro,
  .process-container,
  .capabilities-container,
  .closing-container {
    padding-top: 28px;
    padding-bottom: 58px;
  }

  .builder-intro,
  .bring-intro,
  .process-intro,
  .capabilities-intro {
    margin-bottom: 42px;
  }

  .work-intro {
    padding-bottom: 34px;
  }

  .work-carousel {
    padding-bottom: 54px;
  }

  .contact-links {
    margin-top: 48px;
  }
}

/* -------------------------------------------------------------
 * Performance restraint pass
 * One continuous motion (the projector); everything else reacts on demand.
 * ------------------------------------------------------------- */
.dust-near {
  opacity: 0.024;
  animation: none;
  transform: translate3d(-0.5%, 1%, 0);
  will-change: auto;
}

.work-visual::after {
  display: none;
}

.hero-section .editorial-label,
.selected-work-section .editorial-label,
.selected-work-section .work-number,
.selected-work-section .work-category,
.bring-section .editorial-label,
.process-section .editorial-label,
.contact-section .editorial-label,
.work-slide .project-image.is-decoded,
.work-slide:not(.is-active) .project-image.is-decoded,
.work-slide.is-active .project-image.is-decoded,
.bring-icon,
.bring-card:hover .bring-icon {
  filter: none;
}

.work-slide:not(.is-active) .project-image.is-decoded {
  opacity: 0.84;
  transform: scale(0.995);
}

.work-slide.is-active .project-image.is-decoded {
  opacity: 1;
  transform: scale(1.001);
}

.site-header,
.builder-card,
.builder-card:hover,
.bring-card,
.bring-card:hover {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.builder-card,
.bring-card,
.work-slide,
.capability-card,
.availability-card {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.builder-card:hover,
.bring-card:hover,
.work-slide.is-active:hover,
.capability-card:hover,
.capability-card:focus-visible {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.23);
}

.builder-container,
.bring-grid,
.process-timeline,
.capabilities-grid,
.work-slide,
.work-visual,
.work-visual img {
  will-change: auto;
}

.work-track.is-dragging .work-slide {
  will-change: transform, opacity;
}

.work-slide:not(.is-active) .project-image.is-decoded {
  opacity: 0.88;
  filter: none;
}

.work-slide.is-active .project-image.is-decoded {
  opacity: 1;
  filter: none;
}

/* Editorial framing keeps the mockups intentionally off-center. */
.project-coffee .project-image { object-position: 58% 50%; }
.project-portfolio .project-image { object-position: 46% 48%; }
.project-converter .project-image { object-position: 56% 52%; }

/* Short, soft contact shadows ground every elevated object. */
.builder-card,
.bring-card,
.work-slide,
.capability-card,
.availability-card {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22), 0 14px 30px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.builder-card:hover,
.bring-card:hover,
.work-slide.is-active:hover,
.capability-card:hover,
.capability-card:focus-visible {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24), 0 18px 36px rgba(0, 0, 0, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.builder-card,
.bring-card,
.work-slide,
.capability-card,
.conversation-button,
.work-button {
  transition-timing-function: var(--ease-luxury);
}

/* -------------------------------------------------------------
 * Animations
 * ------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -8px);
  }
  60% {
    transform: translate(-50%, -4px);
  }
}

/* Scroll Reveal classes */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* -------------------------------------------------------------
 * Responsive Media Queries (Mobile & Tablet)
 * ------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --sidebar-width: 190px; }

  .header-container { padding-inline: 22px; }

  .section-container {
    padding-block: 80px;
  }

  .builder-cards {
    grid-template-columns: 1fr;
  }

  .builder-card {
    min-height: 260px;
  }

  .builder-card-number {
    margin-bottom: 62px;
  }
  
  .bring-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .work-slide {
    flex-basis: min(62vw, 520px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .work-track {
    padding-inline: 14vw;
  }

  .work-content {
    max-width: 620px;
  }

  .capability-card {
    min-height: 320px;
  }
  
  .skills-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 30px;
  }
  
  .skills-divider {
    height: 1px;
    width: 100%;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .contact-left {
    padding-right: 0;
    text-align: center;
  }
  
  .contact-links-list {
    align-items: center;
  }
  
  .contact-right {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }

  main,
  .site-footer { margin-left: 0; }

  .site-header {
    width: 100%;
    height: 72px;
    border-right: 0;
  }

  body::before {
    opacity: 0.78;
    filter: blur(32px);
  }

  .header-container {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    height: 72px;
    padding: 14px max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
  }

  .site-header {
    background-color: rgba(18, 17, 15, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
  }

  .sidebar-brand {
    position: absolute;
    left: max(20px, env(safe-area-inset-left));
    display: block;
  }

  .sidebar-monogram { font-size: 2.22rem; }
  .sidebar-name,
  .sidebar-divider,
  .sidebar-now,
  .sidebar-progress,
  .sidebar-socials { display: none; }

  .hero-section {
    min-height: auto;
    padding: 112px max(24px, env(safe-area-inset-right)) 28px max(24px, env(safe-area-inset-left));
    text-align: left;
  }

  .hero-section::after {
    background: radial-gradient(ellipse at center, transparent 28%, rgba(0, 0, 0, 0.54) 80%, rgba(0, 0, 0, 0.76) 100%);
  }

  .hero-copy {
    width: min(100%, 620px);
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: clamp(3.4rem, 15vw, 5rem);
    line-height: 0.88;
  }

  .hero-kicker {
    line-height: 1.5;
  }

  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 72px);
    background-color: hsla(var(--bg-primary), 0.82);
    backdrop-filter: blur(24px) saturate(125%);
    -webkit-backdrop-filter: blur(24px) saturate(125%);
    padding: 40px 24px;
    border-top: 1px solid hsl(var(--border-color));
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 36px;
    align-items: center;
  }

  .nav-link {
    display: block;
    min-height: auto;
    font-size: 1.08rem;
    color: hsla(var(--text-primary), 0.58);
  }

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

  .nav-link::after {
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 1px;
  }

  .nav-link:hover::after,
  .nav-link.active::after { width: 26px; height: 1px; transform: translateX(-50%); }
  
  .nav-link {
    font-size: 1.1rem;
  }
  
  .btn-resume {
    margin-top: 10px;
    font-size: 0.95rem;
    padding: 12px 30px;
    width: 100%;
    max-width: 250px;
  }
  
  /* Hamburger Icon Styling */
  .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: hsl(var(--text-primary));
    position: relative;
    transition: var(--transition-fast);
  }
  
  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: hsl(var(--text-primary));
    transition: var(--transition-fast);
  }
  
  .hamburger::before {
    top: -8px;
  }
  
  .hamburger::after {
    bottom: -8px;
  }
  
  /* Hamburger Animation when Menu is Open */
  .mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
  }
  
  .mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }
  
  .mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-container {
    width: min(100% - 40px, 1320px);
    padding: 24px 0 100px;
  }

  .process-intro {
    margin-bottom: 64px;
  }

  .process-heading {
    font-size: clamp(3.7rem, 14vw, 6rem);
    margin-bottom: 30px;
  }

  .process-stages {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .process-line {
    top: 31px;
    right: auto;
    bottom: 31px;
    left: 31px;
    width: 1px;
    height: auto;
  }

  .process-line span {
    transform: scaleY(var(--process-progress));
    transform-origin: top;
  }

  .process-stage {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    column-gap: 24px;
    text-align: left;
  }

  .process-node {
    grid-row: 1 / 3;
    margin: 0;
  }

  .process-stage h3 {
    margin: 3px 0 10px;
  }

  .process-stage p {
    max-width: 46ch;
    margin: 0;
    opacity: 1;
    transform: none;
  }

  .capabilities-container {
    width: min(100% - 40px, 1320px);
    padding: 24px 0 100px;
  }

  .capabilities-intro {
    margin-bottom: 56px;
  }

  .capabilities-heading {
    font-size: clamp(3.7rem, 14vw, 6rem);
    margin-bottom: 30px;
  }

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

  .capability-card {
    min-height: 0;
  }

  .closing-container {
    width: min(100% - 40px, 1120px);
    min-height: auto;
    padding: 104px 0 76px;
  }

  .contact-heading {
    font-size: clamp(3.6rem, 15vw, 6rem);
  }

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

  .contact-links a {
    min-height: 92px;
  }

  .contact-links a + a {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 540px) {
  .section-container {
    width: min(100% - 36px, 1200px);
    padding-block: 64px;
  }

  .section-title,
  .contact-heading {
    font-size: clamp(1.65rem, 8vw, 2rem);
    margin-bottom: 40px;
  }

  .hero-section {
    min-height: auto;
    align-items: center;
    padding-inline: 18px;
  }

  .hero-title {
    font-size: clamp(3.25rem, 16.5vw, 4.6rem);
  }

  .hero-kicker {
    margin-bottom: 38px;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .builder-container {
    width: min(100% - 36px, 1320px);
    padding: 32px 0 24px;
  }

  .builder-heading {
    font-size: clamp(3.8rem, 19vw, 5.2rem);
  }

  .builder-copy {
    font-size: 1rem;
    line-height: 1.72;
  }

  .builder-card {
    min-height: 240px;
    padding: 28px 24px;
    border-radius: 15px;
  }

  .builder-card-number {
    margin-bottom: 50px;
  }

  .bring-container {
    width: min(100% - 36px, 1320px);
    padding: 24px 0;
  }

  .bring-heading {
    font-size: clamp(3.8rem, 18vw, 5.4rem);
  }

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

  .bring-card {
    min-height: 300px;
    padding: 28px 24px;
    border-radius: 15px;
  }

  .work-intro {
    width: min(100% - 36px, 1320px);
    padding: 24px 0 54px;
  }

  .work-heading {
    font-size: clamp(3.8rem, 18vw, 5.4rem);
  }

  .work-track {
    --work-gap: 16px;
    padding-inline: 8vw;
  }

  .work-slide {
    flex-basis: 84vw;
    padding: 20px;
    gap: 30px;
    border-radius: 16px;
  }

  .work-visual {
    border-radius: 14px;
  }

  .work-content h3 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .work-number {
    margin-bottom: 28px;
  }

  .work-controls {
    width: min(100% - 36px, 1320px);
  }

  .skills-wrapper {
    padding: 30px 18px;
  }

  .skills-grid {
    gap: 22px 12px;
  }

  .contact-text {
    font-size: 0.96rem;
  }

  .contact-link-item {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@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-reveal {
    opacity: 1;
    transform: none;
  }

  .builder-reveal {
    opacity: 1;
    transform: none;
  }

  .bring-reveal {
    opacity: 1;
    transform: none;
  }

  .work-reveal {
    opacity: 1;
    transform: none;
  }

  .process-reveal {
    opacity: 1;
    transform: none;
  }

  .capability-reveal {
    opacity: 1;
    transform: none;
  }

  .closing-reveal {
    opacity: 1;
    transform: none;
  }

  .hero-heading-group,
  .bio-text,
  .hero-cta {
    opacity: 1;
    transform: none;
  }

  .hero-content {
    opacity: 1;
    transform: none;
  }

  .builder-container {
    opacity: 1;
    transform: none;
  }

  .bring-grid,
  .work-carousel,
  .process-timeline,
  .capabilities-grid,
  .profile-image-container {
    opacity: 1;
    translate: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .site-header.scrolled,
  .nav-menu,
  .bring-card,
  .skills-wrapper {
    background-color: hsl(var(--bg-secondary));
  }
}

/* Keep the final cascade compositor-only after all responsive rules. */
.work-slide .project-image.is-decoded,
.work-slide:not(.is-active) .project-image.is-decoded,
.work-slide.is-active .project-image.is-decoded {
  filter: none;
  transition-property: opacity, transform;
}

.work-slide,
.work-slide.is-active,
.work-slide.is-active:hover,
.work-slide:not(.is-active):hover,
.work-slide.is-active .work-visual,
.work-visual,
.work-visual:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  will-change: auto;
}

.work-track.is-dragging .work-slide {
  will-change: transform, opacity;
}

/* Preserve the continuous rhythm after all small-screen overrides. */
@media (max-width: 768px) {
  main > section {
    background: transparent !important;
    border-block: 0 !important;
    box-shadow: none !important;
  }

  .hero-section {
    padding-top: 104px;
    padding-bottom: 40px;
  }

  .builder-container,
  .bring-container,
  .work-intro,
  .process-container,
  .capabilities-container,
  .closing-container {
    padding-top: 28px;
    padding-bottom: 58px;
  }

  .builder-intro,
  .bring-intro,
  .process-intro,
  .capabilities-intro {
    margin-bottom: 42px;
  }

  .work-intro {
    padding-bottom: 34px;
  }

  .work-carousel {
    padding-bottom: 54px;
  }
}
