/* A plain "&" in place of Fraunces' curly one (this face only covers the & character) */
@font-face {
  font-family: "Plain Amp";
  src: local("Georgia"), local("Times New Roman"), local("TimesNewRomanPSMT"), local("Noto Serif"), local("DejaVu Serif");
  unicode-range: U+0026;
}:root {
  --cream: #faf7f2;
  --cream-deep: #efe8dd;
  --white: #ffffff;
  --blue: #bcd8ee;       /* light blue */
  --blue-mid: #93bfe0;   /* highlighted countries */
  --blue-soft: #e8f1f8;
  --blue-deep: #3a6a93;  /* readable blue for text accents */
  --ink: #1f2b36;        /* soft navy instead of black */
  --muted: #6b7680;
  --line: rgba(31, 43, 54, 0.14);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --script: "Pinyon Script", cursive;
  --navy: #16243a;       /* dark navy for the name + location */
  --serif: "Plain Amp", "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --pad: clamp(18px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
/* Softer, rounder letterforms on every serif heading and label */
h1, h2, h3, .location, .album-name, .big-link, .marquee span, .wip, figcaption, .map-tip, .scroll-cue {
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
h2 em { font-style: italic; color: var(--blue-deep); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--blue-deep);
  margin: 0 0 12px;
}

/* Underline that draws in on hover */
.nav nav a:not(.pill), .socials a, .footer a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size 0.35s var(--ease), color 0.2s;
  padding-bottom: 2px;
}
.nav nav a:not(.pill):hover, .socials a:hover, .footer a:hover { background-size: 100% 1px; }

/* ---------- NAV ---------- */
/* Floating menu in the top-right corner, so the name block is first on the left */
.nav {
  position: fixed;
  top: 14px;
  right: clamp(12px, 3vw, 40px);
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 5px 5px 5px 20px;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav nav { display: flex; gap: clamp(14px, 2.4vw, 28px); align-items: center; }
.nav nav a { font-size: 0.84rem; font-weight: 500; letter-spacing: 0.02em; }
.pill {
  text-decoration: none;
  background: var(--ink);
  color: var(--cream);
  padding: 7px 18px;
  border-radius: 999px;
  transition: background 0.25s;
}
.pill:hover { background: var(--blue-deep); }

/* ---------- MONOGRAM ---------- */
.nav-mono { display: flex; padding: 0 !important; background: none !important; margin-left: -10px; }
.nav-mono img { width: 34px; height: 34px; transition: transform 0.4s var(--ease); }
.nav-mono:hover img { transform: rotate(-8deg); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-mono { width: 26px; height: 26px; }

/* ---------- HERO ---------- */
.hero { padding: 28px var(--pad) clamp(10px, 1.5vw, 18px); }
.script-name {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  font-size: clamp(3.6rem, 9vw, 7rem);
  line-height: 1.1;
}
.location {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  letter-spacing: 0.04em;
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.location::before { content: ""; width: 40px; height: 1px; background: var(--blue-deep); }
.hero .eyebrow { font-size: 0.9rem; letter-spacing: 0.3em; }
.script-name, .location { color: var(--navy); }
.script-name { color: #1f3f7a; }
.wip { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 0.95rem; margin: 12px 0 0; }
.wip.subtitle { font-size: clamp(1.1rem, 2.2vw, 1.4rem); margin-top: 6px; }

/* ---------- FEATURE PHOTO (photos of Mia) ---------- */
.feature-photo {
  --gutter: var(--pad);
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.feature-photo.in { opacity: 1; transform: none; }
.feature-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: 0 40px 80px -50px rgba(31, 43, 54, 0.55);
}
.feature-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s ease, transform 7s ease;
}
.feature-frame img.active { opacity: 1; transform: scale(1); }
.feature-photo figcaption {
  position: absolute;
  left: calc(var(--gutter) + 24px);
  bottom: 20px;
  color: var(--white);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.feature-dots {
  position: absolute;
  right: calc(var(--gutter) + 24px);
  bottom: 26px;
  display: flex;
  gap: 8px;
}
.feature-dots[hidden] { display: none; }
.feature-frame { cursor: pointer; }
.feature-photo:focus-visible { outline: none; }
.feature-photo:focus-visible .feature-frame { outline: 2px solid var(--blue-deep); outline-offset: 4px; }
.feature-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.25s;
}
.feature-arrow.prev { left: calc(var(--gutter) + 18px); }
.feature-arrow.next { right: calc(var(--gutter) + 18px); }
.feature-photo:hover .feature-arrow, .feature-arrow:focus-visible { opacity: 1; }
.feature-arrow:hover { background: rgba(255, 255, 255, 0.35); }
@media (hover: none) { .feature-arrow { opacity: 0.9; width: 26px; height: 26px; font-size: 0.7rem; } }
.feature-dots button {
  width: 18px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.4s var(--ease), background 0.3s;
}
.feature-dots button.active { width: 36px; background: var(--white); }

/* ---------- ARCH-FRAMED HEADSHOT (About + Contact) ---------- */
.arch { position: relative; width: 100%; max-width: 300px; }
.arch::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: var(--blue);
  border-radius: 999px 999px var(--radius) var(--radius);
  z-index: -1;
  transition: transform 0.6s var(--ease);
}
.arch:hover::before { transform: translate(4px, 4px); }
.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--cream-deep);
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.arch-small { max-width: 130px; margin: 0 auto 32px; }
.arch-small::before { inset: 8px -8px -8px 8px; }

/* ---------- ABOUT ---------- */
.about {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 130px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
}
.about h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 26px; }
.about p { font-family: var(--sans); color: var(--ink); margin: 0 0 16px; max-width: 58ch; font-size: 1rem; line-height: 1.75; }

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track { display: flex; width: max-content; animation: slide 45s linear infinite; }
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  white-space: pre;
  color: var(--ink);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.albums, .map-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--pad);
}
/* Albums and map sit closer together: one gap between them, not two */
.albums { padding-bottom: clamp(48px, 6vw, 80px); }
.map-section { padding-top: clamp(16px, 2vw, 24px); }

/* ---------- CHIPS / BUTTONS ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font: 500 0.82rem var(--sans);
  letter-spacing: 0.02em;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ---------- ALBUM CARDS ---------- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: clamp(30px, 4vw, 48px) clamp(18px, 2.5vw, 30px);
}
.album-card[hidden] { display: none; }
.album-card {
  position: relative;
  z-index: 0;
  display: block;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.album-card.in { opacity: 1; transform: none; }
.album-card:nth-child(2) { transition-delay: 0.06s; }
.album-card:nth-child(3) { transition-delay: 0.12s; }
.album-card:nth-child(4) { transition-delay: 0.18s; }
.album-card:nth-child(5) { transition-delay: 0.24s; }
.album-card:nth-child(6) { transition-delay: 0.3s; }
.album-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: #121212;
  box-shadow: 0 22px 40px -28px rgba(31, 43, 54, 0.6);
  transition: transform 0.6s var(--ease);
}
.album-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
/* A single print peeking out behind each album */
.album-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: var(--white);
  box-shadow: 0 4px 14px -8px rgba(31, 43, 54, 0.3);
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease);
}
.album-card:hover .album-cover { transform: translateY(-6px); }
.album-card:hover .album-cover::before { transform: rotate(-6deg) translate(-6px, 2px); }
.album-meta { display: grid; gap: 2px; margin-top: 16px; }
.album-name { font-family: var(--serif); font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; }
.album-sub { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.album-grid.collections { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.album-grid.collections .album-name { font-size: 1.5rem; }

/* ---------- ALBUM + CONTINENT VIEWS ---------- */
.album-view {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--cream);
  overflow-y: auto;
  padding: 0 var(--pad) 72px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.album-view.open { opacity: 1; transform: none; pointer-events: auto; }
#album-view { z-index: 92; }
.album-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 16px 0;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 1240px;
  margin: 0 auto;
}
.back {
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.back:hover { border-color: var(--ink); transform: translateX(-3px); }
.album-head { max-width: 1240px; margin: clamp(28px, 5vw, 64px) auto 40px; }
.album-head h2 { font-size: clamp(3rem, 8.5vw, 6rem); }
.album-count { color: var(--muted); margin: 10px 0 0; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.album-view .gallery, .album-view .album-grid { max-width: 1240px; margin: 0 auto; }
.album-foot { max-width: 1240px; margin: 48px auto 0; text-align: right; }
.scroll-cue {
  display: inline-block;
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  cursor: pointer;
}

/* ---------- GALLERY TILES ---------- */
.gallery { columns: 3 220px; column-gap: 16px; }
/* Photos pinned side by side at the end of an album (St. John baby photos) */
.gallery-bottom { column-span: all; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.gallery-bottom .tile { margin: 0; }
.tile {
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--cream-deep);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.tile.in { opacity: 1; transform: none; }
.tile.placeholder { background: #121212; cursor: default; }
.tile img { width: 100%; height: auto; transition: transform 0.9s var(--ease); }
.tile:hover img { transform: scale(1.04); }
/* Photos tagged favorite: true */
.fav-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--navy, #16243a);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  pointer-events: none;
}
/* All Time Favorites: which album each photo comes from */
.from-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.92);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 4px 12px -6px rgba(31, 43, 54, 0.4);
  transition: background 0.2s, color 0.2s;
}
.from-chip:hover { background: var(--ink); color: var(--cream); }
.tile .tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: var(--white);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s var(--ease);
}
.tile:hover .tag { opacity: 1; transform: none; }

/* ---------- MAP ---------- */
.map-card {
  position: relative;
  background: var(--blue-soft);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-wrap { min-height: 300px; display: flex; align-items: center; justify-content: center; }
.map-wrap svg { display: block; cursor: grab; touch-action: pan-y; }
.map-wrap svg:active { cursor: grabbing; }
.map-loading { color: var(--muted); font-style: italic; padding: 40px; text-align: center; }
.land { fill: var(--cream); stroke: var(--cream-deep); stroke-width: 0.5; }
.visited {
  fill: var(--blue-mid);
  stroke: var(--white);
  stroke-width: 0.5;
  cursor: pointer;
  transition: fill 0.2s;
  outline: none;
}
.visited.hover, .visited:focus-visible { fill: var(--blue-deep); }
.dot {
  fill: var(--blue-deep);
  stroke: var(--white);
  stroke-width: 1.5;
  cursor: pointer;
  transition: r 0.2s;
}
.dot.hover { r: 6; fill: var(--ink); }
.no-photos { cursor: default; }
.dot.no-photos { fill: var(--blue-mid); }
.dot.home { fill: var(--ink); stroke: var(--blue); stroke-width: 3; }
.dot.home.hover { r: 7.5; }

/* ---------- ALBUM TABS + HOME BADGE ---------- */
.album-tabs { max-width: 1240px; margin: -12px auto 32px; }
.album-tabs[hidden] { display: none; }
.home-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.chip.active .home-badge { background: var(--cream); }
.album-card.is-home .album-cover::before { background: var(--blue); }
.album-card.is-home .album-sub { color: var(--blue-deep); }
/* Tapped place on the map: its cover photo, which opens the album */
.map-preview {
  position: absolute; z-index: 4; width: 170px; padding: 7px 7px 9px;
  background: #fff; border-radius: 10px; text-decoration: none; color: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(31, 43, 54, 0.55);
  animation: preview-in 0.25s var(--ease);
}
.map-preview[hidden] { display: none; }
.map-preview img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.map-preview-name { display: block; margin-top: 7px; font-family: var(--serif); font-size: 1rem; line-height: 1.2; }
.map-preview-go { display: block; margin-top: 2px; font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-deep); }
.map-preview:hover img { filter: brightness(1.05); }
@keyframes preview-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.map-tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.map-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--cream);
}
.map-zoom button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.map-zoom button + button { border-top: 1px solid var(--line); }
.map-zoom button:hover { background: var(--blue-soft); }

/* ---------- CITIES DROPDOWN (in the map buttons row) ---------- */
.city-dd { position: relative; }
.city-dd-btn span { display: inline-block; margin-left: 2px; font-size: 0.8em; transition: transform 0.25s; }
.city-dd-btn[aria-expanded="true"] span { transform: rotate(180deg); }
.city-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: max-content;
  min-width: 280px;
  max-width: calc(100vw - 32px);
  max-height: 340px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px -20px rgba(31, 43, 54, 0.45);
}
.city-list[hidden] { display: none; }
.city-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.city-list a:hover { background: var(--blue-soft); }
.city-name { font-family: var(--serif); font-size: 1rem; font-variation-settings: "SOFT" 100, "WONK" 1; }
.city-country { color: var(--muted); font-size: 0.8rem; }
.city-meta { margin-left: auto; padding-left: 20px; color: var(--muted); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 760px) { .city-list { left: auto; right: 0; } }

/* ---------- ARTICLES ---------- */
.articles {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--pad);
}
.articles-wip {
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
}

/* ---------- ABOUT + CONTACT (bottom of the page) ---------- */
.about-contact {
  position: relative;
  z-index: 0; /* keeps the blue arch shape visible above this background */
  background: var(--blue-soft);
  border-top: 1px solid var(--line);
}
.about-contact .arch { max-width: 300px; }
.about.about-no-photo { grid-template-columns: minmax(0, 720px); justify-content: center; }
.about-rotator img { opacity: 0; transition: opacity 1.4s ease; }
.about-rotator img.active { opacity: 1; }
.contact-block {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.contact-block .socials { justify-content: flex-start; margin-top: 22px; }

/* ---------- CONTACT ---------- */
.contact {
  background: var(--blue-soft);
  padding: clamp(72px, 10vw, 130px) var(--pad);
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact h2 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin-bottom: 28px; }
.big-link {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  word-break: break-all;
  transition: color 0.2s, border-color 0.2s;
}
.big-link:hover { color: var(--blue-deep); border-color: var(--blue-deep); }
.socials { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.socials a { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; }

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px var(--pad);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: 88vw; text-align: center; }
.lightbox img {
  max-height: 82vh;
  max-width: 88vw;
  border-radius: 4px;
  margin: 0 auto;
  box-shadow: 0 40px 80px -40px rgba(31, 43, 54, 0.5);
  transform: scale(0.97);
  transition: transform 0.4s var(--ease);
}
.lightbox.open img { transform: none; }
.lightbox figcaption { font-family: var(--serif); font-style: italic; margin-top: 16px; }
.lb-btn {
  position: absolute;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lb-btn:hover { border-color: var(--ink); background: var(--white); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- MOBILE ---------- */
@media (max-width: 760px) {
  .hero { padding-top: 70px; }
  .script-name { font-size: clamp(3rem, 13vw, 4rem); }
  .location { font-size: 0.95rem; }
  .location::before { width: 20px; }
  .nav { padding-left: 16px; }
  .nav nav { gap: 12px; }
  .nav nav a { font-size: 0.78rem; }
  .pill { padding: 6px 12px; }
  .feature-frame { aspect-ratio: 4 / 5; }
  .feature-frame img { object-position: 50% center; }
  .feature-photo figcaption { left: calc(var(--gutter) + 14px); bottom: 14px; font-size: 0.75rem; }
  .feature-dots { right: calc(var(--gutter) + 14px); bottom: 20px; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about .arch { max-width: 210px; margin: 0 auto; }
  .about .arch::before { inset: 10px -10px -10px 10px; }
  .about p { margin-left: auto; margin-right: auto; }
  .contact-block .socials { justify-content: center; }
  .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  .album-grid.collections { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .album-grid.collections .album-name { font-size: 1.1rem; }
  .album-name { font-size: 0.95rem; }
  .album-sub { font-size: 0.62rem; letter-spacing: 0.1em; }
  .album-meta { margin-top: 12px; }
  .filters { gap: 6px; }
  .chip { padding: 6px 12px; font-size: 0.78rem; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery-bottom { gap: 10px; }
  .tile { margin-bottom: 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tile, .album-card, .feature-photo { opacity: 1; transform: none; }
}

/* ---------- MAP DRILL-DOWN BAR ---------- */
.map-nav {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; pointer-events: none;
}
.map-nav[hidden] { display: none; }
.map-nav > * { pointer-events: auto; }
.map-back, .map-open {
  border: 1px solid var(--line); border-radius: 999px; background: var(--cream);
  padding: 6px 14px; font-size: 0.85rem; cursor: pointer; text-decoration: none; color: var(--ink);
}
.map-back:hover, .map-open:hover { background: var(--white); }
.map-open { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.map-open:hover { background: var(--blue-deep); color: var(--cream); }
.map-here { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink); }

/* ---------- OPENING ANIMATION ---------- */
.intro { display: none; }
html.intro-on { overflow: hidden; }
html.intro-on .intro {
  display: block; position: fixed; inset: 0; z-index: 200; background: #0e1828;
  transition: background-color 1s var(--ease);
}
html.intro-on .hero .script-name { visibility: hidden; }
html.intro-on .nav { opacity: 0; }
.nav { transition: opacity 0.8s var(--ease); }
.intro-photos { position: absolute; inset: 0; transition: opacity 1s var(--ease); }
.intro-photos::after { content: ""; position: absolute; inset: 0; background: rgba(10, 18, 32, 0.42); }
.intro-photos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 0.8s ease, transform 5s ease-out;
}
.intro-photos img.on { opacity: 1; transform: scale(1); }
.intro-name {
  position: fixed; margin: 0; z-index: 2; white-space: nowrap; color: #fff;
  transform-origin: 0 0; clip-path: inset(-20% 100% -20% 0);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.intro-name.writing { transition: clip-path 1.8s cubic-bezier(.45, .05, .35, 1); clip-path: inset(-20% -5% -20% 0); }
html.intro-on .intro.leaving { background-color: transparent; }
.intro.leaving .intro-photos { opacity: 0; }
.intro.leaving .intro-name {
  transition: transform 1.2s var(--ease), color 1.2s var(--ease), text-shadow 1.2s var(--ease);
  transform: none !important; color: #fff;
}

/* ---------- ALBUM OPENING ---------- */
.album-curtain {
  position: fixed; inset: 0; z-index: 96; display: none; background: #0e1828;
  align-items: center; justify-content: center; opacity: 1; transition: opacity 0.7s var(--ease);
}
.album-curtain.show { display: flex; }
.album-curtain.hide { opacity: 0; pointer-events: none; }
.album-curtain img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 0.6s ease, transform 2.6s ease-out;
}
.album-curtain::after { content: ""; position: absolute; inset: 0; background: rgba(10, 18, 32, 0.4); }
.album-curtain.play img { opacity: 1; transform: scale(1); }
.album-curtain-name {
  position: relative; z-index: 2; color: #fff; text-align: center; padding: 0 6vw;
  font-size: clamp(3rem, 10vw, 7.5rem); line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  clip-path: inset(-30% 100% -30% 0);
}
.album-curtain.play .album-curtain-name { transition: clip-path 1.3s cubic-bezier(.45, .05, .35, 1) 0.15s; clip-path: inset(-30% -5% -30% 0); }

/* ---------- TAGLINE UNDER THE NAME ---------- */
.hero-tagline {
  margin: 2px 0 0;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #1f3f7a; /* same navy as the name */
}

/* Slideshow progress dashes hidden (arrows, swipe and tap still work) */
.feature-dots { display: none !important; }

/* Photos tagged small: true show at a smaller size inside the album */
.tile.small { width: 55%; margin-left: auto; margin-right: auto; }

/* ---------- ALBUM INTRO ---------- */
.album-intro {
  max-width: 62ch; margin: 14px 0 0;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.65;
  color: var(--ink);
}
.album-intro[hidden] { display: none; }

/* ---------- FULL-BLEED HERO PHOTO ---------- */
/* The homepage opens on one big edge-to-edge photograph with the name over it */
.hero {
  position: relative; overflow: hidden;
  height: min(92vh, 940px); min-height: 460px;
  padding: 0; margin-bottom: clamp(28px, 4vw, 56px);
  display: flex; align-items: flex-end;
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 20, 38, 0.6) 0%, rgba(8, 20, 38, 0.18) 38%, rgba(8, 20, 38, 0) 60%);
}
/* Name sits low in the bottom-left corner of the photo */
.hero-text { position: relative; z-index: 2; padding: 0 var(--pad) clamp(14px, 2vw, 26px) clamp(16px, 2.2vw, 32px); }
.hero .script-name {
  color: #fff; font-size: clamp(3.4rem, 8.6vw, 7.4rem); line-height: 0.92;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.3);
}
.hero .hero-tagline { color: rgba(255, 255, 255, 0.92); margin-top: 0; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }
.hero-credit {
  position: absolute; right: var(--pad); bottom: 18px; z-index: 2; margin: 0;
  font-family: var(--serif); font-style: italic; font-size: 0.85rem; color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 760px) {
  .hero { height: 78vh; min-height: 420px; }
  .hero .script-name { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero-credit { display: none; }
}

/* Hero photos crossfade from one to the next */
.hero-photos { position: absolute; inset: 0; }
.hero-photos .hero-photo { opacity: 0; transition: opacity 1.6s ease; }
.hero-photos .hero-photo.on { opacity: 1; }
.hero-credit { transition: opacity 0.6s ease; }

/* ---------- WORK-IN-PROGRESS RIBBON (every album page) ---------- */
.album-head { position: relative; }
.wip-ribbon {
  position: absolute; top: 4px; right: 0;
  padding: 5px 14px 5px 18px;
  background: var(--blue); color: var(--ink);
  font-family: var(--sans); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
@media (max-width: 600px) { .wip-ribbon { font-size: 0.58rem; padding: 4px 10px 4px 14px; } }
.wip-ribbon[hidden], .feature-photo[hidden], .map-hold[hidden] { display: none; }
/* On the home page album cards: a curved quarter-circle band on the cover's top-right corner */
.wip-corner {
  position: absolute; top: 0; right: 0; z-index: 2;
  width: 84px; height: auto; aspect-ratio: 1;
  border-top-right-radius: var(--radius);
  pointer-events: none;
}
.wip-corner path { fill: none; stroke: var(--blue); stroke-width: 19; }
.wip-corner text {
  fill: #fff; font-family: var(--sans); font-weight: 700;
  font-size: 8.6px; letter-spacing: 0.5px;
  filter: drop-shadow(0 0 1.2px rgba(31, 43, 54, 0.55)); /* keeps the white letters readable on the light blue */
}
@media (max-width: 600px) { .wip-corner { width: 64px; } }

/* Album opening: several photos can crossfade in the same time */
.album-curtain-photos { position: absolute; inset: 0; }
.album-curtain-photos img { opacity: 0 !important; transition: opacity 0.45s ease, transform 2.6s ease-out !important; }
.album-curtain.play .album-curtain-photos img.on { opacity: 1 !important; transform: scale(1); }

/* On phones the ribbon sits on its own line above the date so they never overlap */
@media (max-width: 600px) {
  .wip-ribbon { position: static; display: inline-block; margin-bottom: 10px; }
}

/* Album intros can have line breaks */
.album-intro { white-space: pre-line; }

/* Favorite beaches line, bottom left of the album */
.album-favorites {
  max-width: 1240px; margin: 56px auto 0; text-align: left;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted);
}
.album-favorites[hidden] { display: none; }

/* Album intro runs across in one line on wide screens */
.album-intro { max-width: none; }
.album-count[hidden] { display: none; }

/* Album descriptions: quiet, refined italic in the same blue as the region label */
.album-intro, .album-favorites {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55; letter-spacing: 0.01em;
  color: var(--blue-deep);
}
/* Album description sits in a small text box on the left, shown in full.
   The box hugs short text (St. John stays one line) and stretches wide for longer text. */
.album-intro {
  width: fit-content; max-width: 100%; margin: 16px 0 0; padding: 8px 16px;
  text-align: left;
  font-size: 0.98rem; line-height: 1.45;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line); border-radius: 10px;
}
.album-intro[hidden] { display: none; }
/* Scrapbook: loose tilted prints at the end of an album (Egypt's Bedouin camp) */
.scrapbook { max-width: 520px; margin: 56px auto 0; padding: 30px 0 10px; border-top: 1px solid var(--line); }
.scrapbook[hidden] { display: none; }
.scrapbook-title {
  margin: 0 0 30px; text-align: center; color: var(--blue-deep);
  font-family: var(--script); font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.3rem); line-height: 1.1;
}
.scrapbook-prints { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; padding: 0 10px; }
.print {
  margin: 0; padding: 8px 8px 10px; background: #fff; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(31, 43, 54, 0.45);
  transform: rotate(var(--tilt, 0deg)); transition: transform 0.4s var(--ease);
}
.print:hover { transform: rotate(0deg) scale(1.03); }
.print img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.print figcaption {
  margin-top: 7px; text-align: center; color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 0.92rem;
}
@media (max-width: 600px) { .scrapbook-prints { gap: 16px 12px; } .print { padding: 6px 6px 8px; } .print figcaption { font-size: 0.8rem; } }
/* Same text box, placed after the photos and lined up with the gallery's left edge */
.album-outro { margin: 48px 0 0 max(0px, calc((100% - 1240px) / 2)); }
