/* 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 { display: grid; grid-template-columns: 7fr 5fr; min-height: 100svh; }
.hero__pic { position: relative; overflow: hidden; }
.hero__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 34% 50%; }
.hero__side { padding: 96px var(--m) var(--m); display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 6rem); font-stretch: 100%; line-height: 0.98; letter-spacing: -0.02em; }
.hero h1 span { display: block; }
.hero__lead { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.hero__cta { align-self: stretch; justify-content: center; min-height: 68px; font-size: var(--step-lead); font-weight: 700; }
.hero__works { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero__works a { display: grid; gap: 8px; text-decoration: none; font-weight: 600; }
.hero__works img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; transition: scale 0.5s var(--ease-out); }
.hero__works a:hover img { scale: 1.04; }

/* 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; object-position: center 12%; filter: brightness(0.86) saturate(0.92); }
.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: cover; }
.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; }
}

/* Tablet */
@media (max-width: 1023px) {
  .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; }

  .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: 11vw; }
  .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; }

/* On a phone or tablet the plantings are a carousel to swipe, over the meadow. */
@media (max-width: 1023px) {
  .showcase .scene-stage, .showcase.is-rest .scene-stage { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 104px 0 28px; }
  .showcase__bg img { filter: brightness(0.7) saturate(0.92); }
  .showcase h2 { position: relative; top: auto; left: auto; max-width: none; padding: 0 var(--m); }
  .showcase .track, .showcase.is-rest .track { position: relative; top: auto; translate: none; flex-direction: row; gap: 12px; padding: 0 8vw; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 8vw; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .showcase .track::-webkit-scrollbar { display: none; }
  .showcase .card, .showcase.is-rest .card { flex: 0 0 84vw; width: auto; max-width: 520px; height: auto; grid-template-rows: auto auto; scroll-snap-align: center; }
  .showcase .card figure { aspect-ratio: 4 / 3; }
  .card__panel { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px 20px; }
  .card p { max-width: none; text-align: left; font-size: var(--step-body); }
  .track__dots { position: relative; display: flex; justify-content: center; gap: 2px; }
  .track__dots button { width: 36px; height: 36px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
  .track__dots button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: 0.5; transition: opacity 0.2s, scale 0.2s; }
  .track__dots button.is-on::before { opacity: 1; scale: 1.3; }
}

/* The hero's entrance, and its own phone composition. */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero__side > * { animation: hero-rise 0.9s var(--ease-out) backwards; }
  html.js .hero__side > *:nth-child(2) { animation-delay: 0.08s; }
  html.js .hero__side > *:nth-child(3) { animation-delay: 0.16s; }
  html.js .hero__side > *:nth-child(4) { animation-delay: 0.24s; }
  .hero__pic img { animation: hero-drift 12s ease-out both; }
  @keyframes hero-rise { from { opacity: 0; translate: 0 24px; } }
  @keyframes hero-drift { from { scale: 1.06; } }
}
.nav__mark { padding: 6px 10px; margin-left: -10px; background: var(--bg); }
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__pic { height: 46svh; }
  .hero__pic img { object-position: 30% 40%; }
  .hero__side { padding: 22px var(--m) 32px; gap: 16px; }
  .hero h1 { font-size: 13vw; }
  .hero__lead { font-size: var(--step-body); max-width: none; }
}
