/* ============================================================
   Shweta Pandey — Personal Portfolio
   Luxury, premium personal-brand. Mobile-first.
   ============================================================ */

:root {
  /* Palette — warm ivory base, deep plum ink, champagne gold */
  --ivory:        #f8f3ec;
  --ivory-2:      #f1e8dc;
  --cream:        #fffdfa;
  --ink:          #241a26;   /* deep plum-black */
  --ink-soft:     #4a3c4d;
  --plum:         #5e2f55;
  --mauve:        #a06b86;
  --rose:         #c98a9a;
  --gold:         #c2a25a;
  --gold-bright:  #d8b96d;
  --line:         rgba(36, 26, 38, 0.12);
  --line-soft:    rgba(36, 26, 38, 0.07);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans:    "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --radius: 18px;

  --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-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: italic; color: var(--plum); }

::selection { background: var(--gold); color: var(--cream); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--plum));
  z-index: 1000; transition: width 0.1s linear;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mono {
  width: auto; height: clamp(110px, 26vw, 190px); object-fit: contain;
  animation: monoPulse 1.4s var(--ease) infinite alternate;
}
@keyframes monoPulse { from { opacity: .4; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.95em 1.7em; border-radius: 100px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--plum); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(94,47,85,0.3); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-3px); }

.btn--cv {
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  color: var(--ink);
}
.btn--cv:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(194,162,90,0.4); }

/* On dark hero, ghost button is light */
.hero .btn--ghost { color: var(--cream); border-color: rgba(255,255,255,0.4); }
.hero .btn--ghost:hover { border-color: var(--cream); background: rgba(255,255,255,0.08); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
  padding: 0.6rem 0;
}
.nav.is-scrolled {
  background: rgba(248,243,236,0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
/* While the menu is open, drop the backdrop-filter: a filtered ancestor
   becomes the containing block for the fixed overlay and would otherwise
   collapse it to the nav bar's height when scrolled mid-page. */
.nav.menu-open, .nav.menu-open.is-scrolled {
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; background: transparent;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; color: var(--cream); transition: color 0.5s; }
.nav.is-scrolled .nav__brand { color: var(--ink); }
.nav__mono { width: auto; height: 2.6rem; object-fit: contain; display: block; }
.nav__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.02em; }

.nav__links { display: none; gap: 2rem; }
.nav__links a {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400;
  color: var(--cream); position: relative; transition: color 0.4s;
}
.nav.is-scrolled .nav__links a { color: var(--ink-soft); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--gold); transition: width 0.4s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav.is-scrolled .nav__links a:hover { color: var(--ink); }

.nav__cta { display: none; }

.nav__toggle {
  background: none; border: none; cursor: pointer; padding: 0.4rem;
  display: flex; flex-direction: column; gap: 5px; z-index: 950;
}
.nav__toggle span {
  width: 26px; height: 2px; background: var(--cream); border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s, background 0.5s;
}
.nav.is-scrolled .nav__toggle span { background: var(--ink); }
.nav.menu-open .nav__toggle span { background: var(--gold-bright); }
.nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 940;
  background: linear-gradient(165deg, #2c2030 0%, #1b121b 60%, #140d14 100%);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 4.6rem var(--pad) 2rem; overflow-y: auto;
  opacity: 0; visibility: hidden;
  clip-path: circle(0% at calc(100% - 2.6rem) 2.6rem);
  transition: clip-path 0.6s var(--ease), opacity 0.4s var(--ease), visibility 0.6s;
}
.mobile-menu.is-open {
  opacity: 1; visibility: visible;
  clip-path: circle(150% at calc(100% - 2.6rem) 2.6rem);
}
.mobile-menu::after {
  content: "✦"; position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: rgba(216,185,109,0.4); font-size: 0.9rem;
}

.mobile-menu__head {
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem;
  opacity: 0; transform: translateY(-10px); transition: opacity 0.5s var(--ease) 0.1s, transform 0.5s var(--ease) 0.1s;
}
.mobile-menu.is-open .mobile-menu__head { opacity: 1; transform: translateY(0); }
.mobile-menu__mono { width: auto; height: 2.6rem; object-fit: contain; display: block; }
.mobile-menu__label { font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(248,243,236,0.5); }

.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  display: flex; align-items: baseline; gap: 1.1rem;
  font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 500;
  color: var(--ivory); padding: 0.42rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  opacity: 0; transform: translateX(-26px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s, padding-left 0.3s;
}
.mobile-menu__nav a:hover, .mobile-menu__nav a:focus-visible { color: var(--gold-bright); padding-left: 0.5rem; }
.mobile-menu__num {
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--gold); font-weight: 500; min-width: 1.8rem;
}
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: translateX(0); }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(1) { transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: 0.32s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: 0.39s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(5) { transition-delay: 0.46s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(6) { transition-delay: 0.53s; }

.mobile-menu__footer {
  margin-top: auto; padding-top: 1.8rem; display: flex; flex-direction: column; gap: 1.3rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--ease) 0.6s, transform 0.5s var(--ease) 0.6s;
}
.mobile-menu.is-open .mobile-menu__footer { opacity: 1; transform: translateY(0); }
.mobile-menu__footer .btn--cv { align-self: flex-start; font-family: var(--font-sans); }
.mobile-menu__contact { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mobile-menu__email { color: rgba(248,243,236,0.72); font-size: 0.95rem; letter-spacing: 0.03em; transition: color 0.3s; }
.mobile-menu__email:hover { color: var(--gold-bright); }
.mobile-menu__social { display: flex; gap: 0.7rem; }
.mobile-menu__social a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center; transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.mobile-menu__social svg { width: 17px; height: 17px; fill: var(--ivory); }
.mobile-menu__social a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.mobile-menu__social a:hover svg { fill: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--pad) 5rem; overflow: hidden;
  color: var(--cream);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(36,26,38,0.55) 0%, rgba(36,26,38,0.35) 40%, rgba(36,26,38,0.75) 100%),
    radial-gradient(120% 80% at 20% 30%, rgba(94,47,85,0.35), transparent 60%);
}

.hero__content {
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__eyebrow {
  font-size: 0.8rem; letter-spacing: 0.42em; text-transform: uppercase; font-weight: 400;
  color: var(--gold-bright); margin-bottom: 1.2rem; padding-left: 0.3em;
}
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.9rem, 9vw, 5.6rem); line-height: 1;
  letter-spacing: -0.01em; margin-bottom: 1.4rem; white-space: nowrap;
}
.hero__line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; }
.hero__line + .hero__line { margin-left: 0.28em; }

/* Hero portrait — full-bleed, blended into the scene */
.hero__portrait {
  position: relative; justify-self: center; align-self: end;
  width: 100%; max-width: 330px; aspect-ratio: 1 / 1; margin: 0 auto;
}
.hero__portrait picture { display: block; width: 100%; height: 100%; }
.hero__portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%;
  /* mobile: clean, symmetric circular blend — fades equally on every side */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 56%, rgba(0,0,0,0.4) 70%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 45%, rgba(0,0,0,0.4) 70%, transparent 50%);
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero__line--accent { font-style: italic; font-weight: 700; color: var(--gold-bright); }
.hero__line--accent .char {
  background: linear-gradient(110deg, var(--gold-bright), var(--rose), var(--gold-bright));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* per-letter split spans */
.char { display: inline-block; transform: translateY(110%); opacity: 0; }
.is-loaded .char {
  animation: charUp 0.9s var(--ease) forwards;
}
@keyframes charUp { to { transform: translateY(0); opacity: 1; } }

.hero__role {
  font-family: var(--font-display); font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 500; margin-bottom: 1.6rem; letter-spacing: 0.01em;
}
.hero__role .dot { color: var(--gold-bright); margin: 0 0.3em; }

.hero__tags {
  display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.4rem;
}
.hero__tags li {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.5em 1.1em; border: 1px solid rgba(255,255,255,0.32);
  border-radius: 100px; backdrop-filter: blur(4px); background: rgba(255,255,255,0.05);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--cream);
}
.hero__scroll-line {
  width: 1px; height: 46px; background: linear-gradient(var(--gold-bright), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 50%;
  background: var(--gold-bright); animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }
.hero__scroll-text { font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--ink); color: var(--ivory);
  padding: 1.4rem 0; overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 2.2rem;
  animation: marquee 38s linear infinite; will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display); font-size: clamp(1.3rem, 3.5vw, 2.1rem);
  font-weight: 500; letter-spacing: 0.02em;
}
.marquee__star { color: var(--gold-bright); font-size: 1rem !important; font-family: var(--font-sans) !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4.5rem, 11vw, 9rem) var(--pad);
}
.section__eyebrow {
  font-size: 0.78rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section__eyebrow::before {
  content: ""; width: 40px; height: 2px; display: inline-block; border-radius: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, var(--gold) 45%, var(--gold-bright), var(--gold) 55%, transparent);
  background-size: 220% 100%;
  animation: eyebrowLine 2.6s var(--ease) infinite;
}
@keyframes eyebrowLine {
  0%   { transform: scaleX(0.18); background-position: 120% 0; }
  50%  { transform: scaleX(1);    background-position: 0 0; }
  100% { transform: scaleX(0.18); background-position: -120% 0; }
}
.section__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.01em;
}
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.about__photo { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.about__photo-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(36,26,38,0.45);
  animation: floatY 7s ease-in-out infinite;
}
.about__photo-frame img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.about__photo::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1;
  animation: floatY 7s ease-in-out infinite reverse;
}
.about__photo-badge {
  position: absolute; bottom: 1rem; left: 1rem;
  background: rgba(248,243,236,0.9); backdrop-filter: blur(6px);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.5em 1em; border-radius: 100px; font-weight: 500; color: var(--plum);
}
.about__lead { font-size: 1.18rem; line-height: 1.7; margin-bottom: 1.3rem; color: var(--ink); }
.about__lead strong { color: var(--plum); font-weight: 500; }
.about__text { color: var(--ink-soft); margin-bottom: 2.2rem; }

/* both stats stay on one row; labels stay on a single line */
.stats {
  display: flex; flex-wrap: nowrap; align-items: baseline;
  gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: 2.2rem;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--font-display); font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 600; line-height: 1; color: var(--plum);
}
.stat__label {
  font-size: clamp(0.66rem, 1.5vw, 0.8rem); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 0.5rem; white-space: nowrap;
}

.about__social { display: flex; align-items: center; gap: 1rem; }
.about__social a {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-soft);
  transition: background 0.4s, color 0.4s, transform 0.4s, border-color 0.4s;
}
.about__social a:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); border-color: var(--ink); }
.about__social svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================================
   TECHNICAL SKILLS
   ============================================================ */
.skills { background: linear-gradient(180deg, transparent, var(--ivory-2) 50%, transparent); border-radius: 40px; }
.skills__bars { display: flex; flex-direction: column; gap: 2rem; max-width: 760px; }
.bar__top {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.7rem;
}
.bar__top span:first-child { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.bar__pct { font-size: 0.9rem; color: var(--gold); font-weight: 500; letter-spacing: 0.05em; }
.bar__track { height: 6px; background: var(--line); border-radius: 100px; overflow: hidden; }
.bar__fill {
  display: block; height: 100%; width: 0; position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--plum), var(--mauve), var(--gold), var(--mauve), var(--plum));
  background-size: 250% 100%;
  border-radius: 100px; transition: width 1.6s var(--ease);
  animation: barShimmer 3.5s linear infinite;
}
/* a light that keeps running along the filled bar */
.bar__fill::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: barRun 1.8s linear infinite;
}
@keyframes barShimmer { to { background-position: -250% 0; } }
@keyframes barRun { 0% { transform: translateX(-120%); } 100% { transform: translateX(340%); } }

/* ============================================================
   VALUE — scroll-driven explainer
   ============================================================ */
.value { position: relative; background: var(--ink); color: var(--ivory); overflow: hidden; }
.value::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 80% 20%, rgba(94,47,85,0.45), transparent 60%);
}
.value__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
}
.value__heading { margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.value__heading .section__eyebrow { color: var(--gold-bright); }
.value__heading .section__title { color: var(--ivory); }
.value__heading .section__title em { color: var(--gold-bright); }

/* Cards share one grid cell so the container grows to the tallest card
   (prevents the longest card's text from overlapping the dots below). */
.value__cards { display: grid; }
.value-card {
  grid-area: 1 / 1; opacity: 0; transform: translateY(34px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.value-card.is-active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.value-card__index {
  font-family: var(--font-display); font-size: clamp(4rem, 14vw, 9rem); font-weight: 600;
  color: transparent; -webkit-text-stroke: 1px rgba(216,185,109,0.5);
  line-height: 0.8; display: block; margin-bottom: 1rem;
}
.value-card h3 {
  font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 600; margin-bottom: 1rem; color: var(--ivory);
}
.value-card p { font-size: clamp(1.05rem, 2.5vw, 1.35rem); max-width: 60ch; color: rgba(248,243,236,0.78); }

/* dots with auto-progress fill */
.value__dots { display: flex; gap: 0.9rem; margin-top: 2.5rem; }
.value__dot {
  position: relative; width: 56px; height: 4px; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.16); border-radius: 4px; overflow: hidden;
  transition: background 0.4s;
}
.value__dot-fill {
  position: absolute; inset: 0; width: 0; background: var(--gold-bright); border-radius: 4px;
}
.value__dot.is-active .value__dot-fill { animation: dotFill var(--value-interval, 4s) linear forwards; }
@keyframes dotFill { from { width: 0; } to { width: 100%; } }
.value.is-paused .value__dot.is-active .value__dot-fill { animation-play-state: paused; }

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-card {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--cream); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 640px; position: relative; overflow: hidden;
  box-shadow: 0 20px 40px -30px rgba(36,26,38,0.4);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.edu-card:hover { transform: translateY(-5px); box-shadow: 0 28px 50px -28px rgba(36,26,38,0.45); }
.edu-card__year {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--gold);
  min-width: 4.5rem;
}
.edu-card__body h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.edu-card__body p { color: var(--ink-soft); }
.edu-card__icon { width: 40px; height: 40px; fill: var(--mauve); margin-left: auto; opacity: 0.5; }

/* ============================================================
   EXPERIENCE — timeline
   ============================================================ */
.timeline { position: relative; padding-left: 1.8rem; max-width: 820px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1.5px;
  background: linear-gradient(var(--gold), var(--rose), var(--line));
}
.timeline__item { position: relative; padding-bottom: 2.4rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -1.8rem; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--gold); transform: translateX(0);
}
.timeline__item:first-child .timeline__dot {
  background: var(--gold); box-shadow: 0 0 0 5px rgba(194,162,90,0.18);
}
.timeline__card {
  background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(1.3rem, 3.5vw, 2rem);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.timeline__card:hover { transform: translateX(6px); box-shadow: 0 20px 40px -30px rgba(36,26,38,0.45); }
.timeline__meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.timeline__period { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.timeline__badge {
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  padding: 0.25em 0.7em; border-radius: 100px; background: var(--plum); color: var(--cream);
}
.timeline__card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin-bottom: 0.2rem; }
.timeline__company {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 500; color: var(--plum); margin-bottom: 0.7rem; letter-spacing: 0.02em;
}
.timeline__logo { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }
.timeline__card p:last-child { color: var(--ink-soft); font-size: 0.98rem; }

/* ============================================================
   INTERESTS
   ============================================================ */
.interests__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.interest {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
  padding: clamp(1.8rem, 5vw, 3rem) 1rem; background: var(--cream);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease);
}
.interest:hover { transform: translateY(-6px); background: var(--ink); color: var(--ivory); }
.interest__icon {
  width: 64px; height: 64px; object-fit: contain; display: block;
  transition: transform 0.5s var(--ease);
  animation: bob 3.2s ease-in-out infinite;
}
.interest:nth-child(2) .interest__icon { animation-delay: 0.4s; }
.interest:nth-child(3) .interest__icon { animation-delay: 0.8s; }
.interest:nth-child(4) .interest__icon { animation-delay: 1.2s; }
.interest:hover .interest__icon { animation: none; transform: scale(1.2) rotate(8deg); }
.interest span:last-child { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { }
.contact__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.contact__text { color: var(--ink-soft); font-size: 1.1rem; margin: 1.4rem 0 2rem; max-width: 44ch; }
.contact__email {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 500;
  color: var(--plum); transition: color 0.4s; margin-bottom: 2rem;
}
.contact__email:hover { color: var(--gold); }
.contact__email svg { width: 26px; height: 26px; fill: currentColor; }
.contact__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.contact__social {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background 0.4s, color 0.4s, transform 0.4s, border-color 0.4s;
}
.contact__social svg { width: 18px; height: 18px; fill: currentColor; }
.contact__social:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); border-color: var(--ink); }

/* Form */
.contact__form { display: flex; flex-direction: column; gap: 1.6rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.3rem 1.1rem 0.6rem; resize: vertical;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.field textarea { padding-top: 1.5rem; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(194,162,90,0.14);
}
.field label {
  position: absolute; left: 1.1rem; top: 1rem; color: var(--ink-soft);
  font-size: 1rem; pointer-events: none; transition: all 0.3s var(--ease); transform-origin: left;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 0.45rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}
.contact__submit { align-self: flex-start; }
.contact__submit.is-loading { opacity: 0.7; pointer-events: none; }
.contact__status { font-size: 0.92rem; min-height: 1.2em; transition: color 0.3s; }
.contact__status.is-success { color: var(--plum); font-weight: 500; }
.contact__status.is-error { color: #b5483f; }

.contact__form.is-sent {
  align-items: center; text-align: center; justify-content: center;
  min-height: 280px; gap: 0.8rem;
}
.contact__sent-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--plum); color: var(--cream); font-size: 1.8rem; margin-bottom: 0.5rem;
  animation: pop 0.6s var(--ease);
}
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.contact__sent-title { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--ink); }
.contact__sent-text { color: var(--ink-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--ivory); padding-top: clamp(3rem, 7vw, 5rem); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 2.5rem;
  display: grid; gap: 2.5rem; text-align: center;
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.footer__mono { width: auto; height: 3.4rem; object-fit: contain; display: block; margin-bottom: 0.5rem; }
.footer__brand p { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.footer__role { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(248,243,236,0.6); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer__links a {
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(248,243,236,0.75);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--gold-bright); }
.footer__social { display: flex; justify-content: center; gap: 1rem; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center; transition: background 0.4s, transform 0.4s, border-color 0.4s;
}
.footer__social svg { width: 17px; height: 17px; fill: var(--ivory); }
.footer__social a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer__social a:hover svg { fill: var(--ink); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 1.8rem var(--pad);
  text-align: center; font-size: 0.8rem; color: rgba(248,243,236,0.55); letter-spacing: 0.05em;
}
.footer__disclaimer {
  max-width: 100%; margin: 0 auto 1rem; font-size: 0.72rem; line-height: 1.7;
  color: rgba(248,243,236,0.4); letter-spacing: 0.02em;
}
@media (min-width: 820px) {
  .footer__disclaimer { white-space: nowrap; font-size: clamp(0.6rem, 1.15vw, 0.72rem); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 720px) {
  .interests__grid { grid-template-columns: repeat(4, 1fr); }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__links { display: flex; }
}
@media (min-width: 860px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__text { position: relative; z-index: 2; max-width: 58%; }
  .hero__portrait {
    position: absolute; right: 0; top: 0; bottom: 0; left: auto;
    width: 50%; max-width: none; height: 100%; z-index: 1;
    justify-self: auto; align-self: stretch;
  }
  .hero__portrait picture, .hero__portrait img { height: 100%; }
  .hero__portrait img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 16%;
    /* fade the left edge so the figure dissolves into the sky */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 50%);
    mask-image: linear-gradient(to right, transparent 0%, #000 50%);
  }
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 0.9fr 1.1fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer__inner { grid-template-columns: 1fr auto 1fr; text-align: left; align-items: center; }
  .footer__brand { align-items: flex-start; }
  .footer__social { justify-content: flex-end; }
}

/* ============================================================
   LEGAL PAGE (privacy policy)
   ============================================================ */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(7rem, 13vw, 9.5rem) var(--pad) 4rem; }
.legal__title {
  font-family: var(--font-display); font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; margin: 0.4rem 0 0.5rem;
}
.legal__updated {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 2.2rem;
}
.legal__lead { font-size: 1.15rem; line-height: 1.75; color: var(--ink); margin-bottom: 2.5rem; }
.legal__lead strong { color: var(--plum); font-weight: 500; }
.legal__section { margin-bottom: 2rem; }
.legal__section h2 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 1.95rem);
  font-weight: 600; color: var(--plum); margin-bottom: 0.7rem;
}
.legal__section p { color: var(--ink-soft); margin-bottom: 0.85rem; line-height: 1.75; }
.legal__section ul { margin: 0 0 0.9rem; padding-left: 1.3rem; }
.legal__section li { color: var(--ink-soft); margin-bottom: 0.6rem; line-height: 1.7; list-style: disc; }
.legal__section li::marker { color: var(--gold); }
.legal__section li strong { color: var(--ink); font-weight: 500; }
.legal__link, .legal__section a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s; }
.legal__link:hover, .legal__section a:hover { color: var(--gold); }
.legal__back { margin-top: 2.2rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .char { opacity: 1; transform: none; }
  .hero__video { display: none; }
}
