/* Ombelle, paysagiste. Direction: The pinned poster (taste-skill seed 337190913).
   Palette: the dealt proportions (one strong field everywhere, white type, one bright accent),
   in the subject's colours: deep fennel green and the yellow of umbel flowers. */

:root {
  --bg: #1e3b2a;
  --surface: #24452f;
  --ink: #ffffff;
  --muted: #c9d6c4;
  --accent: #f2cc3d;
  --accent-ink: #1e3b2a;
  --paper: #eef0e3;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.25rem, 3.4vw, 3.75rem);

  --m: clamp(16px, 2.2vw, 32px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "TikTok Sans", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; font-stretch: 150%; letter-spacing: -0.01em; line-height: 1; text-transform: uppercase; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: var(--step-small); text-decoration: none; white-space: nowrap;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(0.96); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; transition: text-decoration-color 0.3s var(--ease-out); }
.link:hover, .link:focus-visible { text-decoration-color: currentColor; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--m);
  font-size: var(--step-small);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__mark { font-weight: 800; font-stretch: 150%; text-transform: uppercase; font-size: var(--step-body); text-decoration: none; letter-spacing: 0.01em; }
.nav__right { display: flex; align-items: center; gap: 24px; }
.nav__right a:not(.btn) { padding: 6px 10px; background: var(--bg); }

/* Hero: sentence split by a frame, the flower opens with the scroll */
.hero .scene-stage { position: relative; height: 100svh; min-height: 620px; overflow: clip; }
.hero h1 { position: absolute; inset: 50% var(--m) auto; translate: 0 -50%; display: flex; justify-content: space-between; font-size: var(--step-display); line-height: 1.02; z-index: 3; }
.hero h1 span:last-child { text-align: right; }
.hero h1 span { display: block; }
.reel { position: absolute; left: 50%; top: 50%; width: min(42vw, 66svh); translate: -50% -50%; display: grid; gap: 24px; }
.reel figure { aspect-ratio: 4 / 5; overflow: clip; border-radius: 4px; }
.reel img, .reel video { width: 100%; height: 100%; object-fit: cover; }
.reel .sliver { position: absolute; left: 0; width: 100%; }
.reel .sliver.up { bottom: calc(100% + 24px); }
.reel .sliver.down { top: calc(100% + 24px); }
.reel .sliver img { filter: saturate(0.9); }
.hero__lead { position: absolute; left: var(--m); bottom: 32px; max-width: 30ch; font-size: var(--step-body); z-index: 3; }
.hero__note { position: absolute; right: var(--m); bottom: 32px; font-size: var(--step-small); color: var(--muted); text-align: right; z-index: 3; }
.hero .poster-end { display: none; }
.hero.is-rest video { display: none; }
.hero.is-rest .poster-end { display: block; }

/* Intro: the statement beside a cluster of three photographs at different depths */
.intro { padding: 200px var(--m) 220px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; align-items: start; }
.intro__hold { grid-column: 1 / 6; align-self: center; }
.intro h2 { font-size: var(--step-head); }
.intro__hold p { margin-top: 28px; font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.intro__pics { grid-column: 7 / 13; position: relative; height: 62vw; }
.intro__pics figure { position: absolute; overflow: clip; }
.intro__pics img { width: 100%; height: 100%; object-fit: cover; }
.intro__pics figure:nth-child(1) { left: 0; top: 0; width: 58%; aspect-ratio: 4 / 5; }
.intro__pics figure:nth-child(2) { right: 0; top: 30%; width: 46%; aspect-ratio: 4 / 3; z-index: 1; }
.intro__pics figure:nth-child(3) { left: 18%; bottom: 0; width: 36%; aspect-ratio: 1; }

/* Showcase: cards crossing a held meadow */
.showcase .scene-stage { position: relative; height: 100svh; overflow: clip; }
.showcase__bg { position: absolute; inset: 0; }
.showcase__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.showcase h2 { position: absolute; left: var(--m); top: 96px; font-size: var(--step-head); max-width: 12ch; z-index: 2; }
.track { position: absolute; top: 50%; left: 0; translate: 0 -50%; display: flex; gap: 40px; padding-left: calc(100vw - min(720px, 60vw) - var(--m)); z-index: 1; }
.card { flex: 0 0 min(720px, 60vw); height: min(560px, 62svh); display: grid; grid-template-rows: 68% 32%; overflow: clip; }
.card figure { overflow: clip; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.8s var(--ease-out); }
.card:hover img { scale: 1.04; }
.card__panel { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 24px 28px; background: var(--tone); }
.card h3 { font-size: var(--step-lead); }
.card p { font-size: var(--step-small); max-width: 30ch; text-align: right; }
.showcase.is-rest .track { position: static; translate: none; flex-direction: column; padding: 220px var(--m) 80px; gap: 24px; }
.showcase.is-rest .scene-stage { height: auto; }
.showcase.is-rest .showcase__bg { position: absolute; }
.showcase.is-rest .card { flex: none; width: min(720px, 100%); }

/* How: one verb at a time */
.verb { position: relative; height: 100svh; overflow: clip; }
.verb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62); }
.verb__word { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; text-align: center; font-weight: 800; font-stretch: 150%; text-transform: uppercase; font-size: clamp(3rem, 11vw, 11rem); line-height: 1; letter-spacing: -0.01em; z-index: 1; }
.verb__text { position: absolute; left: var(--m); bottom: var(--m); max-width: 36ch; padding: 16px 20px; background: rgb(18 36 25 / 0.82); z-index: 1; }
.how h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* List: sticky plate, the months, the plants (the live thing) */
.bloom { padding: 200px var(--m) 160px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; }
.bloom__plate { grid-column: 1 / 6; position: sticky; top: 12vh; align-self: start; aspect-ratio: 4 / 5; background: var(--paper); overflow: clip; }
.bloom__plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; opacity: 0; transition: opacity 0.4s var(--ease-out); }
.bloom__plate img.is-on { opacity: 1; }
.bloom__side { grid-column: 7 / 13; }
.bloom h2 { font-size: var(--step-head); }
.bloom__intro { margin-top: 20px; max-width: 46ch; }
.months { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; border: 0; padding: 0; }
.months legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.months label { position: relative; }
.months input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.months span { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; padding: 0 10px; border-radius: 999px; background: var(--surface); font-size: var(--step-small); transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out); }
.months label:hover span { background: #2e5539; }
.months input:checked + span { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.months input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.bloom__task { margin-top: 24px; font-size: var(--step-lead); line-height: 1.3; min-height: 2.6em; }
.plants { margin-top: 32px; }
.plant button {
  width: 100%; min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0; padding: 8px 0; color: var(--muted); font: inherit; font-size: var(--step-lead); text-align: left; cursor: pointer;
  transition: color 0.25s var(--ease-out), translate 0.3s var(--ease-out);
}
.plant button small { font-size: var(--step-small); color: var(--muted); }
.plant.is-flowering button { color: var(--ink); }
.plant.is-flowering button small { color: var(--accent); }
.plant button:hover { translate: 8px 0; color: var(--ink); }
.plant.is-on button { color: var(--ink); }
.plant .desc { display: none; padding: 0 0 18px; max-width: 46ch; font-size: var(--step-body); }
.plant.is-on .desc { display: block; }

/* Contact: the email as display type, on the inverse field */
.contact { position: relative; min-height: 100svh; background: var(--paper); color: var(--bg); padding: 120px var(--m) 32px; display: grid; grid-template-rows: auto 1fr auto; }
.contact h2 { font-size: var(--step-lead); max-width: 24ch; text-transform: none; font-stretch: 100%; font-weight: 600; line-height: 1.25; }
.contact__mail { align-self: end; margin-bottom: 12vh; display: block; font-weight: 800; font-stretch: 150%; font-size: 6.4vw; line-height: 0.95; letter-spacing: -0.02em; text-decoration: none; transition: color 0.3s var(--ease-out); }
.contact__mail span { display: block; }
.contact__mail:hover { color: #3c7a3f; }
.contact__foot { display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-small); }
.contact__foot a { color: var(--bg); }
.contact .btn { margin-top: 24px; justify-self: start; background: var(--bg); color: var(--paper); }
.contact .btn:hover { background: #3c7a3f; }

/* Footer: photograph half, menu half */
.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.foot__pic { overflow: clip; }
.foot__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; scale: 1.3; transform-origin: 30% 70%; }
.foot__menu { padding: 80px var(--m) 32px calc(var(--m) + 4vw); display: grid; align-content: start; gap: 28px; }
.foot__mark { font-weight: 800; font-stretch: 150%; text-transform: uppercase; font-size: var(--step-body); }
.foot__menu nav ul { display: grid; gap: 14px; }
.foot__menu nav a { font-weight: 800; font-stretch: 150%; text-transform: uppercase; font-size: 2.6vw; text-decoration: none; display: inline-block; transition: translate 0.3s var(--ease-out), color 0.3s var(--ease-out); }
.foot__menu nav:hover a { color: var(--muted); }
.foot__menu nav a:hover, .foot__menu nav a:focus-visible { translate: 12px 0; color: var(--accent); }
.foot__blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; font-size: var(--step-small); }
.credits { font-size: var(--step-body); color: var(--muted); max-width: 72ch; }
.credits a { color: var(--ink); }
.foot__legal { font-size: var(--step-small); color: var(--muted); }

/* Entrances: hidden only when the script runs and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] > * { opacity: 0; translate: 0 28px; transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  html.js [data-reveal].in > * { opacity: 1; translate: 0 0; }
  html.js .hero h1 span { opacity: 0; transition: opacity 1s var(--ease-out), translate 1.2s var(--ease-out); }
  html.js .hero h1 span:first-child { translate: -12vw 0; }
  html.js .hero h1 span:last-child { translate: 12vw 0; }
  html.js .hero.is-loaded h1 span { opacity: 1; translate: 0 0; }
  html.js .reel { opacity: 0; scale: 0.85; transition: opacity 1s var(--ease-out) 0.3s, scale 1.2s var(--ease-out) 0.3s; }
  html.js .hero.is-loaded .reel { opacity: 1; scale: 1; }
}

/* Tablet */
@media (max-width: 1023px) {
  .reel { width: 46vw; }
  .bloom { display: block; }
  .bloom__plate { position: relative; top: auto; width: min(420px, 100%); margin-bottom: 40px; }
}

/* Phone: its own composition */
@media (max-width: 767px) {
  .nav__right a:not(.btn) { display: none; }
  .hero .scene-stage { min-height: 0; }
  .hero h1 { inset: 88px var(--m) auto; translate: none; display: block; font-size: 7vw; }
  .hero h1 br { display: none; }
  .reel { width: calc(100vw - 2 * var(--m)); top: calc(88px + 7vw * 2.2 + 24px); translate: -50% 0; }
  .reel figure { aspect-ratio: 4 / 3; }
  .reel .sliver.up { display: none; }
  .hero__lead { bottom: 24px; right: var(--m); font-size: var(--step-body); }
  .hero__note { display: none; }

  .intro { display: block; padding: 96px var(--m); }
  .intro__hold { position: static; }
  .intro h2 { font-size: 9vw; }
  .intro__hold p { font-size: var(--step-body); }
  .intro__pics { height: 120vw; margin-top: 40px; }

  .showcase .track { padding-left: 100vw; }
  .card { flex-basis: 82vw; height: 70svh; }
  .card__panel { flex-direction: column; align-items: start; }
  .card p { text-align: left; }

  .verb__word { font-size: 13vw; }
  .verb__text { right: var(--m); }

  .bloom { display: block; padding: 120px var(--m); }
  .bloom__plate { position: sticky; top: 64px; width: 100%; aspect-ratio: 4 / 3; z-index: 2; margin-bottom: 24px; }
  .plant button { font-size: 20px; min-height: 56px; }

  .contact { min-height: 86svh; padding-top: 96px; }
  .contact__mail { font-size: 7.4vw; font-stretch: 100%; margin-bottom: 8vh; }
  .contact__foot { flex-direction: column; gap: 12px; }

  .foot { grid-template-columns: 1fr; }
  .foot__pic { height: 50svh; }
  .foot__menu nav a { font-size: 8vw; }
  .foot__blocks { grid-template-columns: 1fr; }
}

/* Zoomed pictures stay inside their sections */
.intro, .how, .showcase { overflow-x: clip; }
