/* XUNGLO — editorial botanical site.
   Palette and type taken from the approved reference stills (images/idea). */

:root {
  --frame: #d3ccbf;          /* outer warm grey band */
  --paper: #efeee9;          /* inner page */
  --paper-2: #e6e3da;        /* subtle fills */
  --ink: #12130e;            /* near-black type + rules */
  --muted: #55564b;          /* secondary text (≈6.9:1 on paper) */
  --olive: #5f6236;          /* botanical accent */
  --backdrop-a: #e3d8c7;     /* warm photo-studio backdrop behind cutouts */
  --backdrop-b: #d2c3ad;
  --error: #8a2d1c;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gut: clamp(8px, 1.8vw, 30px);        /* frame band */
  --pad: clamp(16px, 2.4vw, 38px);       /* inner padding from the frame line */
  --side: calc(var(--gut) + var(--pad));
  --hdr: 66px;

  --ease: cubic-bezier(.22, .61, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--gut) + var(--hdr) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + .3vw, 1.3rem);
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--olive); color: var(--paper); }

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

.skip {
  position: absolute; left: var(--side); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font-family: var(--mono); font-size: 13px; text-decoration: none;
}
.skip:focus { top: calc(var(--gut) + 8px); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Frame: fixed outer band, hairline and corner dots ---------- */
.frame {
  position: fixed; inset: var(--gut); z-index: 50; pointer-events: none;
  border: 1px solid rgba(18, 19, 14, .55);
  box-shadow: 0 0 0 100vmax var(--frame);
}
.frame i {
  position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--ink);
}
.frame i:nth-child(1) { left: -6px; top: -6px; }
.frame i:nth-child(2) { right: -6px; top: -6px; }
.frame i:nth-child(3) { left: -6px; bottom: -6px; }
.frame i:nth-child(4) { right: -6px; bottom: -6px; }
@media (max-width: 600px) {
  .frame i { width: 7px; height: 7px; }
  .frame i:nth-child(odd) { left: -4px; }
  .frame i:nth-child(even) { right: -4px; }
  .frame i:nth-child(-n+2) { top: -4px; }
  .frame i:nth-child(n+3) { bottom: -4px; }
}
.page { padding: var(--gut); }

/* ---------- Type helpers ---------- */
.mono {
  font-family: var(--mono); font-weight: 400; font-size: 13px; line-height: 1.5;
  letter-spacing: .02em;
}
.caps { text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem); line-height: 1.35; }
.serif-caps { font-family: var(--serif); text-transform: uppercase; letter-spacing: .05em; }

/* Oversized display word that is sized by JS to fill its container width. */
.fit {
  display: block; white-space: nowrap; text-transform: uppercase;
  font-weight: 500; line-height: .82; letter-spacing: -.01em;
  font-size: 13vw; /* pre-fit estimate; js/site.js refines it */
}

/* ---------- Links & buttons ---------- */
.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
  padding-bottom: 2px;
}
.link:hover, .link:focus-visible, .link[aria-current="page"] { background-size: 100% 1px; }
.link--on { background-size: 100% 1px; }
.link--on:hover { background-size: 0 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 10px 30px;
  border: 1px solid var(--ink); border-radius: 999px; background: transparent;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; background: transparent; color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--olive); border-color: var(--olive); }
.arrow { display: inline-block; transition: transform .35s var(--ease); }
a:hover .arrow, a:focus-visible .arrow, button:hover .arrow { transform: translateX(4px); }

.textlink {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; display: inline-flex; gap: 10px; align-items: center;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px;
  transition: background-size .45s var(--ease);
}
.textlink:hover { background-size: 30% 1px; }

.ornament { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: var(--gut); z-index: 40;
  background: var(--paper);
  transition: transform .5s var(--ease);
}
.hdr.is-hidden { transform: translateY(calc(-100% - var(--gut))); }
.hdr__in {
  height: var(--hdr); margin: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--ink);
}
.hdr__nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.hdr__nav--r { justify-content: flex-end; }
.hdr__nav a, .dd__btn {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .03em;
  font-weight: 400;
}
.hdr__nav a { text-decoration: none; }
.hdr__nav a:not(.btn) {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease); padding: 4px 0 2px;
}
.hdr__nav a:not(.btn):hover, .hdr__nav a[aria-current="page"] { background-size: 100% 1px; }
.hdr__brand {
  font-family: var(--serif); font-size: clamp(26px, 2.3vw, 34px); font-weight: 500;
  letter-spacing: .01em; text-decoration: none; line-height: 1;
}
.soon { color: var(--muted); }
.hdr__menu {
  display: none; justify-self: end; background: none; border: 0; padding: 10px 0 10px 12px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
  min-height: 44px;
}
.hdr__menu span { display: inline-block; width: 18px; height: 7px; margin-left: 8px; border-block: 1px solid currentColor; vertical-align: middle; }

.dd { position: relative; }
.dd__btn {
  background: none; border: 0; padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.dd__btn svg { width: 9px; height: 9px; transition: transform .3s var(--ease); }
.dd__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd__menu {
  position: absolute; top: calc(100% + 18px); left: -18px; min-width: 220px;
  background: var(--paper); border: 1px solid var(--ink); padding: 14px 18px;
  display: grid; gap: 8px;
}
.dd__menu[hidden] { display: none; }
.dd__menu a { display: inline-block; }

@media (max-width: 1023px) {
  .hdr__in { grid-template-columns: 1fr auto; }
  .hdr__nav { display: none; }
  .hdr__brand { justify-self: start; }
  .hdr__menu { display: inline-flex; align-items: center; }
}

/* Mobile menu (native <dialog>) */
.menu {
  position: fixed; inset: var(--gut); width: auto; height: auto; max-width: none; max-height: none;
  margin: 0; padding: 0 var(--pad) var(--pad); border: 1px solid rgba(18,19,14,.55);
  background: var(--paper); color: var(--ink);
  overflow-y: auto;
}
.menu::backdrop { background: var(--frame); }
.menu[open] { display: flex; flex-direction: column; animation: menuIn .45s var(--ease-out) both; }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
.menu__top {
  height: var(--hdr); display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--ink); flex: none;
}
.menu__close { background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 0 0 12px; }
.menu__body { flex: 1; display: grid; place-content: center; text-align: center; gap: 28px; padding: 40px 0; }
.menu__list { display: grid; gap: 6px; }
.menu__list a {
  font-family: var(--serif); font-size: clamp(26px, 7vw, 40px); text-transform: uppercase; letter-spacing: .05em;
  text-decoration: none; line-height: 1.15;
}
.menu__list a[aria-current="page"] { font-style: italic; }
.menu__list .soon { font-family: var(--mono); font-size: 12px; text-transform: uppercase; vertical-align: middle; }

/* ---------- Generic section scaffolding ---------- */
.section { padding: clamp(80px, 11vw, 170px) var(--pad); }
.section--tight { padding-block: clamp(56px, 7vw, 110px); }
.rule { border: 0; border-top: 1px solid var(--ink); margin: 0 var(--pad); }
.kicker { display: block; margin-bottom: 22px; }
.h2 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5.4rem); line-height: .98; letter-spacing: -.01em; }
.h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); line-height: 1.05; }
.measure { max-width: 34em; }
.mt-1 { margin-top: 14px; }
.mt-2 { margin-top: 26px; }
.mt-3 { margin-top: 44px; }

/* Scroll reveal (only when JS is running; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  height: calc(100svh - 2 * var(--gut) - var(--hdr));
  min-height: 540px; max-height: 1100px;
  display: grid;
}
.hero__word {
  position: absolute; left: 50%; top: 15%; z-index: 1;
  transform: translate(-50%, calc(var(--hy, 0) * 1px));
  width: 80%; text-align: center;
  font-size: 18vw; /* refined by fit */
  line-height: .8; letter-spacing: -.015em; white-space: nowrap; font-weight: 500;
}
.hero__word span { display: inline-block; }
.hero__leaves {
  position: absolute; left: 50%; bottom: 0; z-index: 2;
  height: 76%; width: auto; aspect-ratio: 1185 / 1220;
  transform: translate(-50%, calc(5% + var(--ly, 0) * 1px));
}
.hero__leaves .sway { width: 100%; height: 100%; transform-origin: 50% 100%; }
.hero__leaves img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.hero__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(20px, 3.4vh, 34px); z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  pointer-events: none;
}
.hero__foot > * { pointer-events: auto; }
.hero__copy { max-width: 42ch; }
.hero__copy p:first-child { text-transform: uppercase; letter-spacing: .04em; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

/* Entrance — pure CSS so it never depends on JS. */
@media (prefers-reduced-motion: no-preference) {
  .hero__word span { animation: rise 1.5s var(--ease-out) both; animation-delay: calc(.12s + var(--i) * .07s); }
  .hero__leaves .enter { animation: leavesIn 2.2s var(--ease-out) .35s both; }
  .hero__foot { animation: fade 1.4s var(--ease) 1.1s both; }
  .hero__leaves .sway { animation: sway 9s ease-in-out 2.2s infinite; }
  .hero__leaves img { animation: bend 6.5s ease-in-out 2.2s infinite; transform-origin: 50% 100%; }
  .is-offscreen .sway, .is-offscreen .sway img { animation-play-state: paused !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(.18em); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); } }
@keyframes leavesIn { from { opacity: 0; transform: translateY(5%) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
/* Whole-foliage motion: rotation about the stem base plus a slower bend (skew),
   so the upper leaves travel further than the anchored stems. */
@keyframes sway { 0%, 100% { transform: rotate(-.7deg); } 50% { transform: rotate(.8deg); } }
@keyframes bend { 0%, 100% { transform: skewX(.6deg); } 50% { transform: skewX(-.8deg); } }
.enter { width: 100%; height: 100%; }

@media (max-width: 1023px) {
  .hero { height: calc(100svh - 2 * var(--gut) - var(--hdr)); min-height: 600px; }
  .hero__word { top: 9%; width: 88%; }
  .hero__leaves { height: 64%; }
}
/* Small screens: stacked flow so copy and CTA can never collide with the foliage. */
@media (max-width: 640px), (max-width: 1023px) and (max-aspect-ratio: 1/1) {
  .hero { display: flex; flex-direction: column; min-height: 560px; padding: 5vh var(--pad) 0; }
  .hero__word { z-index: 1; }
  .hero__word { position: relative; left: auto; top: auto; width: 100%; transform: translateY(calc(var(--hy, 0) * 1px)); }
  .hero__foot { position: relative; left: auto; right: auto; bottom: auto; margin-top: 3.5vh; flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__actions { flex-direction: row; align-items: center; gap: 18px; }
  .hero__leaves {
    position: relative; left: auto; bottom: auto; flex: 1 1 0; min-height: 200px;
    width: auto; height: auto; aspect-ratio: auto; margin: -5vw calc(-1 * var(--pad) - 6vw) 0;
    transform: translateY(calc(4% + var(--ly, 0) * 1px));
  }
}

/* ---------- STORY: statement → living room ---------- */
.story { position: relative; height: 260vh; }
.story__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
.story__room { position: absolute; inset: 0; opacity: var(--room, 0); }
.story__room img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  transform: scale(calc(1.08 - var(--room, 0) * .08));
}
.story__veil {
  position: absolute; inset: 0; opacity: var(--room, 0); pointer-events: none;
  background: radial-gradient(ellipse 60% 48% at 50% 46%, rgba(239,238,233,.62), rgba(239,238,233,0) 70%);
}
.story__vine { position: absolute; z-index: 1; pointer-events: none; will-change: transform; }
.story__vine img { width: 100%; }
.story__vine--tl {
  left: 0; top: 8%; width: min(42vw, 1110px); /* sized so the tip reaches behind the statement */
  transform: translate(calc((var(--vin, 0) * -60% + var(--out, 0) * -55%)), calc(var(--out, 0) * -40%)) rotate(calc(var(--vin, 0) * -6deg));
  opacity: calc(1 - var(--out, 0));
}
.story__vine--br {
  right: 0; bottom: 2%; width: min(44vw, 1170px);
  transform: translate(calc((var(--vin, 0) * 60% + var(--out, 0) * 55%)), calc(var(--out, 0) * 40%)) rotate(calc(var(--vin, 0) * 6deg));
  opacity: calc(1 - var(--out, 0));
}
.story__vine img { filter: saturate(.72) sepia(.12); } /* light grade toward the reference's muted olive */
.story__index {
  position: absolute; top: 16%; left: 50%; transform: translateX(-50%); z-index: 2; text-align: center;
  opacity: calc(1 - var(--out, 0) * 1.6);
}
.story__index .mono { display: block; margin-bottom: 8px; }
.story__index ul { display: grid; gap: 2px; }
.story__index a { font-family: var(--serif); font-size: 19px; text-transform: uppercase; letter-spacing: .07em; text-decoration: none; }
.story__copy { position: relative; z-index: 2; width: min(660px, 86%); margin-top: -2vh; }
.story__copy p, .story__after p, .story__index { text-shadow: 0 0 14px rgba(239,238,233,.95), 0 0 2px rgba(239,238,233,.8); }
.story__copy h2 { font-size: clamp(2.5rem, 1.4rem + 3.8vw, 5rem); line-height: .98; letter-spacing: -.012em; text-align: center; }
.story__copy h2 .ornament { width: .42em; height: .42em; margin-left: .25em; vertical-align: .15em; }
.story__copy p { margin-top: 18px; max-width: 26em; font-size: 1.1rem; line-height: 1.4; }
.story__after {
  position: absolute; z-index: 2; left: 50%; bottom: 12%; transform: translate(-50%, calc((1 - var(--after, 0)) * 24px));
  width: min(560px, 86%); text-align: center; opacity: var(--after, 0);
}
/* faded layers must not stay focusable/clickable */
.story__after { visibility: hidden; }
.story__stage.has-after .story__after { visibility: visible; }
.story__stage.is-out .story__index { visibility: hidden; }
.story__after .btn { margin-top: 18px; background: rgba(239,238,233,.7); }
.story__after .btn:hover { background: var(--ink); }

@media (max-width: 640px) {
  .story__vine--tl { width: 76vw; top: 9%; }
  .story__vine--br { width: 90vw; bottom: 7%; }
  /* index sits in the flow above the copy so they can't overlap on short phones */
  .story__stage { align-content: center; row-gap: 28px; }
  .story__index { position: relative; top: auto; left: auto; transform: none; }
  .story__index a { font-size: 16px; }
  .story__copy { margin-top: 0; }
  .story__copy p { opacity: calc(1 - var(--out, 0) * 1.4); }
  .story__veil { background: radial-gradient(ellipse 95% 30% at 50% 50%, rgba(239,238,233,.7), rgba(239,238,233,0) 75%); }
  .story__room img { object-position: 50% 50%; }
  .story__after { bottom: 7%; }
}
/* Short laptop screens: keep the Solutions index clear of the headline. */
@media (min-width: 641px) and (max-height: 880px) {
  .story__index { top: 12.5%; }
  .story__index a { font-size: 16px; }
  .story__copy { top: 2vh; }
}

/* ---------- SOLUTIONS ---------- */
.solutions { padding: clamp(24px, 3vw, 40px) var(--pad) clamp(90px, 10vw, 160px); }
.solutions__head { margin-bottom: clamp(36px, 5vw, 70px); }
.solutions__intro { display: flex; justify-content: space-between; gap: 32px; margin-top: 26px; align-items: end; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.card { text-decoration: none; display: grid; gap: 18px; align-content: start; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.card:hover .card__media img, .card:focus-visible .card__media img { transform: scale(1.045); }
.card__label {
  position: absolute; left: 16px; bottom: 14px; color: #fbfaf6;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.card__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 32%; background: linear-gradient(to top, rgba(20,18,12,.42), rgba(20,18,12,0)); pointer-events: none; }
.card__label { z-index: 1; }
.card__body { display: grid; gap: 10px; justify-items: start; }
.card__body h3 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); }
.card__body p { color: var(--muted); max-width: 30em; }
.card__more { margin-top: 4px; }
.card:focus-visible { outline-offset: 8px; }
.js .card.reveal .card__media img { transform: scale(1.12); }
.js .card.reveal.is-in .card__media img { transform: scale(1); }
.js .card.reveal.is-in:hover .card__media img { transform: scale(1.045); }
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; gap: 56px; }
  .card__media { aspect-ratio: 4 / 3; }
  .solutions__intro { flex-direction: column; align-items: start; }
}

/* ---------- FOUR CORNERS ---------- */
.corners {
  display: grid; grid-template-columns: 1fr minmax(280px, 360px) 1fr; grid-template-rows: auto auto;
  column-gap: clamp(24px, 4vw, 80px); row-gap: clamp(90px, 10vw, 150px);
  padding: clamp(110px, 12vw, 180px) var(--pad) clamp(80px, 9vw, 140px);
}
.corner { width: min(100%, 320px); margin: 0; }
.corner--a { grid-area: 1 / 1; }
.corner--b { grid-area: 1 / 3; justify-self: end; }
.corner--c { grid-area: 2 / 1; }
.corner--d { grid-area: 2 / 3; justify-self: end; }
.corner__box {
  position: relative; aspect-ratio: 4 / 3;
  background: radial-gradient(120% 90% at 30% 20%, var(--backdrop-a), var(--backdrop-b));
}
.corner__box img {
  position: absolute; left: 50%; bottom: 0; height: 128%; width: auto; max-width: none;
  transform: translateX(-50%);
  transition: transform 1.2s var(--ease-out);
}
.corner:hover .corner__box img { transform: translateX(-50%) translateY(-6px); }
.corner__label {
  position: absolute; left: 14px; bottom: 12px; z-index: 1; color: var(--ink);
  font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em;
  border-bottom: 1px solid currentColor; background: rgba(239,238,233,.72); padding: 1px 6px 0;
}
.corner figcaption { margin-top: 10px; }
.corners__text { grid-area: 1 / 2 / 3 / 3; align-self: center; text-align: left; }
.corners__text h2 { font-size: clamp(1.6rem, 1.3rem + .9vw, 2.1rem); font-weight: 600; text-align: center; margin-bottom: 26px; }
.corners__text p { text-align: justify; hyphens: auto; font-size: clamp(1.2rem, 1.05rem + .45vw, 1.45rem); line-height: 1.38; }
.corners__text p + p { margin-top: 1em; }
.corners__text .corners__note { margin-top: 26px; text-align: center; font-size: 13px; line-height: 1.5; hyphens: manual; }
@media (max-width: 900px) {
  .corners { grid-template-columns: 1fr 1fr; grid-template-rows: none; row-gap: 72px; column-gap: 18px; padding-top: 80px; }
  .corners__text { grid-area: auto; grid-column: 1 / -1; order: -1; max-width: 560px; justify-self: center; }
  .corner, .corner--b, .corner--d { grid-area: auto; justify-self: stretch; width: 100%; }
}

/* ---------- EFFECT ---------- */
.effect { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 110px); }
.effect__list { border-top: 1px solid var(--ink); }
.effect__list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(18,19,14,.35); }
.effect__list .mono { padding-top: 5px; }
.effect__aside { margin-top: 26px; max-width: 26em; }
@media (max-width: 860px) {
  .effect { grid-template-columns: 1fr; }
  .effect__list li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- GROW A TREE teaser ---------- */
.grow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.grow__visual {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: end center;
  border: 1px solid rgba(18,19,14,.35);
}
.grow__visual img { width: 70%; margin-bottom: 7%; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
  border: 1px solid var(--ink); border-radius: 999px; padding: 3px 12px;
}
.grow__facts { margin: 26px 0; display: grid; gap: 4px; }
.grow__status { margin-bottom: 26px; }
@media (max-width: 860px) { .grow { grid-template-columns: 1fr; } }

/* ---------- CONTACT ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); }
.contact__meta { margin-top: 30px; display: grid; gap: 16px; }
.contact__meta dt { margin-bottom: 2px; }
.contact__meta dd { margin: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.field .opt { color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0;
  padding: 8px 0; font: inherit; font-size: 1.2rem; color: var(--ink);
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; border: 1px solid var(--ink); padding: 10px 12px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 1px 0 0 var(--olive); }
.field textarea:focus { box-shadow: 0 0 0 1px var(--olive); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__err { color: var(--error); font-family: var(--mono); font-size: 12.5px; min-height: 0; }
.field__err:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px;
  border: 1px solid rgba(18,19,14,.5); border-radius: 999px;
  font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.form__status { padding: 16px 18px; border: 1px solid var(--ink); display: grid; gap: 12px; }
.form__status[hidden] { display: none; }
.form__status.is-error { border-color: var(--error); }
.form__status .btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- FOOTER ---------- */
.ftr { padding: clamp(60px, 8vw, 110px) var(--pad) clamp(28px, 3vw, 40px); }
.ftr__top { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 1px solid var(--ink); padding-top: 34px; }
.ftr__brand { font-size: clamp(2.6rem, 2rem + 2.4vw, 4.4rem); line-height: .9; }
.ftr h2.mono { margin-bottom: 14px; color: var(--muted); }
.ftr ul { display: grid; gap: 6px; }
.ftr a { text-decoration: none; }
.ftr__base { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); }
@media (max-width: 860px) { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__top > :first-child { grid-column: 1 / -1; } }

/* ---------- Inner pages ---------- */
.ph { padding: clamp(20px, 3vw, 36px) var(--pad) 0; }
.ph__crumb { margin-bottom: clamp(10px, 2vw, 24px); }
.ph__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); margin-top: clamp(28px, 4vw, 60px); align-items: start; }
@media (max-width: 860px) { .ph__intro { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.photo { margin: 0; }
.photo img { width: 100%; object-fit: cover; }
.photo figcaption { margin-top: 10px; }

.index-list { border-top: 1px solid var(--ink); }
.index-list li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(18,19,14,.35); align-items: baseline; }
.index-list h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); }
.index-list p { color: var(--muted); }
@media (max-width: 700px) { .index-list li { grid-template-columns: 2.4em 1fr; } .index-list p { grid-column: 2; } }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.trio .photo img { aspect-ratio: 3 / 4; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr 1fr; } .trio > :last-child { grid-column: 1 / -1; } .trio > :last-child img { aspect-ratio: 4 / 3; } }

.options { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.option { padding: 30px clamp(18px, 2vw, 32px) 34px; border-right: 1px solid rgba(18,19,14,.35); display: grid; gap: 14px; align-content: start; }
.option:first-child { padding-left: 0; }
.option:last-child { border-right: 0; padding-right: 0; }
.option h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); }
.option ul { display: grid; gap: 6px; }
.option li { padding-left: 1.1em; position: relative; }
.option li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45em; height: 1px; background: currentColor; }
.option .not { color: var(--muted); }
@media (max-width: 900px) {
  .options { grid-template-columns: 1fr; }
  .option, .option:first-child, .option:last-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(18,19,14,.35); }
}
.compare { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.compare th, .compare td { text-align: left; padding: 14px 14px 14px 0; border-bottom: 1px solid rgba(18,19,14,.35); vertical-align: top; }
.compare thead th { font-family: var(--mono); font-weight: 400; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; border-bottom-color: var(--ink); }
.compare tbody th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: 6px; }
.compare { min-width: 640px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); counter-reset: s; }
.steps li { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.mix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.mix li { padding: 24px 24px 26px 0; display: grid; gap: 8px; }
.mix li + li { border-left: 1px solid rgba(18,19,14,.35); padding-left: 24px; }
@media (max-width: 760px) { .mix { grid-template-columns: 1fr; } .mix li + li { border-left: 0; border-top: 1px solid rgba(18,19,14,.35); padding-left: 0; } }

.cta-band { text-align: center; display: grid; justify-items: center; gap: 22px; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Shop */
.soon-stage { position: relative; display: grid; place-items: center; text-align: center; padding: clamp(40px, 6vw, 80px) var(--pad) clamp(80px, 10vw, 140px); }
.soon-stage img { width: min(420px, 70vw); margin: 0 auto; }

/* Grow a Tree page */
.tree { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
@media (max-width: 900px) { .tree { grid-template-columns: 1fr; } }
.tree__stage {
  position: relative; aspect-ratio: 1 / 1; border: 1px solid rgba(18,19,14,.4); overflow: hidden;
  display: grid; place-items: end center;
  background: radial-gradient(70% 55% at 50% 100%, rgba(95,98,54,.10), rgba(95,98,54,0) 70%);
}
.tree__ground { position: absolute; left: 10%; right: 10%; bottom: 8%; border-top: 1px solid rgba(18,19,14,.4); }
.tree__plant {
  width: 66%; margin-bottom: 8%; transform-origin: 50% 100%;
  transform: scale(var(--g, .3));
  filter: saturate(var(--sat, 1)) brightness(var(--bri, 1));
  transition: transform 1.6s var(--ease-out), filter 1.6s var(--ease);
}
.tree__badge { position: absolute; left: 16px; top: 14px; }
.tree__day { position: absolute; right: 18px; top: 12px; text-align: right; }
.tree__day strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); line-height: 1; }
.dots { display: grid; grid-template-columns: repeat(21, 1fr); gap: 4px; margin: 18px 0 6px; }
.dots i { height: 8px; border: 1px solid var(--ink); border-radius: 999px; }
.dots i.on { background: var(--ink); }
.dots i.today { background: var(--olive); border-color: var(--olive); }
.tree__panel { display: grid; gap: 22px; }
.tree__note { min-height: 3.2em; }
.tree__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.preview { border-top: 1px solid rgba(18,19,14,.35); padding-top: 20px; display: grid; gap: 12px; }
.preview label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.preview input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); }
.preview input[type="range"] { width: 100%; accent-color: var(--ink); }
.preview__flag { color: var(--olive); }
.is-preview .tree__stage { border-style: dashed; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .fit, .fit *, .hero__word, .hero__word * { transition: none !important; } /* a font-size transition (incl. on the letter spans) breaks the JS fit measurement */
  .js .reveal { opacity: 1; transform: none; }
  .story { height: auto; }
  .story__stage { position: relative; height: auto; min-height: 100svh; padding: 18vh 0; }
  .story__index, .story__copy, .story__after { position: relative; top: auto; bottom: auto; left: auto; transform: none; }
  .story__stage { display: flex; flex-direction: column; align-items: center; gap: 40px; }
  .story__vine { display: none; }
  .tree__plant { transition: none; }
  .hdr { transition: none; }
}
