@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Outfit:wght@300;400;500;600&family=Fira+Code:wght@300;400;500&display=swap');

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

:root {
  --cream:      #faf8f3;
  --cream2:     #f3f0e8;
  --cream3:     #ede8da;
  --ink:        #1a1814;
  --ink2:       #3d3a33;
  --ink3:       #7a7568;
  --ink4:       #b5b0a3;
  --rust:       #c94f2a;
  --rust-light: #f0ded7;
  --teal:       #1e6b63;
  --teal-light: #d4edea;
  --amber:      #d4860a;
  --amber-light:#fef3dc;
  --navy:       #1e2d5a;
  --border:     #e0dcd0;
  --shadow:     rgba(26,24,20,0.08);
  --shadow-md:  rgba(26,24,20,0.14);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Outfit', sans-serif;
  --code:  'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--rust); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream2); }
::-webkit-scrollbar-thumb { background: var(--ink4); border-radius: 3px; }

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

/* ═══════════════════════════════════════
   CURSOR
═══════════════════════════════════════ */
.cursor-dot {
  position: fixed; z-index: 9999;
  width: 8px; height: 8px;
  background: var(--rust);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, background 0.2s;
}
.cursor-circle {
  position: fixed; z-index: 9998;
  width: 36px; height: 36px;
  border: 1.5px solid var(--rust);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: all 0.22s ease;
  opacity: 0.5;
}
body.hovered .cursor-circle {
  transform: translate(-50%,-50%) scale(1.8);
  opacity: 0.25;
  background: var(--rust-light);
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s, padding 0.3s;
}
.navbar.sticky {
  background: rgba(250,248,243,0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
  padding: 14px 60px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--rust); }
.nav-tagline {
  font-family: var(--code);
  font-size: 10px;
  color: var(--ink4);
  letter-spacing: 0.08em;
  border-left: 1px solid var(--border);
  padding-left: 12px;
  line-height: 1.3;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--rust); background: var(--rust-light); }
.nav-links a.active { color: var(--rust); }
.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 10px 22px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--rust) !important; color: #fff !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 140px 60px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(180px, 22vw, 360px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--cream3);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  user-select: none;
  letter-spacing: -0.04em;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 900px;
}
.hero-greeting {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--code);
  font-size: 13px;
  color: var(--rust);
  background: var(--rust-light);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.06em;
}
.hero-greeting::before { content: '›'; font-size: 16px; }
.hero-name {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
}
.hero-name .highlight {
  color: var(--rust);
  font-style: italic;
}
.hero-role {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink3);
  margin-bottom: 28px;
}
.hero-desc {
  font-size: 17px;
  color: var(--ink2);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 48px;
  font-weight: 300;
}
.hero-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn-primary {
  background: var(--rust);
  color: #fff;
  box-shadow: 0 4px 20px rgba(201,79,42,0.35);
}
.btn-primary:hover {
  background: #b3431f;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,79,42,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--rust);
  padding: 0; font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-ghost:hover { color: var(--ink); }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px; left: 60px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--code);
  font-size: 11px;
  color: var(--ink4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 48px; height: 1px;
  background: var(--ink4);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--rust);
  animation: scrollAnim 2s ease infinite;
}
@keyframes scrollAnim {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Floating badges */
.hero-badges {
  position: absolute;
  right: 60px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px;
  z-index: 1;
}
.badge-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 32px var(--shadow);
  min-width: 200px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.badge-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px var(--shadow-md);
}
.badge-icon { font-size: 24px; margin-bottom: 8px; }
.badge-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}
.badge-label {
  font-size: 12px;
  color: var(--ink3);
  font-weight: 500;
  margin-top: 2px;
}

/* ═══════════════════════════════════════
   SECTIONS COMMON
═══════════════════════════════════════ */
.section { padding: 100px 60px; }
.section-alt { background: var(--cream2); }
.section-dark { background: var(--ink); color: var(--cream); }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--code);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 20px; height: 1.5px;
  background: var(--rust);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: inherit;
  margin-bottom: 16px;
}
.section-title em { color: var(--rust); font-style: italic; }
.section-sub {
  font-size: 16px;
  color: var(--ink3);
  max-width: 520px;
  line-height: 1.8;
  font-weight: 300;
}

/* ═══════════════════════════════════════
   SKILLS PREVIEW (homepage)
═══════════════════════════════════════ */
.skills-strip {
  background: var(--ink);
  padding: 24px 60px;
  display: flex; align-items: center; gap: 0;
  overflow: hidden;
}
.skills-strip-inner {
  display: flex; gap: 48px;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
.strip-item {
  font-family: var(--code);
  font-size: 13px;
  color: var(--ink4);
  display: flex; align-items: center; gap: 16px;
  flex-shrink: 0;
}
.strip-item::after {
  content: '✦';
  color: var(--rust);
  font-size: 8px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════
   ABOUT PREVIEW
═══════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .big-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 24px;
  position: relative;
  padding-left: 28px;
}
.about-text .big-quote::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 4px; height: calc(100% - 4px);
  background: var(--rust);
  border-radius: 2px;
}
.about-text p {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.9;
  margin-bottom: 16px;
  font-weight: 300;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.stat-box:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow-md); }
.stat-box:hover::before { transform: scaleX(1); }
.stat-num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 900;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-desc {
  font-size: 13px;
  color: var(--ink3);
  font-weight: 500;
}

/* ═══════════════════════════════════════
   EXPERIENCE PREVIEW
═══════════════════════════════════════ */
.exp-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.exp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.exp-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--rust);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.exp-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px var(--shadow-md); }
.exp-card:hover::after { transform: scaleX(1); }
.exp-card-period {
  font-family: var(--code);
  font-size: 11px;
  color: var(--ink4);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  background: var(--cream2);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
}
.exp-card-company {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.exp-card-role {
  font-size: 14px;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.exp-card-highlights { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.exp-card-highlights li {
  font-size: 14px;
  color: var(--ink2);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}
.exp-card-highlights li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--rust);
  font-size: 12px;
  top: 2px;
}

/* ═══════════════════════════════════════
   PROJECTS PREVIEW
═══════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.project-card {
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 24px 64px var(--shadow-md); }
.project-card-num {
  font-family: var(--code);
  font-size: 11px;
  color: var(--ink4);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.project-card-name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 6px;
}
.project-card-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-light);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.project-card-desc {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.8;
  font-weight: 300;
}
.project-card-arrow {
  position: absolute;
  top: 40px; right: 40px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--ink3);
  transition: all 0.3s;
}
.project-card:hover .project-card-arrow {
  background: var(--rust);
  color: #fff;
  transform: translate(4px, -4px);
}

/* ═══════════════════════════════════════
   CTA BAND
═══════════════════════════════════════ */
.cta-band {
  background: var(--rust);
  padding: 80px 60px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band-text {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  max-width: 600px;
}
.cta-band-text em { font-style: italic; opacity: 0.8; }
.btn-white {
  background: #fff;
  color: var(--rust);
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  font-size: 15px;
}
.btn-white:hover { background: var(--ink); color: #fff; transform: scale(1.04); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 60px 32px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 40px; flex-wrap: wrap;
}
.footer-brand .footer-logo {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.footer-brand .footer-logo span { color: var(--rust); }
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  max-width: 260px;
  line-height: 1.7;
}
.footer-nav h4 {
  font-family: var(--code);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--rust); }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy {
  font-family: var(--code);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.social-btn:hover { background: var(--rust); border-color: var(--rust); color: #fff; }

/* ═══════════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════════ */
.page-hero {
  padding: 160px 60px 80px;
  background: var(--cream2);
  border-bottom: 1px solid var(--border);
}
.page-hero-label {
  font-family: var(--code);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.page-hero-label::before { content: ''; width: 20px; height: 1.5px; background: var(--rust); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 20px;
}
.page-hero h1 em { color: var(--rust); font-style: italic; }
.page-hero p {
  font-size: 17px;
  color: var(--ink3);
  max-width: 540px;
  font-weight: 300;
  line-height: 1.8;
}

/* ═══════════════════════════════════════
   REVEAL ANIMATION
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(.4,0,.2,1), transform 0.75s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-right.visible { opacity: 1; transform: none; }

/* stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-badges { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .navbar { padding: 16px 24px; }
  .navbar.sticky { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 120px 24px 60px; }
  .section { padding: 72px 24px; }
  .exp-cards, .projects-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .skills-strip { padding: 20px 24px; }
  .cta-band { padding: 56px 24px; }
  footer { padding: 48px 24px 24px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .page-hero { padding: 120px 24px 60px; }
}
@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
