/* ============================================================
   Ganesh L. Mukkera — Automation Lead Portfolio
   Orange & Beige · Modern Minimalist
   ============================================================ */

:root {
  /* palette */
  --cream:      #FAF4EC;
  --cream-2:    #F3E9DA;
  --beige:      #EBDFCC;
  --orange:     #E8530E;
  --orange-2:   #F5853F;
  --orange-ink: #C2440B;
  --ink:        #1C1A17;
  --ink-soft:   #4A443C;
  --muted:      #8A8276;
  --line:       #E0D4C0;
  --white:      #FFFDF9;

  /* type */
  --display: "Fraunces", Georgia, serif;
  --sans:    "Plus Jakarta Sans", system-ui, sans-serif;
  --mono:    "Space Grotesk", monospace;

  /* layout */
  --maxw: 1240px;
  --pad: clamp(1.25rem, 5vw, 6rem);
  --radius: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

::selection { background: var(--orange); color: var(--white); }

/* ---------- shared section ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vw, 9rem) var(--pad);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section__num {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--orange);
  font-weight: 600;
}
.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.section__sub {
  margin-top: -2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 44rem;
}
.section__sub strong { color: var(--orange); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 28px -12px rgba(232, 83, 14, 0.7);
}
.btn--primary:hover { transform: translateY(-3px); background: var(--orange-ink); }
.btn--ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(250, 244, 236, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.nav__logo { display: flex; align-items: center; gap: 0.6rem; }
.nav__logo-mark {
  font-family: var(--mono);
  font-weight: 700;
  background: var(--orange);
  color: var(--white);
  padding: 0.35rem 0.55rem;
  border-radius: 9px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.nav__logo-text { font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-weight: 500; font-size: 0.95rem; position: relative; transition: color 0.3s; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--orange); transition: width 0.35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__links a:not(.nav__cta):hover { color: var(--orange); }
.nav__cta {
  background: var(--ink); color: var(--cream);
  padding: 0.6rem 1.2rem; border-radius: 100px;
  transition: background 0.3s, transform 0.3s;
}
.nav__cta:hover { background: var(--orange); transform: translateY(-2px); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.35s, opacity 0.35s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--display); font-size: 2rem; font-weight: 500; }
.mobile-menu a:hover { color: var(--orange); }

/* ---------- scroll progress + cursor ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--orange); z-index: 200; transition: width 0.1s linear;
}
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 9px; height: 9px;
  background: var(--orange); border-radius: 50%; z-index: 300;
  pointer-events: none; transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: multiply;
}
@media (hover: none) { .cursor-dot { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem var(--pad) 4rem;
  overflow: hidden;
}
.hero__bg-text {
  position: absolute;
  bottom: -2.5vw; left: 50%; transform: translateX(-50%);
  font-family: var(--display);
  font-weight: 900;
  font-size: 23vw;
  line-height: 0.8;
  color: var(--cream-2);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.03em;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.08em;
  color: var(--ink-soft); text-transform: uppercase; margin-bottom: 1.6rem;
}
.hero__eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(232,83,14,0.5);} 50%{ box-shadow: 0 0 0 8px rgba(232,83,14,0);} }

.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.7rem;
}
.hero__title em { color: var(--orange); font-style: italic; display: inline-block; will-change: transform; }

/* "think" — slow, contemplative bob + gentle tilt (pondering) */
.word-think {
  transform-origin: bottom center;
  animation: think 3.6s ease-in-out infinite;
}
@keyframes think {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30%      { transform: translateY(-7px) rotate(-3.5deg); }
  62%      { transform: translateY(-3px) rotate(2.5deg); }
}

/* "repeat" — rhythmic double-nudge that keeps cycling back (repetition) */
.word-repeat {
  animation: repeatWord 2.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes repeatWord {
  0%   { transform: translateX(0); }
  16%  { transform: translateX(9px); }
  32%  { transform: translateX(0); }
  48%  { transform: translateX(9px); }
  64%  { transform: translateX(0); }
  100% { transform: translateX(0); }
}
.hero__lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 36rem;
  margin-bottom: 2.2rem;
}
.hero__lead strong { color: var(--ink); font-weight: 700; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* hero photo */
.hero__right { display: flex; justify-content: center; }
.hero__photo-wrap {
  position: relative;
  width: clamp(240px, 28vw, 360px);
  aspect-ratio: 1 / 1.12;
}
.hero__photo {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 200px 200px 26px 26px;
  box-shadow: 0 40px 80px -30px rgba(28,26,23,0.45);
}
.hero__photo-ring {
  position: absolute; inset: -18px; z-index: 1;
  border: 1.5px solid var(--orange);
  border-radius: 220px 220px 40px 40px;
  opacity: 0.5;
}
.hero__photo-blob {
  position: absolute; z-index: 0;
  width: 130%; height: 130%;
  top: -15%; left: -15%;
  background: radial-gradient(circle at 30% 30%, var(--orange-2), transparent 60%);
  opacity: 0.18;
  filter: blur(20px);
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-18px);} }
.hero__badge {
  position: absolute; z-index: 3;
  bottom: 14%; left: -12%;
  background: var(--ink); color: var(--cream);
  padding: 0.9rem 1.1rem; border-radius: 16px;
  display: flex; align-items: center; gap: 0.6rem;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.5);
  animation: float 3.2s ease-in-out infinite 0.3s;
}
.hero__badge-num { font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: var(--orange-2); }
.hero__badge-label { font-size: 0.72rem; line-height: 1.2; letter-spacing: 0.02em; }

.hero__scroll {
  position: absolute; z-index: 2; bottom: 2rem; left: var(--pad);
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft);
}
.hero__scroll-line { width: 60px; height: 1px; background: var(--ink-soft); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--orange);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine { 0%{ transform: translateX(-100%);} 100%{ transform: translateX(100%);} }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 1.1rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 2rem;
  animation: marquee 30s linear infinite;
  font-family: var(--display); font-size: 1.5rem; font-weight: 500; font-style: italic;
}
.marquee__track .sep { color: var(--orange); font-style: normal; }
@keyframes marquee { from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about__big {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.about__big em { color: var(--orange); }
.about__body p { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 1.05rem; }
.about__body strong { color: var(--ink); }

.stats {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 5vw, 3rem);
}
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--orange); line-height: 1; }
.stat__label { font-size: 0.92rem; color: var(--ink-soft); max-width: 12rem; }

/* ============================================================
   EXPERTISE — cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.4s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(28,26,23,0.25);
  border-color: var(--orange-2);
}
.card__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--cream-2); border-radius: 14px; font-size: 1.6rem; margin-bottom: 1.3rem;
  transition: background 0.4s, transform 0.4s;
}
.card:hover .card__icon { background: var(--orange); transform: rotate(-6deg) scale(1.05); }
.card__title { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin-bottom: 0.7rem; letter-spacing: -0.01em; }
.card__text { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.3rem; }
.card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.card__tags li { font-family: var(--mono); font-size: 0.72rem; padding: 0.28rem 0.65rem; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); }

/* ============================================================
   WORK — projects
   ============================================================ */
.projects { border-top: 1px solid var(--line); }
.project {
  display: grid;
  grid-template-columns: 70px 1fr 200px;
  gap: 1.5rem;
  align-items: start;
  padding: 2.2rem 0.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.5s var(--ease), background 0.4s;
}
.project::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(232,83,14,0.06), transparent);
  transition: width 0.5s var(--ease); z-index: 0;
}
.project:hover::before { width: 100%; }
.project:hover { padding-left: 1.5rem; }
.project > * { position: relative; z-index: 1; }
.project__num { font-family: var(--mono); font-size: 1rem; color: var(--orange); font-weight: 600; padding-top: 0.4rem; }
.project__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -0.015em; line-height: 1.1; transition: color 0.3s; }
.project:hover .project__title { color: var(--orange); }
.project__client { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; }
.project__desc { color: var(--ink-soft); font-size: 1rem; max-width: 44rem; }
.project__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.project__tags li { font-family: var(--mono); font-size: 0.7rem; padding: 0.25rem 0.6rem; background: var(--cream-2); border-radius: 100px; color: var(--ink-soft); }

/* ============================================================
   APPROACH
   ============================================================ */
.approach { background: var(--cream-2); max-width: 100%; }
.approach > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.quote { margin-bottom: clamp(3rem, 7vw, 5rem); }
.quote__text {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.7rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 50rem;
}
.quote__text em { color: var(--orange); }
.approach__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.approach__item h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 600; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.6rem; }
.approach__item h3::before { content: ""; width: 26px; height: 2px; background: var(--orange); }
.approach__item p { color: var(--ink-soft); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact .section__num { margin-bottom: 1rem; }
.contact__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}
.contact__lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 34rem; margin-bottom: 3rem; }
.contact__links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact__link {
  display: flex; flex-direction: column; gap: 0.2rem;
  background: var(--white); border: 1px solid var(--line);
  padding: 1.2rem 2rem; border-radius: var(--radius); min-width: 220px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.contact__link:hover { transform: translateY(-5px); border-color: var(--orange); box-shadow: 0 24px 48px -28px rgba(232,83,14,0.5); }
.contact__link-label { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.contact__link-value { font-weight: 600; font-size: 1.05rem; }

.footer {
  max-width: var(--maxw); margin: clamp(4rem, 8vw, 6rem) auto 0;
  padding-top: 2rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--muted);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ---------- "writing" reveal — words penned in, one by one ---------- */
.write .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em) rotate(2.5deg);
  filter: blur(4px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), filter 0.45s var(--ease);
  will-change: opacity, transform, filter;
}
.write.writing .w {
  opacity: 1;
  transform: translateY(0) rotate(0);
  filter: blur(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__right { justify-content: flex-start; margin-top: 1rem; }
  .hero__badge { left: auto; right: -6%; }
  .about__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .project { grid-template-columns: 50px 1fr; }
  .project__tags { display: none; }
  .approach__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero__bg-text { font-size: 30vw; }
  .footer { flex-direction: column; }
  .hero__scroll { display: none; }
  .marquee__track { font-size: 1.2rem; }
}

/* ============================================================
   LIVING LAYER — preloader · ambient bg · entrance · masks
   ============================================================ */

/* ---------- Lenis smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Preloader (premium) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--cream);
  overflow: hidden;
  transition: transform 1.1s var(--ease);
  /* safety: lift even if JS never runs */
  animation: plSafety 1.1s var(--ease) 7.3s forwards;
}
.preloader.done { transform: translateY(-101%); }
@keyframes plSafety { to { transform: translateY(-101%); } }

.pl__bg {
  position: absolute; width: 70vw; height: 70vw; border-radius: 50%;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245,133,63,0.22), transparent 65%);
  filter: blur(40px); animation: plOrb 6s ease-in-out infinite;
}
@keyframes plOrb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -56%) scale(1.16); }
}

.pl__corner {
  position: absolute; z-index: 2; top: 1.7rem;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft);
  opacity: 0; transform: translateY(-12px); animation: plFade 0.8s var(--ease) forwards;
}
.pl__corner--tl { left: var(--pad); display: inline-flex; align-items: center; gap: 0.5rem; animation-delay: 0.2s; }
.pl__corner--tr { right: var(--pad); display: inline-flex; align-items: center; gap: 0.6rem; animation-delay: 0.35s; }
.pl__corner-k { color: var(--ink-soft); }
.pl__corner-v {
  font-weight: 600; color: var(--white);
  background: var(--orange); border: 1px solid var(--orange); border-radius: 100px;
  padding: 0.22rem 0.65rem; letter-spacing: 0.1em; line-height: 1;
}
.pl__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 2s infinite; }

.pl__center {
  position: absolute; inset: 0; z-index: 2; max-width: 62%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
}
.pl__name {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.8rem, 11vw, 8rem); line-height: 0.95; letter-spacing: -0.03em;
  color: var(--ink); margin: 0;
}
.pl__line { display: block; overflow: hidden; padding-bottom: 0.05em; }
.pl__word { display: inline-block; transform: translateY(110%); animation: plUp 0.9s var(--ease) forwards; }
.pl__line:nth-child(1) .pl__word { animation-delay: 0.25s; }
.pl__line:nth-child(2) .pl__word { animation-delay: 0.40s; color: var(--orange); }
.pl__line:nth-child(3) .pl__word { animation-delay: 0.55s; }
.pl__role {
  margin-top: 1.1rem; font-family: var(--sans);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem); letter-spacing: 0.02em; color: var(--ink-soft);
  opacity: 0; transform: translateY(14px); animation: plFade 0.9s var(--ease) 0.85s forwards;
}

.pl__footer {
  position: absolute; left: 0; right: 0; bottom: 2.2rem; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 var(--pad);
  opacity: 0; animation: plFade 0.8s var(--ease) 0.6s forwards;
}
.pl__status-block { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.pl__status-label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-soft);
}
.pl__status {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1; letter-spacing: -0.015em;
  color: var(--ink);
}
.pl__status.flip { animation: statusFlip 0.5s var(--ease); }
@keyframes statusFlip { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pl__pct {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 0.9; color: var(--ink);
}
.pl__pct i { font-style: normal; font-size: 0.4em; color: var(--orange); vertical-align: super; }

.pl__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: rgba(28,26,23,0.08); overflow: hidden; z-index: 2; }
.pl__bar span {
  display: block; height: 100%; width: 0%; position: relative;
  background: linear-gradient(90deg, var(--orange-2), var(--orange));
  box-shadow: 0 0 16px 1px rgba(232,83,14,0.6);
}
.pl__bar span::after {
  content: ""; position: absolute; top: 0; right: 0; width: 90px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,253,249,0.75));
  animation: plShimmer 1.1s linear infinite;
}
@keyframes plUp { to { transform: translateY(0); } }
@keyframes plFade { to { opacity: 1; transform: none; } }
@keyframes plShimmer { 0% { transform: translateX(-130px); } 100% { transform: translateX(20px); } }

/* full-screen kinetic word background */
.pl__marquee { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.pl__row {
  position: absolute; left: 0; white-space: nowrap; display: flex;
  font-family: var(--display); font-weight: 700; font-style: italic;
  font-size: clamp(2.5rem, 9vw, 8rem); line-height: 1; color: var(--ink); opacity: 0.025;
}
.pl__row span { padding-right: 0.3em; }
.pl__row--1 { top: 7vh;  animation: plScrollL 30s linear infinite; }
.pl__row--2 { top: 39vh; animation: plScrollR 38s linear infinite; }
.pl__row--3 { top: 71vh; animation: plScrollL 26s linear infinite; }
@keyframes plScrollL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes plScrollR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* systems coming online (checklist) */
.pl__modules {
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 2;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 1.25rem; text-align: right;
  opacity: 0; animation: plFade 0.8s var(--ease) 0.7s forwards;
}
.pl__mod {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: flex-end; gap: 1rem;
  font-family: var(--mono); font-size: 1.18rem; letter-spacing: 0.03em;
  color: var(--muted); opacity: 0.4; transition: color 0.45s, opacity 0.45s;
}
.pl__mod.on { color: var(--ink); opacity: 1; }

/* connecting wire through the checkboxes */
.pl__spine {
  position: absolute; right: 13px; top: 14px; bottom: 14px; width: 2px;
  background: var(--line); z-index: 1; list-style: none;
}
.pl__spine-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: var(--orange); box-shadow: 0 0 8px rgba(232,83,14,0.55);
}

.pl__check {
  width: 28px; height: 28px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--cream); position: relative; flex-shrink: 0; z-index: 2;
  transition: background 0.45s, border-color 0.45s;
}
.pl__mod.on .pl__check { background: var(--orange); border-color: var(--orange); animation: checkPop 0.45s var(--ease); }
.pl__check::after {
  content: ""; position: absolute; left: 9px; top: 3.5px; width: 6px; height: 13px;
  border: solid var(--white); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0); transition: transform 0.35s var(--ease) 0.06s;
}
.pl__mod.on .pl__check::after { transform: rotate(45deg) scale(1); }
@keyframes checkPop {
  0%   { transform: scale(0.55); box-shadow: 0 0 0 0 rgba(232,83,14,0.55); }
  40%  { transform: scale(1.55); box-shadow: 0 0 0 10px rgba(232,83,14,0); }
  65%  { transform: scale(0.88); }
  82%  { transform: scale(1.08); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232,83,14,0); }
}

@media (max-width: 760px) {
  .pl__modules { display: none; }
  .pl__center { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pl__word, .pl__role, .pl__corner, .pl__footer { transform: none !important; opacity: 1 !important; }
  .pl__modules { opacity: 1 !important; }
}

/* ---------- Ambient drifting orbs ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(64px); will-change: transform; }
.orb--1 {
  width: 46vw; height: 46vw; left: -10vw; top: -8vw; opacity: 0.55;
  background: radial-gradient(circle, rgba(245,133,63,0.55), transparent 70%);
  animation: drift1 26s ease-in-out infinite;
}
.orb--2 {
  width: 40vw; height: 40vw; right: -8vw; top: 28vh; opacity: 0.5;
  background: radial-gradient(circle, rgba(232,83,14,0.30), transparent 70%);
  animation: drift2 32s ease-in-out infinite;
}
.orb--3 {
  width: 42vw; height: 42vw; left: 18vw; bottom: -14vw; opacity: 0.6;
  background: radial-gradient(circle, rgba(235,223,204,0.85), transparent 70%);
  animation: drift3 30s ease-in-out infinite;
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw,6vh) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7vw,-5vh) scale(1.12); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5vw,-8vh) scale(1.2); } }

/* ---------- Film grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 6; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 170px 170px;
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); }
  50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-2%); } 100% { transform: translate(2%,2%); }
}

/* ---------- Hero choreographed entrance ---------- */
.hero__eyebrow, .hero__title, .hero__lead, .hero__actions {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero__photo { opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease) 0.4s, transform 1.5s var(--ease) 0.4s; }
.hero__badge { opacity: 0; transition: opacity 0.9s var(--ease) 0.9s; }
body.loaded .hero__eyebrow { opacity: 1; transform: none; transition-delay: 0.15s; }
body.loaded .hero__title   { opacity: 1; transform: none; transition-delay: 0.30s; }
body.loaded .hero__lead    { opacity: 1; transform: none; transition-delay: 0.55s; }
body.loaded .hero__actions { opacity: 1; transform: none; transition-delay: 0.70s; }
body.loaded .hero__photo   { opacity: 1; transform: none; }
body.loaded .hero__badge   { opacity: 1; }

/* ---------- Section title mask reveal ---------- */
.section__title { overflow: hidden; padding-bottom: 0.12em; }
.section__title .tl { display: inline-block; transform: translateY(115%); transition: transform 0.9s var(--ease); }
.reveal.in .section__title .tl { transform: translateY(0); }

/* ---------- Magnetic buttons ---------- */
.btn, .nav__cta { will-change: transform; }

/* ---------- Failsafe (JS loaded but crashed) ---------- */
.no-anim .reveal,
.no-anim .write .w { opacity: 1 !important; transform: none !important; filter: none !important; }
.no-anim .section__title .tl { transform: none !important; }
.no-anim .preloader { display: none !important; }
.no-anim .tw { display: inline !important; }
.no-anim .tw-caret { display: none !important; }
.no-anim .approach__sign { opacity: 1 !important; transform: none !important; }
.no-anim #contact .contact__inner > * { opacity: 1 !important; transform: none !important; }

/* ============================================================
   HERO ALIVENESS — drifting shapes · orbiting dot · breathing
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.045); opacity: 0.26; }
}
@keyframes driftA { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, -22px); } }
@keyframes driftB { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16px, 18px); } }
@keyframes bgBreath {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.035); opacity: 0.82; }
}

.hero__bg-text { animation: bgBreath 9s ease-in-out infinite; }

.hero__deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__shape { position: absolute; }
.hero__shape--ring {
  top: 15%; right: 8%; width: 96px; height: 96px;
  border: 2px solid var(--orange); border-radius: 50%; opacity: 0.22;
  animation: driftA 9s ease-in-out infinite;
}
.hero__shape--dot {
  bottom: 24%; left: 9%; width: 14px; height: 14px;
  background: var(--orange); border-radius: 50%; opacity: 0.5;
  animation: driftB 6.5s ease-in-out infinite;
}
.hero__shape--square {
  bottom: 18%; right: 20%; width: 26px; height: 26px;
  border: 2px solid var(--ink); opacity: 0.12;
  animation: spin 18s linear infinite;
}
.hero__shape--plus {
  top: 30%; left: 5%; font-family: var(--mono); font-weight: 300;
  font-size: 2.4rem; line-height: 1; color: var(--orange); opacity: 0.35;
  animation: spin 24s linear infinite;
}

/* breathing ring + orbiting dot around the photo */
.hero__photo-ring { animation: ringPulse 4.5s ease-in-out infinite; }
.hero__orbit {
  position: absolute; inset: -26px; z-index: 1; border-radius: 50%;
  animation: spin 14s linear infinite;
}
.hero__orbit-dot {
  position: absolute; top: -7px; left: calc(50% - 7px);
  width: 14px; height: 14px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 14px 2px rgba(232, 83, 14, 0.55);
}

@media (max-width: 760px) {
  .hero__shape--ring, .hero__shape--square, .hero__shape--plus { display: none; }
}

/* ============================================================
   PAGE-WIDE ALIVENESS — every section keeps breathing
   ============================================================ */

/* live pulsing dot on each section number */
.section__num { display: inline-flex; align-items: center; gap: 0.5rem; }
.section__num::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); animation: pulse 2s infinite;
}

/* expertise icons bob continuously (staggered) */
.card__icon { animation: iconBob 4s ease-in-out infinite; }
@keyframes iconBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.cards .card:nth-child(2) .card__icon { animation-delay: 0.4s; }
.cards .card:nth-child(3) .card__icon { animation-delay: 0.8s; }
.cards .card:nth-child(4) .card__icon { animation-delay: 1.2s; }
.cards .card:nth-child(5) .card__icon { animation-delay: 1.6s; }
.cards .card:nth-child(6) .card__icon { animation-delay: 2.0s; }
/* keep hover feedback without fighting the bob */
.card:hover .card__icon { background: var(--orange); }

/* stat numbers get a breathing underline accent */
.stat__num { position: relative; display: inline-block; }
.stat__num::after {
  content: ""; position: absolute; left: 0; bottom: -0.4rem; height: 3px;
  width: 2.2rem; background: var(--orange); border-radius: 2px;
  transform-origin: left; animation: barPulse 3s ease-in-out infinite;
}
@keyframes barPulse { 0%, 100% { transform: scaleX(1); opacity: 0.8; } 50% { transform: scaleX(1.7); opacity: 1; } }

/* work: project numbers pulse in a running wave */
.project__num { animation: numGlow 3s ease-in-out infinite; }
@keyframes numGlow { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.14); opacity: 1; } }
.project:nth-child(1) .project__num { animation-delay: 0s; }
.project:nth-child(2) .project__num { animation-delay: 0.35s; }
.project:nth-child(3) .project__num { animation-delay: 0.7s; }
.project:nth-child(4) .project__num { animation-delay: 1.05s; }
.project:nth-child(5) .project__num { animation-delay: 1.4s; }
.project:nth-child(6) .project__num { animation-delay: 1.75s; }
.project:nth-child(7) .project__num { animation-delay: 2.1s; }
.project:nth-child(8) .project__num { animation-delay: 2.45s; }

/* approach: drifting accent shapes (its solid bg hides the page orbs) */
.approach { position: relative; overflow: hidden; }
.approach__orb { position: absolute; pointer-events: none; z-index: 0; }
.approach > .section__head, .approach > .quote, .approach > .approach__grid { position: relative; z-index: 1; }
.approach__orb--1 {
  width: 220px; height: 220px; right: 5%; top: 16%; border-radius: 50%;
  border: 2px solid var(--orange); opacity: 0.16; animation: spin 26s linear infinite;
}
.approach__orb--2 {
  width: 16px; height: 16px; left: 7%; bottom: 22%; border-radius: 50%;
  background: var(--orange); opacity: 0.4; animation: driftB 7s ease-in-out infinite;
}

/* contact: slow light-sweep across the headline */
.contact__title {
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 42%, var(--orange) 50%, var(--ink) 58%, var(--ink) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: sweep 6s linear infinite;
}
@keyframes sweep { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

/* footer: live dot */
.footer span:first-child { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer span:first-child::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); animation: pulse 2s infinite;
}

/* ============================================================
   PRESENTATION DECK — horizontal, full-screen, no scrollbars
   ============================================================ */
html, body { height: 100%; overflow: hidden; }

.deck {
  position: fixed; top: 0; left: 0; height: 100vh;
  display: flex; will-change: transform; z-index: 5;
  transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1);
}
.slide {
  position: relative; flex: 0 0 100vw; width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(5rem, 11vh, 7rem) clamp(2rem, 6vw, 6rem) clamp(3rem, 7vh, 5rem);
  overflow: hidden;
}
.slide__inner {
  position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto;
  transform-origin: top center;
}

/* neutralise the old vertical section spacing (padding comes from .slide) */
.deck .section { max-width: none; margin: 0; }
.deck .approach { max-width: none; }
.deck .hero {
  min-height: 0; align-items: center;
  padding: clamp(5rem, 11vh, 7rem) clamp(2rem, 6vw, 6rem) clamp(3rem, 7vh, 5rem);
}
.deck .section__head { margin-bottom: clamp(1rem, 3vh, 2rem); }
.deck .hero__inner { width: 100%; }

/* ABOUT */
.deck #about .about__grid { gap: clamp(1.5rem, 4vw, 3.5rem); }
.deck #about .about__big { font-size: clamp(1.2rem, 1.9vw, 1.7rem); }
.deck #about .about__body p { font-size: 0.98rem; margin-bottom: 0.8rem; }
.deck #about .stats { margin-top: clamp(1.5rem, 4vh, 2.5rem); padding-top: clamp(1.2rem, 3vh, 2rem); }
.deck #about .stat__num { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }

/* EXPERTISE — 4x2 grid, tightened so all 8 fit cleanly */
.deck #expertise .cards { grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.deck #expertise .card {
  position: relative; padding: 1rem; border-radius: 14px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.4s, filter 0.5s, opacity 0.5s;
}
.deck #expertise .card__icon { width: 38px; height: 38px; font-size: 1.1rem; margin-bottom: 0.6rem; border-radius: 10px; }
.deck #expertise .card__title { font-size: 0.95rem; margin-bottom: 0.35rem; }
.deck #expertise .card__text { font-size: 0.78rem; line-height: 1.4; margin-bottom: 0.6rem; }
.deck #expertise .card__tags li { font-size: 0.62rem; padding: 0.2rem 0.5rem; }
/* spotlight intro: all buried, then focused one by one */
.deck #expertise .card.buried { filter: blur(7px); opacity: 0.4; transform: scale(0.95); }
.deck #expertise .card.spot {
  filter: blur(0); opacity: 1; transform: scale(1.1); z-index: 3;
  border-color: var(--orange); box-shadow: 0 40px 80px -26px rgba(232, 83, 14, 0.55);
}

/* WORK — full project rows, ~3 per slide (descriptions kept) */
.deck .work .projects { border-top: 1px solid var(--line); }
.deck .work .project {
  padding: clamp(0.9rem, 2.4vh, 1.7rem) 0.4rem;
  transition: transform 0.5s var(--ease), filter 0.5s, opacity 0.5s, padding 0.5s var(--ease);
}
.deck .work .project__title { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.deck .work .project__desc { font-size: 0.94rem; max-width: 44rem; }
.deck .work .section__sub { margin-top: -0.5rem; margin-bottom: clamp(1rem, 3vh, 1.8rem); }

/* spotlight intro: rows buried, then focused one by one */
.deck .work .project.buried { filter: blur(6px); opacity: 0.4; }
.deck .work .project.spot {
  filter: blur(0); opacity: 1; transform: scale(1.02); z-index: 2; padding-left: 1rem;
}
.deck .work .project.spot::before { width: 100%; }
.deck .work .project.spot .project__title { color: var(--orange); }

/* APPROACH — big definition (left) + numbered principles (right) */
.deck #approach .approach__layout {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.approach__quote .quote__text {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.3; letter-spacing: -0.01em;
}
.approach__quote .quote__text em { color: var(--orange); }
.approach__sign {
  display: inline-block; margin-top: 1.4rem; font-family: var(--mono);
  font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.approach__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(0.8rem, 2.2vh, 1.5rem); }
.approach__row { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.approach__idx { font-family: var(--mono); font-weight: 600; color: var(--orange); font-size: 0.95rem; padding-top: 0.15rem; display: inline-block; transition: transform 0.4s var(--ease); }
.approach__row h3 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; margin-bottom: 0.15rem; transition: color 0.4s; }
.approach__row p { color: var(--ink-soft); font-size: 0.9rem; }

/* typewriter for the definition */
.tw { display: none; }
.tw.on { display: inline; }
.tw-caret {
  display: inline-block; width: 3px; height: 1.05em; margin-left: 2px;
  background: var(--orange); vertical-align: -0.12em;
  animation: caretBlink 0.7s step-end infinite;
}
.tw-caret.done { display: none; }
@keyframes caretBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* signature line pops once when typing finishes */
.approach__sign { opacity: 0; transform: translateY(10px) scale(0.9); }
.approach__sign.pop { animation: signPop 0.6s var(--ease) forwards; }
@keyframes signPop {
  0% { opacity: 0; transform: translateY(10px) scale(0.9); }
  60% { opacity: 1; transform: translateY(0) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* CONTACT — closing slide */
.deck #contact .contact__inner { display: flex; flex-direction: column; align-items: center; }
.deck #contact .contact__title { font-size: clamp(2rem, 6vw, 4.6rem); margin-bottom: 1.1rem; }
.deck #contact .footer {
  margin: clamp(2rem, 5vh, 3.5rem) auto 0; width: 100%; max-width: 42rem;
}
.contact__status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.45rem 1.05rem; margin-bottom: 1.6rem;
}
.contact__status .dot { width: 9px; height: 9px; border-radius: 50%; background: #25c26e; animation: pulseGreen 2s infinite; }
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,194,110,0.55); }
  50% { box-shadow: 0 0 0 7px rgba(37,194,110,0); }
}
.contact__email {
  display: inline-block; position: relative; margin-top: 0.4rem;
  font-family: var(--display); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3.6vw, 3rem); color: var(--ink);
}
.contact__email::after {
  content: ""; position: absolute; left: 0; bottom: 0.08em; height: 2px; width: 0;
  background: var(--orange); transition: width 0.5s var(--ease);
}
.contact__email:hover { color: var(--orange); }
.contact__email:hover::after { width: 100%; }
.contact__row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.contact__chip {
  display: flex; flex-direction: column; gap: 0.2rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.8rem 1.4rem; transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.contact__chip span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact__chip strong { font-weight: 600; font-size: 1rem; }
a.contact__chip:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 18px 36px -22px rgba(232,83,14,0.5); }

/* closing slide — immediate, snappy staggered entrance */
.deck #contact .contact__inner.reveal { opacity: 1; transform: none; filter: none; }
.deck #contact .contact__inner > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.deck #contact .contact__inner.go > * { opacity: 1; transform: none; }
.deck #contact .contact__inner.go > *:nth-child(1) { transition-delay: 0s; }
.deck #contact .contact__inner.go > *:nth-child(2) { transition-delay: 0.08s; }
.deck #contact .contact__inner.go > *:nth-child(3) { transition-delay: 0.16s; }
.deck #contact .contact__inner.go > *:nth-child(4) { transition-delay: 0.24s; }
.deck #contact .contact__inner.go > *:nth-child(5) { transition-delay: 0.32s; }
.deck #contact .contact__inner.go > *:nth-child(6) { transition-delay: 0.40s; }
.deck #contact .contact__inner.go > *:nth-child(7) { transition-delay: 0.48s; }
.contact__resume { margin-top: 1.6rem; }
.nav__resume { font-weight: 600; }

/* BACKGROUND — education + experience */
.deck #background .bg__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.bg__col-title {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1.3rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line);
}
.bg__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(1rem, 2.6vh, 1.7rem); }
.bg__item { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; align-items: start; }
.bg__year { font-family: var(--mono); font-size: 0.82rem; color: var(--orange); padding-top: 0.2rem; }
.bg__item h4 { font-family: var(--display); font-weight: 600; font-size: 1.18rem; margin-bottom: 0.2rem; letter-spacing: -0.01em; }
.bg__item p { color: var(--ink-soft); font-size: 0.92rem; }

.bg__stack { margin-top: clamp(1.5rem, 4vh, 2.5rem); border-top: 1px solid var(--line); padding-top: clamp(1rem, 3vh, 1.6rem); }
.bg__stack-label { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.8rem; }
.bg__stack-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bg__stack-list li { font-family: var(--mono); font-size: 0.8rem; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); transition: border-color 0.3s, color 0.3s; }
.bg__stack-list li:hover { border-color: var(--orange); color: var(--ink); }

/* nav active states */
.nav__links a.active { color: var(--orange); }
.nav__links a:not(.nav__cta).active::after { width: 100%; }

/* ---------- Deck UI ---------- */
.deck-ui {
  position: fixed; left: 0; right: 0; bottom: 1.4rem; z-index: 60;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 var(--pad); pointer-events: none;
  opacity: 0; transition: opacity 0.8s var(--ease) 0.3s;
}
body.loaded .deck-ui { opacity: 1; }
.deck-ui > * { pointer-events: auto; }
.deck-dots { display: flex; gap: 0.6rem; }
.deck-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--line);
  border: 0; padding: 0; cursor: pointer; transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.deck-dot.active { background: var(--orange); transform: scale(1.35); }
.deck-hint {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.55rem 1.15rem; box-shadow: 0 12px 30px -16px rgba(28,26,23,0.45);
  animation: hintPulse 2.6s ease-in-out infinite;
  transition: opacity 0.5s, transform 0.5s;
}
.deck-hint.hidden { opacity: 0; transform: translateX(-50%) translateY(12px); pointer-events: none; }
.deck-hint__chev { display: inline-flex; gap: 1px; }
.deck-hint__chev i {
  width: 7px; height: 7px;
  border-top: 2px solid var(--orange); border-right: 2px solid var(--orange);
  transform: rotate(45deg); animation: chev 1.4s ease-in-out infinite;
}
.deck-hint__chev i:nth-child(2) { animation-delay: 0.18s; opacity: 0.5; }
@keyframes chev {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(2.5px, -2.5px); opacity: 1; }
}
@keyframes hintPulse {
  0%, 100% { box-shadow: 0 12px 30px -16px rgba(28,26,23,0.45), 0 0 0 0 rgba(232,83,14,0.4); }
  50% { box-shadow: 0 12px 30px -16px rgba(28,26,23,0.45), 0 0 0 9px rgba(232,83,14,0); }
}

/* "composing" indicator while the About intro is locked */
.deck-loading {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: none; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.55rem 1.15rem; box-shadow: 0 12px 30px -16px rgba(28,26,23,0.45);
}
.deck-ui.loading .deck-loading { display: inline-flex; }
.deck-ui.loading .deck-arrow { opacity: 0.3; pointer-events: none; }
.deck-loading i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); animation: ldot 1s ease-in-out infinite; }
.deck-loading i:nth-child(2) { animation-delay: 0.15s; }
.deck-loading i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ldot { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.deck-arrows { display: flex; align-items: center; gap: 0.9rem; }
.deck-count { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft); }
.deck-count b { color: var(--orange); }
.deck-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink); font-size: 1.4rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.deck-arrow:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.deck-arrow:disabled { opacity: 0.3; cursor: default; }

/* ---------- Desktop-only gate (polite + alive) ---------- */
.gate { display: none; }
.gate__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.gate__orb { position: absolute; border-radius: 50%; filter: blur(55px); }
.gate__orb--1 { width: 75vw; height: 75vw; top: -22vw; right: -28vw; background: radial-gradient(circle, rgba(245,133,63,0.5), transparent 70%); animation: drift1 18s ease-in-out infinite; }
.gate__orb--2 { width: 65vw; height: 65vw; bottom: -28vw; left: -22vw; background: radial-gradient(circle, rgba(232,83,14,0.28), transparent 70%); animation: drift2 22s ease-in-out infinite; }

.gate__gears { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.gate__gear { position: absolute; fill: var(--orange); }
.gate__gear--a { width: 44vw; max-width: 230px; top: -7vw; right: -7vw; opacity: 0.16; animation: spin 9s linear infinite; }
.gate__gear--b { width: 30vw; max-width: 150px; bottom: -5vw; left: -6vw; opacity: 0.13; animation: spinR 7s linear infinite; }

.gate__inner { position: relative; z-index: 2; max-width: 30rem; opacity: 0; transform: translateY(18px); animation: gateIn 0.9s var(--ease) 0.15s forwards; }
.gate__eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.3rem; }
.gate__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 2s infinite; }
.gate__title { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 9vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 0.9rem; }
.gate__text { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.55; }
.gate__text strong { color: var(--orange); font-weight: 600; }
.gate__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.9rem; }
.gate__btn { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; padding: 0.85rem 1.6rem; border-radius: 100px; border: 1.5px solid var(--ink); color: var(--ink); }
.gate__btn--primary { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 14px 30px -12px rgba(232,83,14,0.7); }
.gate__hint { display: block; margin-top: 1.9rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

@keyframes gateIn { to { opacity: 1; transform: none; } }
@keyframes spinR { to { transform: rotate(-360deg); } }

/* background keyword marquee */
.gate__marquee { position: absolute; left: 0; white-space: nowrap; display: flex; font-family: var(--display); font-weight: 700; font-style: italic; font-size: 13vw; line-height: 1; color: var(--ink); opacity: 0.035; }
.gate__marquee--top { top: 5%; animation: gateScrollL 24s linear infinite; }
.gate__marquee--bot { bottom: 5%; animation: gateScrollR 28s linear infinite; }
@keyframes gateScrollL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes gateScrollR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* rising particles */
.gate__particles i { position: absolute; bottom: -12px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); opacity: 0; animation: gateFloat 7s linear infinite; }
.gate__particles i:nth-child(1) { left: 12%; animation-delay: 0s; }
.gate__particles i:nth-child(2) { left: 28%; width: 5px; animation-delay: 1.4s; }
.gate__particles i:nth-child(3) { left: 50%; animation-delay: 2.8s; }
.gate__particles i:nth-child(4) { left: 68%; width: 5px; animation-delay: 0.8s; }
.gate__particles i:nth-child(5) { left: 82%; animation-delay: 3.6s; }
.gate__particles i:nth-child(6) { left: 40%; width: 4px; animation-delay: 5s; }
@keyframes gateFloat {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: 0.6; }
  85% { opacity: 0.5; }
  100% { transform: translateY(-92vh) scale(0.5); opacity: 0; }
}

/* title light-sweep */
.gate__title {
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 42%, var(--orange) 50%, var(--ink) 58%, var(--ink) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; animation: sweep 6s linear infinite;
}

/* primary button glow pulse */
.gate__btn--primary { animation: gateGlow 2.6s ease-in-out infinite; }
@keyframes gateGlow {
  0%, 100% { box-shadow: 0 14px 30px -12px rgba(232,83,14,0.7), 0 0 0 0 rgba(232,83,14,0.45); }
  50% { box-shadow: 0 14px 30px -12px rgba(232,83,14,0.7), 0 0 0 12px rgba(232,83,14,0); }
}

@media (max-width: 1023px), (pointer: coarse) {
  .gate {
    display: flex; position: fixed; inset: 0; z-index: 3000; background: var(--cream);
    align-items: center; justify-content: center; text-align: center; padding: 2rem; overflow: hidden;
  }
  .deck-ui, .nav, .cursor-dot, .preloader { display: none !important; }
}
