/* =====================================================================
   AMARAVILLA — Core design system
   Contemporary architectural warm minimalism.
   Author: build system for Hassan Pty Ltd (ABN 79 647 548 605)
   ===================================================================== */

/* ---------------------------------------------------------------------
   0. Self-hosted fonts (WOFF2, latin) — performance & privacy
   --------------------------------------------------------------------- */
@font-face { font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap; src:url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:500; font-display:swap; src:url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:600; font-display:swap; src:url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:700; font-display:swap; src:url("/assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family:"Cormorant Garamond"; font-style:normal; font-weight:500; font-display:swap; src:url("/assets/fonts/cormorant-500.woff2") format("woff2"); }
@font-face { font-family:"Cormorant Garamond"; font-style:normal; font-weight:600; font-display:swap; src:url("/assets/fonts/cormorant-600.woff2") format("woff2"); }
@font-face { font-family:"Cormorant Garamond"; font-style:normal; font-weight:700; font-display:swap; src:url("/assets/fonts/cormorant-700.woff2") format("woff2"); }
@font-face { font-family:"Cormorant Garamond"; font-style:italic; font-weight:500; font-display:swap; src:url("/assets/fonts/cormorant-500i.woff2") format("woff2"); }
@font-face { font-family:"Cormorant Garamond"; font-style:italic; font-weight:600; font-display:swap; src:url("/assets/fonts/cormorant-600i.woff2") format("woff2"); }
@font-face { font-family:"Marcellus"; font-style:normal; font-weight:400; font-display:swap; src:url("/assets/fonts/marcellus-400.woff2") format("woff2"); }

/* ---------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------- */
:root {
  /* Brand palette (Website Master Instructions §03) */
  --ivory: #F6F0E3;
  --ivory-deep: #EFE7D6;
  --ivory-soft: #FBF7EF;
  --charcoal: #2D261A;
  --charcoal-soft: #4A4234;
  --gold: #CFAB64;
  --gold-deep: #B98F45;
  --gold-text: #8A6A2E; /* AA-safe gold for small text on ivory/white */
  --terracotta: #AF3323;
  --terracotta-deep: #8F2417;
  --terracotta-bright: #C74A38;
  --earth: #73513C;
  --earth-soft: #8A6A50;
  --night: #17130F;
  --night-2: #211A13;
  --white: #FFFFFF;

  /* Functional */
  --bg: var(--ivory);
  --text: var(--charcoal);
  --muted: #6C6151;
  --muted-on-dark: #C9BDA6;
  --line: rgba(115, 81, 60, 0.18);
  --line-strong: rgba(115, 81, 60, 0.30);
  --line-gold: rgba(207, 171, 100, 0.45);
  --focus: #1E4B8F;

  /* Type */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-brand: "Marcellus", Georgia, serif;

  /* Fluid type scale */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.20vw, 1.16rem);
  --step-1: clamp(1.22rem, 1.14rem + 0.40vw, 1.50rem);
  --step-2: clamp(1.48rem, 1.32rem + 0.80vw, 2.05rem);
  --step-3: clamp(1.80rem, 1.52rem + 1.40vw, 2.85rem);
  --step-4: clamp(2.15rem, 1.70rem + 2.25vw, 3.85rem);
  --step-5: clamp(2.55rem, 1.85rem + 3.50vw, 5.20rem);

  /* Spacing */
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
  --section-y: clamp(4rem, 9vw, 10rem);
  --container: 1320px;
  --container-narrow: 940px;
  --pad-x: clamp(1.25rem, 5vw, 5rem);

  --radius-s: 6px;
  --radius: 14px;
  --radius-l: 24px;
  --radius-pill: 999px;

  --shadow-s: 0 1px 2px rgba(23, 19, 15, 0.05), 0 2px 6px rgba(23, 19, 15, 0.04);
  --shadow-m: 0 6px 18px rgba(23, 19, 15, 0.08), 0 2px 6px rgba(23, 19, 15, 0.05);
  --shadow-l: 0 24px 60px rgba(23, 19, 15, 0.14), 0 8px 20px rgba(23, 19, 15, 0.08);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.5s;
  --header-h: 76px;
}

/* ---------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
img { border-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--night); }

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 2000;
  background: var(--night);
  color: var(--ivory);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-s);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

/* ---------------------------------------------------------------------
   3. Typography
   --------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 500; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { text-wrap: pretty; }
strong { font-weight: 600; }

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--earth);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}
.eyebrow--center { justify-content: center; }
.eyebrow--gold { color: var(--gold-deep); }
.eyebrow--light { color: var(--gold); }
.eyebrow--light::before { background: var(--gold); }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--charcoal-soft);
  font-weight: 400;
  max-width: 60ch;
}
.measure { max-width: 68ch; }
.measure-tight { max-width: 54ch; }

/* ---------------------------------------------------------------------
   4. Layout
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--flush-top { padding-top: clamp(2rem, 4vw, 3.5rem); }

.section--ivory-deep { background: var(--ivory-deep); }
.section--soft { background: var(--ivory-soft); }
.section--night {
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(175, 51, 35, 0.16), transparent 55%),
    radial-gradient(90% 80% at 8% 110%, rgba(207, 171, 100, 0.12), transparent 60%),
    var(--night);
  color: var(--ivory);
}
.section--night h1, .section--night h2, .section--night h3, .section--night h4 { color: var(--ivory); }
.section--night p { color: var(--muted-on-dark); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-first { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-last { grid-template-columns: 0.85fr 1.15fr; }
}
.stack > * + * { margin-top: var(--flow, 1.1rem); }
.stack-s > * + * { margin-top: 0.6rem; }
.stack-l > * + * { margin-top: 1.75rem; }

.section-head { max-width: 62ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 1.1rem; }
.section-head--center .lede { margin-inline: auto; }

/* ---------------------------------------------------------------------
   5. Buttons
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--terracotta);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { background: var(--terracotta-deep); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn:active { transform: translateY(0); }
.btn .btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--charcoal);
  border-color: var(--line-strong);
}
.btn--secondary:hover {
  --btn-bg: transparent;
  border-color: var(--charcoal);
  box-shadow: none;
}
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--terracotta); padding-inline: 0.4rem; border-radius: var(--radius-s); }
.btn--ghost:hover { --btn-bg: transparent; box-shadow: none; color: var(--terracotta-deep); }
.btn--on-dark { --btn-fg: var(--ivory); border-color: rgba(246,240,227,0.3); background: transparent; }
.btn--on-dark:hover { background: rgba(246,240,227,0.08); border-color: var(--ivory); }
.btn--lg { padding: 1.1rem 2rem; font-size: var(--step-1); }
.btn--sm { padding: 0.65rem 1.1rem; font-size: var(--step--1); }
.btn--block { width: 100%; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--terracotta);
  position: relative;
}
.textlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.textlink:hover::after { transform: scaleX(1); }
.textlink .arrow { transition: transform 0.25s var(--ease); }
.textlink:hover .arrow { transform: translateX(3px); }
.section--night .textlink { color: var(--gold); }

/* ---------------------------------------------------------------------
   6. Header & navigation
   --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header.is-solid {
  background: rgba(246, 240, 227, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(23,19,15,0.05);
}
.site-header.is-transparent { background: transparent; }
.site-header.is-transparent .nav-link,
.site-header.is-transparent .brand-word,
.site-header.is-transparent .header-phone { color: var(--ivory); }
.site-header.is-transparent .brand-tag { color: var(--gold); }
.site-header.is-transparent .nav-toggle span { background: var(--ivory); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand__mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand-word {
  font-family: var(--font-brand);
  font-size: 1.32rem;
  letter-spacing: 0.16em;
  color: var(--charcoal);
  transition: color 0.35s var(--ease);
}
.brand-tag {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--earth);
  margin-top: 0.32rem;
}

.primary-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 0.35rem; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius-s);
  position: relative;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.35rem;
  height: 1.5px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after,
.nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link .chev { width: 10px; height: 10px; transition: transform 0.25s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-s);
  transition: background 0.2s var(--ease);
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--ivory-soft); }
.dropdown .d-title { font-weight: 600; font-size: 0.96rem; color: var(--charcoal); }
.dropdown .d-desc { font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-phone {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.5rem 0.7rem;
  color: var(--charcoal);
  border-radius: var(--radius-s);
  white-space: nowrap;
}
.header-phone:hover { color: var(--terracotta); }
.header-phone svg { width: 16px; height: 16px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: var(--radius-s);
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background 0.3s var(--ease);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1160px) {
  .primary-nav { display: block; }
  .header-phone { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 999;
  background: var(--ivory);
  padding: 1.5rem var(--pad-x) 7rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  visibility: hidden;
}
.nav-open .mobile-nav { transform: translateX(0); visibility: visible; }
.mobile-nav a { display: block; }
.mobile-nav .m-link {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
}
.mobile-nav .m-sub { padding: 0.5rem 0 0.9rem; border-bottom: 1px solid var(--line); }
.mobile-nav .m-sub a { font-size: 1.02rem; color: var(--earth); padding: 0.45rem 0 0.45rem 1rem; }
.mobile-nav .m-actions { margin-top: 2rem; display: grid; gap: 0.8rem; }
@media (min-width: 1160px) { .mobile-nav { display: none; } }

/* ---------------------------------------------------------------------
   7. Mobile conversion bar
   --------------------------------------------------------------------- */
.mobile-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 900;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(23, 19, 15, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(207,171,100,0.25);
  transform: translateY(120%);
  transition: transform 0.4s var(--ease);
}
.mobile-bar.is-visible { transform: translateY(0); }
.mobile-bar .btn { width: 100%; padding: 0.8rem 0.5rem; font-size: 0.95rem; }
.mobile-bar .btn--call { background: transparent; border-color: rgba(246,240,227,0.4); color: var(--ivory); }
.mobile-bar .btn--call:hover { background: rgba(246,240,227,0.1); }
@media (min-width: 1160px) { .mobile-bar { display: none; } }
body { padding-bottom: 0; }

/* ---------------------------------------------------------------------
   8. Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(3rem, 8vw, 7rem);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(23,19,15,0.15) 0%, rgba(23,19,15,0.55) 55%, rgba(23,19,15,0.82) 100%),
    radial-gradient(90% 80% at 78% 18%, rgba(222,143,46,0.42), transparent 52%),
    radial-gradient(120% 110% at 20% 100%, rgba(175,51,35,0.45), transparent 60%),
    linear-gradient(135deg, #241a12 0%, #3a2415 42%, #6d3d22 78%, #8a4a26 100%);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.hero__sun {
  position: absolute;
  z-index: -1;
  top: 12%; right: 8%;
  width: clamp(220px, 34vw, 460px);
  aspect-ratio: 1;
  opacity: 0.9;
}
.hero__content { max-width: 62ch; }
.hero h1 { color: var(--ivory); margin-top: 1.1rem; }
.hero__value {
  font-size: var(--step-1);
  color: rgba(246,240,227,0.9);
  margin-top: 1.4rem;
  max-width: 48ch;
}
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__scroll {
  position: absolute;
  bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246,240,227,0.6);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero__scroll .dot { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); }

/* ---------------------------------------------------------------------
   9. Trust strip
   --------------------------------------------------------------------- */
.trust {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(2, 1fr);
  padding-block: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 780px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust__item { display: flex; flex-direction: column; gap: 0.3rem; }
.trust__num {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  color: var(--terracotta);
  font-weight: 600;
}
.trust__label { font-size: 0.9rem; color: var(--muted); }
.trust--divided .trust__item { padding-left: 1.25rem; border-left: 1px solid var(--line); }

/* ---------------------------------------------------------------------
   10. Cards
   --------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-s);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
a.card:hover, .card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); border-color: var(--line-gold); }

.cards-grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .cards-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Service pathway card */
.svc-card { display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden; }
.svc-card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--ivory-soft), var(--ivory-deep));
  border: 1px solid var(--line-gold);
  margin-bottom: 1.2rem;
}
.svc-card__icon svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.svc-card p { color: var(--muted); font-size: 0.98rem; }
.svc-card .textlink { margin-top: 1.2rem; }
.svc-card__index {
  position: absolute; top: 1.2rem; right: 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.05rem; color: var(--gold-text); font-weight: 600;
}

/* Feature list */
.feature-list { display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.feature-list .tick {
  flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(175,51,35,0.1);
  color: var(--terracotta);
}
.feature-list .tick svg { width: 13px; height: 13px; }
.feature-list h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin-bottom: 0.15rem; }
.feature-list p { font-size: 0.94rem; color: var(--muted); }
.section--night .feature-list .tick { background: rgba(207,171,100,0.16); color: var(--gold); }

/* ---------------------------------------------------------------------
   11. Media / material panels (honest imagery placeholders)
   --------------------------------------------------------------------- */
.frame {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-m);
}
.frame--wide { aspect-ratio: 16 / 11; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--square { aspect-ratio: 1; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.3rem 1.1rem;
  background: linear-gradient(transparent, rgba(23,19,15,0.72));
  color: var(--ivory);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.material {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.material__mark { width: 34%; max-width: 150px; opacity: 0.55; }
.material__tag {
  position: absolute; top: 1rem; left: 1rem;
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(23,19,15,0.5);
  background: rgba(246,240,227,0.7);
  padding: 0.3rem 0.6rem; border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
.material--dawn { background: radial-gradient(120% 100% at 70% 20%, #f4d59a, transparent 55%), linear-gradient(160deg, #f6ecd8, #e9c79a 55%, #c98a53); }
.material--terra { background: radial-gradient(120% 100% at 30% 15%, #d98a6a, transparent 55%), linear-gradient(150deg, #b5432f, #7f2a1c); }
.material--stone { background: linear-gradient(150deg, #efe9dd, #d8cfbe 60%, #b9ad97); }
.material--timber { background: linear-gradient(150deg, #9a6c43, #6f4a2c 60%, #4d321d); }
.material--garden { background: radial-gradient(110% 90% at 75% 10%, #cdd7a6, transparent 55%), linear-gradient(155deg, #7d8a54, #4f5f39 65%, #38472b); }
.material--night { background: radial-gradient(110% 90% at 70% 15%, rgba(222,143,46,0.35), transparent 55%), linear-gradient(150deg, #2a2117, #17130f); }
.material--timber .material__tag, .material--terra .material__tag,
.material--garden .material__tag, .material--night .material__tag {
  color: rgba(246,240,227,0.85); background: rgba(23,19,15,0.35);
}

/* ---------------------------------------------------------------------
   12. "One vision" diagram
   --------------------------------------------------------------------- */
.vision-flow {
  display: grid; gap: 0.9rem;
  grid-template-columns: 1fr;
  counter-reset: vstep;
}
@media (min-width: 860px) { .vision-flow { grid-template-columns: repeat(5, 1fr); gap: 0.6rem; } }
.vision-node {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-s);
}
.vision-node__ico { width: 40px; height: 40px; margin: 0 auto 0.8rem; color: var(--terracotta); }
.vision-node h4 { font-family: var(--font-sans); font-size: 0.98rem; font-weight: 600; }
.vision-node p { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.vision-node::after {
  content: "";
  position: absolute;
  color: var(--gold);
}
@media (min-width: 860px) {
  .vision-node:not(:last-child)::after {
    top: 50%; right: -0.55rem;
    width: 0.7rem; height: 0.7rem;
    border-top: 1.5px solid var(--gold);
    border-right: 1.5px solid var(--gold);
    transform: translateY(-50%) rotate(45deg);
  }
}

/* ---------------------------------------------------------------------
   13. Process / steps
   --------------------------------------------------------------------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  color: var(--gold-text);
  line-height: 1;
  min-width: 2.4ch;
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.step p { color: var(--muted); max-width: 60ch; }

/* ---------------------------------------------------------------------
   14. FAQ accordion
   --------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: 1.35rem 0;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  color: var(--charcoal);
}
.faq__q .icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  position: relative;
}
.faq__q .icon::before, .faq__q .icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 1.6px; background: var(--terracotta);
  transform: translate(-50%,-50%);
  transition: transform 0.3s var(--ease);
}
.faq__q .icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .icon::after { transform: translate(-50%,-50%) rotate(0); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.faq__a-inner { padding: 0 0 1.4rem; color: var(--muted); max-width: 68ch; }
.faq__a-inner > * + * { margin-top: 0.8rem; }
.section--night .faq { border-color: rgba(207,171,100,0.2); }
.section--night .faq__item { border-color: rgba(207,171,100,0.2); }
.section--night .faq__q { color: var(--ivory); }

/* ---------------------------------------------------------------------
   15. Forms
   --------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field > label, .field-label {
  font-size: 0.9rem; font-weight: 600; color: var(--charcoal);
}
.field .hint { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--charcoal);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(175,51,35,0.12);
}
.textarea { resize: vertical; min-height: 130px; }
.input::placeholder, .textarea::placeholder { color: #a99f8d; }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--terracotta); }
.error-msg { font-size: 0.82rem; color: var(--terracotta-deep); font-weight: 500; display: none; }
.field--error .error-msg { display: block; }

/* Choice cards (radio/checkbox) */
.choice-grid { display: grid; gap: 0.7rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .choice-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .choice-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.choice {
  position: relative;
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.choice:hover { border-color: var(--gold-deep); }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  display: grid; place-items: center;
  transition: all 0.2s var(--ease);
}
.choice input[type="radio"] + .choice__box { border-radius: 50%; }
.choice__box svg { width: 12px; height: 12px; opacity: 0; color: #fff; transition: opacity 0.15s var(--ease); }
.choice__text { font-size: 0.96rem; }
.choice__text .c-title { font-weight: 600; display: block; }
.choice__text .c-desc { font-size: 0.84rem; color: var(--muted); }
.choice input:checked ~ .choice__box { background: var(--terracotta); border-color: var(--terracotta); }
.choice input:checked ~ .choice__box svg { opacity: 1; }
.choice:has(input:checked) { border-color: var(--terracotta); background: rgba(175,51,35,0.04); box-shadow: 0 0 0 3px rgba(175,51,35,0.08); }
.choice input:focus-visible ~ .choice__box { outline: 3px solid var(--focus); outline-offset: 2px; }

/* consent rows */
.consent-row { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.6rem 0; }
.consent-row .choice__box { width: 20px; height: 20px; }
.consent-row label { font-size: 0.9rem; color: var(--charcoal-soft); cursor: pointer; }

.file-drop {
  border: 1.6px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  color: var(--muted);
  background: var(--ivory-soft);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.file-drop:hover { border-color: var(--gold-deep); }
.file-drop strong { color: var(--terracotta); }

/* ---------------------------------------------------------------------
   16. Smart Project Planner
   --------------------------------------------------------------------- */
.planner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.planner__head { padding: 1.5rem clamp(1.3rem, 3vw, 2.4rem) 0; }
.planner__progress-track {
  height: 5px; width: 100%;
  background: var(--ivory-deep);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 1rem;
}
.planner__progress-bar {
  height: 100%; width: 14%;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  border-radius: var(--radius-pill);
  transition: width 0.5s var(--ease);
}
.planner__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.7rem; gap: 1rem; }
.planner__step-label { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.planner__count { font-size: 0.85rem; color: var(--muted); }
.planner__body { padding: clamp(1.3rem, 3vw, 2.4rem); }
.planner-step { display: none; }
.planner-step.is-active { display: block; animation: fadeUp 0.45s var(--ease); }
.planner-step h2 { font-size: var(--step-2); }
.planner-step .why { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; max-width: 58ch; }
.planner-step .fields { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.planner__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem clamp(1.3rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
  background: var(--ivory-soft);
}
.planner__review dl { display: grid; gap: 0.6rem; }
.planner__review .row { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.planner__review dt { color: var(--muted); font-size: 0.9rem; }
.planner__review dd { font-weight: 600; text-align: right; }
.planner__success { text-align: center; padding: clamp(2rem,5vw,3.5rem) 1rem; display: none; }
.planner__success.is-active { display: block; animation: fadeUp 0.5s var(--ease); }
.planner__success .seal { width: 72px; height: 72px; margin: 0 auto 1.4rem; }
.reduced-note { font-size: 0.8rem; color: var(--muted); }

/* ---- Sketchpad ---- */
.sketchpad { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ivory-soft); }
.sketch-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center; padding: 0.7rem 0.8rem; background: var(--white); border-bottom: 1px solid var(--line); }
.sketch-group { display: flex; gap: 0.3rem; align-items: center; }
.sketch-group + .sketch-group { padding-left: 0.8rem; border-left: 1px solid var(--line); }
.sketch-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1.5px solid var(--line-strong); color: var(--charcoal); background: var(--white); transition: all 0.18s var(--ease); }
.sketch-btn:hover { border-color: var(--charcoal); }
.sketch-btn.is-active { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.sketch-upload { cursor: pointer; }
.sketch-colors { gap: 0.4rem; }
.sketch-swatch { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); border: 2px solid var(--white); box-shadow: 0 0 0 1.5px var(--line-strong); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.sketch-swatch:hover { transform: scale(1.1); }
.sketch-swatch.is-active { box-shadow: 0 0 0 2px var(--terracotta); transform: scale(1.12); }
.sketch-size { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.sketch-size input[type="range"] { width: 84px; accent-color: var(--terracotta); }
.sketch-canvas-wrap { position: relative; background: #fff; }
.sketch-canvas-wrap canvas { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; background: #fff; }
.sketch-textinput { position: absolute; z-index: 5; transform: translateY(-2px); font: 600 16px "Inter", system-ui, sans-serif; border: 1px dashed var(--terracotta); background: rgba(255,255,255,0.92); padding: 2px 5px; border-radius: 4px; min-width: 120px; outline: none; }
.sketch-thumb { margin-top: 0.3rem; border: 1px solid var(--line); border-radius: 8px; max-width: 220px; }

/* ---------------------------------------------------------------------
   17. Service-area checker
   --------------------------------------------------------------------- */
.checker { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.checker .input { flex: 1 1 220px; }
.checker__result {
  margin-top: 1rem; padding: 1rem 1.2rem;
  border-radius: var(--radius); border: 1px solid var(--line-gold);
  background: var(--ivory-soft); font-size: 0.94rem;
  display: none;
}
.checker__result.is-shown { display: block; animation: fadeUp 0.35s var(--ease); }

/* ---------------------------------------------------------------------
   18. Callout / quote / notice
   --------------------------------------------------------------------- */
.callout {
  border-left: 3px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.4rem;
  font-family: var(--font-serif);
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--charcoal);
}
.section--night .callout { color: var(--ivory); }
.notice {
  border: 1px solid var(--line-gold);
  background: var(--ivory-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-size: 0.94rem;
  color: var(--charcoal-soft);
}
.notice strong { color: var(--earth); }
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--earth); background: rgba(115,81,60,0.08);
  padding: 0.35rem 0.75rem; border-radius: var(--radius-pill);
}

/* Filter pills */
.filters { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.filter-pill {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  font-size: 0.9rem; font-weight: 500;
  color: var(--charcoal-soft);
  transition: all 0.2s var(--ease);
}
.filter-pill:hover { border-color: var(--charcoal); }
.filter-pill.is-active { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }

/* ---------------------------------------------------------------------
   19. Breadcrumbs
   --------------------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--muted); }
.crumbs a:hover { color: var(--terracotta); }
.crumbs .sep { opacity: 0.5; }
.page-hero { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: clamp(1.5rem,3vw,2.5rem); }
.page-hero .crumbs { margin-bottom: 1.4rem; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-top: 1.2rem; }

/* ---------------------------------------------------------------------
   20. Footer
   --------------------------------------------------------------------- */
.site-footer {
  background:
    radial-gradient(80% 120% at 90% 0%, rgba(207,171,100,0.10), transparent 55%),
    var(--night);
  color: var(--muted-on-dark);
  padding-top: clamp(3.5rem, 7vw, 6rem);
}
.footer-cta { text-align: center; max-width: 60ch; margin: 0 auto clamp(3rem,6vw,5rem); }
.footer-cta h2 { color: var(--ivory); }
.footer-cta p { color: var(--muted-on-dark); margin: 1.1rem auto 2rem; }
.footer-cta .actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
  border-top: 1px solid rgba(207,171,100,0.18);
  padding-top: 3rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }
.footer-brand .brand-word { color: var(--ivory); }
.footer-brand p { margin-top: 1.1rem; font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 { color: var(--ivory); font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.94rem; color: var(--muted-on-dark); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 0.6rem; font-size: 0.94rem; margin-bottom: 0.7rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-disclosure {
  font-size: 0.82rem; line-height: 1.6; color: #9c917e;
  border-top: 1px solid rgba(207,171,100,0.18);
  padding: 2rem 0;
  max-width: 90ch;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  padding: 1.6rem 0 2.5rem;
  border-top: 1px solid rgba(207,171,100,0.18);
  font-size: 0.84rem; color: #9c917e;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------------------------------------------------------------------
   21. Consent banner
   --------------------------------------------------------------------- */
.consent {
  position: fixed;
  z-index: 1200;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 640px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: 1.4rem 1.5rem;
  transform: translateY(160%);
  transition: transform 0.5s var(--ease);
}
.consent.is-shown { transform: translateY(0); }
.consent p { font-size: 0.9rem; color: var(--charcoal-soft); }
.consent h4 { font-family: var(--font-sans); font-size: 1rem; margin-bottom: 0.4rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.consent__actions .btn { flex: 1 1 auto; }
.consent__prefs { margin-top: 1rem; display: none; border-top: 1px solid var(--line); padding-top: 1rem; }
.consent__prefs.is-open { display: block; }
.consent__prefs .consent-row { border-bottom: 1px solid var(--line); }
.consent__prefs .consent-row:last-of-type { border-bottom: none; }
@media (min-width: 560px) { .consent__actions .btn { flex: 0 1 auto; } }

/* ---------------------------------------------------------------------
   22. Insights
   --------------------------------------------------------------------- */
.article-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 0; }
.article-card .frame { border-radius: 0; border: none; aspect-ratio: 16/10; box-shadow: none; }
.article-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-card__meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.6rem; display: flex; gap: 0.6rem; }
.article-card h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.article-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.article-card .textlink { margin-top: 1.1rem; }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.4rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8rem; }
.prose p, .prose li { color: var(--charcoal-soft); line-height: 1.75; }
.prose ul { display: grid; gap: 0.6rem; padding-left: 1.2rem; list-style: disc; }
.prose ul li::marker { color: var(--gold-deep); }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 1.3rem; font-family: var(--font-serif); font-size: var(--step-1); font-style: italic; color: var(--charcoal); }

/* ---------------------------------------------------------------------
   23. Reveal / motion
   --------------------------------------------------------------------- */
/* Reveal only when JS is present, so no-JS visitors see all content. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------------
   24. Utilities
   --------------------------------------------------------------------- */
.u-center { text-align: center; }
.u-muted { color: var(--muted); }
.u-gold { color: var(--gold-deep); }
.u-serif { font-family: var(--font-serif); }
.u-hidden { display: none !important; }
[hidden] { display: none !important; }
.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;
}
.divider { height: 1px; background: var(--line); border: 0; }
.gold-rule { width: 60px; height: 2px; background: var(--gold); border: 0; margin: 1.4rem 0; }
.eyebrow + h1, .eyebrow + h2 { margin-top: 0.8rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-list li { font-size: 0.86rem; padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--charcoal-soft); }
.section--night .pill-list li { border-color: rgba(207,171,100,0.25); color: var(--muted-on-dark); }
.mt-0 { margin-top: 0 !important; }
.flow-lg { --flow: 1.6rem; }

/* ---------------------------------------------------------------------
   24b. Brand loader & processing animation (Griha Udaya, rising sun)
   --------------------------------------------------------------------- */
.av-mark { display: block; }
.av-ring-arc {
  transform-box: fill-box;
  transform-origin: center;
  animation: av-spin 1.5s linear infinite;
}
.av-sun {
  transform-box: fill-box;
  transform-origin: center;
  animation: av-breathe 2s var(--ease) infinite;
}
.av-bindu {
  transform-box: fill-box;
  transform-origin: center;
  animation: av-blink 2s var(--ease) infinite;
}
@keyframes av-spin { to { transform: rotate(360deg); } }
@keyframes av-breathe { 0%, 100% { opacity: 0.5; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1); } }
@keyframes av-blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* Full-page preloader (JS-gated so no-JS visitors never see it) */
.page-loader { display: none; }
.js .page-loader {
  display: flex;
  position: fixed; inset: 0; z-index: 3000;
  flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 32%, var(--ivory-soft), var(--ivory-deep));
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.page-loader__inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.page-loader__word {
  font-family: var(--font-brand);
  letter-spacing: 0.3em; padding-left: 0.3em;
  font-size: 1rem; color: var(--earth);
}
.page-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* In-button processing spinner (uses currentColor) */
.btn .av-mini { width: 20px; height: 20px; margin-right: 0.15rem; }
.btn.is-processing { pointer-events: none; opacity: 0.92; }

@media (prefers-reduced-motion: reduce) {
  .av-ring-arc, .av-sun, .av-bindu { animation: none !important; }
  .js .page-loader { transition: none; }
}

/* ---------------------------------------------------------------------
   25. Small-screen header & hero refinements
   --------------------------------------------------------------------- */
@media (max-width: 560px) {
  /* The bottom conversion bar + menu carry the CTA on phones. */
  .header-actions .btn { display: none; }
  .brand__mark { width: 40px; height: 40px; }
  .brand-word { font-size: 1.18rem; }
}
@media (max-width: 700px) {
  .hero__scroll { display: none; }
  .hero { min-height: min(88vh, 780px); }
}
