:root {
  --cream: #fbf7f0;
  --cream-deep: #f1e8da;
  --white: #ffffff;
  --blue: #bcd8ee;       /* light blue */
  --blue-mid: #8fbde0;   /* highlighted countries */
  --blue-soft: #e3eff8;
  --blue-deep: #3d6d96;  /* readable blue for text accents */
  --ink: #22303d;        /* soft navy instead of black */
  --muted: #66727d;
  --radius: 18px;
  --script: "Great Vibes", cursive;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::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: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 0 0 8px;
}

/* ---------- NAV ---------- */
/* Floating menu in the top-right corner, so the name block is first on the left */
.nav {
  position: fixed;
  top: 12px;
  right: clamp(12px, 3vw, 40px);
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: rgba(251, 247, 240, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px -12px rgba(34, 48, 61, 0.35);
}
.logo {
  font-family: var(--script);
  font-size: 2.1rem;
  line-height: 1;
  text-decoration: none;
}
.nav nav { display: flex; gap: clamp(12px, 2.6vw, 30px); align-items: center; }
.nav nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav nav a:not(.pill):hover { color: var(--blue-deep); }
.pill {
  background: var(--blue);
  padding: 8px 18px;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s;
}
.pill:hover { background: var(--white); transform: rotate(-3deg); }

/* ---------- HERO ---------- */
.hero {
  margin: 0;
  padding: 28px clamp(16px, 4vw, 48px) clamp(40px, 6vw, 70px);
}

/* ---------- ARCH-FRAMED HEADSHOT (About + Contact) ---------- */
.arch { position: relative; width: 100%; max-width: 300px; }
.arch::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--blue);
  border-radius: 999px 999px var(--radius) var(--radius);
  z-index: -1;
}
.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  border: 8px solid var(--white);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 50px -24px rgba(34, 48, 61, 0.35);
  transform: rotate(2deg);
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.arch-small { max-width: 150px; margin: 0 auto 28px; }
.arch-small::before { inset: 10px -10px -10px 10px; }
.arch-small .frame { border-width: 5px; }

.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-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.04em;
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.location::before { content: ""; width: 36px; height: 2px; background: var(--blue); }
.lede { color: var(--muted); max-width: 38ch; margin: 24px 0 0; font-size: 1.08rem; }
.lede em { font-family: var(--serif); color: var(--blue-deep); }
.wip { color: var(--muted); font-style: italic; font-size: 0.95rem; margin: 14px 0 0; }
.hero-links { display: flex; gap: 24px; margin-top: 28px; }
.scroll-cue {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
  cursor: pointer;
}
.scroll-cue span { display: inline-block; transition: transform 0.2s; }
.scroll-cue:hover span { transform: translateY(4px); }

/* ---------- FEATURE PHOTO ---------- */
.feature-photo {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.feature-photo.in { opacity: 1; transform: none; }
.feature-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 60%;
  border-radius: 28px;
  border: 8px solid var(--white);
  box-shadow: 0 30px 60px -30px rgba(34, 48, 61, 0.45);
}
.feature-photo figcaption {
  position: absolute;
  left: calc(clamp(16px, 4vw, 48px) + 28px);
  bottom: 28px;
  background: var(--white);
  font-family: var(--serif);
  font-style: italic;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* ---------- ABOUT ---------- */
.about {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 100px) clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}
.about h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 24px; }
.about p { color: #3c4854; margin: 0 0 16px; max-width: 56ch; font-size: 1.08rem; }

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--blue);
  overflow: hidden;
  padding: 14px 0;
  transform: rotate(-1.5deg);
  margin: 20px -10px;
}
.marquee-track { display: flex; width: max-content; animation: slide 30s linear infinite; }
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  white-space: pre;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- SECTION HEADINGS ---------- */
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); }

/* ---------- ALBUMS ---------- */
.albums, .map-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 48px);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip.active { background: var(--blue); border-color: var(--blue); }
.chip-count { opacity: 0.55; font-size: 0.8em; margin-left: 2px; }
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: clamp(26px, 3.5vw, 40px) clamp(18px, 2.5vw, 30px);
}
.album-card[hidden] { display: none; }
.album-card {
  display: block;
  text-decoration: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.album-card.in { opacity: 1; transform: none; }
.album-card:nth-child(2) { transition-delay: 0.08s; }
.album-card:nth-child(3) { transition-delay: 0.16s; }
.album-card:nth-child(4) { transition-delay: 0.24s; }
.album-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: #111;
  box-shadow: 0 18px 36px -20px rgba(34, 48, 61, 0.5);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1.2);
}
.album-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
/* The stack of prints peeking out behind each album */
.album-cover::before, .album-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1.2);
}
.album-cover::before { background: var(--blue); transform: rotate(-4deg); }
.album-cover::after { background: var(--white); transform: rotate(3deg); box-shadow: 0 6px 18px -10px rgba(34,48,61,.35); }
.album-card { position: relative; z-index: 0; }
.album-card:hover .album-cover { transform: translateY(-6px) rotate(-1deg); }
.album-card:hover .album-cover::before { transform: rotate(-9deg) translateX(-8px); }
.album-card:hover .album-cover::after { transform: rotate(7deg) translateX(8px); }
.album-meta { display: grid; margin-top: 18px; }
.album-name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }
.album-sub { color: var(--muted); font-size: 0.9rem; }

/* ---------- ALBUM VIEW ---------- */
.album-view {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--cream);
  overflow-y: auto;
  padding: 0 clamp(16px, 4vw, 48px) 60px;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.album-view.open { opacity: 1; transform: none; pointer-events: auto; }
.album-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  background: rgba(251, 247, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 1200px;
  margin: 0 auto;
}
.back {
  background: var(--blue);
  border: 0;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.back:hover { background: var(--white); transform: translateX(-3px); }
.album-head { max-width: 1200px; margin: clamp(24px, 5vw, 56px) auto 32px; }
.album-head h2 { font-size: clamp(3rem, 9vw, 6rem); }
.album-count { color: var(--muted); margin: 8px 0 0; }
.album-view .gallery { max-width: 1200px; margin: 0 auto; }
.album-foot { max-width: 1200px; margin: 40px auto 0; text-align: right; }

/* ---------- GALLERY TILES ---------- */
.gallery { columns: 3 220px; column-gap: 18px; }
.tile {
  break-inside: avoid;
  margin: 0 0 18px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--cream-deep);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tile.in { opacity: 1; transform: none; }
.tile.placeholder { background: #111; cursor: default; }
.tile img { width: 100%; height: auto; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.tile:hover img { transform: scale(1.05); }
.tile .tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
}
.tile:hover .tag { opacity: 1; transform: none; }

/* ---------- MAP ---------- */
.map-card {
  position: relative;
  background: var(--blue-soft);
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: 0 24px 50px -30px rgba(34, 48, 61, 0.35);
}
.map-wrap { min-height: 340px; 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.6; }
.visited {
  fill: var(--blue-mid);
  stroke: var(--white);
  stroke-width: 0.6;
  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); }
.map-tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pin { cursor: pointer; }
.pin circle { fill: var(--blue-deep); stroke: var(--white); stroke-width: 2; }
.pin rect { fill: var(--white); filter: drop-shadow(0 3px 6px rgba(34,48,61,.18)); transition: fill 0.2s; }
.pin text { font: 600 12.5px var(--sans); fill: var(--ink); transition: fill 0.2s; }
.pin.hover rect { fill: var(--blue-deep); }
.pin.hover text { fill: var(--white); }
.map-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.map-zoom button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px -6px rgba(34,48,61,.35);
}
.map-zoom button:hover { background: var(--blue); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  font: 500 0.9rem var(--sans);
  background: var(--white);
  border: 1.5px solid var(--blue);
  color: var(--ink);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.chip:hover { background: var(--blue); }

/* ---------- CONTACT ---------- */
.contact {
  margin: 20px clamp(16px, 4vw, 48px) 0;
  background: var(--blue-soft);
  border-radius: 32px;
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 60px);
  text-align: center;
}
.contact h2 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 28px; }
.contact p { color: var(--muted); margin: 20px 0 28px; }
.big-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3.2vw, 1.8rem);
  text-decoration: none;
  border-bottom: 2px solid var(--blue-deep);
  padding-bottom: 4px;
  word-break: break-all;
  transition: color 0.2s;
}
.big-link:hover { color: var(--blue-deep); }
.socials { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.socials a { text-decoration: none; font-weight: 500; }
.socials a:hover { color: var(--blue-deep); }

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 32px clamp(16px, 4vw, 48px);
  font-size: 0.88rem;
  color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--blue-deep); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.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: 10px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -30px rgba(34, 48, 61, 0.4);
  transform: scale(0.96);
  transition: transform 0.3s;
}
.lightbox.open img { transform: none; }
.lightbox figcaption { font-family: var(--serif); font-style: italic; margin-top: 14px; }
.lb-btn {
  position: absolute;
  background: var(--blue-soft);
  color: var(--ink);
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.lb-btn:hover { background: var(--blue); }
.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: 68px; }
  .script-name { font-size: clamp(3rem, 13vw, 4rem); }
  .location { font-size: 0.98rem; }
  .location::before { width: 18px; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about .arch { max-width: 220px; margin: 0 auto; }
  .about .arch::before { inset: 10px -10px -10px 10px; }
  .about .frame { border-width: 6px; }
  .about p { margin-left: auto; margin-right: auto; }
  .nav nav { gap: 12px; }
  .nav nav a { font-size: 0.82rem; }
  .pill { padding: 6px 12px; }
  .feature-photo img { aspect-ratio: 4 / 5; object-position: 50% center; border-width: 5px; border-radius: 20px; }
  .feature-photo figcaption { left: calc(16px + 18px); bottom: 18px; font-size: 0.85rem; }
  .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
  .album-cover { border-radius: 10px; }
  .album-name { font-size: 0.95rem; }
  .album-sub { font-size: 0.72rem; }
  .album-meta { margin-top: 10px; }
  .filters { gap: 6px; }
  .chip { padding: 6px 12px; font-size: 0.82rem; }
  .gallery { columns: 2; column-gap: 10px; }
  .tile { margin-bottom: 10px; border-radius: 12px; }
  .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; }
}
