/* ==========================================================================
   Fête by Merriway — Home
   Brand tokens from the identity guideline v1.0
   ========================================================================== */

:root {
  --green: #1F3B34;      /* Merriway green — the colour to remember */
  --deep: #142722;       /* Deep green */
  --champ: #B8955C;      /* Champagne — the jewellery */
  --gold: #7D6236;       /* Antique gold */
  --ivory: #F8F5EF;      /* Ivory */
  --linen: #EDE5D8;      /* Linen */

  --ink: var(--deep);
  --ink-soft: #4B5B56;
  --on-dark: var(--ivory);
  --on-dark-soft: rgba(248, 245, 239, .72);
  --rule: rgba(20, 39, 34, .16);
  --rule-dark: rgba(248, 245, 239, .2);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --impact: "Bebas Neue", Impact, sans-serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;

  --pad: clamp(16px, 4vw, 64px);
  --section: clamp(120px, 16vw, 240px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--champ); color: var(--deep); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 10px 16px; background: var(--green); color: var(--ivory);
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* --------------------------------------------------------------------------
   Type
   Instrument Serif: always italic, never below 44px (brand rule).
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0;
}
.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0;
}

.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; will-change: transform; }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--green); color: var(--ivory);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
}
.loader__mark { display: grid; justify-items: center; gap: 6px; overflow: hidden; padding: 8px 0; }
.loader__fete { font-family: var(--serif); font-style: italic; font-size: clamp(72px, 10vw, 140px); line-height: .9; }
.loader__by { font-family: var(--impact); letter-spacing: .42em; color: var(--champ); font-size: clamp(16px, 1.6vw, 22px); padding-left: .42em; }
.loader__count {
  position: absolute; right: var(--pad); bottom: calc(var(--pad) * .8);
  font-family: var(--impact); font-size: 14px; letter-spacing: .3em; color: var(--champ);
  font-variant-numeric: tabular-nums;
}
.loader__count::after { content: "%"; }
html:not(.js) .loader, .reduced .loader { display: none; }

/* --------------------------------------------------------------------------
   Chrome: progress, cursor, canvas
   -------------------------------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--champ); transform-origin: 0 50%; transform: scaleX(0); }

#gl {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 5; pointer-events: none;
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 90;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--ivory);
  mix-blend-mode: difference;
  pointer-events: none; opacity: 0;
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .4s, opacity .3s;
}
.cursor span {
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green); opacity: 0; transition: opacity .3s;
}
.has-cursor .cursor { opacity: 1; }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; background: var(--ivory); }
.cursor.is-view span { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--pad) 22px;
  color: var(--ivory);
  transition: color .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.is-solid {
  background-color: rgba(20, 39, 34, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--rule-dark);
}
.nav.is-solid.is-light { background-color: rgba(248, 245, 239, .9); box-shadow: 0 1px 0 var(--rule); }
/* With the menu open the bar sits on the green overlay: drop any scrolled backdrop and use the
   on-green wordmark colours, whatever section the page was scrolled to. */
.nav.menu-open, .nav.menu-open.is-solid, .nav.menu-open.is-solid.is-light {
  background-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  color: var(--ivory);
}
.nav.menu-open .nav__by, .nav.menu-open.is-light .nav__by { color: var(--champ); }
.nav.is-light { color: var(--green); }
.nav__logo { display: inline-flex; align-items: baseline; gap: 10px; justify-self: start; }
.nav__fete { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; }
.nav__by { font-family: var(--impact); font-size: 12px; letter-spacing: .32em; color: var(--champ); transform: translateY(-2px); }
.nav.is-light .nav__by { color: var(--gold); }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.nav__links a, .nav__cta {
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  position: relative; padding: 10px 0;
}
.nav__links a::after, .nav__cta span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.nav__links a:hover::after, .nav__cta:hover span::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { justify-self: end; }
.nav__cta span { position: relative; display: inline-block; }
.nav__menu { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--green); color: var(--ivory);
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--pad) 40px;
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font-family: var(--serif); font-style: italic; font-size: 48px; line-height: 1.15; }
.menu__foot { margin-top: auto; font-size: 13px; letter-spacing: .12em; color: var(--on-dark-soft); }

@media (max-width: 899px) {
  .nav { grid-template-columns: 1fr auto; padding: calc(18px + env(safe-area-inset-top, 0px)) var(--pad) 18px; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu {
    display: grid; gap: 7px; width: 44px; height: 44px; place-content: center; justify-self: end;
  }
  .nav__menu i { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
  .nav__menu[aria-expanded="true"] i:first-of-type { transform: translateY(4.25px) rotate(45deg); }
  .nav__menu[aria-expanded="true"] i:last-of-type { transform: translateY(-4.25px) rotate(-45deg); }
  .nav.menu-open { color: var(--ivory); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  color: var(--ivory); overflow: hidden; background: var(--deep);
}
.hero__media, .hero__wrap { position: absolute; inset: 0; }
.hero__wrap { transform-origin: 50% 60%; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__fallback { position: absolute; inset: 0; }
.hero__fallback img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 2s var(--ease-io), transform 9s linear;
}
.hero__fallback img.is-active { opacity: 1; transform: scale(1); }
.hero__fallback::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,39,34,.75), rgba(20,39,34,.15) 55%, rgba(20,39,34,.25));
}
.hero.is-gl .hero__fallback { display: none; }

.hero__content {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(96px, 14vh, 160px);
  z-index: 2;
}
.hero__eyebrow { color: var(--champ); margin-bottom: 22px; }
.hero__title { font-size: clamp(44px, 5vw, 88px); line-height: 1.02; text-shadow: 0 2px 40px rgba(20, 39, 34, .35); }
@media (min-width: 900px) { .hero__title .line { white-space: nowrap; } }
.hero__meta {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 32px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  color: var(--on-dark-soft);
}
.hero__caption { display: flex; gap: 10px; align-items: baseline; }
.hero__sep { opacity: .5; }
.hero__caption-text { margin-left: 18px; color: var(--ivory); display: inline-block; }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; color: var(--ivory); padding: 10px 0; }
@media (max-width: 599px) {
  .hero__eyebrow { font-size: 11px; letter-spacing: .16em; margin-bottom: 18px; }
  .hero__content { bottom: 112px; }
  .hero__caption-text { display: none; }
  .hero__meta { bottom: 28px; align-items: center; }
}
.hero__scroll i { display: block; width: 1px; height: 40px; background: var(--rule-dark); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--champ); animation: drip 2.4s var(--ease-io) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* --------------------------------------------------------------------------
   Intro — with the one scalloped valance per layout
   -------------------------------------------------------------------------- */
.intro {
  position: relative; z-index: 2;
  background: var(--ivory);
  padding: var(--section) var(--pad) calc(var(--section) * .8);
  min-height: 100vh;
}
.intro::before {
  content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 18px;
  background: radial-gradient(circle 17px at 50% 100%, var(--ivory) 16.5px, transparent 17px) 0 0 / 34px 18px repeat-x;
}
.intro__inner { max-width: 1240px; margin: 0 auto; }
.intro__label { margin-bottom: clamp(40px, 6vw, 80px); color: var(--ink-soft); }
.intro__statement { font-size: clamp(44px, 5.6vw, 92px); line-height: 1.04; color: var(--green); text-wrap: balance; }
.intro__statement .w { display: inline-block; }
.intro__foot {
  margin-top: clamp(56px, 8vw, 120px);
  display: grid; grid-template-columns: minmax(0, 420px) auto; justify-content: space-between; align-items: end; gap: 32px;
  color: var(--ink-soft);
}
.intro__foot p { margin: 0; }
@media (max-width: 899px) {
  .intro { min-height: 0; padding-bottom: 72px; }
  .intro__foot { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .intro__foot .link-arrow { justify-self: start; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green); padding: 12px 0; border-bottom: 1px solid currentColor;
}
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateY(3px); }

/* --------------------------------------------------------------------------
   Work / horizontal gallery
   -------------------------------------------------------------------------- */
.work { position: relative; background: var(--ivory); overflow: hidden; }
.work__track {
  display: flex; align-items: center; gap: clamp(40px, 5vw, 96px);
  height: 100vh; height: 100svh;
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}
.work__head { flex: 0 0 auto; width: min(34vw, 520px); align-self: center; }
.work__head .label { color: var(--ink-soft); margin-bottom: 28px; }
.work__head h2 { font-size: clamp(48px, 5.4vw, 92px); color: var(--green); }
.work__note { margin: 32px 0 0; max-width: 34ch; color: var(--ink-soft); }

.tile { margin: 0; flex: 0 0 auto; position: relative; }
.tile--p { width: min(26vw, 52vh); }
.tile--p .media { aspect-ratio: 4 / 5; }
.tile--l { width: min(40vw, 82vh); }
.tile--l .media { aspect-ratio: 4 / 3; }
.tile--s { width: min(20vw, 40vh); }
.tile--s .media { aspect-ratio: 3 / 4; }
.tile--high { align-self: flex-start; margin-top: 15vh; }
.tile--low { align-self: flex-end; margin-bottom: 12vh; }
.tile--mid { align-self: center; }

.media { position: relative; overflow: hidden; background: var(--linen); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.media.is-gl { background: transparent; }
.media.is-gl img { opacity: 0; }

.tile figcaption {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px;
  padding-top: 16px;
}
.tile__no { grid-row: span 2; font-family: var(--impact); font-size: 15px; letter-spacing: .12em; color: var(--gold); line-height: 1.6; }
.tile__title { font-size: 16px; font-weight: 500; color: var(--green); }
.tile__meta { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.work__end { flex: 0 0 auto; width: min(30vw, 420px); display: grid; gap: 28px; align-content: center; padding-right: 4vw; }
.work__end p { font-size: clamp(44px, 4.4vw, 76px); color: var(--green); }

.work__bar {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 36px; height: 1px; background: var(--rule);
}
.work__bar span { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; }

@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .work__track { display: grid; width: auto; height: auto; gap: 64px; padding: 72px var(--pad) 96px; }
  .work__head { width: auto; }
  .tile, .tile--p, .tile--l, .tile--s { width: 100%; margin: 0; align-self: auto; }
  .tile--s { width: 72%; justify-self: end; }
  .tile--p:nth-of-type(odd) { width: 86%; }
  .work__end { width: auto; padding: 0; }
  .work__bar { display: none; }
}

/* --------------------------------------------------------------------------
   Set the scene — pinned arch mask
   -------------------------------------------------------------------------- */
.scene { position: relative; background: var(--ivory); }
.scene__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.scene__media {
  position: absolute; inset: 0;
  clip-path: inset(14% 8% 14% 54% round 999px 999px 0 0);
  will-change: clip-path;
}
.scene__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transform-origin: 70% 50%; }
.scene__shade { position: absolute; inset: 0; background: var(--deep); opacity: 0; }
.scene__text {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%);
  color: var(--green); z-index: 1;
}
.scene__lead { font-size: clamp(44px, 5vw, 84px); margin-bottom: .1em; }
.scene__words {
  margin: 0; height: 1.2em; overflow: hidden;
  font-family: var(--impact); font-size: clamp(96px, 15vw, 260px); line-height: 1.2; letter-spacing: .01em;
  color: var(--gold);
}
.scene__reel { display: flex; flex-direction: column; will-change: transform; }
.scene__reel span { display: block; height: 1.2em; }
.scene__note {
  position: absolute; left: var(--pad); bottom: 36px; color: var(--ink-soft); z-index: 1;
}
@media (max-width: 899px) {
  .scene__media { clip-path: inset(46% 8% 6% 8% round 999px 999px 0 0); }
  .scene__text { top: 16%; transform: none; }
  .scene__words { font-size: clamp(88px, 26vw, 120px); }
  .scene__note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene__media { clip-path: none; }
  .scene__media img { transform: none; }
  .scene__shade { opacity: .45; }
  .scene__text, .scene__note { color: var(--ivory); }
  .scene__words { color: var(--champ); }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services { position: relative; background: var(--ivory); padding: var(--section) var(--pad); }
.services__head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
  margin-bottom: clamp(56px, 7vw, 104px);
}
.services__head .label { color: var(--ink-soft); align-self: start; }
.services__head h2 { font-size: clamp(48px, 5.4vw, 92px); color: var(--green); text-align: right; }

.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.svc__row {
  position: relative;
  display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 360px);
  align-items: center; column-gap: 32px;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--rule);
  cursor: default;
}
.svc__no { color: var(--gold); }
.svc__name {
  font-size: clamp(56px, 8.4vw, 148px); line-height: 1; color: var(--green);
  transition: transform .8s var(--ease), color .5s;
}
.svc__desc { margin: 0; color: var(--ink-soft); max-width: 36ch; transition: opacity .5s; }
.svc__thumb { display: none; }
.svc.is-hovering .svc__name { color: rgba(31, 59, 52, .28); }
.svc.is-hovering .svc__row.is-active .svc__name { color: var(--green); transform: translateX(clamp(16px, 3vw, 48px)); }
.svc.is-hovering .svc__desc { opacity: .4; }
.svc.is-hovering .svc__row.is-active .svc__desc { opacity: 1; }

.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: clamp(220px, 20vw, 320px); aspect-ratio: 4 / 5;
  margin: calc(clamp(220px, 20vw, 320px) * -.625) 0 0 calc(clamp(220px, 20vw, 320px) * -.5);
  overflow: hidden; clip-path: inset(100% 0 0 0);
  display: none;
}
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); }
.svc-preview img.is-active { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .svc-preview { display: block; } }

@media (max-width: 899px) {
  .services__head { grid-template-columns: 1fr; }
  .services__head h2 { text-align: left; }
  .svc__row { grid-template-columns: 1fr; row-gap: 14px; padding: 32px 0; }
  .svc__thumb { display: block; order: -1; aspect-ratio: 16 / 10; overflow: hidden; }
  .svc__thumb img { width: 100%; height: 100%; object-fit: cover; }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee { overflow: hidden; padding: clamp(24px, 4vw, 56px) 0; border-block: 1px solid var(--rule); background: var(--ivory); }
.marquee__track { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); width: max-content; will-change: transform; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(56px, 9vw, 150px); line-height: 1.05; color: var(--green); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--champ); font-size: clamp(20px, 2.4vw, 36px); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about {
  position: relative; background: var(--ivory);
  padding: var(--section) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 140px);
  align-items: start;
}
.about__media { position: relative; padding-bottom: 18%; }
.about__main { aspect-ratio: 4 / 5; width: 82%; }
.about__second { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; }
.about__body { padding-top: clamp(0px, 8vw, 120px); }
.about__body .label { color: var(--ink-soft); margin-bottom: 28px; }
.about__body h2 { font-size: clamp(48px, 5.2vw, 88px); color: var(--green); }
.about__copy { margin-top: 40px; max-width: 46ch; color: var(--ink-soft); }
.about__copy p { margin: 0 0 1.1em; }
.values {
  margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px;
  border-top: 1px solid var(--rule); padding-top: 32px;
}
.values dt { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.values dd { margin: 0; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 899px) {
  .about { grid-template-columns: 1fr; }
  .about__body { padding-top: 0; }
  .values { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.voices { position: relative; background: var(--green); color: var(--ivory); padding: var(--section) var(--pad); }
.voices__inner { max-width: 1240px; margin: 0 auto; }
.voices__label { color: var(--on-dark-soft); margin-bottom: clamp(48px, 6vw, 88px); }
.voices__stage { display: grid; }
.voice { grid-area: 1 / 1; margin: 0; visibility: hidden; }
.voice.is-active { visibility: visible; }
.voice blockquote { margin: 0; }
.voice blockquote p { font-size: clamp(44px, 4.8vw, 80px); line-height: 1.06; max-width: 22ch; text-wrap: balance; }
.voice .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.voice .wi { display: inline-block; }
.voice__by { margin-top: 40px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); }
.voice__by span { color: var(--champ); margin-right: 14px; font-weight: 500; }

.voices__controls {
  margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--rule-dark);
  display: flex; justify-content: space-between; align-items: center;
}
.voices__count { color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.voices__btns { display: flex; gap: 12px; }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--rule-dark); display: grid; place-items: center;
  transition: background-color .4s var(--ease), border-color .4s, color .4s;
}
.round-btn:hover { background: var(--ivory); color: var(--green); border-color: var(--ivory); }
.round-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.round-btn .i-play { display: none; fill: currentColor; stroke: none; }
.round-btn[aria-pressed="true"] .i-pause { display: none; }
.round-btn[aria-pressed="true"] .i-play { display: block; }

/* --------------------------------------------------------------------------
   CTA + inquiry
   -------------------------------------------------------------------------- */
.cta {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  color: var(--ivory); background: var(--deep); overflow: hidden;
  padding: var(--section) var(--pad);
}
.cta__media { position: absolute; inset: 0; background: var(--deep); }
.cta__media::after { content: ""; position: absolute; inset: 0; background: rgba(20, 39, 34, .45); }
.cta__media.is-gl::after { display: none; }
.cta__content { position: relative; z-index: 6; display: grid; justify-items: center; }
.cta__content .label { color: var(--on-dark-soft); margin-bottom: 32px; }
.cta h2 { font-size: clamp(64px, 11vw, 200px); line-height: .92; }
.cta__sub { margin: 36px 0 44px; max-width: 44ch; color: var(--on-dark-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 20px 34px; border-radius: 999px;
  background: var(--ivory); color: var(--green);
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  min-height: 56px;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--ease); }
.btn:hover { background: var(--champ); color: var(--deep); }
.btn:hover svg { transform: translateX(4px); }
.btn--dark { background: var(--green); color: var(--ivory); }
.btn--dark:hover { background: var(--deep); color: var(--ivory); }

.inquiry {
  position: relative; z-index: 6; background: var(--ivory);
  padding: var(--section) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(48px, 8vw, 140px);
}
.inquiry__title { font-family: var(--sans); font-weight: 400; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.2; color: var(--green); margin: 0 0 20px; }
.inquiry__aside > p { color: var(--ink-soft); max-width: 38ch; margin: 0; }
.inquiry__details { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 22px; }
.inquiry__details li { display: grid; gap: 4px; color: var(--green); }
.inquiry__details .label { color: var(--gold); font-size: 11px; }
.inquiry__details a { border-bottom: 1px solid var(--rule); justify-self: start; transition: border-color .3s; }
.inquiry__details a:hover { border-color: var(--green); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; align-content: start; }
.field { position: relative; display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--green); }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--deep);
  background: transparent; border: 0; border-bottom: 1px solid rgba(20, 39, 34, .35);
  padding: 10px 0 12px; border-radius: 0; min-height: 48px;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F3B34' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; background-size: 18px; padding-right: 28px;
}
.field textarea { resize: none; min-height: 96px; field-sizing: content; max-height: 320px; }
/* Event date picker — a Merriway-green calendar card under an underline field like the others. */
.datepick { position: relative; }
.datepick__trigger {
  width: 100%; min-height: 48px; padding: 10px 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 17px; text-align: left; color: var(--deep);
  border-bottom: 1px solid rgba(20, 39, 34, .35);
  transition: border-color .3s, box-shadow .3s;
}
.datepick__trigger.is-empty .datepick__value { color: rgba(75, 91, 86, .6); }
.datepick__icon { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 1.4; transition: stroke .3s; }
.datepick__trigger[aria-expanded="true"] .datepick__icon { stroke: var(--gold); }
.datepick__trigger:hover, .datepick__trigger[aria-expanded="true"] { border-color: var(--green); }
.datepick__trigger:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 1px 0 var(--green); }
.field.has-error .datepick__trigger { border-color: #8E3B2E; }

.datepick__panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 30;
  width: min(340px, calc(100vw - 2 * var(--pad)));
  padding: 18px 16px 10px; border-radius: 20px;
  background: var(--green); color: var(--ivory);
  box-shadow: 0 28px 60px -24px rgba(20, 39, 34, .6), 0 2px 8px rgba(20, 39, 34, .18);
  transform-origin: calc(100% - 28px) 0;
}
.datepick__panel[hidden] { display: none; }
.datepick__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.datepick__title {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory);
  transition: background-color .3s var(--ease);
}
.datepick__title:hover { background: rgba(248, 245, 239, .1); }
.datepick__title:focus-visible { outline-color: var(--ivory); }
.datepick__title span { color: var(--champ); }
.datepick__title svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease); }
.datepick__title[aria-expanded="true"] svg { transform: rotate(180deg); }
.datepick__grid[hidden], .datepick__months[hidden] { display: none; }
.datepick__months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 0 6px; }
.datepick__mon {
  min-height: 48px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory);
  transition: background-color .25s var(--ease), color .25s;
}
.datepick__mon:hover:not(:disabled) { background: rgba(248, 245, 239, .12); }
.datepick__mon.is-current { box-shadow: inset 0 0 0 1px var(--champ); }
.datepick__mon[aria-pressed="true"] { background: var(--champ); color: var(--deep); box-shadow: none; }
.datepick__mon:disabled { color: rgba(248, 245, 239, .26); cursor: default; }
.datepick__mon:focus-visible { outline: 2px solid var(--ivory); outline-offset: 1px; }
.datepick__nav {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--rule-dark); color: var(--ivory);
  transition: background-color .3s var(--ease), color .3s, opacity .3s;
}
.datepick__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.datepick__nav:hover:not(:disabled) { background: var(--ivory); color: var(--green); }
.datepick__nav:disabled { opacity: .28; cursor: default; }
.datepick__nav:focus-visible { outline-color: var(--ivory); }
.datepick__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.datepick__grid th {
  padding: 8px 0; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--champ);
}
.datepick__grid td { padding: 1px; text-align: center; }
.datepick__day {
  width: 100%; max-width: 42px; aspect-ratio: 1; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ivory);
  transition: background-color .25s var(--ease), color .25s;
}
.datepick__day:hover:not(:disabled) { background: rgba(248, 245, 239, .12); }
.datepick__day.is-today { box-shadow: inset 0 0 0 1px var(--champ); }
.datepick__day[aria-pressed="true"] { background: var(--champ); color: var(--deep); font-weight: 500; box-shadow: none; }
.datepick__day:disabled { color: rgba(248, 245, 239, .26); cursor: default; }
.datepick__day:focus-visible { outline: 2px solid var(--ivory); outline-offset: 1px; }
.datepick__foot {
  display: flex; justify-content: space-between; margin-top: 8px; padding-top: 4px;
  border-top: 1px solid var(--rule-dark);
}
.datepick__text {
  min-height: 44px; padding: 0 6px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-dark-soft); transition: color .3s;
}
.datepick__text:hover { color: var(--ivory); }
.datepick__text:focus-visible { outline-color: var(--ivory); }

.field input::placeholder, .field textarea::placeholder { color: rgba(75, 91, 86, .6); }
/* An unanswered "Choose one" reads as a placeholder, not an answer. */
.field select:invalid { color: rgba(75, 91, 86, .6); }
.field select option { color: var(--deep); }
/* Keep browser chrome out of the underline fields: Safari's AutoFill icons, number spinners,
   and the yellow/blue autofill tint. Autofill itself still works (keyboard bar / suggestions). */
.field input::-webkit-contacts-auto-fill-button,
.field input::-webkit-credentials-auto-fill-button,
.field input::-webkit-strong-password-auto-fill-button {
  visibility: hidden; display: none !important; pointer-events: none; position: absolute; right: 0;
}
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--deep);
  -webkit-box-shadow: 0 0 0 1000px var(--ivory) inset;
  caret-color: var(--deep);
  transition: background-color 9999s ease-out 0s;
}
.field input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--ivory) inset, 0 1px 0 var(--green); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 1px 0 var(--green); }
.field.has-error input, .field.has-error select { border-color: #8E3B2E; }
.field__err { position: absolute; left: 0; top: calc(100% + 6px); margin: 0; font-size: 13px; line-height: 1.3; color: #8E3B2E; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.form__status { margin: 0; color: var(--green); }
.form__status.is-error { color: #8E3B2E; font-size: 15px; max-width: 40ch; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn:disabled { opacity: .6; cursor: progress; }
.form.is-sent .field, .form.is-sent .form__foot .btn { display: none; }
.form.is-sent .form__status { font-family: var(--serif); font-style: italic; font-size: clamp(44px, 4vw, 64px); line-height: 1.05; }

@media (max-width: 899px) {
  .inquiry { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; gap: 34px; }
  .inquiry { gap: 56px; padding-block: 96px; }
  .inquiry__details { margin-top: 32px; gap: 18px; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { position: relative; z-index: 6; background: var(--deep); color: var(--ivory); padding: clamp(80px, 10vw, 140px) var(--pad) 32px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; max-width: 760px; }
.footer__top > div { display: grid; gap: 10px; align-content: start; }
.footer__top .label { color: var(--champ); margin-bottom: 8px; }
.footer__top a, .footer__top span { color: var(--on-dark-soft); font-size: 15px; transition: color .3s; justify-self: start; }
.footer__top a:hover { color: var(--ivory); }
.footer__mark { display: grid; justify-items: center; margin: clamp(80px, 10vw, 160px) 0 clamp(40px, 5vw, 72px); }
.footer__fete { font-family: var(--serif); font-style: italic; font-size: clamp(160px, 30vw, 520px); line-height: .8; display: inline-block; }
.footer__by { font-family: var(--impact); letter-spacing: .5em; color: var(--champ); font-size: clamp(16px, 2.4vw, 40px); padding-left: .5em; margin-top: .6em; }
.footer__base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--rule-dark); padding-top: 24px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft);
}
.footer__base a:hover { color: var(--ivory); }
@media (max-width: 899px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__top > div { gap: 2px; }
  .footer__top a { padding: 10px 0; }
  .footer__top span { padding: 10px 0; }
  .footer__base a { padding: 10px 0; }
}
@media (max-width: 420px) { .footer__top { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Initial states for JS-driven motion (only when motion is allowed)
   -------------------------------------------------------------------------- */
.js:not(.reduced) .tile figcaption > * { opacity: 0; transform: translateY(14px); }
.js:not(.reduced) .media[data-gl]:not([data-reveal="none"]) { clip-path: inset(100% 0 0 0); }
.js:not(.reduced) .media[data-gl].is-gl { clip-path: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
