/* ==========================================================================
   Storyteller Weddings — site styles
   Palette: black + warm ivory (from the logo). Fonts: Cormorant Garamond
   (headings, echoes the logo serif), Courier Prime (labels, echoes the
   spaced "WEDDINGS"), Jost (body).
   ========================================================================== */

:root {
  /* Colour tokens */
  --ink: #1c1a17;          /* primary text, dark sections */
  --ink-soft: #3a352f;
  --paper: #fbf8f3;        /* page background */
  --ivory: #f3ece1;        /* alternate section background */
  --stone: #6b5e4f;        /* muted text (AA on paper and ivory) */
  --line: #e2d8c9;         /* hairlines, borders */
  --accent: #a38b6d;       /* decorative only: rules, ornaments */
  --on-dark: #f5efe6;
  --on-dark-muted: #c9bfb1;
  --focus: #8a6d48;

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-label: "Courier Prime", "Courier New", monospace;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Spacing (spacious 8pt scale) */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px;
  --s-6: 64px; --s-7: 96px; --s-8: 128px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 84px;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 250ms;
  --t-med: 500ms;
  --t-slow: 1800ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--on-dark); }

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

.skip-link {
  position: absolute; left: var(--s-2); top: -60px; z-index: 1000;
  background: var(--ink); color: var(--on-dark); padding: 10px 18px;
  font-family: var(--font-label); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: var(--s-2); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 var(--s-3);
  letter-spacing: .005em;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 300; }
h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 300; }
h3 { font-size: clamp(24px, 2.4vw, 32px); }
h4 { font-size: 22px; }
p { margin: 0 0 var(--s-3); }
em, .italic { font-family: var(--font-display); font-style: italic; }
h1 em, h2 em, h3 em { font-weight: 300; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--s-3);
  padding-left: .38em; /* optically balance trailing tracking */
}
.lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-soft);
}
.muted { color: var(--stone); }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--accent); margin: var(--s-4) auto;
}
.ornament::before, .ornament::after { content: ""; width: 56px; height: 1px; background: currentColor; }
.ornament span { width: 5px; height: 5px; transform: rotate(45deg); border: 1px solid currentColor; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 34px;
  font-family: var(--font-label); font-size: 13px; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--on-dark);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); }
.btn--light { border-color: var(--on-dark); background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--on-dark); }
.btn--outline-light { border-color: rgba(245,239,230,.7); background: transparent; color: var(--on-dark); }
.btn--outline-light:hover { background: var(--on-dark); color: var(--ink); }
/* WhatsApp green, darkened from the brand #25D366 so white text stays readable (5:1) */
.btn--whatsapp { border-color: #15803d; background: #15803d; color: #fff; }
.btn--whatsapp:hover { border-color: #116b33; background: #116b33; color: #fff; }
.btn[disabled] { opacity: .5; cursor: progress; }

.text-link {
  font-family: var(--font-label); font-size: 13px; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--accent);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.text-link:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(251,248,243,.96);
  border-bottom: 1px solid var(--line);
  transition: background var(--t-med) var(--ease-out), border-color var(--t-med), color var(--t-med);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 190px; height: auto; transition: filter var(--t-med); }

.nav-list { display: flex; gap: clamp(18px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; padding: 10px 0;
  font-family: var(--font-label); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: .24em; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-fast) var(--ease-out);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav { margin-left: auto; }

/* "Request a quote" button, top right */
.quote-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px;
  font-family: var(--font-label); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  background: var(--ink); color: var(--on-dark); border: 1px solid var(--ink);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast);
}
.quote-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.has-hero .site-header:not(.is-solid) .quote-btn { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.has-hero .site-header:not(.is-solid) .quote-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-quote { display: none; }
#enquiry-form { scroll-margin-top: calc(var(--header-h) + 24px); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer;
  align-items: center; justify-content: center; margin-right: -12px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 26px; height: 1px; background: currentColor; position: relative;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* Transparent header over the home hero */
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: var(--on-dark); }
.has-hero .site-header .brand img { filter: invert(1); }
.has-hero .site-header.is-solid { background: rgba(251,248,243,.97); border-color: var(--line); color: var(--ink); }
.has-hero .site-header.is-solid .brand img { filter: none; }

@media (max-width: 1240px) and (min-width: 1081px) {
  .nav-list { gap: 18px; }
  .nav-list a { letter-spacing: .18em; }
  .quote-btn { padding: 0 18px; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .quote-btn { order: 2; margin-left: auto; min-height: 42px; padding: 0 18px; font-size: 11px; }
  .nav-open .quote-btn { visibility: hidden; }
  .nav-quote { display: inline-flex; align-self: center; margin-top: var(--s-4); }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: var(--paper); color: var(--ink);
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--s-5) var(--gutter);
    /* the panel unrolls downward from the header like a curtain */
    visibility: hidden; clip-path: inset(0 0 100% 0);
    transition: clip-path 420ms cubic-bezier(.4, 0, .2, 1), visibility 0s linear 420ms;
  }
  .nav-open .site-nav {
    visibility: visible; clip-path: inset(0 0 0 0);
    transition: clip-path 650ms cubic-bezier(.22, 1, .36, 1), visibility 0s;
  }
  /* then each link and the quote button drift in, one after another */
  .site-nav .nav-list li, .site-nav .nav-quote { opacity: 0; transform: translateY(-14px); transition: opacity 200ms ease, transform 200ms ease; }
  .nav-open .site-nav .nav-list li, .nav-open .site-nav .nav-quote {
    opacity: 1; transform: none;
    transition: opacity 500ms var(--ease-out), transform 600ms cubic-bezier(.22, 1, .36, 1);
  }
  .nav-open .site-nav .nav-list li:nth-child(1) { transition-delay: 160ms; }
  .nav-open .site-nav .nav-list li:nth-child(2) { transition-delay: 210ms; }
  .nav-open .site-nav .nav-list li:nth-child(3) { transition-delay: 260ms; }
  .nav-open .site-nav .nav-list li:nth-child(4) { transition-delay: 310ms; }
  .nav-open .site-nav .nav-list li:nth-child(5) { transition-delay: 360ms; }
  .nav-open .site-nav .nav-list li:nth-child(6) { transition-delay: 410ms; }
  .nav-open .site-nav .nav-list li:nth-child(7) { transition-delay: 460ms; }
  .nav-open .site-nav .nav-quote { transition-delay: 520ms; }
  .nav-list { flex-direction: column; align-items: center; gap: 4px; }
  /* fit the visible screen (phone browser bars included) and scroll if it ever can't */
  .site-nav { bottom: auto; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; justify-content: safe center; padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); }
  .nav-list a { font-family: var(--font-display); font-size: clamp(22px, 3.4vh, 28px); letter-spacing: .02em; text-transform: none; padding: 6px 0; }
  .nav-list a::after { bottom: 6px; }
  .nav-open .site-header { background: var(--paper) !important; color: var(--ink) !important; border-color: var(--line) !important; }
  .nav-open .site-header .brand img { filter: none !important; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
  :root { --header-h: 72px; }
  .brand img { width: 150px; }
  .site-header .container { gap: 12px; }
  .quote-btn { min-height: 38px; padding: 0 12px; font-size: 10px; letter-spacing: .14em; }
}
@media (max-width: 400px) {
  .brand img { width: 128px; }
  .quote-btn { padding: 0 10px; letter-spacing: .1em; }
}
@media (max-width: 340px) {
  .quote-btn { display: none; } /* very small phones: it's in the menu instead */
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .eyebrow, .section--dark .muted { color: var(--on-dark-muted); }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-head p { color: var(--stone); }
.section--dark .section-head p { color: var(--on-dark-muted); }

/* ---------- Home hero slideshow ---------- */
.hero {
  position: relative; height: 100vh; height: 100dvh; min-height: 560px;
  overflow: hidden; background: var(--ink); color: var(--on-dark);
}
/* The incoming slide fades in on top while the outgoing one stays fully visible
   underneath, so the picture never dips to black between photos. */
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 0; transition: opacity var(--t-slow) var(--ease-in-out), visibility 0s linear var(--t-slow); }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity var(--t-slow) var(--ease-in-out), visibility 0s; }
.hero-slide.is-leaving { opacity: 1; visibility: visible; z-index: 0; transition: none; }
.hero-slide picture { display: contents; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
/* Phones: a solid header, then a shorter banner photo beneath it (not the whole screen) */
@media (max-width: 900px) and (orientation: portrait) {
  .has-hero .site-header { background: rgba(251,248,243,.97); border-color: var(--line); color: var(--ink); }
  .has-hero .site-header .brand img { filter: none; }
  .has-hero .site-header:not(.is-solid) .quote-btn { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
  .hero { margin-top: var(--header-h); height: min(92vw, 72svh); min-height: 320px; }
  .hero::after { background: linear-gradient(180deg, rgba(20,18,15,0) 35%, rgba(20,18,15,.7) 100%); }
  .hero .hero-content { bottom: 18px; }
  .hero .hero-content .eyebrow { display: none; }
  .hero .hero-title { font-size: clamp(26px, 7vw, 32px); line-height: 1.1; margin-bottom: 12px; }
  .hero .hero-content .btn { min-height: 40px; padding: 0 20px; font-size: 11px; }
  .hero .hero-controls { display: none; }  /* phones show one still banner, so no slideshow controls */
}
.hero-slide.is-active img, .hero-slide.is-leaving img { animation: kenburns 9s var(--ease-out) both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,18,15,.45) 0%, rgba(20,18,15,.12) 30%, rgba(20,18,15,.25) 55%, rgba(20,18,15,.72) 100%);
}
.hero-content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(72px, 14vh, 150px);
  text-align: center; padding: 0 var(--gutter);
}
.hero-content .eyebrow { color: var(--on-dark); opacity: .9; }
.hero-title { font-size: clamp(44px, 7vw, 96px); font-weight: 300; margin-bottom: var(--s-4); text-shadow: 0 2px 30px rgba(0,0,0,.25); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.hero-title.is-changing { opacity: 0; transform: translateY(10px); transition-duration: 400ms; }
.hero-controls {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 24px;
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
}
.hero-controls button {
  width: 44px; height: 44px; border: 0; background: none; color: var(--on-dark); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; opacity: .8; transition: opacity var(--t-fast);
}
.hero-controls button:hover { opacity: 1; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { width: 32px; }
.hero-dots button::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5; transition: opacity var(--t-fast), height var(--t-fast); }
.hero-dots button[aria-current="true"]::before { opacity: 1; height: 2px; }
.hero-counter { font-family: var(--font-label); font-size: 12px; letter-spacing: .2em; min-width: 72px; text-align: center; white-space: nowrap; }
@media (max-width: 640px) {
  .hero-dots { display: none; }
  .hero-controls { gap: 4px; bottom: 16px; }
}

/* ---------- Inner page banner ---------- */
.page-banner { position: relative; height: clamp(320px, 52vh, 520px); overflow: hidden; background: var(--ink); color: var(--on-dark); }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
/* Black matte so the title reads on any photo: an even tint, darkest behind the words */
.page-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, rgba(0,0,0,.35), transparent 75%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.5) 100%);
}
.page-banner__text { z-index: 1; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); }
.page-banner .eyebrow { color: var(--on-dark); }
.page-banner h1 { margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.page-banner .eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.page-intro { padding-top: clamp(56px, 8vw, 110px); }

/* ---------- Services at a glance: six "chapters", one card per service ---------- */
.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-4); }
.chapter {
  position: relative; padding: var(--s-5) var(--s-4) var(--s-4); background: var(--ivory); border-top: 2px solid var(--accent);
  /* subgrid keeps the point lists level across a row, however long the line above wraps */
  display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0;
}
.chapter__label { display: block; font-family: var(--font-label); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.chapter h3 { margin: var(--s-1) 0 0; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; }
.chapter__line { margin: 6px 0 0; font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--stone); }
.chapter__points { list-style: none; margin: var(--s-3) 0 0; padding: var(--s-3) 0 0; border-top: 1px solid var(--line); }
.chapter__points li { position: relative; padding-left: 20px; font-size: 15.5px; color: var(--ink-soft); }
.chapter__points li + li { margin-top: 8px; }
.chapter__points li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--accent); }
@media (max-width: 960px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .chapters { grid-template-columns: 1fr; row-gap: var(--s-6); } }
/* ---------- About page intro (text only, centred) ---------- */
.about-hello { max-width: 720px; margin: 0 auto; text-align: center; }
.about-hello .lead { margin-bottom: var(--s-4); }
.about-hello .signature { margin-top: var(--s-4); }

/* ---------- Numbers (About page) ---------- */
.stats { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--s-4) var(--s-3); text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 6vw, 76px); line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.stat__label { margin-top: var(--s-2); font-size: 17px; letter-spacing: .02em; color: var(--ink-soft); }
.stat::after { content: ""; width: 60px; height: 5px; margin-top: var(--s-4); background: var(--line); }
@media (max-width: 560px) { .stats { grid-auto-flow: row; row-gap: var(--s-6); } }

/* ---------- Intro split (home + about) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split--reverse .split__media { order: 2; }
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); align-items: end; }
.collage figure { margin: 0; }
.collage .tall { grid-row: span 2; }
.collage img { width: 100%; object-fit: cover; }
.collage .tall img { aspect-ratio: 2 / 3; }
.collage .short img { aspect-ratio: 4 / 5; }
.collage .offset { margin-top: var(--s-7); }
.split__photo { margin: 0; }
.split__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.signature { font-family: var(--font-display); font-style: italic; font-size: 30px; margin: var(--s-3) 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .collage .offset { margin-top: var(--s-5); }
}

/* ---------- Gallery (masonry) ---------- */
.masonry { columns: 3 300px; column-gap: var(--s-2); }
.masonry figure { margin: 0 0 var(--s-2); break-inside: avoid; position: relative; overflow: hidden; background: var(--ivory); }
.masonry img { width: 100%; transition: transform 900ms var(--ease-out), opacity var(--t-med); }
.masonry a { display: block; cursor: zoom-in; }
.masonry a:hover img { transform: scale(1.03); }

/* Home gallery: three named style tabs */
.style-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); }
.style-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 12px 22px; border: 0; background: none; cursor: pointer; color: var(--stone);
  transition: color var(--t-fast) var(--ease-out);
}
.style-tab::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px; background: var(--ink);
  transform: scaleX(0); transition: transform var(--t-med) var(--ease-out);
}
.style-tab:hover { color: var(--ink); }
.style-tab[aria-selected="true"] { color: var(--ink); }
.style-tab[aria-selected="true"]::after { transform: scaleX(1); }
.style-tab__num { font-family: var(--font-label); font-size: 11px; letter-spacing: .3em; }
.style-tab__name { font-family: var(--font-display); font-size: clamp(20px, 2.3vw, 30px); line-height: 1.15; }
.style-panel__intro { max-width: 620px; margin: 0 auto var(--s-4); text-align: center; color: var(--stone); }
.style-panel:not([hidden]) { animation: fadeIn 600ms var(--ease-out); }
/* Each style shows 12 photos until "Show all" is pressed */
.masonry--more:not(.is-expanded) figure:nth-child(n+13) { display: none; }
.masonry--more.is-expanded figure:nth-child(n+13) { animation: fadeIn 600ms var(--ease-out); }
.style-more { text-align: center; margin-top: var(--s-4); }
@media (max-width: 600px) {
  .style-tab { padding: 14px 4px 16px; }
  .style-tab__name { font-size: 18px; }
}

/* ---------- Story cards ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px); }
.story-card { text-decoration: none; display: block; }
.story-card[hidden] { display: none; }  /* portfolio filter hides cards from other categories */
.story-card__media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--ivory); margin-bottom: var(--s-3); }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1000ms var(--ease-out); }
.story-card:hover .story-card__media img { transform: scale(1.04); }
.story-card__type { font-family: var(--font-label); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--stone); }
.story-card h3 { margin: 8px 0 4px; }
.story-card__meta { color: var(--stone); font-size: 15px; margin: 0; }
.story-grid--featured .story-card:nth-child(3n+2) { margin-top: var(--s-7); } /* middle column sits lower */
.story-grid--featured .story-card:nth-child(n+4) { margin-top: calc(var(--s-7) * -1); } /* close the gap left by the offset */
.story-grid--featured .story-card:nth-child(5) { margin-top: 0; }
@media (max-width: 960px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid--featured .story-card:nth-child(n) { margin-top: 0; }
}
@media (max-width: 600px) { .story-grid { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: var(--s-5); }
.filters button {
  min-height: 44px; padding: 10px 20px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-family: var(--font-label); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

/* ---------- Story page ---------- */
.story-header { text-align: center; }
.story-header h1 { margin: var(--s-1) 0 var(--s-3); }
.story-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1) var(--s-5); margin-top: var(--s-4); list-style: none; padding: 0; }
.story-facts li { font-family: var(--font-label); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.story-facts strong { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 400; }
.story-nav { display: flex; justify-content: space-between; gap: var(--s-3); border-top: 1px solid var(--line); padding-top: var(--s-5); margin-top: var(--s-6); }
.story-nav a { text-decoration: none; max-width: 45%; }
.story-nav span { display: block; font-family: var(--font-label); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--stone); }
.story-nav strong { font-family: var(--font-display); font-weight: 400; font-size: 26px; }
.story-nav .next { text-align: right; margin-left: auto; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(18,16,14,.98); color: var(--on-dark);
  display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox { opacity: 0; transition: opacity 350ms var(--ease-out); }
.lightbox.is-shown { opacity: 1; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; transition: opacity 300ms var(--ease-out), transform 450ms var(--ease-out); }
.lightbox img.is-loading { opacity: 0; transform: scale(.985); }
.lightbox button {
  position: absolute; width: 56px; height: 56px; border: 0; background: none; color: var(--on-dark); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-family: var(--font-label); font-size: 12px; letter-spacing: .24em; }
@media (max-width: 700px) {
  .lightbox img { max-width: 100vw; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 8px; transform: none; }
}

/* ---------- Testimonials ---------- */
.quote-slider { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.quote-slider > .eyebrow { display: block; margin-bottom: var(--s-2); }
.quote-slider > .stars { margin-bottom: var(--s-5); }
/* All quotes share one grid cell, so the box keeps the tallest quote's height
   and the arrows don't jump while quotes crossfade. */
.quote-track { display: grid; }
.quote-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), visibility 0s linear 500ms; }
.quote-slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 200ms, 200ms, 0s; transition-duration: 700ms, 700ms, 0s; }
.quote-mark { font-family: var(--font-display); font-size: 96px; line-height: .6; color: var(--accent); display: block; height: 40px; }
.quote-slide blockquote { margin: 0 0 var(--s-4); font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 31px); line-height: 1.5; font-weight: 400; }
.quote-slide cite { font-style: normal; font-family: var(--font-label); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-muted); }
.section:not(.section--dark) .quote-slide cite { color: var(--stone); }
.quote-controls { display: flex; justify-content: center; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; opacity: .75; transition: opacity var(--t-fast), background var(--t-fast);
}
.icon-btn:hover { opacity: 1; }
.quote-count { font-family: var(--font-label); font-size: 12px; letter-spacing: .22em; min-width: 70px; }
.stars { display: inline-flex; gap: 4px; color: var(--accent); margin-bottom: var(--s-3); }

/* Google-style review cards (rendered from reviews.js) */
.review-grid { columns: 3 320px; column-gap: 24px; }
.review-grid .g-review { break-inside: avoid; margin-bottom: 24px; }
.review-grid .g-review__text.is-clamped { display: block; overflow: visible; } /* full text on the Kind Words page */
.g-review {
  background: #fff; border: 1px solid #e3e3e3; border-radius: 12px; padding: 20px 22px 18px;
  font-family: Roboto, Arial, sans-serif; color: #3c4043; text-align: left;
  box-shadow: 0 1px 2px rgba(60,64,67,.08);
  transition: box-shadow var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.g-review:hover { box-shadow: 0 6px 20px rgba(60,64,67,.12); transform: translateY(-2px); }
.g-review__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.g-review__head > div { flex: 1; min-width: 0; }
.g-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 500;
}
.g-review__name { margin: 0; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.35; color: #202124; letter-spacing: 0; }
.g-review__meta { margin: 0; font-size: 13px; line-height: 1.35; color: #70757a; }
.g-logo { flex-shrink: 0; align-self: flex-start; }
.g-review__rating { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.g-stars { display: inline-flex; gap: 1px; }
.g-review__date { font-size: 13px; color: #70757a; }
.g-review__new { font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #3c4043; border: 1px solid #dadce0; border-radius: 4px; padding: 1px 6px; }
.g-review__text { margin: 0; font-size: 14.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.g-review__text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; }
.g-review__more { margin-top: 6px; padding: 4px 0; border: 0; background: none; font: 500 14px Roboto, Arial, sans-serif; color: #1a73e8; cursor: pointer; }
.g-review__more:hover { text-decoration: underline; }

/* Rating summary above the reviews */
.g-summary { display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px; background: #fff; border: 1px solid #e3e3e3; border-radius: 999px; font-family: Roboto, Arial, sans-serif; color: #3c4043; }
.g-summary strong { font-size: 22px; font-weight: 500; color: #202124; }
.g-summary span { font-size: 14px; color: #70757a; }

/* Home page: a row of cards that scrolls sideways */
.review-carousel { position: relative; }
.review-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 48px) / 3)); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 4px 2px 12px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.review-track::-webkit-scrollbar { display: none; }
.review-track .g-review { scroll-snap-align: start; }
.review-track .g-review__text.is-clamped { -webkit-line-clamp: 6; line-clamp: 6; }
.review-carousel__nav { display: flex; justify-content: center; align-items: center; gap: var(--s-2); margin-top: var(--s-4); }
@media (max-width: 700px) { .review-track { grid-auto-columns: 86%; } }

/* ---------- Film ---------- */
.film { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.film img, .film iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.film-play {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; background: rgba(20,18,15,.28);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2); color: var(--on-dark);
  transition: background var(--t-med);
}
.film-play:hover { background: rgba(20,18,15,.12); }
.film-play .ring { width: 88px; height: 88px; border: 1px solid currentColor; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: transform var(--t-med) var(--ease-out); }
.film-play:hover .ring { transform: scale(1.08); }
.film-play .label { font-family: var(--font-label); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.film-caption { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); margin-top: var(--s-3); flex-wrap: wrap; }
.film-caption h3 { margin: 0; }
/* Some YouTube thumbnails have black bars baked in; --zoom on .film crops past them */
.film img { transform: scale(var(--zoom, 1)); }
.film-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
.film--small .film-play .ring { width: 64px; height: 64px; }
.film--small .film-play .label { display: none; }
@media (max-width: 720px) { .film-row { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.service-list { display: grid; gap: clamp(64px, 9vw, 120px); }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.service:nth-child(even) .service__media { order: 2; }
.service__media { position: relative; }
.service__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.service__num { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--accent); display: block; margin-bottom: var(--s-1); }
.service ul { list-style: none; padding: 0; margin: 0 0 var(--s-4); border-top: 1px solid var(--line); }
.service li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; }
.service li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 6px; height: 6px; border: 1px solid var(--accent); transform: rotate(45deg); }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__media { order: 0; }
  .service__media img { aspect-ratio: 4 / 3; }
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); counter-reset: step; }
.step { border-top: 1px solid rgba(245,239,230,.25); padding-top: var(--s-3); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-label); font-size: 13px; letter-spacing: .2em; color: var(--on-dark-muted); display: block; margin-bottom: var(--s-2); }
.step h3 { font-size: 26px; margin-bottom: var(--s-1); }
.step p { color: var(--on-dark-muted); font-size: 16px; margin: 0; }
.steps--light .step { border-color: var(--line); }
.steps--light .step::before, .steps--light .step p { color: var(--stone); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: var(--s-6); }
.faq-group h2 { font-size: clamp(28px, 3vw, 38px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  padding: 22px 0; font-family: var(--font-display); font-size: clamp(21px, 2vw, 25px); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat;
  transition: transform var(--t-fast) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 var(--s-3); color: var(--ink-soft); max-width: 680px; }
/* Smooth open/close in browsers that support animating to "auto" height (Chrome, Edge);
   others simply open instantly. */
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; opacity: 0; transition: height 450ms var(--ease-out), opacity 450ms var(--ease-out), content-visibility 450ms allow-discrete; }
  .faq details[open]::details-content { height: auto; opacity: 1; }
}

/* ---------- Instagram strip ---------- */
.insta-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.insta-head h2 { margin: 0; }
.insta-links { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.insta-links .text-link { display: inline-flex; align-items: center; gap: 10px; }
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.insta-grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out), opacity var(--t-med); }
.insta-grid a::after {
  content: ""; position: absolute; inset: 0; background: rgba(20,18,15,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23f5efe6' stroke-width='1.3'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.6' fill='%23f5efe6'/%3E%3C/svg%3E") center no-repeat;
  opacity: 0; transition: opacity var(--t-fast);
}
.insta-grid a:hover::after, .insta-grid a:focus-visible::after { opacity: 1; }
.insta-grid a:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: var(--on-dark); text-align: center; background: var(--ink); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.cta-band .container { position: relative; padding-top: clamp(96px, 14vw, 180px); padding-bottom: clamp(96px, 14vw, 180px); }
.cta-band .eyebrow { color: var(--on-dark); }
.cta-band p { max-width: 560px; margin-left: auto; margin-right: auto; color: var(--on-dark); opacity: .9; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-details { list-style: none; padding: 0; margin: var(--s-4) 0; }
.contact-details li { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.contact-details li:first-child { border-top: 1px solid var(--line); }
.contact-details span { display: block; font-family: var(--font-label); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--stone); }
.contact-details a { font-family: var(--font-display); font-size: 24px; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.form { background: var(--ivory); padding: clamp(24px, 4vw, 56px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-3); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: var(--s-3); }
.field label, .field legend { display: block; font-family: var(--font-label); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-soft); padding: 0; }
.field .req { color: #8d3b2f; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 0;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cbbfae; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field fieldset { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.checks label {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-body); font-size: 15px; letter-spacing: 0; text-transform: none; margin: 0;
}
.checks input { width: 16px; height: 16px; min-height: 0; accent-color: var(--ink); margin: 0; }
.field .hint { font-size: 14px; color: var(--stone); margin-top: 6px; }
.field .error { display: none; font-size: 14px; color: #8d3b2f; margin-top: 6px; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #8d3b2f; }
.field.has-error .error { display: block; }
.form-status { margin-top: var(--s-3); padding: var(--s-2) var(--s-3); border-left: 2px solid var(--ink); background: var(--paper); display: none; }
.form-status.is-visible { display: block; }
.hp { position: absolute; left: -9999px; }

.map { margin-top: var(--s-6); aspect-ratio: 21 / 8; background: var(--ivory); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(64px, 8vw, 110px) 0 var(--s-4); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-5); padding-bottom: var(--s-6); border-bottom: 1px solid rgba(245,239,230,.15); }
.footer-brand img { width: 220px; filter: invert(1); margin-bottom: var(--s-3); }
.footer-brand p { color: var(--on-dark-muted); max-width: 340px; font-size: 16px; }
.site-footer h2 { font-family: var(--font-label); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: var(--s-3); font-weight: 400; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; text-decoration: none; color: var(--on-dark); font-size: 16px; }
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.socials { display: flex; gap: 10px; margin-top: var(--s-3); }
.socials a { width: 44px; height: 44px; border: 1px solid rgba(245,239,230,.35); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background var(--t-fast), color var(--t-fast); }
.socials a:hover { background: var(--on-dark); color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; padding-top: var(--s-4); font-size: 14px; color: var(--on-dark-muted); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--on-dark); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: transform var(--t-fast) var(--ease-out);
}
.wa-float:hover { transform: translateY(-2px); }

/* Live activity popup (real visitor count / recent enquiry), bottom-left so it never covers WhatsApp */
.live-pop {
  position: fixed; left: 20px; bottom: 20px; z-index: 89; display: flex; align-items: center; gap: 14px;
  width: min(340px, calc(100vw - 112px)); padding: 14px 40px 14px 16px;
  background: var(--paper, #fbf8f3); color: var(--ink); border: 1px solid rgba(28,26,23,.1);
  box-shadow: 0 14px 40px rgba(0,0,0,.16);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
}
.live-pop.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.live-pop__icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--on-dark);
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.live-pop__icon--live::after {
  content: ""; position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%;
  background: #4caf6a; box-shadow: 0 0 0 2px var(--paper, #fbf8f3); animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse { 50% { opacity: .35; } }
.live-pop__label { display: block; font-family: var(--font-label); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone, #7a7064); margin-bottom: 3px; }
.live-pop__text { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.3; }
.live-pop__time { display: block; font-size: 13px; color: var(--stone, #7a7064); margin-top: 2px; }
.live-pop__close {
  position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; background: none;
  color: var(--stone, #7a7064); font-size: 20px; line-height: 1; cursor: pointer;
}
.live-pop__close:hover { color: var(--ink); }
.nav-open .live-pop { display: none; }
@media (max-width: 520px) {
  .live-pop { left: 12px; bottom: 16px; width: calc(100vw - 96px); gap: 10px; padding: 10px 34px 10px 12px; }
  .live-pop__icon { width: 32px; height: 32px; }
  .live-pop__icon svg { width: 15px; height: 15px; }
  .live-pop__text { font-size: 16px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Portfolio filter: cards fade out, then the grid re-flows */
.story-card.is-filtering-out { opacity: 0; transform: scale(.98); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }

/* Page-to-page crossfade (Chrome, Edge, Safari 18+; other browsers just load normally) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 280ms var(--ease-out) both pageOut; }
::view-transition-new(root) { animation: 520ms var(--ease-out) both pageIn; }
@keyframes pageOut { to { opacity: 0; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide img { transform: none !important; animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
