/* ============ PORTFOLIO — ARIUNZAYA × PARCOVO ============ */

:root {
  --navy: #1C3A6E;
  --navy-deep: #0F2347;
  --sky: #7FC5E8;
  --sky-soft: #BFE0F2;
  --ice: #E8F4FB;
  --cream: #FFF9F0;
  --paper: #FBF6EC;
  --pink: #FFD4D4;
  --gold: #F5D547;
  --ink: #131A2A;
  --muted: #5B6478;
  --line: rgba(28,58,110,0.12);

  --font-display: "Bricolage Grotesque", "Fraunces", serif;
  --font-body: "Geist", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-fancy: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.01em;
}

/* paper texture: subtle dot grid + warm vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(28,58,110,0.07) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(127,197,232,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 90%, rgba(245,213,71,0.08), transparent 60%);
}

#root { position: relative; z-index: 1; }

/* ============ TYPOGRAPHY ============ */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.mono { font-family: var(--font-mono); font-feature-settings: "ss02"; }
.tiny-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 8px 7px 18px;
  background: rgba(255, 250, 240, 0.78);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 28px -10px rgba(28,58,110,0.18), inset 0 1px 0 rgba(255,255,255,0.6);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  padding-right: 14px;
  border-right: 1px solid var(--line);
  margin-right: 6px;
}
.nav-brand .dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy);
  display: grid; place-items: center;
  color: var(--cream);
  font-size: 12px;
}
.nav-logo-wrap {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy);
  display: grid; place-items: center;
  overflow: hidden;
  padding: 5px;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: invert(1) brightness(1.15);
}
.nav-brand .label {
  font-family: var(--font-fancy);
  font-style: italic;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav a:hover { background: var(--ice); color: var(--navy); }
.nav .cta {
  background: var(--navy);
  color: var(--cream);
  padding: 8px 16px;
}
.nav .cta:hover { background: var(--navy-deep); color: var(--cream); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 6vw 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: flex-start;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2BA76A;
  position: relative;
}
.hero-eyebrow .pulse::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%;
  border: 2px solid #2BA76A;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(54px, 7.2vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
}
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: 6%;
  height: 18%;
  background: var(--gold);
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-6deg);
  opacity: 0.72;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-meta {
  display: flex; gap: 22px; flex-wrap: wrap;
  align-items: center;
  margin-bottom: 36px;
}
.hero-meta .stat {
  display: flex; flex-direction: column;
}
.hero-meta .num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--navy);
  line-height: 1;
  font-weight: 700;
}
.hero-meta .lbl {
  font-size: 11.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-top: 4px;
}
.hero-meta .div {
  width: 1px; height: 32px; background: var(--line);
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(28,58,110,0.5); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ice); border-color: var(--sky); }
.btn-resume {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.btn-resume::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: btn-shimmer 2.6s ease-in-out infinite;
}
@keyframes btn-shimmer {
  0%      { left: -100%; }
  55%, 100% { left: 155%; }
}
.btn-resume:hover {
  background: #f0ca30;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(245,213,71,0.65);
}

/* === Eye-catching résumé button — large, two-line, with arrow === */
.btn-resume-xl {
  padding: 14px 18px 14px 22px;
  background: linear-gradient(155deg, #FFE875 0%, var(--gold) 55%, #E6BD2E 100%);
  border: 1.5px solid #D4B12A;
  border-radius: 18px;
  font-size: 14.5px;
  box-shadow:
    0 14px 32px -12px rgba(245,213,71,0.7),
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 0 -2px 0 rgba(0,0,0,0.08);
  gap: 12px;
}
.btn-resume-xl .btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  gap: 3px;
}
.btn-resume-xl .btn-main {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}
.btn-resume-xl .btn-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28,58,110,0.65);
}
.btn-resume-xl .btn-arrow {
  margin-left: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-deep);
  transition: transform 0.25s ease;
  animation: arrow-bob 2s ease-in-out infinite;
}
.btn-resume-xl:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 40px -14px rgba(245,213,71,0.85),
    inset 0 1px 0 rgba(255,255,255,0.65);
}
.btn-resume-xl:hover .btn-arrow {
  transform: translateY(3px) scale(1.15);
}
@keyframes arrow-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

/* Cover letter download button — paper-like */
.btn-letter {
  background: var(--cream);
  color: var(--navy);
  border: 1px solid var(--navy);
  font-weight: 600;
}
.btn-letter:hover {
  background: var(--navy);
  color: var(--cream);
  transform: translateY(-2px);
}

/* Nav résumé pill */
.nav-resume {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  font-weight: 600 !important;
  border: 1px solid #D4B12A;
  box-shadow: 0 4px 12px -4px rgba(245,213,71,0.6);
}
.nav-resume:hover {
  background: #f0ca30 !important;
  transform: translateY(-1px);
}

/* Letter section action row */
.letter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 880px;
  margin: 32px auto 0;
}

/* === HERO RIGHT — video stage === */
.hero-stage {
  position: relative;
  overflow: visible;
  align-self: center;
}

.hero-right {
  position: absolute;
  top: clamp(242px, 22vh, 312px);
  right: 4vw;
  left: auto;
  width: clamp(420px, 52vw, 760px);
  height: clamp(250px, 30vw, 420px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
}

/* ── Hero video — 4-sided smudge blur walls ── */
.hero-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  border-radius: 30px;
  isolation: isolate;
}
.hero-video-wrap::before {
  content: "";
  position: absolute;
  inset: -12% -14%;
  border-radius: 34px;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(251,246,236,0.44) 72%, rgba(251,246,236,0.08) 92%, transparent 100%);
  filter: blur(16px);
  opacity: 0.6;
  z-index: 1;
}
.hero-video-wrap::after {
  content: none;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  filter: saturate(1.08) contrast(1.04) brightness(0.98);
  opacity: 0.95;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
  box-shadow:
    0 30px 70px -40px rgba(15,35,71,0.55),
    0 12px 36px -20px rgba(28,58,110,0.45);
}
.hero-video-tint { display: none; }

/* 4-sided smudge walls — gradient overlays with blur for feathered edges */
.hvid-edge {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: normal;
}
.hvid-top {
  top: -8%; left: -9%; right: -9%;
  height: 34%;
  background:
    linear-gradient(to bottom, rgba(251,246,236,0.96) 24%, rgba(251,246,236,0.24) 58%, transparent 100%),
    radial-gradient(ellipse at 50% 0%, rgba(255,250,240,0.6), transparent 72%);
  filter: blur(18px);
}
.hvid-bottom {
  bottom: -8%; left: -9%; right: -9%;
  height: 34%;
  background:
    linear-gradient(to top, rgba(251,246,236,0.96) 24%, rgba(251,246,236,0.24) 58%, transparent 100%),
    radial-gradient(ellipse at 50% 100%, rgba(255,250,240,0.56), transparent 70%);
  filter: blur(18px);
}
.hvid-left {
  left: -8%; top: -9%; bottom: -9%;
  width: 32%;
  background:
    linear-gradient(to right, rgba(251,246,236,0.98) 24%, rgba(251,246,236,0.32) 58%, transparent 100%),
    radial-gradient(ellipse at 0% 50%, rgba(255,250,240,0.56), transparent 72%);
  filter: blur(20px);
}
.hvid-right {
  right: -8%; top: -9%; bottom: -9%;
  width: 32%;
  background:
    linear-gradient(to left, rgba(251,246,236,0.98) 24%, rgba(251,246,236,0.3) 58%, transparent 100%),
    radial-gradient(ellipse at 100% 50%, rgba(255,250,240,0.56), transparent 72%);
  filter: blur(20px);
}

/* Lift the cube above the video */
.cube-stage {
  position: relative;
  z-index: 1;
}

.video-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.video-stage-video {
  display: block;
  width: 115%;
  margin-left: -15%;
  height: auto;
  aspect-ratio: 16 / 9;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-composite: intersect;
}

/* Sparkle / heart float animations */
@keyframes float-a {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50% { transform: translate(8px, -14px) rotate(2deg); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) rotate(2deg); }
  50% { transform: translate(-12px, -10px) rotate(-3deg); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(10px, 12px) rotate(3deg); }
}

/* Sparkles & hearts */
.sparkle, .heart-bit {
  position: absolute;
  pointer-events: none;
}
.sparkle svg, .heart-bit svg { display: block; }
.sparkle { animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.05) rotate(20deg); }
}
.heart-bit { animation: hearts 5s ease-in-out infinite; }
@keyframes hearts {
  0% { transform: translateY(0) scale(0.95); opacity: 0.7; }
  50% { transform: translateY(-12px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(0.95); opacity: 0.7; }
}

/* ============ MARQUEE strip ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll-marquee 40s linear infinite;
}
.marquee-item {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.marquee-item .star {
  color: var(--gold);
  font-size: 18px;
}
@keyframes scroll-marquee {
  to { transform: translateX(-50%); }
}

/* ============ SECTION shell ============ */
section.block {
  padding: 130px 6vw;
  position: relative;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 900px;
  font-weight: 700;
}
.section-head h2 em {
  font-style: italic;
  color: var(--navy);
  font-weight: 500;
}
.section-head .right {
  text-align: right;
  font-size: 14px;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.6;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.about-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--sky-soft), transparent 70%);
  opacity: 0.7;
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 16px;
  position: relative;
}
.about-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  position: relative;
}
.about-card p strong { color: var(--ink); font-weight: 600; }

.about-prose {
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.about-prose p { margin: 0 0 22px; }
.about-prose p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 4.2em;
  float: left;
  line-height: 0.9;
  margin: 6px 14px -4px 0;
  color: var(--navy);
  font-weight: 700;
}
.about-prose .hl {
  background: linear-gradient(180deg, transparent 65%, var(--gold) 65%, var(--gold) 92%, transparent 92%);
  padding: 0 2px;
}

/* Languages chip row */
.lang-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 28px;
}
.lang-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
}
.lang-chip .flag { font-size: 16px; }

/* ============ PROJECT — PARCOVO ============ */
.project-section {
  background: linear-gradient(180deg, var(--paper) 0%, var(--ice) 60%, var(--paper) 100%);
  position: relative;
}

.project-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: stretch;
  margin-bottom: 60px;
}
.project-card {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  border-radius: 32px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(127,197,232,0.25), transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(245,213,71,0.12), transparent 50%);
  pointer-events: none;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 22px 22px;
}
.project-card > * { position: relative; z-index: 1; }

.project-card .meta-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
}
.project-card .meta-row .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: clamp(46px, 5.5vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  font-weight: 700;
}
.project-card .lede {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255,250,240,0.78);
  max-width: 640px;
  margin: 0 0 36px;
}
.project-card .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.project-card .stat-grid .num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cream);
  line-height: 1;
}
.project-card .stat-grid .num .unit {
  font-size: 0.6em; color: var(--sky); margin-left: 2px;
}
.project-card .stat-grid .lbl {
  font-size: 12px;
  color: rgba(255,250,240,0.6);
  margin-top: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* PARCOVO logo card */
.brand-card {
  background: linear-gradient(160deg, var(--ice), #fff);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 36px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.brand-card .logo-stage {
  flex: 1;
  display: grid; place-items: center;
  position: relative;
  min-height: 220px;
}
.brand-card .logo-stage img {
  width: 92%;
  max-width: 360px;
  filter: drop-shadow(0 20px 24px rgba(28,58,110,0.18));
  animation: logo-bounce 4s ease-in-out infinite;
}
@keyframes logo-bounce {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
.brand-card .logo-stage .sparkle-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.brand-card .meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  padding-top: 24px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.brand-card .meta-item .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.brand-card .meta-item .v {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}
.brand-card .meta-item .v .live {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #2BA76A;
  margin-right: 6px;
  position: relative; top: -1px;
  box-shadow: 0 0 0 0 rgba(43,167,106,0.5);
  animation: live-pulse 1.6s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,167,106,0.5); }
  100% { box-shadow: 0 0 0 8px rgba(43,167,106,0); }
}

/* === FEATURE GRID === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex; flex-direction: column;
  min-height: 360px;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(28,58,110,0.25);
  border-color: var(--sky);
}
.feature-card .feature-anim {
  height: 168px;
  margin: -8px -8px 22px;
  background: linear-gradient(160deg, #fff, var(--ice));
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.feature-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.feature-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.feature-card .feat-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ============ EXPERIENCE timeline ============ */
.timeline {
  display: flex; flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--navy), var(--sky), transparent);
}
.tl-item {
  position: relative;
  padding: 28px 0 28px 24px;
  border-bottom: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: none; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -32px; top: 36px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 4px var(--paper);
}

/* Education entries — gold dot marker */
.tl-item.tl-edu::before {
  border-color: var(--gold);
  background: var(--gold);
}
.tl-item.tl-edu h4 {
  color: var(--navy);
}
.tl-item.tl-edu .when {
  background: rgba(245,213,71,0.18);
  color: var(--navy-deep);
  border: 1px solid rgba(245,213,71,0.5);
}

.tl-item .tl-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.tl-item h4 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.tl-item .org {
  font-size: 15px;
  color: var(--muted);
}
.tl-item .when {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--navy);
  background: var(--ice);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.tl-item p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 760px;
}

/* ============ SKILLS ============ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-block {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.skill-block:hover { transform: translateY(-3px); }
.skill-block .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.skill-block h4 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 8px 0 18px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--navy);
}
.skill-block ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.skill-block li {
  font-size: 13.5px;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}

/* ============ CONTACT ============ */
.contact-section {
  background: var(--navy);
  color: var(--cream);
  padding: 120px 6vw 60px;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.contact-h {
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 110px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  font-weight: 700;
}
.contact-h em { font-style: italic; color: var(--sky); font-weight: 500; }
.contact-section p { font-size: 18px; line-height: 1.6; color: rgba(255,250,240,0.7); max-width: 560px; }
.contact-links {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 32px;
}
.contact-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  color: var(--cream);
  transition: padding 0.25s ease, border-color 0.25s ease;
}
.contact-row:hover { padding-left: 12px; border-color: var(--sky); }
.contact-row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,250,240,0.5);
  width: 120px;
}
.contact-row .v {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.015em;
  flex: 1;
  text-align: left;
}
.contact-row .arr {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--sky);
  transition: transform 0.25s ease;
}
.contact-row:hover .arr { transform: translateX(6px); }

.contact-mascot {
  position: relative;
  height: 480px;
  perspective: 1400px;
  display: grid;
  place-items: center;
}

/* ── 3D footer brand stage ───────────────────────────────────────── */
.footer-3d {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  perspective: 1400px;
}
.footer-3d-stage {
  position: relative;
  width: 360px;
  height: 360px;
  transform-style: preserve-3d;
  animation: footer3d-spin 18s linear infinite;
}
@keyframes footer3d-spin {
  0%   { transform: rotateX(-12deg) rotateY(0deg); }
  100% { transform: rotateX(-12deg) rotateY(360deg); }
}
.footer-tile {
  position: absolute;
  top: 50%; left: 50%;
  width: 140px;
  height: 56px;
  margin: -28px 0 0 -70px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245,213,71,0.18), rgba(127,197,232,0.16));
  border: 1px solid rgba(245,237,213,0.35);
  box-shadow:
    0 18px 40px rgba(8,28,56,0.45),
    inset 0 1px 0 rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  backdrop-filter: blur(6px);
}
.footer-tile span { display: block; }
.footer-tile.ft-1 { transform: rotateY(0deg)   translateZ(140px); background: linear-gradient(135deg, rgba(245,213,71,0.28), rgba(245,213,71,0.10)); }
.footer-tile.ft-2 { transform: rotateY(90deg)  translateZ(140px); background: linear-gradient(135deg, rgba(127,197,232,0.28), rgba(127,197,232,0.10)); }
.footer-tile.ft-3 { transform: rotateY(180deg) translateZ(140px); background: linear-gradient(135deg, rgba(245,213,71,0.28), rgba(127,197,232,0.18)); }
.footer-tile.ft-4 { transform: rotateY(270deg) translateZ(140px); background: linear-gradient(135deg, rgba(127,197,232,0.28), rgba(245,213,71,0.18)); }

.footer-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(circle at center, var(--gold), #d6b033 70%, #8a6f1e 100%);
  box-shadow:
    0 0 60px rgba(245,213,71,0.4),
    0 30px 50px rgba(8,28,56,0.55),
    inset 0 4px 0 rgba(255,255,255,0.4),
    inset 0 -8px 16px rgba(0,0,0,0.25);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}
.footer-core::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,213,71,0.25), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.footer-core-logo {
  position: absolute;
  width: 75%;
  height: 75%;
  object-fit: contain;
  filter: brightness(0) invert(0.08);
  opacity: 0.85;
  display: none;
}
.footer-core-letter {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 96px;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255,255,255,0.4);
}

footer {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: rgba(255,250,240,0.5);
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-stage { order: -1; }
  .hero-right {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: min(92vw, 620px);
    height: clamp(220px, 44vw, 330px);
    margin: 20px auto 14px;
    z-index: 1;
  }
  .project-hero { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-mascot { height: 320px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .right { text-align: left; }
  .nav { padding: 6px 6px 6px 12px; gap: 2px; flex-wrap: nowrap; }
  .nav-brand { font-size: 14px; padding-right: 10px; }
  .nav-brand .label { display: none; }
  .nav a { padding: 7px 9px; font-size: 12px; white-space: nowrap; }
  .nav a[href="#about"], .nav a[href="#experience"] { display: none; }
}
@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
  .project-card { padding: 32px 24px; }
  .project-card .stat-grid { grid-template-columns: repeat(2, 1fr); }
  section.block { padding: 80px 5vw; }
  .nav .nav-brand .label { display: none; }
}

/* ============ HERO AURORA ============ */
.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
}
.aurora-blob-1 {
  width: 680px; height: 560px;
  background: rgba(127,197,232,0.20);
  filter: blur(90px);
  top: -130px; right: -80px;
  animation: aurora1 15s ease-in-out infinite;
}
.aurora-blob-2 {
  width: 480px; height: 400px;
  background: rgba(245,213,71,0.13);
  filter: blur(80px);
  bottom: 4%; left: -60px;
  animation: aurora2 20s ease-in-out infinite;
}
.aurora-blob-3 {
  width: 340px; height: 340px;
  background: rgba(255,212,212,0.18);
  filter: blur(70px);
  top: 30%; right: 28%;
  animation: aurora3 17s ease-in-out infinite;
}
@keyframes aurora1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 45px) scale(1.09); }
  66% { transform: translate(35px, -25px) scale(0.94); }
}
@keyframes aurora2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(65px, -55px) scale(1.13); }
}
@keyframes aurora3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  50% { transform: translate(-38px, 42px) scale(1.07); opacity: 0.55; }
}

/* ============ FLOATING PARTICLES ============ */
.floating-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.float-particle {
  position: absolute;
  animation: particle-float 8s ease-in-out infinite;
}
@keyframes particle-float {
  0%, 100% { transform: translateY(0) rotate(0deg);   opacity: 0.65; }
  33%       { transform: translateY(-22px) rotate(18deg); opacity: 1;    }
  66%       { transform: translateY(12px) rotate(-12deg); opacity: 0.75; }
}

/* ============ HERO CONTENT z-index layer ============ */
.hero-content {
  position: relative;
  z-index: 2;
}

/* ============ FANCY NAME ============ */
.fancy-name {
  font-family: var(--font-fancy);
  font-style: italic;
  font-weight: 600;
  font-size: 1.08em;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ============ HERO ENTRANCE ANIMATION ============ */
.hero-content > * {
  animation: hero-enter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.18s; }
.hero-content > *:nth-child(3) { animation-delay: 0.30s; }
.hero-content > *:nth-child(4) { animation-delay: 0.42s; }
.hero-content > *:nth-child(5) { animation-delay: 0.54s; }
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ============ MARQUEE SVG STARS ============ */
.marquee-item.star {
  display: flex;
  align-items: center;
}

/* ============ HERO 3D CUBE ============ */
.cube-stage {
  perspective: 1400px;
  position: relative;
  height: 540px;
  display: grid;
  place-items: center;
}
.cube-floor {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(28,58,110,0.22), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.cube {
  position: relative;
  width: 280px;
  height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  will-change: transform;
}
.cube-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(28,58,110,0.18);
  box-shadow: 0 20px 60px -20px rgba(28,58,110,0.45), inset 0 0 0 1px rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  backface-visibility: visible;
}
.cube-face .face-inner {
  text-align: center;
  padding: 14px;
}
.cube-face .face-txt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.cube-face .face-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 10px;
  color: rgba(19,26,42,0.68);
}
.cube-face.f-0 .face-txt { color: var(--cream); }
.cube-face.f-0 .face-sub { color: rgba(255,250,240,0.7); }
.cube-face.f-2 .face-txt { color: var(--navy-deep); }
.cube-face.f-2 .face-sub { color: var(--navy); }

/* orbiting brand bits */
.orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.orbit .orbit-dot {
  position: absolute;
  filter: drop-shadow(0 4px 8px rgba(28,58,110,0.3));
}
.orbit-1 { animation: orbit-spin 9s linear infinite; }
.orbit-2 { animation: orbit-spin 13s linear infinite reverse; }
.orbit-3 { animation: orbit-spin 17s linear infinite; }
.orbit-1 .orbit-dot { transform: translate(220px, -40px); }
.orbit-2 .orbit-dot { transform: translate(-200px, 40px); }
.orbit-3 .orbit-dot { transform: translate(120px, 200px); }
@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}
.cube-hint {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

/* ============ COVER LETTER ============ */
.letter-section {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}
.letter-card {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  background: #FFFCF4;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 64px 72px 56px;
  box-shadow:
    0 40px 80px -40px rgba(28,58,110,0.25),
    0 12px 30px -16px rgba(28,58,110,0.18);
  overflow: hidden;
}
.letter-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--navy), var(--sky), var(--gold), var(--pink));
}
.letter-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(28,58,110,0.05) 1px, transparent 0);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at top right, black, transparent 70%);
}
.letter-stamp {
  position: absolute;
  top: 26px;
  right: 32px;
  width: 56px;
  height: 56px;
  border: 1.5px dashed var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: rotate(-12deg);
  color: var(--navy);
  background: rgba(255,250,240,0.5);
}
.letter-meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 22px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
}
.letter-meta .k {
  display: inline-block;
  width: 56px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
.letter-card p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.letter-card p strong { color: var(--navy); font-weight: 600; }
.letter-card p em {
  font-family: var(--font-fancy);
  font-style: italic;
  font-size: 1.1em;
  color: var(--navy);
}
.letter-lede {
  font-size: 19px !important;
  line-height: 1.65 !important;
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  margin-bottom: 32px !important;
}
.letter-callout {
  background: linear-gradient(180deg, transparent 0%, rgba(245,213,71,0.18) 0%, rgba(245,213,71,0.18) 100%, transparent 100%);
  padding: 16px 22px !important;
  border-radius: 8px;
  font-style: italic;
  color: var(--navy-deep) !important;
}
.letter-sign {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
}
.letter-sign .sig {
  font-family: var(--font-fancy);
  font-style: italic;
  font-size: 44px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.letter-sign .sig-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.7;
}

/* ============ CONTACT 3D TILES ============ */
.contact-3d {
  position: relative;
  height: 480px;
  perspective: 1100px;
  display: grid;
  place-items: center;
}
.contact-3d-stage {
  position: relative;
  width: 280px;
  height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out;
}
.contact-3d-stage .ctile {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.5);
  backface-visibility: visible;
}
.ctile span {
  position: relative;
  z-index: 1;
}
.ctile-1 {
  background: var(--gold);
  color: var(--navy-deep);
  top: -10px; left: -10px;
  transform: translateZ(80px);
}
.ctile-2 {
  background: var(--sky);
  color: var(--navy-deep);
  top: -10px; right: -10px;
  transform: translateZ(-40px) translateX(40px);
}
.ctile-3 {
  background: var(--pink);
  color: var(--navy-deep);
  bottom: -10px; left: -10px;
  transform: translateZ(-40px) translateY(40px);
}
.ctile-4 {
  background: var(--cream);
  color: var(--navy-deep);
  bottom: -10px; right: -10px;
  transform: translateZ(80px) translateX(20px) translateY(20px);
}
.ctile-core {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--navy), var(--navy-deep));
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  top: 50%; left: 50%;
  margin: -55px 0 0 -55px;
  transform: translateZ(20px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  position: absolute;
  overflow: hidden;
}
.core-label {
  font-family: var(--font-fancy);
  font-style: italic;
}
@media (max-width: 1100px) {
  .cube-stage { height: 380px; }
  .cube { width: 220px; height: 220px; }
  .cube-face .face-txt { font-size: 32px; }
  .letter-card { padding: 40px 28px; }
  .contact-3d { height: 360px; }
}
