body[data-ready="false"]{opacity:0;visibility:hidden;} body[data-ready="true"]{opacity:1;visibility:visible;transition:opacity .35s ease;}

/* ===== VARIABLES ===== */
:root {
  --bg: #2f3238;
  --bg-soft: #3b3f46;
  --panel: #1f2228;
  --panel-soft: #2a2d33;

  --text: #f2f2f2;
  --muted: #b8bcc4;
  --border: rgba(255,255,255,0.08);
  --highlight: #ffffff;

  --frame-bg:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(215,180,125,0.06) 0%, rgba(185,150,95,0.03) 100%),
    linear-gradient(180deg, rgba(55,58,66,0.97) 0%, rgba(36,39,44,0.99) 100%);
  --frame-border: 1px solid rgba(255,255,255,0.07);
  --frame-shadow: 0 30px 80px rgba(0,0,0,0.6);
  --frame-padding: 28px;

  --shadow-deep: rgba(0,0,0,0.75);
  --shadow-soft: rgba(0,0,0,0.45);
  --glow: rgba(255,255,255,0.08);

  --transition-fast: 0.3s ease;
  --transition-mid: 0.4s ease;
  --transition-slow: 0.8s ease;

  --card-bg:
    radial-gradient(circle at 50% 0%, rgba(255,228,205,0.09) 0%, transparent 55%),
    linear-gradient(180deg, rgba(225,185,160,0.07) 0%, rgba(195,155,130,0.04) 100%),
    linear-gradient(180deg, #4a3532 0%, #362624 100%);
  --card-border: 1px solid rgba(185,140,120,0.28);

  --card-shadow:
    8px 28px 70px rgba(20,18,16,0.55),
    6px 12px 30px rgba(20,18,16,0.35),
    inset 0  2px 0 rgba(255,235,220,0.42),
    inset 2px 0  0 rgba(255,235,220,0.24),
    inset 0 -2px 0 rgba(55,35,30,0.55),
    inset -2px 0 0 rgba(55,35,30,0.40);
  --card-shadow-hover:
    12px 40px 95px rgba(20,18,16,0.65),
    8px 18px 40px rgba(20,18,16,0.42),
    inset 0  2px 0 rgba(255,235,220,0.52),
    inset 2px 0  0 rgba(255,235,220,0.30),
    inset 0 -2px 0 rgba(55,35,30,0.60),
    inset -2px 0 0 rgba(55,35,30,0.45);

  --card-shadow-left:
    -8px 28px 70px rgba(20,18,16,0.55),
    -6px 12px 30px rgba(20,18,16,0.35),
    inset 0  2px 0 rgba(255,235,220,0.42),
    inset -2px 0 0 rgba(255,235,220,0.24),
    inset 0 -2px 0 rgba(55,35,30,0.55),
    inset 2px 0  0 rgba(55,35,30,0.40);
  --card-shadow-left-hover:
    -12px 40px 95px rgba(20,18,16,0.65),
    -8px 18px 40px rgba(20,18,16,0.42),
    inset 0  2px 0 rgba(255,235,220,0.52),
    inset -2px 0 0 rgba(255,235,220,0.30),
    inset 0 -2px 0 rgba(55,35,30,0.60),
    inset 2px 0  0 rgba(55,35,30,0.45);

  --card-shadow-centre:
    0 28px 70px rgba(20,18,16,0.55),
    0 12px 30px rgba(20,18,16,0.35),
    inset 0  2px 0 rgba(255,235,220,0.42),
    inset 2px 0  0 rgba(255,235,220,0.12),
    inset -2px 0 0 rgba(255,235,220,0.12),
    inset 0 -2px 0 rgba(55,35,30,0.55);
  --card-shadow-centre-hover:
    0 40px 95px rgba(20,18,16,0.65),
    0 18px 40px rgba(20,18,16,0.42),
    inset 0  2px 0 rgba(255,235,220,0.52),
    inset 2px 0  0 rgba(255,235,220,0.15),
    inset -2px 0 0 rgba(255,235,220,0.15),
    inset 0 -2px 0 rgba(55,35,30,0.60);
  --card-text: #ede0d4;
  --card-muted: #d0b8a8;
  --card-detail: rgba(252,232,215,0.84);
  --card-divider: rgba(195,160,135,0.22);
  --card-emboss: 0 1px 1px rgba(255,235,220,0.42), 0 -1px 1px rgba(25,15,12,0.50);
  --card-emboss-light: 0 1px 1px rgba(255,235,220,0.30), 0 -1px 1px rgba(25,15,12,0.35);

  --linen-weave:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='warp'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5 0.012' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23warp)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='weft'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.5' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23weft)'/%3E%3C/svg%3E");
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 20% in oklab, #4a4f57 0%, #353941 38%, #2b2e35 70%, #25282e 100%),
    radial-gradient(ellipse at 40% 15% in oklab, rgba(74,79,87,0.35) 0%, rgba(43,46,53,0.15) 50%, transparent 80%),
    radial-gradient(ellipse at 65% 80% in oklab, rgba(53,57,65,0.20) 0%, rgba(37,40,46,0.10) 45%, transparent 75%),
    linear-gradient(155deg in oklab, rgba(55,58,66,0.12) 0%, transparent 40%, rgba(43,46,53,0.08) 70%, transparent 100%),
    #25282e;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  height: auto;
  overflow: auto;
}

img {
  user-select: none;
  -webkit-user-select: none;
  user-drag: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

/* ===== HEADER & NAVIGATION ===== */
header, footer {
  position: fixed;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

header {
  top: 0;
  justify-content: center;
  padding: 0 20px;
}

header h2 {
  display: none;
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 2px;
  transition: opacity var(--transition-fast);
}

header h2:hover { opacity: 0.7; }

footer {
  bottom: 0;
  justify-content: center;
  pointer-events: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

footer a,
footer button {
  pointer-events: auto;
}

.nav {
  margin-left: 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  text-shadow: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
  position: relative;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.nav a:hover { color: var(--text); }
.nav a:focus { outline: none; }
.nav a:visited { color: var(--muted); }
.nav a:visited.active { color: var(--highlight); }

.nav a.active {
  color: var(--highlight);
  text-shadow: 0 0 8px var(--highlight), 0 0 12px rgba(232, 232, 232, 0.6);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  transition: color var(--transition-fast);
}

footer a:hover { color: var(--text); }

@media (min-width: 769px) {
  header {
    justify-content: flex-start;
    padding: 0 8%;
  }

  header h2 { display: block; }

  footer {
    position: fixed;
    bottom: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    z-index: 1000;
    margin-top: 0;
    padding: 0;
    justify-content: center;
    pointer-events: auto;
  }

  .nav {
    margin-left: auto;
    gap: 30px;
    flex-wrap: nowrap;
  }

  .nav a { font-size: clamp(0.7rem, 1.5vw, 1rem); }
}

/* ===== SLIDES ===== */
.slide {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  box-sizing: border-box;
  opacity: 1;
  transform: none;
}

.slide.hero { padding-top: 100px; }

.slide + .slide {
  border-top: 1px solid rgba(207,171,118,0.25);
}

#home::before,
#folio::before,
#gallery::before,
#pricing::before,
#about::before {
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(207,171,118,0.95);
  text-align: center;
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 5;
  width: 100%;
  margin-bottom: 28px;
  flex-shrink: 0;
}

#home::before   { content: "Home"; }
#folio::before  { content: "Folio"; }
#gallery::before { content: "Gallery"; }
#pricing::before { content: "Pricing"; }
#about::before  { content: "About"; }

@media (min-width: 769px) {
  .slide {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    padding: 60px 0;

    opacity: 1;
    transform: none;
    transition: none;
    flex-direction: row;
    justify-content: center;
    /* Stacking context: keeps all children below the fixed header/footer */
    z-index: 0;
  }

  html {
    scroll-behavior: smooth;
  }

  /* Content-heavy sections that can grow beyond one viewport */
  #pricing,
  #about {
    height: auto;
  }

/* About: column layout so heading stacks above cards, not beside them */
  #about {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    min-height: 100vh;
    padding-top: 130px; /* Brought down to match Folio/Gallery visual alignment */
    padding-bottom: 150px;
  }

  /* Style the About section heading to match other section headings */
  #about > div > h2 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(207,171,118,0.95);
    text-align: center;
    margin: 0 0 28px 0;
  }

  .slide + .slide { border-top: none; }

  #home::before,
  #folio::before,
  #gallery::before,
  #pricing::before,
  #about::before {
    display: none;
  }

  .slide.hero { padding-top: 60px; }
}

/* ===== SHARED BUTTON STYLES ===== */
.gallery-arrow,
.folio-arrow {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.55);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  z-index: 100;
  padding: 0;
  position: relative;
  overflow: visible;
  background: rgba(0,0,0,0.28);
  color: rgba(212,175,55,0.75);
  box-shadow: none;
  text-shadow: none;
}

.gallery-arrow:hover,
.folio-arrow:hover {
  border-color: rgba(212,175,55,0.95);
  background: rgba(212,175,55,0.1);
  color: rgba(212,175,55,1);
  transform: none;
}

.gallery-arrow:active,
.folio-arrow:active {
  background: rgba(212,175,55,0.18);
  transform: scale(0.92);
}

.gallery-arrow.disabled {
  opacity: 0.22;
  pointer-events: none;
  background: transparent;
}

.folio-arrow { margin: 0; }

.folio-pause-play {
  font-size: 0.75rem;
  letter-spacing: 0;
}

/* ===== NAV BUTTON TOOLTIPS ===== */
.btn-tooltip {
  display: none;
}

@media (min-width: 769px) {
  .btn-tooltip {
    display: block;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #1a1a1a;
    border: 1px solid rgba(207,171,118,0.4);
    color: #d4c4b0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    margin-bottom: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }

  .btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
  }

  .nav-button.show-tooltip .btn-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-14px);
  }

  #topBtn {
    position: absolute;
    right: 20px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.55);
    background: rgba(0,0,0,0.28);
    color: rgba(212,175,55,0.75);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
    padding: 0;
    overflow: visible;
    box-shadow: none;
    text-shadow: none;
    opacity: 0;
    pointer-events: none;
  }

  #topBtn.visible {
    opacity: 1;
    pointer-events: auto;
  }

  #topBtn:hover {
    border-color: rgba(212,175,55,0.95);
    background: rgba(212,175,55,0.1);
    color: rgba(212,175,55,1);
    transform: none;
  }

  #topBtn:active {
    background: rgba(212,175,55,0.18);
    transform: scale(0.92);
  }
}

/* ===== HOME SECTION ===== */
#home {
  justify-content: center;
  align-items: center;
  padding-top: 60px; /* header height — title pseudo-element provides visual separation */
}

.home-hero-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 20px;
  gap: 24px;
  z-index: 5;
}

.home-side-card {
  display: block;
  width: 100%;
  padding: 24px;
  background: rgba(74, 53, 50, 0.5);
  border: 1px solid rgba(185, 140, 120, 0.2);
  border-radius: 4px;
  order: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.home-framed-image {
  width: 100%;
  order: -1;
  padding: 16px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--card-bg);
  border: var(--card-border);
}

.home-framed-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: contain;
  display: block;
}

.home-card-label {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--card-muted);
  margin-bottom: 12px;
}

.home-card-title {
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--card-text);
  line-height: 1.4;
  position: relative;
  padding-right: 24px;
}

.home-card-title::after {
  content: '+';
  position: absolute;
  right: 0; top: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(207,171,118,0.45);
  border-radius: 50%;
  color: rgba(207,171,118,0.88);
  background: rgba(207,171,118,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,235,210,0.40),
    inset 0 -1px 0 rgba(30,15,5,0.45),
    0 1px 3px rgba(0,0,0,0.45);
}

.card-expanded .home-card-title::after { transform: rotate(45deg); }

.home-card-divider {
  width: 100%; height: 1px;
  background: var(--card-divider);
  max-height: 0; opacity: 0;
  transition: all 0.4s ease;
}

.card-expanded .home-card-divider { max-height: 2px; opacity: 1; margin: 18px 0; }

.home-card-details {
  list-style: none;
  max-height: 0; opacity: 0;
  overflow: hidden;
  transition: all 0.45s ease;
}

.card-expanded .home-card-details { max-height: 400px; opacity: 1; }

.home-card-details li {
  padding: 7px 0;
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  color: var(--card-detail);
  border-bottom: 1px solid var(--card-divider);
}

@media (min-width: 769px) {
  #home {
    padding-top: 60px;
    justify-content: center;
  }

  .home-hero-layout {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 56px;
    max-width: 1600px;
    padding: 0 56px;
    margin: 0 auto;
    height: 100%;
  }

  .home-side-card {
    flex: 0 0 200px;
    min-height: 320px;
    padding: 32px 24px;
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: 0;
    order: unset;
    cursor: default;
  }

  .home-card-title { margin-bottom: 18px; padding-right: 0; }
  .home-card-title::after { display: none; }

  .home-card-divider, .home-card-details {
    max-height: none; overflow: visible; opacity: 1;
  }

  #home-card-left  { box-shadow: var(--card-shadow-left); }
  #home-card-right { box-shadow: var(--card-shadow); }

  .home-framed-image {
    flex: 1;
    max-width: 1280px;
    order: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--card-bg);
    border: var(--card-border);
    box-shadow: var(--card-shadow-centre);
  }

  .home-framed-image img {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 160px);
    display: block;
    box-shadow:
      0 12px 28px rgba(0,0,0,0.35),
      0 0 0 2px rgba(18,8,2,0.85),
      0 0 0 4px rgba(212,175,55,0.95);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .home-framed-image img {
    max-height: clamp(300px, 65vh, 850px);
  }
}

@media (min-width: 1800px) {
  .home-hero-layout {
    max-width: 1880px;
    gap: 72px;
    padding-left: 72px;
    padding-right: 72px;
  }

  .home-framed-image { max-width: 1360px; }
  .home-side-card { flex-basis: 240px; }
}

/* ===== HOME SCROLL INDICATOR ===== */
.home-scroll-indicator {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
  pointer-events: none;
}

.home-scroll-indicator.visible {
  opacity: 1;
  pointer-events: auto;
  animation: scrollBounce 2.4s ease-in-out 0.8s infinite;
}

.home-scroll-indicator span {
  display: block;
  font-size: 1.6rem;
  color: rgba(207,171,118,0.6);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  line-height: 1;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) rotate(90deg) translateX(0); }
  50% { transform: translateX(-50%) rotate(90deg) translateX(6px); }
}

/* ===== FOLIO SECTION ===== */
.folio-hero-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 20px;
  gap: 24px;
}

.folio-side-card {
  display: block;
  width: 100%;
  padding: 24px;
  background: rgba(74, 53, 50, 0.5);
  border: 1px solid rgba(185, 140, 120, 0.2);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.folio-side-card h3 {
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  color: var(--card-text);
  margin-bottom: 12px;
}

.folio-side-card p {
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  color: var(--card-detail);
  line-height: 1.6;
  margin-bottom: 0;
}

.folio-framed-image {
  width: 100%;
  position: relative;
  order: -1;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--card-bg);
  border: var(--card-border);
}

.folio-framed-image img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.folio-story-frame-wrap { display: contents; }

.folio-story-frame {
  position: relative;
  width: 100%;
  display: block;
  background: transparent;
  overflow: hidden;
  z-index: 2;
}

.folio-story-frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  margin: 0;
  opacity: 1;
  transform: scale(1);
  border: none;
  filter: none;
}

/* Non-first images are stacked and hidden by default; GSAP controls which is visible */
.folio-story-frame img:not(:first-child) {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  opacity: 0;
}

.folio-side-card-label {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--card-muted);
  margin-bottom: 12px;
  text-shadow: var(--card-emboss-light);
}

.folio-side-card-title {
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--card-text);
  margin-bottom: 0;
  line-height: 1.4;
  text-shadow: var(--card-emboss);
  position: relative;
  padding-right: 24px;
}

.folio-side-card-title::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4em;
  color: rgba(207,171,118,0.88);
  transition: transform 0.3s ease, color 0.3s ease;
  text-shadow: none;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(207,171,118,0.45);
  border-radius: 50%;
  background: rgba(207,171,118,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,235,210,0.40),
    inset 0 -1px 0 rgba(30,15,5,0.45),
    0 1px 3px rgba(0,0,0,0.45);
}

.card-expanded .folio-side-card-title { margin-bottom: 20px; }
.card-expanded .folio-side-card-title::after {
  transform: rotate(45deg);
  color: rgba(207,171,118,0.95);
  border-color: rgba(207,171,118,0.5);
}

.folio-side-card-divider {
  width: 100%;
  height: 1px;
  background: var(--card-divider);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin-bottom 0.3s ease;
}

.card-expanded .folio-side-card-divider {
  max-height: 2px;
  opacity: 1;
  margin-bottom: 18px;
}

.folio-side-card-details {
  list-style: none;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease;
}

.card-expanded .folio-side-card-details {
  max-height: 400px;
  opacity: 1;
}

.folio-side-card-details li {
  padding: 7px 0;
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  line-height: 1.5;
  letter-spacing: 0.7px;
  color: var(--card-detail);
  border-bottom: 1px solid var(--card-divider);
  text-shadow: var(--card-emboss-light);
}

.folio-side-card-details li:last-child { border-bottom: none; }

#folio-card-right-content { width: 100%; }

.folio-arrow-row {
  display: none;
}

.folio-mobile-pause {
  display: block;
  order: -1;
  margin: 14px auto 0;
  padding: 8px 24px;
  background: rgba(74, 53, 50, 0.5);
  border: 1px solid rgba(185, 140, 120, 0.25);
  border-radius: 4px;
  color: var(--card-muted);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.folio-mobile-pause:active {
  color: var(--card-text);
  border-color: rgba(207,171,118,0.4);
}

.folio-swipe-hint {
  order: -1;
  display: block;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.30);
  padding: 8px 0 4px;
  width: 100%;
  flex-shrink: 0;
}

.slide-hidden .folio-arrow-row { visibility: hidden; }

@media (min-width: 769px) {
  .folio-hero-layout {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 56px;
    max-width: 1600px;
    padding: 0 56px;
    margin: 0 auto;
  }

  .folio-side-card {
    flex: 0 0 200px;
    min-height: 320px;
    padding: 32px 24px;
    background: var(--card-bg);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 1;
    border-radius: 0;
    cursor: default;
  }

  .folio-side-card-title {
    margin-bottom: 20px;
    padding-right: 0;
  }

  .folio-side-card-title::after { display: none; }

  .folio-side-card-divider {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-bottom: 18px;
  }

  .folio-side-card-details {
    max-height: none;
    overflow: visible;
    opacity: 1;
  }

  #folio-card-left  { box-shadow: var(--card-shadow-left); }
  #folio-card-right { box-shadow: var(--card-shadow); }

  #folio { overflow: hidden; }

  #folio-card-right { overflow: visible; }

  #folio-card-right .folio-arrow-row {
    position: absolute;
    top: calc(100% + 44px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    z-index: 10;
    margin: 0;
    width: auto;
  }

  .folio-arrow-row { display: flex; gap: 20px; margin-top: 0; }

  .folio-mobile-pause { display: none; }
  .folio-swipe-hint   { display: none; }

  .folio-arrow {
    width: 38px;
    height: 38px;
    font-size: 22px;
    border-radius: 50%;
  }

  .folio-pause-play {
    font-size: 0.75rem;
    width: 38px;
    height: 38px;
  }

  .folio-story-frame-wrap {
    display: flex;
    position: relative;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
  }

  .folio-framed-image {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    order: unset;
    padding: 24px;
    background: var(--card-bg);
    border: var(--card-border);
    box-shadow: var(--card-shadow-centre);
    align-self: stretch;
  }

  .folio-framed-image img {
    max-height: calc(100vh - 160px);
    display: block;
  }

  .folio-story-frame {
    width: 100%;
    display: grid;
    background: transparent;
    justify-items: center;
    overflow: visible; /* allows gold trim box-shadow to render outside frame bounds */
  }

  .folio-story-frame img {
    grid-area: 1 / 1;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 160px);
    position: static;
    object-fit: contain;
    box-shadow:
      0 12px 28px rgba(0,0,0,0.35),
      0 0 0 2px rgba(18,8,2,0.85),
      0 0 0 4px rgba(212,175,55,0.95);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .folio-framed-image img {
    max-height: calc(100vh - 160px);
  }
}

@media (min-width: 1800px) {
  .folio-hero-layout {
    max-width: 1880px;
    gap: 72px;
    padding-left: 72px;
    padding-right: 72px;
  }

  .folio-framed-image { max-width: 1360px; }
  .folio-side-card { flex-basis: 240px; }
}

/* ===== SAFARI FIX — HOME & FOLIO HEIGHT CHAIN =====
   Safari does not reliably resolve height: 100% on flex children the way
   Chrome and Firefox do, which prevents max-height on the contained images
   from anchoring correctly. This block mirrors the explicit calc(100vh - 120px)
   pattern used by the expanded gallery overlay (.expanded-photo-container /
   .expanded-content-layout), which works in all browsers including Safari.
   Targeting is done via hanging-punctuation + font: -apple-system-body, two
   CSS features recognised exclusively by Safari/WebKit.
   Scoped to min-width: 769px (desktop only) — mobile layouts are unaffected. */
@media (min-width: 769px) {
  @supports (hanging-punctuation: first) and (font: -apple-system-body) {
    .home-hero-layout,
    .folio-hero-layout {
      height: calc(100vh - 120px);
      max-height: calc(100vh - 120px);
    }
  }
}

/* ===== GALLERY SECTION ===== */
#gallery {
  /* This ensures the section fills the whole screen so Pricing doesn't show */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers the cards vertically on mobile */
  scroll-margin-top: 60px;  /* Stops the header from covering the gallery top */
}

.gallery-carousel {
  position: relative;
  width: 100%;
}

.gallery-panel {
  position: static;
  display: none;
  width: 100%;
}

/* Updated Mobile Logic */
@media (max-width: 768px) {
  .gallery-panel:first-child,
  .gallery-panel.mobile-active {
    display: block;
    position: relative;
    /* Ensure no extra padding pushes the content into the next section */
    padding: 0; 
  }

  /* Adjust the grid padding to look cleaner on mobile */
  .gallery-panel .gallery-grid {
    padding: 20px calc(50vw - 100px) 40px !important;
  }
}

.gallery-panel:not(:first-child) {
  margin-top: 0;
  padding-top: 10px;
}

.gallery-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%,
      rgba(255,255,255,0.08) 0%,
      rgba(255,255,255,0.03) 18%,
      transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.gallery-panel::after {
  content: "← swipe →";
  display: block;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.3);
  padding: 6px 0 2px;
}

.gallery-panel .gallery-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: none;
  gap: 16px;
  padding: 10px calc(50vw - 100px) 28px;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  z-index: 2;
}

.gallery-panel .gallery-grid::-webkit-scrollbar { display: none; }

.gallery-nav-bar {
  display: flex;
  position: static;
  justify-content: center;
  align-items: center;
  padding: 12px 0 0;
  gap: 16px;
  transform: none;
  left: auto;
  bottom: auto;
}

.gallery-nav-bar .gallery-arrow { display: none; }
.expanded-photo-overlay { display: none; }

/* ===== GALLERY CARD HEADERS ===== */
.gallery-card-header {
  width: 100%;
  position: relative;
  z-index: 3;
  transition: opacity 0.35s ease;
}

.gallery-card-label {
  font-size: clamp(0.7rem, 1vw, 0.7rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--card-muted);
  margin-bottom: 6px;
  text-shadow: var(--card-emboss-light);
}

.gallery-card-title {
  font-size: clamp(0.88rem, 1.5vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 1.5px;
  color: var(--card-text);
  line-height: 1.4;
  text-shadow: var(--card-emboss);
}

/* ===== GALLERY IMG-WRAP & IMG-INNER (MOBILE BASE) ===== */
.img-wrap {
  position: relative;
  z-index: 1;
  transition: opacity var(--transition-mid);
}

.img-wrap:hover { z-index: 10; }

.gallery-panel .img-wrap {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  scroll-snap-align: center;
  padding: 20px 16px 16px;
  margin: 0;
  overflow: visible;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 1;
  cursor: pointer;
}

.gallery-panel .img-wrap:hover {
  box-shadow: var(--card-shadow-hover);
}

.gallery-panel .img-wrap::before { display: none; }
.gallery-panel .img-wrap::after  { display: none; }

.gallery-panel .img-inner {
  flex: 1;
  width: 100%;
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.img-inner {
  outline: none;
  position: relative;
  display: inline-block;
  transform-style: flat;
  -webkit-transform-style: flat;
  overflow: hidden;
  contain: none;
  transition: box-shadow var(--transition-mid);
}

.img-inner::after {
  z-index: 3;
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.08) 20%,
    rgba(255,255,255,0.03) 35%,
    transparent 65%
  );
  opacity: calc(var(--light, 0) * 0.7);
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
}

/* ===== GALLERY IMAGES (MOBILE) ===== */
.gallery-grid img {
  display: block;
  image-rendering: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform var(--transition-mid);
  transform-style: flat;
  -webkit-transform-style: flat;
  border: none;
  outline: none;
}

.gallery-panel .img-inner img,
.gallery-panel .img-wrap img {
  max-width: 174px;
  max-height: 174px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  aspect-ratio: unset;
  display: block;
  box-shadow: none;
}

/* ===== GALLERY MODAL (MOBILE FULLSCREEN) ===== */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(50,40,35,0.88) 0%, rgba(15,13,11,0.98) 75%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10002; /* well above all page elements */
  padding: 20px;
  overflow: hidden;
}

.gallery-modal.active { display: flex; }

.gallery-modal-close { display: none; }

.gallery-modal img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(207,171,118,0.30),
    0 0 0 2px rgba(0,0,0,0.4),
    0 8px 32px rgba(0,0,0,0.5);
}

/* tap-to-close hint — fades in after photo settles, fades out automatically */
.gallery-modal-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(207,171,118,0.65);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10003;
}

/* ===== GALLERY EDGE CHEVRON HINTS ===== */
.gallery-edge-chevron {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  font-size: 2.2rem;
  font-weight: 300;
  color: rgba(207,171,118,0.7);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  line-height: 1;
}

.gallery-edge-chevron-right {
  right: clamp(8px, calc(50vw - 135px), 40px);
}

.gallery-edge-chevron-left {
  left: clamp(8px, calc(50vw - 135px), 40px);
}

/* ===== GALLERY DOT INDICATORS ===== */
.gallery-dot-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.55);
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-shadow: none;
  position: relative;
}

.gallery-dot.active {
  width: 8px;
  height: 8px;
  background: rgba(212,175,55,0.92);
  border-color: rgba(212,175,55,0.92);
  box-shadow: 0 0 6px rgba(212,175,55,0.35);
}

.gallery-dot:hover:not(.active) {
  border-color: rgba(212,175,55,0.85);
  background: rgba(212,175,55,0.15);
  box-shadow: none;
}

/* ===== GALLERY SECTION — DESKTOP (UNIFIED SYSTEM) ===== */
@media (min-width: 769px) {
  #gallery {
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
  }

  .gallery-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* UNIFIED PANEL: Stacks all galleries perfectly on top of each other */
  .gallery-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex !important; 

    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 1;
    transition: opacity 0.5s ease;
  }

  /* Visibility: Only the active panel is shown and clickable */
  .gallery-panel.active,
  .gallery-panel.mobile-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }

  .gallery-panel::after,
  .gallery-panel::before {
    display: none;
  }

  /* UNIFIED GRID: Centers the 3 cards identically in every gallery */
  .gallery-panel .gallery-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 60px;
    gap: clamp(30px, 6vw, 100px);
    overflow: visible;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: auto;
  }

  /* UNIFIED CARDS: Uses nth-child to handle shadows for ALL panels at once */
  .gallery-panel .img-wrap {
    position: relative;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    padding: 28px 24px 24px;
    margin: 0;
    background: var(--card-bg);
    border: var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: box-shadow 0.45s ease, transform 0.45s ease, opacity 0.4s ease;
    cursor: pointer;
  }

  /* Card 1 (Left) */
  .gallery-panel .img-wrap:nth-child(1) { box-shadow: var(--card-shadow-left); }
  .gallery-panel .img-wrap:nth-child(1):hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-left-hover);
  }

  /* Card 2 (Center) */
  .gallery-panel .img-wrap:nth-child(2) { box-shadow: var(--card-shadow-centre); }
  .gallery-panel .img-wrap:nth-child(2):hover {
    transform: translateY(-20px);
    box-shadow: var(--card-shadow-centre-hover);
  }

  /* Card 3 (Right) */
  .gallery-panel .img-wrap:nth-child(3) { box-shadow: var(--card-shadow); }
  .gallery-panel .img-wrap:nth-child(3):hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
  }

  .gallery-panel .img-wrap::after {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.20;
    background-image: var(--linen-weave);
    background-size: 300px 300px;
    mix-blend-mode: soft-light;
  }

  /* UNIFIED IMAGE SIZING */
  .gallery-panel .img-inner {
    width: 100%;
    margin-top: 16px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gallery-panel .gallery-grid img,
  .gallery-panel .img-inner img {
    height: auto;
    width: auto;
    max-height: calc(100vh - 350px);
    max-width: clamp(200px, 25vw, 500px);
    object-fit: contain;
    display: block;
    border: none;
    outline: none;
    transition: transform 0.35s ease;
    box-shadow: none; /* Shadow is handled by the card wrap and img-inner effects */
  }

  /* Individual image inner shadows for that framed look */
  .gallery-panel .img-wrap:nth-child(1) .img-inner img {
    box-shadow: -6px 12px 28px rgba(0,0,0,0.38), 0 0 0 2px rgba(18,8,2,0.85), 0 0 0 4px rgba(212,175,55,0.95);
  }
  .gallery-panel .img-wrap:nth-child(2) .img-inner img {
    box-shadow: 0 12px 28px rgba(0,0,0,0.35), 0 0 0 2px rgba(18,8,2,0.85), 0 0 0 4px rgba(212,175,55,0.95);
  }
  .gallery-panel .img-wrap:nth-child(3) .img-inner img {
    box-shadow: 6px 12px 28px rgba(0,0,0,0.38), 0 0 0 2px rgba(18,8,2,0.85), 0 0 0 4px rgba(212,175,55,0.95);
  }

  /* Visual Interactivity */
  .gallery-panel .img-wrap:hover .gallery-card-header { opacity: 1; }
  .gallery-grid:hover .img-wrap:not(:hover) { opacity: 0.35; }

  /* NAVIGATION */
  .gallery-nav-bar {
    display: flex;
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    gap: 32px;
    z-index: 200;
    padding: 0;
  }

  .gallery-nav-bar .gallery-arrow { display: flex; }
}
/* ===== CONTENT SECTIONS (SHARED) ===== */
.content {
  text-align: center;
}

.content h2 {
  display: none;
}

.content p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== SHARED IMAGE STYLES ===== */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  width: 100%;
  transform: translateY(-40px);
}

.hero-text {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 0;
}

.hero h1 {
  font-size: 1.8rem;
  letter-spacing: 3px;
  font-weight: 300;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--muted);
}

/* ===== PRICING SECTION ===== */
.pricing-wrapper {
  text-align: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}

.pricing-wrapper h2 {
  display: none;
}

.pricing-subtitle {
  display: none;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 320px;
  margin: 16px auto 0;
  gap: 28px;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.pricing-card--featured {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,228,205,0.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(225,185,160,0.09) 0%, rgba(195,155,130,0.05) 100%),
    linear-gradient(180deg, #523a37 0%, #3e2b28 100%);
  border: 1px solid rgba(195,150,130,0.35);
  box-shadow:
    0 36px 90px rgba(20,20,22,0.62),
    0 16px 38px rgba(20,20,22,0.40),
    0 0 50px rgba(245,235,220,0.02),
    inset 0  2px 0 rgba(255,248,235,0.45),
    inset 2px 0  0 rgba(255,248,235,0.125),
    inset -2px 0 0 rgba(255,248,235,0.125),
    inset 0 -2px 0 rgba(60,50,35,0.58);
  transform: translateY(0);
  order: -1;
}

.pricing-card--featured:hover {
  transform: translateY(-6px);
  box-shadow:
    0 48px 110px rgba(20,20,22,0.70),
    0 22px 48px rgba(20,20,22,0.48),
    0 0 70px rgba(245,235,220,0.025),
    inset 0  2px 0 rgba(255,248,235,0.52),
    inset 2px 0  0 rgba(255,248,235,0.15),
    inset -2px 0 0 rgba(255,248,235,0.15),
    inset 0 -2px 0 rgba(60,50,35,0.62);
}

.pricing-card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(74,53,50,0.92);
  border: 1px solid rgba(207,171,118,0.5);
  color: rgba(207,171,118,0.95);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 4px 16px;
  white-space: nowrap;
  z-index: 3;
}

.pricing-card-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--card-divider);
  width: 100%;
}

.pricing-tier {
  display: block;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--card-muted);
  margin-bottom: 16px;
  text-shadow: var(--card-emboss-light);
}

.pricing-amount {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--card-text);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: var(--card-emboss);
}

.pricing-currency {
  font-size: clamp(1rem, 2vw, 1.6rem);
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
  color: var(--card-muted);
  text-shadow: var(--card-emboss-light);
}

.pricing-period {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--card-muted);
  text-transform: uppercase;
  text-shadow: var(--card-emboss-light);
}

.pricing-features {
  list-style: none;
  width: 100%;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  padding: 7px 0;
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  line-height: 1.5;
  letter-spacing: 0.7px;
  color: var(--card-detail);
  border-bottom: 1px solid var(--card-divider);
  text-shadow: var(--card-emboss-light);
}

.pricing-features li:first-child { border-top: none; }
.pricing-features li:last-child { border-bottom: none; }

.pricing-btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(207,171,118,0.9);
  border: 1px solid rgba(207,171,118,0.45);
  padding: 12px 32px;
  transition: all 0.3s ease;
  text-shadow: var(--card-emboss-light);
}

.pricing-btn:hover {
  color: rgba(207,171,118,1);
  border-color: rgba(207,171,118,0.7);
  background: rgba(207,171,118,0.1);
  box-shadow: 0 0 12px rgba(207,171,118,0.15);
}

.pricing-btn--featured {
  color: rgba(207,171,118,1);
  border-color: rgba(207,171,118,0.6);
  background: rgba(207,171,118,0.06);
}

.pricing-btn--featured:hover {
  background: rgba(207,171,118,0.14);
  border-color: rgba(207,171,118,0.8);
  box-shadow: 0 0 16px rgba(207,171,118,0.2);
}

#pricing, #about {
  min-height: 100vh;
  height: auto;
  position: relative;
}

@media (max-width: 768px) {
  #pricing, #about {
    /* Allow the section to grow with content and show shadows/borders */
    overflow: visible !important;
    /* Start content from top to prevent cards being pushed off-screen by centering */
    justify-content: flex-start;
    /* Extra breathing room for the cards at section transitions */
    padding-top: 80px;
    padding-bottom: 100px;
  }
  #folio {
    padding-top: 80px;
    justify-content: flex-start;
  }
}

.pricing-card {
  cursor: pointer;
}

.pricing-card .pricing-features {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin-bottom 0.3s ease;
}

.pricing-card.card-expanded .pricing-features {
  max-height: 500px;
  opacity: 1;
  margin-bottom: 32px;
}

.pricing-card .pricing-btn { display: none; }

.pricing-card-img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  margin: 14px 0;
  border: 1px solid rgba(185,140,120,0.2);
  display: block;
}

/* Single-line teaser visible on desktop and portrait mobile,
   hidden in landscape mobile where card height is limited */
.pricing-tagline {
  font-size: 0.78rem;
  letter-spacing: 1px;
  font-style: italic;
  color: var(--card-muted);
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.4;
  text-shadow: var(--card-emboss-light);
}

.pricing-card-header {
  position: relative;
  padding-right: 24px;
}

.pricing-card-header::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6em;
  color: rgba(207,171,118,0.88);
  transition: transform 0.3s ease, color 0.3s ease;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(207,171,118,0.45);
  border-radius: 50%;
  background: rgba(207,171,118,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,235,210,0.40),
    inset 0 -1px 0 rgba(30,15,5,0.45),
    0 1px 3px rgba(0,0,0,0.45);
}

.pricing-card.card-expanded .pricing-card-header::after {
  transform: translateY(-50%) rotate(45deg);
  color: rgba(207,171,118,0.95);
  border-color: rgba(207,171,118,0.5);
}

.pricing-extra {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease;
}

.pricing-card.card-expanded .pricing-extra {
  max-height: 600px;
  opacity: 1;
}

.pricing-extra-title {
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  letter-spacing: 2px;
  color: var(--card-text);
  margin: 16px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--card-divider);
  text-shadow: var(--card-emboss);
}

.pricing-extra-details {
  list-style: none;
  width: 100%;
}

.pricing-extra-details li {
  padding: 5px 0;
  font-size: clamp(0.8rem, 1.1vw, 0.85rem);
  line-height: 1.5;
  color: var(--card-detail);
  border-bottom: 1px solid var(--card-divider);
  text-shadow: var(--card-emboss-light);
}

.pricing-extra-details li:last-child { border-bottom: none; }

@media (min-width: 769px) {
  .pricing-wrapper {
    padding: 0 60px;
    max-width: 1800px;
    margin: 0 auto;
  }

  .pricing-wrapper h2 { display: none; }

  .pricing-subtitle { display: none; }

  .pricing-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    max-width: 100%;
    margin: 0;
    gap: clamp(30px, 6vw, 100px);
  }

  .pricing-card {
    flex: 1;
    padding: 42px 32px 38px;
    cursor: default;
  }

  .pricing-card .pricing-features {
    display: none; /* moved to modal — openPricingModal() reads from DOM regardless */
  }

  .pricing-card .pricing-btn { display: inline-block; }

  /* Photo at natural ratio — max-height accounts for all non-image card elements
     (header ~160px, card padding 80px, tagline+button ~68px, img margins 26px = 334px)
     plus section padding (60px) and bars (120px) = 514px total fixed height */
  .pricing-card-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 520px);
    object-fit: unset;
    margin: 16px 0 10px;
    cursor: pointer;
  }

  /* Directional gold trim on pricing photos — mirrors gallery img treatment */
  .pricing-card:nth-child(1) .pricing-card-img {
    box-shadow:
      -6px 12px 28px rgba(0,0,0,0.38),
      0 0 0 2px rgba(18,8,2,0.85),
      0 0 0 4px rgba(212,175,55,0.95);
  }
  .pricing-card:nth-child(2) .pricing-card-img {
    box-shadow:
      0 12px 28px rgba(0,0,0,0.35),
      0 0 0 2px rgba(18,8,2,0.85),
      0 0 0 4px rgba(212,175,55,0.95);
  }
  .pricing-card:nth-child(3) .pricing-card-img {
    box-shadow:
      6px 12px 28px rgba(0,0,0,0.38),
      0 0 0 2px rgba(18,8,2,0.85),
      0 0 0 4px rgba(212,175,55,0.95);
  }

  /* Tagline visible on desktop between photo and MORE */
  .pricing-tagline { display: block; margin-bottom: 16px; }

  .pricing-card-header {
    padding-right: 0;
  }

  .pricing-card-header::after { display: none; }

  .pricing-extra { display: none; }

  .pricing-card:nth-child(1) { box-shadow: var(--card-shadow-left); }
  .pricing-card:nth-child(2) { box-shadow: var(--card-shadow-centre); }
  .pricing-card:nth-child(3) { box-shadow: var(--card-shadow); }
  .pricing-card:nth-child(1):hover { box-shadow: var(--card-shadow-left-hover); }
  .pricing-card:nth-child(2):hover { box-shadow: var(--card-shadow-centre-hover); }
  .pricing-card:nth-child(3):hover { box-shadow: var(--card-shadow-hover); }

  .pricing-card--featured {
    order: unset;
  }

  .pricing-card--featured:hover { transform: translateY(-16px); }

  #pricing {
    align-items: flex-start;
    padding-top: 30px;
    padding-bottom: 30px;
    justify-content: center;
  }
}

/* ===== EXPANDED PHOTO OVERLAY (DESKTOP ONLY) ===== */
.expanded-photo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.50);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.expanded-photo-overlay.active {
  display: flex;
  z-index: 1500;
  pointer-events: auto;
  opacity: 1;
}

.expanded-photo-container {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1501;
  pointer-events: auto;
  overflow: hidden;
  cursor: pointer;
}

.expanded-photo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: none;
  cursor: pointer;
}

.expanded-content-layout {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 88vw;
  max-height: calc(100vh - 120px);
  cursor: pointer;
}

.expanded-frame {
  flex: 1 1 auto;
  min-width: 0;
  padding: 24px;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow-left);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.expanded-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.20;
  background-image: var(--linen-weave);
  background-size: 300px 300px, 300px 300px;
  mix-blend-mode: soft-light;
}

.expanded-info-card {
  flex: 0 0 190px;
  min-height: 300px;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(30px);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.expanded-info-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.20;
  background-image: var(--linen-weave);
  background-size: 300px 300px, 300px 300px;
  mix-blend-mode: soft-light;
}

.expanded-info-label {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--card-muted);
  margin-bottom: 12px;
  text-shadow: var(--card-emboss-light);
}

.expanded-info-title {
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--card-text);
  margin-bottom: 18px;
  line-height: 1.4;
  text-shadow: var(--card-emboss);
}

.expanded-info-divider {
  width: 100%;
  height: 1px;
  background: var(--card-divider);
  margin-bottom: 18px;
}

.expanded-info-details { list-style: none; width: 100%; flex: 1; }

.expanded-info-details li {
  padding: 7px 0;
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  line-height: 1.5;
  color: var(--card-detail);
  border-bottom: 1px solid var(--card-divider);
  letter-spacing: 0.7px;
  text-shadow: var(--card-emboss-light);
}

.expanded-info-details li:last-child { border-bottom: none; }

.expanded-info-footer {
  margin-top: 20px;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(180,160,130,0.35);
  text-shadow: var(--card-emboss-light);
}

.expanded-photo-img {
  max-width: 100%;
  max-height: clamp(300px, calc(100vh - 200px), 1200px);
  object-fit: contain;
  cursor: pointer;
  will-change: transform;
  border: none;
  width: auto;
  height: auto;
  display: block;
  position: relative;
  transform-style: flat;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  transition: none;
  box-shadow:
    0 16px 36px rgba(0,0,0,0.42),
    0 8px 18px rgba(0,0,0,0.30),
    0 0 0 2px rgba(18,8,2,0.85),
    0 0 0 4px rgba(212,175,55,0.95),
    inset 0  2px 0 rgba(212,175,55,0.25),
    inset 0 -2px 0 rgba(40,20,8,0.35);
}

/* ===== PRICING MODAL (DESKTOP ONLY) ===== */
.pricing-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.50);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: none;
  cursor: pointer;
}

.pricing-modal-overlay.active {
  display: flex;
  z-index: 1500;
  pointer-events: auto;
  opacity: 1;
}

.pricing-modal-container {
  position: fixed;
  top: 60px; left: 0;
  width: 100%;
  height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1501;
  pointer-events: auto;
  overflow: hidden;
  cursor: pointer;
}

.pricing-modal-content-layout {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 88vw;
  max-height: calc(100vh - 140px);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.pricing-modal-photo-frame {
  flex: 1 1 auto;
  min-width: 0;
  padding: 24px;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow-left);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-30px);
}

.pricing-modal-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.20;
  background-image: var(--linen-weave);
  background-size: 300px 300px, 300px 300px;
  mix-blend-mode: soft-light;
}

.pricing-modal-photo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-modal-photo-img {
  max-width: 100%;
  max-height: calc(100vh - 200px);
  object-fit: contain;
  width: auto;
  height: auto;
  display: block;
  position: relative;
  border: none;
  box-shadow:
    0 16px 36px rgba(0,0,0,0.42),
    0 8px 18px rgba(0,0,0,0.30),
    0 0 0 2px rgba(18,8,2,0.85),
    0 0 0 4px rgba(212,175,55,0.95),
    inset 0  2px 0 rgba(212,175,55,0.25),
    inset 0 -2px 0 rgba(40,20,8,0.35);
}

.pricing-modal-frame {
  flex: 0 0 auto;
  width: 260px;
  padding: 48px 36px 42px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,228,205,0.10) 0%, transparent 55%),
    linear-gradient(180deg, rgba(225,185,160,0.08) 0%, rgba(195,155,130,0.05) 100%),
    linear-gradient(180deg, #4d3734 0%, #382826 100%);
  border: 1px solid rgba(185,140,120,0.24);
  box-shadow:
    0 36px 95px rgba(20,20,22,0.60),
    0 16px 38px rgba(20,20,22,0.38),
    inset 0  2px 0 rgba(255,248,235,0.42),
    inset 0 -2px 0 rgba(60,50,35,0.52);
  position: relative;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
}

.pricing-modal-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.20;
  background-image: var(--linen-weave);
  background-size: 300px 300px, 300px 300px;
  mix-blend-mode: soft-light;
}

.pricing-modal-tier-label {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--card-muted);
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
  text-shadow: var(--card-emboss-light);
}

.pricing-modal-price {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--card-text);
  line-height: 1;
  margin-bottom: 6px;
  position: relative;
  z-index: 3;
  text-shadow: var(--card-emboss);
}

.pricing-modal-currency {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
  color: var(--card-muted);
}

.pricing-modal-period {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--card-muted);
  margin-bottom: 26px;
  position: relative;
  z-index: 3;
  text-shadow: var(--card-emboss-light);
}

.pricing-modal-divider {
  width: 55%;
  height: 1px;
  background: var(--card-divider);
  margin: 0 auto 22px;
  position: relative;
  z-index: 3;
}

.pricing-modal-features {
  list-style: none;
  width: 100%;
  position: relative;
  z-index: 3;
}

.pricing-modal-features li {
  padding: 7px 0;
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  line-height: 1.5;
  letter-spacing: 0.7px;
  color: var(--card-detail);
  border-bottom: 1px solid var(--card-divider);
  text-align: center;
  text-shadow: var(--card-emboss-light);
}

.pricing-modal-features li:last-child { border-bottom: none; }

.pricing-modal-info-card {
  flex: 0 0 190px;
  min-height: 300px;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(30px);
  cursor: pointer;
}

.pricing-modal-info-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.20;
  background-image: var(--linen-weave);
  background-size: 300px 300px, 300px 300px;
  mix-blend-mode: soft-light;
}

.pricing-modal-info-label {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--card-muted);
  margin-bottom: 12px;
  position: relative;
  z-index: 3;
  text-shadow: var(--card-emboss-light);
}

.pricing-modal-info-title {
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--card-text);
  margin-bottom: 18px;
  line-height: 1.4;
  position: relative;
  z-index: 3;
  text-shadow: var(--card-emboss);
}

.pricing-modal-info-divider {
  width: 100%;
  height: 1px;
  background: var(--card-divider);
  margin-bottom: 18px;
  position: relative;
  z-index: 3;
}

.pricing-modal-info-details {
  list-style: none;
  width: 100%;
  flex: 1;
  position: relative;
  z-index: 3;
}

.pricing-modal-info-details li {
  padding: 7px 0;
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  line-height: 1.5;
  color: var(--card-detail);
  border-bottom: 1px solid var(--card-divider);
  letter-spacing: 0.7px;
  text-shadow: var(--card-emboss-light);
}

.pricing-modal-info-details li:last-child { border-bottom: none; }

.pricing-modal-info-footer {
  margin-top: 20px;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(180,160,130,0.35);
  position: relative;
  z-index: 3;
  text-shadow: var(--card-emboss-light);
}

/* ===== ABOUT MODAL (DESKTOP ONLY) ===== */
.about-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.50);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: none;
  cursor: pointer;
}

.about-modal-overlay.active {
  display: flex;
  z-index: 1500;
  pointer-events: auto;
  opacity: 1;
}

.about-modal-container {
  position: fixed;
  top: 60px; left: 0;
  width: 100%;
  height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1501;
  pointer-events: auto;
  overflow: hidden;
  cursor: pointer;
}

.about-modal-content-layout {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 24px;
  max-width: 88vw;
  max-height: calc(100vh - 140px);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

/* Large photo — left column, untouched, no text overlay */
.about-modal-photo-frame {
  flex: 1 1 auto;
  min-width: 0;
  padding: 24px;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow-left);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-30px);
}

.about-modal-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.20;
  background-image: var(--linen-weave);
  background-size: 300px 300px, 300px 300px;
  mix-blend-mode: soft-light;
}

.about-modal-photo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-modal-photo-img {
  max-width: 100%;
  max-height: calc(100vh - 200px);
  object-fit: contain;
  width: auto;
  height: auto;
  display: block;
  position: relative;
  box-shadow:
    0 16px 36px rgba(0,0,0,0.42),
    0 8px 18px rgba(0,0,0,0.30),
    0 0 0 2px rgba(18,8,2,0.85),
    0 0 0 4px rgba(212,175,55,0.95),
    inset 0  2px 0 rgba(212,175,55,0.25),
    inset 0 -2px 0 rgba(40,20,8,0.35);
}

/* Three cards stacked vertically — right column */
.about-modal-cards-column {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateX(30px);
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}

.about-modal-card {
  flex: 1;
  min-height: 0;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.about-modal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.20;
  background-image: var(--linen-weave);
  background-size: 300px 300px, 300px 300px;
  mix-blend-mode: soft-light;
}

.about-modal-card-label {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--card-muted);
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
  text-shadow: var(--card-emboss-light);
}

.about-modal-card-title {
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--card-text);
  margin-bottom: 10px;
  line-height: 1.4;
  position: relative;
  z-index: 3;
  text-shadow: var(--card-emboss);
}

.about-modal-card-divider {
  width: 100%;
  height: 1px;
  background: var(--card-divider);
  margin-bottom: 10px;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.about-modal-card-details {
  list-style: none;
  width: 100%;
  flex: 1;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.about-modal-card-details li {
  padding: 5px 0;
  font-size: clamp(0.76rem, 1vw, 0.83rem);
  line-height: 1.5;
  color: var(--card-detail);
  border-bottom: 1px solid var(--card-divider);
  letter-spacing: 0.5px;
  text-shadow: var(--card-emboss-light);
}

.about-modal-card-details li:last-child { border-bottom: none; }

/* ===== SECTION LIGHT LAYERS ===== */
.section-light-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

#home .section-light-layer {
  background:
    radial-gradient(ellipse at 50% 5%, rgba(255,255,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(180,160,120,0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 10% 85%, rgba(120,140,160,0.03) 0%, transparent 40%);
}

#folio .section-light-layer {
  background:
    radial-gradient(ellipse at 50% 5%, rgba(255,255,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(180,160,120,0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 10% 85%, rgba(120,140,160,0.03) 0%, transparent 40%);
}

#gallery .section-light-layer {
  background:
    radial-gradient(ellipse at 50% 5%, rgba(255,255,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(180,160,120,0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 10% 85%, rgba(120,140,160,0.03) 0%, transparent 40%);
}

#pricing .section-light-layer {
  background:
    radial-gradient(ellipse at 50% 5%, rgba(255,255,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(180,160,120,0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 10% 85%, rgba(120,140,160,0.03) 0%, transparent 40%);
}

#about .section-light-layer {
  background:
    radial-gradient(ellipse at 50% 5%, rgba(255,255,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(180,160,120,0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 10% 85%, rgba(120,140,160,0.03) 0%, transparent 40%);
}

/* ===== WOOD FRAMES ===== */
/* ===== PAPER TEXTURES ===== */
.folio-side-card::after,
.home-side-card::after,
.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.20;
  background-image: var(--linen-weave);
  background-size: 300px 300px, 300px 300px;
  mix-blend-mode: soft-light;
  border-radius: inherit;
}

/* ===== TABLET ADJUSTMENTS (481px–768px) ===== */
@media (min-width: 481px) and (max-width: 768px) {
  .slide { padding: 80px 32px 80px; }
  .slide.hero { padding-top: 100px; }

  .home-hero-layout,
  .folio-hero-layout { padding: 0 32px; gap: 28px; }

  .home-side-card,
  .folio-side-card { padding: 28px; }

  .gallery-panel .img-wrap {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    padding: 22px 18px 18px;
  }

  .gallery-panel .img-inner img,
  .gallery-panel .img-wrap img {
    max-width: 220px;
    max-height: 220px;
  }

  .gallery-panel .gallery-grid {
    gap: 20px;
    padding: 10px calc(50vw - 130px) 28px;
  }

  .pricing-cards { max-width: 400px; }
  .pricing-card { padding: 36px 28px 32px; }

  .pricing-wrapper { padding: 0 32px; }
}

/* ===== SLIDE UTILITY ===== */
.slide-hidden {
  pointer-events: none;
}

/* Include #home here to prevent section collapse and background bleed */
.slide, #home, #folio, #gallery, #pricing, #about {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  scroll-margin-top: 60px; 
  overflow: hidden; /* This keeps backgrounds contained inside their sections */
  display: flex;
  flex-direction: column;
}

html { height: -webkit-fill-available; }
body { min-height: 100vh; min-height: -webkit-fill-available; }

@supports (-webkit-touch-callout: none) {
  .home-framed-image img,
  .folio-framed-image img,
  .folio-story-frame img {
    image-rendering: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}

@media (min-width: 769px) {
  #pricing, #about { height: auto; min-height: 100vh; overflow: visible; }
  
  @supports (-webkit-hyphens: none) and (not (-webkit-touch-callout: none)) {
    .home-framed-image img, .folio-story-frame img {
      width: auto !important;
      max-width: 100% !important;
    }
  }
}

@supports (-webkit-hyphens:none) {
  .slide { min-height: 100svh; }
}

/* ===== SAFARI VIEWPORT FIXES ===== */
@media (min-width: 2560px) {
  .home-hero-layout {
    max-width: 2400px;
    gap: 80px;
    padding: 20px 80px 0;
  }

  .home-side-card { flex-basis: 300px; }

  .home-framed-image {
    max-width: none;
  }

  .home-framed-image img {
    max-height: 82vh;
  }

  .folio-hero-layout {
    max-width: 2400px;
    gap: 80px;
    padding: 0 80px;
  }

  .folio-side-card { flex-basis: 300px; }

  .folio-framed-image {
    max-width: none;
  }

  .folio-framed-image img {
    max-height: 82vh;
  }

  .gallery-panel .gallery-grid {
    max-width: 2400px;
    padding: 0 80px;
  }

  .gallery-panel .img-wrap {
    max-width: 35%;
  }

  .gallery-panel .img-inner img {
    max-height: calc(100vh - 280px);
  }

  .expanded-photo-img {
    max-height: calc(100vh - 160px);
  }

  .pricing-cards {
    max-width: 1800px;
    gap: 64px;
  }

  .pricing-wrapper {
    max-width: 1800px;
  }
}

/* ===== ABOUT SECTION CARDS ===== */
.about-content {
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-card {
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.about-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.20;
  background-image: var(--linen-weave);
  background-size: 300px 300px, 300px 300px;
  mix-blend-mode: soft-light;
}

.about-card-img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;   /* cover retained for mobile where cards are full-width and cropping is acceptable */
  border: 1px solid rgba(185,140,120,0.2);
  margin-bottom: 16px;
}

.about-card-label {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--card-muted);
  margin-bottom: 10px;
  text-shadow: var(--card-emboss-light);
}

.about-card-title {
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--card-text);
  margin-bottom: 0;
  line-height: 1.4;
  text-shadow: var(--card-emboss);
  position: relative;
  padding-right: 30px;
}

.about-card-title::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4em;
  color: rgba(207,171,118,0.88);
  transition: transform 0.3s ease, color 0.3s ease;
  text-shadow: none;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(207,171,118,0.45);
  border-radius: 50%;
  background: rgba(207,171,118,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,235,210,0.40),
    inset 0 -1px 0 rgba(30,15,5,0.45),
    0 1px 3px rgba(0,0,0,0.45);
}

.card-expanded .about-card-title { margin-bottom: 16px; }
.card-expanded .about-card-title::after {
  transform: rotate(45deg);
  color: rgba(207,171,118,0.95);
  border-color: rgba(207,171,118,0.5);
}

.about-card-divider {
  width: 100%;
  height: 1px;
  background: var(--card-divider);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin-bottom 0.3s ease;
}

.card-expanded .about-card-divider {
  max-height: 2px;
  opacity: 1;
  margin-bottom: 16px;
}

.about-card-text {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease;
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  line-height: 1.7;
  color: var(--card-detail);
  text-shadow: var(--card-emboss-light);
}

.card-expanded .about-card-text {
  max-height: 500px;
  opacity: 1;
}

/* "More" CTA — hidden on mobile, shown on desktop */
.about-btn {
  display: none;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(207,171,118,0.9);
  border: 1px solid rgba(207,171,118,0.45);
  padding: 10px 28px;
  transition: all 0.3s ease;
  text-shadow: var(--card-emboss-light);
  margin-top: 16px;
  align-self: center;
  cursor: pointer;
}

.about-btn:hover {
  color: rgba(207,171,118,1);
  border-color: rgba(207,171,118,0.7);
  background: rgba(207,171,118,0.1);
  box-shadow: 0 0 12px rgba(207,171,118,0.15);
}

@media (min-width: 481px) and (max-width: 768px) {
  .about-content { padding: 0 32px; }

  .about-card-img { max-height: 250px; }
}

@media (min-width: 769px) {
  .about-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(30px, 6vw, 100px);
    max-width: 1800px;
    padding: 0 60px;
    margin: 0 auto;
    width: 100%;
  }

  .about-card {
    padding: 32px 28px;
    cursor: default;
  }

  .about-card-title {
    margin-bottom: 16px;
    padding-right: 0;
  }

  .about-card-title::after { display: none; }

  .about-card-divider {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-bottom: 16px;
  }

  .about-card-text {
    max-height: none;
    overflow: visible;
    opacity: 1;
  }

  .about-card-img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 240px);
    object-fit: unset;
    cursor: pointer;
    /* Neutral gold trim — matches gallery image treatment */
    box-shadow:
      0 12px 28px rgba(0,0,0,0.35),
      0 0 0 2px rgba(18,8,2,0.85),
      0 0 0 4px rgba(212,175,55,0.95);
  }

  /* Show More button on desktop */
  .about-btn { display: inline-block; }
}

@media (min-width: 2560px) {
  .about-content {
    max-width: 2000px;
    gap: 48px;
  }
}

/* ===== UNIFIED GALLERY OPTIMIZATION (PREVENTS CLIPPING) ===== */
@media (min-width: 769px) {
  /* 1. The Grid: Allow vertical expansion but constrain width */
  .gallery-panel .gallery-grid {
    max-width: 100vw !important;
    box-sizing: border-box !important;
    /* Vertical padding (40px) gives the cards room to "pop" up/down on hover without clipping */
    padding: 40px 60px 148px !important; 
    /* CRITICAL: Changed to visible so hover animations aren't cut off */
    overflow: visible !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* 2. The Card Wrap: Ensure 3 cards fit within 100vw (including gaps) */
  .gallery-panel .img-wrap {
    /* 26vw allows 3 cards + 2 large gaps + 120px total side padding to fit safely */
    max-width: 26vw !important; 
    flex: 0 1 auto !important; 
    min-width: 0 !important;
    /* Ensure the card itself doesn't clip its own contents */
    overflow: visible !important; 
  }

  /* 3. The Image: Proportionally sized to the card wrap */
  .gallery-panel .img-wrap .img-inner img {
    /* Set image slightly smaller than card width to respect card padding */
    max-width: 22vw !important; 
    
    /* Calculate height to ensure we don't hit header/footer */
    max-height: calc(100vh - 450px) !important; 

    
    width: auto !important;
    height: auto !important;
    display: block !important;
    /* Ensure shadows and borders don't get flattened */
    transform-style: preserve-3d;
  }

  /* 4. Landscape Specifics (Gallery 3) */
  .gallery-panel .img-wrap.is-landscape {
    max-width: 35vw !important;
  }
  
  .gallery-panel .img-wrap.is-landscape .img-inner img {
    max-width: 31vw !important;
  }

  /* 5. Hover Fix: Ensure the active card is always on top of the others */
  .gallery-panel .img-wrap:hover {
    z-index: 100 !important;
  }
}
/* ===== MOBILE PERFORMANCE & RENDERING FIXES ===== */
@media (max-width: 768px) {
  /* Solid header/footer — eliminates backdrop-filter compositing that causes
     the white flash at the top of screen during fast scroll */
  header, footer {
    background: #1a1d22;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #topBtn { display: none; } /* shown only on desktop via min-width rule */

  /* Re-enable scroll-behavior smooth on desktop (removed from base to fix
     mobile momentum scroll friction). Nav clicks use JS behavior:'smooth'. */

  /* Flat body background — removes multi-layer radial+linear gradient stack
     that creates compositing overhead and contributes to scroll jank */
  html, body {
    background: #25282e;
  }

  /* Remove section light overlay gradients — not visible enough on mobile
     to justify the extra paint/composite cost */
  .section-light-layer {
    display: none;
  }

  /* Remove gallery panel top-glow radial gradient pseudo-element */
  .gallery-panel::before {
    display: none;
  }

  /* Remove SVG linen-weave texture overlays on all mobile cards —
     the filter-based SVG is expensive and invisible at small sizes */
  .home-side-card::after,
  .folio-side-card::after,
  .pricing-card::after,
  .about-card::after {
    display: none;
  }

  /* Give the page scroll container a solid background colour so
     any render gap between sections shows dark, not white */
  .slide, #home, #folio, #gallery, #pricing, #about {
    background-color: #25282e;
  }
}
/* ===== LANDSCAPE PHONE OVERRIDES ===== */
/* ===== PORTRAIT TABLET (769–1024px, taller than wide) ===== */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {

  .slide,
  #home, #folio, #gallery, #pricing, #about {
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  #pricing, #about { justify-content: center; }

  #home::before, #folio::before, #gallery::before,
  #pricing::before, #about::before { display: block; }

  /* ── HOME ─────────────────────────────────────────── */
  .home-hero-layout {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 0 24px !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    height: auto !important;
  }

  .home-framed-image {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    order: -1 !important;
    padding: 16px !important;
  }

  .home-framed-image img { max-height: 50vh !important; }

  .home-side-card {
    flex: 1 1 0 !important;
    min-height: unset !important;
    min-width: 0 !important;
    padding: 24px 20px !important;
    order: 1 !important;
    background: rgba(74, 53, 50, 0.5) !important;
    border: 1px solid rgba(185, 140, 120, 0.2) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  .home-card-title          { padding-right: 24px !important; margin-bottom: 0 !important; }
  .home-card-title::after   { display: flex !important; }
  .home-card-divider        { max-height: 0 !important; overflow: hidden !important; opacity: 0 !important; margin: 0 !important; }
  .home-card-details        { max-height: 0 !important; opacity: 0 !important; overflow: hidden !important; }
  .card-expanded .home-card-divider { max-height: 2px  !important; opacity: 1 !important; margin: 18px 0 !important; }
  .card-expanded .home-card-details { max-height: 400px !important; opacity: 1 !important; }

  /* ── FOLIO ────────────────────────────────────────── */
  .folio-hero-layout {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 0 24px !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    height: auto !important;
  }

  .folio-story-frame-wrap {
    flex: 0 0 100% !important;
    order: -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .folio-framed-image {
    flex: unset !important;
    width: 100% !important;
    order: -1 !important;
    padding: 16px !important;
    align-self: stretch !important;
  }

  .folio-framed-image img,
  .folio-story-frame img { max-height: 45vh !important; }

  .folio-side-card {
    flex: 1 1 0 !important;
    min-height: unset !important;
    min-width: 0 !important;
    padding: 24px 20px !important;
    background: rgba(74, 53, 50, 0.5) !important;
    border: 1px solid rgba(185, 140, 120, 0.2) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    cursor: pointer !important;
  }

  .folio-side-card-title          { padding-right: 24px !important; margin-bottom: 0 !important; }
  .folio-side-card-title::after   { display: flex !important; }
  .folio-side-card-divider        { max-height: 0 !important; overflow: hidden !important; opacity: 0 !important; margin-bottom: 0 !important; }
  .folio-side-card-details        { max-height: 0 !important; opacity: 0 !important; overflow: hidden !important; }
  .card-expanded .folio-side-card-divider { max-height: 2px  !important; opacity: 1 !important; margin-bottom: 18px !important; }
  .card-expanded .folio-side-card-details { max-height: 400px !important; opacity: 1 !important; }

  .folio-arrow-row      { display: none !important; }
  .folio-mobile-pause   { display: block !important; }
  .folio-swipe-hint     { display: block !important; }
  #folio { overflow: visible !important; }

  .home-hero-layout,
  .folio-hero-layout { max-height: none !important; }

  /* ── GALLERY: mobile swipe, large photos ──────────── */
  #gallery {
    min-height: 100vh !important;
    min-height: 100svh !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .gallery-carousel {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .gallery-panel {
    position: static    !important;
    display: none       !important;
    width: 100%         !important;
    height: auto        !important;
    opacity: 1;
    pointer-events: auto !important;
    will-change: auto   !important;
    padding: 0          !important;
    margin: 0           !important;
  }

  .gallery-panel.mobile-active { display: block !important; }

  .gallery-panel::after  { display: block !important; }
  .gallery-panel::before { display: none !important; }

  .gallery-panel .gallery-grid {
    display: flex              !important;
    flex-direction: row        !important;
    flex-wrap: nowrap          !important;
    overflow-x: scroll         !important;
    overflow-y: visible        !important;
    scroll-snap-type: x mandatory !important;
    overscroll-behavior-x: none !important;
    gap: 24px                  !important;
    padding: 10px 18vw 28px    !important;
    justify-content: flex-start !important;
    align-items: center        !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100%            !important;
    width: 100%                !important;
    margin: 0                  !important;
  }

  .gallery-panel .img-wrap {
    position: relative  !important;
    flex: 0 0 auto      !important;
    width: auto         !important;
    height: auto        !important;
    max-width: unset    !important;
    padding: 24px 20px 20px !important;
    margin: 0           !important;
    overflow: visible   !important;
    transform: none     !important;
    cursor: pointer     !important;
    box-shadow: var(--card-shadow) !important;
    scroll-snap-align: center !important;
  }

  .gallery-panel .img-wrap:hover { transform: none !important; }

  .gallery-panel .img-inner {
    width: auto          !important;
    margin-top: 12px    !important;
    position: relative  !important;
    display: flex       !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .gallery-panel .img-wrap .img-inner img,
  .gallery-panel .img-inner img,
  .gallery-panel .img-wrap img {
    max-width: 60vw     !important;
    max-height: 55vh    !important;
    width: auto         !important;
    height: auto        !important;
    opacity: 1          !important;
    display: block      !important;
    box-shadow: none    !important;
  }

  /* Override desktop .is-landscape specificity (0,4,1 vs 0,3,1) */
  .gallery-panel .img-wrap.is-landscape {
    max-width: unset    !important;
  }
  .gallery-panel .img-wrap.is-landscape .img-inner img {
    max-width: 60vw     !important;
    max-height: 55vh    !important;
  }

  .gallery-nav-bar {
    position: static    !important;
    bottom: auto        !important;
    left: auto          !important;
    transform: none     !important;
    padding: 10px 0 0   !important;
    display: flex       !important;
  }

  .gallery-nav-bar .gallery-arrow { display: none !important; }

  /* ── PRICING: desktop cards, tighter gaps ──────────── */
  .pricing-wrapper { padding: 0 20px !important; }
  .pricing-cards   { gap: 16px !important; }
  .pricing-card    { padding: 28px 18px 24px !important; }
  .pricing-card-img { max-height: calc(100vh - 580px) !important; }

  /* ── PRICING MODAL: photo top, two cards below (grid) ── */
  .pricing-modal-content-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    max-width: 94vw !important;
    align-items: start !important;
  }

  .pricing-modal-photo-frame {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    max-width: fit-content !important;
    max-height: 45vh !important;
    padding: 16px !important;
  }

  .pricing-modal-photo-img { max-height: 38vh !important; }

  .pricing-modal-frame {
    width: auto !important;
    min-width: 0 !important;
    padding: 28px 20px 24px !important;
  }

  .pricing-modal-info-card {
    min-width: 0 !important;
    min-height: auto !important;
  }

  /* ── ABOUT: 2×2 grid, tap opens modal ─────────────── */
  .about-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    max-width: 100% !important;
    padding: 0 24px !important;
    margin: 0 !important;
    width: 100% !important;
    align-items: flex-start !important;
  }

  .about-card {
    flex: 0 0 calc(50% - 8px) !important;
    padding: 22px !important;
    cursor: pointer !important;
  }

  .about-card-img {
    max-height: 200px !important;
    display: block !important;
    object-fit: cover !important;
  }

  .about-card-title    { padding-right: 30px !important; }
  .about-card-title::after { display: flex !important; }
  .about-card-divider  { display: none !important; }
  .about-card-text     { display: none !important; }
  .about-btn           { display: none !important; }

  /* ── ABOUT MODAL: photo top, two cards below (grid) ── */
  .about-modal-content-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 94vw !important;
    align-items: start !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 140px) !important;
  }

  .about-modal-photo-frame {
    justify-self: center !important;
    max-width: fit-content !important;
    max-height: 40vh !important;
    padding: 16px !important;
  }

  .about-modal-photo-img { max-height: 35vh !important; }

  .about-modal-cards-column {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100% !important;
  }

  .about-modal-card {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: auto !important;
    cursor: pointer !important;
  }

  .about-modal-card-title {
    padding-right: 30px !important;
    margin-bottom: 0 !important;
  }

  .about-modal-card-title::after {
    content: '+' !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(207,171,118,0.45) !important;
    border-radius: 50% !important;
    color: rgba(207,171,118,0.88) !important;
    background: rgba(207,171,118,0.10) !important;
    font-size: 1.4em !important;
    z-index: 3 !important;
    transition: transform 0.3s ease !important;
    box-shadow:
      inset 0 1px 0 rgba(255,235,210,0.40),
      inset 0 -1px 0 rgba(30,15,5,0.45),
      0 1px 3px rgba(0,0,0,0.45) !important;
  }

  .about-modal-card-divider {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    margin-bottom: 0 !important;
    transition: max-height 0.4s ease, opacity 0.35s ease, margin-bottom 0.3s ease !important;
  }

  .about-modal-card-details {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition: max-height 0.45s ease, opacity 0.35s ease !important;
  }

  .about-modal-card.modal-card-expanded .about-modal-card-title {
    margin-bottom: 10px !important;
  }

  .about-modal-card.modal-card-expanded .about-modal-card-title::after {
    transform: rotate(45deg) !important;
    color: rgba(207,171,118,0.95) !important;
    border-color: rgba(207,171,118,0.5) !important;
  }

  .about-modal-card.modal-card-expanded .about-modal-card-divider {
    max-height: 2px !important;
    opacity: 1 !important;
    margin-bottom: 10px !important;
  }

  .about-modal-card.modal-card-expanded .about-modal-card-details {
    max-height: 400px !important;
    opacity: 1 !important;
  }
}

/* ===== LANDSCAPE TABLET GALLERY (JS-driven .swipe-gallery class) =====
   Applied when useSwipeGallery() returns true and isMobile is false.
   Only affects the gallery section — all other sections keep desktop layout. */
html.swipe-gallery #gallery {
  min-height: 100vh !important;
  min-height: 100svh !important;
  height: auto !important;
  padding: 0 !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

html.swipe-gallery .gallery-carousel {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

html.swipe-gallery .gallery-panel {
  position: static    !important;
  display: none       !important;
  width: 100%         !important;
  height: auto        !important;
  opacity: 1;
  pointer-events: auto !important;
  will-change: auto   !important;
  padding: 0          !important;
  margin: 0           !important;
}

html.swipe-gallery .gallery-panel.mobile-active { display: block !important; }

html.swipe-gallery .gallery-panel::after  { display: block !important; }
html.swipe-gallery .gallery-panel::before { display: none !important; }

html.swipe-gallery .gallery-panel .gallery-grid {
  display: flex              !important;
  flex-direction: row        !important;
  flex-wrap: nowrap          !important;
  overflow-x: scroll         !important;
  overflow-y: visible        !important;
  scroll-snap-type: x mandatory !important;
  overscroll-behavior-x: none !important;
  gap: 28px                  !important;
  padding: 10px 26vw 28px    !important;
  justify-content: flex-start !important;
  align-items: center        !important;
  -webkit-overflow-scrolling: touch !important;
  max-width: 100%            !important;
  width: 100%                !important;
  margin: 0                  !important;
}

html.swipe-gallery .gallery-panel .img-wrap {
  position: relative  !important;
  flex: 0 0 auto      !important;
  width: auto         !important;
  height: auto        !important;
  max-width: unset    !important;
  padding: 28px 24px 24px !important;
  margin: 0           !important;
  overflow: visible   !important;
  transform: none     !important;
  cursor: pointer     !important;
  box-shadow: var(--card-shadow) !important;
  scroll-snap-align: center !important;
}

html.swipe-gallery .gallery-panel .img-wrap:hover { transform: none !important; }

html.swipe-gallery .gallery-panel .img-inner {
  width: auto          !important;
  margin-top: 12px    !important;
  position: relative  !important;
  display: flex       !important;
  align-items: center !important;
  justify-content: center !important;
}

html.swipe-gallery .gallery-panel .img-wrap .img-inner img,
html.swipe-gallery .gallery-panel .img-inner img,
html.swipe-gallery .gallery-panel .img-wrap img {
  max-width: 45vw     !important;
  max-height: 55vh    !important;
  width: auto         !important;
  height: auto        !important;
  opacity: 1          !important;
  display: block      !important;
  box-shadow: none    !important;
}

/* Override desktop .is-landscape specificity */
html.swipe-gallery .gallery-panel .img-wrap.is-landscape {
  max-width: unset    !important;
}
html.swipe-gallery .gallery-panel .img-wrap.is-landscape .img-inner img {
  max-width: 45vw     !important;
  max-height: 55vh    !important;
}

html.swipe-gallery .gallery-nav-bar {
  position: static    !important;
  bottom: auto        !important;
  left: auto          !important;
  transform: none     !important;
  padding: 10px 0 0   !important;
  display: flex       !important;
}

html.swipe-gallery .gallery-nav-bar .gallery-arrow { display: none !important; }

/* ── LANDSCAPE TABLET ABOUT: 2×2 grid, tap opens modal ── */
html.swipe-gallery .about-content {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  max-width: 1000px !important;
  padding: 0 24px !important;
  margin: 0 auto !important;
  width: 100% !important;
  align-items: flex-start !important;
}

html.swipe-gallery .about-card {
  flex: 0 0 calc(50% - 8px) !important;
  padding: 22px !important;
  cursor: pointer !important;
}

html.swipe-gallery .about-card-img {
  max-height: 200px !important;
  display: block !important;
  object-fit: cover !important;
}

html.swipe-gallery .about-card-title {
  padding-right: 30px !important;
}

html.swipe-gallery .about-card-title::after { display: flex !important; }

/* Hide desktop expand UI */
html.swipe-gallery .about-card-divider  { display: none !important; }
html.swipe-gallery .about-card-text     { display: none !important; }
html.swipe-gallery .about-btn           { display: none !important; }

/* Targets phones rotated to landscape (height ≤ 500px, width ≤ 1024px).
   Restores mobile card behaviour + contains layout between header and footer. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1024px) {

  /* --- SECTIONS: scrollable, solid bg, padded for fixed bars --- */
  .slide,
  #home, #folio, #gallery, #pricing, #about {
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #25282e;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  #pricing, #about {
    justify-content: flex-start;
  }

  /* --- SOLID BARS (no blur compositing) --- */
  header, footer {
    background: #1a1d22;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* --- SECTION TITLES: show gold heading on all sections --- */
  #home::before,
  #folio::before,
  #gallery::before,
  #pricing::before,
  #about::before {
    display: block;
  }

  /* Remove performance-heavy overlays */
  .section-light-layer { display: none; }
  .gallery-panel::before { display: none; }
  .home-side-card::after,
  .folio-side-card::after,
  .pricing-card::after,
  .about-card::after { display: none; }

  /* ── HOME ─────────────────────────────────────────── */
  .home-hero-layout {
    flex-direction: column;
    gap: 14px;
    padding: 0 16px;
    max-width: 420px;   /* mirror portrait width so frame looks contained */
    margin: 0 auto;
    height: auto;
  }

  .home-framed-image {
    flex: unset;
    width: 100%;
    max-width: 100%;
    order: -1;
    padding: 12px;
  }

  .home-framed-image img {
    max-height: 38vh;
  }

  .home-side-card {
    flex: unset;
    flex-basis: unset;
    min-height: unset;
    width: 100%;
    order: 1;
    background: rgba(74, 53, 50, 0.5);
    border: 1px solid rgba(185, 140, 120, 0.2);
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
  }

  .home-card-title          { padding-right: 24px; margin-bottom: 0; }
  .home-card-title::after   { display: flex; }
  .home-card-divider        { max-height: 0 !important; overflow: hidden !important; opacity: 0 !important; margin: 0 !important; }
  .home-card-details        { max-height: 0 !important; opacity: 0 !important; overflow: hidden !important; }
  .card-expanded .home-card-divider { max-height: 2px  !important; opacity: 1 !important; margin: 18px 0 !important; }
  .card-expanded .home-card-details { max-height: 400px !important; opacity: 1 !important; }

  /* ── FOLIO ────────────────────────────────────────── */
  .folio-hero-layout {
    flex-direction: column;
    gap: 14px;
    padding: 0 16px;
    max-width: 420px;   /* same portrait-width constraint */
    margin: 0 auto;
    height: auto;
  }

  .folio-story-frame-wrap { display: contents; }

  .folio-framed-image {
    flex: unset;
    width: 100%;
    order: -1;
    padding: 12px;
  }

  .folio-framed-image img,
  .folio-story-frame img   { max-height: 35vh; }

  .folio-side-card {
    flex: unset;
    flex-basis: unset;
    min-height: unset;
    width: 100%;
    background: rgba(74, 53, 50, 0.5);
    border: 1px solid rgba(185, 140, 120, 0.2);
    border-radius: 4px;
    box-shadow: none;
    flex-direction: unset;
    align-items: unset;
    justify-content: unset;
    cursor: pointer;
  }

  .folio-side-card-title          { padding-right: 24px; margin-bottom: 0; }
  .folio-side-card-title::after   { display: flex; }
  .folio-side-card-divider        { max-height: 0 !important; overflow: hidden !important; opacity: 0 !important; margin-bottom: 0 !important; }
  .folio-side-card-details        { max-height: 0 !important; opacity: 0 !important; overflow: hidden !important; }
  .card-expanded .folio-side-card-divider { max-height: 2px  !important; opacity: 1 !important; margin-bottom: 18px !important; }
  .card-expanded .folio-side-card-details { max-height: 400px !important; opacity: 1 !important; }

  .folio-arrow-row      { display: none !important; }
  .folio-mobile-pause   { display: block; }
  .folio-swipe-hint     { display: block; }

  #folio { overflow: visible; }

  /* ── GALLERY ──────────────────────────────────────── */
  #gallery {
    height: auto;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .gallery-carousel {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
  }

  /* Reset panels to mobile stacking */
  .gallery-panel {
    position: static    !important;
    display: none       !important;
    width: 100%         !important;
    height: auto        !important;
    opacity: 1          !important;
    pointer-events: auto !important;
    will-change: auto   !important;
    padding: 0          !important;
    margin: 0           !important;
  }

  .gallery-panel.mobile-active { display: block !important; }

  /* Restore mobile horizontal-scroll grid */
  .gallery-panel .gallery-grid {
    display: flex              !important;
    flex-direction: row        !important;
    flex-wrap: nowrap          !important;
    overflow-x: scroll         !important;
    overflow-y: visible        !important;
    scroll-snap-type: x mandatory !important;
    overscroll-behavior-x: none !important;
    gap: 16px                  !important;
    padding: 10px calc(50vw - 100px) 28px !important;
    justify-content: flex-start !important;
    align-items: center        !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100%            !important;
    width: 100%                !important;
    margin: 0                  !important;
  }

  /* Mobile card sizing — intrinsic wrap around photo */
  .gallery-panel .img-wrap {
    position: relative  !important;
    flex: 0 0 auto      !important;
    width: auto         !important;
    height: auto        !important;
    max-width: unset    !important;
    padding: 16px 14px 14px !important;
    margin: 0           !important;
    overflow: visible   !important;
    transform: none     !important;
    cursor: pointer     !important;
    box-shadow: var(--card-shadow) !important;
    scroll-snap-align: center !important;
  }

  .gallery-panel .img-wrap:nth-child(1):hover,
  .gallery-panel .img-wrap:nth-child(2):hover,
  .gallery-panel .img-wrap:nth-child(3):hover { transform: none !important; }

  .gallery-panel .img-inner {
    width: auto          !important;
    margin-top: 10px    !important;
    position: relative  !important;
    display: flex       !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Fix: match the high-specificity desktop rule that resolves to
     calc(100vh - 450px) = negative at ~430px landscape height,
     collapsing images to zero. This selector wins via cascade order. */
  .gallery-panel .img-wrap .img-inner img {
    max-width: 160px    !important;
    max-height: 160px   !important;
    width: auto         !important;
    height: auto        !important;
    opacity: 1          !important;
    display: block      !important;
    box-shadow: none    !important;
  }

  /* Also cover the shorter-selector variant */
  .gallery-panel .img-inner img,
  .gallery-panel .img-wrap img {
    max-width: 160px    !important;
    max-height: 160px   !important;
    width: auto         !important;
    height: auto        !important;
    opacity: 1          !important;
    display: block      !important;
    box-shadow: none    !important;
  }

  /* Restore dots-only nav bar at static position */
  .gallery-nav-bar {
    position: static    !important;
    bottom: auto        !important;
    left: auto          !important;
    transform: none     !important;
    padding: 10px 0 0   !important;
    display: flex       !important;
  }

  .gallery-nav-bar .gallery-arrow { display: none !important; }

  /* Restore swipe hint */
  .gallery-panel::after { display: block; }

  /* ── PRICING: 3-column, portrait-style collapsed (photo + CTE, no tagline) ── */
  #pricing {
    align-items: center;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .pricing-wrapper {
    padding: 0 12px;
    max-width: 100%;
  }

  /* Hide desktop heading and subtitle — gold ::before replaces them */
  .pricing-wrapper h2  { display: none !important; }
  .pricing-subtitle    { display: none !important; }

  /* 3 cards in one row */
  .pricing-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
    margin: 12px 0 0;
    gap: 12px;
    align-items: start;
  }

  .pricing-card {
    padding: 20px 14px 18px;
    cursor: pointer;
  }

  /* Featured: no lift, natural order */
  .pricing-card--featured {
    transform: translateY(0) !important;
    order: unset;
  }
  .pricing-card--featured:hover { transform: translateY(0) !important; }

  /* Directional shadows */
  .pricing-card:nth-child(1) { box-shadow: var(--card-shadow-left)   !important; }
  .pricing-card:nth-child(2) { box-shadow: var(--card-shadow-centre) !important; }
  .pricing-card:nth-child(3) { box-shadow: var(--card-shadow)        !important; }

  /* Show photo */
  .pricing-card-img { display: block; max-height: 120px; margin: 10px 0 8px; }

  /* Hide tagline — space too tight in landscape */
  .pricing-tagline { display: none !important; }

  /* Restore + expand button */
  .pricing-card-header { padding-right: 24px; }
  .pricing-card-header::after { display: flex !important; }

  /* Features collapsed, tap to expand — mirrors portrait behaviour */
  .pricing-card .pricing-features {
    display: block !important;
    max-height: 0      !important;
    overflow: hidden   !important;
    opacity: 0         !important;
    margin-bottom: 0   !important;
  }
  .pricing-card.card-expanded .pricing-features {
    max-height: 500px  !important;
    opacity: 1         !important;
    margin-bottom: 20px !important;
  }

  /* Extra info collapsed too */
  .pricing-extra { display: block; max-height: 0; overflow: hidden; opacity: 0; }
  .pricing-card.card-expanded .pricing-extra { max-height: 600px; opacity: 1; }

  /* Hide desktop CTA — modal is desktop-only */
  .pricing-card .pricing-btn { display: none !important; }

  /* ── ABOUT: 2×2 grid, portrait-style collapsed (photo + CTE) ─────────────── */
  #about {
    flex-direction: column;
    align-items: center;
    padding-top: 70px;
    padding-bottom: 70px;
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
  }

  /* Hide desktop h2 — gold ::before handles section label */
  #about > div > h2 { display: none; }
  #about::before    { display: block; }

  .about-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
    padding: 0 12px;
    margin: 0;
    width: 100%;
    align-items: flex-start;
  }

  /* 2 cards per row */
  .about-card {
    flex: 0 0 calc(50% - 6px);
    padding: 18px;
    cursor: pointer;
  }

  /* Photo visible — key reason for 2×2 */
  .about-card-img { max-height: 150px; display: block; }

  /* Restore portrait-style: collapsed until tapped */
  .about-card-title    { padding-right: 30px; margin-bottom: 0; }
  .about-card-title::after { display: flex !important; }

  .about-card-divider {
    max-height: 0      !important;
    overflow: hidden   !important;
    opacity: 0         !important;
    margin-bottom: 0   !important;
  }
  .about-card-text {
    max-height: 0      !important;
    overflow: hidden   !important;
    opacity: 0         !important;
  }
  .card-expanded .about-card-divider {
    max-height: 2px    !important;
    opacity: 1         !important;
    margin-bottom: 16px !important;
  }
  .card-expanded .about-card-text {
    max-height: 500px  !important;
    opacity: 1         !important;
  }
}
