/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  --color-bg:        #ffffff;
  --color-surface:   #f5f5f3;
  --color-text:      #111111;
  --color-secondary: #444444;
  --color-muted:     #888888;
  --color-link:      #FF860D;
  --color-link-hover:#cc6a00;
  --color-accent:    #FF860D;
  --color-border:    #e8e8e4;
  --color-header-bg: rgba(255, 255, 255, 0.94);
  --color-footer-bg: #f9f9f9;

  --constellation-bg:      #e8ecf5;
  --star-dot-bg:           rgba(25, 30, 75, 0.72);
  --star-dot-shadow:       rgba(25, 30, 75, 0.22);
  --star-dot-hover:        rgba(10, 15, 50, 1);
  --star-dot-hover-shadow: rgba(10, 15, 50, 0.45);
  --star-label-color:      rgba(15, 20, 60, 0.40);
  --star-label-active:     rgba(15, 20, 60, 0.88);
  --star-hint-color:       rgba(15, 20, 60, 0.18);
  --star-line:             rgba(25, 30, 100, 0.15);
  --star-line-active:      rgba(255, 134, 13, 0.8);
  --star-line-dim:         rgba(25, 30, 100, 0.05);

  --max-prose: 720px;
  --max-wide:  1200px;
  --nav-height: 76px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --ease: 150ms ease;
}

[data-theme="dark"] {
  --color-bg:        #111111;
  --color-surface:   #1a1a1a;
  --color-text:      #f5f5f3;
  --color-secondary: #cccccc;
  --color-muted:     #888888;
  --color-link:      #FF860D;
  --color-link-hover:#ffa040;
  --color-accent:    #FF860D;
  --color-border:    #333333;
  --color-header-bg: rgba(17, 17, 17, 0.94);
  --color-footer-bg: #1a1a1a;

  --constellation-bg:      #05090f;
  --star-dot-bg:           #ffffff;
  --star-dot-shadow:       rgba(255, 255, 255, 0.30);
  --star-dot-hover:        #ffffff;
  --star-dot-hover-shadow: rgba(255, 255, 255, 0.55);
  --star-label-color:      rgba(255, 255, 255, 0.40);
  --star-label-active:     rgba(255, 255, 255, 0.92);
  --star-hint-color:       rgba(255, 255, 255, 0.18);
  --star-line:             rgba(200, 200, 200, 0.18);
  --star-line-active:      rgba(255, 160, 80, 0.88);
  --star-line-dim:         rgba(200, 200, 200, 0.05);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

img {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

p {
  text-align: justify;
}

/* ── Layout helpers ───────────────────────────────────────── */

/* Shared inner constraint used by nav, footer, and all page types */
.site-header-inner,
.site-footer-inner,
.constrained-wide,
.standard-page {
  max-width: var(--max-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.constrained-prose {
  max-width: var(--max-prose);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ── Cover image (full-bleed, above constrained-wide) ─────── */
.page-cover-wrap {
  width: 100%;
  overflow: hidden;
}

.page-cover {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.page-cover[src*="goodreads"],
.page-cover[src*="amazon"] {
  height: 340px;
  object-fit: contain;
  background: var(--color-surface);
}

/* ── Nav ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}

.site-header.transparent-header {
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="dark"] .site-header {
  background: rgba(17, 17, 17, 0.55);
}

[data-theme="dark"] .site-header.transparent-header {
  background: rgba(0, 0, 0, 0.2);
}

.site-header.transparent-header.scrolled {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.site-logo {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity 300ms ease;
}

.logo-white {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Light Mode (default) Logo Logic */
/* By default, standard pages and scrolled headers show the black logo. */
/* Transparent hero headers always show the white logo. */
.site-header.transparent-header .logo-black { opacity: 0 !important; }
.site-header.transparent-header .logo-white { opacity: 1 !important; }

/* Dark Mode Logo Logic */
/* In dark mode, the white logo is ALWAYS shown. */
[data-theme="dark"] .site-header .logo-black { opacity: 0 !important; }
[data-theme="dark"] .site-header .logo-white { opacity: 1 !important; }

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  margin-left: auto;
}

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-secondary);
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
}

/* In dark mode, default nav text is always white-ish */
[data-theme="dark"] .nav-menu a {
  color: rgba(255, 255, 255, 0.9);
}

/* On transparent headers, nav links are white-ish across all states */
.site-header.transparent-header .nav-menu a {
  color: rgba(255, 255, 255, 0.9);
}

.site-header.transparent-header .nav-menu a:hover,
[data-theme="dark"] .nav-menu a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.nav-menu a:hover { background: var(--color-surface); color: var(--color-text); }

/* Active Nav Links are ALWAYS orange */
.nav-menu a.active,
.site-header.transparent-header:not(.scrolled) .nav-menu a.active,
[data-theme="dark"] .nav-menu a.active {
  color: #FF860D !important;
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
  padding: 0.375rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), color var(--ease);
}
.theme-toggle:hover {
  background: var(--color-surface);
  color: var(--color-text);
}
.site-header.transparent-header .theme-toggle,
[data-theme="dark"] .theme-toggle {
  color: rgba(255, 255, 255, 0.9);
}
.site-header.transparent-header .theme-toggle:hover,
[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
:root:not([data-theme="dark"]) .sun-icon { display: none; }
:root:not([data-theme="dark"]) .moon-icon { display: block; }

/* Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
  padding: 0.375rem;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: background var(--ease), color var(--ease);
}

.menu-toggle:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

.site-header.transparent-header .menu-toggle,
[data-theme="dark"] .menu-toggle {
  color: rgba(255, 255, 255, 0.9);
}

.site-header.transparent-header .menu-toggle:hover,
[data-theme="dark"] .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.menu-toggle .close-icon { display: none; }
.menu-open .menu-toggle .menu-icon { display: none; }
.menu-open .menu-toggle .close-icon { display: block; }

/* Nav Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.menu-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }

  .gallery-mobile-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin: 2.5rem 0 4rem;
  }

  .mobile-grid-item {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.25em;
  }

  .mobile-grid-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-grid-media img {
    width: 100%;
    height: auto;
    display: block;
  }

  .mobile-grid-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 1rem;
  }

  .mobile-grid-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0;
  }

  .mobile-grid-caption {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-muted);
    line-height: 1.6;
  }

  .mobile-grid-caption p {
    font-size: inherit;
    font-weight: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    color: inherit;
    text-align: left;
    margin: 0;
  }

  .iframe-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
  }
}

/* ── Utilities ────────────────────────────────────────────── */
.content-row {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin: 2.5rem 0;
}

.content-row > div {
  flex: 1;
  min-width: 0;
}

.content-row img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* Float Utilities (Text wraps around and below image) */
.image-float-right {
  float: right;
  width: 45%;
  margin-left: 2.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
}

.image-float-left {
  float: left;
  width: 45%;
  margin-right: 2.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
}

figure.image-float-right,
figure.image-float-left {
  border-radius: 0;
}

figure.image-float-right img,
figure.image-float-left img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

figure.image-float-right figcaption,
figure.image-float-left figcaption {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.image-pair {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1.5rem;
  clear: both;
}

.image-pair figure.image-float-right {
  float: none;
  width: 100%;
  margin: 0;
  flex: 1;
}

@media (max-width: 900px) {
  .gallery-info-row {
    grid-template-columns: 1fr;
  }

  .content-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .image-float-right, .image-float-left {
    float: none;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 2rem;
  }

  .image-pair {
    flex-direction: column;
  }
}
main {
  flex: 1;
  padding-top: var(--nav-height);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 5rem;
  margin-top: auto;
  background: var(--color-footer-bg);
}

/* Footer Logo Dark Mode Logic */
[data-theme="dark"] .site-footer .logo-black { opacity: 0 !important; }
[data-theme="dark"] .site-footer .logo-white { opacity: 1 !important; }

.site-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: block;
  margin-bottom: 0.5rem;
  position: relative;
  height: 80px;
}

.footer-logo img {
  height: 80px;
  width: auto;
}

.footer-web-address {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-secondary);
}

.contact-item a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--ease);
}

.contact-item a:hover {
  color: var(--color-link);
}

.contact-icon {
  color: var(--color-muted);
  flex-shrink: 0;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}

.footer-links-list a {
  font-size: 0.9rem;
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--ease);
}

.footer-links-list a:hover {
  color: var(--color-link);
}

.footer-col .section-label {
  margin-bottom: 1.25rem !important;
}

.copyright {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.copyright-notice {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  text-align: left;
}

.footer-email {
  font-size: 0.9rem;
  color: var(--color-link);
  text-decoration: none;
  font-weight: 500;
}

.footer-email:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ══════════════════════════════════════════════════════════
   PAGE TYPES
   ══════════════════════════════════════════════════════════ */

/* ── Shared page intro (Photography index, etc.) ──────────── */
.page-intro {
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}

.page-intro h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; }

.page-lead {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-secondary);
  margin-top: 0.75rem;
  text-align: left;
}

/* ── 1. HOME ──────────────────────────────────────────────── */
.home-hero {
  border-bottom: 1px solid var(--color-border);
  padding-top: 4rem;
  padding-bottom: 3.5rem;
}

.home-hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.home-hero .hero-lead {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-primary {
  background: var(--color-link);
  color: #fff;
  border: 1px solid transparent;
}

.btn-primary:hover { background: var(--color-link-hover); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover { background: var(--color-surface); border-color: #ccc; }

/* ── Homepage intro ───────────────────────────────────────── */
.home-intro {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.75rem;
}

/* ── Full-screen hero slideshow ───────────────────────────── */
.home-hero-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-height));
  margin-bottom: 3rem;
}

.home-slideshow-fs {
  position: absolute;
  inset: 0;
}

.home-slideshow-fs .home-swiper {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.home-slideshow-fs .swiper-slide {
  height: 100vh;
}

.home-slideshow-fs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding-top: 8rem;
  padding-bottom: 5rem;
  padding-left: max(2rem, calc((100vw - var(--max-wide)) / 2 + 2rem));
  padding-right: max(2rem, calc((100vw - var(--max-wide)) / 2 + 2rem));
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.85));
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.home-title {
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.home-swiper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.home-swiper .swiper-button-prev,
.home-swiper .swiper-button-next {
  color: #fff;
  background: transparent;
  border: none;
  width: 48px;
  height: 48px;
  backdrop-filter: none;
  border-radius: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* On the home hero, since images can be dark or light, we use white but without the circle */
/* as it's often over a dark-ish overlay or dark photos */
.home-swiper .swiper-button-prev::after,
.home-swiper .swiper-button-next::after {
  font-size: 1.5rem;
  font-weight: 700;
}

.home-swiper .swiper-pagination-bullet-active {
  background: #fff;
}

/* Gallery In-Page Slideshow */
.gallery-slideshow-container {
  position: relative;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto 1rem;
  background: transparent;
}

.gallery-swiper {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; /* Locked container height based on landscape ratio */
  background: transparent;
}

.gallery-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: transparent;
}

.slide-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Base style for images before they are detected */
.slide-inner img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Clamp to 3:2 for Landscapes */
.slide-inner img.is-landscape {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  opacity: 1;
}

/* Clamp to 4:5 for Portraits */
.slide-inner img.is-portrait {
  width: auto;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  opacity: 1;
}

/* Show square images uncropped at full height */
.slide-inner img.is-square {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 1;
}

/* ── Photo Map ───────────────────────────────────────────── */
/* ── Marker cluster overrides ────────────────────────────── */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large { background-color: rgba(230, 126, 34, 0.25) !important; }
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: rgba(230, 126, 34, 0.7) !important;
  color: #fff !important;
  font-weight: 600;
}

#home-photo-map {
  width: 100%;
  height: 560px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  z-index: 0;
  margin-bottom: 3rem;
}

#photo-map {
  width: 100%;
  height: 70vh;
  min-height: 480px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin: 2rem 0 3rem;
  z-index: 0;
}

.photo-marker-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.photo-marker-inner:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.photo-marker-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-popup {
  text-align: center;
}

.map-popup-img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.map-popup-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.photo-map-popup .leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.photo-map-popup .leaflet-popup-content {
  margin: 0;
}

.gallery-iframe-viewer {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

.gallery-caption-external {
  width: 100%;
  padding: 0.25rem 0 1rem;
  text-align: center;
  color: var(--color-text);
}

.gallery-pagination.swiper-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 1.5rem;
}

.gallery-pagination .swiper-pagination-bullet {
  background: var(--color-muted);
  opacity: 0.5;
}

.gallery-pagination .swiper-pagination-bullet-active {
  background: var(--color-link);
  opacity: 1;
}

.gallery-caption-external h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.gallery-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.print-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  flex-shrink: 0;
  cursor: help;
  position: relative;
  line-height: 1;
}

.print-pill svg {
  display: block;
  width: 12px;
  height: 12px;
}

/* Tooltip Styling */
.print-pill[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%) translateX(8px);
  padding: 0.4rem 0.7rem;
  background: #111;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

[data-theme="dark"] .print-pill[data-tooltip]::before {
  background: #fff;
  color: #111;
}

.print-pill[data-tooltip]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%) translateX(0);
  border: 6px solid transparent;
  border-right-color: #111;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

[data-theme="dark"] .print-pill[data-tooltip]::after {
  border-right-color: #fff;
}

.print-pill[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(12px);
}

.print-pill[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0px);
}

.print-pill.available {
  color: #2d6a4f;
  opacity: 1;
}

.print-pill.exclusive {
  color: #d4af37; /* Gold */
  opacity: 1;
}

.print-pill.private {
  color: #d62828; /* Red */
  opacity: 1;
}

.mobile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.mobile-title-row .print-pill {
  width: 18px;
  height: 18px;
  border-width: 1px;
}

.slide-gear {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  margin-top: 0.6rem;
}

.gear-pill {
  font-size: 0.62rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
}

.gallery-caption-external p {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-secondary);
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
  color: var(--color-text);
  background: transparent;
  border: none;
  width: 48px;
  height: 48px;
  backdrop-filter: none;
  border-radius: 0;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
  font-size: 1.5rem;
  font-weight: 700;
}

.gallery-swiper .swiper-button-prev:hover,
.gallery-swiper .swiper-button-next:hover {
  transform: scale(1.1);
  color: var(--color-accent);
}

.gallery-swiper .swiper-pagination {
  bottom: -5px !important;
}

.gallery-swiper .swiper-pagination-bullet {
  background: var(--color-muted);
}

.gallery-swiper .swiper-pagination-bullet-active {
  background: var(--color-text);
}

.slide-caption h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.slide-caption p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-secondary);
  margin: 0;
}

/* ── Homepage posts row ───────────────────────────────────── */
.home-posts {
  padding: 0;
}

.home-post-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.home-block {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.home-block:last-child {
  border-bottom: none;
  padding-bottom: 4rem;
}

.home-block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
p.section-label,
.section-label {
  font-family: var(--font-sans) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--color-muted) !important;
  margin-bottom: 0.75rem !important;
  line-height: 1 !important;
  display: block !important;
}

.section-label-no-margin {
  font-family: var(--font-sans) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--color-muted) !important;
  margin-bottom: 0 !important;
  line-height: 1 !important;
  display: block !important;
}

.home-block-header .section-label { margin-bottom: 0 !important; }

.post-list { list-style: none; }

.post-list li {
  border-bottom: 1px solid var(--color-border);
}

.post-list li:first-child { border-top: 1px solid var(--color-border); }

.post-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color var(--ease);
}

.post-list a:hover { color: var(--color-link); }
.post-list .post-date { font-size: 0.8rem; color: var(--color-muted); white-space: nowrap; flex-shrink: 0; font-weight: 400; }

.home-gallery-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.home-gallery-preview a {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface);
}

.gallery-preview-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-surface);
}

.home-gallery-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease, opacity var(--ease);
}

.home-gallery-preview a:hover img { transform: scale(1.04); opacity: 0.9; }

.view-all {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
  margin-top: 1.25rem;
}

.view-all:hover { color: var(--color-link-hover); }

.empty-state { font-size: 0.9rem; color: var(--color-muted); }

/* ── 2. LISTING (blog index, bookshelf, photography index) ───── */
.listing-header {
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}

.listing-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

/* Blog list */
.blog-list {
  list-style: none;
  padding-bottom: 4rem;
}

.blog-list-item {
  border-bottom: 1px solid var(--color-border);
}

.blog-list-item:first-child { border-top: 1px solid var(--color-border); }

.blog-list-link {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
  transition: opacity var(--ease);
}

.blog-list-link:hover { opacity: 0.75; }

.blog-list-img {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
}

.blog-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-list-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.blog-list-desc {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(2 * 1.6em);
}

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
  transition: opacity 300ms ease, transform 300ms ease;
}

.post-grid.filtering {
  opacity: 0;
  transform: translateY(10px);
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
  transition: transform var(--ease), box-shadow var(--ease);
}

.post-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.post-card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.2, 0, 0.2, 1);
}

.post-card:hover .post-card-img img {
  transform: scale(1.08);
}

.post-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-surface);
}
.post-card-body {
  padding: 1.25rem 1rem 1.5rem;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background var(--ease);
}

.post-card-author {
  font-size: 0.65rem;
  color: var(--color-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.05rem;
  opacity: 0.8;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.1rem;
}

.post-card-date {
  font-size: 0.7rem;
  color: var(--color-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  flex: 1;
  height: 1.1rem; /* Exact height of one tag row */
  overflow: hidden;
}

.post-card-tags .tag {
  font-size: 0.6rem;
  padding: 0.15rem 0.45rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.post-card-body h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}

.post-card-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(2 * 1.5em);
  margin: 0;
}

.post-card:hover .post-card-tags .tag,
.story-card:hover .post-card-tags .tag {
  background: var(--color-bg);
  color: var(--color-text);
}

/* Book grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem 1.25rem;
  padding-bottom: 4rem;
}

.book-card {
  display: block;
  transition: transform var(--ease);
  cursor: default;
}

.book-card:hover {
  transform: translateY(-3px);
}

.book-card-rating {
  margin-top: 0.25rem;
  display: flex;
  gap: 1px;
}

.book-card-rating .star {
  font-size: 0.8rem;
  color: var(--color-border);
}

.book-card-rating .star.filled {
  color: #fbbf24; /* Amber/Yellow for stars */
}

.book-card-cover {
  aspect-ratio: 2/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin-bottom: 0.6rem;
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-surface);
}

.book-card-title {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.book-card-author {
  font-size: 0.775rem;
  color: var(--color-muted);
}

.book-card-date {
  font-size: 0.725rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

/* ── Constellation Bookshelf ──────────────────────────────── */
.constellation-page {
  padding-bottom: 4rem;
}

.constellation-hint {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.constellation-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3;
  user-select: none;
  -webkit-user-select: none;
}

.star { cursor: grab; }
.star.dragging { cursor: grabbing !important; }

.constellation-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Stars */
.star {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.star-dot {
  display: block;
  width: var(--size, 10px);
  height: var(--size, 10px);
  border-radius: 50%;
  background: var(--star-dot-bg);
  box-shadow: 0 0 6px 1px var(--star-dot-shadow);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}

.star-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.star:hover .star-dot,
.star:focus-visible .star-dot {
  background: var(--color-link);
  box-shadow: 0 0 10px 3px color-mix(in srgb, var(--color-link) 50%, transparent);
  transform: scale(1.3);
}

.star:hover .star-glow,
.star:focus-visible .star-glow {
  background: color-mix(in srgb, var(--color-link) 12%, transparent);
  transform: translate(-50%, -50%) scale(1.5);
}

.star.active .star-dot {
  background: var(--color-link);
  box-shadow: 0 0 14px 4px color-mix(in srgb, var(--color-link) 60%, transparent);
  transform: scale(1.4);
}

.star.active .star-glow {
  background: color-mix(in srgb, var(--color-link) 15%, transparent);
  transform: translate(-50%, -50%) scale(2);
}

.star-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 14px);
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-sans);
  color: var(--star-label-color);
  white-space: nowrap;
  pointer-events: none;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.star:hover .star-label,
.star:focus-visible .star-label,
.star.active .star-label {
  color: var(--star-label-active);
}

.constellation-empty-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--star-hint-color);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* Floating book card */
.book-float-card {
  position: absolute;
  width: auto;
  max-width: 600px;
  height: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94) translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}

.float-card-inner {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.book-float-card.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.float-card-cover {
  width: auto;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
  background: var(--color-border);
}

.float-card-cover[src=""] { display: none; }

.float-card-meta {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem;
  padding-right: 2.2rem;
  position: relative;
  overflow-y: auto;
}

.float-card-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--ease), background var(--ease);
  z-index: 1;
}

.float-card-close:hover {
  color: var(--color-text);
  background: var(--color-border);
}

.float-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
}

.float-card-author {
  font-size: 0.77rem;
  color: var(--color-muted);
  margin: 0;
}

.float-card-rating {
  display: flex;
  gap: 1px;
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.star-pip { color: var(--color-border); }
.star-pip.on { color: var(--color-link); }

.float-card-note {
  font-size: 0.77rem;
  line-height: 1.55;
  color: var(--color-secondary);
  margin: 0.2rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(4 * 1.55em);
}

.float-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Tag cloud filter */
.tag-cloud-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag-filter-btn {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-secondary);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  line-height: 1.6;
}

.tag-filter-btn:hover {
  border-color: var(--color-link);
  color: var(--color-link);
}

.tag-filter-btn.active {
  background: var(--color-link);
  border-color: var(--color-link);
  color: #fff;
}

/* ── Constellation: mobile ────────────────────────────────── */
@media (max-width: 700px) {
  .constellation-wrap {
    aspect-ratio: 3 / 4;
  }

  .book-float-card {
    width: calc(100vw - 2rem);
    max-width: 380px;
    height: auto;
    min-height: 160px;
  }

  .float-card-meta {
    width: auto;
    flex: 1;
  }
}

/* ── 3. STANDARD (about, info pages, etc.) ────────────────── */
.page-meta {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.standard-page .post-content {
  padding-bottom: 2rem;
}

/* ── Side Projects ────────────────────────────────────────── */
.projects-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
  align-items: stretch;
}

.project-card-wrapper {
  display: flex;
  flex: 1;
}

.project-card-full {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
  transition: transform 450ms cubic-bezier(0.2, 0, 0.2, 1), box-shadow 450ms ease;
}

.project-card-full:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.project-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-bottom: 1.25rem;
  transition: background 450ms ease, border-color 450ms ease;
}

.project-card-full:hover .project-card-icon-wrap {
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
  border-color: var(--color-accent);
}


.project-card-body {
  padding: 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.75rem;
  line-height: 1.2;
}

.project-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-secondary);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  text-align: left;
}

.project-link-btn {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-link);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--ease);
}

.project-card-full:hover .project-link-btn {
  color: var(--color-link-hover);
  text-decoration: underline;
}

@media (max-width: 1000px) {
  .projects-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .projects-list {
    grid-template-columns: 1fr;
  }
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  text-decoration: none;
  transition: transform 450ms cubic-bezier(0.2, 0, 0.2, 1), box-shadow 450ms ease;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.13);
}

.service-card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-bottom: 1.25rem;
  transition: background 450ms ease, border-color 450ms ease;
}

.service-card:hover .service-card-icon-wrap {
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
  border-color: var(--color-accent);
}

.service-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

.service-card-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-secondary);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.service-card-btn {
  margin-top: auto;
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--ease), transform var(--ease);
}

.service-card-btn:hover {
  background: var(--color-accent-hover, color-mix(in srgb, var(--color-accent) 85%, #000));
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


/* ── Profile collapsible card ─────────────────────────────── */
.profile-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 3rem;
  overflow: hidden;
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: var(--color-surface);
  transition: background 0.15s ease;
}

.profile-card-header::-webkit-details-marker { display: none; }

.profile-card-header:hover {
  background: var(--color-border);
}

.profile-card-header .section-label {
  margin: 0;
}

.toggle-icon {
  transition: transform 0.2s ease;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.profile-card[open] .toggle-icon {
  transform: rotate(180deg);
}

.profile-card-body {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.profile-card-body .cv-container {
  margin-top: 2rem;
}

.profile-intro-full {
  margin-bottom: 0;
}

/* ── About Page Intro ─────────────────────────────────────── */
.about-intro-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.about-text {
  display: flex;
  flex-direction: column;
}

.about-text p,
.profile-intro-full p {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
}

.about-text p {
  margin: 0;
  text-align: left !important;
}

.profile-intro-full p {
  text-align: justify;
}

.profile-intro-full p:last-child {
  margin-bottom: 0;
}

.about-image-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.about-image-wrap > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.about-contact-card {
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform 450ms cubic-bezier(0.2, 0, 0.2, 1), box-shadow 450ms ease;
}

.about-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.about-contact-header {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.about-contact-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.about-contact-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-top: 0.4rem;
}

.about-contact-link:hover {
  color: var(--color-text);
}

@media (max-width: 900px) {
  .about-intro-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image-wrap {
    max-width: 400px;
    margin: 0 auto;
  }
}

.cv-section {
  margin-bottom: 5rem;
}

.cv-section:last-child {
  margin-bottom: 2rem;
}

.cv-section p {
  text-align: left;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  padding: 2.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform 450ms cubic-bezier(0.2, 0, 0.2, 1), box-shadow 450ms ease;
}

.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.exp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.exp-company {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-link);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exp-job-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-muted);
  line-height: 1.3;
}

.exp-meta {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

.exp-main ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-main li {
  font-size: 0.95rem;
  color: var(--color-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: 1.25rem;
  text-align: left;
}

.exp-main li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-link);
  font-weight: bold;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 450ms cubic-bezier(0.2, 0, 0.2, 1), box-shadow 450ms ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-link);
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-muted);
  margin: 0;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 450ms cubic-bezier(0.2, 0, 0.2, 1), box-shadow 450ms ease;
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.edu-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-link);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.edu-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.edu-school {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-secondary);
}

.edu-year {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted);
}

@media (max-width: 800px) {
  .experience-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}
/* ── 3. POST (blog post, photo story) ─────────────────────── */
.post { }

.post-body {
  padding: 0 0 5rem;
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

.post-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--color-muted);
}

.tag {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 99px;
  padding: 0.15em 0.65em;
  font-size: 0.775rem;
  color: var(--color-secondary);
}

/* Prose body typography */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.post-content h1 { font-size: 1.75rem; margin: 2.5rem 0 0.75rem; }
.post-content h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; }
.post-content h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }

.post-content p {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--color-secondary);
  margin-bottom: 1.35em;
}

.post-content a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(82, 183, 136, 0.5);
}

.post-content a:hover { color: var(--color-link-hover); }

.post-content strong { font-weight: 700; color: var(--color-text); }
.post-content em { font-style: italic; }

.post-content ul,
.post-content ol {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1.35em;
}

.post-content li { margin-bottom: 0.3em; }

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 2rem 0;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--color-muted);
}

.post-content blockquote p { margin-bottom: 0; color: var(--color-muted); }

.post-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-surface);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

.post-content pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.75rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Book highlights — style kindle export lines */
.post-content h2 + p { margin-top: 0.25rem; }

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin: 2rem 0;
  overflow-x: auto;
  display: block;
}
.post-content th,
.post-content td {
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.post-content th {
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  background: var(--color-surface);
}
.post-content tr:last-child td { border-bottom: none; }
.post-content tr:hover td { background: var(--color-surface); }

/* Callouts */
.callout {
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.85rem 1.1rem;
  margin: 1.75rem 0;
}
.callout-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.callout-body p { margin-bottom: 0.5em; font-size: 1rem; }
.callout-body p:last-child { margin-bottom: 0; }
.callout-note    { border-color: #3b82f6; }
.callout-info    { border-color: #06b6d4; }
.callout-tip,
.callout-hint    { border-color: #10b981; }
.callout-warning,
.callout-caution { border-color: #f59e0b; }
.callout-danger,
.callout-error   { border-color: #ef4444; }
.callout-quote,
.callout-cite    { border-color: var(--color-muted); }

/* Wikilinks */
a.wikilink {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(82, 183, 136, 0.5);
}
span.wikilink { color: var(--color-secondary); }

/* ── 4. GALLERY ───────────────────────────────────────────── */
.gallery-page { }

.gallery-info-label {
  max-width: var(--max-wide);
  margin: 3rem auto 0 !important;
}

.gallery-info-row {
  max-width: var(--max-wide);
  margin: 0.5rem auto 0;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .gallery-info-row {
    grid-template-columns: 1fr;
  }
}

.ethics-card {
  padding: 2.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform 450ms cubic-bezier(0.2, 0, 0.2, 1), box-shadow 450ms ease;
}

.ethics-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.ethics-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.ethics-card-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-secondary);
}

.ethics-card-body a,
.gallery-meta-value a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 134, 13, 0.4);
  transition: var(--ease);
}

.ethics-card-body a:hover,
.gallery-meta-value a:hover {
  text-decoration-color: var(--color-accent);
}

.ethics-card-body ul,
.gallery-meta-value ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ethics-card-body li,
.gallery-meta-value li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--color-secondary);
  text-align: left;
}

.ethics-card-body li::before,
.gallery-meta-value li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.gallery-meta-card {
  padding: 2.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 450ms cubic-bezier(0.2, 0, 0.2, 1), box-shadow 450ms ease;
}

.gallery-meta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gallery-meta-item {}

.gallery-meta-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.gallery-meta-value {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-secondary);
}

.gallery-related {
  max-width: var(--max-wide);
  margin: 3rem auto 0;
  padding-bottom: 4rem;
}

@media (max-width: 700px) {
  .gallery-related .story-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 0;
    grid-template-columns: unset;
  }

  .gallery-related .story-list::-webkit-scrollbar { display: none; }

  .gallery-related .story-card {
    flex: 0 0 75vw;
    scroll-snap-align: start;
    max-width: 320px;
  }
}

.page-header {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.gallery-body {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

.gallery-body .section-label {
  margin-top: 1rem !important;
}

/* Gallery masonry layout */
.gallery-body .gallery {
  column-count: 3;
  column-gap: 1rem;
  margin-bottom: 4rem;
}

.gallery-body .gallery a {
  display: block;
  margin-bottom: 1rem;
  break-inside: avoid;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: zoom-in;
  transform: translateZ(0); /* Fix Safari column rendering bug */
}

.gallery-body .gallery img {
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0;
  border-radius: 0;
  transition: transform 400ms ease, opacity var(--ease);
}

.gallery-body .gallery a:hover img {
  transform: scale(1.03);
  opacity: 0.95;
}

/* Prose content below the grid (e.g. "Similar Galleries" section) */
.gallery-body p,
.gallery-body ul,
.gallery-body ol {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.gallery-body h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
}

.gallery-body a { color: var(--color-link); }

/* ── 4. PHOTOGRAPHY INDEX ─────────────────────────────────── */
.filter-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-cloud.collapsed {
  max-height: 74px; /* Approx 2 lines of buttons */
}

.filter-container {
  margin-bottom: 2rem;
}

.show-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.show-more-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem;
  transition: color var(--ease);
}

.show-more-btn:hover {
  color: var(--color-text);
}

.show-more-btn svg {
  transition: transform 300ms ease;
}

.show-more-btn.expanded svg {
  transform: rotate(180deg);
}

.filter-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--ease);
  text-transform: capitalize;
}

.filter-btn:hover {
  border-color: var(--color-muted);
  color: var(--color-text);
}

.filter-btn.active {
  background: var(--color-link);
  border-color: var(--color-link);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
  transition: opacity 300ms ease, transform 300ms ease;
}

.gallery-grid.filtering {
  opacity: 0;
  transform: translateY(10px);
}

.gallery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: transform 450ms cubic-bezier(0.2, 0, 0.2, 1), box-shadow 450ms ease;
}

.gallery-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.gallery-card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.2, 0, 0.2, 1);
}

.gallery-card:hover .gallery-card-img img {
  transform: scale(1.08);
}

.gallery-card-body {
  padding: 1.25rem 1rem 1.5rem;
  background: var(--color-bg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background var(--ease);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.gallery-card:hover .gallery-card-body {
  background: var(--color-surface);
}

.gallery-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0;
}

.gallery-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gallery-card-prints {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.gallery-card-prints .print-pill {
  width: 16px;
  height: 16px;
  border-width: 1px;
}

.gallery-card-prints .print-pill svg {
  width: 8px;
  height: 8px;
}

.gallery-card-prints .print-pill[data-tooltip]::before {
  top: auto;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}

.gallery-card-prints .print-pill[data-tooltip]:hover::before {
  transform: translateX(-50%);
}

.gallery-card-prints .print-pill[data-tooltip]::after {
  top: auto;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-right-color: transparent;
  border-top-color: #111;
}

[data-theme="dark"] .gallery-card-prints .print-pill[data-tooltip]::after {
  border-top-color: #fff;
}

.gallery-card-prints .print-pill[data-tooltip]:hover::after {
  transform: translateX(-50%);
}

.story-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}


.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: transform 450ms cubic-bezier(0.2, 0, 0.2, 1), box-shadow 450ms ease;
}

.story-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.story-card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.story-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.2, 0, 0.2, 1);
}

.story-card:hover .story-card-img img {
  transform: scale(1.08);
}

.story-card-body {
  padding: 1.25rem 1rem 1.5rem;
  background: var(--color-bg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background var(--ease);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.story-card:hover .story-card-body {
  background: var(--color-surface);
}

.story-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0;
}

.story-card-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(2 * 1.5em);
  margin: 0;
  text-align: left;
}

/* standard-page nested inside constrained-wide should not double up padding */
.constrained-wide .standard-page {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

/* ── Section spacing shared across index pages ─────────────── */
.constrained-wide .section-label { margin-top: 3rem !important; }
.constrained-wide .section-label:first-child,
.home-hero-wrapper + .section-label,
.home-hero-wrapper + article .section-label { margin-top: 0 !important; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-sections { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-body .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-controls {
    margin-left: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--nav-height));
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 0.5rem;
    z-index: 90;
    transition: right 300ms cubic-bezier(0.4, 0, 0.2, 1), background 300ms ease;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    margin-left: 0;
  }

  /* When header is transparent and unscrolled, the menu should match that vibe */
  .site-header.transparent-header:not(.scrolled) .nav-menu {
    background: rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.3);
  }

  [data-theme="dark"] .nav-menu {
    background: rgba(17, 17, 17, 0.55);
  }

  [data-theme="dark"] .site-header.transparent-header:not(.scrolled) .nav-menu {
    background: rgba(0, 0, 0, 0.2);
  }

  .menu-open .nav-menu {
    right: 0;
  }

  .nav-menu a {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
  }

  /* Prevent scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .site-header-inner,
  .site-footer-inner,
  .constrained-wide,
  .constrained-prose { padding-left: 1.25rem; padding-right: 1.25rem; }

  .home-hero-wrapper { height: 100vh; }

  .gallery-body .gallery { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .story-list { grid-template-columns: 1fr; }

  .home-gallery-preview { grid-template-columns: 1fr 1fr; }

  .site-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Image Protection Toast ───────────────────────────────── */
.image-protection-toast {
  position: fixed;
  text-align: center;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 400ms cubic-bezier(0.2, 0, 0.2, 1), opacity 400ms ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.image-protection-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.image-protection-toast a {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════ */
.not-found-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 0 4rem;
}

.not-found-image-wrap {
  width: min(300px, 70vw);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.not-found-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.not-found-heading {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-link);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.not-found-body {
  font-size: 1rem;
  color: var(--color-secondary);
  line-height: 1.7;
  max-width: 420px;
}

.not-found-body a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════
   NOW PAGE
   ══════════════════════════════════════════════════════════ */
.now-emoji {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* ══════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════ */
.about-now-btn {
  display: block;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-align: center;
  transition: background 200ms ease, transform 200ms ease;
}

.about-now-btn:hover {
  background: var(--color-link-hover);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   PRINTS PAGE
   ══════════════════════════════════════════════════════════ */
.prints-intro {
  font-size: 1.05rem;
  color: var(--color-secondary);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.prints-why-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0;
}

.prints-why-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.prints-why-card h4 { margin-bottom: 0.5rem; }

.prints-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.prints-option-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  transition: transform 450ms cubic-bezier(0.2,0,0.2,1), box-shadow 450ms ease;
}

.prints-option-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.prints-option-featured { border-color: var(--color-accent); }

.prints-option-badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.prints-option-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.prints-option-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.prints-option-label {
  font-size: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin: 0 0 0.2rem;
}

.prints-option-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.prints-option-desc {
  font-size: 0.9rem;
  color: var(--color-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.prints-option-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.prints-option-list li {
  font-size: 0.88rem;
  color: var(--color-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.prints-option-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.prints-strip {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0.75rem calc(-1 * var(--page-pad, 2rem)) 0;
  padding: 0 var(--page-pad, 2rem);
}

.prints-strip::-webkit-scrollbar { display: none; }

.prints-strip-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  padding-bottom: 0.5rem;
}

.prints-strip-item {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 350ms ease, box-shadow 350ms ease;
}

.prints-strip-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.prints-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.prints-cta {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 3rem;
  margin-bottom: 3rem;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prints-cta--compact {
  min-height: 294px;
}

.prints-cta-mosaic {
  position: absolute;
  inset: -25%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  transform: rotate(-12deg);
  transform-origin: center center;
  pointer-events: none;
}

.prints-mosaic-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: 8px;
  animation: mosaic-scroll 90s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.prints-mosaic-col--offset {
  margin-top: -120px;
  animation-duration: 114s;
}

.prints-mosaic-col img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

@keyframes mosaic-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -50%, 0); }
}

.prints-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  pointer-events: none;
}

.prints-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2.5rem;
  width: 100%;
}

.prints-cta-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  text-align: center;
}

.prints-cta-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.prints-cta-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 2rem;
  text-align: center;
}

.prints-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.prints-cta-btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.85rem 2.25rem;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 200ms ease, transform 200ms ease;
  min-width: 220px;
  text-align: center;
  cursor: pointer;
}

.prints-cta-btn:hover {
  background: var(--color-link-hover);
  transform: translateY(-2px);
}

.prints-cta-btn--ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}

.prints-cta-btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* ══════════════════════════════════════════════════════════
   PRINT ENQUIRY MODAL
   ══════════════════════════════════════════════════════════ */
.enquiry-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.enquiry-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.enquiry-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  z-index: 201;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 16px)) scale(0.98);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms cubic-bezier(0.2,0,0.2,1);
}

.enquiry-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.enquiry-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--ease), background var(--ease);
}

.enquiry-close:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.enquiry-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.enquiry-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.enquiry-subhead {
  font-size: 0.9rem;
  color: var(--color-secondary);
  line-height: 1.65;
  margin: 0 0 2rem;
  text-align: left;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.enquiry-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.enquiry-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.enquiry-optional {
  font-weight: 400;
  color: var(--color-muted);
}

.enquiry-input {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  width: 100%;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.enquiry-input::placeholder { color: var(--color-muted); }

.enquiry-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 15%, transparent);
}

.enquiry-textarea { resize: vertical; min-height: 100px; }

.enquiry-error {
  font-size: 0.85rem;
  color: #d62828;
  margin: 0;
  min-height: 1.2em;
}

.enquiry-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  transition: background 200ms ease, transform 200ms ease;
  margin-top: 0.25rem;
}

.enquiry-submit:hover { background: var(--color-link-hover); transform: translateY(-1px); }
.enquiry-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.enquiry-spinner {
  display: none;
  animation: spin 0.7s linear infinite;
}

.enquiry-submit.loading .enquiry-submit-text { display: none; }
.enquiry-submit.loading .enquiry-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.enquiry-thanks {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0 1rem;
}

.enquiry-thanks.visible { display: flex; }

.enquiry-thanks-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.enquiry-thanks-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.enquiry-thanks-body {
  font-size: 0.95rem;
  color: var(--color-secondary);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 0 2rem;
  text-align: center;
}

.enquiry-thanks-close {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-secondary);
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.enquiry-thanks-close:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

#enquiry-open { cursor: pointer; }

@media (max-width: 800px) {
  .prints-why-grid { grid-template-columns: 1fr; }
  .prints-options-grid { grid-template-columns: 1fr; }
  .prints-cta { padding: 2.5rem 1.5rem; }
  .prints-strip-item { width: 150px; }
}

/* BOOKING CTA BAND */
.booking-cta {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  margin: 0 0 1rem;
}

.booking-cta-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.6rem;
}

.booking-cta-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.booking-cta-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.booking-cta-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: background var(--ease), transform var(--ease);
}

.booking-cta-btn:hover {
  background: var(--color-link-hover);
  transform: translateY(-2px);
}

/* BOOKING MODAL */
.booking-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 900;
}

.booking-backdrop.open { display: block; }

.booking-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 16px)) scale(0.98);
  z-index: 901;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: min(520px, calc(100vw - 2rem));
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem 2.5rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms cubic-bezier(0.2, 0, 0.2, 1);
}

.booking-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.booking-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: 0.25rem;
  line-height: 1;
  transition: color var(--ease);
}

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

.booking-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.4rem;
}

.booking-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.booking-subhead {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-secondary);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-field { display: flex; flex-direction: column; gap: 0.35rem; }

.booking-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.booking-optional {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.booking-input {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--ease);
  width: 100%;
  box-sizing: border-box;
}

.booking-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.booking-textarea { resize: vertical; min-height: 90px; }

.booking-skill-value {
  font-weight: 400;
  color: var(--color-accent);
  font-size: 0.82rem;
  margin-left: 0.4rem;
}

.booking-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.booking-slider-edge {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.booking-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
  outline: none;
  cursor: pointer;
}

.booking-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-accent);
  cursor: pointer;
  transition: transform 150ms ease;
}

.booking-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.booking-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-accent);
  cursor: pointer;
}

.booking-slider-pips {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-top: 0.25rem;
}

.booking-slider-pips span {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--color-muted);
  width: 18px;
  text-align: center;
}

.booking-error {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #e55;
  min-height: 1.2em;
}

.booking-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  transition: background 200ms ease, transform 200ms ease;
  margin-top: 0.25rem;
}

.booking-submit:hover { background: var(--color-link-hover); transform: translateY(-1px); }
.booking-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.booking-spinner {
  display: none;
  animation: spin 0.7s linear infinite;
}

.booking-submit.loading .booking-submit-text { display: none; }
.booking-submit.loading .booking-spinner { display: block; }

.booking-thanks {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0 0.5rem;
  gap: 0.75rem;
}

.booking-thanks.visible { display: flex; }

.booking-thanks-icon { color: var(--color-accent); }

.booking-thanks-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin: 0;
}

.booking-thanks-body {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-secondary);
  line-height: 1.65;
  margin: 0;
  max-width: 340px;
}

.booking-thanks-close {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  color: var(--color-secondary);
  transition: background var(--ease), color var(--ease);
  margin-top: 0.5rem;
}

.booking-thanks-close:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

@media (max-width: 600px) {
  .booking-modal { padding: 2rem 1.5rem 1.5rem; }
  .booking-cta { padding: 2.25rem 1.5rem; }
  .booking-cta-heading { font-size: 1.4rem; }
}