/* ==========================================================================
   Everé – landing page
   "Champagne & espresso": warm sand/linen sections with deep ink text
   alternate with rich espresso/mocha bands (ivory text, gold accents).
   Roughly 40–50% of the page height is dark; the hero stays light and warm.
   No framework, no build step.

   Contents
   01. Tokens (palette + contrast notes)
   02. Reset & base
   03. Typography helpers
   04. Ornaments (SVG masks), corners, textures
   05. Layout primitives (container, section, section heads, dark scope)
   06. Buttons & links
   07. Header & navigation
   08. Hero
   09. Manifesto
   10. Services
   11. Portal + dashboard mock (light section, dark device)
   12. Process
   13. Work / showcase phones + gallery
   14. Brand statement band (dark, lamp glow)
   15. FAQ
   16. Inquiry form
   17. Footer + privacy
   18. Motion (intro, hero, reveals, ornaments, dashboard, phones)
   19. Reduced motion & print
   ========================================================================== */

/* 01. Tokens ------------------------------------------------------------- */
/* WCAG 2.2 contrast, measured (text / background):
   LIGHT
   on --paper #ECE2D0:     ink 14.0 · ink-2 12.0 · umber 7.7 · bronze 6.2 · gold-text 5.7 · error 5.9
   on --ivory #E5D8C2:     ink 12.7 · ink-2 11.0 · umber 7.0 · bronze 5.6 · gold-text 5.2 · error 5.4
   on --champagne #DCCBAE: ink 11.3 · ink-2 9.7 · umber 6.2 · bronze 5.0 · gold-text 4.6 · error 4.7
   on --card #F8F2E7:      ink 16.1 · ink-2 13.8 · umber 8.8 · bronze 7.1 · gold-text 6.6 · error 6.8 · placeholder 6.4
   on the hero/portal glow (≈#E6D3A8 at its centre): ink 12.2 · ink-2 10.4 · umber 6.7 · bronze 5.4
   DARK
   on --espresso #1E1813 (inquiry, footer, header): on-dark 15.0 · on-dark-2 11.4 · gold 8.4 · gold-light 12.1 · error-dark 9.0
   on --mocha #2A211A (services, process, statement): on-dark 13.5 · on-dark-2 10.3 · gold 7.5 · gold-light 10.9
   on --cocoa #382C22 (dash tiles):                   on-dark 11.5 · on-dark-2 8.8 · gold 6.5 · gold-light 9.4 · muted-dark 5.8
   buttons: paper on ink 14.0 · ink on gold 8.6 · ink on gold-light 12.4
   UI lines: --field-line #7D6C55 on card 4.5 (≥3:1) · focus bronze on paper 6.2, gold-light on espresso 12.1
   --gold-deep #9C7C42 is 3.0 on paper and below 3 on deeper sand: hairlines/ornaments only.
   --gold (#CFAF70, ≈2:1 on light) is decorative only on light backgrounds. */
:root {
  /* light surfaces: champagne / sand / linen ramp */
  --paper: #ECE2D0;
  --ivory: #E5D8C2;
  --champagne: #DCCBAE;
  --card: #F8F2E7;

  /* ink + warm neutrals */
  --ink: #1C1611;
  --ink-2: #2C231C;
  --umber: #4F4134;
  --bronze: #694C1D;
  --gold-text: #6E5121;     /* gold-toned text on every light surface, any size (≥4.6) */
  --placeholder: #62564A;
  --field-line: #7D6C55;

  /* gold accents */
  --gold: #CFAF70;
  --gold-light: #E8D5A6;
  --gold-deep: #9C7C42;     /* ornaments + hairlines on light */

  /* dark surfaces: espresso / mocha / cocoa */
  --espresso: #1E1813;
  --mocha: #2A211A;
  --espresso-2: #2A211A;    /* = mocha; dash panel */
  --espresso-3: #382C22;    /* cocoa; dash tiles */
  --on-dark: #F4ECDF;
  --on-dark-2: #DCCFBA;

  --muted-dark: #B5A891;    /* "declined" pill text in the dashboard mock (5.8 on cocoa) */
  --dot-muted: #7A6E60;     /* decorative legend dot (always next to a text label) */

  --error: #93361F;
  --error-dark: #F1A893;

  /* semantic roles (redefined inside .on-dark) */
  --bg: var(--paper);
  --heading: var(--ink);
  --text: var(--ink-2);
  --text-2: var(--umber);
  --accent: var(--bronze);
  --orn: var(--gold-deep);
  --line: rgba(120, 90, 44, .36);
  --line-soft: rgba(120, 90, 44, .2);
  --focus: var(--bronze);

  --shadow-soft: 0 1px 2px rgba(60, 42, 22, .08), 0 24px 50px -28px rgba(60, 42, 22, .42);
  --shadow-lift: 0 2px 6px rgba(60, 42, 22, .08), 0 44px 84px -40px rgba(60, 42, 22, .55);
  --shadow-dark: 0 2px 6px rgba(0, 0, 0, .25), 0 44px 84px -40px rgba(0, 0, 0, .7);

  /* "Cormorant Fallback" (fonts.css) is local Times resized to Cormorant's metrics: no reflow on swap */
  --serif: "Cormorant Garamond", "Cormorant Fallback", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 1240px;
  --section-y: clamp(5rem, 10vw, 8.5rem);
  --header-h: 76px;
  --bp-nav: 1100px;         /* read by js/main.js; must match the @media in 07 */
  --bp-split: 1024px;       /* read by js/main.js (parallax, tilt); matches the 1024px hero/section splits */

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* motion system (section 18): one luxury ease, three durations */
  --ease-lux: cubic-bezier(.22, 1, .36, 1);
  --dur-s: .6s;
  --dur-m: 1s;
  --dur-l: 1.4s;

  /* fine linen weave, used at very low opacity on light sections */
  --linen:
    repeating-linear-gradient(0deg, rgba(110, 82, 44, .035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(110, 82, 44, .028) 0 1px, transparent 1px 4px);
  /* the same weave in warm gold for dark sections */
  --linen-dark:
    repeating-linear-gradient(0deg, rgba(232, 213, 166, .022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(232, 213, 166, .016) 0 1px, transparent 1px 4px);
}

/* 02. Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--paper);
}
body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--linen);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-kerning: normal;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
figure { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold-light); color: var(--ink); }
.on-dark ::selection { background: var(--gold); color: var(--ink); }
main:focus { outline: none; }

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

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: .8rem 1.25rem; background: var(--espresso); color: var(--on-dark);
  font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* 03. Typography helpers ------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .9em;
  margin: 0 0 1.5rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow > span { display: block; }
.eyebrow::before {
  content: ""; width: 2.25rem; height: 1px; background: var(--orn); flex: none;
}
.section-head--center .eyebrow::after {
  content: ""; width: 2.25rem; height: 1px; background: var(--orn); flex: none;
}
.dot { color: var(--orn); }
/* narrow phones: the long hero eyebrow must not overflow */
@media (max-width: 479px) {
  .hero .eyebrow { letter-spacing: .14em; font-size: .75rem; }
  .hero .eyebrow::before { display: none; }
}

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.012em;
  color: var(--heading);
  text-wrap: balance;
  margin-bottom: 1.6rem;
}
.h-display em, .hero__title em, .statement__text em, .signature em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.12rem + .6vw, 1.6rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--text);
  max-width: 38ch;
  text-wrap: pretty;
}
.note {
  margin: 1rem 0 0;
  font-size: 1rem;
  letter-spacing: .01em;
  color: var(--text-2);
  font-style: normal;
}
.note--center { text-align: center; margin-top: 2.5rem; }

/* 04. Ornaments (SVG masks, tinted with currentColor) -------------------- */
.orn {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  color: var(--orn);
}
.orn--sparkle { width: 12px; height: 16px; -webkit-mask-image: url(../assets/svg/sparkle.svg); mask-image: url(../assets/svg/sparkle.svg); }
.orn--divider { width: min(360px, 70vw); height: 18px; -webkit-mask-image: url(../assets/svg/divider.svg); mask-image: url(../assets/svg/divider.svg); }
.orn--arch { -webkit-mask-image: url(../assets/svg/arch-frame.svg); mask-image: url(../assets/svg/arch-frame.svg); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.orn--ring { -webkit-mask-image: url(../assets/svg/monogram-ring.svg); mask-image: url(../assets/svg/monogram-ring.svg); }
.orn--wordmark { -webkit-mask-image: url(../assets/svg/wordmark.svg); mask-image: url(../assets/svg/wordmark.svg); }
.orn--wordmark-compact { -webkit-mask-image: url(../assets/svg/wordmark-compact.svg); mask-image: url(../assets/svg/wordmark-compact.svg); }

.corner {
  position: absolute; width: clamp(38px, 5vw, 64px); aspect-ratio: 1;
  background: var(--orn);
  -webkit-mask: url(../assets/svg/corner.svg) center / contain no-repeat;
  mask: url(../assets/svg/corner.svg) center / contain no-repeat;
  pointer-events: none;
}
.corner--tl { top: 0; left: 0; }
.corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner--br { bottom: 0; right: 0; transform: scale(-1); }

/* Faint diamond lattice */
.pattern {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: url(../assets/svg/lines-pattern.svg) 0 0 / 48px 48px;
  opacity: .1;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 70%);
}

/* 05. Layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: var(--section-y);
  isolation: isolate;
}
.section-head { margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head--center .lead { margin-inline: auto; }

.section--ivory { background-color: var(--ivory); background-image: var(--linen); }

/* Dark scope: mocha/espresso background, ivory text, gold accents.
   A soft lamp glow from above + gold linen keep it warm, never flat black. */
.on-dark {
  --bg: var(--mocha);
  --heading: var(--on-dark);
  --text: var(--on-dark);
  --text-2: var(--on-dark-2);
  --accent: var(--gold);
  --orn: var(--gold);
  --line: rgba(207, 175, 112, .3);
  --line-soft: rgba(207, 175, 112, .16);
  --focus: var(--gold-light);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(207, 175, 112, .09), transparent 70%),
    var(--linen-dark);
  color: var(--text);
}
.on-dark--deep { --bg: var(--espresso); }
.on-dark .h-display em { color: var(--gold-light); }
/* light island inside a dark section (form card): restore the light roles */
.on-light {
  --bg: var(--card);
  --heading: var(--ink);
  --text: var(--ink-2);
  --text-2: var(--umber);
  --accent: var(--bronze);
  --orn: var(--gold-deep);
  --line: rgba(120, 90, 44, .36);
  --line-soft: rgba(120, 90, 44, .2);
  --focus: var(--bronze);
  color: var(--text);
}

/* 06. Buttons & links ---------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fill: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px;
  padding: .95rem 2rem;
  border: 1px solid transparent;
  border-radius: 0;
  background-color: var(--btn-bg);
  background-image: linear-gradient(var(--btn-fill), var(--btn-fill));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-size .55s var(--ease), color .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
/* primary: deep ink, ivory text; hover fills with gold from below (ink on gold 7.9:1) */
.btn--primary {
  --btn-bg: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 14px 30px -18px rgba(26, 23, 20, .6);
}
/* on hover the label turns ink only once the rising fill has passed it (no mid-sweep contrast dip) */
.btn--primary:hover, .btn--primary:focus-visible {
  background-size: 100% 100%; color: var(--ink); border-color: var(--gold);
  transition: background-size .55s var(--ease), color .3s var(--ease) .18s, border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.on-dark .btn--primary { --btn-bg: var(--gold); --btn-fill: var(--gold-light); color: var(--ink); border-color: var(--gold); box-shadow: none; }
.on-dark .btn--primary:hover, .on-dark .btn--primary:focus-visible { border-color: var(--gold-light); }
.on-light .btn--primary { --btn-bg: var(--ink); --btn-fill: var(--gold); color: var(--paper); border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(28, 22, 17, .6); }
.on-light .btn--primary:hover, .on-light .btn--primary:focus-visible { color: var(--ink); border-color: var(--gold); }

.btn--outline { color: var(--ink); border-color: rgba(28, 22, 17, .6); --btn-fill: var(--ink); }
.btn--outline:hover, .btn--outline:focus-visible { background-size: 100% 100%; color: var(--paper); border-color: var(--ink); }
.on-dark .btn--outline, .site-header.is-solid .btn--outline { color: var(--on-dark); border-color: rgba(207, 175, 112, .7); --btn-fill: var(--gold); }
.on-dark .btn--outline:hover, .site-header.is-solid .btn--outline:hover,
.on-dark .btn--outline:focus-visible, .site-header.is-solid .btn--outline:focus-visible { color: var(--ink); border-color: var(--gold); }

.btn--ghost {
  color: var(--heading); padding-inline: .1rem; min-height: 44px;
  background-image: linear-gradient(var(--orn), var(--orn));
  background-size: 100% 1px; background-position: 0 calc(100% - 6px);
}
.btn--ghost:hover, .btn--ghost:focus-visible { background-image: linear-gradient(var(--heading), var(--heading)); }
.btn--ghost .btn__arrow { transition: transform var(--dur-s) var(--ease-lux); }
.btn--ghost:hover .btn__arrow, .btn--ghost:focus-visible .btn__arrow { transform: translateX(5px); }
.btn--sm { min-height: 44px; padding: .65rem 1.25rem; font-size: .75rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.link-underline {
  font-family: var(--sans); font-size: .8125rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--heading); text-decoration: none;
  display: inline-flex; align-items: center; gap: .6em; min-height: 44px;
  background: linear-gradient(var(--orn), var(--orn)) 0 calc(100% - 6px) / 100% 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.link-underline:hover, .link-underline:focus-visible { background-size: 0 1px; background-position: 100% calc(100% - 6px); }

/* 07. Header & navigation ------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
}
/* the espresso bar is a layer, so it can fade in and shrink (transform) without relayout */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(30, 24, 19, .93);   /* --espresso */
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid rgba(207, 175, 112, .22);
  box-shadow: 0 14px 34px -22px rgba(20, 14, 8, .6);
  opacity: 0; transform-origin: 50% 0;
  transition: opacity var(--dur-s) var(--ease-lux), transform var(--dur-m) var(--ease-lux);
}
.site-header.is-solid { --focus: var(--gold-light); }
.site-header.is-solid::before { opacity: 1; }
.site-header__inner { transition: transform var(--dur-m) var(--ease-lux); }
.brand__mark { transition: transform var(--dur-m) var(--ease-lux); transform-origin: 0 50%; }
.site-header.is-solid .brand { color: var(--gold); }
.site-header.is-solid .menu-toggle { color: var(--on-dark); }
.site-header.is-solid .menu-toggle__lines span { background: var(--on-dark); }
.site-header__inner {
  height: 100%;
  padding-inline: var(--gutter);
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--gold-text); text-decoration: none; margin-right: auto;
  position: relative; z-index: 3;
  transition: color .6s var(--ease);
}
.brand__mark {
  display: block; width: 124px; aspect-ratio: 460 / 92;
  background: currentColor;
  -webkit-mask: url(../assets/svg/wordmark-compact.svg) center / contain no-repeat;
  mask: url(../assets/svg/wordmark-compact.svg) center / contain no-repeat;
}

/* mobile-first: nav is an overlay panel */
.site-nav {
  position: fixed; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
  background-color: var(--espresso);
  background-image: radial-gradient(ellipse at 50% 115%, rgba(207, 175, 112, .2), transparent 60%), var(--linen-dark);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.site-nav__list { list-style: none; text-align: center; display: grid; gap: .4rem; }
.site-nav__list a {
  display: inline-block; padding: .35rem 1rem; min-height: 44px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.2;
  color: var(--on-dark); text-decoration: none;
  transition: color .4s var(--ease);
}
.site-nav__list a:hover { color: var(--gold-light); font-style: italic; }
.site-nav__sparkle { color: var(--gold); }
/* overlay CTA on espresso: gold button (ink on gold 8.6, gold-light hover 12.4) */
.site-nav__cta-mobile.btn--primary { --btn-bg: var(--gold); --btn-fill: var(--gold-light); color: var(--ink); border-color: var(--gold); box-shadow: none; }
.site-nav__sparkle { width: 14px; height: 19px; }
.site-header__cta { display: none; }

.menu-toggle {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; gap: .8rem;
  min-height: 44px; min-width: 44px; padding: 0 .25rem;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  transition: color .6s var(--ease);
}
.menu-toggle__label { font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.menu-toggle__lines { display: grid; gap: 7px; width: 26px; }
.menu-toggle__lines span { display: block; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), background-color .6s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:last-child { transform: translateY(-4px) rotate(-45deg); }
.no-scroll { overflow: hidden; }
/* menu open: solid espresso bar, never shrunk (a transform on the inner box would trap the fixed overlay) */
.no-scroll .site-header::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--espresso); opacity: 1; transform: none; }
.no-scroll .site-header__inner { transform: none; }

/* no-JS: menu toggle can't work, show inline links (wrap) instead */
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .site-nav { position: static; opacity: 1; visibility: visible; background: none; padding: 0; flex-direction: row; gap: 1rem; width: 100%; justify-content: center; }
html:not(.js) .site-nav__list { display: flex; flex-wrap: wrap; gap: 0; justify-content: center; }
html:not(.js) .site-nav__list a { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: .8rem .55rem; color: var(--ink); }
html:not(.js) .site-nav__cta-mobile, html:not(.js) .site-nav__sparkle { display: none; }
/* no-JS: the header takes its own space so wrapped links never overlap the hero */
html:not(.js) .site-header { position: relative; height: auto; min-height: var(--header-h); border-bottom-color: var(--line-soft); }
html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: .5rem; }
html:not(.js) .hero { padding-top: 3rem; min-height: 0; }

@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .site-nav {
    position: static; opacity: 1; visibility: visible; background: none; padding: 0;
    flex-direction: row; gap: 0; transition: none;
  }
  .site-nav__list { display: flex; gap: clamp(.5rem, 1.5vw, 1.6rem); }
  .site-nav__list a {
    font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    color: var(--ink-2); padding: .8rem .2rem; position: relative;
  }
  .site-nav__list a::after {
    content: ""; position: absolute; left: .2rem; right: .2rem; bottom: .45rem; height: 1px; background: var(--gold-deep);
    transform: scaleX(0); transition: transform var(--dur-s) var(--ease-lux);
  }
  .site-nav__list a:hover { font-style: normal; color: var(--ink); }
  .site-nav__list a:hover::after, .site-nav__list a:focus-visible::after, .site-nav__list a[aria-current="true"]::after { transform: none; }
  .site-nav__list a[aria-current="true"] { color: var(--bronze); }
  .site-header.is-solid .site-nav__list a { color: var(--on-dark-2); }
  .site-header.is-solid .site-nav__list a:hover { color: var(--on-dark); }
  .site-header.is-solid .site-nav__list a[aria-current="true"] { color: var(--gold-light); }
  .site-header.is-solid .site-nav__list a::after { background: var(--gold); }
  .site-nav__cta-mobile, .site-nav__sparkle { display: none; }
  .site-header__cta { display: inline-flex; margin-left: clamp(1rem, 2vw, 2.5rem); }
  .site-nav { margin-left: auto; }
  .brand__mark { width: 136px; }
  /* scrolled: the bar slims from 76px to ~62px (transform only) */
  .site-header.is-solid::before { transform: scaleY(.82); }
  .site-header.is-solid .site-header__inner { transform: translateY(-7px); }
  .site-header.is-solid .brand__mark { transform: scale(.9); }
}

/* 08. Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(1.5rem, 5vw, 3rem)) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse 55% 65% at 22% 38%, rgba(248, 242, 231, .55), transparent 72%),
    radial-gradient(ellipse 60% 75% at 82% 42%, rgba(214, 186, 128, .42), transparent 70%),
    linear-gradient(180deg, transparent 70%, rgba(150, 118, 70, .1)),
    var(--linen);
  border-bottom: 1px solid var(--line-soft);
}
.hero__content { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero__text { position: relative; max-width: 40rem; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 1.9rem + 4.6vw, 6.25rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero__title em { display: inline-block; font-weight: 400; color: var(--bronze); }
/* words are inline-blocks so each can rise behind its own mask (section 18); line breaks are unchanged */
.hero__title .w { display: inline-block; }
.hero__title .w > span { display: inline-block; }
.hero .divider { display: block; width: min(260px, 60vw); height: 16px; margin: 0 0 1.5rem; }
.hero__lead {
  font-family: var(--serif); font-size: clamp(1.3rem, 1.12rem + .6vw, 1.6rem); line-height: 1.5; font-weight: 500;
  color: var(--ink-2); max-width: 34ch; margin-bottom: 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

/* framed photograph: thin ivory inset + offset gold frame */
.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-right: 10px; margin-bottom: 10px;
}
.hero__media::before {
  content: ""; position: absolute; inset: 0; transform: translate(10px, 10px);
  border: 1px solid var(--gold-deep); z-index: -1;
}
.hero__media::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 250, 240, .8); pointer-events: none;
}
.hero__photo {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 42% 55%;
  filter: contrast(1.06) saturate(1.05);
}
/* shallow depth of field: keeps the rings sharp and softens the stock
   calligraphy (another couple's names and date) around them */
.hero__dof {
  --dof-x: 34%; --dof-y: 26%;
  position: absolute; inset: 0; pointer-events: none;
  -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px);
  -webkit-mask-image: radial-gradient(ellipse var(--dof-x) var(--dof-y) at 50% 50%, transparent 50%, #000 100%);
  mask-image: radial-gradient(ellipse var(--dof-x) var(--dof-y) at 50% 50%, transparent 50%, #000 100%);
}

.scroll-cue {
  position: absolute; left: max(var(--gutter), calc((100% - var(--maxw)) / 2)); bottom: 1.25rem;
  z-index: 3; display: none; flex-direction: row; align-items: center; gap: 1rem;
  color: var(--umber); text-decoration: none; min-height: 44px;
}
.scroll-cue__label { font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue__line {
  width: 64px; height: 1px; background: linear-gradient(90deg, var(--gold-deep), transparent);
  transform-origin: left;   /* drawn by a slow, finite loop in 18b */
}

@media (min-width: 768px) {
  .hero__media { aspect-ratio: 16 / 10; margin-right: 16px; margin-bottom: 16px; }
  .hero__media::before { transform: translate(16px, 16px); }
}
/* split hero from 1024px: text on ivory left, photograph right */
@media (min-width: 1024px) {
  .hero {
    min-height: min(100vh, 960px);
    min-height: min(100svh, 960px);
    display: flex; align-items: center;
    padding-block: calc(var(--header-h) + 2rem) 4.5rem;
  }
  .hero__content { grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); gap: clamp(3rem, 5vw, 5.5rem); }
  .hero__media { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 7rem); width: 100%; justify-self: end; margin-right: 18px; margin-bottom: 18px; }
  .hero__media::before { transform: translate(18px, 18px); }
  .hero__img { object-position: 46% 50%; }
  .hero__dof { --dof-x: 30%; --dof-y: 14%; }
  .scroll-cue { display: flex; }
}
/* 1024–1439: give the text column more room so the eyebrow and title don't break awkwardly */
@media (min-width: 1024px) and (max-width: 1439px) {
  .hero .eyebrow { letter-spacing: .14em; font-size: .75rem; }
  .hero__content { grid-template-columns: minmax(0, 12fr) minmax(0, 10fr); }
}
@media (min-width: 1440px) {
  .hero__content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* short desktop screens (13–15" laptops): keep the CTA row in the first screen */
@media (min-width: 768px) and (max-height: 820px) {
  .hero .eyebrow { margin-bottom: 1rem; }
  .hero__title { margin-bottom: 1.1rem; font-size: clamp(3rem, min(1.9rem + 4.6vw, 10.5svh), 6.25rem); }
  .hero .divider { margin-bottom: 1.1rem; }
  .hero__lead { font-size: 1.3rem; margin-bottom: 1.6rem; }
}

/* 09. Manifesto ---------------------------------------------------------- */
.manifesto { padding-bottom: clamp(4rem, 8vw, 7rem); }
.manifesto__grid {
  display: grid; gap: clamp(3.5rem, 8vw, 7rem);
  align-items: center;
}
.manifesto__visual {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
  padding: 0 12% 14% 0;
}
.arch-photo { position: relative; aspect-ratio: 320 / 480; }
.arch-photo img {
  position: absolute; inset: 6.5% 6.875% 3.5%; width: 86.25%; height: 90%;
  object-fit: cover; object-position: 40% 50%; border-radius: 999px 999px 0 0;
  box-shadow: var(--shadow-soft);
}
.arch-photo__frame { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold-deep); }
.manifesto__oval {
  position: absolute; right: 0; bottom: 0; width: 42%;
  aspect-ratio: 3 / 4; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--gold-deep); padding: 6px; background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.manifesto__oval img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.monogram {
  position: absolute; left: 0; bottom: 8%; width: clamp(86px, 22vw, 116px); aspect-ratio: 1;
  display: grid; place-items: center; color: var(--gold-deep);
  background: radial-gradient(circle, var(--paper) 60%, transparent 62%);
}
.monogram__ring { position: absolute; inset: 0; width: 100%; height: 100%; }   /* one slow turn: 18d */
.monogram__letter { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1; color: var(--bronze); }

.manifesto__body { max-width: 36rem; }
.manifesto__body p:not(.lead) { color: var(--text); max-width: 60ch; }
.manifesto__body .lead { max-width: 36ch; margin-bottom: 1.4rem; }
.dropcap {
  float: left; font-family: var(--serif); font-size: 4.2em; line-height: .78; font-weight: 500;
  color: var(--gold-text); padding: .06em .12em 0 0;
}
.signature {
  display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem;
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 1.15rem + .6vw, 1.7rem); color: var(--ink);
}
.signature .orn { flex: none; }

.pillars {
  display: grid; gap: 0;
  margin-top: clamp(4.5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 0 -3px var(--line-soft);   /* fine double hairline */
}
.pillar { padding: 2.25rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.pillar__num { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-text); font-size: 1.4rem; margin-bottom: .8rem; }
.pillar__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.65rem, 1.35rem + 1vw, 2.05rem); color: var(--ink); margin-bottom: .7rem; line-height: 1.15; }
.pillar p { color: var(--text-2); margin: 0; max-width: 36ch; }

@media (min-width: 900px) {
  .manifesto__grid { grid-template-columns: 5fr 6fr; }
  .manifesto__visual { margin-inline: 0; }
  .pillars { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .pillar { padding: 2.75rem clamp(1.5rem, 3vw, 3rem) 3rem; border-bottom: 0; }
  .pillar + .pillar { border-left: 1px solid var(--line); }
  .pillar:first-child { padding-left: 0; }
}
@media (min-width: 1024px) {
  .monogram { left: -4%; }
}

/* 10. Services ----------------------------------------------------------- */
.services { background-image: radial-gradient(ellipse 60% 50% at 15% 20%, rgba(207, 175, 112, .1), transparent 70%), var(--linen-dark); }
.services__grid { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.services__intro .lead { margin-bottom: 2.5rem; }
.services__photo {
  position: relative; width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  margin-top: 1rem; margin-right: 14px;
}
.services__photo::before {
  content: ""; position: absolute; inset: 0; transform: translate(14px, 14px); border: 1px solid var(--orn); z-index: -1;
}
.services__photo > img:first-child {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  box-shadow: var(--shadow-dark);
}
.services__photo::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 253, 249, .85); pointer-events: none;
}

.service-list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem;
  padding: 2rem 0 2.1rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.service::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .9s var(--ease-out);
}
.service:hover::before { transform: none; }
.service__num { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--accent); padding-top: .2rem; } /* gold on mocha 7.5 */
.service__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.55rem, 1.3rem + .9vw, 2rem); line-height: 1.15; color: var(--heading); margin-bottom: .5rem; }
.service p { margin: 0; color: var(--text-2); max-width: 52ch; }

@media (min-width: 1024px) {
  .services__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .services__intro { position: sticky; top: calc(var(--header-h) + 3rem); }
  .service-list { margin-top: .5rem; }
}

/* 11. Portal (light section, dark device) ------------------------------- */
.portal {
  overflow: hidden; background-color: var(--paper);
  background-image: radial-gradient(ellipse 60% 60% at 80% 45%, rgba(214, 186, 128, .38), transparent 70%), var(--linen);
}
.portal__grid { display: grid; gap: clamp(3.5rem, 8vw, 6rem); align-items: center; }
.features { list-style: none; display: grid; gap: 1.6rem 2.5rem; margin: 2.5rem 0 3rem; }
.features li { display: grid; grid-template-columns: 14px 1fr; gap: 1rem; align-items: start; }
.features .orn { width: 10px; height: 14px; margin-top: .5rem; }
.features h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: var(--heading); line-height: 1.2; margin-bottom: .3rem; }
.features p { margin: 0; color: var(--text-2); font-size: 1rem; line-height: 1.6; }
.portal__cta { margin: 0; }   /* wrapper carries .reveal, so the button keeps its own hover transitions */

@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .portal__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
}

/* Dashboard mock (decorative, aria-hidden) */
.portal__mock { position: relative; }
.dash {
  --line: rgba(207, 175, 112, .3);
  --line-soft: rgba(207, 175, 112, .16);
  --orn: var(--gold);
  position: relative;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: linear-gradient(160deg, #33281F, var(--espresso-2) 55%, var(--espresso));
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(40, 28, 14, .18), 0 50px 90px -40px rgba(40, 28, 14, .75), inset 0 1px 0 rgba(232, 213, 166, .1);
  font-size: .8125rem; line-height: 1.4; color: var(--on-dark);
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
  transform-origin: left center;
}
.dash .corner { width: 34px; opacity: .8; margin: -1px; }
.dash__bar { display: flex; align-items: center; gap: 1rem; padding-bottom: .9rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line-soft); }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(207, 175, 112, .6); }
.dash__url { font-size: .72rem; letter-spacing: .1em; color: var(--on-dark-2); margin-inline: auto; padding-right: 33px; }
.dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.1rem; }
.dash__couple { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.1; color: var(--on-dark); }
.dash__title { font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.dash__btn {
  font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  background: var(--gold); padding: .55rem .8rem; white-space: nowrap;
}
.dash__row { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-bottom: .75rem; }
.dash__tile {
  background: var(--espresso-3); border: 1px solid var(--line-soft);
  padding: .95rem 1rem;
}
.dash__label { display: block; font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: .55rem; }
.dash__count { display: flex; flex-direction: column; justify-content: center; }
.dash__big { font-family: var(--serif); font-size: 3.4rem; line-height: .9; color: var(--gold-light); font-weight: 500; }
.dash__unit { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--on-dark-2); }
.dash__rsvp { display: flex; align-items: center; gap: 1rem; }
.ring {
  --p: 50;
  position: relative; flex: none; width: 84px; aspect-ratio: 1;
  display: grid; place-items: center;
}
.ring__svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring__svg circle { fill: none; stroke-width: 5.5; }
.ring__track { stroke: rgba(207, 175, 112, .18); }
.ring__fill { stroke: var(--gold); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); }
.ring__val { position: relative; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.dash [data-count] { display: inline-block; font-variant-numeric: tabular-nums; }
.ring__val small { font-size: .65em; color: var(--on-dark-2); }
.dash__stats { list-style: none; flex: 1; display: grid; gap: .3rem; }
.dash__stats li { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; color: var(--on-dark-2); }
.dash__stats b { font-weight: 500; color: var(--on-dark); }
.key { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: .45rem; vertical-align: middle; }
.key--ok { background: var(--gold); }
.key--wait { background: transparent; border: 1px solid var(--gold); }
.key--no { background: var(--dot-muted); }
.dash__recent { margin-bottom: .75rem; }
.dash__recent ul { list-style: none; }
.dash__recent li {
  display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center;
  padding: .5rem 0; border-top: 1px solid var(--line-soft); font-size: .8rem;
}
.dash__recent li:first-child { border-top: 0; padding-top: 0; }
.dash__recent em { font-style: normal; color: var(--on-dark-2); font-size: .74rem; }
.pill { font-weight: 500; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .55rem; border: 1px solid; white-space: nowrap; }
.pill--ok { color: var(--gold-light); border-color: rgba(207, 175, 112, .6); background: rgba(207, 175, 112, .14); }
.pill--wait { color: var(--on-dark-2); border-color: rgba(216, 205, 187, .45); }
.pill--no { color: var(--muted-dark); border-color: rgba(181, 168, 145, .3); }   /* muted-dark on cocoa 5.8 */
.tables { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: .6rem; max-width: 200px; }
.tables i { position: relative; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(207, 175, 112, .45); }
.tables i.on { border-color: var(--gold); }
.tables i.on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--gold) 0 34%, transparent 36%); }
.dash__small { font-size: .76rem; color: var(--on-dark); }
.bar { height: 4px; background: rgba(207, 175, 112, .18); margin: 1.1rem 0 .75rem; overflow: hidden; }
.bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transform-origin: 0 50%; transform: scaleX(var(--w, 1)); }
.portal__mock .note { margin-top: 1.4rem; text-align: center; }

@media (min-width: 480px) {
  .dash__row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .dash__row:last-child { grid-template-columns: 1fr 1fr; margin-bottom: 0; }
}
/* small phones: drop the densest tile so the mock reads as a clean visual */
@media (max-width: 479px) {
  .dash__recent { display: none; }
}

/* 12. Process ------------------------------------------------------------ */
.process { background-image: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(207, 175, 112, .1), transparent 70%), var(--linen-dark); }
.process::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(../assets/svg/lines-pattern.svg) 0 0 / 48px 48px; opacity: .07;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.steps {
  list-style: none; position: relative;
  display: grid; gap: 2.75rem;
  padding-left: 3rem;
}
/* vertical connector on mobile */
.steps::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(var(--orn), rgba(207, 175, 112, .2));
}
.step { position: relative; }
.step__node {
  position: absolute; left: -3rem; top: .3rem; width: 23px; height: 23px;
  display: grid; place-items: center; background: var(--bg);
  border: 1px solid var(--orn); border-radius: 50%;
}
.step__node .orn { width: 8px; height: 11px; }
.step__num {
  display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 2rem + 2vw, 3.8rem); line-height: 1;
  color: var(--accent); margin-bottom: .75rem; font-style: italic;   /* gold on mocha 7.5 */
}
.step__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 1.3rem + .6vw, 1.75rem); color: var(--heading); line-height: 1.15; margin-bottom: .6rem; }
.step p { color: var(--text-2); margin: 0; max-width: 36ch; font-size: 1rem; }

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 2rem; padding-left: 0; padding-top: 3.25rem; }
  .steps::before {
    left: 0; right: 0; top: 11px; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--orn) 8%, var(--orn) 92%, transparent);
  }
  .step__node { left: 0; top: -3.25rem; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .steps { gap: 1.25rem; }
  .step__title { font-size: 1.35rem; }
  .step__num { font-size: 2.6rem; }
}

/* 13. Work / showcase ---------------------------------------------------- */
/* ivory, not champagne: the photos (incl. the warm monochrome one) need a lighter ground to separate */
.work { background-color: var(--ivory); background-image: var(--linen); overflow: hidden; }
.work::before {
  content: ""; position: absolute; left: 50%; top: 18%; width: min(1400px, 140vw); aspect-ratio: 2 / 1; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(ellipse at center, rgba(248, 242, 231, .6), transparent 62%);
}
.phones {
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 2.5rem 0 1.5rem;
}
.phones::-webkit-scrollbar { display: none; }
.phones:focus-visible { outline-offset: -4px; }
.phones__track {
  list-style: none; display: flex; gap: 1.5rem; width: max-content;
  padding-inline: max(var(--gutter), calc(50vw - 140px));
}
.phone-card { scroll-snap-align: center; }
.phone-card figure { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.phone-card figcaption { text-align: center; font-size: 1rem; letter-spacing: .02em; color: var(--text-2); line-height: 1.5; }
.phone-card__style { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.45rem; letter-spacing: 0; color: var(--ink); margin-bottom: .2rem; }

.phone {
  position: relative; width: 272px; aspect-ratio: 9 / 18.6;
  padding: 10px; border-radius: 46px;
  background: linear-gradient(145deg, #E9DDC4, #B99B63 40%, #8C6E3D 60%, #D9C59B);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .45),
    0 2px 4px rgba(70, 52, 28, .12),
    0 50px 80px -40px rgba(70, 52, 28, .55);
}
.phone::before { /* dynamic island */
  content: ""; position: absolute; top: 21px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 78px; height: 22px; border-radius: 20px; background: #15120F;
}
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 37px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 3.6rem 1.4rem 1.6rem;
  box-shadow: 0 0 0 2px #15120F;
}
.inv p { margin: 0; }
.inv__btn { margin-top: auto; display: inline-block; padding: .7rem 1.2rem; font-family: var(--sans); font-weight: 500; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; }

/* Phone 1 – Mediterranean lightness: sun-bleached ivory, sea blue, soft arch */
.inv--med { background: linear-gradient(180deg, #FBF6EC, #F1E7D6); color: #2C4D63; font-family: var(--serif); }
.inv--med .inv__sun { position: absolute; top: 58px; right: -28px; width: 120px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(232, 176, 108, .45), transparent 65%); }
.inv--med .inv__greet { font-style: italic; font-size: .95rem; color: #4E6573; margin-bottom: 1.1rem; }
.inv--med .inv__arch {
  width: 100%; padding: 2.1rem 1rem 1.4rem; border: 1px solid rgba(44, 77, 99, .4);
  border-radius: 200px 200px 0 0; position: relative;
}
.inv--med .inv__arch::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(44, 77, 99, .18); border-radius: 200px 200px 0 0; }
.inv--med .inv__eyebrow { font-family: var(--sans); font-weight: 500; font-size: .5rem; letter-spacing: .24em; text-transform: uppercase; color: #4E6573; margin-bottom: .8rem; }
.inv--med .inv__names { font-size: 2.35rem; line-height: 1; font-weight: 400; font-style: italic; color: #1F3A4D; }
.inv--med .inv__names span { display: block; font-size: .7em; color: #A8743F; margin: .1em 0; }
.inv--med .inv__line { font-size: .9rem; line-height: 1.35; margin-top: .8rem; color: #34505F; }
.inv--med .inv__waves {
  width: 70%; height: 10px; margin: 1.1rem 0 .9rem;
  background: radial-gradient(circle at 6px -2px, transparent 5px, rgba(44, 77, 99, .5) 5.6px, transparent 6.4px) 0 0 / 12px 10px repeat-x;
}
.inv--med .inv__date { font-family: var(--sans); font-weight: 500; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: #2C4D63; }
.inv--med .inv__place { font-size: 1.3rem; font-style: italic; color: #A8743F; margin-top: .2rem; }
.inv--med .inv__btn { border: 1px solid #2C4D63; color: #2C4D63; }

/* Phone 2 – Evening elegance: deep emerald, gold deco, tracked caps */
.inv--eve { background: radial-gradient(ellipse at 50% 0%, #22433A, #0F221D 55%, #0A1714); color: #E8D9B0; padding-top: 3.9rem; }
.inv--eve::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(214, 186, 120, .45); border-radius: 28px; pointer-events: none; }
.inv--eve::after { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(214, 186, 120, .18); border-radius: 24px; pointer-events: none; }
.inv--eve .inv__lang { position: absolute; top: 52px; right: 26px; font-size: .5rem; letter-spacing: .2em; color: #CDB178; }
.inv--eve .inv__deco {
  width: 54px; height: 30px; margin-bottom: 1rem;
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 14px, #000 15px, #000 15.8px, transparent 16.5px), linear-gradient(#000, #000) 50% 0 / 1px 60% no-repeat;
  mask: radial-gradient(circle at 50% 100%, transparent 14px, #000 15px, #000 15.8px, transparent 16.5px), linear-gradient(#000, #000) 50% 0 / 1px 60% no-repeat;
  background-color: #D6BA78;
}
.inv--eve .inv__greet { font-family: var(--serif); font-style: italic; font-size: .95rem; color: #D6BA78; margin-bottom: 1.4rem; }
.inv--eve .inv__eyebrow { font-family: var(--sans); font-weight: 500; font-size: .5rem; letter-spacing: .28em; text-transform: uppercase; color: #BFB18F; margin-bottom: 1.1rem; }
.inv--eve .inv__names { font-family: var(--sans); font-weight: 400; font-size: 1.5rem; letter-spacing: .3em; text-transform: uppercase; line-height: 1.5; padding-left: .3em; display: flex; flex-direction: column; color: #F3E6C4; }
.inv--eve .inv__names span { font-family: var(--serif); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 1.2rem; color: #D6BA78; line-height: 1; padding-right: .3em; }
.inv--eve .inv__rule { width: 40px; height: 1px; background: #D6BA78; margin: 1.1rem 0; }
.inv--eve .inv__line { font-family: var(--serif); font-size: .92rem; line-height: 1.4; color: #E0D4B4; max-width: 15em; }
.inv--eve .inv__date { font-family: var(--sans); font-weight: 500; font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 1.1rem; color: #E8D9B0; }
.inv--eve .inv__place { font-family: var(--serif); font-size: 1.15rem; color: #D6BA78; }
.inv--eve .inv__btn { background: #D6BA78; color: #0B1A16; margin-bottom: .6rem; }

/* Phone 3 – Autumn in Istria: warm parchment, terracotta, olive hills, countdown */
.inv--ist { background: linear-gradient(180deg, #F7EEDF, #EFDFC6 70%, #E8D2B2); color: #4A2A1C; padding-top: 3.5rem; }
.inv--ist .inv__menu { font-family: var(--sans); font-weight: 500; font-size: .47rem; letter-spacing: .18em; text-transform: uppercase; color: #8A4A2C; border-bottom: 1px solid rgba(138, 74, 44, .3); padding-bottom: .7rem; width: 100%; margin-bottom: 1.5rem; }
.inv--ist .inv__eyebrow { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #8A4A2C; margin-bottom: .4rem; }
.inv--ist .inv__names { font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: .92; color: #3E2216; letter-spacing: -.01em; }
.inv--ist .inv__names span { font-weight: 400; font-style: italic; color: #A65A33; font-size: .75em; }
.inv--ist .inv__date { font-family: var(--sans); font-weight: 500; font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 1.1rem; color: #4A2A1C; }
.inv--ist .inv__place { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #8A4A2C; }
.inv--ist .inv__count { display: flex; gap: .4rem; margin-top: 1.1rem; position: relative; z-index: 1; }
.inv--ist .inv__count span { display: flex; flex-direction: column; min-width: 54px; padding: .45rem .3rem; border: 1px solid rgba(138, 74, 44, .35); background: rgba(255, 250, 240, .6); font-size: .46rem; letter-spacing: .12em; text-transform: uppercase; color: #8A4A2C; }
.inv--ist .inv__count b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; letter-spacing: 0; color: #3E2216; line-height: 1.1; }
.inv--ist .inv__hills {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36%;
  background:
    radial-gradient(ellipse 75% 55% at 22% 100%, #9AA07C 99%, transparent 100%),
    radial-gradient(ellipse 85% 48% at 88% 100%, #B7AE86 99%, transparent 100%),
    radial-gradient(ellipse 60% 80% at 62% 100%, #C9B791 99%, transparent 100%);
  -webkit-mask-image: linear-gradient(transparent, #000 45%);
  mask-image: linear-gradient(transparent, #000 45%);
  opacity: .75;
}
.inv--ist .inv__btn { position: relative; z-index: 1; background: #8A4A2C; color: #FBF3E6; }

@media (min-width: 1024px) {
  .phones { overflow: visible; padding-top: 3rem; }
  .phones__track { width: auto; justify-content: center; gap: clamp(2rem, 4vw, 4.5rem); padding-inline: var(--gutter); }
  .phone-card--raised { transform: translateY(-2.5rem); }
  .phone-card:first-child .phone { rotate: -3deg; }
  .phone-card:last-child .phone { rotate: 3deg; }
}

/* Editorial photo gallery */
.gallery {
  display: grid; gap: clamp(.75rem, 1.6vw, 1.25rem);
  margin-top: clamp(4rem, 9vw, 7rem);
  grid-template-columns: 1fr 1fr;
}
.gallery__item { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--champagne); box-shadow: var(--shadow-lift); }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 2.2s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 250, 240, .75); pointer-events: none; }
@media (min-width: 1024px) {
  .gallery { grid-template-columns: 7fr 4fr; grid-auto-rows: clamp(220px, 22vw, 340px); }
  .gallery__item, .gallery__item--wide { aspect-ratio: auto; grid-column: auto; }
  .gallery__item:nth-child(1) { grid-row: span 2; }
  /* tall slot: zoom in so the hand, ring and glass fill the frame rather than the lace */
  .gallery__item--warm img { transform: scale(1.3); transform-origin: 55% 82%; }
  .gallery__item--warm:hover img { transform: scale(1.33); }
}
/* warm-toned monochrome: the black-and-white bride photo sits with the sunlit coast shots */
.gallery__item--warm img { filter: sepia(.35) saturate(1.1) brightness(1.08) contrast(.95); object-position: 55% 70%; }
.work__cta { text-align: center; margin: 3rem 0 0; }

/* 14. Brand statement band (dark, lamp glow) ----------------------------- */
.statement {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(5.5rem, 12vw, 9.5rem);
  text-align: center;
  background-image: radial-gradient(ellipse 60% 70% at 50% 42%, rgba(207, 175, 112, .17), transparent 68%), var(--linen-dark);
}
.statement::after {
  content: ""; position: absolute; inset: clamp(12px, 2.4vw, 28px); border: 1px solid var(--line); pointer-events: none;
  box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6px var(--line-soft);
}
.statement__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.statement__spark { width: 16px; height: 22px; margin-bottom: 2.25rem; }
.statement__text {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); line-height: 1.14; letter-spacing: -.01em;
  color: var(--heading); max-width: 20ch; text-wrap: balance; margin-bottom: 2rem;
}
.statement__text em { display: block; color: var(--gold-light); }   /* gold-light on mocha 10.9 */
.statement__sub { color: var(--text-2); max-width: 46ch; font-size: 1.0625rem; }   /* on-dark-2 on mocha 10.3 */
.statement__sign { position: relative; overflow: hidden; width: 120px; aspect-ratio: 460 / 92; margin-top: 2rem; color: var(--gold); }

/* 15. FAQ ---------------------------------------------------------------- */
.faq .lead a { color: var(--bronze); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.faq__grid { display: grid; gap: clamp(3rem, 6vw, 6rem); }
.faq__photo { display: none; margin-top: 2.5rem; position: relative; width: min(100%, 380px); aspect-ratio: 4 / 3; box-shadow: var(--shadow-soft); }
.faq__photo img { width: 100%; height: 100%; object-fit: cover; }
.faq__photo::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 250, 240, .8); }
.accordion { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 44px; padding: 1.5rem 0;
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 1.15rem + .55vw, 1.6rem); line-height: 1.25;
  color: var(--ink);
  transition: color .4s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--bronze); }
.qa summary i { position: relative; flex: none; width: 15px; height: 15px; }
.qa summary i::before, .qa summary i::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--bronze);
  transition: transform .5s var(--ease);
}
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa__a { padding: 0 2.5rem 1.75rem 0; }
.qa__a p { margin: 0; color: var(--text); max-width: 62ch; }

@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .faq__intro { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; }
  .faq__photo { display: block; }
}

/* 16. Inquiry form ------------------------------------------------------- */
.inquiry { overflow: hidden; background-image: radial-gradient(ellipse 60% 55% at 75% 35%, rgba(207, 175, 112, .1), transparent 70%), var(--linen-dark); }
.inquiry__grid { display: grid; gap: clamp(3rem, 6vw, 5.5rem); }
.inquiry__seal { width: 96px; height: auto; margin: .5rem 0 2rem; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
.inquiry__alt { color: var(--text-2); font-size: 1rem; }
.inquiry__alt a { color: var(--accent); text-underline-offset: .25em; text-decoration-thickness: 1px; display: inline-block; padding-block: .6rem; }
.inquiry__alt a:hover { color: var(--heading); }

.form-card {
  position: relative;
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem);
  background: var(--card);
  border: 1px solid rgba(207, 175, 112, .35);
  box-shadow: var(--shadow-dark);
}
.form-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-soft); pointer-events: none; }
.form-card .corner { width: 44px; margin: 12px; }
@media (max-width: 639px) {
  .form-card { padding-bottom: 3.25rem; }
  .form-card .corner { width: 30px; margin: 10px; }
}
/* No-JS form feedback (contact.php redirects to #upit-poslano / #upit-greska) */
.nojs-msg { display: none; padding: 1.4rem 1.5rem; border: 1px solid var(--line); background: var(--paper); margin-bottom: 1.5rem; }
.nojs-msg:target { display: block; }
.nojs-msg--error { border-color: var(--error); border-left-width: 3px; }
.js .nojs-msg { display: none; } /* JS renders its own status message */
.form__note { font-size: 1rem; color: var(--text-2); margin-bottom: 2rem; }
.form__summary {
  margin-bottom: 1.5rem; padding: .9rem 1rem; border-left: 3px solid var(--error);
  background: rgba(163, 64, 42, .06); color: var(--error); font-size: 1rem; font-weight: 500;
}
.form__summary:focus { outline: none; }
.form__summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.form__summary-title { margin: 0; }
.form__summary-title::before { content: "! "; font-weight: 500; }
.form__summary ul { list-style: none; margin: .4rem 0 0; display: grid; gap: .1rem; }
.form__summary a { color: var(--error); text-underline-offset: .2em; text-decoration-thickness: 1px; display: inline-block; padding-block: .2rem; }
.field { margin: 0 0 1.6rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 0 1.5rem; }
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field--narrow { max-width: 50%; padding-right: .75rem; }
}
.field > label:not(.check), .field legend {
  display: block; margin-bottom: .5rem; padding: 0;
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze);
}
.field__opt { text-transform: none; letter-spacing: .01em; color: var(--text-2); font-size: .85rem; font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="date"], .field textarea {
  width: 100%; min-height: 48px;
  padding: .7rem 0;
  background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0;
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.5;
  background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat;
  background-position: 0 100%; background-size: 0 1px;
  transition: border-color .4s var(--ease), background-color .4s, box-shadow .4s, background-size .8s var(--ease-lux);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 8rem; border: 1px solid var(--field-line); padding: .8rem 1rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background-color: rgba(229, 216, 194, .35); }
.field input:focus { background-size: 100% 1px; }          /* 1px border + 1px sweep = 2px focus line, ink on card 16.1 */
.field textarea:focus { box-shadow: 0 0 0 1px var(--ink); }
.field > label:not(.check) { transition: color .4s var(--ease); }
.field:focus-within > label:not(.check) { color: var(--ink); }
.field input[type="date"] { color-scheme: light; }
.field input[type="date"]:disabled { opacity: .45; }
.field__help { font-size: 1rem; color: var(--text-2); margin: .5rem 0 .3rem; }
.field__error { font-size: 1rem; font-weight: 500; color: var(--error); margin: .45rem 0 0; min-height: 0; }
.field__error::before { content: "! "; }
.field__error:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field.is-invalid input { background-image: linear-gradient(var(--error), var(--error)); }

.field__other { margin-top: 1rem; display: none; }
.field__other.is-visible { display: block; }
html:not(.js) .field__other { display: block; }

.check { display: flex; gap: .9rem; align-items: flex-start; cursor: pointer; font-size: 1rem; color: var(--text); line-height: 1.55; min-height: 44px; }
.check input {
  flex: none; width: 20px; height: 20px; margin: .15rem 0 0;
  -webkit-appearance: none; appearance: none; border: 1.5px solid var(--bronze); background: var(--card); cursor: pointer;
  display: grid; place-items: center; transition: background-color .3s;
}
.check input::after { content: ""; width: 10px; height: 6px; border: solid var(--paper); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.check a { color: var(--bronze); text-underline-offset: .2em; }
.check--inline { font-size: 1rem; color: var(--text-2); min-height: 44px; align-items: center; }
.check--inline input { margin: 0; width: 18px; height: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.15rem;
  border: 1px solid var(--field-line); border-radius: 999px;
  font-family: var(--sans); font-size: 1rem; color: var(--ink-2);
  transition: background-color .35s var(--ease), color .35s, border-color .35s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin-top: 1.5rem; }
.form__status:empty { display: none; }
.form__status .msg { padding: 1.4rem 1.5rem; border: 1px solid var(--line); background: var(--paper); }
.form__status .msg--error { border-color: var(--error); border-left-width: 3px; background: rgba(163, 64, 42, .05); }
.form__status .msg__title, .nojs-msg .msg__title { font-family: var(--serif); font-weight: 500; font-size: 1.65rem; color: var(--ink); margin: 0 0 .35rem; line-height: 1.2; }
.form__status .msg p, .nojs-msg p { margin: 0; color: var(--text); }
.form.is-sent .field, .form.is-sent .field-row, .form.is-sent .form__note, .form.is-sent [data-submit] { display: none; }
.form.is-sent .form__status { margin-top: 0; }
/* success seal (sparkle + expanding ring), added by main.js; animated in 18i */
.msg__seal { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 .9rem; color: var(--gold-deep); }
.msg__seal .orn { width: 18px; height: 24px; }
.msg__seal::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--gold-deep); border-radius: 50%; opacity: 0; }

@media (min-width: 1024px) {
  .inquiry__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .inquiry__intro { position: sticky; top: calc(var(--header-h) + 3rem); }
}

/* 17. Footer + privacy --------------------------------------------------- */
.site-footer {
  position: relative;
  background-image: radial-gradient(ellipse 50% 45% at 50% 0%, rgba(207, 175, 112, .1), transparent 70%), var(--linen-dark);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 5px 0 -4px var(--line-soft);
  padding: clamp(4rem, 9vw, 7rem) 0 2.5rem;
  color: var(--text-2);
  font-size: 1rem;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(3rem, 7vw, 5rem); }
.footer-wordmark { width: min(340px, 78vw); aspect-ratio: 480 / 166; color: var(--gold); }   /* gold on espresso 8.4 */
.site-footer__tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--text); margin: 1.5rem 0 0; }
.site-footer__cols { display: grid; gap: 3rem; padding-bottom: 3rem; }
.site-footer__links { list-style: none; display: grid; gap: .25rem; align-content: start; }
.site-footer__links a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--heading); text-decoration: none;
  transition: color .4s;
}
.site-footer__links a:hover { color: var(--gold-light); }
.site-footer__links a[href^="mailto"] { text-transform: none; letter-spacing: .04em; font-size: 1rem; }
.privacy { max-width: 62ch; }
.privacy__title { font-family: var(--sans); font-weight: 500; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.privacy p { font-size: 1rem; line-height: 1.65; margin-bottom: .7em; }
.privacy a { color: var(--gold-light); }
.privacy:target { outline: 2px solid var(--line); outline-offset: 1rem; }
.site-footer__base { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; padding-top: 1rem; font-size: 1rem; letter-spacing: .01em; }
.site-footer__base p { margin: 0; }
.site-footer__base .orn { width: min(240px, 60vw); height: 14px; }
@media (max-width: 899px) {
  .site-footer__links { justify-items: center; text-align: center; }
  .privacy__title { text-align: center; }
}
@media (min-width: 900px) {
  .site-footer__cols { grid-template-columns: 1fr 2fr; gap: 4rem; border-top: 1px solid var(--line); padding-top: 3rem; }
}

/* 18. Motion --------------------------------------------------------------
   Slow, quiet, purposeful. One ease (--ease-lux), durations --dur-s .6s / --dur-m 1s /
   --dur-l 1.4s (ambient loops are slower). Only transform, opacity, clip-path and
   stroke-dashoffset animate (plus the paint-only gold sweeps on buttons and fields, and
   paint-only colour/shadow hover transitions).
   Content is visible by default; every hidden start state and every @keyframes below sits inside
   prefers-reduced-motion: no-preference AND (except the hero/intro, which are CSS-only and
   end by themselves) under html.reveal-on, which main.js sets once its observer is ready.
   Ambient loops are finite (1–3 runs, started when their section comes into view): nothing
   moves forever, and at most one or two ornaments move on a screen at a time.
   Triggers
   - html.intro       first view per session, not on deep links (inline head script) -> 18a curtain,
                      ends itself at 1s; main.js adds .intro-done when it ends (or speeds it up on input)
   - .hero            CSS keyframes on load, never wait for JS -> 18b
   - .reveal          fade + rise when in view; .reveal--wipe adds a clip-path wipe + image settle
                      (never on an element with its own transitions, e.g. a .btn: wrap it instead)
   - .inview          trigger only: gets .is-in like .reveal, CSS animates its children
   - .draw            ornament inside a .reveal/.inview; wipes open from the centre when that parent is in
                      (.is-in comes from the IntersectionObserver in main.js; observed elements are never
                      clip-path-hidden themselves, because the observer ignores fully clipped targets)
   - JS hooks: [data-count] numbers count up, [data-steps] sets --draw on scroll,
     [data-parallax] sets --py, [data-tilt] sets --rx/--ry per phone */
@media (prefers-reduced-motion: no-preference) {

  /* 18a. First-visit intro: ivory curtain, sparkle + wordmark wipe in, curtain lifts by 1s.
     Pure CSS, pointer-events none (never blocks). On first input main.js speeds the running
     curtain up (Web Animations playbackRate) or, without that API, adds html.intro-skip (quick fade).
     Once it has ended main.js adds html.intro-done and the layers are removed for good. */
  html.intro body::before {
    content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none;
    background-color: var(--ivory);
    background-image: radial-gradient(ellipse 45% 40% at 50% 50%, rgba(214, 186, 128, .42), transparent 72%), var(--linen);
    animation: intro-curtain 1s var(--ease-lux) both;
  }
  html.intro body::after {
    content: ""; position: fixed; left: 50%; top: 50%; z-index: 301; pointer-events: none;
    width: min(240px, 58vw); aspect-ratio: 460 / 190;
    background-color: var(--gold-text);
    -webkit-mask: url(../assets/svg/sparkle.svg) 50% 0 / 7% auto no-repeat, url(../assets/svg/wordmark-compact.svg) 50% 70% / 100% auto no-repeat, linear-gradient(#000, #000) 50% 100% / 36% 1px no-repeat;
    mask: url(../assets/svg/sparkle.svg) 50% 0 / 7% auto no-repeat, url(../assets/svg/wordmark-compact.svg) 50% 70% / 100% auto no-repeat, linear-gradient(#000, #000) 50% 100% / 36% 1px no-repeat;
    transform: translate(-50%, -50%);
    animation: intro-mark 1s var(--ease-lux) both;
  }
  html.intro-skip:not(.intro-done) body::before, html.intro-skip:not(.intro-done) body::after { animation: intro-out .35s ease both; }
  html.intro-done body::before, html.intro-done body::after { content: none; }
  .hero { --hd: 0s; }                 /* hero delay base: waits for the curtain on first view */
  html.intro .hero { --hd: .55s; }    /* the curtain starts lifting at .45s */

  /* 18b. Hero (CSS only). Settles by ≈2.3s on a first visit, ≈1.7s afterwards. */
  .hero .eyebrow { animation: wipe-r var(--dur-l) var(--ease-lux) calc(var(--hd) + .05s) both; }
  .hero .eyebrow::before { transform-origin: 0 50%; animation: grow-x var(--dur-l) var(--ease-lux) var(--hd) both; }
  .hero__title .w { animation: w-mask 1.6s linear var(--hd) both; }
  .hero__title .w > span { animation: w-rise var(--dur-m) var(--ease-lux) both; animation-delay: calc(var(--hd) + .12s + var(--wi, 0) * 90ms); }
  .hero__title > .w:nth-of-type(2) { --wi: 1; }
  .hero__title > .w:nth-of-type(3) { --wi: 2; }
  .hero__title em .w:nth-of-type(1) { --wi: 3; }
  .hero__title em .w:nth-of-type(2) { --wi: 4; }
  .hero .divider { animation: draw-h var(--dur-l) var(--ease-lux) calc(var(--hd) + .45s) both; }
  .hero__lead { animation: rise var(--dur-m) var(--ease-lux) calc(var(--hd) + .55s) both; }
  .hero__actions { animation: rise var(--dur-m) var(--ease-lux) calc(var(--hd) + .68s) both; }
  .hero__photo { animation: photo-wipe var(--dur-l) var(--ease-lux) calc(var(--hd) + .15s) both; }
  /* one-off settle from a slight zoom (no endless Ken Burns: it would re-run the .hero__dof blur every frame) */
  .hero__img { scale: 1.08; translate: 0 var(--py, 0px); animation: kb-in 2s var(--ease-lux) calc(var(--hd) + .15s) both; }
  .hero__media::before { animation: frame-draw var(--dur-m) var(--ease-lux) calc(var(--hd) + .5s) both; }
  .hero__media::after { animation: fade-in var(--dur-m) var(--ease-lux) calc(var(--hd) + .7s) both; }
  /* scroll cue: the line draws and retracts slowly a few times, then stays drawn */
  .scroll-cue__line { animation: cue 3s var(--ease-lux) calc(var(--hd) + 1.6s) 3 alternate both; }

  /* 18c. Section reveals (extends the existing .reveal system) */
  .reveal-on .reveal {
    transition: opacity var(--dur-m) var(--ease-lux), transform var(--dur-m) var(--ease-lux);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .reveal-on .reveal:not(.is-in) { opacity: 0; transform: translate3d(0, 28px, 0); }
  .reveal-on .phone-card--raised.reveal.is-in { transform: none; }
  /* images: the frame fades/rises as a .reveal, the photo inside wipes upwards and settles from a slight zoom.
     (The clip sits on the img, never on the observed element: IntersectionObserver ignores fully clipped targets.) */
  .reveal-on .reveal--wipe img {
    transition: clip-path var(--dur-l) var(--ease-lux), scale 2s var(--ease-lux), transform 2.2s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms + .1s), calc(var(--i, 0) * 90ms + .1s), 0s;
  }
  .reveal-on .reveal--wipe:not(.is-in) img { clip-path: inset(100% 0 0 0); }
  .reveal-on .gallery__item.reveal--wipe:not(.is-in) img { scale: 1.12; }   /* zoom only inside overflow: hidden, never widening the page */
  .reveal-on .reveal--wipe::after { transition: opacity var(--dur-m) var(--ease-lux) .9s; }
  .reveal-on .reveal--wipe:not(.is-in)::after { opacity: 0; }
  .reveal-on .services__photo::before { transition: clip-path var(--dur-l) var(--ease-lux) .6s; }
  .reveal-on .services__photo:not(.is-in)::before { clip-path: inset(100% 0 0 100%); }

  /* 18d. Ornaments: hairlines grow, frames draw, a few sparkles twinkle */
  /* explicit end state for every clip-path transition (inset() -> none would snap, not animate) */
  .reveal-on .reveal--wipe img, .reveal-on .services__photo::before,
  .reveal-on .manifesto__visual .arch-photo__frame, .reveal-on .manifesto__visual .arch-photo img,
  .reveal-on .form-card .corner, .reveal-on .portal__mock .corner, .reveal-on .statement.inview::after { clip-path: inset(0); }
  .reveal-on .eyebrow.reveal::before, .reveal-on .eyebrow.reveal::after { transition: transform var(--dur-l) var(--ease-lux) .2s; }
  .reveal-on .eyebrow.reveal::before { transform-origin: 100% 50%; }
  .reveal-on .eyebrow.reveal::after { transform-origin: 0 50%; }
  .reveal-on .eyebrow.reveal:not(.is-in)::before, .reveal-on .eyebrow.reveal:not(.is-in)::after { transform: scaleX(0); }
  .reveal-on .draw { clip-path: inset(0); transition: clip-path var(--dur-l) var(--ease-lux) .1s; }
  .reveal-on .inview:not(.is-in) .draw, .reveal-on .reveal:not(.is-in) .draw { clip-path: inset(0 50% 0 50%); }
  /* manifesto: the arch frame draws upwards, photo wipes in, oval and monogram follow; the ring turns once */
  .reveal-on .manifesto__visual .arch-photo__frame { transition: clip-path 1.8s var(--ease-lux) .15s; }
  .reveal-on .manifesto__visual .arch-photo img { transition: clip-path var(--dur-l) var(--ease-lux) .35s; }
  .reveal-on .manifesto__visual .manifesto__oval { transition: opacity var(--dur-m) var(--ease-lux) .7s, transform var(--dur-l) var(--ease-lux) .7s; }
  .reveal-on .manifesto__visual .monogram { transition: opacity var(--dur-m) var(--ease-lux) .95s, scale var(--dur-l) var(--ease-lux) .95s; }
  .reveal-on .manifesto__visual:not(.is-in) .arch-photo__frame { clip-path: inset(100% 0 0 0); }
  .reveal-on .manifesto__visual:not(.is-in) .arch-photo img { clip-path: inset(100% 0 0 0); }
  .reveal-on .manifesto__visual:not(.is-in) .manifesto__oval { opacity: 0; transform: translate3d(0, 24px, 0); }
  .reveal-on .manifesto__visual:not(.is-in) .monogram { opacity: 0; scale: .8; }
  .manifesto__visual.is-in .monogram__ring { animation: spin 60s linear 1s 1; }
  /* corner ornaments draw out from their corner */
  .reveal-on .form-card .corner, .reveal-on .portal__mock .corner { transition: clip-path var(--dur-l) var(--ease-lux) .45s; }
  .reveal-on .form-card:not(.is-in) .corner, .reveal-on .portal__mock:not(.is-in) .corner { clip-path: inset(0 100% 100% 0); }
  /* statement band: the double frame opens from a centre line */
  .reveal-on .statement.inview::after { transition: clip-path 1.6s var(--ease-lux), opacity var(--dur-m) var(--ease-lux); }
  .reveal-on .statement.inview:not(.is-in)::after { clip-path: inset(50% 0 50% 0); opacity: 0; }
  /* sparkles: a slow twinkle, twice, once their block is in view (feature and step stars stay still) */
  .statement__spark.is-in, .signature.is-in .orn { animation: twinkle 6s ease-in-out 1s 2; }
  .site-nav.is-open .site-nav__sparkle { animation: twinkle 6s ease-in-out .6s 2; }
  /* a slow gold glint across the statement wordmark (masked by the wordmark itself), twice */
  .statement__sign::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 246, 224, .95) 50%, transparent 70%);
    transform: translateX(-110%);
  }
  .statement__sign.is-in::after { animation: glint 7s var(--ease-lux) 1.2s 2; }

  /* 18e. Portal dashboard: ring fills, bar grows, tables fill one by one (numbers: main.js) */
  .reveal-on .portal__mock .ring__fill { transition: stroke-dashoffset 1.6s var(--ease-lux) .35s; }
  .reveal-on .portal__mock:not(.is-in) .ring__fill { stroke-dashoffset: 100; }
  .reveal-on .portal__mock .bar span { transition: transform var(--dur-l) var(--ease-lux) .55s; }
  .reveal-on .portal__mock:not(.is-in) .bar span { transform: scaleX(0); }
  .reveal-on .portal__mock .tables i.on::after { transition: transform var(--dur-s) var(--ease-lux), opacity var(--dur-s) var(--ease-lux); transition-delay: calc(.5s + var(--t, 0) * 110ms); }
  .reveal-on .portal__mock:not(.is-in) .tables i.on::after { transform: scale(0); opacity: 0; }
  .tables i:nth-child(2) { --t: 1; } .tables i:nth-child(3) { --t: 2; } .tables i:nth-child(4) { --t: 3; }
  .tables i:nth-child(5) { --t: 4; } .tables i:nth-child(6) { --t: 5; } .tables i:nth-child(7) { --t: 6; }
  .tables i:nth-child(8) { --t: 7; } .tables i:nth-child(9) { --t: 8; }

  /* 18f. Process: the gold connector follows the scroll (--draw, 0–1, from main.js); nodes and numbers in sequence */
  .reveal-on .steps::before { transform-origin: 50% 0; transform: scaleY(var(--draw, 0)); transition: transform .25s linear; }
  .reveal-on .step .step__node { transition: transform var(--dur-m) var(--ease-lux), opacity var(--dur-s) var(--ease-lux); transition-delay: calc(var(--i, 0) * 90ms + .1s); }
  .reveal-on .step .step__num { transition: transform var(--dur-m) var(--ease-lux), opacity var(--dur-m) var(--ease-lux); transition-delay: calc(var(--i, 0) * 90ms + .22s); }
  .reveal-on .step:not(.is-in) .step__node { transform: scale(.3); opacity: 0; }
  .reveal-on .step:not(.is-in) .step__num { transform: translate3d(0, 16px, 0); opacity: 0; }

  /* 18g. Showcase phones: a slow float, twice, one phone after another (translate);
     hover lift (figure) and pointer tilt (transform, main.js) on desktop below */
  .phone-card.is-in .phone { animation: float 7s ease-in-out .8s 2; }
  .phone-card.is-in:nth-child(2) .phone { animation-delay: 3.1s; }
  .phone-card.is-in:nth-child(3) .phone { animation-delay: 5.4s; }

  /* 18h. FAQ height (where ::details-content is supported; elsewhere it opens instantly) */
  @supports selector(::details-content) {
    .qa { interpolate-size: allow-keywords; }
    .qa::details-content { block-size: 0; overflow: hidden; transition: block-size .7s var(--ease-lux), content-visibility .7s allow-discrete; }
    .qa[open]::details-content { block-size: auto; }
  }
  .qa[open] .qa__a { animation: qa-in .8s var(--ease-lux) both; }

  /* 18i. Form: success seal */
  .form__status .msg { animation: rise var(--dur-m) var(--ease-lux) both; }
  .msg__seal .orn { animation: seal-in var(--dur-l) var(--ease-lux) .15s both; }
  .msg__seal::before { animation: seal-ring 1.6s var(--ease-lux) .3s both; }

  /* 18j. Keyframes (all of them live here, so reduced motion never sees one) */
  @keyframes intro-curtain { 0%, 45% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); visibility: hidden; } }
  @keyframes intro-mark {
    0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translate(-50%, -50%); }
    12% { opacity: 1; }
    44% { opacity: 1; clip-path: inset(0 0 0 0); transform: translate(-50%, -50%); }
    70% { opacity: 0; clip-path: inset(0 0 0 0); transform: translate(-50%, -62%); }
    100% { opacity: 0; visibility: hidden; transform: translate(-50%, -62%); }
  }
  @keyframes intro-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
  @keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes wipe-r { from { clip-path: inset(-50% 100% -50% 0); } to { clip-path: inset(-50% -50% -50% -50%); } }
  @keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }
  @keyframes draw-h { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
  @keyframes w-mask { 0%, 99% { clip-path: inset(-.4em -.3em -.2em -.3em); } 100% { clip-path: none; } }
  @keyframes w-rise { from { opacity: .01; transform: translate3d(0, 1.3em, 0); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
  @keyframes photo-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(-25%); } }
  @keyframes kb-in { from { scale: 1.2; } to { scale: 1.08; } }
  @keyframes frame-draw { from { clip-path: inset(100% 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
  @keyframes cue { from { transform: scaleX(0); } to { transform: none; } }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes twinkle { 0%, 62%, 100% { scale: 1; } 78% { scale: .6; } 88% { scale: 1.06; } }
  @keyframes glint { 0% { transform: translateX(-110%); } 28%, 100% { transform: translateX(110%); } }
  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
  @keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  @keyframes seal-in { 0% { opacity: 0; transform: scale(.6) rotate(-20deg); } 100% { opacity: 1; transform: none; } }
  @keyframes seal-ring { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.4); } }
}

/* overlay menu (below --bp-nav, JS only): links and CTA rise in one after another */
@media (prefers-reduced-motion: no-preference) and (max-width: 1099.98px) {
  html.js .site-nav__list li { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .5s var(--ease-lux), transform .7s var(--ease-lux); }
  /* the CTA is a .btn: keep its own sweep/colour transitions next to the entrance */
  html.js .site-nav__cta-mobile {
    opacity: 0; transform: translate3d(0, 14px, 0);
    transition: opacity .5s var(--ease-lux), transform .7s var(--ease-lux), background-size .55s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
  }
  html.js .site-nav.is-open .site-nav__list li { opacity: 1; transform: none; transition-delay: calc(80ms + 60ms * var(--n, 0)); }
  html.js .site-nav.is-open .site-nav__cta-mobile { opacity: 1; transform: none; transition-delay: 420ms, 420ms, 0s, 0s, 0s; }
  .site-nav__list li:nth-child(2) { --n: 1; } .site-nav__list li:nth-child(3) { --n: 2; } .site-nav__list li:nth-child(4) { --n: 3; }
  .site-nav__list li:nth-child(5) { --n: 4; } .site-nav__list li:nth-child(6) { --n: 5; }
}

/* desktop: parallax room, raised middle phone, phone tilt + lift */
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
  .reveal-on .steps::before { transform-origin: 0 50%; transform: scaleX(var(--draw, 0)); }
  .reveal-on .phone-card--raised.reveal:not(.is-in) { transform: translate3d(0, 0, 0); }
  .reveal-on .phone-card--raised.reveal.is-in { transform: translateY(-2.5rem); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) and (hover: hover) {
  .phone { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .9s var(--ease-lux); }
  .phone-card figure { transition: transform var(--dur-m) var(--ease-lux); }
  .phone-card:hover figure { transform: translate3d(0, -8px, 0); }
}
/* mobile carousel: off-screen phone cards never intersect vertically – show them as-is */
@media (max-width: 1023px) {
  .reveal-on .phone-card.reveal { opacity: 1; transform: none; transition: none; }
}

/* 19. Reduced motion & print -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

@media print {
  .site-header, .scroll-cue, .phones, .form-card, .hero__dof { display: none; }
  body { background: #fff; color: #000; }
  .on-dark { background: #fff; color: #000; --heading: #000; --text: #000; --text-2: #333; --accent: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal--wipe, .draw, .hero__photo { clip-path: none !important; }
  body::before, body::after { display: none !important; }
}
