/* ══════════════════════════════════════════════
   ANNAS ADHARUQUDNI — PORTFOLIO STYLESHEET
   ══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --ink:     #0d0c0a;
  --cream:   #f5f0e8;
  --cream2:  #ede8dc;
  --cream3:  #e5dfd0;
  --red:     #c9382a;
  --red-dim: rgba(201,56,42,0.08);
  --muted:   #7a7060;
  --border:  rgba(13,12,10,0.12);
  --border2: rgba(13,12,10,0.06);
  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-sans:  'Syne', sans-serif;
  --ff-mono:  'IBM Plex Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-sans);
  overflow-x: hidden;
  cursor: none;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9998;
}

/* ── CUSTOM CURSOR (desktop only) ── */
#cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(201,56,42,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(.23,1,.32,1), height 0.3s cubic-bezier(.23,1,.32,1);
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor { width: 4px; height: 4px; }
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width: 56px; height: 56px; border-color: var(--red); }

/* ── SELECTION ── */
::selection { background: var(--red); color: var(--cream); }

/* ── FOCUS ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

/* ── SKIP LINK ── */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 10000;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 56px;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav-logo {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  z-index: 1001;
}
.nav-logo span { color: var(--red); }
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(.16,1,.3,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: none;
  padding: 8px;
  position: relative;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s cubic-bezier(.16,1,.3,1), opacity 0.2s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 36px;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.16,1,.3,1);
}
.nav-mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-menu nav {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.nav-mobile-menu nav a {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 10vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--cream);
  text-decoration: none;
  line-height: 1.15;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245,240,232,0.07);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(20px);
  transition: color 0.2s;
}
.nav-mobile-menu nav a:last-child { border-bottom: none; }
.nav-mobile-menu nav a em { font-style: normal; color: var(--red); font-size: 0.35em; font-family: var(--ff-mono); letter-spacing: 0.15em; align-self: flex-start; padding-top: 0.3em; }
.nav-mobile-menu nav a:hover { color: var(--red); }

/* Stagger entrance */
.nav-mobile-menu.open nav a {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(.16,1,.3,1), transform 0.5s cubic-bezier(.16,1,.3,1), color 0.2s;
}
.nav-mobile-menu.open nav a:nth-child(1) { transition-delay: 0.07s; }
.nav-mobile-menu.open nav a:nth-child(2) { transition-delay: 0.13s; }
.nav-mobile-menu.open nav a:nth-child(3) { transition-delay: 0.19s; }
.nav-mobile-menu.open nav a:nth-child(4) { transition-delay: 0.25s; }

/* Nav bar turns dark when menu is open */
#nav.menu-open { background-color: var(--ink); border-bottom-color: transparent; }
nav.menu-open .nav-logo { color: var(--cream); }
nav.menu-open .nav-toggle span { background: var(--cream); }

.nav-mobile-bottom,
.nav-mobile-social {
  position: absolute;
  bottom: 40px;
  left: 36px;
  right: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-mobile-bottom a,
.nav-mobile-social a {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.35);
  text-decoration: none;
  border-bottom: none;
  width: auto;
  padding: 0;
  transition: color 0.2s;
}
.nav-mobile-social a:hover { color: var(--cream); }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding: 72px 56px 0;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
}
.hero-bg-number {
  position: absolute;
  right: -0.02em; bottom: -0.1em;
  font-family: var(--ff-serif);
  font-size: clamp(260px, 32vw, 520px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(13,12,10,0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.04em;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: end;
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}
.hero-left { display: flex; flex-direction: column; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s 0.15s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--red);
}
.hero-name {
  font-family: var(--ff-serif);
  font-size: clamp(64px, 8.5vw, 140px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero-name em { font-style: italic; color: var(--red); display: block; }
.hero-divider {
  width: 100%; height: 1px;
  background: var(--border);
  margin: 48px 0;
  opacity: 0;
  animation: scaleX 0.8s 0.7s forwards;
  transform-origin: left;
  transform: scaleX(0);
}
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  opacity: 0;
  animation: fadeUp 0.7s 0.9s forwards;
}
.hero-meta-item { padding-right: 24px; }
.hero-meta-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.hero-meta-value { font-size: 14px; font-weight: 600; line-height: 1.4; }
.hero-right {
  padding-left: 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}
.hero-bio {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 480px;
  text-wrap: pretty;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 14px 32px;
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: none;
  transition: background 0.2s, transform 0.2s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-primary:hover { background: var(--red); transform: translateY(-2px); }
.btn-ghost {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: none;
  border-bottom: 1px solid var(--border);
  padding: 14px 4px;
  min-height: 44px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

/* Hero image + stats strip */
.hero-img-row {
  position: relative;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  gap: 0;
  z-index: 1;
}
.hero-img-container {
  position: relative;
  width: 380px;
  flex-shrink: 0;
}
.hero-img {
  width: 100%; height: 400px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
@media not (forced-colors: active) {
  .hero-img {
    filter: contrast(1.05) saturate(0.9);
    mix-blend-mode: multiply;
  }
}
.hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--cream) 0%, transparent 40%);
}
.hero-stats-row {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--border);
}
.hero-stat {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: rgba(201,56,42,0.05); }
.hero-stat:hover .hero-stat-num { color: var(--red); }
.hero-stat-num {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  transition: color 0.25s;
}
.hero-stat-num sup { font-size: 0.45em; vertical-align: super; color: var(--red); font-family: var(--ff-mono); }
.hero-stat-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scaleX {
  to { transform: scaleX(1); opacity: 1; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.42s; }

/* ── SECTION HEADER ── */
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 80px;
}
.section-index {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-index::before { content: ''; width: 22px; height: 1px; background: var(--red); }
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.95;
}
.section-title em { font-style: italic; color: var(--red); }
.section-sub { font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

/* ══════════════════════════════════════════════
   EXPERIENCE (vertical — unused in current build)
   ══════════════════════════════════════════════ */
#experience {
  padding: 120px 56px;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
#experience .section-index { color: rgba(245,240,232,0.7); }
#experience .section-index::before { background: var(--red); }
#experience .section-title { color: var(--cream); }
#experience .section-sub { color: rgba(245,240,232,0.55); }
#experience .section-header { margin-bottom: 96px; }
.exp-bg-text {
  position: absolute;
  right: -0.04em; top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-serif);
  font-size: clamp(200px, 24vw, 400px);
  font-weight: 900; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,240,232,0.04);
  pointer-events: none; user-select: none; z-index: 0;
  letter-spacing: -0.05em;
}
.exp-timeline { position: relative; z-index: 1; display: flex; flex-direction: column; }
.exp-item {
  display: grid;
  grid-template-columns: 220px 1px 1fr;
  gap: 0 56px;
  padding: 56px 0;
  border-top: 1px solid rgba(245,240,232,0.08);
}
.exp-item:last-child { border-bottom: 1px solid rgba(245,240,232,0.08); }
.exp-left { display: flex; flex-direction: column; gap: 8px; }
.exp-period { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(245,240,232,0.35); margin-bottom: 16px; line-height: 1.5; }
.exp-company-name { font-family: var(--ff-serif); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--cream); margin-bottom: 6px; line-height: 1.1; }
.exp-company-type { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); }
.exp-line { width: 1px; background: rgba(245,240,232,0.08); position: relative; }
.exp-line::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border: 2px solid var(--red); border-radius: 50%; background: var(--ink); margin-left: -3px; }
.exp-right { display: flex; flex-direction: column; }
.exp-role { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--cream); margin-bottom: 16px; }
.exp-desc { font-size: 14px; line-height: 1.75; color: rgba(245,240,232,0.55); margin-bottom: 24px; max-width: 640px; text-wrap: pretty; }
.exp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-pill { border: 1px solid rgba(245,240,232,0.12); padding: 5px 14px; font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,240,232,0.4); clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.exp-highlight { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--cream); background: rgba(201,56,42,0.15); border-left: 2px solid var(--red); padding: 8px 16px; margin-bottom: 16px; }

/* ══════════════════════════════════════════════
   SKILLS
   ══════════════════════════════════════════════ */
#skills {
  padding: 120px 56px;
  background: var(--cream2);
  border-top: 1px solid var(--border);
}
.skills-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 96px; align-items: start; }
.skills-sticky { position: sticky; top: 100px; }
.skill-group { margin-bottom: 52px; }
.skill-group-label { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.skill-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 8px; border-bottom: 1px solid var(--border2);
  margin: 0 -8px;
  transition: background 0.2s;
}
.skill-row:last-child { border-bottom: none; }
.skill-row:hover { background: rgba(201,56,42,0.05); }
.skill-row:hover .skill-name { color: var(--red); }
.skill-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; transition: color 0.2s; }
.skill-level { display: flex; gap: 4px; }
.skill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.skill-dot.active { background: var(--ink); }
.skill-dot.accent { background: var(--red); }

/* ══════════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════════ */
#projects {
  padding: 120px 56px;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-top: 8px;
}
.project-card {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s ease;
}
.project-card:hover { background: rgba(13,12,10,0.025); }
.project-num { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.project-title { font-family: var(--ff-serif); font-size: clamp(18px, 1.8vw, 26px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.project-desc { font-size: 13px; color: var(--muted); line-height: 1.65; flex: 1; text-wrap: pretty; }
.project-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.project-tag { font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); padding: 4px 10px; }
.project-arrow { font-size: 22px; color: var(--muted); flex-shrink: 0; line-height: 1; text-decoration: none; display: inline-block; transition: color 0.2s, transform 0.2s; }
span.project-arrow { opacity: 0.3; cursor: default; }
a.project-arrow:hover { color: var(--red); transform: translate(3px, -3px); }
.projects-divider { display: flex; align-items: center; gap: 20px; margin: 64px 0 32px; }
.feat-gh-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,240,232,0.5); text-decoration: none; transition: color 0.2s; }
.feat-gh-link:hover, .feat-gh-link:focus-visible { color: var(--red); }
.projects-divider::before { content: ''; flex: 1; height: 1px; background: var(--border); }
.projects-divider-label { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.projects-divider::after { content: '✦'; font-size: 8px; color: var(--red); }

/* Featured project */
.project-featured {
  margin-top: 64px;
  padding: 64px;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.feat-eyebrow { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,240,232,0.65); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.feat-eyebrow::before { content: '✦'; font-size: 8px; color: var(--red); }
.feat-title { font-family: var(--ff-serif); font-size: clamp(32px, 3.5vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.0; margin-bottom: 24px; }
.feat-title em { font-style: italic; color: var(--red); }
.feat-desc { font-size: 15px; line-height: 1.7; color: rgba(245,240,232,0.6); margin-bottom: 36px; text-wrap: pretty; }
.feat-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid rgba(245,240,232,0.08); padding-top: 32px; }
.feat-metric-num { font-family: var(--ff-serif); font-size: 36px; font-weight: 700; color: var(--cream); letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; }
.feat-metric-num span { color: var(--red); }
.feat-metric-label { font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,240,232,0.35); }
.feat-visual { display: flex; flex-direction: column; gap: 12px; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-tag { background: rgba(201,56,42,0.18); color: rgba(245,240,232,0.92); border: 1px solid rgba(201,56,42,0.45); padding: 6px 14px; font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.feat-visual-block { background: rgba(245,240,232,0.03); border: 1px solid rgba(245,240,232,0.07); padding: 32px; font-family: var(--ff-mono); font-size: 12px; line-height: 1.8; color: rgba(245,240,232,0.4); }
.feat-visual-block strong { color: rgba(245,240,232,0.7); }
.feat-img { width: 100%; max-height: 260px; object-fit: cover; object-position: top; display: block; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }

/* ══════════════════════════════════════════════
   CERTIFICATIONS
   ══════════════════════════════════════════════ */
#certifications {
  padding: 80px 0;
  background: var(--cream2);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.certs-header { padding: 0 56px 56px; display: flex; justify-content: space-between; align-items: flex-end; }
.certs-count { font-family: var(--ff-serif); font-size: clamp(60px, 8vw, 120px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee-wrapper { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track.reverse { animation-direction: reverse; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.cert-card { background: var(--cream); border: 1px solid var(--border); padding: 20px 22px; display: flex; align-items: center; gap: 14px; flex-shrink: 0; width: 300px; transition: border-color 0.2s, background 0.2s; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.cert-card:hover { border-color: var(--red); background: var(--red-dim); }
.cert-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; border-radius: 8px; background: #fff; }
.cert-name { font-size: 12px; font-weight: 600; line-height: 1.35; margin-bottom: 3px; }
.cert-issuer { font-family: var(--ff-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.05em; }

/* ══════════════════════════════════════════════
   EDUCATION
   ══════════════════════════════════════════════ */
#education {
  padding: 120px 56px;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.edu-card { padding: 40px; border: 1px solid var(--border); transition: border-color 0.25s, background 0.25s, transform 0.25s; }
.edu-card:hover { border-color: rgba(201,56,42,0.4); background: var(--red-dim); transform: translateY(-4px); }
.edu-year { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--red); margin-bottom: 20px; text-transform: uppercase; }
.edu-degree { font-family: var(--ff-serif); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
.edu-school { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); line-height: 1.5; }
.edu-pub { background: var(--ink); color: var(--cream); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)); }
.edu-pub .edu-year { color: var(--red); }
.edu-pub .edu-degree { color: var(--cream); font-size: 18px; }
.edu-pub .edu-school { color: rgba(245,240,232,0.4); }

/* ══════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════ */
#contact { padding: 140px 56px; background: var(--ink); color: var(--cream); position: relative; overflow: hidden; text-align: center; }
.contact-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(201,56,42,0.08) 0%, transparent 70%); pointer-events: none; animation: pulseGlow 6s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { opacity: 0.06; transform: scale(1); }
  50%       { opacity: 0.12; transform: scale(1.08); }
}
.contact-eyebrow { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,240,232,0.7); margin-bottom: 28px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.contact-eyebrow::before, .contact-eyebrow::after { content: ''; width: 36px; height: 1px; background: var(--red); }
.contact-title { font-family: var(--ff-serif); font-size: clamp(52px, 7vw, 120px); font-weight: 900; letter-spacing: -0.04em; line-height: 0.9; margin-bottom: 48px; position: relative; z-index: 1; }
.contact-title em { font-style: italic; color: var(--red); display: block; }
.contact-email { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ff-mono); font-size: clamp(13px, 1.4vw, 17px); color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(245,240,232,0.45); padding: 12px 4px; min-height: 44px; margin-bottom: 56px; transition: color 0.2s, border-color 0.2s; position: relative; z-index: 1; }
.contact-email:hover { color: var(--red); border-color: var(--red); }
.contact-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.contact-link { display: flex; align-items: center; gap: 10px; padding: 14px 28px; border: 1px solid rgba(245,240,232,0.12); font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,240,232,0.55); text-decoration: none; cursor: none; transition: border-color 0.2s, color 0.2s; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.contact-link:hover { border-color: var(--red); color: var(--cream); }

/* ── FOOTER ── */
footer { background: var(--ink); border-top: 1px solid rgba(245,240,232,0.06); padding: 28px 56px; display: flex; justify-content: space-between; align-items: center; }
.footer-l, .footer-r { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(245,240,232,0.25); }
.footer-l span { color: var(--red); }

/* ══════════════════════════════════════════════
   JOURNEY — CINEMATIC HORIZONTAL SCROLL
   ══════════════════════════════════════════════ */

.ajn-section-intro {
  padding: 160px 56px 140px;
  background: var(--ink);
  border-top: 1px solid rgba(245,240,232,0.06);
  position: relative; overflow: hidden;
  color: var(--cream);
}
.ajn-intro-bg { position: absolute; right: -0.06em; bottom: -0.12em; font-family: var(--ff-serif); font-size: clamp(220px, 30vw, 520px); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(245,240,232,0.04); pointer-events: none; user-select: none; letter-spacing: -0.05em; z-index: 0; }
.ajn-intro-spine { position: absolute; right: clamp(40px,6vw,88px); top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent 0%, rgba(201,56,42,0.4) 20%, rgba(201,56,42,0.4) 80%, transparent 100%); z-index: 1; }
.ajn-intro-spine-dots { position: absolute; right: clamp(40px,6vw,88px); top: 50%; transform: translate(50%, -50%); display: flex; flex-direction: column; gap: 40px; z-index: 2; }
.ajn-intro-spine-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(245,240,232,0.15); border: 1px solid rgba(245,240,232,0.2); transition: background 0.3s; }
.ajn-intro-spine-dot.active { background: var(--red); border-color: var(--red); box-shadow: 0 0 12px rgba(201,56,42,0.6); }
.ajn-intro-content { position: relative; z-index: 2; max-width: 800px; }
.ajn-intro-content .section-index { color: rgba(245,240,232,0.7); }
.ajn-intro-content .section-index::before { background: var(--red); }
.ajn-intro-content .section-title { color: var(--cream); }
.ajn-intro-content .section-sub { color: rgba(245,240,232,0.55); margin-top: 28px; }
.ajn-intro-companies { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 52px; padding-top: 40px; border-top: 1px solid rgba(245,240,232,0.08); }
.ajn-intro-co { display: flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(245,240,232,0.4); text-transform: uppercase; transition: color 0.2s; }
.ajn-intro-co:hover { color: var(--cream); }
.ajn-intro-co-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; opacity: 0.5; }
.ajn-intro-co.now .ajn-intro-co-dot { opacity: 1; box-shadow: 0 0 8px rgba(201,56,42,0.7); }
.ajn-intro-co.now { color: var(--cream); }
.ajn-section-intro::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.ajn-intro-hint { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245,240,232,0.3); z-index: 2; animation: ajnHintBob 2.6s ease-in-out infinite; }
.ajn-intro-hint svg { opacity: 0.5; }
@keyframes ajnHintBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* Pinned stage */
.ajn-stage { position: relative; height: 600vh; background: var(--ink); }
.ajn-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.ajn-track { display: flex; height: 100%; width: 500vw; will-change: transform; }

/* Progress bar */
.ajn-progressbar { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(245,240,232,0.06); z-index: 20; }
.ajn-progressbar-fill { height: 100%; background: var(--red); width: 0%; transition: width 0.1s linear; box-shadow: 0 0 12px rgba(201,56,42,0.6); }

/* Chapter label */
.ajn-chapter-lbl { position: absolute; top: 24px; left: clamp(40px,6vw,88px); display: flex; align-items: center; font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; z-index: 20; pointer-events: none; overflow: hidden; }
.ajn-chapter-lbl .r { color: var(--red); margin-right: 10px; font-weight: 500; }
.ajn-chapter-lbl .name { color: rgba(245,240,232,0.45); display: inline-block; transition: transform 0.4s cubic-bezier(.16,1,.3,1), opacity 0.4s; }

/* Slide counter */
.ajn-slide-counter { position: absolute; top: 24px; right: clamp(40px,6vw,88px); font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.22em; color: rgba(245,240,232,0.25); z-index: 20; pointer-events: none; }

/* Progress dots */
.ajn-progress { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; z-index: 20; pointer-events: none; }
.ajn-dot { width: 20px; height: 2px; background: rgba(245,240,232,0.12); border-radius: 1px; transition: background 0.35s, width 0.35s cubic-bezier(.16,1,.3,1); }
.ajn-dot.active { background: var(--red); width: 44px; }
.ajn-dot.passed { background: rgba(245,240,232,0.3); }

/* Slides */
.ajn-slide { flex: 0 0 100vw; height: 100vh; position: relative; overflow: hidden; color: var(--cream); }
.slide-01 { background: #0d1319; }
.slide-01::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(30,80,160,0.18) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 20% 20%, rgba(201,56,42,0.06) 0%, transparent 60%); }
.slide-02 { background: #110a08; }
.slide-02::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 65% 60%, rgba(180,60,30,0.2) 0%, transparent 70%), radial-gradient(ellipse 35% 35% at 15% 25%, rgba(201,56,42,0.08) 0%, transparent 60%); }
.slide-03 { background: #0a0f08; }
.slide-03::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 65% 75% at 68% 55%, rgba(40,100,40,0.18) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 18% 30%, rgba(201,56,42,0.07) 0%, transparent 60%); }
.slide-04 { background: #120a05; }
.slide-04::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 66% 58%, rgba(200,120,30,0.2) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 20% 25%, rgba(201,56,42,0.08) 0%, transparent 60%); }
.slide-05 { background: #080a10; }
.slide-05::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 64% 52%, rgba(60,50,140,0.2) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 18% 28%, rgba(201,56,42,0.06) 0%, transparent 60%); }

.ajn-slide-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; height: 100%; padding: 80px clamp(40px,6vw,88px) 72px; }
.ajn-left { display: flex; flex-direction: column; justify-content: space-between; padding-right: 56px; border-right: 1px solid rgba(245,240,232,0.07); }
.ajn-top { display: flex; flex-direction: column; }
.ajn-year-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(245,240,232,0.15); padding: 6px 14px; font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,240,232,0.45); margin-bottom: 20px; width: fit-content; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.ajn-year-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.ajn-chapter { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245,240,232,0.65); margin-bottom: 16px; }
.ajn-title { font-family: var(--ff-serif); font-size: clamp(34px, 5vw, 76px); font-weight: 900; letter-spacing: -0.04em; line-height: 0.93; margin-bottom: 28px; }
.ajn-title em { font-style: italic; color: var(--red); }
.ajn-desc { font-size: 14px; line-height: 1.7; color: rgba(245,240,232,0.5); max-width: 460px; text-wrap: pretty; }
.ajn-bottom { display: flex; flex-direction: column; }
.ajn-stats { display: flex; gap: 0; border-top: 1px solid rgba(245,240,232,0.07); }
.ajn-stat { flex: 1; padding: 20px 24px 20px 0; border-right: 1px solid rgba(245,240,232,0.07); margin-right: 24px; }
.ajn-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.ajn-stat-num { font-family: var(--ff-serif); font-size: clamp(20px, 2.2vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.ajn-stat-num em { font-style: normal; color: var(--red); }
.ajn-stat-label { font-family: var(--ff-mono); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,240,232,0.3); }
.ajn-achievement { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: rgba(245,240,232,0.45); line-height: 1.5; padding: 14px 0; border-top: 1px solid rgba(245,240,232,0.06); }
.ajn-achievement::before { content: '↳'; font-family: var(--ff-mono); color: var(--red); flex-shrink: 0; margin-top: 1px; font-size: 11px; }

.ajn-right { padding-left: 56px; display: flex; flex-direction: column; justify-content: center; gap: 20px; position: relative; }
.ajn-bg-num { position: absolute; bottom: -0.06em; right: -0.04em; font-family: var(--ff-serif); font-size: clamp(160px, 20vw, 320px); font-weight: 900; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(245,240,232,0.04); pointer-events: none; user-select: none; z-index: 0; }
.ajn-img-frame { position: relative; z-index: 1; flex: 1; max-height: 54vh; overflow: hidden; background: rgba(245,240,232,0.04); border: 1px solid rgba(245,240,232,0.08); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)); }
.ajn-img-frame img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.ajn-img-meta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid rgba(245,240,232,0.07); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.ajn-img-meta-label { font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,240,232,0.25); }
.ajn-img-meta-value { font-family: var(--ff-mono); font-size: 11px; font-weight: 500; color: rgba(245,240,232,0.7); letter-spacing: 0.04em; }
.ajn-img-meta-pill { background: rgba(201,56,42,0.12); border: 1px solid rgba(201,56,42,0.25); color: var(--red); font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; }

/* Slide entrance animations */
.ajn-slide .ajn-top,
.ajn-slide .ajn-bottom,
.ajn-slide .ajn-right {
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.ajn-slide:not(.s-active) .ajn-top    { opacity: 0; transform: translateY(30px); }
.ajn-slide:not(.s-active) .ajn-bottom { opacity: 0; transform: translateY(20px); }
.ajn-slide:not(.s-active) .ajn-right  { opacity: 0; transform: translateX(30px); }
.ajn-slide.s-active .ajn-top    { opacity: 1; transform: none; }
.ajn-slide.s-active .ajn-bottom { opacity: 1; transform: none; transition-delay: 0.12s; }
.ajn-slide.s-active .ajn-right  { opacity: 1; transform: none; transition-delay: 0.06s; }

/* Closing strip */
.ajn-strip { background: var(--ink); padding: 100px 56px; border-top: 1px solid rgba(245,240,232,0.06); position: relative; overflow: hidden; }
.ajn-strip::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,56,42,0.06) 0%, transparent 70%); pointer-events: none; }
.ajn-strip-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 64px; }
.ajn-strip h3 { font-family: var(--ff-serif); font-size: clamp(32px, 3.8vw, 56px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.0; color: var(--cream); }
.ajn-strip h3 span { color: var(--red); font-style: italic; }
.ajn-strip p { font-size: 16px; color: rgba(245,240,232,0.45); line-height: 1.7; max-width: 440px; text-wrap: pretty; }

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  nav { padding: 0 28px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile-menu { display: flex; }

  .hero { padding: 72px 28px 0; }
  .hero-bg-number { display: none; }
  .hero-content { grid-template-columns: 1fr; padding-top: 100px; padding-bottom: 48px; }
  .hero-right { padding-left: 0; }
  .hero-divider { margin: 32px 0; }
  .hero-img-row { flex-direction: column; }
  .hero-img-container { width: 100%; }
  .hero-img { height: 280px; }
  .hero-stats-row { grid-template-columns: repeat(2, 1fr); border-left: none; border-top: 1px solid var(--border); }
  .hero-stat { padding: 24px 20px; }
  .hero-stat:nth-child(odd) { border-left: none; }
  .hero-stat:nth-child(2) { border-right: none; }

  section,
  #skills, #projects, #education, #contact { padding-left: 28px; padding-right: 28px; }
  .section-header { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  #skills { padding-top: 80px; padding-bottom: 80px; }
  #projects { padding-top: 80px; padding-bottom: 80px; }
  #education { padding-top: 80px; padding-bottom: 80px; }
  #contact { padding-top: 80px; padding-bottom: 80px; }

  .skills-layout { grid-template-columns: 1fr; gap: 40px; }
  .skills-sticky { position: static; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card { padding: 28px 24px; }

  .project-featured { grid-template-columns: 1fr; padding: 32px; gap: 32px; clip-path: none; }
  .feat-metrics { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .feat-visual-block { display: none; }

  .edu-grid { grid-template-columns: 1fr; gap: 16px; }
  .edu-card { padding: 28px; }

  .certs-header { padding: 0 28px 40px; flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Journey — tablet stacks vertically */
  .ajn-section-intro { padding: 100px 28px 80px; }
  .ajn-intro-spine, .ajn-intro-spine-dots, .ajn-intro-hint { display: none; }
  .ajn-stage { height: auto; }
  .ajn-pin { position: relative; height: auto; overflow: visible; }
  .ajn-track { flex-direction: column; width: 100%; height: auto; transform: none !important; }
  .ajn-slide { flex: 0 0 auto; width: 100%; height: auto; min-height: auto; }
  .ajn-slide-inner { grid-template-columns: 1fr; padding: 64px 28px; gap: 32px; }
  .ajn-left { border-right: none; padding-right: 0; }
  .ajn-right { padding-left: 0; }
  .ajn-img-frame { max-height: 36vh; }
  .ajn-slide-counter, .ajn-progress, .ajn-chapter-lbl, .ajn-progressbar { display: none; }
  .ajn-slide:not(.s-active) .ajn-top,
  .ajn-slide:not(.s-active) .ajn-bottom,
  .ajn-slide:not(.s-active) .ajn-right { opacity: 1; transform: none; }
  .ajn-strip { padding: 64px 28px; }
  .ajn-strip-inner { flex-direction: column; gap: 20px; }

  .contact-title { font-size: clamp(40px, 10vw, 72px); }
  .contact-links { flex-direction: column; align-items: center; }
  footer { padding: 24px 28px; flex-direction: column; gap: 10px; text-align: center; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 640px)
   ══════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Restore system cursor on touch devices */
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
  .btn-primary, .btn-ghost, .contact-link { cursor: pointer; }

  /* Nav */
  nav { height: 60px; padding: 0 20px; }
  .nav-logo { font-size: 11px; }
  .nav-mobile-menu { padding: 0 24px; }

  /* Hero */
  .hero { padding: 60px 20px 0; }
  .hero-content { padding-top: 80px; padding-bottom: 32px; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 24px; }
  .hero-name { font-size: clamp(52px, 14vw, 80px); line-height: 0.88; }
  .hero-divider { margin: 24px 0; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 0; }
  .hero-meta-item { padding-right: 12px; }
  .hero-meta-label { font-size: 9px; }
  .hero-meta-value { font-size: 12px; }
  .hero-bio { font-size: 15px; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-primary { width: 100%; justify-content: center; padding: 16px 24px; }
  .btn-ghost { padding-bottom: 8px; }
  .hero-img { height: 220px; object-position: center center; }
  .hero-stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { padding: 20px 16px; }
  .hero-stat-num { font-size: clamp(28px, 8vw, 40px); }
  .hero-stat-label { font-size: 9px; }

  /* Sections */
  section,
  #skills, #projects, #education, #contact { padding-left: 20px; padding-right: 20px; }
  #skills, #projects, #education { padding-top: 48px; padding-bottom: 48px; }
  #contact { padding-top: 80px; padding-bottom: 80px; }
  .section-title { font-size: clamp(32px, 9vw, 48px); }
  .section-sub { font-size: 15px; }

  /* Skills */
  .skill-name { font-size: 14px; }
  .skill-group { margin-bottom: 36px; }

  /* Projects */
  .project-card { padding: 22px 18px; }
  .project-title { font-size: clamp(16px, 5vw, 22px); }
  .project-featured { padding: 24px; }
  .projects-divider { margin: 40px 0 20px; }
  .feat-metrics { padding-top: 20px; }
  .feat-title { font-size: clamp(24px, 7vw, 36px); }
  .feat-desc { font-size: 14px; }
  .feat-metrics { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .feat-metric-num { font-size: 24px; }

  /* Journey */
  .ajn-section-intro { padding: 80px 20px 64px; }
  .ajn-intro-companies { gap: 10px 16px; margin-top: 36px; padding-top: 28px; }
  .ajn-intro-co { font-size: 10px; }
  .ajn-slide-inner { padding: 48px 20px; gap: 28px; }
  .ajn-title { font-size: clamp(28px, 9vw, 44px); line-height: 0.95; }
  .ajn-desc { font-size: 13px; }
  .ajn-stats { flex-wrap: wrap; gap: 0; }
  .ajn-stat { flex: 0 0 50%; padding: 14px 0; border-right: none; margin-right: 0; border-bottom: 1px solid rgba(245,240,232,0.06); }
  .ajn-stat:nth-child(odd) { padding-right: 16px; border-right: 1px solid rgba(245,240,232,0.07); }
  .ajn-stat:last-child { border-bottom: none; }
  .ajn-stat-num { font-size: clamp(18px, 6vw, 26px); }
  .ajn-img-frame { max-height: 30vh; }
  .ajn-img-meta { flex-wrap: wrap; gap: 8px; }
  .ajn-img-meta-value { font-size: 10px; }
  .ajn-strip { padding: 48px 20px; }

  /* Certs */
  .certs-header { padding: 0 20px 32px; }

  /* Education */
  .edu-card { padding: 24px; }
  .edu-degree { font-size: 18px; }

  /* Contact */
  .contact-title { font-size: clamp(36px, 12vw, 60px); }
  .contact-email { font-size: 12px; margin-bottom: 36px; word-break: break-all; }
  .contact-link { padding: 14px 20px; font-size: 10px; width: 100%; justify-content: center; clip-path: none; }
  .contact-links { width: 100%; }

  footer { padding: 20px; }
}

/* ══════════════════════════════════════════════
   TOUCH — disable hover transforms on touch
   ══════════════════════════════════════════════ */
@media (hover: none) {
  .edu-card:hover { transform: none; }
  .hero-stat:hover { background: none; }
  .hero-stat:hover .hero-stat-num { color: inherit; }
}

/* ══════════════════════════════════════════════
   POINTER / TABLET — restore system cursor
   when the custom dot makes no sense
   ══════════════════════════════════════════════ */
@media (hover: none), (pointer: coarse), (max-width: 1024px) {
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
  .btn-primary, .btn-ghost, .contact-link, .nav-toggle, .nav-logo,
  .nav-links a, .nav-mobile-menu a, .contact-email, .contact-link { cursor: pointer; }
}

/* ══════════════════════════════════════════════
   NO-JS FALLBACK — show reveal content even
   when JS hasn't run (script adds .js to <html>)
   ══════════════════════════════════════════════ */
html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }
html:not(.js) [data-ajn] { /* intro stays visible */ }
html:not(.js) .ajn-slide:not(.s-active) .ajn-top,
html:not(.js) .ajn-slide:not(.s-active) .ajn-bottom,
html:not(.js) .ajn-slide:not(.s-active) .ajn-right { opacity: 1 !important; transform: none !important; }
html:not(.js) .hero-eyebrow,
html:not(.js) .hero-name,
html:not(.js) .hero-divider,
html:not(.js) .hero-meta,
html:not(.js) .hero-right { opacity: 1 !important; animation: none !important; transform: none !important; }

/* ══════════════════════════════════════════════
   BACK TO TOP
   ══════════════════════════════════════════════ */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  font-family: var(--ff-serif);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 90;
}
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--red); }
.back-top:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ══════════════════════════════════════════════
   REDUCED MOTION — respect user preference
   ══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
  .hero-img-container { transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; transform: none !important; flex-wrap: wrap; }

  /* Unpin the cinematic timeline; stack vertically */
  .ajn-stage { height: auto !important; }
  .ajn-pin { position: relative !important; height: auto !important; overflow: visible !important; }
  .ajn-track { flex-direction: column !important; width: 100% !important; height: auto !important; transform: none !important; }
  .ajn-slide { flex: 0 0 auto !important; width: 100% !important; height: auto !important; min-height: auto !important; }
  .ajn-slide-inner { grid-template-columns: 1fr !important; }
  .ajn-left { border-right: none !important; padding-right: 0 !important; }
  .ajn-right { padding-left: 0 !important; }
  .ajn-slide:not(.s-active) .ajn-top,
  .ajn-slide:not(.s-active) .ajn-bottom,
  .ajn-slide:not(.s-active) .ajn-right { opacity: 1 !important; transform: none !important; }
  .ajn-slide-counter, .ajn-progress, .ajn-chapter-lbl, .ajn-progressbar,
  .ajn-intro-spine, .ajn-intro-spine-dots, .ajn-intro-hint { display: none !important; }
}

/* ══════════════════════════════════════════════
   TIMELINE DOTS — accessible button styling
   ══════════════════════════════════════════════ */
button.ajn-dot {
  border: none;
  padding: 0;
  margin: 0;
  appearance: none;
  background: rgba(245,240,232,0.12);
  cursor: none;
  pointer-events: auto;
}
button.ajn-dot:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.ajn-progress { pointer-events: auto; }
