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

:root {
  /* Light mode */
  --bg:           #F4F0E4;
  --bg-alt:       #EDE9D8;
  --bg-tint:      #EAE6D8;
  --surface:      #FFFFFF;
  --text:         #0A1F2E;
  --text-mid:     #3D5166;
  --text-muted:   #7A8C9E;
  --accent:       #0A2540;
  --accent-mid:   #1A4A7A;
  --accent-hi:    #3A82C4;
  --border:       rgba(10, 37, 64, 0.10);
  --border-strong:rgba(10, 37, 64, 0.20);

  /* Dark section bg */
  --dark-bg:      #070E19;
  --dark-surface: #0D1E30;
  --dark-text:    #EDE9DF;

  /* Fonts */
  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:   'DM Mono', 'Courier New', monospace;

  /* Motion */
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease2:  cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --max-w:  1200px;
  --pad:    clamp(24px, 5vw, 72px);
  --sec-py: clamp(80px, 10vw, 140px);
}

[data-theme="dark"] {
  --bg:           #060C17;
  --bg-alt:       #0A1424;
  --bg-tint:      #0C1829;
  --surface:      #0F2035;
  --text:         #EDE9DF;
  --text-mid:     #A8B8C8;
  --text-muted:   #607080;
  --accent:       #5AB0DC;
  --accent-mid:   #3E8EC0;
  --accent-hi:    #80CBEE;
  --border:       rgba(237, 233, 223, 0.08);
  --border-strong:rgba(237, 233, 223, 0.15);

  --dark-bg:      #040A12;
  --dark-surface: #090F1B;
  --dark-text:    #EDE9DF;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;

  cursor: none;
  -webkit-font-smoothing: antialiased;
  transition: background 0.7s var(--ease2), color 0.7s var(--ease2);
}

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

.mono { font-family: var(--mono); }
.small { font-size: 0.8125rem; }

/* ═══════════════════════════════════════════
   CURSOR
══════════════════════════════════════════ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.3s;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--accent);
  opacity: 0.6;
  transition: width 0.5s var(--ease), height 0.5s var(--ease),
              opacity 0.5s, border-color 0.3s;
}

body.is-hovering .cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-hi);
}
body.is-hovering .cursor-ring {
  width: 60px;
  height: 60px;
  opacity: 0.3;
}
body.is-clicking .cursor-dot {
  width: 4px;
  height: 4px;
}

/* ═══════════════════════════════════════════
   LOADER
══════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.loader-initials {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
}

.loader-initials span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: letterUp 0.7s var(--ease) forwards;
}

.loader-initials span:nth-child(2) { animation-delay: 0.12s; }

.loader-progress {
  width: 120px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  animation: fillBar 1.1s var(--ease) 0.2s forwards;
}

@keyframes letterUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fillBar {
  to { width: 100%; }
}

/* ═══════════════════════════════════════════
   SCROLL BAR
══════════════════════════════════════════ */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  z-index: 9000;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad);
  transition: padding 0.5s var(--ease), background 0.5s, backdrop-filter 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  padding: 18px var(--pad);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color 0.3s;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.theme-btn {
  background: none;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(30deg);
}

.icon-sun, .icon-moon { transition: opacity 0.3s, transform 0.3s; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: none; }

/* ═══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--pad) 80px;
  position: relative;
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 80% 40%, color-mix(in srgb, var(--accent-hi) 8%, transparent), transparent 70%);
  transition: background 0.7s;
}

.hero-body {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
}

.eyebrow-char, .eyebrow-sep {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 14rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 48px;
}

.name-row {
  display: block;
}

.name-row--indent {
  padding-left: clamp(24px, 5vw, 100px);
}

.scramble {
  display: inline-block;
  opacity: 0;
}

.italic-text {
  font-style: italic;
  /* italic slant overhangs the inline-block box; pad so the last glyph isn't clipped */
  padding-right: 0.3em;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.tag-item {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.04em;
}

.tag-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.hero-sub {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
}

.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 80px;
}

.hero-location {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  opacity: 0;
}

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
}

.hero-scroll-hint span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-pill {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--border-strong);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  animation: scrollBounce 2s var(--ease) infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
}

/* ═══════════════════════════════════════════
   SECTIONS – BASE
══════════════════════════════════════════ */
.section {
  padding: var(--sec-py) var(--pad);
  position: relative;
}

.section--dark {
  background: var(--dark-bg);
  color: var(--dark-text);
  --text: var(--dark-text);
  --text-mid: #8A9BAC;
  --text-muted: #506070;
  --accent: #5AB0DC;
  --accent-hi: #80CBEE;
  --border: rgba(237,233,223,0.08);
  --border-strong: rgba(237,233,223,0.16);
  transition: none;
}

.section--tinted {
  background: var(--bg-tint);
  transition: background 0.7s var(--ease2);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Section label row */
.sec-label-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.sec-num {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.sec-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-left: 20px;
}

.sec-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--text-muted);
}

/* Section headings */
.sec-heading {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 72px;
}

.sec-heading em {
  font-style: italic;
  color: var(--accent);
  transition: color 0.7s;
}

/* ═══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about-img-col {
  position: sticky;
  top: 120px;
}

.img-reveal-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
}

.img-mask {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 2;
  transform-origin: top;
  transition: background 0.7s;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.08);
  transition: transform 0.7s var(--ease);
}

.img-reveal-wrap:hover .about-photo {
  transform: scale(1.04);
}

.img-caption {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.about-text-col {
  padding-top: 8px;
}

.about-body {
  margin-top: 0;
  margin-bottom: 56px;
}

.about-body p {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-body p:last-child { margin-bottom: 0; }

.stats-row {
  display: flex;
  gap: 40px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════
   EXPERIENCE
══════════════════════════════════════════ */
.exp-list {
  margin-top: 0;
}

.exp-item {
  position: relative;
}

.exp-rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 0;
  transform-origin: left;
  transform: scaleX(0);
}

.exp-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 40px 0;
  opacity: 0;
  transform: translateY(24px);
}

.exp-meta-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.exp-logo {
  /* fixed box so mismatched logo ratios align without distortion */
  height: 38px;
  width: 150px;
  object-fit: contain;
  object-position: left center;
  /* flatten every logo (incl. colored TransPerfect) to one uniform light tone */
  filter: brightness(0) invert(1);
  opacity: 0.82;
  margin-bottom: 16px;
  transition: opacity 0.4s var(--ease2, ease);
}

.exp-item:hover .exp-logo {
  opacity: 1;
}

.exp-date {
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.exp-place {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.exp-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.exp-co {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.exp-role {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-bullets li {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.exp-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 3px;
}

/* ═══════════════════════════════════════════
   EDUCATION
══════════════════════════════════════════ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  perspective: 1200px;
}

.edu-card {
  background: var(--surface);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: background 0.7s;
  transform-style: preserve-3d;
  will-change: transform;
}

.edu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-hi);
  opacity: 0;
  transition: opacity 0.4s;
}

.edu-card:hover::before { opacity: 0.04; }

.edu-card-top {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.edu-card-top span {
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.edu-school {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.edu-prog {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.edu-deg {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 12px;
}

.edu-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

.edu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.edu-list li {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.edu-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   LEADERSHIP
══════════════════════════════════════════ */
.lead-list { margin-top: 0; }

.lead-item { position: relative; }

.lead-rule {
  height: 1px;
  background: var(--border);
  transform-origin: left;
  transform: scaleX(0);
}

.lead-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 36px 0;
  opacity: 0;
  transform: translateY(20px);
}

.lead-glyph {
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  padding-top: 2px;
  transition: transform 0.4s var(--ease);
}

.lead-item:hover .lead-glyph {
  transform: scale(1.2) rotate(12deg);
}

.lead-body { flex: 1; }

.lead-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

.lead-title {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.lead-dates {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.lead-desc {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   SKILLS MARQUEE
══════════════════════════════════════════ */
.skills-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  transition: background 0.7s;
}

.marquee-track {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
  flex-shrink: 0;
}

.marquee-track:hover .marquee-inner {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.m-tag {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 400;
  color: var(--text-mid);
  padding: 0 24px;
  transition: color 0.3s;
}

.m-tag:hover { color: var(--accent); }

.m-sep {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0 4px;
}

/* ═══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-section {
  padding-bottom: 0;
}

.contact-heading {
  font-size: clamp(3.5rem, 10vw, 10rem);
}

.contact-links {
  margin-top: 0;
}

.cl-rule {
  height: 1px;
  background: var(--border);
  transform-origin: left;
  transform: scaleX(0);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: gap 0.4s var(--ease);
}

.contact-link:hover { gap: 32px; }

.cl-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  width: 80px;
  flex-shrink: 0;
}

.cl-value {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  flex: 1;
  transition: color 0.3s;
}

.contact-link:hover .cl-value { color: var(--accent); }

.cl-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.4s var(--ease), color 0.3s;
}

.contact-link:hover .cl-arrow {
  transform: translateX(8px);
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   ANIMATION UTILITIES
══════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-img-col {
    position: static;
    max-width: 400px;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }

  .exp-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .exp-meta-col {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .lead-header {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hero-name {
    font-size: clamp(3.5rem, 16vw, 7rem);
  }

  .stats-row {
    gap: 24px;
  }

  .contact-link {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cl-label { width: auto; }
  .cl-value { font-size: 1rem; }
}

/* ═══════════════════════════════════════════
   SELECTION
══════════════════════════════════════════ */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ═══════════════════════════════════════════
   MICROGRAPHICS
══════════════════════════════════════════ */

/* Hero corner registration crosshairs */
.hero-marks { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hmark {
  position: absolute;
  width: 13px;
  height: 13px;
  opacity: 0;            /* faded in by JS entrance */
}
.hmark::before,
.hmark::after {
  content: '';
  position: absolute;
  background: var(--accent-hi);
}
.hmark::before { left: 50%; top: 0;  width: 1px; height: 100%; transform: translateX(-50%); }
.hmark::after  { top: 50%; left: 0;  height: 1px; width: 100%; transform: translateY(-50%); }
.hmark--tl { top: clamp(80px, 11vh, 116px); left: clamp(20px, 4vw, 56px); }
.hmark--tr { top: clamp(80px, 11vh, 116px); right: clamp(20px, 4vw, 56px); }
.hmark--bl { bottom: clamp(24px, 5vh, 56px); left: clamp(20px, 4vw, 56px); }
.hmark--br { bottom: clamp(24px, 5vh, 56px); right: clamp(20px, 4vw, 56px); }

/* Hero status dot + coordinates */
.hero-location { display: flex; align-items: center; gap: 12px; }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: statusPulse 2.4s ease-out infinite;
}
@keyframes statusPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(3.2); opacity: 0; }
}
.hero-coord {
  color: var(--text-muted);
  opacity: 0.65;
  letter-spacing: 0.06em;
  padding-left: 12px;
  border-left: 1px solid var(--border-strong);
}

/* Section number pagination (01 / 05) */
.sec-num::after {
  content: ' / 05';
  color: var(--text-muted);
  opacity: 0.45;
}

/* About photo corner framing brackets */
.img-reveal-wrap::before,
.img-reveal-wrap::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.75;
}
.img-reveal-wrap::before {
  top: 12px; left: 12px;
  border-top: 1px solid rgba(255,255,255,0.85);
  border-left: 1px solid rgba(255,255,255,0.85);
}
.img-reveal-wrap::after {
  bottom: 12px; right: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.85);
  border-right: 1px solid rgba(255,255,255,0.85);
}

/* Side index rail */
.rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}
.rail-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
}
.rail-tick {
  width: 16px;
  height: 1px;
  background: var(--text-muted);
  opacity: 0.5;
  transition: width 0.35s var(--ease), background 0.35s, opacity 0.35s;
}
.rail-item:hover .rail-label { opacity: 1; transform: none; }
.rail-item:hover .rail-tick  { width: 26px; opacity: 1; }
.rail-item.is-active .rail-tick {
  width: 32px;
  background: var(--accent-hi);
  opacity: 1;
}
.rail-item.is-active .rail-label {
  opacity: 1;
  transform: none;
  color: var(--accent-hi);
}

@media (max-width: 900px) {
  .hero-marks, .rail { display: none; }
  .hero-coord { display: none; }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
