* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #2d6a4f;
  --green-light: #52b788;
  --white: #ffffff;
  --off-white: #f8f9f4;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', serif;
  background: var(--off-white);
  color: var(--green);
  overflow-x: hidden;
}

/* ── LOADER ── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-family: 'Georgia', serif;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(45, 106, 79, 0.2);
  margin: 0 auto 1rem;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width 0.1s linear;
}

.loader-percent {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--green-light);
}

/* ── SCROLL SECTION ── */
.scroll-section {
  /* height controls how long the scroll animation lasts */
  height: 600vh;
  position: relative;
}

.sticky-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#garden-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── OVERLAY TEXTS ── */
.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  width: 90%;
}

.overlay-text.visible {
  opacity: 1;
  pointer-events: auto;
}

#text-start .label-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  border: 1px solid var(--green-light);
  padding: 0.3em 1em;
  margin-bottom: 1.2rem;
}

#text-start h2 {
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--white);
}

#text-mid span {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-style: italic;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

#text-desc p {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-style: italic;
  line-height: 1.8;
  opacity: 0.9;
}

#text-end h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.3em;
}

#text-end p {
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  letter-spacing: 0.1em;
  margin-bottom: 2em;
  opacity: 0.9;
}

.cta-btn {
  display: inline-block;
  padding: 0.9em 2.5em;
  border: 2px solid var(--white);
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}

.cta-btn:hover {
  background: var(--white);
  color: var(--green);
}

/* ── CONTACTS ── */
.contacts {
  background: var(--white);
  padding: 6rem 2rem;
  text-align: center;
}

.contacts-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contacts h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4em;
}

.tagline {
  font-size: 1rem;
  font-style: italic;
  color: var(--green-light);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-item .label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-light);
}

.contact-item a {
  font-size: 1.1rem;
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--green-light);
}

/* ════════════════════════════════════════════════════════════════════════
   Sections added when the site was finished off. Everything above this line
   is the original scroll experience.
   ════════════════════════════════════════════════════════════════════════ */

body:not(.ready) {
  overflow: hidden;
}

/* ── shared section chrome ── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--green);
  margin-bottom: 3.5rem;
  max-width: 24ch;
}

/* ── reveal on scroll ── */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.reveal-up.in {
  opacity: 1;
  transform: none;
}

/* ── scroll cue ── */
.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: opacity 0.5s ease;
}

.scroll-cue.gone {
  opacity: 0;
}

.scroll-cue i {
  width: 1px;
  height: 38px;
  background: linear-gradient(rgba(255, 255, 255, 0.8), transparent);
  animation: cue-slide 2s ease-in-out infinite;
}

@keyframes cue-slide {
  0%, 100% { transform: scaleY(1); opacity: 0.8; }
  50%      { transform: scaleY(0.55); opacity: 0.3; }
}

/* ── services ── */
.services {
  background: var(--off-white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 2.5rem 2rem;
}

.service {
  border-top: 1px solid rgba(45, 106, 79, 0.18);
  padding-top: 1.4rem;
}

.service-num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--green-light);
  margin-bottom: 0.9rem;
}

.service h3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 0.7rem;
}

.service p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(45, 106, 79, 0.78);
}

/* ── before / after ── */
.compare {
  background: var(--white);
}

.compare-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1289;
  overflow: hidden;
  border-radius: 2px;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  background: var(--off-white);
}

.compare-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Clipped, not resized. A half-width wrapper with overflow:hidden would squash
   the image inside it to half width, so the two halves would never line up --
   clip-path leaves the image at full frame size and just hides part of it. */
.compare-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  transform: translateX(-1px);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.compare-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: rgba(45, 106, 79, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.compare-grip::before,
.compare-grip::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-block: 5px solid transparent;
  margin-top: -5px;
}

.compare-grip::before {
  left: 10px;
  border-right: 7px solid var(--white);
}

.compare-grip::after {
  right: 10px;
  border-left: 7px solid var(--white);
}

.compare-tag {
  position: absolute;
  top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35em 0.9em;
  pointer-events: none;
}

.compare-tag-before { left: 1rem; }
.compare-tag-after  { right: 1rem; }

/* Kept in the layout (not display:none) so it stays focusable by keyboard,
   which is the only way this control works without a pointer. */
.compare-range {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  opacity: 0;
  height: 2px;
}

.compare-range:focus-visible {
  opacity: 1;
  outline: 2px solid var(--green-light);
  outline-offset: 4px;
}

/* ── process ── */
.process {
  background: var(--off-white);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 2.5rem 2rem;
  counter-reset: step;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--green-light);
  border-radius: 50%;
  color: var(--green-light);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(45, 106, 79, 0.75);
}

/* ── stats ── */
.stats {
  background: var(--green);
  color: var(--white);
  padding: 4.5rem 2rem;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  min-width: 150px;
}

.stat-num {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-plus {
  font-size: 1.6rem;
  color: var(--green-light);
  vertical-align: super;
}

.stat p {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.25);
}

/* ── contacts additions ── */
.contacts-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(45, 106, 79, 0.8);
  margin-bottom: 2.5rem;
}

.contact-static {
  font-size: 1.05rem;
  color: var(--green);
}

.cta-dark {
  margin-top: 3rem;
  border-color: var(--green);
  color: var(--green);
}

.cta-dark:hover {
  background: var(--green);
  color: var(--white);
}

.footnote {
  margin-top: 3.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(45, 106, 79, 0.45);
}

/* ── responsive ── */
@media (max-width: 700px) {
  /* A 600vh sequence is a long thumb journey on a phone. */
  .scroll-section { height: 380vh; }
  .section-inner  { padding: 4rem 1.4rem; }
  .section-title  { margin-bottom: 2.5rem; }
  .stats-inner    { gap: 2rem; }
  .stat-divider   { display: none; }
  .compare-tag    { top: 0.6rem; font-size: 0.6rem; }
  .compare-tag-before { left: 0.6rem; }
  .compare-tag-after  { right: 0.6rem; }
}

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

/* ════════════════════════════════════════════════════════════════════════
   Polish pass. Everything here is chrome: the page reads fine without it,
   which is what keeps the reduced-motion and no-JS paths honest.
   ════════════════════════════════════════════════════════════════════════ */

/* ── film grain ──
   A 160px tile of SVG noise, repeated. Inline data URI, so no request, and
   fixed so it never scrolls with the content. */
body::after {
  content: '';
  position: fixed;
  inset: -100%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ── reading progress ── */
.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9997;
  pointer-events: none;
  background: rgba(45, 106, 79, 0.12);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform: scaleX(0);
  transform-origin: left center;
}

/* ── section rail ── */
.dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.dot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--green);
}

.dot::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.45;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.dot.active::after {
  opacity: 1;
  background: currentColor;
  transform: scale(1.45);
}

.dot-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.dot:hover .dot-label,
.dot.active .dot-label {
  opacity: 0.75;
  transform: none;
}

/* Over the dark animation the rail has to invert or it disappears. */
.dots { mix-blend-mode: difference; filter: invert(1); }

/* ── cursor ── */
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor .compare-frame {
  cursor: none;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  mix-blend-mode: difference;
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring {
  opacity: 1;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: #ffffff;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.big {
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── split text ──
   The mask carries extra room below the baseline so descenders are not
   sheared off by overflow:hidden. */
.split-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.split-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 45ms);
  will-change: transform;
}

.split.in .split-inner {
  transform: none;
}

/* ── canvas vignette ── */
.canvas-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.35));
}

/* ── stages gallery ──
   These are animation frames the canvas already downloaded, so the browser
   serves them from cache and the section costs nothing extra. */
.stages {
  background: var(--white);
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--off-white);
}

.stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: saturate(0.85);
}

.stage:hover img {
  transform: scale(1.09);
  filter: saturate(1.05);
}

.stage figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1rem 0.9rem;
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.stage figcaption span {
  font-size: 0.68rem;
  color: var(--green-light);
  letter-spacing: 0.2em;
}

/* ── loader polish ── */
#loader { background: var(--off-white); }

/* ── responsive ── */
@media (max-width: 900px) {
  .dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .split-inner { transform: none; transition: none; }
  .stage img { transition: none; transform: none; }
}
