/* ═══════════════════════════════════════════════
   RESET & TOKENS
═══════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-bg:       #fafaf9;
  --c-ink:      #0f0f0f;
  --c-ink-60:   rgba(15,15,15,.6);
  --c-ink-30:   rgba(15,15,15,.3);
  --c-ink-10:   rgba(15,15,15,.08);
  --c-accent:   #0f0f0f;
  --c-arch:     #1793d1;
  --c-border:   #e8e8e6;
  --c-overlay:  rgba(250,250,249,.97);
  --c-ink-hover:#2a2a2a;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --sz-hero-name:  clamp(4.5rem, 14vw, 13rem);
  --sz-section:    clamp(2.8rem, 6vw, 5.5rem);
  --sz-quote:      clamp(1.8rem, 3.5vw, 3.2rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 72px;
  --section-gap: clamp(7rem, 14vw, 14rem);
  --container: 1200px;
  --pad-x: clamp(1.5rem, 5vw, 5rem);
}

[data-theme="dark"] {
  --c-bg:       #121212;
  --c-ink:      #f5f5f5;
  --c-ink-60:   rgba(245,245,245,.6);
  --c-ink-30:   rgba(245,245,245,.3);
  --c-ink-10:   rgba(245,245,245,.08);
  --c-accent:   #f5f5f5;
  --c-border:   #2a2a2a;
  --c-overlay:  rgba(18,18,18,.97);
  --c-ink-hover:#e0e0e0;
}

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

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 99px; }

/* ═══════════════════════════════════════════════
   THEME TRANSITION OVERLAY
═══════════════════════════════════════════════ */
.theme-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: var(--c-bg);
  clip-path: circle(0% at var(--toggle-x, 50%) var(--toggle-y, 50%));
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: clip-path;
}

.theme-transition.is-animating {
  clip-path: circle(150% at var(--toggle-x, 50%) var(--toggle-y, 50%));
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  transition: background .35s var(--ease-smooth),
              border-color .35s var(--ease-smooth);
}

.site-header.scrolled {
}

.logo {
  display: flex;
  align-items: center;
  opacity: 0;
  animation: fadeDown .7s .1s var(--ease-out-expo) forwards;
  color: var(--c-ink);
  transition: opacity .25s;
}
.logo:hover { opacity: .55; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ═══════════════════════════════════════════════
   THEME TOGGLE
═══════════════════════════════════════════════ */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  opacity: 0;
  animation: fadeDown 0.7s 0.15s var(--ease-out-expo) forwards;
  color: var(--c-ink);
}

.theme-toggle:hover {
  background: var(--c-ink-10);
  border-color: var(--c-ink-30);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-svg {
  width: 18px;
  height: 18px;
  color: var(--c-ink);
  transition: color 0.3s;
}

.sun-rays {
  transform-origin: 12px 12px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.moon-cutout {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate(6px, -6px);
}

[data-theme="dark"] .sun-rays {
  transform: rotate(-45deg) scale(0);
  opacity: 0;
}

[data-theme="dark"] .moon-cutout {
  transform: translate(0, 0);
}

/* ═══════════════════════════════════════════════
   BURGER BUTTON
═══════════════════════════════════════════════ */
.burger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  opacity: 0;
  animation: fadeDown .7s .2s var(--ease-out-expo) forwards;
}

.burger-line {
  display: block;
  height: 1.5px;
  background: var(--c-ink);
  border-radius: 2px;
  transform-origin: right center;
  transition: transform .5s var(--ease-out-expo),
              width .5s var(--ease-out-expo),
              opacity .35s ease;
  will-change: transform, width;
}

.burger-line--top { width: 28px; }
.burger-line--mid { width: 20px; }
.burger-line--bot { width: 24px; }

.burger.is-open .burger-line--top {
  width: 26px;
  transform: translateY(6.5px) rotate(-45deg);
}
.burger.is-open .burger-line--mid {
  opacity: 0;
  transform: scaleX(0);
}
.burger.is-open .burger-line--bot {
  width: 26px;
  transform: translateY(-6.5px) rotate(45deg);
}

@media (min-width: 900px) {
  .burger { display: none; }
}

/* ═══════════════════════════════════════════════
   MOBILE NAV OVERLAY
═══════════════════════════════════════════════ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--pad-x);
  z-index: 150;
  pointer-events: none;
  clip-path: circle(0% at var(--burger-x, 100%) var(--burger-y, 50%));
  transition: clip-path .75s var(--ease-out-expo);
  will-change: clip-path;
}

.mobile-nav.is-open {
  pointer-events: all;
  clip-path: circle(150% at var(--burger-x, 100%) var(--burger-y, 50%));
}

.mobile-nav__close {
  position: absolute;
  top: var(--header-h);
  right: var(--pad-x);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.mobile-nav__list {
  text-align: center;
  margin-bottom: auto;
  padding-top: clamp(5rem, 18vw, 9rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.mobile-nav__item {
  overflow: hidden;
  position: relative;
}

.mobile-nav__item::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60px;
  height: 2px;
  background: var(--c-ink);
  opacity: 0.15;
  transition: transform .6s var(--ease-out-expo);
}

.mobile-nav.is-open .mobile-nav__item::before {
  transform: translateX(-50%) scaleX(1);
}

.mobile-nav__link {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 6rem);
  color: var(--c-ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  transform: translateY(110%);
  transition: transform .65s var(--ease-out-expo),
              color .25s;
  will-change: transform;
  padding: 0 1.5rem;
  cursor: pointer;
}

.mobile-nav.is-open .mobile-nav__link {
  transform: translateY(0);
}

.mobile-nav__item:nth-child(1) .mobile-nav__link { transition-delay: .1s; }
.mobile-nav__item:nth-child(2) .mobile-nav__link { transition-delay: .18s; }
.mobile-nav__item:nth-child(3) .mobile-nav__link { transition-delay: .26s; }
.mobile-nav__item:nth-child(4) .mobile-nav__link { transition-delay: .34s; }

.mobile-nav__item:nth-child(1)::before { transition-delay: .15s; }
.mobile-nav__item:nth-child(2)::before { transition-delay: .23s; }
.mobile-nav__item:nth-child(3)::before { transition-delay: .31s; }
.mobile-nav__item:nth-child(4)::before { transition-delay: .39s; }

.mobile-nav__link[data-index]::before {
  content: attr(data-index);
  font-family: var(--font-body);
  font-size: .7rem;
  color: var(--c-ink);
  opacity: 0.4;
  letter-spacing: .12em;
  font-weight: 500;
  position: relative;
  top: -.2em;
  min-width: 2rem;
  text-align: center;
}

.mobile-nav__link:hover {
  color: var(--c-ink);
}

.mobile-nav__link:hover .mobile-nav__link[data-index]::before {
  opacity: 0.8;
}

.mobile-nav__footer {
  display: flex;
  gap: 3rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s .05s, transform .45s .05s var(--ease-out-expo);
  margin-top: auto;
  padding-bottom: clamp(3rem, 10vw, 6rem);
}

.mobile-nav.is-open .mobile-nav__footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .35s;
}

.mobile-nav__footer a {
  font-size: .75rem;
  color: var(--c-ink);
  opacity: 0.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: opacity .25s;
  position: relative;
  padding-bottom: 6px;
}

.mobile-nav__footer a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 1px;
  background: var(--c-ink);
  transition: transform .25s var(--ease-out-expo);
}

.mobile-nav__footer a:hover {
  opacity: 1;
}

.mobile-nav__footer a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad-x) clamp(3rem, 7vw, 6rem);
  position: relative;
}

.hero__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-ink-60);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.hero__eyebrow span {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  animation: lineReveal .8s .4s var(--ease-out-expo) forwards;
}

.hero__name {
  font-family: var(--font-display);
  font-size: var(--sz-hero-name);
  line-height: .95;
  letter-spacing: -.04em;
  display: flex;
  flex-direction: column;
  overflow: visible;
  margin-bottom: 2.5rem;
}

.hero__name-line {
  display: block;
  transform: translateY(60px);
  opacity: 0;
  filter: blur(6px);
}

.hero__name-line[data-delay="0"] {
  animation: heroTextReveal .95s .5s var(--ease-out-expo) forwards;
}
.hero__name-line[data-delay="1"] {
  animation: heroTextReveal .95s .65s var(--ease-out-expo) forwards;
}

.hero__name-line.italic { font-style: italic; }

.hero__tagline {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: var(--c-ink-60);
  font-weight: 300;
  letter-spacing: .04em;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp .8s .9s var(--ease-out-expo) forwards;
}

.hero__scroll-cue {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-ink-30);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp .8s 1.1s var(--ease-out-expo) forwards;
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--c-ink-30);
  transform-origin: left;
  animation: lineGrow 1.2s 1.4s var(--ease-out-expo) forwards;
  transform: scaleX(0);
}

/* ═══════════════════════════════════════════════
   HERO — CHARACTER ANIMATION (unused abstract stub,
   kept in case you want a lighter-weight fallback)
═══════════════════════════════════════════════ */
.hero__character {
  position: absolute;
  bottom: 8%;
  right: 5%;
  width: 200px;
  height: 200px;
  opacity: 0;
  animation: fadeUp .8s 1.3s var(--ease-out-expo) forwards;
}

.character {
  position: absolute;
  width: 40px;
  height: 50px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: walkAround 12s infinite;
}

.character__head {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--c-ink);
  border-radius: 50%;
  top: 2px;
  left: 14px;
}

.character__body {
  position: absolute;
  width: 8px;
  height: 16px;
  background: var(--c-ink);
  top: 15px;
  left: 16px;
}

.character__arm {
  position: absolute;
  width: 6px;
  height: 12px;
  background: var(--c-ink);
  top: 16px;
}

.character__arm--left {
  left: 10px;
  animation: armSwing 0.6s infinite;
}

.character__arm--right {
  right: 10px;
  animation: armSwing 0.6s infinite reverse;
}

.character__leg {
  position: absolute;
  width: 5px;
  height: 14px;
  background: var(--c-ink);
  top: 31px;
}

.character__leg--left {
  left: 13px;
  animation: legWalk 0.6s infinite;
}

.character__leg--right {
  right: 13px;
  animation: legWalk 0.6s infinite reverse;
}

@keyframes walkAround {
  0% { transform: translate(-50%, -50%) scaleX(1); }
  25% { transform: translate(-30%, -50%) scaleX(1); }
  50% { transform: translate(-50%, -50%) scaleX(-1); }
  75% { transform: translate(-70%, -50%) scaleX(-1); }
  100% { transform: translate(-50%, -50%) scaleX(1); }
}

@keyframes armSwing {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(20deg); }
}

@keyframes legWalk {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 900px) {
  .hero__character {
    display: none;
  }
}

/* ═══════════════════════════════════════════════
   SECTION COMMON
═══════════════════════════════════════════════ */
.about,
.journey,
.projects,
.quote-section,
.contact {
  padding: var(--section-gap) var(--pad-x);
}

.journey__inner,
.projects__inner,
.contact__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-header {
  /* CHANGED: was clamp(3.5rem, 7vw, 6rem) — tightened so content
     below the heading (e.g. the journey track) sits closer to it */
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

.section-label {
  display: block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-ink-30);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--sz-section);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
.about {
  background: var(--c-bg);
}

.about__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

/* LEFT: image */
.about__image-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow:
    0 4px 6px var(--c-ink-10),
    0 20px 50px var(--c-ink-10),
    0 50px 100px var(--c-ink-10);
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .9s var(--ease-out-expo),
              transform .9s var(--ease-out-expo);
}

.about__image-wrap.in-view {
  opacity: 1;
  transform: translateX(0);
}

.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s var(--ease-out-expo);
}

.about__image-wrap:hover img {
  transform: scale(1.0);
}

.about__image-col {
  opacity: 1;
  transform: translateX(0);
}

.about__image-col.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* RIGHT: text */
.about__content {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .9s .15s var(--ease-out-expo),
              transform .9s .15s var(--ease-out-expo);
}

.about__content.in-view {
  opacity: 1;
  transform: translateX(0);
}

.about__content .section-label {
  margin-bottom: 1.25rem;
}

.about__heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 400;
  margin-bottom: 2rem;
}

.about__heading em {
  font-style: italic;
  color: var(--c-ink-60);
}

.about__body {
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  color: var(--c-ink-60);
  line-height: 1.8;
  max-width: 42ch;
}

.about__body + .about__body {
  margin-top: 1.25rem;
}

/* ═══════════════════════════════════════════════
   JOURNEY - PINNED SCROLL SECTION
═══════════════════════════════════════════════ */
.journey {
  position: relative;
  background: var(--c-bg);
  /* Create massive scrollable area for pinned experience */
  height: calc(100vh * 5);
}

.journey__inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--pad-x);
  /* CHANGED: was calc(var(--header-h) + 2rem) — reduced so the
     whole pinned block (heading + track + panel) sits higher */
  padding-top: calc(var(--header-h) + 0.5rem);
  padding-bottom: 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

.journey__layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: stretch;
  /* NEW: without this, the single grid row still stretches to fill
     the full pinned-section height (even though the rail is now
     compact and top-anchored), so the text column was centering
     itself against a much taller invisible box than the rail
     actually occupies. "start" sizes the row to its real content
     height, so both columns end up matching heights and the text
     centers against the rail, not empty space below it. */
  align-content: start;
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
  width: 100%;
  min-height: 0;
}

.journey__track-col {
  /* CHANGED: was "align-self: stretch" — that forced this column to
     match the height of the (taller) text panel on the right, no
     matter what alignment the parent grid used. That's why the line
     always ran far past the last milestone. "flex-start" lets it
     size to its own content instead. */
  align-self: flex-start;
  display: flex;
  align-items: flex-start;
  height: auto;
}

.journey__track {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 2px 1fr;
  gap: 0 3.5rem;
  position: relative;
}

.journey__svg {
  width: 2px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}

.journey-path-bg { stroke: var(--c-border); }
.journey-path-fg { stroke: var(--c-ink); }

.journey__milestones {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  /* CHANGED: height auto (not 100%) + a tighter gap, now that this
     list is no longer being force-stretched to match the panel. */
  justify-content: flex-start;
  gap: clamp(1.75rem, 4.5vw, 3.25rem);
  height: auto;
  padding-left: 0;
}

.milestone {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0 2rem;
  opacity: 1;
  transform: translateX(0);
  cursor: default;
}

.milestone__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--c-ink-30);
  background: var(--c-bg);
  margin-top: .35rem;
  flex-shrink: 0;
  transition: 
    background .5s cubic-bezier(0.16, 1, 0.3, 1), 
    border-color .5s cubic-bezier(0.16, 1, 0.3, 1), 
    transform .6s cubic-bezier(0.34, 1.56, 0.64, 1), 
    box-shadow .5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.milestone.is-active .milestone__dot {
  background: var(--c-ink);
  border-color: var(--c-ink);
  transform: scale(1.6);
  box-shadow: 0 0 0 6px var(--c-ink-10), 0 0 15px var(--c-ink-30);
}

.milestone.is-completed .milestone__dot {
  background: var(--c-ink);
  border-color: var(--c-ink);
  transform: scale(1);
  box-shadow: none;
}

.milestone[data-index="2"].is-completed .milestone__dot {
  background: var(--c-bg);
  border-color: var(--c-ink-30);
}

.journey--arch-active .milestone[data-index="2"] .milestone__dot {
  background: var(--c-arch);
  border-color: var(--c-arch);
  box-shadow: 0 0 0 6px rgba(23,147,209,0.18), 0 0 18px rgba(23,147,209,0.25);
}

.journey--arch-active .journey__slide[data-slide="2"] .journey__slide-title .journey__highlight {
  color: var(--c-arch);
}

.journey__slide-title .journey__highlight {
 color: inherit;
 transition: color .35s var(--ease-smooth);
}

.milestone__year {
  display: block;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-ink-30);
  margin-bottom: .4rem;
  font-style: normal;
  transition: color .4s;
}

.milestone.is-active .milestone__year,
.milestone.is-completed .milestone__year {
  color: var(--c-ink-60);
}

.milestone__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--c-ink-30);
  transition: color .4s;
}

.milestone.is-active .milestone__title,
.milestone.is-completed .milestone__title {
  color: var(--c-ink);
}

/* RIGHT col — content panel */
.journey__content-col {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  /* NEW: nudges the text block a bit further right, away from the rail */
  padding-left: clamp(0.5rem, 2.5vw, 2.5rem);
}

.journey__panel {
  overflow: hidden;
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: flex-start;
}

.journey__panel-inner {
  position: relative;
  width: 100%;
}

.journey__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  /* CHANGED: smaller travel distance and less blur, plus a longer,
     gentler duration below — the old version (30px move + 6px blur
     over 0.6s) read as an abrupt snap rather than a smooth crossfade. */
  transform: translateY(calc(var(--dir, 1) * 14px)) scale(0.99);
  filter: blur(3px);
  transition: 
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.journey__slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.journey__slide.is-exiting {
  position: absolute;
  opacity: 0;
  transform: translateY(calc(var(--dir, 1) * -14px)) scale(0.99);
  filter: blur(3px);
  transition-duration: 0.6s;
}

.journey__slide-year {
  display: block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-ink-30);
  margin-bottom: 1.25rem;
}

.journey__slide-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--c-ink);
  transition: color .35s var(--ease-smooth);
}

.journey__slide-desc {
  font-size: clamp(.9rem, 1.2vw, 1rem);
  color: var(--c-ink-60);
  line-height: 1.8;
  max-width: 40ch;
  margin-bottom: 2rem;
}

.journey__slide-achievement {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-ink-30);
  font-weight: 400;
}

.journey__slide-achievement::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--c-ink-30);
}

/* ═══════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════ */
.projects {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--c-border);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .75s var(--ease-out-expo),
              transform .75s var(--ease-out-expo);
}

.project:first-of-type {
  border-top: 1px solid var(--c-border);
}

.project.in-view {
  opacity: 1;
  transform: translateY(0);
}

.project--img-right .project__media { order: 2; }
.project--img-right .project__info  { order: 1; }

.project__image-wrap {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}

.project__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  transition: transform .9s var(--ease-out-expo);
  will-change: transform;
}

.project__image-wrap:hover img {
  transform: scale(1);
}

.project__number {
  display: block;
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--c-ink-30);
  margin-bottom: 1rem;
}

.project__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -.025em;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.project__desc {
  font-size: .9rem;
  color: var(--c-ink-60);
  line-height: 1.75;
  max-width: 40ch;
  margin-bottom: 1.5rem;
}

.project__stack {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.project__stack li {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--c-border);
  padding: .3em .75em;
  border-radius: 99px;
  color: var(--c-ink-60);
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-ink);
  padding-bottom: .2em;
  transition: gap .3s var(--ease-out-expo), opacity .2s;
}

.project__link:hover {
  gap: .85rem;
  opacity: .65;
}

/* ═══════════════════════════════════════════════
   QUOTE
═══════════════════════════════════════════════ */
.quote-section {
  text-align: center;
  padding-top: clamp(6rem, 12vw, 12rem);
  padding-bottom: clamp(6rem, 12vw, 12rem);
}

.quote-section__inner {
  max-width: 900px;
  margin: 0 auto;
}

.quote {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease-out-expo),
              transform .9s var(--ease-out-expo);
  animation: floatQuote 7s 2s ease-in-out infinite;
  animation-play-state: paused;
}

.quote.in-view {
  opacity: 1;
  transform: translateY(0);
  animation-play-state: running;
}

@keyframes floatQuote {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.quote__text {
  font-family: var(--font-display);
  font-size: var(--sz-quote);
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--c-ink);
  margin-bottom: 2rem;
}

.quote__attribution {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-ink-30);
  font-style: normal;
}

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.contact {
  padding: var(--section-gap) var(--pad-x);
}

.contact__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  letter-spacing: -.04em;
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 2rem;
}

.contact__headline em {
  font-style: italic;
  color: var(--c-ink-60);
}

.contact__body {
  font-size: clamp(.9rem, 1.3vw, 1rem);
  color: var(--c-ink-60);
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

.br-desktop { display: none; }

@media (min-width: 768px) {
  .br-desktop { display: block; }
}

.contact__cta {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.contact__email {
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--c-ink-60);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: .15em;
  transition: color .25s, border-color .25s;
}
.contact__email:hover {
  color: var(--c-ink);
  border-color: var(--c-ink);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  background: var(--c-ink);
  color: var(--c-bg);
  padding: .85em 1.75em;
  border-radius: 99px;
  transition: background .3s, gap .3s var(--ease-out-expo), transform .3s var(--ease-out-expo);
}

.btn-contact:hover {
  background: var(--c-ink-hover);
  gap: 1rem;
  transform: translateY(-1px);
}

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

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 2rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__copy {
  font-size: .75rem;
  color: var(--c-ink-30);
  letter-spacing: .06em;
}

.site-footer__social {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-icon {
  color: var(--c-ink-30);
  display: flex;
  align-items: center;
  transition: color .25s, transform .3s var(--ease-out-expo);
}

.social-icon:hover {
  color: var(--c-ink);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   SCROLL-REVEAL UTILITY
═══════════════════════════════════════════════ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out-expo),
              transform .7s var(--ease-out-expo);
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════════ */
@keyframes heroTextReveal {
  to {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

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

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes lineGrow {
  to { transform: scaleX(1); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__image-wrap {
    aspect-ratio: 4/3;
    max-width: 460px;
  }

  .about__body {
    max-width: none;
  }

  .journey {
    height: calc(100vh * 4);
  }

  .journey__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 2rem;
  }

  .journey__track-col {
    height: auto;
    max-height: 40vh;
  }

  .journey__track {
    height: 100%;
  }

  .journey__milestones {
    height: 100%;
  }

  .journey__content-col {
    position: relative;
    top: auto;
    order: 2;
    align-self: stretch;
    display: flex;
    align-items: center;
  }

  .journey__panel {
    min-height: 240px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project--img-right .project__media { order: 0; }
  .project--img-right .project__info  { order: 0; }

  .project__desc { max-width: none; }
  .milestone__desc { max-width: none; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 600px)
═══════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root {
    --header-h: 60px;
    --sz-hero-name: clamp(7.5rem, 14vw, 13rem);
  }

  .hero {
    padding-bottom: 5rem;
    align-items: center;
  }

  .hero__name {
    letter-spacing: -.03em;
    margin-bottom: 3.5rem;
  }

  .journey__track {
    grid-template-columns: 2px 1fr;
    gap: 0 1.75rem;
  }

  .milestone {
    gap: 0 1.25rem;
  }

  .site-footer {
    flex-direction: column-reverse;
    gap: 1.25rem;
    text-align: center;
  }

  .contact__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote__text br { display: none; }
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__name-line,
  .hero__eyebrow span,
  .hero__tagline,
  .hero__scroll-cue,
  .logo,
  .burger,
  .theme-toggle {
    opacity: 1;
    animation: none;
    transform: none;
    filter: none;
  }
}