/* ==========================================================================
   Cute Look Bridal Jewels — single mobile-first stylesheet
   Art direction: cinematic, editorial, dark. Silver and pink from the logo.
   Clipped-edge cards. Constitution rule: nothing moves on its own — no
   autonomous animation, transitions or smooth scrolling. The one exception,
   scroll-linked parallax on quote backgrounds, sits between the
   motion-allowed markers.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL — see assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
/* Dark palette. Pages start in the light theme (data-theme="light" on <html>, below);
   dark comes from the switch. .hero and .quote (photographic, graded to black) always
   stay dark, like a cinema screen, so they re-declare the dark palette. */
:root,
.hero,
.quote,
.site-header--overlay:not(.is-open) .nav-toggle,
.site-header--overlay:not(.is-open) .brand,
.site-header--overlay:not(.is-open) .theme-switch,
.site-header--overlay:not(.is-open) .header-call {
  color-scheme: dark;

  --bg: #08070a;
  --bg-alt: #110f14;
  --surface: #17141b;
  --line: #2c2830;

  --silver: #c9ccd2;
  --silver-bright: #f2f3f5;
  --text: #dcdee3;
  --muted: #a3a6ae;

  --pink: #fc65b0;
  --pink-soft: rgba(252, 101, 176, 0.55);
  --on-pink: #08070a;

  --rule: rgba(201, 204, 210, 0.25);
  --rule-strong: rgba(201, 204, 210, 0.6);
  --edge-1: rgba(201, 204, 210, 0.28);
  --edge-2: rgba(201, 204, 210, 0.06);
  --numeral-stroke: rgba(201, 204, 210, 0.45);
  --ghost-stroke: rgba(252, 101, 176, 0.14);
  --strip-bg: rgba(8, 7, 10, 0.55); /* see-through caption strip */
  --footer-bg: #000000;
  --glow: rgba(252, 101, 176, 0.12);
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f7f2ec;
  --bg-alt: #efe7df;
  --surface: #fffcf8;
  --line: #dfd3c8;

  --silver: #5b4f55;
  --silver-bright: #221a1e;
  --text: #2f262a;
  --muted: #6c6066;

  --pink: #b8155f;
  --pink-soft: rgba(184, 21, 95, 0.45);
  --on-pink: #ffffff;

  --rule: rgba(34, 26, 30, 0.18);
  --rule-strong: rgba(34, 26, 30, 0.45);
  --edge-1: rgba(91, 79, 85, 0.35);
  --edge-2: rgba(91, 79, 85, 0.1);
  --numeral-stroke: rgba(34, 26, 30, 0.35);
  --ghost-stroke: rgba(184, 21, 95, 0.2);
  --strip-bg: #ffffff; /* solid white caption strip */
  --footer-bg: #efe7df;
  --glow: rgba(184, 21, 95, 0.1);
}

:root {
  --wa: #128c55;
  --wa-dark: #0d6e42;

  --font-display: "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 1rem;
  --container: 76rem;
  --header-h: 4.5rem;
  --radius: 1.25rem;

  /* Film grain: a static SVG noise tile */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--silver-bright);
}

h1 { font-size: clamp(2.75rem, 8vw, 5.75rem); }
h2 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h3 { font-size: 1.5rem; }

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--pink);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--pink);
}

a:hover {
  color: var(--silver-bright);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--pink);
  color: var(--on-pink);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: none;
}

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

@media (min-width: 40rem) {
  :root {
    --gutter: 2rem;
  }
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

.icon--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Numbers use lining figures, so "1" reads as a one, not a Roman "I" */
.section-title__num,
.menu-num,
.hero__eyebrow span {
  font-variant-numeric: lining-nums;
}

/* ---------- Scrollbars: slim pink-to-silver thumb on the page colour ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--pink), var(--silver));
}

::-webkit-scrollbar-thumb:hover {
  border-width: 2px;
  background: var(--pink);
}

/* Firefox (no ::-webkit-scrollbar): standard thin scrollbar in brand colours */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--pink) var(--bg);
  }
}

/* ---------- Small editorial pieces ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--pink);
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

.lead {
  max-width: 36rem;
  color: var(--muted);
}

.italic-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--silver);
}

/* Diamond ornament between hairlines */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1.5rem;
  color: var(--pink);
}

.ornament::before,
.ornament::after {
  content: "";
  width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver));
}

.ornament::after {
  transform: scaleX(-1);
}

.ornament span {
  width: 0.5rem;
  height: 0.5rem;
  background: currentColor;
  transform: rotate(45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.75rem;
  border: 1px solid transparent;
  font: 600 0.75rem/1.2 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn--primary {
  background: var(--pink);
  color: var(--on-pink);
}

.btn--primary:hover {
  background: var(--silver-bright);
  color: var(--on-pink);
}

.btn--outline {
  border-color: var(--rule-strong);
  color: var(--silver-bright);
}

.btn--outline:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.btn--wa {
  background: var(--wa);
  color: #ffffff;
}

.btn--wa:hover {
  background: var(--wa-dark);
  color: #ffffff;
}

/* ---------- Rounded cards ----------
   .card is the 1px gradient edge; .card__inner is the face, rounded 1px
   less so the edge stays an even 1px all the way round. */
.card {
  position: relative;
  display: block;
  padding: 1px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--pink-soft), var(--edge-1) 28%, var(--edge-2) 62%, var(--pink-soft));
  color: inherit;
  text-decoration: none;
}

.card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px);
  background: var(--surface);
}

.card--plain {
  background: var(--line);
}

a.card:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

a.card:hover {
  background: linear-gradient(150deg, var(--pink), var(--edge-1) 40%, var(--pink));
  color: inherit;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-alt);
}

/* ---------- Header & navigation ----------
   Phones: menu | logo medallion (centred, hanging below the bar) | call.
   Desktop: medallion + wordmark on the left, links on the right. */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 3.5rem 1fr 3.5rem;
  grid-template-areas:
    "toggle brand end"
    "nav nav nav";
  align-items: center;
  column-gap: 0.5rem;
  min-height: var(--header-h);
}

.brand {
  grid-area: brand;
  justify-self: center;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--silver-bright);
  text-decoration: none;
}

.brand:hover {
  color: var(--silver-bright);
}

/* The logo as a pendant: a round medallion hanging below the header bar */
.brand__medallion {
  position: relative;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin-top: 0.5rem;
  margin-bottom: -2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #221c26 0%, #000000 72%);
  box-shadow:
    0 0 0 1px rgba(201, 204, 210, 0.55),
    0 0 0 5px var(--bg),
    0 0 0 6px var(--pink-soft),
    0 14px 30px rgba(0, 0, 0, 0.75);
}

.brand__logo {
  width: 4.25rem;
  height: 4.25rem;
}

/* Wordmark: the tagline is spaced to the exact width of "Cute Look" (main.js
   fine-tunes it for the visitor's font); negative right margins drop the
   trailing letter-spacing so both lines end flush. */
.brand__text {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand__name {
  margin-right: -0.06em;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.brand__tag {
  margin-top: 0.3rem;
  margin-right: -0.45em;
  font-size: 0.5625rem;
  letter-spacing: 0.45em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--pink);
}

.header-call {
  grid-area: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule-strong);
  color: var(--silver-bright);
}

.header-call .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: none;
  color: var(--silver-bright);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-toggle .icon-close,
.site-header.is-open .nav-toggle .icon-menu {
  display: none;
}

.site-header.is-open .nav-toggle .icon-close {
  display: block;
}

#site-nav {
  grid-area: nav;
}

/* Overlay-only pieces (eyebrow, numerals, notes, contact line) */
.menu-eyebrow,
.menu-num,
.menu-note,
.menu-extra {
  display: none;
}

/* Without JS the links are always visible (a row under the medallion). */
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 1.5rem;
  padding: 2rem 0 0.5rem;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--silver);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-menu a:hover {
  color: var(--pink);
}

.nav-menu a[aria-current="page"] {
  color: var(--silver-bright);
  box-shadow: inset 0 -1px 0 var(--pink);
}

.nav-menu .nav-social {
  display: none;
}

/* Theme switch: a small pill with the pink bead on the moon (dark) or sun (light) side */
.theme-switch {
  grid-area: end;
  justify-self: end;
  position: relative;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  width: 3.5rem;
  height: 2rem;
  padding: 0 0.3rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--silver);
  cursor: pointer;
}

.theme-switch[hidden] {
  display: none;
}

.theme-switch .icon {
  position: absolute;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: -0.45rem;
}

.theme-switch .icon-moon { left: 0.45rem; }
.theme-switch .icon-sun { right: 0.45rem; }

.theme-switch__bead {
  position: relative;
  z-index: 1;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px var(--bg);
}

.theme-switch[aria-checked="true"] .theme-switch__bead {
  margin-left: auto;
}

.theme-switch:hover {
  border-color: var(--pink);
}

@media (max-width: 59.99rem) {
  .js .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 45;
  }

  .js .header-call {
    display: none;
  }

  .js #site-nav {
    display: none;
  }

  /* Full-screen menu: a "programme" of pages on the jaali background */
  .js .site-header.is-open #site-nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 2.5rem) 2.5rem 2.5rem;
    overflow-y: auto;
    background:
      radial-gradient(ellipse at 50% 35%, var(--glow), transparent 65%),
      url("../icons/jaali-dark.svg") center / 44px 44px,
      var(--bg);
    text-align: center;
  }

  .js .site-header.is-open .menu-eyebrow {
    display: inline-flex;
    margin-bottom: 1.25rem;
  }

  .js .site-header.is-open .nav-menu {
    display: block;
    width: 100%;
    max-width: 22rem;
    padding: 0;
  }

  .js .site-header.is-open .nav-menu li + li::before {
    content: "\25C6";
    display: block;
    margin: 0.4rem 0;
    font-size: 0.5rem;
    color: var(--pink);
  }

  .js .site-header.is-open .nav-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0.4rem 0;
    box-shadow: none;
    color: var(--silver-bright);
    letter-spacing: normal;
    text-transform: none;
  }

  .js .site-header.is-open .menu-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--pink);
  }

  .js .site-header.is-open .menu-label {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 12vw, 3.5rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.05;
  }

  .js .site-header.is-open .menu-note {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .js .site-header.is-open .nav-menu a[aria-current="page"] .menu-label {
    color: var(--pink);
  }

  .js .site-header.is-open .menu-extra {
    display: block;
    margin-top: 2rem;
    font-size: 0.8125rem;
    color: var(--muted);
  }

  .menu-extra a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-inline: 0.5rem;
    color: var(--silver-bright);
    text-decoration: none;
  }

  .menu-extra p {
    margin: 0;
  }

  :root[data-theme="light"] .site-header.is-open #site-nav {
    background:
      radial-gradient(ellipse at 50% 35%, var(--glow), transparent 65%),
      url("../icons/jaali-light.svg") center / 44px 44px,
      var(--bg);
  }
}

.menu-open {
  overflow: hidden;
}

.menu-open .wa-float,
.menu-open .ig-float {
  display: none;
}

/* Header laid over the home hero */
.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
}

.js .site-header--overlay.is-open {
  background: var(--bg);
}

/* Over the home photo the desktop links stay light in both themes */
@media (min-width: 60rem) {
  :root[data-theme="light"] .site-header--overlay .nav-menu a {
    color: #e4e6ea;
  }

  :root[data-theme="light"] .site-header--overlay .nav-menu a[aria-current="page"] {
    color: #ffffff;
  }

}

@media (min-width: 60rem) {
  .site-header__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .brand {
    align-self: center;
    gap: 1rem;
  }

  /* Desktop: the same hanging medallion as on phones, a size larger */
  .brand__medallion {
    width: 6.75rem;
    height: 6.75rem;
    margin: 0.5rem 0 -2.75rem;
  }

  .brand__logo {
    width: 5.25rem;
    height: 5.25rem;
  }

  .brand__name {
    font-size: 2.25rem;
  }

  .brand__text {
    display: flex;
  }

  .header-call {
    display: none;
  }

  #site-nav {
    margin-left: auto;
  }

  .theme-switch {
    margin-left: 2rem;
  }

  .nav-menu {
    padding: 0;
    gap: 2.25rem;
  }

  /* WhatsApp and Instagram: plain icons, no box */
  .nav-menu .nav-social {
    display: inline-flex;
  }

  .nav-menu .nav-social + .nav-social {
    margin-left: -1.5rem; /* the two icons sit together */
  }

  .nav-menu .nav-social a {
    justify-content: center;
    width: 2.75rem;
    padding: 0;
    color: var(--silver-bright);
  }

  .nav-menu .nav-social a:hover {
    color: var(--pink);
    box-shadow: none;
  }

  .nav-menu .nav-social .icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* ---------- Hero: cinematic slider ----------
   Always dark (both themes). Each slide's portrait photograph melts into black:
   on phones it fills the top of the screen, on wide screens it stands on the
   right. Slide indicators float at the bottom. Auto-advances (see main.js). */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
  background: #000000;
}

.hero__slides {
  position: relative;
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.hero__slides::-webkit-scrollbar {
  display: none;
}

.hero__slide {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000000;
}

/* Slide 1 (studio shot with pink smoke): let the smoke drift beyond the photo's edges */
.hero__slide--1 {
  background:
    radial-gradient(ellipse 45% 35% at 78% 82%, rgba(214, 120, 160, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 30% at 22% 88%, rgba(214, 120, 160, 0.16), transparent 70%),
    #000000;
}

/* Film grain + edge vignette */
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.7) 100%),
    var(--grain);
  background-size: auto, 180px 180px;
  opacity: 0.55;
  mix-blend-mode: overlay;
}

.hero__media {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 70%;
  -webkit-mask-image: linear-gradient(180deg, #000000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000000 55%, transparent 100%);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.hero__content {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 4rem; /* room for the slide indicators */
}

.hero__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--silver);
}

.hero__eyebrow span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--pink);
}

.hero__title {
  max-width: 11ch;
  margin-bottom: 0.4em;
  font-size: clamp(2.25rem, 10vw, 6.5rem);
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

/* Home headline set on three fixed lines */
.hero__title--lines {
  max-width: none;
}

.hero__line {
  display: block;
  white-space: nowrap;
}

.hero__lead {
  max-width: 30rem;
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: var(--text);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero__actions .btn {
  padding-inline: 1.25rem;
}

/* Slide indicators, floating over the image */
.hero__controls {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* keeps clear of the floating WhatsApp button on phones */
  padding-inline: var(--gutter);
  pointer-events: none;
}

.hero__dots {
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}

.hero__dots[hidden] {
  display: none;
}

.hero__dot {
  display: flex;
  align-items: center;
  width: 2.5rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero__dot span {
  position: relative;
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero__dot:hover span {
  background: rgba(255, 255, 255, 0.6);
}

.hero__dot.is-active span {
  background: rgba(252, 101, 176, 0.35);
}

.hero__dot.is-active span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pink);
  transform-origin: left;
}

.hero__credits {
  margin: 0;
  font-size: 0.5625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
}

.js .hero__credits {
  display: none;
}

/* Wide / landscape: photo standing on the right, text on the left */
@media (min-width: 60rem), (orientation: landscape) {
  .hero__media {
    left: auto;
    right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    height: 100%;
    aspect-ratio: 3 / 4;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000000 22%, #000000 85%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000000 22%, #000000 85%, transparent 100%);
  }

  .hero__content {
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 3rem;
  }

  .hero__title {
    max-width: 12ch;
    font-size: clamp(3rem, 6vw, 5.75rem);
  }

  .hero__lead {
    max-width: 26rem;
  }

  .hero__controls {
    justify-content: center;
    bottom: 1.5rem;
  }
}

/* Short screens (landscape phones): keep everything inside one screen */
@media (max-height: 30rem) {
  .hero__title {
    max-width: 16ch;
    font-size: 1.875rem;
  }

  .hero__eyebrow {
    margin-bottom: 0.25rem;
  }

  .hero__lead {
    display: none;
  }

  .hero__actions {
    margin-top: 0.75rem;
  }

  .hero__controls {
    bottom: 0.25rem;
  }
}

/* ---------- Generic sections ---------- */
.section {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.section--alt {
  background: var(--bg-alt);
}

/* Section heading with an oversized outlined numeral */
.section-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 0 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-title__num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 500;
  line-height: 0.75;
  color: transparent;
  -webkit-text-stroke: 1px var(--numeral-stroke);
}

.section-title h2 {
  margin-bottom: 0;
}

.section-title p {
  grid-column: 1 / -1;
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
}

@media (min-width: 60rem) {
  .section-title p {
    grid-column: 2;
  }
}

/* Page intro (Collections, Contact): ghost word behind a large title */
.page-intro {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 10vw, 7rem) clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.page-intro__ghost {
  position: absolute;
  right: -0.05em;
  top: -0.05em;
  font-family: var(--font-display);
  font-size: clamp(6rem, 24vw, 20rem);
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--ghost-stroke);
  pointer-events: none;
  user-select: none;
}

.page-intro .container {
  position: relative;
}

.page-intro h1 {
  max-width: 14ch;
}

.page-intro p {
  max-width: 34rem;
  color: var(--muted);
}

/* ---------- Home: collection cards (staggered) ---------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}

.collection-grid li:nth-child(even) {
  margin-top: 2.5rem;
}

.collection-card .card__inner {
  position: relative;
}

/* Caption strip: a solid band with a rounded top-right corner.
   White in light mode, see-through in dark. */
.collection-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 1rem 0.85rem;
  background: var(--strip-bg);
  border-top-right-radius: var(--radius);
}


.collection-card h3 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 40rem) {
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .collection-grid li:nth-child(even) {
    margin-top: 0;
  }

  .collection-grid li:nth-child(3n + 2) {
    margin-top: 4rem;
  }

  .collection-grid li:nth-child(3n + 2) + li {
    margin-top: 2rem;
  }
}

/* ---------- About ---------- */
.about {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about__media {
  max-width: 34rem;
}

.about__text p {
  color: var(--muted);
}

.about__text .italic-note {
  margin: 1.5rem 0 2rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--pink);
}

@media (min-width: 60rem) {
  .about {
    grid-template-columns: 5fr 6fr;
    gap: 5rem;
  }
}

/* ---------- Highlights ---------- */
.highlights {
  display: grid;
  gap: 1.25rem;
}

.highlight .card__inner {
  padding: 2rem 1.5rem 1.75rem;
}


.highlight h3 {
  margin-bottom: 0.5rem;
}

.highlight p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 40rem) {
  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .highlights li:nth-child(even) {
    margin-top: 2.5rem;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--line);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(252, 101, 176, 0.16), transparent 60%),
    var(--bg);
}

.cta-band h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.cta-band p {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: var(--muted);
}

/* ---------- Quote interludes ----------
   Full-bleed soft-focus close-ups behind a large italic line. The background
   drifts slower than the page (parallax) — tied to the visitor's own scrolling,
   never autonomous, and off for prefers-reduced-motion. */
.quote {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 78vh;
  min-height: 78svh;
  padding-block: 6rem;
  overflow: hidden;
  overflow: clip; /* clip, not hidden: a scroll container would break the scroll timeline */
  background: #000000;
  text-align: center;
}

.quote__bg {
  position: absolute;
  inset: -13% 0;
  z-index: -2;
}

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

.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.82) 75%),
    linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}

.quote::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
  background-size: 180px 180px;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.quote__inner {
  margin: 0;
}

.quote__mark {
  display: block;
  height: 4.75rem;
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: var(--pink);
}

.quote blockquote {
  margin: 0 auto;
}

.quote blockquote p {
  max-width: 15ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 8.5vw, 5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.08;
  color: var(--silver-bright);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}

.quote blockquote em {
  font-style: normal;
  color: var(--pink);
}

.quote figcaption {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--silver);
}

.quote figcaption::before,
.quote figcaption::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--pink);
}

/* motion-allowed:start — the only CSS motion on the site (see constitution III) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .quote__bg {
      animation: quote-parallax linear both;
      animation-timeline: view();
    }
  }
}

@keyframes quote-parallax {
  from { transform: translateY(-10%); }
  to { transform: translateY(10%); }
}

/* Hero slider progress: the active bar fills over the 6 s auto-advance interval */
@media (prefers-reduced-motion: no-preference) {
  .hero__dot.is-active span::after {
    animation: hero-progress 6s linear both;
  }

  [data-slider].is-paused .hero__dot.is-active span::after {
    animation-play-state: paused;
  }
}

@keyframes hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
/* motion-allowed:end */

/* ---------- Quote cards: full-screen, embroidered border ----------
   Alternate with the parallax quotes. A stitched frame (running stitch,
   beaded row, diamond knots, corner rosettes) on a lattice ground. */
.quote-card {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1rem;
  background:
    radial-gradient(ellipse at 50% 40%, var(--glow), transparent 65%),
    url("../icons/jaali-dark.svg") center / 44px 44px,
    var(--bg-alt);
}

.quote-card__frame {
  display: flex;
  width: min(100%, 42rem);
  min-height: calc(100svh - 2rem);
  border: 24px solid transparent;
  border-image: url("../icons/embroidery-dark.svg") 30 round;
}

.quote-card__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2.5rem 1.25rem;
  background: radial-gradient(ellipse at 50% 30%, var(--surface), var(--bg) 85%);
  text-align: center;
}

.quote-card .brand__medallion {
  margin: 0 0 1.75rem;
}

.quote-card .quote__mark {
  display: block;
  height: 3.5rem;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: var(--pink);
}

.quote-card blockquote {
  margin: 0;
}

.quote-card blockquote p {
  max-width: 14ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 8vw, 4rem);
  font-style: italic;
  line-height: 1.1;
  color: var(--silver-bright);
}

.quote-card blockquote em {
  font-style: normal;
  color: var(--pink);
}

.quote-card figcaption {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--silver);
}

.quote-card figcaption::before,
.quote-card figcaption::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--pink);
}

@media (min-width: 40rem) {
  .quote-card {
    padding: 2rem;
  }

  .quote-card__frame {
    min-height: min(calc(100svh - 4rem), 44rem);
    border-width: 30px;
  }
}

:root[data-theme="light"] .quote-card {
  background:
    radial-gradient(ellipse at 50% 40%, var(--glow), transparent 65%),
    url("../icons/jaali-light.svg") center / 44px 44px,
    var(--bg-alt);
}

:root[data-theme="light"] .quote-card__frame {
  border-image-source: url("../icons/embroidery-light.svg");
}

/* Quote card with a photograph in an arched window */
.quote-card__inner--photo {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0;
}

.quote-card__photo {
  width: min(62vw, 16rem);
  margin-bottom: 1.5rem;
  padding: 6px;
  border: 1px solid var(--pink-soft);
  border-radius: 999px 999px 0 0;
  background: var(--bg);
}

.quote-card__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
}

@media (min-width: 60rem) {
  .quote-card__inner--photo {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    grid-template-areas:
      "photo mark"
      "photo quote"
      "photo caption";
    column-gap: 3rem;
    padding-inline: 3rem;
  }

  .quote-card__inner--photo .quote-card__photo {
    grid-area: photo;
    align-self: center;
    width: 100%;
    max-width: 18rem;
    margin: 0;
  }

  .quote-card__inner--photo .quote__mark { grid-area: mark; align-self: end; }
  .quote-card__inner--photo blockquote { grid-area: quote; }
  .quote-card__inner--photo figcaption { grid-area: caption; align-self: start; }

  .quote-card__frame--wide {
    width: min(100%, 60rem);
  }
}

/* ---------- Collections page ---------- */
.category-nav {
  border-bottom: 1px solid var(--line);
}

.category-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0;
  padding-block: 1rem;
}

.category-nav li + li::before {
  content: "\25C6";
  padding-inline: 0.5rem;
  font-size: 0.5rem;
  color: var(--pink);
  vertical-align: middle;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  text-decoration: none;
}

.category-nav a:hover {
  color: var(--pink);
}

.collection {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  scroll-margin-top: 1rem;
}

.collection + .collection {
  border-top: 1px solid var(--line);
}

/* Large categories: skip rendering off-screen sections until they are scrolled near */
.collection {
  content-visibility: auto;
  contain-intrinsic-size: auto 1400px;
}

.piece-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Designs behind "Show all" (collections.js); their thumbnails are not fetched */
.piece-grid.is-collapsed .piece--more {
  display: none;
}

.piece__link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.piece__link:hover h3 {
  color: var(--pink);
}

.piece:focus-within {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.piece__link:focus-visible {
  outline: none;
}

.piece__price {
  display: block;
  margin-top: 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--pink);
}

.piece__count {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.collection__empty {
  color: var(--muted);
}

.more-btn {
  display: flex;
  margin: 2.5rem auto 0;
}

.more-btn[hidden] {
  display: none;
}

.piece__body {
  display: block;
  flex: 1;
  padding: 0.9rem 1rem 1.25rem;
}

.piece h3 {
  margin: 0;
  font-size: 1.25rem;
}


@media (min-width: 40rem) {
  .piece-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

@media (min-width: 60rem) {
  .piece-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .piece-grid > :nth-child(even) {
    margin-top: 2rem;
  }
}

/* ---------- Design viewer (collections.js): large photo in a dialog ---------- */
.viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 7, 10, 0.96);
  color: #e4e6ea;
}

.viewer::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 4rem var(--gutter) 5.5rem;
}

/* Black photo card with a pink gradient border */
.viewer__frame {
  width: min(100%, calc((100svh - 17rem) * 0.8));
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(#000000, #000000) padding-box,
    linear-gradient(135deg, #fc65b0, #f9c6de 35%, #8a2a5c 65%, #fc65b0) border-box;
}

.viewer__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain; /* whole photo, whatever its shape */
  background: #000000;
}

/* Thumbnail strip (more than one photo) */
.viewer__thumbs {
  display: flex;
  gap: 0.5rem;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.25rem;
  scrollbar-width: none;
}

.viewer__thumbs:empty {
  display: none;
}

.viewer__thumb {
  flex: 0 0 auto;
  width: 3rem;
  height: 3.75rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(228, 230, 234, 0.25);
  border-radius: 0.5rem;
  background: #15131a;
  opacity: 0.6;
  cursor: pointer;
}

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

.viewer__thumb[aria-current="true"],
.viewer__thumb:hover {
  border-color: var(--pink);
  opacity: 1;
}

.viewer__step[hidden] {
  display: none;
}

.viewer.is-loading .viewer__img {
  opacity: 0.3;
}

.viewer__caption {
  max-width: 32rem;
  text-align: center;
}

.viewer__count {
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  font-variant-numeric: lining-nums;
  color: #f9a8cf;
}

.viewer__title {
  margin: 0.25rem 0;
  font-size: 1.5rem;
  color: #ffffff;
}

.viewer__price {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: #f9a8cf;
}


.viewer__close,
.viewer__step {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(228, 230, 234, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #e4e6ea;
  cursor: pointer;
}

.viewer__close:hover,
.viewer__step:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.viewer__close {
  top: 0.75rem;
  right: 0.75rem;
}

.viewer__step {
  bottom: 1.25rem;
}

.viewer__step .icon {
  width: 1.5rem;
  height: 0.75rem;
}

.viewer__step--prev {
  left: calc(50% - 3.75rem);
}

.viewer__step--next {
  right: calc(50% - 3.75rem);
}

@media (min-width: 60rem) {
  .viewer__step {
    bottom: auto;
    top: 50%;
    margin-top: -1.5rem;
  }

  .viewer__step--prev {
    left: 2rem;
  }

  .viewer__step--next {
    right: 2rem;
  }

  .viewer__figure {
    padding-bottom: 2rem;
  }

  .viewer__frame {
    width: min(100%, calc((100svh - 14rem) * 0.8));
  }
}

/* ---------- Contact page ---------- */
.contact {
  display: grid;
  gap: 2rem;
}

.contact-card .card__inner {
  padding: 1.5rem 1.25rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list li > div {
  flex: 1;
}

.contact-list .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  color: var(--pink);
}

.contact-list strong {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
}

.contact-list a {
  display: inline-block;
  padding-block: 0.4rem;
}

.contact-list address {
  font-style: normal;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours td {
  padding: 0.15rem 0;
}

.hours td + td {
  text-align: right;
}

.map-card .card__inner {
  position: relative;
  min-height: 22rem;
}

.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.6) contrast(1.05);
}

.map-caption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 40rem) {
  .contact-card .card__inner {
    padding: 2rem;
  }
}

@media (min-width: 60rem) {
  .contact {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }

  .map-wrap {
    display: flex;
    flex-direction: column;
  }

  .map-card {
    flex: 1;
  }
}

/* ---------- Footer: end credits ----------
   Emblem (logo inside a ring of text), a closing line, credits set like a
   film roll, scene links, "Fin.", and a giant outlined wordmark. */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 0;
  background:
    radial-gradient(ellipse at 50% 0%, var(--glow), transparent 55%),
    var(--footer-bg);
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer a {
  color: var(--silver-bright);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--pink);
}

.emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 15rem;
  height: 15rem;
  margin: 0 auto 2.5rem;
}

.emblem__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.emblem__ring text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  fill: var(--silver);
}

.emblem__ring .emblem__dot {
  fill: var(--pink);
}

.emblem__ring circle {
  fill: none;
  stroke: var(--rule);
}

.emblem::before {
  content: "";
  position: absolute;
  width: 11.5rem;
  height: 11.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #221c26 0%, #000000 72%);
}

.emblem__logo {
  position: relative;
  width: 9rem;
  height: 9rem;
}

.footer-tagline {
  max-width: 20ch;
  margin: 0 auto 3.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 6vw, 3rem);
  font-style: italic;
  line-height: 1.15;
  color: var(--silver-bright);
}

.footer-tagline em {
  color: var(--pink);
}

/* Credits: role on the left (right-aligned), name on the right */
.credits {
  display: grid;
  gap: 1.1rem;
  max-width: 40rem;
  margin: 0 auto 3.5rem;
}

.credits div {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1.25rem;
  align-items: baseline;
  text-align: left;
}

.credits dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: right;
  color: var(--pink);
}

.credits dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.35;
  color: var(--silver-bright);
  overflow-wrap: break-word;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.footer-links li + li::before {
  content: "\25C6";
  padding-inline: 0.75rem;
  font-size: 0.5rem;
  color: var(--pink);
  vertical-align: middle;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
}

.footer-bottom {
  margin: 0;
  padding-bottom: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-credit {
  margin: 0;
  padding-bottom: 1.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  opacity: 0.75;
}

.footer-credit a {
  display: inline-block;
  padding-block: 0.4rem; /* comfortable tap height for a tiny link */
}

/* Giant outlined wordmark bleeding off the bottom edge */
.footer-wordmark {
  margin-top: 1rem;
  margin-bottom: -0.32em;
  font-family: var(--font-display);
  font-size: 23vw;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(252, 101, 176, 0.35);
  pointer-events: none;
  user-select: none;
}

:root[data-theme="light"] .footer-wordmark {
  color: rgba(252, 101, 176, 0.5);
}

.footer-spacer {
  height: 8.5rem; /* room so the floating Instagram and WhatsApp buttons never cover the credits */
}

@media (min-width: 60rem) {
  .emblem {
    width: 17rem;
    height: 17rem;
  }

  .emblem__logo {
    width: 10rem;
    height: 10rem;
  }

  .emblem::before {
    width: 13rem;
    height: 13rem;
  }

  .footer-spacer {
    height: 2rem;
  }
}

/* ---------- Floating WhatsApp button (fixed, static) ---------- */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--wa);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.wa-float:hover {
  background: var(--wa-dark);
  color: #ffffff;
}

.wa-float .icon {
  width: 1.75rem;
  height: 1.75rem;
}

/* Instagram sits directly above WhatsApp, in Instagram's own gradient */
.ig-float {
  position: fixed;
  right: 1rem;
  bottom: 5.25rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.ig-float:hover {
  color: #ffffff;
  filter: brightness(1.1);
}

/* The Instagram glyph fills 18 of its 24 units (WhatsApp fills all 24), so it is drawn
   larger to look the same size as the WhatsApp icon (1.75rem). */
.ig-float .icon {
  width: 2.15rem;
  height: 2.15rem;
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
