/* ─── Variables ─────────────────────────────────────────────────── */
:root {
  --bg:           #fafaf7;
  --bg-raised:    #f5f5f0;
  --bg-secondary: #f0f0eb;
  --bg-subtle:    #f0f0eb;
  --border:       rgba(0, 0, 0, 0.10);
  --orange:       #D85A30;
  --blue:         #185FA5;
  --text:         #1a1a18;
  --text-muted:   #666660;
  --nav-height:   60px;

  --font-mono:    'Space Mono', monospace;
  --font-body:    'DM Sans', sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.career-page {
  background: #ffffff;
}

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

/* ─── Nav ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.25s;
}

.nav.is-scrolled {
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 40px;
}

.nav__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
  flex-shrink: 0;
  transition: color 0.15s;
}

.nav__logo:hover { color: var(--orange); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav__link:hover  { color: var(--text); }
.nav__link.is-active { color: #333330; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: opacity 0.15s;
}

.nav__burger:hover span { background: var(--orange); }

/* ─── Mobile overlay ─────────────────────────────────────────────── */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav__overlay.is-open { display: flex; }

.nav__overlay-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  font-family: var(--font-mono);
}

.nav__overlay-close:hover { color: var(--text); }

.nav__overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.nav__overlay-link {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav__overlay-link:hover { color: var(--orange); }

/* ─── Sections ───────────────────────────────────────────────────── */
.section {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 0.5px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section__placeholder {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 0.5px solid var(--border);
  padding: 12px 20px;
}

/* ─── Hero (home section) ────────────────────────────────────────── */
.section--home {
  padding: 0;
  min-height: 0;
  height: auto;
  opacity: 1;
  transform: none;
  transition: none;
  align-items: stretch;
  flex-direction: column;
  border-bottom: none;
}

@keyframes sectionFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  animation: sectionFadeUp 0.7s ease 0.05s both;
  background: url('/assets/photos/home/hero.jpg') center / cover no-repeat;
  background-color: #2a2a28;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.06em;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  text-decoration: none;
  animation: heroScrollBounce 2.2s ease-in-out infinite;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.bio-strip {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* ─── Map tooltip ────────────────────────────────────────────────── */
.map-tooltip {
  position: fixed;
  z-index: 50;
  background: #fff;
  border: 0.5px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  white-space: nowrap;
}

.map-tooltip.is-visible { opacity: 1; }

/* ─── Travel section ─────────────────────────────────────────────── */
.section--travel {
  align-items: flex-start;
  justify-content: flex-start;
}

.travel {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

/* ─── Home: dual maps strip ──────────────────────────────────────── */
.maps-strip {
  display: flex;
  width: 100%;
  background: #fff;
  border-bottom: 0.5px solid var(--border);
}

.maps-strip__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.maps-strip__panel + .maps-strip__panel {
  border-left: 0.5px solid var(--border);
}

.maps-strip__map {
  height: 400px;
  position: relative;
  cursor: pointer;
}

.maps-strip__map .maplibregl-ctrl-logo,
.maps-strip__map .maplibregl-ctrl-attrib { display: none !important; }

.maps-strip__map .maplibregl-canvas { outline: none; }

.map-click-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  padding: 5px 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.maps-strip__map:hover .map-click-hint { opacity: 1; }

.maps-strip__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-top: 0.5px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: #fff;
}

.maps-strip__sep { color: var(--border); }

.maps-strip__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19.8px;
  color: var(--text-muted);
  text-align: center;
  padding: 0.75rem 1rem;
  border-bottom: 0.5px solid var(--border);
  margin: 0;
  margin-bottom: 0;
}

/* ─── Home: trip cards ───────────────────────────────────────────── */
.home-trips {
  width: 100%;
  background: var(--bg);
  padding: 60px 24px 80px;
  border-bottom: 0.5px solid var(--border);
}

.home-trips .trip-grid {
  max-width: 1100px;
  margin: 0 auto;
}

/* Block (countries / trips) */
.travel__block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.travel__heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
}

/* Continent accordions */
.continent-list {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--border);
}

.continent {
  border-bottom: 0.5px solid var(--border);
}

.continent:last-child { border-bottom: none; }

.continent__header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 20px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 12px;
  text-align: left;
  transition: background 0.15s;
}

.continent__header:hover { background: var(--bg-raised); }

.continent__name {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  flex: 1;
}

.continent__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 20px;
  text-align: right;
}

.continent__chevron {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  display: inline-block;
  line-height: 1;
  transform: rotate(0deg);
}

.continent.is-open .continent__chevron {
  transform: rotate(90deg);
}

.continent__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.continent.is-open .continent__body {
  max-height: 800px;
}

.continent__inner { /* wrapper only */ }

.country-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 14px 20px 18px;
  gap: 2px 0;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 25%;
  padding: 5px 0;
  min-width: 150px;
}

.country-item__flag { font-size: 15px; line-height: 1; }

.country-item__name {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}

/* Trip cards */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.trip-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #2a2a28;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.trip-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
  pointer-events: none;
  z-index: 1;
  transition: background 0.35s ease;
}

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

.trip-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.trip-card__img { display: none; }

.trip-card__body {
  position: relative;
  z-index: 2;
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.trip-card__year {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}

.trip-card__title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.trip-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  margin-top: 4px;
}

/* Expandable trip card */
.trip-card--expandable { cursor: pointer; }

.trip-card--expandable.is-active {
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.5);
}

.trip-card.is-expanded {
  grid-column: 1 / -1;
}

.trip-card.is-expanded::before {
  background: rgba(0,0,0,0.6);
}

.slideshow-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
  pointer-events: none;
}

.slideshow-layer.is-active {
  opacity: 1;
}

.card-photos-btn {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  border: 0.5px solid rgba(255,255,255,0.35);
  padding: 0.65rem 1.1rem;
  background: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
}

.card-photos-btn:hover {
  color: #fff;
  border-color: rgba(216,90,48,0.6);
}

.trip-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 10px;
  padding: 0.5rem 1rem;
}
.trip-card__actions .trip-card__expand-hint {
  margin-top: 0;
}
.trip-card__sep {
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
  font-size: 10px;
}
.trip-card__photos-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.trip-card__photos-link:hover {
  color: white;
}

.trip-card__expand-hint {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.trip-story-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(0,0,0,0.45);
}

.trip-story-panel__text {
  position: relative;
  z-index: 2;
  padding: 16px 20px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  border-top: 0.5px solid rgba(255,255,255,0.2);
  margin: 0;
  border-radius: 0 0 12px 12px;
}

.trip-story-panel__text p,
.trip-story-panel__text h3,
.trip-story-panel__text span,
.trip-story-panel__text a {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.trip-card.is-expanded .trip-card__body {
  color: #fff;
}

.trip-card.is-expanded .trip-story-panel__text {
  color: #fff;
}

/* ─── Photo modal ────────────────────────────────────────────────── */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.photo-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.photo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.photo-modal__img {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.22s ease;
}

.photo-modal__img.is-fading { opacity: 0; }

.photo-modal__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.photo-modal__close:hover { background: rgba(255, 255, 255, 0.22); }

.photo-modal__prev,
.photo-modal__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

.photo-modal__prev { left: 20px; }
.photo-modal__next { right: 20px; }
.photo-modal__prev:hover,
.photo-modal__next:hover { background: rgba(255, 255, 255, 0.22); }

.photo-modal__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* ─── Hitchhiking section ────────────────────────────────────────── */
.section--hitching {
  align-items: flex-start;
  justify-content: flex-start;
}

.hitching {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hitching__intro {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.hitching__filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 2px;
}
.hitching__filters::-webkit-scrollbar { display: none; }

.year-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  border: 0.5px solid var(--border);
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.year-btn:hover {
  color: var(--orange);
  border-color: rgba(216, 90, 48, 0.5);
}

.year-btn.is-active {
  color: var(--orange);
  border-color: rgba(216, 90, 48, 0.5);
}

.hitching__map {
  width: 100%;
  height: 500px;
  position: relative;
}
/* Desktop: taller map, so Europe is not squeezed and the country names fit beside the routes */
@media (min-width: 769px) {
  .hitching__map { height: min(78vh, 760px); }
}

.hitching__map .maplibregl-ctrl-logo,
.hitching__map .maplibregl-ctrl-attrib { display: none !important; }

.hitching__map .maplibregl-canvas { outline: none; }

.hitching__stat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-top: 0.5px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.hitching__stat-sep { color: var(--border); }

.hitching__block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hitching__heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
}

.hitching__story { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.hitching__follow { font-family: var(--font-mono) !important; font-size: 13px !important; letter-spacing: 0.04em; }
.hitching__follow a { color: var(--orange); text-decoration: none; border-bottom: 1px solid currentColor; }
.hitching__story p { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text); margin: 0; }

.hitching__featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.trip-list {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--border);
}

/* ─── Hitch trip table ───────────────────────────────────────────── */
.hitch-table-header,
.hitch-row {
  display: grid;
  grid-template-columns: 52px 1fr 80px 82px 72px;
  align-items: center;
  gap: 0 14px;
  padding: 10px 20px;
  border-bottom: 0.5px solid var(--border);
}

.hitch-table-header {
  background: var(--bg-raised);
}

.hitch-table-header span {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  opacity: 0.7;
}

.hitch-row:last-child { border-bottom: none; }
.hitch-row:hover { background: var(--bg-raised); }
.hitch-row--ferry { opacity: 0.65; }

.hitch-row__year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.hitch-row__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hitch-row__name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hitch-row__summary {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.hitch-row__duration,
.hitch-row__distance {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}


.hitch-row__more {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  text-align: right;
  display: block;
  transition: color 0.15s;
}

.hitch-row__more:hover { color: var(--orange); }
.hitch-row__more--empty { pointer-events: none; }

/* ─── About section ─────────────────────────────────────────────── */
.section--about {
  align-items: flex-start;
  justify-content: flex-start;
}

.about__intro {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 48px;
}

.about {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.about__heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 28px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 1rem 0;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: -52px;
}

.page-header__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  margin: 0;
  flex-shrink: 0;
}

.page-header__quote {
  flex: 1;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19.8px;
  color: var(--text-muted);
  margin: 0;
}

.about__para {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0;
  line-height: 1.75;
  padding: 18px 0;
  border-bottom: 0.5px solid var(--border);
}

.about__para:last-child { border-bottom: none; }

.about__facts { padding-top: 0; }

.facts-grid {
  border: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
}

.facts-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 13px 20px;
  border-bottom: 0.5px solid var(--border);
}

.facts-row:last-child { border-bottom: none; }

.facts-row__label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.facts-row__value {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
}

/* ─── Work section ───────────────────────────────────────────────── */
.section--work {
  align-items: flex-start;
  justify-content: flex-start;
}

.work {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.work__block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work__heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
}

.timeline {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--border);
}

.timeline__row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 20px;
  border-bottom: 0.5px solid var(--border);
  transition: background 0.15s;
}

.timeline__row:last-child { border-bottom: none; }
.timeline__row:hover { background: var(--bg-raised); }

.timeline__years {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 160px;
}

.timeline__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.timeline__title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.timeline__org {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}

.timeline__note {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.65;
  margin-top: 1px;
}

.timeline__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 0.5px solid;
  flex-shrink: 0;
}

.timeline__tag--msc         { color: var(--blue);       border-color: rgba(24, 95, 165, 0.4); }
.timeline__tag--bachelor    { color: var(--blue);       border-color: rgba(24, 95, 165, 0.25); }
.timeline__tag--apprenticeship { color: var(--text-muted); border-color: var(--border); }
.timeline__tag--work        { color: var(--orange);     border-color: rgba(216, 90, 48, 0.4); }
.timeline__tag--team        { color: var(--orange);     border-color: rgba(216, 90, 48, 0.4); background: rgba(216, 90, 48, 0.06); }

/* ─── CV sidebar layout (Career page) ───────────────────────────── */
.cv-layout {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 12px 56px;
  align-items: start;
}

.cv-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  align-self: start;
}



.cv-main {
  display: flex;
  flex-direction: column;
  gap: 52px;
  min-width: 0;
}

.cv-block__heading {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
  margin: 0 0 16px;
}

.facts-grid--compact .facts-row {
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 9px 14px;
}
.facts-grid--compact .facts-row__value {
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.facts-grid--compact a {
  color: var(--orange);
}
.facts-grid--stacked .facts-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
}

.cv-skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
.cv-skills__grid .about__section {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.cv-skills .about__section {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 0.5px solid var(--border);
}
.cv-skills .about__section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.cv-skills .about__subheading {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.cv-skills .guide-list {
  font-size: 12.5px;
  line-height: 1.6;
  gap: 8px;
  padding-left: 1rem;
  max-width: none;
}

@media (max-width: 768px) {
  .cv-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .cv-sidebar {
    position: static;
  }
  .cv-skills__grid {
    grid-template-columns: 1fr;
  }
}

/* Photo options for the career page (A: sidebar card, B: header banner) */
.cv-photo {
  width: 100%;
  aspect-ratio: 5 / 4;
  border: 0.5px solid var(--border);
  overflow: hidden;
  background: var(--bg-raised);
}
.cv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.cv-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  line-height: 1.5;
}

.cv-header-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-raised);
}
.cv-header-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cv-header-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 6px;
  line-height: 1.3;
}

.cv-masthead {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cv-masthead__name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-top: 14px;
}
.cv-masthead__role {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--orange);
  line-height: 1.4;
}

.cv-proof-strip {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cv-proof-strip__note {
  grid-column: 1 / -1;
}
.cv-proof-strip__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cv-proof-strip__img {
  aspect-ratio: 16 / 10;
  border: 0.5px solid var(--border);
  overflow: hidden;
  background: var(--bg-raised);
}
.cv-proof-strip__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cv-proof-strip figcaption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .cv-proof-strip {
    grid-template-columns: 1fr;
  }
}

/* Career page hero (full-bleed photo banner) */
.cv-hero {
  width: 100%;
  height: clamp(460px, 78vh, 780px);
  margin-top: var(--nav-height);
  position: relative;
  /* Portrait photo shown whole (no cropping, no upscaling) on the right,
     with a blurred copy of it filling the rest of the banner */
  background-image: url("/assets/photos/career/hero-riso-crop.jpg"), url("/assets/photos/career/hero-riso-blur.jpg");
  background-size: contain, cover;
  background-position: 82% center, center;
  background-repeat: no-repeat, no-repeat;
  background-color: #1a1f24;
  overflow: hidden;
}
.cv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,8,0.30) 0%, rgba(10,10,8,0.10) 40%, rgba(10,10,8,0.78) 100%);
}
.cv-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cv-hero__title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}
.cv-hero__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin: 0 0 10px;
  line-height: 1.5;
}
.cv-hero__caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

body.career-page .subpage-main {
  padding-top: 40px;
}

.cv-proof-strip__note {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .cv-hero {
    height: 300px;
  }
  .cv-hero__title {
    font-size: 30px;
  }
  .cv-hero__quote {
    font-size: 14px;
  }
}

/* ─── Hobbies & DIY section ──────────────────────────────────────── */
.section--hobbies {
  align-items: flex-start;
  justify-content: flex-start;
}

.hobbies-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.hobbies-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hobbies-col__heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hobby-card {
  border: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hobby-card:hover {
  border-color: rgba(216, 90, 48, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hobby-card__img {
  height: 130px;
  background: var(--bg-raised);
  flex-shrink: 0;
}

.hobby-card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.hobby-card__title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.hobby-card__desc {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hobby-card__more {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  opacity: 0.5;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ─── Life Goals section ─────────────────────────────────────────── */
.section--goals {
  align-items: flex-start;
  justify-content: flex-start;
  min-height: unset;
  padding-bottom: 80px;
}

.goals-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.goals-wrap__heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
}

.goals-list {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--border);
}

.goal-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 0.5px solid var(--border);
  transition: background 0.15s;
}

.goal-item:last-child { border-bottom: none; }
.goal-item:hover { background: var(--bg-raised); }

.goal-item__check {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-top: 2px;
}

.goal-item__title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text);
  line-height: 1.4;
}

/* ─── Friends & Family section ───────────────────────────────────── */
.section--friends {
  min-height: unset;
  padding: 80px 24px;
  border-bottom: 0.5px solid var(--border);
}

.friends-wrap {
  max-width: 600px;
  text-align: center;
}

.friends-placeholder {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ─── Photos section ─────────────────────────────────────────────── */
.section--photos {
  align-items: flex-start;
  justify-content: flex-start;
}

.photos {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.photos__heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
}

.photo-grid {
  columns: 3;
  column-gap: 6px;
}

.photo-placeholder {
  display: block;
  break-inside: avoid;
  height: 220px;
  background: var(--bg-raised);
  margin-bottom: 6px;
  position: relative;
  cursor: pointer;
  transition: filter 0.2s;
  text-decoration: none;
}

.photo-placeholder:hover { filter: brightness(0.94); }

.photo-placeholder__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.5;
  pointer-events: none;
}

/* ─── Contact section ────────────────────────────────────────────── */
.section--contact {
  align-items: flex-start;
  justify-content: flex-start;
  min-height: unset;
  padding-bottom: 0;
}

.contact {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.contact__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.contact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  border: 0.5px solid var(--border);
  padding: 0.9rem 1rem;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.contact__btn:hover {
  color: var(--text);
  border-color: rgba(216, 90, 48, 0.6);
  background: var(--bg-raised);
}

.contact__btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.contact__list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
  gap: 16px;
}

.contact__row:first-child { border-top: 0.5px solid var(--border); }

.contact__row-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  min-width: 80px;
}

.contact__row-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.contact__row-link:hover { color: var(--orange); }

.contact__row-link--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  padding: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.5;
  border-top: 0.5px solid var(--border);
}


/* ─── Travel & Hitchhiking subpages ─────────────────────────────── */
.subpage-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.page-map {
  width: 100%;
  height: 500px;
  position: relative;
}

.page-map .maplibregl-ctrl-logo,
.page-map .maplibregl-ctrl-attrib { display: none !important; }

.page-map .maplibregl-canvas { outline: none; }

.page-stat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 0.5px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.page-stat-sep { color: var(--border); }

/* Travel page: map + country accordion side by side */
.travel-map-countries {
  display: flex;
}

.travel-map-countries__map {
  flex: 0 0 75%;
  min-width: 0;
}

.travel-map-countries__map .page-map {
  height: 500px;
}

.travel-map-countries__accordion {
  flex: 0 0 25%;
  min-width: 0;
  height: 500px;
  overflow-y: auto;
  border: 0.5px solid var(--border);
  border-left: none;
}

.travel-map-countries__accordion .continent-list {
  border: none;
}

.travel-map-countries__accordion .country-item {
  width: 100%;
  min-width: 0;
}

/* Country list fills remaining accordion height after all continent headers */
.travel-map-countries__accordion .continent.is-open .continent__body {
  max-height: var(--country-list-max-height, 200px);
  overflow-y: auto;
}

/* ─── Trip detail pages ──────────────────────────────────────────── */
.trip-page {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 48px) 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.trip-back {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s;
  margin-bottom: -32px;
}

.trip-back:hover { color: var(--orange); }

.trip-hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.trip-hero__year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trip-hero__title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.15;
  margin-top: 6px;
}

.trip-hero__tagline {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 2px;
}

.trip-hero__img {
  width: 100%;
  height: 600px;
  display: block;
  object-fit: cover;
  background: var(--bg-raised);
}

.trip-hero__img--zoom-out {
  transform: scale(0.7);
  transform-origin: center center;
}

/* Nav dropdown */
.nav__has-dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fafaf7;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  min-width: 260px;
  padding: 6px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
}

.nav__has-dropdown:hover .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.1s;
}

.nav__dropdown-link:hover {
  background: #f0f0eb;
}

/* Fullscreen hero variant (tarifa-style) */
.trip-hero--fullscreen {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 100vh;
  margin-top: calc(-1 * var(--nav-height) - 48px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trip-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.trip-hero--fullscreen .trip-hero__meta {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding: 0 24px;
  max-width: 680px;
}

.trip-hero--fullscreen .trip-hero__year,
.trip-hero--fullscreen .trip-hero__title,
.trip-hero--fullscreen .trip-hero__tagline {
  color: #fff;
}

.trip-back--hero {
  position: absolute;
  top: calc(var(--nav-height) + 20px);
  left: 24px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
}

.trip-back--hero:hover { color: #fff; }

.trip-overview {
  border-top: 0.5px solid var(--border);
  padding-top: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.trip-overview p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
}

.trip-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.trip-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 0.5px solid var(--border);
  padding: 32px 0;
}

.trip-section:last-child {
  border-bottom: 0.5px solid var(--border);
}

/* Inline photo inside a story section */
.trip-section__photo-link {
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}

.trip-section__photo-link img {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.trip-section__photo-link:hover img { opacity: 0.88; }

/* Row of 2–3 photos side by side inside a story section */
.trip-section__photo-row {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.trip-section__photo-row .trip-section__photo-link {
  flex: 1;
  min-width: 0;
  margin-top: 0;
}

/* Real photo items inside .photo-grid (replaces placeholders) */
.photo-real {
  display: block;
  break-inside: avoid;
  margin-bottom: 6px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}

.photo-real img {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.photo-real:hover img { opacity: 0.88; }

/* Fixed-height side-by-side row (Day 1 — Fynshav) */
.trip-section__photo-row--h300 img {
  height: 300px;
  object-fit: cover;
  width: 100%;
}

/* Single centered photo (Moose) */
.trip-section__photo-link--centered {
  max-width: 400px;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

/* 4-column single-row grid (Lofoten) */
.trip-section__photo-row--4col img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

/* Constrained pair, 66% width centered (Midnight fishing, Porsche) */
.trip-section__photo-row--constrained {
  max-width: 66%;
  margin-left: auto;
  margin-right: auto;
}
.trip-section__photo-row--constrained img {
  height: 280px;
  object-fit: cover;
  width: 100%;
}

/* Fixed-height 3-col grid (Days 10–15) */
.photo-grid--trip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}
.photo-grid--trip .photo-real img {
  height: 240px;
  object-fit: cover;
  width: 100%;
}

.trip-section__heading {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.trip-section__text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ─── Full-width background map + scrolling text overlay ─────────── */
.trip-story {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
}

.trip-map-bg {
  grid-area: 1 / 1;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  align-self: start;
  width: 100%;
  z-index: 0;
}

#nordkapp-bg-map,
#tarifa-bg-map,
#lofoten-bg-map,
#nz-bg-map,
#sa-bg-map,
#cappadocia-bg-map,
#cph-walk-map {
  width: 100%;
  height: 100%;
}

.trip-text-overlay {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  padding: 3rem 1rem 6rem;
}

.trip-story .trip-section {
  background: transparent;
  backdrop-filter: none;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  border-top: none;
}

.trip-story .trip-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .trip-story {
    display: block;
    width: 100%;
    left: 0;
    transform: none;
  }
  .trip-map-bg {
    display: none;
  }
  .trip-text-overlay {
    padding: 0;
  }
  .trip-story .trip-section {
    background: transparent;
    border-radius: 0;
    padding: 32px 0;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    border-top: 0.5px solid var(--border);
    margin-bottom: 0;
  }
  .trip-story .trip-section:last-child {
    border-bottom: 0.5px solid var(--border);
  }
}

.trip-placeholder-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.trip-photos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trip-photos__heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links  { display: none; }
  .nav__burger { display: flex; }

  .hero__name     { font-size: 38px; }
  .hero__subtitle { font-size: 15px; }

  .maps-strip     { flex-direction: column; }
  .maps-strip__panel + .maps-strip__panel { border-left: none; border-top: 0.5px solid var(--border); }
  .maps-strip__map { height: 260px; }

  .home-trips     { padding: 40px 16px 60px; }

  .hobbies-wrap   { grid-template-columns: 1fr; gap: 40px; }
  .hobby-grid     { grid-template-columns: 1fr; }

  .trip-grid               { grid-template-columns: 1fr; }
  .hitching__featured-grid { grid-template-columns: 1fr; }
  .contact__grid--3 { grid-template-columns: 1fr; }

  .hitch-table-header { display: none; }
  .hitch-row {
    grid-template-columns: 45px 1fr 65px;
  }
  .hitch-row__duration,
  .hitch-row__more { display: none; }

  .trip-hero__title { font-size: 26px; }

  .travel-map-countries { flex-direction: column; }
  .travel-map-countries__map { flex: none; width: 100%; }
  .travel-map-countries__map .page-map { height: 300px; }
  .travel-map-countries__accordion { flex: none; width: 100%; height: 340px; border-left: 0.5px solid var(--border); border-top: none; }
}

/* ─── Contact bar ────────────────────────────────────────────────── */
body { padding-bottom: 56px; }

.contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 0.5px solid var(--border);
  z-index: 99;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
}

.contact-bar__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-bar__link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.contact-bar__link:hover { color: var(--orange); }

.contact-bar__sep {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0, 0, 0, 0.2);
}

.contact-bar__right {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.6;
  opacity: 0.7;
}

.contact-bar__right p {
  margin: 0;
}

@media (max-width: 600px) {
  .contact-bar__right { display: none; }
  .contact-bar {
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .contact-bar.is-bottom {
    transform: translateY(0);
  }
}

/* ─── Map panel interaction ──────────────────────────────────────── */
.t-map-panel {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
  overflow: hidden;
}
.t-map-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.t-map-canvas {
  width: 100%;
  height: 55vh;
}
.t-map-bar {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 10px 16px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.map-click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.map-click-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.map-click-overlay:hover .map-click-hint { opacity: 1; }

.map-explore-btn {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px;
  text-decoration: none;
  border-top: 0.5px solid var(--border);
  transition: color 0.15s;
}
.map-explore-btn:hover { color: var(--orange); }

/* ─── Copenhagen walk page ──────────────────────────────────────── */

/* Solid-color hero variant for trip pages without a photo yet */
.trip-hero--tint {
  background: linear-gradient(150deg, #1c5f82 0%, #103d54 100%);
}

/* Legible text cards over a real (colorful) street-tile basemap,
   as opposed to the blank/topojson background used on the long-distance
   trip maps, where the transparent card already reads fine. */
.trip-story--tiled .trip-section {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 0.5px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .trip-story--tiled .trip-section {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
  }
}

/* Small numbered badge echoing the map markers, next to each stop heading */
.trip-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 8px;
  transform: translateY(-1px);
}

.trip-section__heading--walk {
  display: flex;
  align-items: center;
}

/* Small mono caption under the map for map-specific context */
.trip-map-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: center;
  margin-top: -1.5rem;
  padding-bottom: 1rem;
  opacity: 0.75;
}

/* ─── Side card + filmstrip trip layout (.trip-story--side) ─────────────
   Desktop only. The story is a narrow card column on the left, the map
   zooms to the active section (js/trip-side.js), and that section's photos
   show as a filmstrip over the free part of the map. Phones keep the
   regular stacked layout with inline photos. */
.ts-strip { display: none; }

@media (min-width: 769px) {
  .trip-story--side .trip-text-overlay {
    padding: 3rem 1rem 55vh clamp(20px, 4vw, 64px);
    pointer-events: none;
  }
  .trip-story--side .trip-section {
    pointer-events: auto;
    max-width: 440px;
    margin-left: 0;
    margin-right: 0;
    background: rgba(250, 250, 247, 0.93);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 0.5px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: background-color 0.35s ease;
  }
  /* inactive cards: solid background, faded text (reads well on the dark satellite map) */
  .trip-story--side .trip-section > * { transition: opacity 0.35s ease; }
  .trip-story--side .trip-section:not(.is-active) > * { opacity: 0.45; }
  .trip-story--side .trip-section:not(.is-active) { background: rgba(250, 250, 247, 0.82); }
  .trip-story--side .trip-section__heading { font-size: 21px; }
  .trip-story--side .trip-section__text { font-size: 15px; }
  .trip-story--side .ts-photo-source { display: none !important; }
  /* photo-heavy sections (js/trip-side.js): wrapper carries the spacing */
  .trip-story--side .ts-step { margin-bottom: 2rem; }
  .trip-story--side .ts-step > .trip-section { margin-bottom: 0; }

  .trip-story--side .ts-strip {
    display: flex;
    gap: 10px;
    position: absolute;
    z-index: 2;
    left: calc(clamp(20px, 4vw, 64px) + 480px);
    right: 24px;
    bottom: calc(var(--ts-contact-bar, 56px) + 20px);  /* clear the fixed contact bar */
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .trip-story--side .ts-strip::-webkit-scrollbar { display: none; }
  .ts-strip__item {
    flex: none;
    margin: 0;
    padding: 6px;
    border: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    cursor: zoom-in;
    opacity: 0;
    animation: tsStripIn 0.4s ease forwards;   /* fade only: photos never move up or down */
    transition: box-shadow 0.2s ease;
  }
  .ts-strip__item:first-child { margin-left: auto; }
  .ts-strip__item:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28); }
  .ts-strip__item:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
  .ts-strip__item img {
    display: block;
    height: min(30vh, 240px);
    width: auto;
    max-width: 380px;
    object-fit: cover;
    border-radius: 3px;
  }
  @keyframes tsStripIn { to { opacity: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  .ts-strip__item { animation: none; opacity: 1; transform: none; }
  .trip-story--side .trip-section { transition: none; }
}

/* ─── Upcoming trip card (Hitchhiking page) ───────────────────────────── */
.trip-card--upcoming {
  grid-column: 1 / -1;
  min-height: 300px;
  background: linear-gradient(150deg, #1c5f82 0%, #103d54 100%);
  overflow: hidden;
}
.trip-card--upcoming .trip-card__route {
  position: absolute;
  top: 18px;
  right: 3%;
  width: 60%;
  height: 72%;
  pointer-events: none;
}
.trip-card--upcoming .trip-card__route path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 2.5;
  stroke-dasharray: 8 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trip-card--upcoming .trip-card__route circle { fill: #fff; }
.trip-card--upcoming .trip-card__route text {
  fill: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.trip-card--upcoming .trip-card__body { position: relative; z-index: 1; max-width: 640px; }
@media (max-width: 720px) {
  .trip-card--upcoming { min-height: 340px; }
  .trip-card--upcoming .trip-card__route { left: 4%; right: auto; width: 92%; height: 58%; }
  .trip-card--upcoming .trip-card__route text { font-size: 22px; }
  .trip-card--upcoming .trip-card__route text:nth-of-type(2),
  .trip-card--upcoming .trip-card__route text:nth-of-type(4),
  .trip-card--upcoming .trip-card__route text:nth-of-type(6) { display: none; }
}

/* ─── Copenhagen guide ─────────────────────────────────────────────── */
.guide-intro { font-family: var(--font-body); font-size: 16px; color: var(--text-muted); line-height: 1.7; max-width: 640px; margin: 0 0 1.75rem; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 2rem; }
.guide-toc a { font-family: var(--font-body); font-size: 13px; color: var(--text); text-decoration: none; border: 0.5px solid var(--border); border-radius: 999px; padding: 6px 12px; transition: color .15s, border-color .15s; }
.guide-toc a:hover { color: var(--orange); border-color: rgba(216, 90, 48, 0.6); }
.guide-walk { display: grid; gap: 4px; margin: 0 0 3rem; padding: 20px 22px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(150deg, #1c5f82 0%, #103d54 100%); color: #fff; }
.guide-walk__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.guide-walk__title { font-family: var(--font-serif); font-size: 22px; font-weight: 700; }
.guide-walk__desc { font-family: var(--font-body); font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.6; max-width: 60ch; }
.guide-walk:hover .guide-walk__title { text-decoration: underline; text-underline-offset: 4px; }
.guide-section { scroll-margin-top: 90px; }
.guide-steps, .guide-list { font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: var(--text); padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: 10px; max-width: 70ch; }
.guide-steps strong, .guide-list strong { font-weight: 600; color: var(--text); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0.75rem 0 1.25rem; }
.guide-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guide-grid, .guide-grid--2 { grid-template-columns: 1fr; } }
.guide-section .about__subheading { margin-bottom: 0.6rem; }
.guide-card { background: var(--bg-raised, #fff); border: 0.5px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.guide-card h4 { font-family: var(--font-serif); font-size: 17px; margin: 0; }
.guide-card p { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.guide-card__tag { margin-top: auto; align-self: flex-start; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--orange); }
.guide-note { font-family: var(--font-body); font-size: 12.5px; color: var(--text-muted); margin: 0.5rem 0 0; }
.guide-note a { color: inherit; }
/* Draft questions for Johannes: visible locally, removed before publishing */
.draft-note { display: inline-block; background: #fff3b0; color: #6b5200; font-family: var(--font-body); font-size: 13px; padding: 2px 8px; border-radius: 4px; margin-top: 4px; }

.guide-card--wide { grid-column: 1 / -1; }
.guide-card p a { color: var(--orange); }

.guide-plan { margin: 1.5rem 0 0; padding: 18px 20px 8px; border: 0.5px solid var(--border); border-left: 3px solid var(--orange); border-radius: 10px; background: var(--bg-raised, #fff); }
.guide-plan h4 { font-family: var(--font-serif); font-size: 19px; margin: 0 0 6px; }
.guide-plan > p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.65; color: var(--text-muted); margin: 0 0 12px; max-width: 70ch; }
.guide-plan__day { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin: 14px 0 8px; }

/* ─── Hitchhiking guide ─────────────────────────────────────────────── */
.guide-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 2rem; }
.guide-stat { background: var(--bg-raised, #fff); border: 0.5px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.guide-stat__num { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.1; }
.guide-stat__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 700px) { .guide-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .guide-stat__num { font-size: 22px; } }
.guide-table-wrap { overflow-x: auto; margin: 0.5rem 0 1rem; border: 0.5px solid var(--border); border-radius: 10px; }
.guide-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 14px; line-height: 1.5; }
.guide-table th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-weight: 400; text-align: left; padding: 10px 14px; background: var(--bg-raised, #fff); }
.guide-table td { padding: 10px 14px; border-top: 0.5px solid var(--border); vertical-align: top; color: var(--text); }
.guide-table td:first-child { font-weight: 500; white-space: nowrap; }
.guide-table td:last-child { color: var(--orange); }
@media (max-width: 560px) { .guide-table td:first-child { white-space: normal; } .guide-table { font-size: 13px; } }
.guide-section .about__body a, .guide-list a { color: var(--orange); }

/* ─── Career page: fixed full-height photo panel (left) ─────────── */
body.career-page { --cv-panel-w: clamp(300px, 28vw, 400px); }

.cv-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--cv-panel-w);
  z-index: 101;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(180deg, #4a2826 0%, #4a2826 56%, #6b2320 86%, #7d231e 100%);
}
.cv-panel__photo {
  position: relative;
  flex: 0 0 54%;
  overflow: hidden;
  background: #ffffff;
}
.cv-panel__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}
.cv-panel__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(74, 40, 38, 0) 40%,
    rgba(74, 40, 38, 0.55) 72%,
    #4a2826 100%);
}
.cv-panel__body {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-top: -90px;
  padding: 0 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.cv-panel__name {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.02;
  margin: 0;
  color: #ffffff;
}
.cv-panel__role {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
.cv-panel__facts {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cv-panel__facts li {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.4;
  color: #ffffff;
}
.cv-panel__facts span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}
.cv-panel__links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cv-panel__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.cv-panel__links a:hover { color: #ffffff; text-decoration: underline; }

/* shift everything else right of the panel */
body.career-page { padding-left: var(--cv-panel-w); }
body.career-page .nav,
body.career-page .contact-bar { left: var(--cv-panel-w); }
body.career-page .cv-layout { grid-template-columns: 1fr; }

@media (max-width: 740px) {
  body.career-page { padding-left: 0; }
  body.career-page .nav,
  body.career-page .contact-bar { left: 0; }
  .cv-panel {
    position: relative;
    width: 100%;
    bottom: auto;
    z-index: 1;
    margin-top: var(--nav-height);
  }
  .cv-panel__photo { flex: none; height: 62vh; }
  .cv-panel__body { overflow: visible; padding-bottom: 36px; }
  .cv-panel__links { margin-top: 8px; }
  body.career-page .cv-hero { margin-top: 0; }
}

/* Career page: contact details live in the red panel, so no bottom bar */
body.career-page .contact-bar { display: none; }


/* ─── Phones: trip pages keep the live map as a sticky band on top ──────
   The map follows the section being read (js/trip-side.js frames it), and
   each section's photos become a swipeable row instead of a thumbnail grid. */
.ts-swipe, .ts-swipe__hint { display: none; }
@media (max-width: 768px) {
  .trip-story .trip-map-bg {
    display: block;
    position: sticky;
    top: var(--nav-height);
    height: 40vh;
    height: 40svh;
    z-index: 2;
    pointer-events: none;
    margin: 0 -24px;
    width: calc(100% + 48px);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.35);
  }
  .trip-story .trip-map-bg::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 28px;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.25));
    pointer-events: none;
  }
  .trip-story .ts-strip { display: none !important; }
  .trip-story--side .ts-photo-source { display: none !important; }
  .trip-story--side .trip-section { position: relative; z-index: 1; }

  .ts-swipe__hint {
    display: block;
    margin: 6px 0 -6px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .ts-swipe {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 4px -24px 0;
    padding: 0 24px 4px;
    scroll-padding: 0 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ts-swipe::-webkit-scrollbar { display: none; }
  .ts-swipe__item {
    flex: none;
    width: 74vw;
    aspect-ratio: 3 / 4;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-raised);
    scroll-snap-align: start;
    cursor: zoom-in;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }
  .ts-swipe__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ts-swipe--single .ts-swipe__item { width: 100%; aspect-ratio: 4 / 3; }
}

/* ─── Phones: timeline rows stack instead of squeezing ─────────────── */
@media (max-width: 600px) {
  .timeline__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    align-items: start;
    padding: 16px 14px;
  }
  .timeline__years { width: auto; grid-column: 1; grid-row: 1; }
  .timeline__row > .timeline__tag { grid-column: 2; grid-row: 1; }
  .timeline__body { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
}

/* ─── Phones: page title above its quote, bigger title ─────────────── */
@media (max-width: 600px) {
  .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-header__title { font-size: 36px; }
  .page-header__quote { text-align: left; font-size: 17px; }
}

/* Tablets: the fixed red panel leaves a narrower column, so stack the career timeline */
@media (max-width: 1100px) {
  body.career-page .timeline__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    align-items: start;
    padding: 16px 14px;
  }
  body.career-page .timeline__years { width: auto; grid-column: 1; grid-row: 1; }
  body.career-page .timeline__row > .timeline__tag { grid-column: 2; grid-row: 1; }
  body.career-page .timeline__body { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
}
@media (max-width: 1000px) {
  body.career-page .cv-skills__grid { grid-template-columns: 1fr; }
}

/* Tablets: Sports and DIY stack, cards stay two across so they are wide enough to read */
@media (min-width: 769px) and (max-width: 1024px) {
  .hobbies-wrap { grid-template-columns: 1fr; gap: 48px; }
  .hobby-grid { grid-template-columns: repeat(2, 1fr); }
  .hobby-card { min-height: 320px; }
}

/* Hitchhiking page: guide callout between the headline and the map */
.guide-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 0.5px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  background: var(--bg-raised);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.guide-callout:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); }
.guide-callout__text { display: flex; flex-direction: column; gap: 4px; }
.guide-callout__title { font-family: var(--font-serif); font-size: 18px; font-weight: 700; }
.guide-callout__desc { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.guide-callout__btn {
  flex: none;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 0.65rem 1.1rem;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  transition: color 0.15s, border-color 0.15s;
}
.guide-callout:hover .guide-callout__btn { color: var(--orange); border-color: rgba(216, 90, 48, 0.6); }
@media (max-width: 600px) {
  .guide-callout { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Last menu item sits at the right edge: open its dropdown leftwards */
.nav__links > li.nav__has-dropdown:last-child .nav__dropdown { left: auto; right: 0; transform: translateY(-4px); }
.nav__links > li.nav__has-dropdown:last-child:hover .nav__dropdown { transform: translateY(0); }

/* Current section in the menu: dark text with a thin orange underline */
.nav__link.is-active {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 7px;
}
.nav__overlay-link.is-active { color: var(--orange); }

/* Career page: the bar starts right of the red panel, but the menu links keep
   exactly the same right-hand position as on every other page */
@media (min-width: 741px) {
  body.career-page .nav__inner {
    max-width: none;
    margin: 0;
    padding-right: calc(24px + max(0px, (100vw - 1400px) / 2));
  }
}

/* ─── Corner rule for the whole site ─────────────────────────────────
   Anything that shows a photo or a map has sharp corners (like the
   Career / Hobbies / Copenhagen doors on the homepage). Text-only boxes
   (story cards, callouts, guide boxes, buttons, menus) keep round corners. */
.trip-card,
.trip-story-panel__text,
.t-card,
.t-card::before,
.hobby-card,
.t-map-panel,
.trip-section__photo-link,
.trip-section__photo-link img,
.photo-real,
.photo-real img,
.ts-strip__item,
.ts-strip__item img,
.ts-swipe__item,
.cv-proof-strip img,
.cv-proof-strip figure,
a.glightbox,
a.glightbox img,
.trip-section img,
a:has(> img),
div:not(.trip-section):not(.guide-card):not(.guide-plan):has(> a.glightbox) {
  border-radius: 0 !important;
}

/* ─── Language switch (EN / DE) ──────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: -18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.lang-switch__opt {
  color: var(--text-muted);
  padding: 3px 7px;
  line-height: 1;
  transition: color 0.15s;
}
.lang-switch__opt + .lang-switch__opt { border-left: 0.5px solid var(--border); }
.lang-switch__opt:hover { color: var(--orange); }
.lang-switch__opt.is-current { color: var(--text); font-weight: 700; }
.lang-switch--overlay { margin: 12px 0 0; font-size: 14px; }
.lang-switch--overlay .lang-switch__opt { padding: 6px 12px; }
@media (max-width: 768px) {
  .nav .lang-switch { margin-left: auto; }
  .nav .nav__burger { margin-left: 10px; }
}

/* ─── Menu hover icons (added by js/nav-active.js) ──────────────── */
.nav__link--ico { position: relative; }
.nav-ico {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 17px;
  height: 17px;
  margin: 0 0 1px -8.5px;
  color: var(--orange);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.nav-ico svg { display: block; width: 100%; height: 100%; overflow: visible; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .nav__link--ico:hover .nav-ico,
  .nav__link--ico:focus-visible .nav-ico { opacity: 1; }

  .nav__link--ico:hover .nav-ico--hammer svg { transform-origin: 17% 83%; animation: navHammer 0.6s cubic-bezier(.3,.6,.4,1) both; }
  .nav__link--ico:hover .nav-ico--thumb svg  { transform-origin: 50% 90%; animation: navThumb 0.55s cubic-bezier(.3,1.6,.5,1) both; }
  .nav__link--ico:hover .nav-ico--plane svg  { animation: navPlane 0.6s cubic-bezier(.2,.8,.3,1) both; }
  .nav__link--ico:hover .nav-ico--gear svg   { animation: navGear 0.8s cubic-bezier(.2,.8,.3,1) both; }
  .nav__link--ico:hover .nav-ico--bike svg   { animation: navBike 0.6s cubic-bezier(.2,.8,.3,1) both; }
  .nav__link--ico:hover .nav-ico--bike .nav-ico__wheel { stroke-dasharray: 3 1.6; }

  /* the word gets a tiny knock when the hammer lands */
  .nav__link--ico:hover:has(.nav-ico--hammer) { animation: navKnock 0.6s both; }
}
@keyframes navHammer {
  0%   { transform: rotate(-60deg); }
  45%  { transform: rotate(18deg); }
  58%  { transform: rotate(4deg); }
  72%  { transform: rotate(12deg); }
  100% { transform: rotate(8deg); }
}
@keyframes navKnock {
  0%, 40% { transform: none; }
  48%     { transform: translateY(1.5px); }
  60%     { transform: none; }
}
@keyframes navThumb {
  0%   { transform: translateY(7px) scale(0.5); }
  60%  { transform: translateY(0) scale(1.1); }
  78%  { transform: rotate(-14deg); }
  100% { transform: rotate(0); }
}
@keyframes navPlane {
  0%   { transform: translate(-22px, 6px) rotate(-10deg); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: none; }
}
@keyframes navGear {
  0%   { transform: rotate(-120deg) scale(0.6); }
  100% { transform: rotate(0) scale(1); }
}
@keyframes navBike {
  0%   { transform: translateX(-24px); opacity: 0; }
  30%  { opacity: 1; }
  85%  { transform: translateX(1.5px); }
  100% { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   2026 redesign — "the road"
   Asphalt night + white + motorway-sign blue, route orange as the one
   accent. Headings in Barlow Condensed (road-sign lettering).
   Added last so it overrides the older rules above.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --bg:           #ffffff;
  --bg-raised:    #f1f4f7;
  --bg-secondary: #eef2f6;
  --bg-subtle:    #f1f4f7;
  --night:        #0e1620;
  --night-2:      #172331;
  --sign:         #1d4f91;
  --orange:       #eb5a2b;
  --text:         #141a21;
  --text-muted:   #5b6672;
  --border:       rgba(14, 22, 32, 0.12);
  --font-serif:   'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-mono:    'Barlow', 'DM Sans', sans-serif;
}

body { background: var(--bg); color: var(--text); padding-bottom: 0; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Headings: condensed and big */
.page-header__title, .about__heading, .hitching__heading, .travel__heading,
.hobbies-col__heading, .trip-section__heading, .trip-card__title, .t-card__title,
.t-cards-title, .door__title, .guestbook-subheading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}
.hitching__heading, .travel__heading, .about__heading, .hobbies-col__heading {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.02;
  border-bottom: 0;
  padding-bottom: 0;
}
.trip-card__title { font-size: 26px; line-height: 1.05; }
.trip-section__heading { font-size: 28px; line-height: 1.08; }
.trip-hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 104px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.trip-hero__tagline { font-size: 17px; max-width: 46ch; }
.trip-hero__year, .trip-card__year, .t-card__year {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.page-header__quote { font-family: var(--font-body); font-style: italic; font-weight: 300; }

/* Full-screen photo header for the main pages */
.page-hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: flex;
  align-items: flex-end;
  background-color: var(--night);
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,22,32,0.25) 0%, rgba(14,22,32,0) 30%, rgba(14,22,32,0.15) 55%, rgba(14,22,32,0.82) 100%);
}
.page-hero__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 40px) 24px clamp(40px, 7vh, 80px);
}
.page-hero__back {
  position: absolute; top: calc(var(--nav-height) + 20px);
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
  color: rgba(255,255,255,0.88);
}
.page-hero__back:hover { color: #fff; }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 12vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.page-hero__quote {
  margin: 18px 0 0;
  max-width: 34ch;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
}
.subpage-main.subpage-main--after-hero { padding-top: 72px; max-width: 1200px; }

/* Full-width "night" band inside a page */
.night-band {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(56px, 8vw, 104px) max(24px, calc(50vw - 576px));
  background: var(--night);
  color: #e9eef3;
}
.night-band .hitching__heading { color: #fff; }

/* Big numbers */
.big-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 72px);
  margin-top: 36px;
}
.big-stat { display: flex; flex-direction: column; gap: 4px; }
.big-stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.9;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.big-stat__num--accent { color: var(--orange); }
.big-stat__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  color: rgba(233,238,243,0.7);
}

/* Footer: a real footer at the end of the page instead of a bar stuck to the screen */
.contact-bar {
  position: static;
  background: var(--night);
  border-top: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 28px 24px;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.contact-bar__link { font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: rgba(233,238,243,0.85); letter-spacing: 0.01em; }
.contact-bar__link:hover { color: var(--orange); }
.contact-bar__sep { color: rgba(233,238,243,0.3); }
.contact-bar__right { color: rgba(233,238,243,0.5); font-family: var(--font-mono); font-size: 12px; }
.site-footer { display: none; }

@media (max-width: 768px) {
  .page-hero { min-height: 78vh; }
  .page-hero__title { font-size: clamp(56px, 18vw, 96px); }
  .subpage-main.subpage-main--after-hero { padding-top: 48px; }
  .contact-bar { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.page-hero--hitch { background-position: center 12%; }
@media (max-width: 768px) { .page-hero--hitch { background-position: 74% 10%; } }
.subpage-main--after-hero > .night-band:first-child { margin-top: -72px; }
@media (max-width: 768px) { .subpage-main--after-hero > .night-band:first-child { margin-top: -48px; } }
.night-band .hitching__heading { margin: 0 0 28px; }
.hitch-night__map .hitching__map { border-radius: 4px; overflow: hidden; }
.big-stats--light .big-stat__num { color: var(--text); }
.big-stats--light .big-stat__num--accent { color: var(--orange); }
.big-stats--light .big-stat__label { color: var(--text-muted); }

.guestbook-more[hidden], [hidden] { display: none !important; }
.contact-bar__left { flex-wrap: wrap; row-gap: 8px; }
.contact-bar__right p { white-space: normal; }
@media (max-width: 768px) { .contact-bar__right { text-align: left; } }

.hitch-night .year-btn { background: rgba(14,22,32,0.72); color: rgba(233,238,243,0.85); border-color: rgba(233,238,243,0.18); }
.hitch-night .year-btn:hover, .hitch-night .year-btn.is-on { background: var(--orange); color: #fff; border-color: var(--orange); }
.hitch-night .hitching__map { background: #0e1620; }
.page-hero__back { left: max(24px, calc(50vw - 576px)); }

/* ═══════════════════════════════════════════════════════════════════
   2026 redesign, part 2 — the rest of each page
   Same language as the photo headers: condensed headings, bigger and
   darker body text, no tiny uppercase labels, night blue instead of
   the old maroon.
   ═══════════════════════════════════════════════════════════════════ */

/* Hitchhiking: numbers beside the map, so both are on screen together */
@media (min-width: 1000px) {
  .hitch-night__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 44px;
    align-items: start;
  }
  .hitch-night__grid .big-stats { flex-direction: column; margin-top: 4px; gap: 34px; }
  .hitch-night__grid .big-stat__num { font-size: clamp(60px, 5.6vw, 88px); }
  .hitch-night .hitching__map { height: clamp(460px, calc(100vh - 230px), 720px); }
}

/* Section headings and running text */
.hitching__heading, .travel__heading, .about__heading, .hobbies-col__heading, .work__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
  border-bottom: 0;
  padding-bottom: 0;
}
.night-band .hitching__heading { color: #fff; }
.about__para, .hitching__story p, .trip-overview p {
  font-size: 17px;
  line-height: 1.7;
  color: #2b333c;
}
.about__para { border-bottom: 0; padding: 0 0 18px; }
.trip-overview { border-top: 0; max-width: 700px; }
.trip-overview p { font-size: 19px; }

/* Photo cards (trips, hobbies) */
.trip-card__year {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em; text-transform: none; color: rgba(255,255,255,0.8);
}
.trip-card__title { font-family: var(--font-display); font-size: clamp(22px, 2.1vw, 28px); line-height: 1.05; }
.trip-card__desc { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.88); }
.trip-card__expand-hint, .trip-card__photos-link {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em; text-transform: none; color: rgba(255,255,255,0.85);
}
.trip-card__sep { font-size: 13px; }
.trip-story-panel__text { font-size: 16px; }
.trip-card::before { background: linear-gradient(to top, rgba(14,22,32,0.86) 0%, rgba(14,22,32,0.35) 55%, rgba(14,22,32,0.05) 100%); }

/* Hitchhiking guide teaser: a dark road sign instead of a grey box */
.guide-callout {
  background: var(--night);
  border: 0;
  border-radius: 12px;
  padding: clamp(24px, 3.4vw, 40px);
  color: #e9eef3;
  gap: 28px;
}
.guide-callout:hover { box-shadow: 0 14px 34px rgba(14,22,32,0.25); }
.guide-callout__title { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); line-height: 1; color: #fff; }
.guide-callout__desc { font-size: 17px; line-height: 1.55; color: rgba(233,238,243,0.78); max-width: 52ch; }
.guide-callout__btn {
  background: var(--orange); color: #fff; border: 0; border-radius: 999px;
  font-family: var(--font-mono); font-weight: 600; font-size: 16px;
  padding: 14px 24px; white-space: nowrap;
}
.guide-callout:hover .guide-callout__btn { color: #fff; background: #d94c1f; border-color: transparent; }

/* Hitchhiking: list of every trip */
.trip-list { border: 0; border-top: 2px solid var(--text); }
.hitch-table-header, .hitch-row {
  grid-template-columns: 64px minmax(0, 1fr) 92px 96px 72px;
  gap: 0 20px;
  padding: 16px 8px;
}
.hitch-table-header { background: none; padding-top: 12px; padding-bottom: 12px; }
.hitch-table-header span {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  text-transform: none; letter-spacing: 0.02em; opacity: 1; color: var(--text-muted);
}
.hitch-row:hover { background: var(--bg-raised); }
.hitch-row__year { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: 0; color: var(--text-muted); }
.hitch-row__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0; line-height: 1.1; }
.hitch-row__summary { font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.hitch-row__duration, .hitch-row__distance { font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--text); letter-spacing: 0; }
.hitch-row__more { font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; color: var(--orange); }
@media (max-width: 768px) {
  .hitch-row { grid-template-columns: 48px minmax(0, 1fr) 72px; gap: 0 12px; padding: 14px 0; }
  .hitch-row__year { font-size: 18px; }
  .hitch-row__name { font-size: 19px; }
  .hitch-row__summary { font-size: 14px; }
  .hitch-row__distance { font-size: 14px; }
}

/* Travel: country list beside the world map */
.continent__header { padding: 16px 20px; }
.continent__name {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  text-transform: none; letter-spacing: 0;
}
.continent__count { font-family: var(--font-mono); font-weight: 600; font-size: 15px; }
.travel-map-countries__accordion, .continent { border-color: var(--border); }
.travel-map-countries__map .page-map { border-radius: 12px 0 0 12px; overflow: hidden; }
.travel-map-countries__accordion { border-radius: 0 12px 12px 0; }
@media (max-width: 768px) {
  .travel-map-countries__map .page-map { border-radius: 12px 12px 0 0; }
  .travel-map-countries__accordion { border-radius: 0 0 12px 12px; }
}

/* Trip story pages: the day cards over the map */
.trip-section__heading { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.05; }
.trip-section__text { font-size: 17px; line-height: 1.7; color: #2b333c; }
@media (min-width: 769px) {
  .trip-story--side .trip-section {
    max-width: 480px;
    background: rgba(255,255,255,0.97);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  }
  .trip-story--side .trip-section:not(.is-active) { background: rgba(255,255,255,0.86); }
  .trip-story--side .trip-section__heading { font-size: 28px; }
  .trip-story--side .trip-section__text { font-size: 16px; }
  .trip-story--side .ts-strip { left: calc(clamp(20px, 4vw, 64px) + 520px); }
}

/* Career: night blue instead of maroon, big type */
.cv-panel__name { font-family: var(--font-display); font-size: clamp(44px, 4vw, 60px); line-height: 0.92; }
.cv-panel__role { font-family: var(--font-mono); font-weight: 600; font-size: 17px; }
.cv-panel__facts li { font-size: 15px; }
.cv-panel__facts span {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  text-transform: none; letter-spacing: 0.02em; color: rgba(255,255,255,0.62);
}
.cv-panel__links a { font-family: var(--font-mono); font-weight: 600; font-size: 15px; letter-spacing: 0; }
.cv-panel__links a:hover { color: var(--orange); text-decoration: none; }
.cv-hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 9vw, 140px); line-height: 0.86; margin-bottom: 14px;
}
.cv-hero__quote { font-family: var(--font-body); font-weight: 300; font-size: clamp(16px, 1.6vw, 19px); max-width: 34ch; }
.cv-hero__caption { font-family: var(--font-mono); font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: 0.02em; }
.cv-proof-strip figcaption { font-size: 14px; }
.work__heading { margin-bottom: 18px; }
.timeline { border: 0; border-top: 2px solid var(--text); }
.timeline__row { gap: 28px; padding: 20px 8px; }
.timeline__years { font-family: var(--font-mono); font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--text-muted); width: 170px; }
.timeline__title { font-family: var(--font-display); font-size: 23px; line-height: 1.1; }
.timeline__org { font-size: 16px; color: #2b333c; }
.timeline__note { font-size: 15px; opacity: 1; color: var(--text-muted); }
.timeline__tag {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  text-transform: none; letter-spacing: 0.02em; border-radius: 999px; padding: 5px 12px; border-width: 1px;
}
.timeline__tag--msc, .timeline__tag--bachelor { color: var(--sign); border-color: rgba(29,79,145,0.35); }
.timeline__tag--work, .timeline__tag--team { color: var(--orange); border-color: rgba(235,90,43,0.45); }
.cv-skills .about__subheading {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  text-transform: none; letter-spacing: 0; color: var(--text);
}
.cv-skills .guide-list { font-size: 16px; line-height: 1.6; }
@media (max-width: 768px) {
  .timeline__row { flex-wrap: wrap; gap: 6px 16px; }
  .timeline__years { width: 100%; }
  .cv-hero__title { font-size: clamp(56px, 16vw, 88px); }
}

/* Home: the three doors and the guestbook */
html body .door__eyebrow {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em; text-transform: none; color: rgba(255,255,255,0.8);
}
html body .door__title { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 42px); line-height: 1; }
html body .door__desc { font-size: 16px; }
html body .door__cta { font-family: var(--font-mono); font-weight: 600; font-size: 15px; }
html body .door { border: 0; border-radius: 12px; }

html body .guestbook-subheading { font-family: var(--font-display); font-size: 28px; }
html body .guestbook-name { font-family: var(--font-mono); font-weight: 600; font-size: 16px; }
html body .guestbook-date { font-family: var(--font-mono); font-size: 14px; }
html body .guestbook-text, html body .guestbook-empty { font-size: 16px; color: #2b333c; }
html body .guestbook-input, html body .guestbook-textarea {
  font-size: 16px;               /* 16px stops iPhones from zooming into the field */
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-raised);
}
html body .guestbook-input:focus, html body .guestbook-textarea:focus { border-color: var(--sign); background: #fff; }
html body .guestbook-submit {
  font-family: var(--font-mono); font-weight: 600; font-size: 16px;
  color: #fff; background: var(--orange); border: 0; border-radius: 999px; padding: 13px 28px;
}
html body .guestbook-submit:hover { color: #fff; background: #d94c1f; }
html body .guestbook-submit:disabled { opacity: 0.6; cursor: default; }
html body .guestbook-msg { font-size: 15px; }
html body .guestbook-more { font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--orange); }

/* Hitchhiking header: new crop with sky above the head */
.page-hero--hitch { background-position: center 10%; }
@media (max-width: 768px) { .page-hero--hitch { background-position: 72% 10%; } }

/* Trip page headers: title bottom-left like the main pages, so the
   middle of the photo stays free */
.trip-hero--fullscreen {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;  /* Cappadocia sets flex-start inline: title over the sky */
  height: 100vh;
  height: 100svh;
}
.trip-hero--fullscreen .trip-hero__overlay {
  background: linear-gradient(180deg, rgba(14,22,32,0.28) 0%, rgba(14,22,32,0) 28%, rgba(14,22,32,0) 50%, rgba(14,22,32,0.78) 100%);
}
.trip-hero--fullscreen .trip-hero__meta {
  text-align: left;
  align-items: flex-start;
  box-sizing: border-box;
  max-width: calc(max(24px, 50vw - 576px) + min(600px, 44vw));
  padding: 0 24px clamp(40px, 8vh, 88px) max(24px, calc(50vw - 576px));
  gap: 12px;
}
.trip-hero--fullscreen .trip-hero__title { text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.trip-hero--fullscreen .trip-hero__tagline { max-width: 34ch; }
.trip-back--hero { left: max(24px, calc(50vw - 576px)); font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: rgba(255,255,255,0.88); }

.trip-hero--fullscreen .trip-hero__title { font-size: clamp(46px, 6.2vw, 92px); line-height: 0.95; }
@media (max-width: 768px) { .trip-hero--fullscreen .trip-hero__meta { max-width: none; } }

/* Home: the sideways trip strip */
html body .t-cards-title { font-family: var(--font-display); font-size: clamp(34px, 4.2vw, 54px); }
html body .t-cards-count { font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; color: rgba(255,255,255,0.75); }
html body .t-card__year {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em; text-transform: none; color: rgba(255,255,255,0.82);
}
html body .t-card__title { font-family: var(--font-display); font-size: 26px; line-height: 1.05; }
html body .t-card__desc { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.88); }
html body .t-card::before { background: linear-gradient(to bottom, rgba(14,22,32,0.05) 0%, rgba(14,22,32,0.25) 45%, rgba(14,22,32,0.86) 100%); }
.hitching__follow { font-size: 16px; }
.hitching__follow a { color: var(--orange); }

/* Career header: text on the left, the lab photo filling the right half
   (no blurred grey fill around the photo any more) */
body.career-page .cv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: clamp(480px, 82vh, 820px);
  background: #fff;
  background-image: none;
}
body.career-page .cv-hero::after { display: none; }
.cv-hero__photo { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; background: #e9ecef; }
.cv-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
body.career-page .cv-hero__inner {
  grid-column: 1; grid-row: 1;
  max-width: none; height: 100%; margin: 0;
  padding: 40px clamp(24px, 4vw, 64px) clamp(32px, 6vh, 64px);
  justify-content: flex-end;
}
body.career-page .cv-hero__title { color: #5e2320; text-shadow: none; }
body.career-page .cv-hero__quote { color: #2b333c; font-style: italic; }
body.career-page .cv-hero__caption { color: var(--text-muted); margin-top: 6px; }
@media (max-width: 740px) {
  body.career-page .cv-hero { grid-template-columns: 1fr; height: auto; }
  .cv-hero__photo { grid-column: 1; grid-row: 1; height: 62vh; height: 62svh; }
  body.career-page .cv-hero__inner { grid-column: 1; grid-row: 2; padding: 32px 24px 8px; }
}
