/* ===========================================================================
   Lumi Boom Weddings — visual system
   Slate-blue palette: a cool near-white page, deep slate ink, and #4C5B70
   carrying buttons, links and accents.
   Type echoes the wordmark: thin geometric caps, paired with a warm serif.
   ========================================================================= */

/* --- Tokens -------------------------------------------------------------- */

:root {
  --paper:       #F5F7F9;
  --paper-deep:  #E8EDF2;
  --white:       #FFFFFF;
  --ink:         #39414C;
  --ink-soft:    #66707D;
  --ink-faint:   #97A1AD;
  --accent:        #4C5B70;
  --accent-deep:   #39455A;
  --accent-pale:   #A9B8C7;
  --line:        #D9E0E7;

  /* Marcellus is drawn from carved Roman capitals — elegant at display sizes
     and distinctive in a field of Playfair and Cormorant. Jost is the
     humanist sans that carries navigation, labels and body copy. The serif
     is reserved for headings only — everything else is Open Sans. */
  --display: "Marcellus", ui-serif, Georgia, "Times New Roman", serif;
  --body:    "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --t-xs:   clamp(0.69rem, 0.66rem + 0.12vw, 0.76rem);
  --t-sm:   clamp(0.81rem, 0.78rem + 0.14vw, 0.89rem);
  --t-base: clamp(1rem,    0.96rem + 0.2vw,  1.09rem);
  --t-md:   clamp(1.18rem, 1.1rem  + 0.4vw,  1.42rem);
  --t-lg:   clamp(1.5rem,  1.3rem  + 1vw,    2.1rem);
  --t-xl:   clamp(2rem,    1.5rem  + 2.4vw,  3.4rem);
  --t-2xl:  clamp(2.6rem,  1.7rem  + 4.2vw,  5.6rem);

  --gut:   clamp(1.25rem, 0.9rem + 1.8vw, 3.5rem);
  --sect:  clamp(4.5rem,  3rem   + 7vw,  11rem);
  --maxw:  1360px;
  --readw: 62ch;

  --ease:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --------------------------------------------------------------- */

*, *::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(--body);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--paper); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--white); padding: 12px 20px;
}
.skip:focus { left: 0; }

/* --- Layout -------------------------------------------------------------- */

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

.wrap--narrow { max-width: 880px; }

.section { padding-block: var(--sect); }
.section--tight { padding-block: calc(var(--sect) * 0.58); }
.section--deep { background: var(--paper-deep); }
.section--white { background: var(--white); }

/* --- Type utilities ------------------------------------------------------ */

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.22;
}

.display--hero {
  font-size: var(--t-2xl);
  letter-spacing: 0.16em;
  line-height: 1.04;
}

.h-section {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1.18;
}

.lede {
  font-size: var(--t-md);
  line-height: 1.68;
  font-weight: 300;
  max-width: var(--readw);
}

.lede--quote {
  font-style: italic;
  color: var(--ink);
}

.muted { color: var(--ink-soft); }

.meta {
  font-family: var(--body);
  font-size: var(--t-xs);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

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

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1.05em 2.4em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--body);
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid var(--btn-bg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}

/* Fill-from-bottom hover, instead of a plain colour swap. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-deep);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease-out-slow);
  z-index: 0;
}
.btn > * , .btn { position: relative; }
.btn span { position: relative; z-index: 1; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--paper); }

.btn--light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255,255,255,.65);
}
.btn--light::before { background: var(--white); }
.btn--light:hover, .btn--light:focus-visible { color: var(--ink); }

/* Text link with a rule that draws in on hover. */
.tlink {
  font-family: var(--body);
  font-size: var(--t-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 6px;
  position: relative;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease-out-slow);
}
.tlink:hover::after, .tlink:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- Header -------------------------------------------------------------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: clamp(0.9rem, 0.5rem + 1vw, 1.6rem);
  transition: background .45s var(--ease), box-shadow .45s var(--ease),
              padding .45s var(--ease);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: flex; align-items: center; min-width: 0; }
.brand img { height: clamp(17px, 1.9vw, 27px); width: auto; transition: filter .45s var(--ease); }
.brand__text {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: var(--t-sm);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2.6rem); }

.nav a {
  font-family: var(--body);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding-block: 4px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out-slow);
}
.nav a:hover::after, .nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* The booking link is the one action on the page, so it reads as a button. */
.nav .nav-cta {
  border: 1px solid currentColor;
  padding: .72em 1.4em;
  margin-left: .4rem;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* A slate bar across the top on every page, as in the reference design:
   translucent at rest, solid once the page scrolls under it. */
.site-head {
  background: rgba(57,69,90,.62);
  backdrop-filter: blur(12px) saturate(.9);
  -webkit-backdrop-filter: blur(12px) saturate(.9);
  color: var(--white);
}
.site-head .brand img { filter: brightness(0) invert(1); }

.site-head[data-stuck="1"] {
  background: rgba(45,55,72,.96);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  color: var(--white);
}
.site-head[data-stuck="1"] .brand img { filter: brightness(0) invert(1); }

/* The booking button is the one solid element, like REQUEST A QUOTE. */
.nav .nav-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.nav .nav-cta:hover,
.nav .nav-cta:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  margin-right: -10px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1px;
  background: currentColor;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 560px) {
  .brand img { height: 15px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav .nav-cta { border: 1px solid currentColor; padding: .6em 1.6em; margin-left: 0; }

  /* No backdrop-filter at these widths. An element with a filter becomes the
     containing block for its position:fixed children, which would trap the
     full-screen menu inside the header bar instead of covering the viewport. */
  .site-head,
  .site-head[data-stuck="1"] {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(45,55,72,.97);
  }
  .nav {
    position: fixed;
    inset: 0;
    background: #2D3748;
    color: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform .7s var(--ease-out-slow);
    z-index: 90;
  }
  .nav[data-open="1"] { transform: translateY(0); }
  .nav a { font-size: var(--t-md); letter-spacing: 0.24em; }
}

/* --- Hero ---------------------------------------------------------------- */
/* Whitespace is the hero: the photographs float in a pale field rather than
   bleeding edge to edge, which is what every other wedding site does. */

.hero {
  position: relative;
  padding-top: clamp(8.5rem, 6rem + 10vw, 13rem);
  padding-bottom: clamp(3rem, 2rem + 5vw, 7rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4.5rem);
  align-items: center;
}

.hero__copy { position: relative; z-index: 2; }

.hero__title {
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.5rem);
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.1;
  margin-bottom: clamp(1.2rem, 1rem + 1vw, 2rem);
  text-wrap: balance;
}

.hero__sub {
  font-size: var(--t-md);
  line-height: 1.66;
  max-width: 34ch;
  color: var(--ink-soft);
  margin-bottom: clamp(1.8rem, 1.4rem + 1.5vw, 3rem);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }

.hero__stack { position: relative; }

.hero__figure {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}
.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero__figure--tall { aspect-ratio: 3 / 4; }

/* Hangs off the lower-left corner, mostly outside the main frame, so it
   overlaps the edge of the photograph rather than sitting on the subject. */
.hero__figure--inset {
  position: absolute;
  left: calc(-1 * clamp(74px, 9vw, 132px));
  bottom: clamp(-3.5rem, -3vw, -1.5rem);
  width: clamp(118px, 25%, 176px);
  aspect-ratio: 4 / 5;
  border: clamp(6px, 0.7vw, 12px) solid var(--paper);
  z-index: 3;
}

@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__figure--tall { aspect-ratio: 4 / 5; }
  .hero__figure--inset { display: none; }
  .hero__sub { max-width: none; }
}

/* Scroll cue */
.hero__cue {
  margin-top: clamp(2.5rem, 2rem + 3vw, 5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__cue .line {
  width: clamp(40px, 7vw, 90px);
  height: 1px;
  background: var(--ink-faint);
  transform-origin: left;
  animation: cue 2.8s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleX(0.35); opacity: .5; }
  50%      { transform: scaleX(1);    opacity: 1; }
}

/* --- Statement band ------------------------------------------------------ */

.statement {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.3rem);
  line-height: 1.42;
  font-weight: 400;
  max-width: 24ch;
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1.5rem + 4vw, 6rem);
  align-items: start;
}
@media (max-width: 820px) {
  .statement-grid { grid-template-columns: 1fr; gap: 2rem; }
  .statement { max-width: none; }
}

/* --- Filmstrip (slow, calm auto-scroll) ---------------------------------- */

.strip { overflow: hidden; padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.strip__track {
  display: flex;
  gap: clamp(0.6rem, 0.4rem + 0.8vw, 1.2rem);
  width: max-content;
  animation: drift 64s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item {
  width: clamp(160px, 20vw, 290px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-deep);
  flex: none;
}
.strip__item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --- Album grid ---------------------------------------------------------- */
/* Deliberately uneven: alternating offsets make it read as a spread, not a
   row of identical cards. */

.albums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(2rem, 1.4rem + 3vw, 4.5rem) clamp(1.2rem, 0.8rem + 2vw, 3rem);
}

.album { display: block; position: relative; }
.albums > .album:nth-child(even) { margin-top: clamp(0rem, 4vw, 5rem); }

.album__frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  aspect-ratio: 4 / 5;
}
.album__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--drift, 0px), 0) scale(1.06);
  transition: transform 1.3s var(--ease-out-slow), filter .8s var(--ease);
}
.album:hover .album__frame img,
.album:focus-visible .album__frame img {
  transform: translate3d(0, var(--drift, 0px), 0) scale(1.12);
}

.album__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(41,52,66,.58), rgba(41,52,66,0) 55%);
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.album:hover .album__veil, .album:focus-visible .album__veil { opacity: 1; }

.album__view {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  color: var(--white);
  font-family: var(--body);
  font-size: var(--t-xs);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .6s var(--ease), translate .7s var(--ease-out-slow);
}
.album:hover .album__view, .album:focus-visible .album__view {
  opacity: 1;
  translate: -50% -58%;
}

.album__body { padding-top: 1.1rem; }
.album__title {
  font-family: var(--body);
  font-size: var(--t-sm);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.album__meta { font-size: var(--t-xs); color: var(--ink-faint); letter-spacing: .08em; }

/* --- Masonry-ish gallery ------------------------------------------------- */

.gallery {
  columns: 3 280px;
  column-gap: clamp(0.6rem, 0.4rem + 1vw, 1.4rem);
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: clamp(0.6rem, 0.4rem + 1vw, 1.4rem);
  display: block;
  width: 100%;
  background: var(--paper-deep);
  overflow: hidden;
  cursor: zoom-in;
  border: 0;
  padding: 0;
}
.gallery__item img {
  width: 100%;
  transition: transform 1.2s var(--ease-out-slow), opacity .5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }

/* --- Packages ------------------------------------------------------------ */

/* Borders live on the cells, not as a background showing through 1px gaps:
   with a ragged last row the background approach leaves a solid grey block
   where the empty cells are. */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tier {
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.8rem, 1.4rem + 1.6vw, 3rem);
  display: flex;
  flex-direction: column;
  transition: background .5s var(--ease);
}
.tier:hover { background: var(--paper); }

.tier[data-featured="1"] { background: var(--accent); color: var(--paper); }
.tier[data-featured="1"] .tier__price,
.tier[data-featured="1"] .tier__name { color: var(--white); }
.tier[data-featured="1"] .tier__feature { color: rgba(255,255,255,.84); }
.tier[data-featured="1"] .tier__feature::before { background: var(--accent-pale); }
.tier[data-featured="1"]:hover { background: var(--accent-deep); }

.tier__name {
  font-family: var(--display);
  font-size: var(--t-md);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tier__variant {
  font-size: var(--t-xs);
  color: var(--ink-faint);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: .5rem;
}
.tier[data-featured="1"] .tier__variant { color: var(--accent-pale); }

.tier__price {
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 400;
  letter-spacing: .04em;
  margin: 1.3rem 0 1.6rem;
}
.tier__price small {
  display: block;
  font-size: var(--t-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .3rem;
}
.tier[data-featured="1"] .tier__price small { color: var(--accent-pale); }

.tier__features { list-style: none; margin: 0 0 2rem; padding: 0; flex: 1; }
.tier__feature {
  position: relative;
  padding-left: 1.4em;
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: .7em;
}
.tier__feature::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: .6em; height: 1px;
  background: var(--accent-pale);
}

.tier__note {
  font-size: var(--t-xs);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.tier[data-featured="1"] .tier__note { color: var(--accent-pale); }

/* --- Tabs ---------------------------------------------------------------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  padding: .9em 1.6em .9em 0;
  margin-right: 2em;
  font-family: var(--body);
  font-size: var(--t-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

/* --- Forms --------------------------------------------------------------- */

.field { margin-bottom: 1.6rem; }

.field label,
.label {
  display: block;
  font-family: var(--body);
  font-size: var(--t-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .6rem;
}

.input, .field input, .field select, .field textarea {
  width: 100%;
  padding: .95em 1.1em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--body);
  font-size: var(--t-base);
  font-weight: 300;
  color: var(--ink);
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: none;
  background: var(--white);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0 1.4rem;
}

.help { font-size: var(--t-xs); color: var(--ink-faint); margin-top: .5rem; line-height: 1.5; }

.notice {
  padding: 1.1em 1.3em;
  border-left: 3px solid var(--accent);
  background: var(--white);
  font-size: var(--t-sm);
  margin-bottom: 1.6rem;
}
.notice--bad { border-left-color: #B4452F; background: #FBEDEA; }
.notice--warn { border-left-color: #B08A2E; background: #FAF4E6; }

/* Availability feedback */
.date-state { margin-top: .6rem; font-size: var(--t-sm); min-height: 1.6em; }
.date-state[data-state="free"]  { color: var(--accent); }
.date-state[data-state="taken"] { color: #B4452F; }
.date-state[data-state="checking"] { color: var(--ink-faint); }

/* --- Testimonial --------------------------------------------------------- */

.quote {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 1.4vw, 2.1rem);
  line-height: 1.48;
  font-weight: 400;
  max-width: 24ch;
}
.quote__by {
  font-family: var(--body);
  font-style: normal;
  font-size: var(--t-xs);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1.8rem;
}

/* --- Journal ------------------------------------------------------------- */

.posts { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); }
.post-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.post-card:nth-child(even) .post-card__media { order: 2; }
.post-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-deep); }
.post-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, var(--drift, 0px), 0) scale(1.05);
  transition: transform 1.2s var(--ease-out-slow);
}
.post-card:hover .post-card__media img { transform: translate3d(0, var(--drift, 0px), 0) scale(1.1); }
.post-card__title { font-family: var(--display); font-size: var(--t-lg); font-weight: 400; line-height: 1.24; margin: .7rem 0 .9rem; }
@media (max-width: 760px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card:nth-child(even) .post-card__media { order: 0; }
}

.prose { max-width: var(--readw); }
.prose h2 {
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 400;
  margin: 2.4em 0 .7em;
  letter-spacing: .04em;
}
.prose blockquote {
  margin: 2em 0;
  padding-left: 1.6em;
  border-left: 2px solid var(--accent-pale);
  font-style: italic;
  color: var(--ink-soft);
}

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

.site-foot {
  background: var(--accent-deep);
  color: rgba(238,243,248,.80);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2.5rem;
  font-size: var(--t-sm);
}
.site-foot a { color: rgba(238,243,248,.80); transition: color .35s var(--ease); }
.site-foot a:hover { color: var(--white); }

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.foot-head {
  font-family: var(--body);
  font-size: var(--t-xs);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent-pale);
  margin-bottom: 1.2rem;
}
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: .6em; }

.foot-brand img { height: auto; width: min(260px, 80%); filter: brightness(0) invert(1); opacity: .92; }

.foot-base {
  border-top: 1px solid rgba(238,243,248,.16);
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--t-xs);
  color: rgba(238,243,248,.52);
  letter-spacing: .06em;
}

/* --- WhatsApp float ------------------------------------------------------ */

.wa-float {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 0;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: 14px;
  box-shadow: 0 6px 26px rgba(0,0,0,.2);
  transition: gap .5s var(--ease-out-slow), padding .5s var(--ease-out-slow),
              transform .5s var(--ease), opacity .5s var(--ease);
  transform: translateY(0);
}
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float__label {
  font-family: var(--body);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  transition: max-width .55s var(--ease-out-slow);
}
.wa-float:hover { gap: 10px; padding-right: 22px; }
.wa-float:hover .wa-float__label { max-width: 220px; }
.wa-float[data-hidden="1"] { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* --- Lightbox ------------------------------------------------------------ */

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26,31,38,.96);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}
.lb[data-open="1"] { opacity: 1; pointer-events: auto; }
.lb__img {
  max-width: min(94vw, 1500px);
  max-height: 88vh;
  object-fit: contain;
  transform: scale(.97);
  transition: transform .55s var(--ease-out-slow), opacity .3s var(--ease);
}
.lb[data-open="1"] .lb__img { transform: scale(1); }
.lb__btn {
  position: absolute;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .35s var(--ease), border-color .35s var(--ease);
  font-size: 20px;
  line-height: 1;
}
.lb__btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }
.lb__close { top: clamp(14px,2vw,30px); right: clamp(14px,2vw,30px); }
.lb__prev  { left: clamp(10px,2vw,30px);  top: 50%; translate: 0 -50%; }
.lb__next  { right: clamp(10px,2vw,30px); top: 50%; translate: 0 -50%; }
.lb__count {
  position: absolute;
  bottom: clamp(14px,2vw,30px);
  left: 50%; translate: -50% 0;
  color: rgba(255,255,255,.7);
  font-family: var(--body);
  font-size: var(--t-xs);
  letter-spacing: .24em;
}
@media (max-width: 620px) {
  .lb__prev, .lb__next { top: auto; bottom: clamp(14px,2vw,30px); translate: 0 0; }
  .lb__prev { left: clamp(10px,4vw,30px); }
  .lb__next { right: clamp(10px,4vw,30px); }
}

/* --- Scroll reveals ------------------------------------------------------ */
/* One idea, used consistently: content rises into place as it enters.
   Images additionally uncover with a vertical wipe. */

/* Scoped to .js so that if scripting fails, every element stays visible
   rather than being trapped in its hidden starting state. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out-slow), transform .9s var(--ease-out-slow);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* The wipe is applied to the IMAGE, never to the observed element itself:
   a clip-path of inset(0 0 100%) zeroes the element's intersection rectangle,
   so IntersectionObserver would never report it visible and it could never
   un-hide. Clipping the child keeps the observed box intact. */
.js [data-wipe] > img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.25s var(--ease-out-slow);
  transition-delay: var(--d, 0ms);
}
.js [data-wipe].is-in > img { clip-path: inset(0 0 0 0); }

/* Hero word-by-word entrance */
.word { display: inline-block; overflow: hidden; vertical-align: top; }
.word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease-out-slow);
  transition-delay: var(--d, 0ms);
}
.is-ready .word > span { transform: translateY(0); }

/* Safety net: if the reveal pass never ran, show everything. */
.no-reveal [data-reveal],
.no-reveal [data-wipe] > img { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* --- Reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal], [data-wipe] > img, .word > span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .strip__track { animation: none; }
}

/* --- Print --------------------------------------------------------------- */

@media print {
  .site-head, .wa-float, .site-foot, .lb { display: none !important; }
  body { background: #fff; }
}

/* ===========================================================================
   Interaction layer
   One idea per interaction, all cancelled under prefers-reduced-motion.
   ========================================================================= */

/* --- Reading progress --------------------------------------------------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .12s linear;
}

/* --- Page transitions ---------------------------------------------------- */

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in  .42s var(--ease-out-slow) both; }
@keyframes vt-out { to   { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(10px); } }

/* Fallback for browsers without view transitions. */
.js.is-leaving .site-head,
.js.is-leaving main,
.js.is-leaving .site-foot {
  opacity: 0;
  transition: opacity .26s var(--ease);
}

/* --- Buttons: press feedback --------------------------------------------- */

.btn, .tlink, .nav-cta { will-change: transform; }
.btn:active   { transform: translateY(1px) scale(.994); }
.nav-cta:active { transform: translateY(1px); }

/* --- Albums: the label follows the cursor -------------------------------- */

@media (hover: hover) and (pointer: fine) {
  .album__view {
    left: 0; top: 0;
    translate: none;
    transform: translate(var(--mx, 0px), var(--my, 0px)) translate(-50%, -50%) scale(.9);
    transition: opacity .45s var(--ease), transform .5s var(--ease-out-slow);
    will-change: transform;
  }
  .album:hover .album__view,
  .album:focus-visible .album__view {
    opacity: 1;
    translate: none;
    transform: translate(var(--mx, 0px), var(--my, 0px)) translate(-50%, -50%) scale(1);
  }
}

/* --- Images drift as they pass ------------------------------------------- */

.album__frame img,
.post-card__media img,
.gallery__item img {
  will-change: transform;
}

/* --- Lightbox opens from the thumbnail ----------------------------------- */

.lb__img {
  transform-origin: var(--ox, 50%) var(--oy, 50%);
}
.lb[data-open="1"] .lb__img { transform: scale(1); }

/* --- Gallery items settle in one at a time ------------------------------- */

.js .gallery__item {
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .7s var(--ease-out-slow), transform .8s var(--ease-out-slow);
  transition-delay: var(--d, 0ms);
}
.js .gallery__item.is-in { opacity: 1; transform: none; }

/* --- Section headings underline themselves on entry ---------------------- */

.js .h-section { position: relative; }
.js .h-section::after {
  content: "";
  position: absolute;
  left: 0; bottom: -.42em;
  width: clamp(44px, 6vw, 86px);
  height: 1px;
  background: var(--accent-pale);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease-out-slow) .18s;
}
.js .h-section.is-in::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .progress { display: none; }
  .js .gallery__item { opacity: 1 !important; transform: none !important; }
  .js .h-section::after { transform: scaleX(1) !important; }
  .js.is-leaving .site-head,
  .js.is-leaving main,
  .js.is-leaving .site-foot { opacity: 1; }
  @view-transition { navigation: none; }
}

/* ===========================================================================
   Inner-page banner
   ========================================================================= */

.pagehero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(260px, 38vw, 460px);
  padding: clamp(6rem, 5rem + 6vw, 9rem) 0 clamp(3rem, 2rem + 3vw, 5rem);
  overflow: hidden;
  background: var(--accent-deep);
  text-align: center;
  isolation: isolate;
}

.pagehero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.pagehero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(41,52,66,.42), rgba(41,52,66,.62)),
    rgba(57,69,90,.26);
  backdrop-filter: saturate(.72);
  -webkit-backdrop-filter: saturate(.72);
}

.pagehero__inner { position: relative; }

.pagehero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.16;
  text-shadow: 0 1px 24px rgba(20,26,34,.35);
}

.pagehero__sub {
  margin: clamp(.9rem, .7rem + .6vw, 1.4rem) auto 0;
  max-width: 54ch;
  color: rgba(255,255,255,.92);
  font-size: var(--t-base);
  line-height: 1.7;
  text-shadow: 0 1px 18px rgba(20,26,34,.4);
}

/* The banner is dark, so the header sits on it in white until it sticks. */
.pagehero + * { margin-top: 0; }

/* ===========================================================================
   Contact page
   ========================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
}

.detail { display: flex; gap: .95rem; align-items: flex-start; }

.detail__icon {
  flex: none;
  width: 20px; height: 20px;
  margin-top: .18em;
  color: var(--accent);
}
.detail__icon svg { width: 100%; height: 100%; display: block; }

.detail__label {
  font-family: var(--body);
  font-size: var(--t-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: .5rem;
}
.detail__body { font-size: var(--t-sm); line-height: 1.75; color: var(--ink-soft); margin: 0; }
.detail__body a { border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease); }
.detail__body a:hover { border-bottom-color: var(--accent); }

/* Centred enquiry form, matching the reference layout. */
.form-centre { max-width: 820px; margin-inline: auto; }
.form-centre .field-row { gap: 0 1.2rem; }
.form-centre .btn { width: 100%; }

.section-centre { text-align: center; }
.section-centre .h-section::after { left: 50%; transform: translateX(-50%) scaleX(0); transform-origin: center; }
.js .section-centre .h-section.is-in::after { transform: translateX(-50%) scaleX(1); }
.section-centre .lede { margin-inline: auto; }
