/* Fonts loaded via <link> in HTML for non-blocking delivery */

/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
  --olive:        #8a9a5b;
  --olive-dark:   #6b7a42;
  --olive-deeper: #4a5530;
  --olive-light:  #b8c98a;
  --olive-pale:   #e8eedd;
  --cream:        #f5f3ee;
  --ink:          #1a1c14;
  --ink-light:    #3d4028;
  --muted:        #7a7d6a;
  --white:        #ffffff;
  --line:         rgba(138, 154, 91, 0.25);
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

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


/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0.01; transform: translateY(20px); }
  to   { opacity: 1;    transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.1); opacity: .7; }
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(.5); }
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR (pointer devices only)
   ═══════════════════════════════════════════ */
@media (hover: hover) {
  .cursor {
    width: 10px;
    height: 10px;
    background: var(--olive);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .25s, height .25s, background .25s;
    mix-blend-mode: multiply;
  }

  .cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--olive);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform .18s ease, width .25s, height .25s, opacity .25s;
    opacity: .5;
  }
}

@media (hover: none) {
  .cursor,
  .cursor-ring { display: none; }
}


/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 16px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 243, 238, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-logo svg {
  width: 48px;
  height: 48px;
  transition: transform .3s ease;
}

.nav-logo:hover svg {
  transform: rotate(8deg) scale(1.05);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-links a:hover { color: var(--olive-deeper); }

.nav-links a.active {
  color: var(--olive-deeper);
  border-bottom: 1.5px solid var(--olive);
  padding-bottom: 2px;
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
  z-index: 600;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--olive-deeper);
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  -webkit-transform: translateY(6.5px) rotate(45deg);
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  -webkit-transform: translateY(-6.5px) rotate(-45deg);
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer — hidden on desktop */
.nav-drawer {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(245, 243, 238, .98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 80px 32px 40px;
  z-index: 490;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
  transition: -webkit-transform .35s cubic-bezier(0.4, 0, 0.2, 1),
              transform .35s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  pointer-events: none;
}

.nav-drawer.open {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer a {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s, padding-left .2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-drawer a:last-child { border-bottom: none; }

.nav-drawer a:hover,
.nav-drawer a.active {
  color: var(--olive-deeper);
  padding-left: 8px;
}


/* ═══════════════════════════════════════════
   HERO — SHARED BASE (resume + homepage)
   These rules apply to ALL .hero instances.
   Do not modify unless changing both pages.
   ═══════════════════════════════════════════ */

.hero {
  padding-top: 80px;                   /* nav clearance */
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  overflow: hidden;
}

/* Left panel — used on resume page only */
.hero-left {
  background: var(--olive-deeper);
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 80px;
  position: relative;
  overflow: hidden;
}

.hero-left::before {
  content: '';
  position: absolute;
  top: -120px; left: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 154, 91, .3) 0%, transparent 70%);
  animation: pulse 6s ease-in-out infinite;
  will-change: transform, opacity;     /* GPU-composite the pulse — Fix #8 */
}

.hero-badge {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--olive-light);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp .8s .2s forwards;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  line-height: .95;
  color: var(--white);
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp .9s .4s forwards;
}

.hero-name span {
  display: block;
  color: var(--olive-light);
}

.hero-contact {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp .9s .6s forwards;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-contact a,
.hero-contact__row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--olive-pale);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  transition: color .2s, gap .2s;
  -webkit-tap-highlight-color: transparent;
}

.hero-contact a:hover { color: var(--white); gap: 14px; }

.hero-contact__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--olive-pale);
}

.hero-contact .icon {
  width: 18px; height: 18px;
  fill: var(--olive-light);
  flex-shrink: 0;
  transition: fill .2s;
}

.hero-contact a:hover .icon { fill: var(--white); }

/* Phone span inherits same color/font as anchor rows */
.hero-contact__row span,
.hero-contact__row a {
  color: var(--olive-pale);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  text-decoration: none;
}

/* Right / middle panels — shared */
.hero-right {
  background: var(--olive-pale);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1;
}

.hero-middle {
  background: var(--olive-pale);
  padding: 0 0 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 80px;
  flex: 1;
  width: 100%;
  position: relative;
}

/* Watermark — base position (resume page) */
.hero-watermark {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 320px; height: 320px;
  opacity: .06;
  pointer-events: none;
  user-select: none;
}

/* Summary — base (used on both pages) */
.hero-summary { flex: 1; }

.summary-label {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 24px;
  opacity: 1;
  animation: fadeUp .9s .5s both;  /* ← base delay; overridden for homepage */
}

.summary-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-light);
  max-width: 700px;
  opacity: 1;
  animation: fadeUp .9s .7s both;  /* ← base delay; overridden for homepage */
}

.summary-text strong {
  color: var(--olive-deeper);
  font-weight: 600;
}

/* Stats — resume page only */
.stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex-shrink: 0;
  padding-left: 60px;
  border-left: 1px solid var(--line);
  opacity: 0;
  animation: fadeUp .9s .9s forwards;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--olive-deeper);
  line-height: 1;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--olive);
  opacity: 0;
  animation: fadeUp .9s 1.2s forwards;
  z-index: 10;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--olive), transparent);
  transform-origin: top;
  animation: scrollLine 1.5s ease-in-out infinite;
}


/* ═══════════════════════════════════════════
   HERO — HOMEPAGE MODIFIER (.hero--home)

    These rules apply to the homepage hero only.
   ═══════════════════════════════════════════ */

/* ── Section container ── */
.hero--home {
  min-height: 76vh;
  min-height: 76svh;                   /* svh: accounts for mobile browser chrome */
  padding-top: 0;                      /* hero-right handles its own top padding */
  align-items: stretch;
}

/* ── Right panel: full-width in single-column context ── */
.hero--home .hero-right {
  width: 100%;
  padding: 0;                          /* reset base padding; use inner .hero-content */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  min-height: inherit;
}

/* ── Vertical accent line — left rail decoration ── */
.hero--home .hero-right::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--olive-light) 20%,
    var(--olive) 50%,
    var(--olive-light) 80%,
    transparent 100%
  );
  opacity: .35;
  pointer-events: none;
  /* Animate in from top */
  transform: scaleY(0);
  transform-origin: top center;
  animation: accentLineGrow .9s .05s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Keyframe for the accent line growing downward */
@keyframes accentLineGrow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: .35; }
}

/* ── Inner content wrapper — indented from accent line ── */
.hero-content {
  padding: 72px 80px 72px 120px;       /* balanced top/bottom — clears nav + accent line */
  max-width: 1000px;
  position: relative;
  z-index: 1;
}

/* ── Watermark: larger + recentered for single column ── */
.hero--home .hero-watermark {
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 440px;
  height: 440px;
  opacity: .055;                       /* slightly more visible than resume (.06) to fill space */
}

/* ── Summary label: "INTRODUCTION" ── */
.hero--home .summary-label {
  font-size: 11px;                     /* slightly tighter than base 14px */
  letter-spacing: .25em;
  margin-bottom: 28px;
  /* ↓ KEY FIX: was 500ms — now fires at 80ms */
  animation-delay: .08s;
}

/* ── Hero tagline: "Engineer. Architect. Builder." ──
   NEW element replacing the first line of the old <p>.
   HTML: <h1 class="hero-tagline">
           Engineer.<br><span>Architect.</span><br>Builder.
         </h1>                                              */
.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 5.5vw, 76px); /* fluid: 44px → 76px across viewport widths */
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 32px;
  /* LCP FIX: Start visible so Lighthouse can measure it.
     Animate transform only — opacity stays 1 from the start. */
  opacity: 1;
  transform: translateY(0);
  animation: fadeUpLCP .9s .12s both;
}

/* Separate keyframe that starts from opacity:1 so LCP is never hidden */
@keyframes fadeUpLCP {
  from { transform: translateY(20px); opacity: .01; }
  to   { transform: translateY(0);    opacity: 1;   }
}

.hero-tagline span {
  color: var(--olive-deeper);          /* "Architect." in olive — visual rhythm break */
  display: block;
}

/* ── Divider rule between tagline and summary text ── */
.hero-divider {
  width: 52px;
  height: 2px;
  background: linear-gradient(to right, var(--olive-deeper), var(--olive-light), transparent);
  margin-bottom: 28px;
  border: none;
  opacity: 0;
  animation: fadeUp .9s .15s forwards; /* fires at 150ms */
}

/* ── Summary body text ── */
.hero--home .summary-text {
  font-size: 17px;
  line-height: 1.82;
  max-width: 640px;
  color: var(--ink-light);
  /* ↓ KEY FIX: was 700ms — now fires at 160ms */
  animation-delay: .16s;
}

/* ── CTA link row (optional — add to HTML if desired) ──
   <div class="hero-cta">
     <a href="jae_web_resume.html" class="hero-cta__link">View Resume →</a>
   </div>                                                  */
.hero-cta {
  margin-top: 40px;
  opacity: 0;
  animation: fadeUp .9s .22s forwards; /* fires at 220ms */
}

.hero-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive-deeper);
  text-decoration: none;
  border-bottom: 1.5px solid var(--olive);
  padding-bottom: 3px;
  transition: color .2s, gap .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}

.hero-cta__link:hover {
  color: var(--ink);
  gap: 14px;
  border-color: var(--ink);
}

/* ═══════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════ */
section { padding: 30px 0 60px 0; }
.section-override { 
  padding: 60px 0 0 0;
  grid-template-columns: auto 1fr;
}
.section-override-grid { 
  padding: 60px 0 0 0;
  grid-template-columns: 1fr;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 60px;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--olive);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}


/* ═══════════════════════════════════════════
   EXPERIENCE
   ═══════════════════════════════════════════ */
.experience-section { background: var(--white); }

.job {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s, transform .6s;
}

.job.visible { opacity: 1; transform: translateY(0); }

.job-meta { position: relative; }

.job-company {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--olive-deeper);
  margin-bottom: 6px;
}

.job-title {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--olive);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.job-dates {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.job-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--olive);
  position: absolute;
  right: -4px; top: 6px;
}

.job-content h4 {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 16px;
}

.job-bullets { list-style: none; }

.job-bullets li {
  padding: 8px 0 8px 20px;
  position: relative;
  color: var(--ink-light);
  font-size: 14px;
  border-bottom: 1px solid rgba(138, 154, 91, .08);
}

.job-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--olive);
  font-size: 12px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 2px;
  background: var(--olive-pale);
  color: var(--olive-deeper);
  letter-spacing: .05em;
  transition: background .2s, color .2s;
}

.tag:hover { background: var(--olive); color: var(--white); }


/* ═══════════════════════════════════════════
   COMPETENCIES / SKILLS
   ═══════════════════════════════════════════ */
.skills-section { background: var(--cream); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
  position: relative;
  overflow: hidden;
  cursor: default;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s, transform .5s, box-shadow .3s, border-color .3s;
}

.skill-card.visible { opacity: 1; transform: translateY(0); }

.skill-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--olive);
  transition: width .4s ease;
}

.skill-card:hover::before { width: 100%; }

.skill-card:hover {
  box-shadow: 0 8px 40px rgba(138, 154, 91, .15);
  border-color: var(--olive-light);
}

.skill-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.skill-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.skill-items {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════
   METRICS BAND
   ═══════════════════════════════════════════ */
.metrics-section {
  background: var(--olive-deeper);
  padding: 80px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.metric {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s, transform .6s;
}

.metric.visible { opacity: 1; transform: translateY(0); }

.metric-num {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 900;
  color: var(--olive-light);
  line-height: 1;
  display: block;
}

.metric-desc {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive-pale);
  margin-top: 10px;
  opacity: .7;
}


/* ═══════════════════════════════════════════
   EDUCATION
   ═══════════════════════════════════════════ */
.edu-section { background: var(--white); }

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 48px;
  background: var(--olive-pale);
  border-left: 4px solid var(--olive);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .6s, transform .6s;
}

.edu-card.visible { opacity: 1; transform: translateX(0); }

.edu-year {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--olive);
  line-height: 1;
  flex-shrink: 0;
}

.edu-school {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.edu-degree {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 10px;
}

.edu-note {
  font-size: 14px;
  color: var(--muted);
}


/* ═══════════════════════════════════════════
   INTERESTS
   ═══════════════════════════════════════════ */
.interests-section { background: var(--cream); }

.interests-list {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 16px;
}

/* Safari < 14.1 gap fallback */
@supports not (gap: 16px) {
  .interests-list > * { margin: 8px; }
}

.interest-item {
  padding: 14px 28px;
  border: 1.5px solid var(--line);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--olive-deeper);
  position: relative;
  overflow: hidden;
  cursor: default;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .4s, transform .4s, background .3s, color .3s, border-color .3s;
}

.interest-item.visible { opacity: 1; transform: scale(1); }

.interest-item:hover {
  background: var(--olive-deeper);
  color: var(--white);
  border-color: var(--olive-deeper);
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  background: var(--olive-deeper);
  padding: 48px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.footer-email {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--olive-light);
  text-decoration: none;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}

.footer-email:hover { color: var(--white); }

/* Footer contact row — icon + text inline */
.footer-custom-email, .footer-custom-phone, .footer-custom-location {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
}

/* Fallback for older Safari that doesn't support gap on flex */
.footer-custom-email > * + *,
.footer-custom-phone > * + *,
.footer-custom-location > * + * {
  margin-left: 8px;
}

@supports (gap: 8px) {
  .footer-custom-email > * + *,
  .footer-custom-phone > * + *,
  .footer-custom-location > * + * {
    margin-left: 0;
  }
}

.footer-custom-email .icon,
.footer-custom-phone .icon,
.footer-custom-location .icon{
  width: 16px;
  height: 16px;
  fill: var(--olive-light);
  flex-shrink: 0;
}

.footer-custom-email a,
.footer-custom-email span,
.footer-custom-phone a,
.footer-custom-phone span,
.footer-custom-location a,
.footer-custom-location span {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--olive-light);
  text-decoration: none;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}

.footer-custom-email a:hover,
.footer-custom-phone a:hover,
.footer-custom-location a:hover {
  color: var(--white);
}


/* ═══════════════════════════════════════════
   RESPONSIVE — LARGE DESKTOP (≥ 1400px)
   Give the watermark more room to breathe
   and extend the content max-width
   ═══════════════════════════════════════════ */
@media (min-width: 1400px) {

  .hero--home .hero-watermark {
    right: 100px;
    width: 520px;
    height: 520px;
  }

  .hero-content {
    padding: 120px 100px 100px 140px;
    max-width: 1100px;
  }

  .hero--home .hero-right::before {
    left: 80px;
  }

}


/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET LANDSCAPE (1049px–1399px)
   Default desktop styles apply; no changes needed.
   ═══════════════════════════════════════════ */


/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET PORTRAIT (769px–1048px)
   Tighten padding, reduce watermark,
   keep two-zone feel on smaller screens.
   ═══════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1048px) {

  /* Shared hero: already single-column from base style */
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  /* Homepage hero adjustments */
  .hero--home {
    min-height: 70vh;
    min-height: 70svh;
  }

  .hero-content {
    padding: 60px 48px 60px 100px;    /* reduced top/bottom — avoids dead space */
    max-width: 100%;
  }

  .hero--home {
    align-items: center;              /* vertically center content in viewport */
  }

  .hero--home .hero-right::before {
    left: 40px;                        /* accent line moves left with padding */
  }

  .hero--home .hero-watermark {
    right: -20px;                      /* let it bleed off edge slightly */
    width: 380px;
    height: 380px;
    opacity: .045;                     /* slightly more subtle on smaller canvas */
  }

  .hero-tagline {
    font-size: clamp(40px, 5vw, 60px);
  }

  .hero--home .summary-text {
    font-size: 16px;
    max-width: 100%;
  }

}


/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   Stack layout, hide accent line,
   reduce watermark to subtle background,
   ensure content fills screen comfortably.
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Nav ── */
  nav            { padding: 14px 20px; }
  .nav-links     { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-drawer    { display: flex; }

  /* ── Experience: collapse two-column grid to single column ── */
  .job {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }
  .job-dot  { display: none; }
  .job-meta { padding-bottom: 4px; border-bottom: 1px solid var(--line); }

  /* ── Education: stack year above school info ── */
  .edu-card {
    flex-direction: column;
    gap: 12px;
    padding: 28px 20px;
  }
  .edu-year { font-size: 36px; line-height: 1; }

  /* ── Interests: equal-width pills in a 2-col grid ── */
  .interests-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .interest-item {
    padding: 12px 16px;
    text-align: center;
    font-size: 11px;
  }

  /* ── Footer: stack vertically, center everything ── */
  footer {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
  }
  .flex-center-gap { justify-content: center; }
  footer .footer-contact,
  footer .footer-custom-email,
  footer .footer-custom-phone,
  footer .footer-custom-location {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Hero contact stays left-aligned on mobile */
  .hero-contact__row { justify-content: flex-start; }

  /* ── Shared hero base resets ── */
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 0;
  }

  .hero-left {
    gap: 24px;
    padding: 88px 24px 40px;
  }

  .hero-right {
    gap: 32px;
    padding: 40px 24px 48px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-middle {
    gap: 24px;
    padding: 40px 24px 48px;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .hero-summary { width: 100%; }
  .summary-text { font-size: 15px; }
  .scroll-hint  { display: none; }

  .stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    padding-left: 0;
    padding-top: 24px;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  /* ── Homepage hero mobile overrides ── */
  .hero--home {
    min-height: 100svh;                /* fill viewport on mobile for impact */
    min-height: 100vh;                 /* fallback for browsers without svh */
  }

  /* Kill the accent line — too cramped on mobile */
  .hero--home .hero-right::before {
    display: none;
  }

  /* Reset hero-right base override */
  .hero--home .hero-right {
    min-height: inherit;
    justify-content: center;
  }

  /* Content padding: flush to edges, vertically centered */
  .hero-content {
    padding: 100px 24px 56px 24px;    /* top clears hamburger nav */
    max-width: 100%;
  }

  /* Tagline: smaller but still bold */
  .hero-tagline {
    font-size: clamp(38px, 10vw, 52px);
    margin-bottom: 20px;
    letter-spacing: -.01em;
  }

  /* Divider: shorter on mobile */
  .hero-divider {
    width: 36px;
    margin-bottom: 20px;
  }

  /* Summary: full width, comfortable size */
  .hero--home .summary-text {
    font-size: 15px;
    line-height: 1.75;
    max-width: 100%;
  }

  /* Watermark: smaller, centered, stays subtle */
  .hero--home .hero-watermark {
    right: -40px;
    top: 50%;
    width: 260px;
    height: 260px;
    opacity: .05;
  }

  /* CTA link: larger tap target */
  .hero-cta {
    margin-top: 32px;
  }

  .hero-cta__link {
    font-size: 11px;
    padding-bottom: 5px;
  }

  /* Label: tighter on mobile */
  .hero--home .summary-label {
    margin-bottom: 20px;
  }

}


/* ═══════════════════════════════════════════
   RESPONSIVE — EXTRA SMALL (≤ 390px)
   iPhone SE, older Android devices.
   Ensure nothing clips or overflows.
   ═══════════════════════════════════════════ */
@media (max-width: 390px) {

  /* Shared base */
  .hero-name    { font-size: 44px; }
  .summary-text { font-size: 14px; }
  .stats        { gap: 16px; }

  /* Homepage modifier */
  .hero--home {
    min-height: 100svh;
    min-height: 100vh;
  }

  .hero-content {
    padding: 96px 20px 48px 20px;
  }

  .hero-tagline {
    font-size: 36px;                   /* hard-floor below clamp for very small screens */
    margin-bottom: 16px;
  }

  .hero--home .summary-label {
    font-size: 10px;
    letter-spacing: .2em;
    margin-bottom: 16px;
  }

  .hero--home .summary-text {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero--home .hero-watermark {
    width: 200px;
    height: 200px;
    right: -30px;
    opacity: .04;
  }

  .hero-divider {
    width: 28px;
    margin-bottom: 16px;
  }

}


/* ═══════════════════════════════════════════
   REDUCED MOTION
   Respect users who have requested reduced
   motion in OS accessibility settings.
   Collapses ALL animation durations to
   near-zero — maintains state changes
   without motion.
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  /* Kill all transitions and animations */
  *, *::before, *::after {
    animation-duration:       0.01ms !important;
    animation-iteration-count: 1     !important;
    transition-duration:      0.01ms !important;
  }

  /* Immediately reveal all hero elements — 
     with no animation they'd stay at opacity:0 forever */
  .summary-label,
  .summary-text,
  .hero-tagline,
  .hero-divider,
  .hero-cta,
  .hero-badge,
  .hero-name,
  .hero-contact,
  .stats {
    opacity: 1;
    transform: none;
  }

  /* Accent line: just show it statically */
  .hero--home .hero-right::before {
    transform: scaleY(1);
    opacity: .35;
  }

}

/* ═══════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════ */

.flex-center-gap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mt-60 {
  margin-top: 60px;
}

.mt-48 {
  margin-top: 48px;
}