:root {
  /* Light (hero) */
  --cream: #FBF8F3;
  --blush-bg: #F8EFEA;     /* also the 3D mist colour */
  --sage-ink: #4F5F49;
  --sage: #6B7A62;
  --text: #5A6359;
  --blush: #D29E98;
  --blush-ink: #A86C64;
  /* Dark (scene) */
  --pine: #202808;
  --kombu: #33432B;
  --mist-text: #F3EBDD;
  --mist-soft: #E6DCC8;
  --blush-light: #EBC8C1;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blush-bg);
  color: var(--mist-text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
h2 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.08; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: var(--blush-bg); }
.scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(32,40,8,.45) 0%, rgba(32,40,8,0) 100%),
    linear-gradient(180deg, rgba(32,40,8,.35) 0%, rgba(32,40,8,.1) 40%, rgba(32,40,8,.35) 100%);
}
body.at-contact .scrim { opacity: .3 !important; transition: opacity .6s ease; }

/* Static fallback (no WebGL, or reduced motion) */
.static-scene { display: none; }
body.is-static { background: var(--pine) url('assets/pond.webp') center / cover fixed no-repeat; }
body.is-static #scene { display: none; }
body.is-static .static-scene { display: block; position: fixed; z-index: 0; right: -4vw; bottom: -18vh; width: min(52vw, 640px); pointer-events: none; }
body.is-static .scrim { opacity: 1; background: rgba(32,40,8,.55); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--cream); color: var(--sage-ink); padding: 10px 16px; border-radius: 8px; font-family: var(--sans); }
.skip:focus { left: 16px; }

/* ---------- Header: logo always centred ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 clamp(16px, 4vw, 56px);
  color: var(--sage-ink); font-family: var(--sans); font-size: 14px; letter-spacing: .1em;
  transition: color .4s ease;
}
.nav::before {
  content: ''; position: absolute; inset: 0 0 -14px 0; z-index: -1; opacity: .75; transition: opacity .4s ease, background .4s ease;
  background: linear-gradient(180deg, rgba(251,248,243,.94) 0%, rgba(251,248,243,.82) 70%, rgba(251,248,243,0) 100%);
}
body.scrolled .nav::before { opacity: 1; }
body.dark-nav .nav { color: var(--mist-text); }
body.dark-nav .nav::before { background: linear-gradient(180deg, rgba(32,40,8,.8) 0%, rgba(32,40,8,.45) 70%, rgba(32,40,8,0) 100%); }

.nav__side { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav__side--right { justify-content: flex-end; }
.nav__side a:not(.btn) { text-decoration: none; text-transform: uppercase; font-size: 13px; letter-spacing: .18em; }
.nav__side a:not(.btn):hover { color: var(--blush-ink); }
body.dark-nav .nav__side a:not(.btn):hover { color: var(--blush-light); }

.nav__logo { position: relative; display: block; width: 168px; height: 61px; justify-self: center; opacity: 0; transform: translateY(-6px); transition: opacity .4s ease, transform .4s ease; pointer-events: none; }
.nav__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .4s ease; }
.nav__logo-light { opacity: 0; }
body.dark-nav .nav__logo-ink { opacity: 0; }
body.dark-nav .nav__logo-light { opacity: 1; }
body.scrolled .nav__logo { opacity: 1; transform: none; pointer-events: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 28px; border-radius: 999px; text-decoration: none; font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: .04em; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--outline { border: 1px solid currentColor; min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn--outline:hover { background: rgba(79,95,73,.08); }
body.dark-nav .btn--outline:hover { background: rgba(243,235,221,.1); }
body:not(.dark-nav) .nav .btn--outline { background: rgba(251,248,243,.6); }
body:not(.dark-nav) .nav .btn--outline:hover { background: rgba(251,248,243,.9); }
.btn--solid { background: var(--blush-light); color: var(--pine); border: 0; }
.btn--solid:hover { background: #F2D6D0; }
.btn--dark { background: var(--sage-ink); color: var(--cream); border: 0; width: 100%; min-height: 52px; }
.btn--dark:hover { background: #3F4D3A; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blush-ink); outline-offset: 3px; }
.show-sm { display: none; }

/* Progress dots (only once inside the garden) */
.progress { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 20; display: flex; flex-direction: column; gap: 16px; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity .4s ease; font-family: var(--sans); }
body.dark-nav .progress { opacity: 1; pointer-events: auto; }
.progress a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--blush-light); min-height: 24px; }
.progress a::after { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--blush-light); transition: background .3s ease; }
.progress a span { opacity: 0; transform: translateX(6px); transition: opacity .3s ease, transform .3s ease; }
.progress a.is-active::after { background: var(--blush-light); }
.progress a.is-active span, .progress a:hover span { opacity: 1; transform: none; }

/* ---------- Hero (matches the approved layout) ---------- */
main { position: relative; z-index: 10; }
.hero {
  position: relative; min-height: max(100vh, 720px); display: flex; flex-direction: column;
  background: var(--cream); color: var(--text); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0 0 auto 0; height: 78%; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__veil {
  position: absolute; inset: 0 0 auto 0; height: 78%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 36% 64% at 50% 44%, rgba(251,248,243,.95) 0%, rgba(251,248,243,.86) 42%, rgba(251,248,243,.35) 75%, rgba(251,248,243,0) 100%),
    linear-gradient(180deg, rgba(251,248,243,.25) 0%, rgba(251,248,243,0) 30%, rgba(251,248,243,0) 70%, rgba(251,248,243,.9) 100%);
}
.hero__content {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) - 18px) 24px clamp(34px, 4.6vw, 70px); gap: clamp(6px, 1.2vh, 12px);
}
.hero__logo img { width: min(630px, 76vw, 66vh); height: auto; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--blush); }
.divider span { width: 64px; height: 1px; background: var(--blush); opacity: .7; }
.divider svg { width: 13px; height: 12px; fill: currentColor; }
.hero__tagline { font-style: italic; font-weight: 500; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.2; color: var(--sage-ink); }
.hero__intro { max-width: 640px; text-wrap: balance; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--text); font-weight: 500; margin-top: 4px; }

.hero__band {
  position: relative; padding: 4px 24px 18px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 62%, var(--blush-bg) 100%);
}
.hero__wave { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(40px, 6vw, 90px); fill: var(--cream); }
.services-row {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1080px;
  display: flex; justify-content: center; align-items: flex-start;
}
.services-row li {
  position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; color: var(--sage); padding: 0 12px;
}
.services-row li + li::before {
  content: ''; position: absolute; left: 0; top: 4px; height: 86px; width: 1px;
  background: linear-gradient(180deg, transparent 0, rgba(210,158,152,.75) 26%, rgba(210,158,152,.75) 100%);
}
.services-row li + li::after {
  content: ''; position: absolute; left: -4px; top: 6px; width: 9px; height: 8px;
  background: var(--blush);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21C5 15 1 11.5 1 7a5.5 5.5 0 0 1 11-2.4A5.5 5.5 0 0 1 23 7c0 4.5-4 8-11 14z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21C5 15 1 11.5 1 7a5.5 5.5 0 0 1 11-2.4A5.5 5.5 0 0 1 23 7c0 4.5-4 8-11 14z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.services-row svg { width: 64px; height: 64px; }
.services-row span { font-size: 17px; line-height: 1.3; font-weight: 500; color: var(--text); }
.hero__place { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 18px; color: var(--text); }
.hero__place svg { width: 18px; height: 18px; fill: var(--blush); }
.hero__place em { font-style: italic; }

.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12px auto 0; width: max-content;
  font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--blush-ink);
}
.scroll-cue span { width: 1px; height: 30px; background: var(--blush-ink); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.4); opacity: .5 } 50% { transform: scaleY(1); opacity: 1 } }

/* ---------- Sections inside the 3D garden ---------- */
.panel { min-height: 160vh; display: flex; align-items: center; padding: 120px clamp(20px, 5.5vw, 96px); }
.panel--center { justify-content: center; }
.panel--right { justify-content: flex-end; }
.panel--last { min-height: calc(100vh - 70px); padding-top: 96px; padding-bottom: 28px; }
.passage { height: 130vh; }

.eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--blush-light); margin-bottom: 14px; }
.eyebrow--dark { color: var(--sage); }

.card {
  max-width: 660px; text-align: center; padding: 48px clamp(24px, 4vw, 56px); border-radius: 28px; color: var(--mist-text);
  background: rgba(32,40,8,.58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card h2 em, .card em { font-style: italic; color: var(--blush-light); }
.card--left { text-align: left; }
.card .btn { margin-top: 26px; }

/* Contact (wording kept from v1) */
.contact {
  width: min(600px, 100%); background: rgba(251,248,243,.97); color: var(--sage-ink);
  border-radius: 30px; padding: clamp(28px, 4vw, 42px); display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.contact h2 { text-align: center; }
.contact h2 em { font-style: italic; color: var(--blush-ink); }
.contact .eyebrow { text-align: center; margin-bottom: 0; }
.contact__intro, .contact__alt { text-align: center; font-size: 18px; color: var(--text); }
.contact .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact label { display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); font-size: 14px; color: var(--sage-ink); }
.contact input, .contact textarea {
  font: 16px/1.4 var(--sans); color: var(--sage-ink); background: #fff; border: 1px solid #D5CCBE; border-radius: 12px; padding: 12px 14px; min-height: 46px;
}
.contact textarea { resize: vertical; }
.contact a { color: var(--sage-ink); }
.contact__status { text-align: center; font-family: var(--sans); font-size: 15px; min-height: 1.6em; }
.contact__status.is-ok { color: var(--sage-ink); font-weight: 500; }
.contact__status.is-error { color: #8A2F1E; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.footer {
  position: relative; z-index: 10; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 24px clamp(20px, 4.5vw, 64px); font-family: var(--sans); font-size: 13px; letter-spacing: .05em; color: var(--blush-light);
  background: rgba(32,40,8,.88);
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Smaller screens ---------- */
@media (max-height: 940px) and (min-width: 761px) {
  .scroll-cue { display: none; }
}
@media (max-height: 820px) and (min-width: 761px) {
  .services-row svg { width: 52px; height: 52px; }
  .services-row span { font-size: 16px; }
  .hero__place { margin-top: 12px; }
  .scroll-cue { display: none; }
}
@media (max-width: 1024px) {
  .services-row span { font-size: 15px; }
  .services-row li { padding: 0 6px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  body { font-size: 18px; }
  .nav__side--left { display: none; }
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav__logo { width: 126px; height: 46px; grid-column: 2; }
  .nav__side--right { grid-column: 3; }
  .btn--outline { min-height: 40px; padding: 0 16px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .progress { display: none; }

  .hero { min-height: 100vh; }
  .hero__media, .hero__veil { height: 46vh; }
  .hero__media img { object-position: 40% 40%; }
  .hero__veil { background: linear-gradient(180deg, rgba(251,248,243,.2) 0%, rgba(251,248,243,0) 40%, rgba(251,248,243,.85) 85%, var(--cream) 100%); }
  .hero__content { justify-content: flex-start; padding-top: calc(46vh - 120px); gap: 10px; }
  .hero__logo { background: radial-gradient(ellipse 60% 55% at 50% 55%, rgba(251,248,243,.92) 30%, rgba(251,248,243,0) 75%); padding: 8px 10px 0; }
  .hero__logo img { width: min(88vw, 400px); }
  .hero__intro { font-size: 18px; }
  .hero__band { padding-top: 22px; }
  .hero__wave { display: none; }
  .services-row { flex-wrap: wrap; row-gap: 22px; }
  .services-row li { flex: 0 0 33.33%; }
  .services-row li:nth-child(4) { border: 0; }
  .services-row li:nth-child(4)::before, .services-row li:nth-child(4)::after { display: none; }
  .services-row li:nth-child(n+4) { flex-basis: 50%; }
  .services-row svg { width: 44px; height: 44px; }
  .services-row span { font-size: 15px; }
  .scroll-cue { margin-top: 16px; }

  .panel { min-height: 130vh; }
  .panel--right { justify-content: center; }
  .card--left { text-align: center; }
  .contact .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}
