/* DTI Curtains
   Navy velvet and brass, taken from the logo. Cinzel for headings,
   Figtree for reading. */

:root {
  --navy: #1d3563;
  --navy-deep: #0f1f3d;
  --navy-ink: #0a162e;
  --navy-soft: #2a4a85;
  --gold: #c9a45c;
  --gold-light: #e6d3a3;
  --gold-ink: #8a6a2c;
  --mist: #f3f5f8;
  --ink: #1a2130;
  --ink-soft: #4a5468;
  --line: #dde1e8;
  --white: #ffffff;
  --on-dark: rgba(255, 255, 255, 0.86);
  --on-dark-soft: rgba(255, 255, 255, 0.68);
  --line-dark: rgba(255, 255, 255, 0.14);
  --wa: #1f9d55;
  --wa-dark: #157a40;
  --error: #b42318;

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sinhala: "Noto Sans Sinhala", "Iskoola Pota", sans-serif;

  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: clamp(1.4rem, 1.15rem + 0.9vw, 1.75rem);
  --t-xl: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  --t-2xl: clamp(2.4rem, 1.4rem + 4.2vw, 4.75rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 78rem;
  --header-h: 4.75rem;
  --radius: 10px;
  --radius-lg: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 50px -28px rgba(10, 22, 46, 0.45);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(201, 164, 92, 0.25);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 0.2em; }
a:hover { color: var(--gold-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, summary, input, select, textarea { touch-action: manipulation; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 6px;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}
h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-md); font-family: var(--sans); font-weight: 600; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

.si {
  font-family: var(--sinhala);
  font-size: 0.95em;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease-out);
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn:active { transform: scale(0.97); }
/* fill sweeps across on hover, like a curtain drawn over the button */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary::before { background: var(--navy-deep); }
.btn-primary:hover { color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy-ink); }
.btn-gold::before { background: var(--gold-light); }
.btn-gold:hover { color: var(--navy-ink); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa::before { background: var(--wa-dark); }
.btn-wa:hover { color: var(--white); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost::before { background: var(--navy); }
.btn-ghost:hover { color: var(--white); }
.btn-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-light::before { background: var(--white); }
.btn-light:hover { color: var(--navy); border-color: var(--white); }

/* ---------- Header (unchanged design) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand { display: block; flex: none; }
.brand img { height: 3.4rem; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.nav .btn { min-height: 2.6rem; padding: 0.5rem 1.15rem; }

.menu-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 0;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.4rem; height: 2px;
  margin-inline: auto;
  background: var(--navy);
  position: relative;
  transition: transform 0.25s, background-color 0.25s;
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(20, 38, 69, 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--line); color: var(--gold-ink); }
  .nav .btn { min-height: 3rem; }
  .brand img { height: 2.75rem; }
}

/* ---------- Shared section bits ---------- */

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-mist { background: var(--mist); }
.section-dark { background: var(--navy-deep); color: var(--on-dark); }
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark .si { color: var(--on-dark-soft); }

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-head p { color: var(--ink-soft); font-size: var(--t-md); line-height: 1.55; }
.section-dark .section-head p { color: var(--on-dark-soft); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* A short brass rod with rings: the brand's divider */
.rod-mark {
  display: block;
  width: 5.5rem;
  height: 12px;
  background:
    radial-gradient(circle, transparent 3px, var(--gold) 3.5px, var(--gold) 5px, transparent 5.5px) 6px 50% / 18px 12px repeat-x,
    linear-gradient(var(--gold), var(--gold)) 0 50% / 100% 2px no-repeat;
}

.split-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.split-head .section-head { margin-bottom: 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--navy-ink);
  color: var(--white);
  isolation: isolate;
}

.hero-slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero-slide.is-active img { animation: ken-burns 9s ease-out forwards; }
@keyframes ken-burns { to { transform: scale(1); } }

/* Velvet backdrop: soft pleats and a brass glow behind the window */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 45%, rgba(201, 164, 92, 0.22), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 46px, rgba(0, 0, 0, 0.12) 46px 48px, transparent 48px 92px),
    linear-gradient(160deg, var(--navy-deep), var(--navy-ink) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* Photo frame: tall rounded panel, a gold outline set behind it,
   and the next photo peeking in from the corner */
.hero-visual {
  position: relative;
  justify-self: center;
}
.hero-stage {
  position: relative;
  padding: 0 1.5rem 1.5rem 0;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 1.5rem 0 0 1.5rem;
  border: 2px solid var(--gold);
  border-radius: 28px;
  opacity: 0.8;
}
.hero-frame {
  position: relative;
  z-index: 1;
  height: clamp(24rem, 62vh, 37rem);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  background: var(--navy);
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.75);
}
.hero-peek {
  position: absolute;
  z-index: 2;
  left: -3.5rem; bottom: 4.5rem;
  width: clamp(7rem, 10vw, 9.5rem);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
  background: var(--navy);
}
.hero-peek img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s; }
.hero-peek img.is-swapping { opacity: 0; }
.hero-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  /* as wide as the photo above, never wider, however many dots there are */
  width: 0;
  min-width: 100%;
}
.hero-dots { display: flex; gap: 4px; flex: 0 1 auto; min-width: 0; }
.hero-dot {
  position: relative;
  flex: 0 1 2rem;
  min-width: 0.9rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
}
.hero-dot::before,
.hero-dot::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
}
.hero-dot::after { background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active::after { animation: tab-progress var(--slide-time, 6.5s) linear forwards; }
.hero.is-paused .hero-dot.is-active::after { animation: none; transform: scaleX(1); }
.hero-dot:hover::before { background: rgba(255, 255, 255, 0.5); }
@keyframes tab-progress { to { transform: scaleX(1); } }

.hero-body {
  align-self: center;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem) clamp(2rem, 4vw, 3rem);
}
.hero-content { max-width: 40rem; display: grid; gap: 1.4rem; }
.hero-place {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--gold-light);
  font-weight: 500;
}
.hero h1 { color: var(--white); }
.hero-brand {
  display: block;
  margin-bottom: 0.35em;
  font-size: 0.42em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-lede { font-size: var(--t-md); line-height: 1.55; color: var(--on-dark); max-width: 34rem; }
.hero .si { color: var(--gold-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-dark);
  font-size: 0.95rem;
}
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero-facts svg { width: 1.15rem; height: 1.15rem; color: var(--gold); }

/* Style switcher along the bottom edge, doubling as slide progress */
.hero-bar {
  border-top: 1px solid var(--line-dark);
  background: rgba(10, 22, 46, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-bar .wrap { display: flex; align-items: stretch; gap: 0.5rem; }
.hero-tabs {
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(9rem, 1fr);
  overflow-x: auto;
  scrollbar-width: none;
}
.hero-tabs::-webkit-scrollbar { display: none; }
.hero-tab {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1rem 1.1rem 0;
  border: 0;
  background: none;
  color: var(--on-dark-soft);
  text-align: left;
  transition: color 0.2s;
}
.hero-tab {
  text-decoration: none;
  border-top: 2px solid transparent;
  margin-top: -1px;
}
.hero-tab:hover { color: var(--white); border-top-color: var(--gold); }
.hero-tab strong { font-weight: 600; font-size: 0.98rem; }
.hero-tab span { font-size: 0.82rem; }
.hero-pause {
  flex: none;
  align-self: center;
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
}
.hero-pause svg { width: 1rem; height: 1rem; }
.hero-pause:hover { background: rgba(255, 255, 255, 0.12); }

/* Velvet curtains that draw open on the first visit */
.curtains { display: none; }
.js .curtains.is-playing {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.curtain {
  position: absolute;
  top: 0; bottom: 0;
  width: 50.5%;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 30%),
    repeating-linear-gradient(90deg,
      #0e1d3b 0, #1d3563 22px, #36579a 34px, #1d3563 46px, #0e1d3b 68px);
  box-shadow: inset 0 -6px 0 var(--gold), inset 0 -9px 0 #7d612f;
}
.curtain-l { left: 0; transform-origin: left center; }
.curtain-r { right: 0; transform-origin: right center; }
.valance {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3.2rem;
  z-index: 1;
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
  border-bottom: 3px solid var(--gold);
  -webkit-mask: radial-gradient(ellipse 50% 100% at 50% 0, #000 70%, transparent 71%) 0 0 / 7rem 3.2rem repeat-x;
          mask: radial-gradient(ellipse 50% 100% at 50% 0, #000 70%, transparent 71%) 0 0 / 7rem 3.2rem repeat-x;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { margin-top: 0.5rem; }
  /* 3:4 frame, as tall as the old clamp(18rem, 52vh, 24rem) but never wider than the screen */
  .hero-grid { container-type: inline-size; }
  .hero-frame { height: auto; width: min(calc(100cqw - 1.5rem), clamp(13.5rem, 39vh, 18rem)); }
  .hero-peek { left: -1rem; bottom: 3.5rem; width: 6rem; border-width: 4px; }
  .hero-tab { padding-right: 0.75rem; }
  .hero-tab span { display: none; }
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--gold);
  color: var(--navy-ink);
  overflow: hidden;
  border-block: 1px solid #b38f48;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.95rem 0;
  list-style: none;
}
.marquee li {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
  font-family: var(--display);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  font-weight: 600;
  white-space: nowrap;
}
.marquee li::after {
  content: "";
  width: 12px; height: 12px;
  border: 2px solid var(--navy);
  border-radius: 50%;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Story / about ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.story-media {
  position: relative;
  aspect-ratio: 4 / 4.6;
}
.story-media figure { margin: 0; position: absolute; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.story-media img { width: 100%; height: 115%; object-fit: cover; }
.story-media .main { inset: 0 18% 12% 0; }
.story-media .inset {
  right: 0; bottom: 0;
  width: 46%;
  aspect-ratio: 3 / 4;
  border: 8px solid var(--white);
}
.story-badge {
  position: absolute;
  left: -0.75rem; bottom: 6%;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  width: 8.5rem; height: 8.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow);
}
.story-badge strong { display: block; font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--gold-light); }
.story-badge span { font-size: 0.8rem; line-height: 1.3; }
.story-text { display: grid; gap: 1.25rem; }
.story-text > p { color: var(--ink-soft); }
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.75rem;
  margin: 0.75rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.features li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.2rem 0.9rem; }
.features .ico {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--gold-ink);
}
.features .ico svg { width: 1.35rem; height: 1.35rem; }
.features h3 { font-size: 1.02rem; }
.features p { font-size: 0.95rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-media { max-width: 34rem; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .story-badge { width: 7rem; height: 7rem; left: 0; }
  .story-badge strong { font-size: 1.8rem; }
}

/* ---------- Numbers ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats li {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 0.5rem clamp(1rem, 3vw, 2rem);
  border-left: 1px solid var(--line-dark);
}
.stats li:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  font-family: var(--display);
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4rem);
  line-height: 1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--on-dark-soft); font-size: 0.98rem; max-width: 18ch; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 2rem 0; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- Styles: swatch-book picker ---------- */

.picker {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}
.picker-list { display: grid; align-content: start; gap: 0.5rem; }
.swatch {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-align: left;
  color: var(--ink-soft);
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.swatch:hover { border-color: var(--navy); color: var(--navy); }
.swatch[aria-selected="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(6px);
}
/* fabric sample with a pinked (zig-zag) bottom edge, like a swatch book */
.swatch-img {
  width: 4rem; height: 4.6rem;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%;
}
.swatch strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.2; color: inherit; }
.swatch[aria-selected="false"] strong { color: var(--navy); }
.swatch small { display: block; margin-top: 0.2rem; font-size: 0.85rem; }
.swatch svg { width: 1.2rem; height: 1.2rem; opacity: 0.4; transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.swatch[aria-selected="true"] svg { opacity: 1; color: var(--gold); transform: translateX(3px); }

.picker-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 164, 92, 0.2), transparent 50%),
    var(--navy-deep);
  color: var(--on-dark);
  min-height: 34rem;
}
.picker-media { position: relative; overflow: hidden; background: var(--navy); }
.picker-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.6s ease, transform 1.2s var(--ease-out);
}
.picker-img.is-shown { opacity: 1; transform: scale(1); }
.picker-count {
  position: absolute;
  left: 1rem; top: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 22, 46, 0.7);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}
.picker-info {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.picker-info h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.15; color: var(--white); overflow-wrap: anywhere; }
.picker-info p { color: var(--on-dark); }
.picker-info > * { transition: opacity 0.35s, transform 0.45s var(--ease-out); }
.picker-panel.is-changing .picker-info > * { opacity: 0; transform: translateY(10px); }
.picker-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.picker-thumbs a {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.3s var(--ease-out);
}
.picker-thumbs a:hover { border-color: var(--gold); transform: translateY(-3px); }
.picker-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.picker-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.25rem; }
.picker-note { margin-top: 1.5rem; color: var(--ink-soft); }

@media (max-width: 1000px) {
  .picker { grid-template-columns: 1fr; }
  .picker-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(13.5rem, 1fr);
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .picker-list::-webkit-scrollbar { display: none; }
  .swatch { scroll-snap-align: start; grid-template-columns: 3.25rem 1fr; }
  .swatch svg { display: none; }
  .swatch-img { width: 3.25rem; height: 3.8rem; }
  .swatch[aria-selected="true"] { transform: none; }
}
@media (max-width: 640px) {
  .picker-panel { grid-template-columns: 1fr; min-height: 0; }
  .picker-media { aspect-ratio: 4 / 4.4; }
  .picker-actions .btn { flex: 1 1 100%; }
}

/* ---------- Products bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(12.5rem, auto);
  gap: 1rem;
}
.tile {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-top: 5.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tile .ico {
  position: absolute;
  top: clamp(1.25rem, 2.5vw, 1.75rem);
  left: clamp(1.25rem, 2.5vw, 1.75rem);
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--gold-ink);
  transition: background-color 0.3s, color 0.3s;
}
.tile:hover .ico { background: var(--navy); color: var(--gold-light); }
.tile .ico svg { width: 1.6rem; height: 1.6rem; }
.tile h3 { font-size: 1.15rem; }
.tile p { color: var(--ink-soft); font-size: 0.95rem; }
.tile-photo { color: var(--white); border: 0; }
.tile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.9s var(--ease-out);
}
.tile-photo:hover img { transform: scale(1.05); }
.tile-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 22, 46, 0.92), rgba(10, 22, 46, 0.1) 65%);
}
.tile-photo h3 { color: var(--white); font-family: var(--display); font-weight: 500; font-size: var(--t-lg); }
.tile-photo p { color: var(--on-dark); max-width: 38ch; }
.tile-navy { background: var(--navy); border: 0; color: var(--on-dark); }
.tile-navy h3 { color: var(--white); font-family: var(--display); font-weight: 500; font-size: var(--t-lg); }
.tile-navy p { color: var(--on-dark); }
.tile-navy .ico { background: var(--gold); color: var(--navy-ink); }
.tile-navy:hover .ico { background: var(--gold-light); color: var(--navy-ink); }
.tile-navy .btn { justify-self: start; margin-top: 0.5rem; }
.tile-a { grid-column: span 2; grid-row: span 2; min-height: 27rem; }
.tile-f, .tile-g { grid-column: span 2; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-a { grid-row: span 1; min-height: 22rem; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile-a, .tile-f, .tile-g { grid-column: auto; }
  .tile { min-height: 12rem; }
}

/* ---------- Process timeline ---------- */

.timeline-wrap { position: relative; }
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.timeline-line {
  position: absolute;
  left: 1.75rem; right: 1.75rem; top: 1.75rem;
  height: 2px;
  background: var(--line-dark);
}
.timeline-line span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
}
.timeline li { position: relative; display: grid; gap: 0.6rem; align-content: start; counter-increment: step; }
.timeline li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 1.35rem;
  position: relative;
  z-index: 1;
}
.timeline p { color: var(--on-dark-soft); font-size: 0.98rem; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 2.25rem; }
  .timeline-line { left: 1.75rem; right: auto; top: 1.75rem; bottom: 1.75rem; width: 2px; height: auto; }
  .timeline-line span { transform-origin: top; }
  .timeline li { grid-template-columns: 3.5rem 1fr; column-gap: 1.25rem; }
  .timeline li::before { grid-row: span 2; margin-bottom: 0; }
}

/* ---------- Work ribbons ---------- */

.ribbons { display: grid; gap: 1rem; overflow: hidden; }
.ribbon { display: flex; width: max-content; animation: marquee 70s linear infinite; will-change: transform; }
.ribbon.reverse { animation-direction: reverse; animation-duration: 80s; }
/* hover only on real pointers: on phones a tap leaves :hover stuck and froze the rows */
@media (hover: hover) {
  .ribbons:hover .ribbon { animation-play-state: paused; }
}
.ribbons:focus-within .ribbon { animation-play-state: paused; }
.ribbon a {
  flex: none;
  display: block;
  height: clamp(13rem, 22vw, 18rem);
  aspect-ratio: 3 / 4;
  margin-right: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.ribbon img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.ribbon a:hover img { transform: scale(1.06); }

/* ---------- Promise banner ---------- */

.promise {
  position: relative;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.promise-bg {
  position: absolute;
  inset: -15% 0;
  z-index: -2;
}
.promise-bg img { width: 100%; height: 100%; object-fit: cover; }
.promise::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 31, 61, 0.95), rgba(15, 31, 61, 0.72));
}
.promise-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
}
.promise h2 { color: var(--white); }
.promise-copy { display: grid; gap: 1.25rem; }
.promise-copy > p { color: var(--on-dark); font-size: var(--t-md); max-width: 36rem; }
.promise-copy .btn { justify-self: start; }
.promise-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.75rem;
  list-style: none;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(6px);
}
.promise-list li { display: flex; gap: 0.85rem; align-items: start; }
.promise-list svg { flex: none; width: 1.4rem; height: 1.4rem; color: var(--gold); margin-top: 0.1rem; }
@media (max-width: 860px) { .promise-inner { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 12px no-repeat,
    var(--mist);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-ink); }
.faq .answer { padding: 0 3rem 1.4rem 0; color: var(--ink-soft); }
.faq details[open] .answer { animation: faq-in 0.35s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; }
  .faq .answer { padding-right: 0; }
}

/* ---------- Booking ---------- */

.booking {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.booking-side { display: grid; gap: 1.5rem; }
.booking-side > p { color: var(--on-dark-soft); font-size: var(--t-md); line-height: 1.55; }
.next-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.next-steps li { display: flex; gap: 0.9rem; color: var(--on-dark); }
.next-steps svg { flex: none; width: 1.4rem; height: 1.4rem; color: var(--gold); margin-top: 0.15rem; }
.quick-call {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.05);
}
.quick-call .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-ink);
}
.quick-call .ico svg { width: 1.3rem; height: 1.3rem; }
.quick-call p { color: var(--on-dark-soft); font-size: 0.95rem; }
.quick-call a { color: var(--white); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.quick-call a:hover { color: var(--gold-light); }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.form-title { grid-column: 1 / -1; font-family: var(--display); font-size: var(--t-lg); color: var(--navy); font-weight: 500; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #c3c9d4;
  border-radius: 8px;
  background: var(--white);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%231d3563' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--navy); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.35);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.9rem; }
.field-error:empty { display: none; }
.field-hint { font-size: 0.85rem; color: var(--ink-soft); text-align: right; }
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-top: 0.25rem;
}
.form-foot p { font-size: var(--t-sm); color: var(--ink-soft); flex: 1 1 14rem; }
.form-status { grid-column: 1 / -1; font-weight: 500; color: var(--wa-dark); }
.form-status:empty { display: none; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .form .btn { width: 100%; } }

/* ---------- Contact ---------- */

.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.person {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.person:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.avatar {
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 1.35rem;
}
.avatar.wa { background: var(--wa); color: var(--white); }
.avatar.wa svg { width: 1.5rem; height: 1.5rem; }
.person-name { font-weight: 600; font-size: 1.08rem; color: var(--navy); }
.person-num { display: block; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.person-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  transition: border-color 0.2s, background-color 0.2s;
}
.chip svg { width: 1.05rem; height: 1.05rem; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip-wa { color: var(--wa-dark); }
.chip-wa:hover { border-color: var(--wa); color: var(--wa-dark); background: #effaf3; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.visit-info { display: grid; gap: 1.5rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.25rem); }
.detail { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.75rem; }
.detail svg { width: 1.4rem; height: 1.4rem; color: var(--gold-ink); margin-top: 0.2rem; }
.detail h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.detail p, .detail address { font-style: normal; color: var(--ink-soft); }
.map { width: 100%; height: 100%; min-height: 20rem; border: 0; display: block; background: var(--mist); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: var(--navy-ink);
  color: var(--on-dark-soft);
  font-size: 0.97rem;
  border-top: 3px solid var(--gold);
}
.site-footer a { color: var(--on-dark); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--gold-light); }

.cta-section { padding-block: 0 clamp(4rem, 8vw, 6rem); background: var(--white); }
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(201, 164, 92, 0.28), transparent 55%),
    var(--navy);
  border: 1px solid var(--line-dark);
}
.footer-cta h2 { color: var(--white); font-size: var(--t-xl); }
.footer-cta p { color: var(--on-dark-soft); margin-top: 0.4rem; }
.footer-cta .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem 2rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-brand { display: grid; gap: 1.1rem; align-content: start; }
.footer-brand img { width: 13rem; height: auto; }
.footer-brand .si { color: var(--on-dark-soft); }
.socials { display: flex; gap: 0.6rem; margin-top: 0.3rem; }
.site-footer .socials a {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--white);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.site-footer .socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-ink); transform: translateY(-2px); }
.socials svg { width: 1.15rem; height: 1.15rem; }

.footer-col h2 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.65rem; }
.link-line a { display: inline-flex; align-items: center; gap: 0; transition: gap 0.25s var(--ease-out), color 0.2s; }
.link-line a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease-out);
}
.link-line a:hover { gap: 0.5rem; }
.link-line a:hover::before { width: 0.9rem; }
.footer-contact li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; }
.footer-contact svg { width: 1.1rem; height: 1.1rem; color: var(--gold); margin-top: 0.25rem; }
.footer-contact small { display: block; color: var(--on-dark-soft); font-size: 0.85rem; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--t-sm);
}
.footer-base .credit strong { color: var(--white); font-weight: 600; }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--white);
  font-weight: 500;
}
.to-top svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease-out); }
.to-top:hover { border-color: var(--gold); }
.to-top:hover svg { transform: translateY(-3px); }

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 3.6rem;
  padding: 0 1.25rem 0 1rem;
  border-radius: 999px;
  background: var(--wa);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 25px -8px rgba(21, 122, 64, 0.65);
  transition: background-color 0.2s, transform 0.2s;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--wa);
  animation: wa-ping 2.6s ease-out infinite;
}
@keyframes wa-ping {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}
.wa-float svg { width: 1.75rem; height: 1.75rem; }
.wa-float:hover { background: var(--wa-dark); color: var(--white); transform: translateY(-2px); }
@media (max-width: 560px) {
  .wa-float { width: 3.6rem; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Gallery page ---------- */

.g-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 164, 92, 0.22), transparent 45%),
    var(--navy-ink);
  color: var(--white);
  isolation: isolate;
}
.g-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
}
.crumbs { display: flex; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: var(--t-sm); color: var(--on-dark-soft); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--gold); }
.crumbs a { color: var(--on-dark); }
.crumbs a:hover { color: var(--gold-light); }
.g-hero h1 { color: var(--white); }
.g-hero-copy { display: grid; gap: 1.25rem; }
.g-hero-copy > p { color: var(--on-dark); font-size: var(--t-md); max-width: 34rem; }
.g-hero-stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.g-hero-stats strong { display: block; font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--gold-light); }
.g-hero-stats span { font-size: 0.9rem; color: var(--on-dark-soft); }

.collage { position: relative; height: clamp(18rem, 32vw, 26rem); }
.collage img {
  position: absolute;
  width: 44%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 5px solid var(--white);
  box-shadow: 0 30px 50px -25px rgba(0, 0, 0, 0.7);
}
.collage img:nth-child(1) { left: 0; top: 10%; rotate: -6deg; }
.collage img:nth-child(2) { left: 28%; top: 0; z-index: 2; rotate: 2deg; }
.collage img:nth-child(3) { right: 0; top: 14%; rotate: 7deg; }
@media (max-width: 860px) {
  .g-hero-inner { grid-template-columns: 1fr; }
  .collage { height: 15rem; max-width: 26rem; width: 100%; }
}

.filters {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-block: 0.85rem;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.filter img { width: 2.1rem; height: 2.1rem; border-radius: 50%; object-fit: cover; }
.filter .all-dot {
  display: grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy);
}
.filter .all-dot svg { width: 1rem; height: 1rem; }
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter .count {
  font-weight: 500;
  font-size: 0.8rem;
  min-width: 1.6rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink-soft);
  text-align: center;
}
.filter[aria-pressed="true"] .count { background: rgba(255, 255, 255, 0.18); color: var(--white); }

.cat-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-block: 2rem 1.75rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--mist);
}
.cat-banner img { width: 5.5rem; height: 5.5rem; border-radius: 12px; object-fit: cover; }
.cat-banner h2 { font-size: var(--t-lg); }
.cat-banner p { color: var(--ink-soft); margin-top: 0.25rem; max-width: 52ch; }
@media (max-width: 700px) {
  .cat-banner { grid-template-columns: auto 1fr; }
  .cat-banner .btn { grid-column: 1 / -1; }
  .cat-banner img { width: 4.25rem; height: 4.25rem; }
}

.grid {
  columns: 4 16rem;
  column-gap: 12px;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.grid-item { break-inside: avoid; margin-bottom: 12px; }
.grid-item button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
  cursor: zoom-in;
}
.grid-item img { width: 100%; height: auto; transition: transform 0.7s var(--ease-out); }
.grid-item button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 22, 46, 0.75), rgba(10, 22, 46, 0) 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.grid-item button:hover img { transform: scale(1.05); }
.grid-item button:hover::after,
.grid-item button:focus-visible::after { opacity: 1; }
.grid-item .over {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.grid-item .over svg { width: 1.9rem; height: 1.9rem; flex: none; padding: 0.4rem; border-radius: 50%; background: var(--gold); color: var(--navy-ink); }
.grid-item button:hover .over,
.grid-item button:focus-visible .over { opacity: 1; transform: none; }
@media (hover: none) {
  .grid-item button::after { opacity: 0.6; }
  .grid-item .over { opacity: 1; transform: none; }
}
/* The owner's favourite photos */
.pick-badge {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem 0.3rem 0.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px -6px rgba(10, 22, 46, 0.6);
}
.pick-badge svg { width: 0.85rem; height: 0.85rem; }
.filter .all-dot.is-top,
.avatar.is-top { background: var(--gold); color: var(--navy-ink); }
.avatar.is-top svg { width: 2rem; height: 2rem; }

.empty { padding-block: 4rem; text-align: center; color: var(--ink-soft); }

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 15, 30, 0.97);
  color: var(--white);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(8, 15, 30, 0.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto auto; animation: lb-in 0.3s ease-out; }
@keyframes lb-in { from { opacity: 0; } }
.lb-top, .lb-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(0.75rem, 3vw, 1.5rem);
}
.lb-count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.lb-title { font-family: var(--display); font-size: var(--t-md); }
.lb-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding-inline: clamp(0.5rem, 7vw, 6rem);
  touch-action: pan-y;
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
}
.lb-stage img.is-loading { opacity: 0.3; transform: scale(0.985); }
.lb-btn {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background-color 0.15s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-btn svg { width: 1.4rem; height: 1.4rem; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lb-next { right: clamp(0.5rem, 2vw, 1.5rem); }
.lb-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0.5rem clamp(0.75rem, 3vw, 1.5rem);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.lb-thumbs button {
  flex: none;
  width: 3.6rem; height: 4.5rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: none;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
}
.lb-thumbs button:hover { opacity: 0.85; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-hint { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }
.lightbox :focus-visible { outline-color: var(--gold); }
@media (hover: none) { .lb-hint { display: none; } }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 0.5rem; transform: none; background: rgba(255, 255, 255, 0.16); }
  .lb-stage { padding-bottom: 4rem; }
  .lb-bottom .btn { width: 100%; }
  .lb-thumbs button { width: 3rem; height: 3.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track, .ribbon { animation: none !important; }
  .ribbons { overflow-x: auto; }
  .wa-float::before { display: none; }
}

.cat-banner .avatar svg { width: 2rem; height: 2rem; }

/* Visitor pressed "Pause moving photos": stop every looping row */
.motion-paused .marquee-track,
.motion-paused .ribbon { animation-play-state: paused !important; }
