/* ==========================================================================
   Antoine — Garden · Working process: "From bare earth to a garden"
   A garden builds itself behind the chapters: the stage (a sticky photo /
   WebGL canvas / film) stays in place while the chapters scroll over it.
   js/process.js adds .gp-live and drives it; without it the stage is the
   bare plot and the finished garden is shown as a photo in chapter three.
   ========================================================================== */

.gp { position: relative; background: #2f261d; }

/* ---------- the stage ---------- */
.gp__stage {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  overflow: clip;
  background: #3b2e22;
}
.gp__photo,
.gp__gl,
.gp__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
  transform: scale(var(--gz, 1));
}
.gp__gl { display: none; transform: none; visibility: hidden; }
.gp-live .gp__gl { display: block; }
.gp-live .gp.is-gl .gp__gl { visibility: visible; }
.gp-live .gp.is-gl .gp__photo { visibility: hidden; }
.gp__film { display: none; opacity: 0; }
.gp-live .gp__film { display: block; }
.gp-live .gp__film.is-ready { opacity: var(--film, 0); }
/* shade for the words: darker at the bottom-left, a soft vignette all round */
.gp__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 20, 15, .62) 0%, rgba(6, 20, 15, .28) 38%, rgba(6, 20, 15, 0) 62%),
    linear-gradient(180deg, rgba(6, 20, 15, .38) 0%, rgba(6, 20, 15, 0) 26%, rgba(6, 20, 15, 0) 62%, rgba(6, 20, 15, .55) 100%);
  opacity: calc(1 - var(--clear, 0) * .55);
}
/* the dark green of the other pages over the photo while the hero is on
   screen; it lifts away as the hero scrolls off (js/process.js sets --veil) */
.gp__veil {
  position: absolute;
  inset: 0;
  background: var(--gradient-deep);
  opacity: calc(var(--veil, 1) * .86);
  pointer-events: none;
}
@media (max-width: 1279.98px) {
  /* phones & tablets (only its size matters, see below) */
  .gp .gp-hero .leaf--hero { top: calc(var(--pg-header) + 12vh); bottom: auto; left: auto; right: 5vw; }
}
/* the travelling leaf rests on the title's dash instead (js/leaf.js): this
   one only gives it its size (reduced motion / no JS: no leaf in this hero) */
.gp .gp-hero .leaf--hero { visibility: hidden; }

/* ---------- the chapters scroll over it ---------- */
.gp__flow { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100svh; }

/* ---------- the hero: the words over the plot (Kotsios's layout) ----------
   The sizes of the other pages' heroes: "Working Process" just above the
   title, the title in two lines (the second starts with the dash and ends in
   a serif "garden"), the lead and "Discover the philosophy" at the bottom.
   --gp-f is the title size: the other pages' h1, smaller on phones so the
   second line (≈ 10.3 em) always fits. */
.gp-hero {
  --gp-f: min(var(--pg-h1), calc((100vw - 2 * var(--pg-gutter)) / 10.3));
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--pg-header) + clamp(8px, 3vh, 40px));
  padding-bottom: calc(clamp(12px, 3vh, 36px) + 84px); /* clear of the floating "Send inquiry" */
  background: none;
}
.gp-hero__text {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto auto 1fr auto;
}
.gp-hero__eyebrow { grid-row: 2; }
.gp-hero__title { grid-row: 3; }
.gp-hero__foot { grid-row: 5; }
/* "WORKING PROCESS": the other pages' eyebrow (.pg-eyebrow — capitals, 600),
   in white (Kotsios, 2026-09-30; it was sentence case) */
.gp-hero__eyebrow { color: var(--c-white); }
.gp-hero__title {
  margin-top: .3em;
  font-size: var(--gp-f);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-sage);
}
.gp-hero__l1,
.gp-hero__l2 { display: block; white-space: nowrap; }
.gp-hero__l2 { padding-left: 1.45em; }
.gp-hero__rule {
  display: inline-block;
  width: 1.5em;
  height: max(3px, .0667em);
  margin-right: .6em;
  vertical-align: .3em;
}
.gp-hero__em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3236em; /* as the serif words of the other titles */
  line-height: 1;
}
.gp-hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30em);
  align-items: end;
  column-gap: 40px;
  margin-top: clamp(28px, 5vh, 64px);
}
.gp-hero__lead {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  max-width: 30em;
  font-size: var(--pg-body);
  line-height: 1.75;
  color: rgba(255, 255, 255, .88);
}
.gp-hero__cue {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  font-size: var(--pg-body);
  line-height: 1.5;
  color: var(--c-white);
}
.gp-hero__cue-text {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.gp-hero__cue:hover .gp-hero__cue-text { background-size: 100% 1px; }
@media (max-width: 1023.98px) {
  /* phones & tablets: the lead, then "Discover the philosophy" under it */
  .gp-hero__foot { grid-template-columns: minmax(0, 1fr); row-gap: clamp(18px, 3vh, 28px); }
  .gp-hero__lead { grid-column: 1; justify-self: start; }
  .gp-hero__cue { grid-row: 2; }
}

.gp-step {
  position: relative;
  display: flex;
  align-items: center;
  padding: 18vh var(--pg-gutter);
}
/* 03: the card, then three lines far apart — js/process.js builds the garden
   while each line crosses the screen, so these gaps are the timing */
.gp-step--build { display: block; padding-top: 24vh; padding-bottom: 62vh; }
/* 04: the film fades in as the chapter arrives, then plays with the scroll */
.gp-step--care { display: block; padding-top: 44vh; padding-bottom: 80vh; }

/* ---------- the chapters open with a title and a sage card ----------
   (Kotsios's layout, 01 and 03) The title in the hero's pattern (white
   here: "It starts with — a walk"), then the card on its right. In 01 the
   two stay at the foot of the screen while the camera sinks towards the plot
   (.gp-chap--pin); in 03 they scroll by as the garden is built. js/process.js
   brings in the title as it arrives, then — a little further on — the card
   (.is-seq marks that it is in charge; .is-title / .is-card). Phones &
   tablets: the title, then the card under it, each as it scrolls into view. */
.gp-step--consult { display: block; padding: 0; }
.gp-chap {
  /* the size of the other pages' section titles (smaller on the narrowest
     phones, so the second line always fits) */
  --gp-cf: min(var(--pg-h2), calc((100vw - 2 * var(--pg-gutter)) / var(--gp-cl, 7.6)));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(28px, 4.5vh, 44px);
}
.gp-chap--pin { padding: 16vh var(--pg-gutter) 22vh; }
.gp-chap__title {
  font-size: var(--gp-cf);
  font-weight: 400;
  line-height: 1.16;
  color: var(--c-white);
  text-shadow: 0 1px 2px rgba(0, 21, 20, .24), 0 2px 28px rgba(0, 21, 20, .45); /* stays clear over the bright ground and gravel */
}
.gp-chap__l1,
.gp-chap__l2 { display: block; white-space: nowrap; }
/* each title fits its own column: --gp-cl (set in the page) is its longest
   line in em, so the lines never run into the card or off a phone screen.
   The title keeps the section-title size (computed on it, where --u still
   means the page's unit) and its lines only get smaller than that (1em)
   when the column is too narrow for them. */
@supports (width: 1cqi) {
  .gp-chap__title { container-type: inline-size; font-size: var(--pg-h2); }
  .gp-chap__l1,
  .gp-chap__l2 { font-size: min(1em, calc(100cqi / var(--gp-cl, 7.6))); }
}
.gp-chap__l2 { padding-left: 1.4em; }
.gp-chap__rule {
  display: inline-block;
  width: 1.4em;
  height: max(3px, .06em);
  margin-right: .45em;
  vertical-align: .3em;
}
.gp-chap__em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3236em; /* as the serif words of the other titles */
  line-height: .6;
}
.gp-chap__card {
  justify-self: end;
  width: min(100%, 32rem);
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: clamp(22px, 3vw, 40px);
  background: var(--c-sage);
  color: var(--c-ink);
  --focus: var(--c-ink);
}
.gp-chap__no { font-size: var(--pg-body); line-height: 1.5; }
.gp-chap__num { margin-right: .4em; }
.gp-chap__no strong { font-weight: 700; }
.gp-chap__lead { margin-top: clamp(18px, 2.6vw, 32px); font-size: var(--pg-body); line-height: 1.55; }
.gp-chap__note { margin-top: clamp(14px, 2vw, 22px); font-size: var(--pg-small); font-style: italic; line-height: 1.45; color: rgba(1, 42, 39, .84); }
.gp-chap__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: clamp(22px, 3vw, 38px);
  padding: 0 26px;
  border-radius: 100px;
  background: var(--c-ink);
  color: var(--c-sage);
  font-size: var(--pg-body);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.gp-chap__btn:hover { background: var(--c-deep); color: var(--c-lime); }
@media (max-width: 767.98px) {
  .gp-chap__card { justify-self: stretch; width: auto; }
}
@media (min-width: 1024px) {
  /* the title on the left, the card on the right, their feet in line */
  .gp-chap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 40px; }
  /* 01: at the foot of the screen, where the two stay while the page scrolls
     on (the pin lasts the extra 80svh) */
  .gp-live .gp-step--consult { min-height: 180vh; min-height: 180svh; }
  .gp-chap--pin {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--pg-header) + clamp(8px, 3vh, 40px));
    padding-bottom: calc(clamp(12px, 3vh, 36px) + 84px); /* clear of the floating "Send inquiry", as in the hero */
  }
  .gp-chap__card { width: clamp(380px, 40vw, 460px); }
}
@media (min-width: 1280px) {
  .gp-chap__card {
    width: max(400px, calc(615 * var(--u)));
    padding: max(28px, calc(48 * var(--u)));
    border-radius: max(24px, calc(48 * var(--u)));
  }
  .gp-chap__lead { margin-top: max(20px, calc(40 * var(--u))); }
  .gp-chap__note { margin-top: max(14px, calc(28 * var(--u))); }
  .gp-chap__btn { min-height: max(44px, calc(52 * var(--u))); margin-top: max(24px, calc(48 * var(--u))); padding: 0 max(22px, calc(30 * var(--u))); }
}
/* the title first, then the card */
.gp-chap.is-seq .gp-chap__title,
.gp-chap.is-seq .gp-chap__card {
  opacity: 0;
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), translate 1.2s cubic-bezier(.16, 1, .3, 1);
}
.gp-chap.is-seq .gp-chap__title { translate: 0 40px; }
.gp-chap.is-seq .gp-chap__card { translate: 0 48px; }
@media (min-width: 1024px) {
  .gp-chap.is-seq .gp-chap__card { translate: 72px 0; } /* in from the right */
}
.gp-chap.is-seq.is-title .gp-chap__title,
.gp-chap.is-seq.is-card .gp-chap__card { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .gp-live .gp-step--consult { min-height: 0; }
  .gp-chap.is-seq .gp-chap__title,
  .gp-chap.is-seq .gp-chap__card { opacity: 1; translate: none; transition: none; }
}

/* one step at a time while the garden is being built (Kotsios's cards,
   2026-09-29): dark green, the step's number, a sage dash, the words — all
   three on the right, in line with the chapter's card above them */
.gp-say {
  position: relative;
  display: grid;
  grid-template-columns: 1.45em 1.9em minmax(0, 1fr);
  column-gap: .8em;
  align-items: baseline;
  width: min(100%, 32rem);
  margin: 50vh 0 0 auto;
  padding: 1.1em 1.5em 1.05em .8em;
  border-radius: .9em;
  background: var(--c-ink);
  color: var(--c-sage);
  font-size: clamp(18px, 1vw + 12px, 26px);
  line-height: 1.4;
  box-shadow: 0 16px 50px rgba(0, 21, 20, .28);
}
.gp-say__no { font-size: 1.08em; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
/* the dash sits on the baseline, then rises to the middle of the letters */
.gp-say__rule { height: max(2px, .06em); background: currentColor; translate: 0 -.34em; }
.gp-say__text { min-width: 0; margin-left: .15em; }
.gp-say--1 { margin-top: 42vh; }
/* they come in from the right as they rise to the middle of the screen and
   leave the same way, as the cards of Sustainability (js/process.js sets
   --gp-c 0..1 and --gp-dir); tall screens: in from below, out upwards */
.gp-say {
  opacity: var(--gp-c, 1);
  transform: translateY(calc((1 - var(--gp-c, 1)) * var(--gp-dir, 1) * 34px));
}
@media (min-width: 1024px) and (min-aspect-ratio: 1001/1000) {
  .gp-say { transform: translateX(calc((1 - var(--gp-c, 1)) * 72px)); }
}
@media (max-width: 767.98px) {
  .gp-say { grid-template-columns: 1.45em 1.2em minmax(0, 1fr); column-gap: .6em; padding: 1em 1.2em 1em .75em; }
}
@media (min-width: 1024px) {
  .gp-say { width: clamp(380px, 40vw, 460px); }
}

/* the finished garden as a photograph (no JS / reduced motion) */
.gp-still { margin: 12vh 0 0; }
.gp-still img { width: 100%; height: auto; border-radius: clamp(14px, 1.4vw, 24px); }
.gp-still figcaption { margin-top: 10px; font-family: var(--font-serif); font-style: italic; font-size: var(--pg-small); color: rgba(255, 255, 255, .86); }
.gp-live .gp-still { display: none; }
/* without the live garden the build chapter need not be so long */
html:not(.gp-live) .gp-step--build { padding-top: 18vh; padding-bottom: 18vh; }
html:not(.gp-live) .gp-say { margin-top: 5vh; }
html:not(.gp-live) .gp-step--care { padding-top: 18vh; padding-bottom: 18vh; }

/* ---------- 02 design: a sage card slides over the plot ----------
   In the look of the Services of the home page (Kotsios, 2026-09-29): the
   card inset from the edges, "02 - Design" and the title in the middle, then
   the three options as white cards, each with a picture of what it gives you
   (his cards: the picture on top, a lime "Option 01" pill, the title, the
   list). The plot stays in sight round the card. */
.gp-design {
  position: relative;
  padding: 0 clamp(12px, 2.6vw, 48px);
  color: var(--c-ink);
  --focus: var(--c-ink);
}
.gp-design + .gp-step { margin-top: 0; }
.gp-design__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 8vw, 72px) clamp(20px, 5vw, 64px) clamp(28px, 5vw, 64px);
  border-radius: clamp(28px, 4vw, 50px);
  background: var(--c-sage);
  box-shadow: 0 40px 90px rgba(0, 21, 20, .3);
  text-align: center;
}
.gp-design__no { font-size: var(--pg-body); line-height: 1.5; }
.gp-design__num { margin-right: .4em; }
.gp-design__no strong { font-weight: 700; }
.gp-design__title {
  margin-top: clamp(16px, 3vw, 36px);
  font-size: clamp(30px, 0.8rem + 3.4vw, 46px); /* the statement of the home Services */
  font-weight: 400;
  line-height: 1.3333;
}
.gp-design__title .serif-em { line-height: inherit; }
.gp-design__lead { max-width: 34em; margin-top: clamp(10px, 1.6vw, 20px); font-size: var(--pg-body); line-height: 1.6; }

/* the options */
.gp-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  width: 100%;
  margin-top: clamp(32px, 6vw, 72px);
  text-align: left;
}
.gp-option {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: clamp(18px, 2vw, 28px);
  background: var(--c-white);
}
.gp-option__media {
  position: relative;
  display: block;
  flex: none;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9ece2;
}
.gp-option__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(var(--tx, 0%), var(--ty, 0%)) rotate(var(--rot, 0deg)) scale(calc(var(--s, 1) * var(--hz, 1)));
  transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}
.gp-option__media:hover img { --hz: 1.035; }
/* the plan sheet: turned a little and brought close, so the drawing and its
   plants fill the picture (as in Kotsios's card) and the sheet's frame and
   title block stay out of it */
.gp-option__media--plan img { --s: 1.5; --rot: -7deg; --tx: -3.7%; --ty: 11.3%; }
.gp-option__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  padding: clamp(20px, 2.6vw, 32px);
}
.gp-option__label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 100px;
  background: var(--c-lime);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.gp-option__title {
  margin-top: clamp(12px, 1.4vw, 18px);
  font-size: clamp(24px, 1.1vw + 17px, 32px);
  font-weight: 400;
  line-height: 1.2;
}
.gp-option__list {
  display: grid;
  gap: 4px;
  margin: clamp(14px, 1.6vw, 22px) 0 clamp(22px, 2.4vw, 32px);
  font-size: var(--pg-small);
  line-height: 1.5;
}
.gp-option__list li { position: relative; padding-left: 1.1em; }
.gp-option__list li::before { content: '\2022'; position: absolute; left: .15em; }
.gp-option__notes {
  display: grid;
  gap: 2px;
  align-self: stretch;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(1, 42, 39, .14);
  font-size: calc(var(--pg-small) * .94);
  line-height: 1.5;
  color: rgba(1, 42, 39, .72);
}
@media (min-width: 768px) {
  /* the pill, the title, the list and the notes line up across the cards */
  @supports (grid-template-rows: subgrid) {
    .gp-options { row-gap: 0; }
    .gp-option { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    .gp-option__body { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; justify-items: start; }
    .gp-option__notes { justify-self: stretch; align-self: start; margin-top: 0; }
  }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* tablets: two a row, the third in the middle under them */
  .gp-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-option:last-child { grid-column: 1 / -1; justify-self: center; width: calc((100% - clamp(16px, 2.4vw, 32px)) / 2); }
  @supports (grid-template-rows: subgrid) {
    .gp-option:last-child { margin-top: clamp(16px, 2.4vw, 32px); }
  }
}
@media (min-width: 1024px) {
  .gp-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gp-option__title { font-size: clamp(22px, 2.2vw, 28px); }
}
@media (min-width: 1280px) {
  /* as the home Services card: 87 / 89 from the edges, 1744 wide */
  .gp-design { padding: 0 calc(89 * var(--u)) 0 calc(87 * var(--u)); }
  .gp-design__card { padding: calc(69 * var(--u)) calc(78 * var(--u)) calc(78 * var(--u)); border-radius: calc(50 * var(--u)); }
  .gp-design__title { margin-top: calc(40 * var(--u)); font-size: calc(60 * var(--u)); }
  .gp-design__lead { margin-top: calc(14 * var(--u)); }
  .gp-options { gap: calc(32 * var(--u)); margin-top: calc(72 * var(--u)); }
  .gp-option { border-radius: calc(28 * var(--u)); }
  .gp-option__body { padding: calc(30 * var(--u)) calc(32 * var(--u)) calc(34 * var(--u)); }
  .gp-option__label { min-height: max(32px, calc(44 * var(--u))); padding: 0 max(16px, calc(30 * var(--u))); font-size: max(12px, calc(16 * var(--u))); }
  .gp-option__title { margin-top: calc(18 * var(--u)); font-size: calc(32 * var(--u)); } /* "Complete design package" in one line */
  .gp-option__list { margin: calc(20 * var(--u)) 0 calc(32 * var(--u)); font-size: max(14px, calc(18 * var(--u))); }
  .gp-option__notes { padding-top: calc(16 * var(--u)); font-size: max(13px, calc(15 * var(--u))); }
}

@media (min-width: 1280px) {
  .gp-say { width: max(400px, calc(615 * var(--u))); font-size: max(18px, calc(28 * var(--u))); }
}

@media print {
  .gp__stage { position: relative; height: 60vh; }
  .gp__gl, .gp__film { display: none !important; }
  .gp__flow { margin-top: 0; }
}
