/* ============================================================
   MICHELLE NAVARRO — Portfolio
   Aesthetic: Field journal · Environmental science publication
   Palette: Deep kelp green + warm paper + ocean ink + ochre
   Fonts: Playfair Display (headings) · Source Serif 4 (body) · JetBrains Mono (data)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette pulled from the maps */
  --paper:       #f6f3ec;
  --paper-warm:  #ede8dd;
  --paper-dark:  #e0d9cc;
  --ink:         #1c1b16;
  --ink-mid:     #3e3c32;
  --ink-soft:    #7a7768;
  --ink-faint:   #b5b2a5;

  --kelp:        #1e5c38;     /* deep forest / kelp dark */
  --kelp-mid:    #2d7a4a;     /* mid green */
  --kelp-light:  #e4efe8;     /* pale green tint */
  --ocean:       #1e3f5c;     /* deep blue from the kelp map ocean */
  --ochre:       #b87d2a;     /* from the fault map warm tones */
  --ochre-pale:  #f5ead6;
  --teal:        #4a6e7c;     /* muted teal for intern era */
  --teal-light:  #e0ecf0;

  --border:      rgba(28,27,22,0.10);
  --border-mid:  rgba(28,27,22,0.18);

  --f-serif:    'Playfair Display', 'Georgia', serif;
  --f-body:     'Source Serif 4', 'Georgia', serif;
  --f-mono:     'JetBrains Mono', 'Courier New', monospace;

  --max:         1140px;
  --r:           6px;
}

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

body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(246,243,236,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(28,27,22,0.07); }

.nav-mark {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--kelp);
  letter-spacing: 0.1em;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.25rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--ink-mid);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--kelp); }

.nav-cta {
  font-weight: 400 !important;
  color: var(--kelp) !important;
  border: 1px solid var(--kelp-mid);
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover {
  background: var(--kelp) !important;
  color: #fff !important;
}

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

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 2.5rem 5rem;
  background: url('images/rocks.JPG') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

/* Paper overlay + topographic grid lines over the background image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(30,92,56,0.06) 59px,
      rgba(30,92,56,0.06) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(30,92,56,0.06) 59px,
      rgba(30,92,56,0.06) 60px
    ),
    linear-gradient(rgba(246,243,236,0.84), rgba(246,243,236,0.84));
  pointer-events: none;
}

/* Ink bleed accent top-right */
.hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,92,56,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
}

.hero-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kelp-mid);
  margin-bottom: 1.25rem;
}

h1 {
  font-family: var(--f-serif);
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: 1.75rem;
}
.hero-first {
  display: block;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--kelp);
}
.hero-last {
  display: block;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  font-weight: 700;
  color: var(--ink);
}

.hero-sub {
  font-family: var(--f-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 560px;
}

.htag-old-remove { display: none; } /* chips replaced by hero-tags */

/* coordinate readout */
.hero-coords {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.5);
  min-width: 200px;
}
.coord-row { display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; }
.coord-k {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.coord-v {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--ink-mid);
  font-weight: 500;
}
.coord-active { color: var(--kelp); }
.coord-hr { border: none; border-top: 1px solid var(--border); margin: 0.25rem 0; }


/* ── SHARED ───────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.section { padding: 7rem 0; }

.eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kelp-mid);
  margin-bottom: 1.25rem;
}
.eyebrow-light { color: rgba(246,243,236,0.6); }

h2 {
  font-family: var(--f-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
h2 em { font-style: italic; color: var(--kelp); font-weight: 400; }

.section-hd { margin-bottom: 4rem; }
.section-intro {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 560px;
  margin-top: 0.5rem;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.7rem 1.5rem;
  background: var(--kelp);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--kelp-mid); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink-mid);
  border-color: var(--border-mid);
}
.btn-ghost:hover { background: var(--paper-warm); color: var(--ink); transform: translateY(-1px); }
.btn-large { font-size: 1rem; padding: 0.9rem 2rem; }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ── ABOUT ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 6rem;
  align-items: start;
}
.about-left { position: sticky; top: 6rem; }
.about-left h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.about-left h2 em {
  display: block;
  font-size: 0.78rem;
  font-family: var(--f-mono);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}
.about-right .lead {
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.about-right p {
  color: var(--ink-mid);
  font-weight: 300;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}
.about-right strong { color: var(--kelp); font-weight: 500; font-style: normal; }

.edu-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.edu-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.edu-deg {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 500;
}
.edu-deg em {
  font-style: italic;
  font-family: var(--f-body);
  font-size: 0.78rem;
  color: var(--kelp-mid);
  letter-spacing: 0;
  font-weight: 300;
}
.edu-school {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
}

/* ── SOFTWARE ─────────────────────────────────────────────── */
.software-section {
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Projects */
.projects { margin-bottom: 5rem; }

.scroll-track {
  position: relative;
  margin-bottom: 1.5rem;
}
.scroll-track::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 64px;
  background: linear-gradient(to right, transparent, var(--paper-warm));
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s;
}
.scroll-track.scroll-end::after { opacity: 0; }

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1.5px solid var(--kelp-mid);
  background: var(--paper);
  backdrop-filter: blur(8px);
  color: var(--kelp);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 14px rgba(28,27,22,0.18);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  padding: 0;
  line-height: 1;
}
.scroll-arrow:hover {
  background: var(--kelp);
  color: var(--paper);
  border-color: var(--kelp);
  transform: translateY(-50%) scale(1.08);
}
.scroll-arrow-left  { left: 0.5rem; }
.scroll-arrow-right { right: 0.5rem; }
.scroll-arrow[hidden] { display: none; }
.maps-section .scroll-track::after {
  background: linear-gradient(to right, transparent, rgba(237,232,221,0.95));
}

.project-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 1.25rem;
  padding-bottom: 0.5rem;
}
.project-grid::-webkit-scrollbar { display: none; }

.project {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(28,27,22,0.07);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  margin-bottom: 0.9rem;
}
.ptag {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  padding-left: 0.6rem;
  border-left: 2px solid var(--kelp);
  line-height: 1.4;
}
.pco { display: none; }
.project h3 {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.project p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.7;
}

/* Skills */
.skills-block {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
  margin-top: 4rem;
}
.skill-group { padding: 0.25rem; }
.skill-group h4 {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kelp);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.skill-group ul { list-style: none; }
.skill-group li {
  font-size: 0.88rem;
  color: var(--ink-mid);
  font-weight: 300;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(28,27,22,0.05);
}

/* maps styles now in merged section above */

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(246,243,236,0.08);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer span {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: rgba(246,243,236,0.28);
  letter-spacing: 0.06em;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: rgba(246,243,236,0.38);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--paper); }

/* ── HERO TAGS ────────────────────────────────────────────── */
.hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.1rem;
  margin-top: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.htag { cursor: default; user-select: none; }
.htag-green { color: var(--kelp); font-weight: 500; }
.htag em { font-style: italic; font-family: var(--f-body); font-size: 0.78rem; }
.htag-sep { color: var(--ink-faint); padding: 0 0.3rem; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--ink-mid);
  z-index: 1;
  text-decoration: none;
  animation: nudge 2.5s ease-in-out infinite;
  transition: color 0.2s, border-color 0.2s;
  border: 1px solid var(--border-mid);
  padding: 0.45rem 0.9rem;
  border-radius: 2rem;
  background: rgba(246,243,236,0.7);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.hero-scroll:hover { color: var(--kelp); border-color: var(--kelp); }
@keyframes nudge {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(5px); }
}

/* ── ROLE LABELS ──────────────────────────────────────────── */
.role-label {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.role-label-spaced { margin-top: 3rem; }
.role-co {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.role-title {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.project-small { opacity: 0.88; }

/* ── TRAIL MAP ────────────────────────────────────────────── */
.trail-map { margin-bottom: 5rem; }

.trail-era-nav {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.trail-era-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  border: 1px solid var(--border-mid);
  background: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.trail-era-btn:hover { background: var(--paper-warm); }

.era-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.trail-era-btn[data-era="senior"]    .era-dot { background: var(--kelp); }
.trail-era-btn[data-era="fullstack"] .era-dot { background: var(--ocean); }
.trail-era-btn[data-era="watsi"]     .era-dot { background: var(--ochre); }
.trail-era-btn[data-era="intern"]    .era-dot { background: var(--teal); }

.trail-era-btn.active[data-era="senior"]    { background: var(--kelp-light);  border-color: var(--kelp);  color: var(--kelp); }
.trail-era-btn.active[data-era="fullstack"] { background: #dceaf5; border-color: var(--ocean); color: var(--ocean); }
.trail-era-btn.active[data-era="watsi"]     { background: var(--ochre-pale); border-color: var(--ochre); color: var(--ochre); }
.trail-era-btn.active[data-era="intern"]    { background: var(--teal-light); border-color: var(--teal); color: var(--teal); }

/* Outer container clips the scroll + adds right fade */
.trail-outer {
  position: relative;
  overflow: hidden;
}
.trail-outer::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--paper-warm));
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s;
}
.trail-outer.trail-scroll-end::after { opacity: 0; }

/* The scrollable trail row */
.trail-scroll {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
  height: 440px;
  padding-left: 1.5rem;
  padding-right: 3rem;
  /* Dashed trail line: center at y = 98 + 10 = 108px */
  background-image: repeating-linear-gradient(
    90deg,
    rgba(28,27,22,0.16) 0px,
    rgba(28,27,22,0.16) 6px,
    transparent 6px,
    transparent 14px
  );
  background-size: 14px 2px;
  background-repeat: repeat-x;
  background-position: 0 108px;
}
.trail-scroll::-webkit-scrollbar { display: none; }

/* Era separator — thin vertical line with label */
.trail-era-sep {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  background: rgba(28,27,22,0.12);
  position: relative;
  margin: 0 28px;
  transition: opacity 0.3s ease;
}
.trail-era-sep[data-era="senior"]    { background: rgba(30,92,56,0.4); }
.trail-era-sep[data-era="fullstack"] { background: rgba(30,63,92,0.4); }
.trail-era-sep[data-era="watsi"]     { background: rgba(184,125,42,0.4); }
.trail-era-sep[data-era="intern"]    { background: rgba(74,110,124,0.4); }
.trail-era-sep.dimmed { opacity: 0.15; }

.tes-label {
  position: absolute;
  top: 14px;
  left: 10px;
  font-family: var(--f-mono);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.55;
  white-space: nowrap;
  color: var(--ink-soft);
}
.trail-era-sep[data-era="senior"]    .tes-label { color: var(--kelp); }
.trail-era-sep[data-era="fullstack"] .tes-label { color: var(--ocean); }
.trail-era-sep[data-era="watsi"]     .tes-label { color: var(--ochre); }
.trail-era-sep[data-era="intern"]    .tes-label { color: var(--teal); }

/* Trail stop */
.trail-stop {
  flex-shrink: 0;
  width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  padding-top: 98px; /* marker center = 98 + 10 = 108px = trail line */
  transition: opacity 0.3s ease;
}
.trail-stop.dimmed { opacity: 0.18; }

/* Era color tokens */
.trail-stop[data-era="senior"]    { --era-c: var(--kelp);  --era-t: var(--kelp-light); }
.trail-stop[data-era="fullstack"] { --era-c: var(--ocean); --era-t: #dceaf5; }
.trail-stop[data-era="watsi"]     { --era-c: var(--ochre); --era-t: var(--ochre-pale); }
.trail-stop[data-era="intern"]    { --era-c: var(--teal);  --era-t: var(--teal-light); }

/* Marker: filled circle + outer ring */
.tsm-wrap {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.tsm-wrap:hover .tsm {
  transform: scale(1.2);
  transition: transform 0.15s ease;
}
.tsm { transition: transform 0.15s ease; }
.tsm {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--era-c, var(--ink-mid));
  position: relative;
}
.tsm::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--era-c, var(--ink-mid));
  background: var(--era-t, transparent);
  opacity: 0.5;
}

/* Vertical connector from marker to card */
.tsc {
  width: 2px;
  height: 36px;
  background: var(--era-c, var(--ink-mid));
  opacity: 0.35;
  flex-shrink: 0;
}

/* Project card */
.trail-card {
  width: 100%;
  border: 1px solid var(--border);
  border-top: 2px solid var(--era-c, var(--border-mid));
  border-radius: 0 0 var(--r) var(--r);
  background: var(--paper);
  padding: 0.9rem 1rem 1rem;
  flex: 1;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.trail-stop:not(.dimmed):hover .trail-card {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(28,27,22,0.09);
}

.tc-tags {
  font-family: var(--f-mono);
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  color: var(--era-c, var(--ink-soft));
  margin-bottom: 0.55rem;
  line-height: 1.55;
  padding-left: 0.5rem;
  border-left: 2px solid var(--era-c, var(--border-mid));
  opacity: 0.9;
}
.tc-title {
  font-family: var(--f-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.45rem;
}
.tc-desc {
  font-size: 0.8rem;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.65;
}

.trail-end-pad { flex-shrink: 0; width: 60px; }


/* ── MAPS + OUTSIDE MERGED ────────────────────────────────── */
.maps-section {
  background: url('images/matterhorn.JPG') center/cover no-repeat fixed;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.maps-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(237,232,221,0.88);
  pointer-events: none;
}
.maps-section .container {
  position: relative;
  z-index: 1;
}

.maps-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 1.25rem;
  padding-bottom: 0.5rem;
  margin-bottom: 3rem;
}
.maps-scroll::-webkit-scrollbar { display: none; }
.maps-scroll .map-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
}
.maps-scroll .map-card .map-img { height: 260px; }

.map-card {
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--paper);
}
.map-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(28,27,22,0.1);
}
.map-card .map-img { position: relative; overflow: hidden; }
.map-card .map-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.map-card:hover .map-img img { transform: scale(1.03); }

.map-hover-hint {
  position: absolute;
  bottom: 0.75rem; right: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(28,27,22,0.55);
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.map-card:hover .map-hover-hint { opacity: 1; }

.map-card figcaption {
  display: flex;
  gap: 0.9rem;
  padding: 1.25rem 1.25rem 1.35rem;
  border-top: 1px solid var(--border);
  background: var(--paper);
}
.map-n {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  flex-shrink: 0;
  margin-top: 3px;
}
.map-card figcaption h3 {
  font-family: var(--f-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}
.map-card figcaption p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.map-src {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint) !important;
  margin-bottom: 0 !important;
}

/* Outside strip */
.outside-strip {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  overflow: hidden;
}
.outside-strip-img { height: 280px; overflow: hidden; }
.outside-strip-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.outside-strip-text {
  padding: 2.25rem 2.5rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}
.outside-strip-text p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.outside-loc {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── MODAL ────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(28,27,22,0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.modal.open { display: flex; }

.modal-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.modal-img {
  max-height: 82vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--r);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.modal-caption {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(246,243,236,0.5);
  text-align: center;
}

.modal-close {
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  width: 2.25rem; height: 2.25rem;
  background: var(--paper);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background 0.2s;
  z-index: 600;
}
.modal-close:hover { background: var(--paper-dark); }

/* ── CONTACT stripped ─────────────────────────────────────── */
.contact-h { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }

/* ── SCROLL ANIMATIONS ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-section { background: var(--ink); padding: 7rem 0; }
.contact-inner { max-width: 540px; }
.contact-section .eyebrow { color: rgba(246,243,236,0.35); }
.contact-h { color: var(--paper); line-height: 1.05; margin-bottom: 1rem; }
.contact-body {
  color: rgba(246,243,236,0.55);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-section .btn-large {
  background: var(--ochre);
  color: var(--ink);
  border-color: transparent;
}
.contact-section .btn-large:hover { background: #ca8e30; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 3rem; }
  .hero-coords { min-width: 0; width: 100%; max-width: 280px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-left { position: static; }
  .outside-strip { grid-template-columns: 1fr; }
  .outside-strip-img { height: 260px; }
  .outside-strip-text { border-left: none; border-top: 1px solid var(--border); }

}

@media (max-width: 640px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1.5rem; gap: 1.25rem; }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
  .hero { padding: 8rem 1.5rem 4rem; }
  .container { padding: 0 1.5rem; }
  .section { padding: 5rem 0; }
  .skill-group { flex: 0 0 180px; }
  .modal { padding: 1rem; }
  .footer { padding: 1.25rem 1.5rem; flex-direction: column; gap: 0.75rem; text-align: center; }
}
