/* Mozaic – one-page site
   Direction: a large logo mark made of photographs and greens around an open centre photo, set on the grey of
   Amsterdam paving. Greens are the logo's own four, unchanged. Type: Gabarito + Manrope. */

:root {
  /* the logo's greens: a yellow-green family (hue about 100) that sits with the golden light of the photographs */
  --green-900: #2e4f20;
  --green-950: #213a17;                        /* the builder's ground: deeper than the lineup's green, so it reads as a room of its own */
  --green-990: #172a0f;                        /* the builder's grid: darker than its ground, so the empty cells sit in it and the hovered one lights up */
  --green-800: #416b2d;
  --green-700: #55853d;
  --green-600: #69994c;
  --green-400: #99bd75;
  --green-200: #cde0a6;

  /* warm stone grounds, taken from the sand of the modules, and the dark olive used for ink on light */
  --paving: #e8e3d5;
  --paving-light: #f2eee4;
  --night: #1e2415;
  --night-2: var(--green-900);
  --forest-step: var(--green-700);

  /* roles */
  --ink: #20251a;
  --ink-soft: #343a2b;
  --on-dark: #f4f2e6;
  --accent: var(--green-800);
  --accent-ink: #ffffff;

  /* the five type steps */
  --step-small: clamp(0.875rem, 0.84rem + 0.12vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.1rem + 1.1vw, 2.25rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  --step-display: clamp(2.75rem, 1rem + 6.2vw, 7.25rem);
  --step-mega: clamp(3rem, 0.6rem + 8.2vw, 9.5rem);

  --display: 'Gabarito', 'Arial Rounded MT Bold', Arial, sans-serif;
  --text: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(1rem, 2.4vw, 2rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9.5rem);   /* one vertical rhythm: every section pads top and bottom with this */
  --gap: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem);   /* between a title and what follows */
  --bar-h: 4.5rem;                                   /* the bar that slides in below the hero; the logo and language pill are centred in this height */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-mid: 300ms;
  --t-slow: 700ms;

  --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paving);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--green-200); color: var(--night); }

/* no visible scrollbar: the page still scrolls by wheel, touch, keyboard and links */
html { scrollbar-width: none; }
::-webkit-scrollbar { display: none; }

/* ---------- type roles ---------- */
.h-head, .h-lead, .hero__title {
  font-family: var(--display);
  font-weight: 800;
}
.h-head { font-size: var(--step-head); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; }
.h-lead { font-size: var(--step-lead); line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.statement { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; max-width: 36ch; text-wrap: pretty; }
p { text-wrap: pretty; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--text);
  font-weight: 800;
  font-size: var(--step-body);
  text-decoration: none;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.btn:hover { background: var(--night); }
.btn--light { background: var(--paving-light); color: var(--night); }
.btn--light:hover { background: var(--green-200); color: var(--night); }
.btn:active { transform: translateY(1px) scale(0.98); }

.link {
  font-family: var(--text);
  font-weight: 800;
  font-size: var(--step-body);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-underline-offset var(--t-fast) var(--ease-out);
}
.link:hover { text-underline-offset: 0.45em; }

/* skip link: out of the way until a keyboard user tabs to it */
.skip {
  position: absolute;
  z-index: 60;
  top: 0.75rem;
  left: var(--gutter);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paving-light);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* ---------- the two floating islands: navigation top left, language switch top right. Both are a stretched hexagon (pointed ends at the
   logo's 60 degree angle): the shape is a clip-path on a pseudo-element, and the hairline edge and the soft lift come from drop-shadows on the
   island itself, because a clip-path would cut an outline or box-shadow ---------- */
.bar, .lang {
  --h: 3.25rem;                                  /* island height */
  --tip: calc(var(--h) * 0.2887);                /* how far the points reach in: a regular hexagon's 60 degree edge */
  --pad: 0.289rem;                               /* the inner shapes sit 0.25rem inside the edge, which is 0.25 / sin(60) along the points */
  --edge: color-mix(in srgb, var(--ink) 22%, transparent);
  --ew: 1px;
  position: fixed;
  z-index: 51;
  top: calc((var(--bar-h) - var(--h)) / 2);
  height: var(--h);
  isolation: isolate;
  outline: none;
  filter:
    drop-shadow(var(--ew) 0 0 var(--edge)) drop-shadow(calc(var(--ew) * -1) 0 0 var(--edge))
    drop-shadow(0 var(--ew) 0 var(--edge)) drop-shadow(0 calc(var(--ew) * -1) 0 var(--edge))
    drop-shadow(0 6px 14px rgba(30, 36, 21, 0.16)); /* taste-skill-ignore: lifts the island off same-coloured stone sections */
}
.bar::before, .lang::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--paving-light);
  clip-path: polygon(var(--tip) 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, var(--tip) 100%, 0 50%);
}

/* language switch: one button, a hexagon that slides to NL or EN; a click anywhere on it flips the language */
.lang {
  --opt-w: 3.175rem;                             /* a regular hexagon 2.75rem tall */
  --opt-h: 2.75rem;
  z-index: 52;                                   /* above the navigation: it never moves */
  right: var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, var(--opt-w));
  gap: 0.15rem;
  padding: 0.25rem var(--pad);
  transition: transform var(--t-fast) var(--ease-out);
}
.lang:active { transform: scale(0.96); }
.lang:focus-visible { --ew: 2.5px; --edge: var(--accent); }
.lang::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0.25rem;
  left: var(--pad);
  width: var(--opt-w);
  height: var(--opt-h);
  background: var(--ink);
  clip-path: var(--hex);
}
.lang[data-lang="en"]::before { translate: calc(var(--opt-w) + 0.15rem) 0; }
.lang.is-ready::before { transition: translate 360ms var(--ease-out); }
.lang__opt {
  display: grid;
  place-items: center;
  height: var(--opt-h);
  font-family: var(--text);
  font-weight: 800;
  font-size: var(--step-small);
  transition: color var(--t-mid) ease;
}
.lang[data-lang="nl"] .lang__opt:first-child,
.lang[data-lang="en"] .lang__opt:last-child { color: var(--paving-light); }
@media (prefers-reduced-motion: reduce) { .lang.is-ready::before { transition: none; } }

/* back to the top: a hexagon bottom right, the twin of the language switch, that appears once you have scrolled past the first screen */
.totop {
  --edge: color-mix(in srgb, var(--ink) 22%, transparent);
  --ew: 1px;
  position: fixed;
  z-index: 50;
  right: var(--gutter);
  bottom: var(--gutter);
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.031rem;                              /* a regular hexagon, like the shapes in the pictures */
  isolation: isolate;
  outline: none;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  translate: 0 0.75rem;
  filter:
    drop-shadow(var(--ew) 0 0 var(--edge)) drop-shadow(calc(var(--ew) * -1) 0 0 var(--edge))
    drop-shadow(0 var(--ew) 0 var(--edge)) drop-shadow(0 calc(var(--ew) * -1) 0 var(--edge))
    drop-shadow(0 6px 14px rgba(30, 36, 21, 0.16)); /* taste-skill-ignore: lifts the button off same-coloured stone sections */
  transition: opacity var(--t-mid) ease, translate var(--t-mid) var(--ease-out), visibility 0s linear var(--t-mid);
}
.totop::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--paving-light); clip-path: var(--hex); }
.totop svg { width: 1.4rem; height: 1.4rem; }
.totop.is-shown { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.totop:hover svg { translate: 0 -2px; }
.totop svg { transition: translate var(--t-fast) var(--ease-out); }
.totop:active { scale: 0.94; }
.totop:focus-visible { --ew: 3px; --edge: var(--green-400); }
@media (prefers-reduced-motion: reduce) { .totop, .totop svg { transition: none; } }

/* navigation: the logo, two links and the contact button */
.bar {
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  padding: 0.25rem var(--pad) 0.25rem calc(var(--tip) + 0.6rem);
  color: var(--ink);
}
.bar__brand { display: block; width: 7.5rem; height: 2rem; flex: none; }
.bar__brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.bar__nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.bar__nav a {
  font-weight: 800;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--t-fast) ease, text-underline-offset var(--t-fast) var(--ease-out);
}
.bar__nav a:hover { text-decoration-color: currentColor; text-underline-offset: 0.45em; }
.bar__cta {
  --ctip: calc(2.75rem * 0.2887);
  white-space: nowrap;
  min-height: 2.75rem;
  padding: 0 calc(var(--ctip) + 0.8rem);
  border-radius: 0;
  font-size: var(--step-small);
  clip-path: polygon(var(--ctip) 0, calc(100% - var(--ctip)) 0, 100% 50%, calc(100% - var(--ctip)) 100%, var(--ctip) 100%, 0 50%);
}
.bar__cta:focus-visible { outline: none; background: var(--night); text-decoration: underline; text-underline-offset: 0.3em; }   /* an outline would be clipped to the hexagon */

/* ---------- hero: one full-bleed street-level photograph (2 : 1). The setup and its people are on the right; the left is the calm brick square,
   shaded a little from the left edge so white words read ---------- */
.hero {
  --hero-h: min(100svh, calc(100vw / 1.3));       /* full height, but never squarer than 1.3 : 1, which is where the setup would crowd the words */
  position: relative;
  min-height: var(--hero-h);
  overflow: hidden;
  background: var(--green-800);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  padding: 0 var(--gutter);
}
@supports (overflow: clip) { .hero { overflow: clip; } }
.hero .btn { background: var(--paving-light); color: var(--night); }
.hero .btn:hover { background: var(--green-200); }
.hero ::selection { background: var(--night); color: var(--on-dark); }
.hero__text {
  grid-column: 1 / span 6;
  grid-row: 1;
  position: relative;
  z-index: 2;
  align-self: center;
  display: grid;
  gap: 2rem;
  align-content: start;
  padding: 7rem 0 5rem;
}
.hero__title { font-size: max(2.4rem, min(var(--step-display), calc((100vw - 1.07 * var(--hero-h) - 4rem) / 5.6))); /* never wider than the free space left of the setup */ line-height: 0.95; letter-spacing: -0.025em; text-wrap: balance; max-width: 16ch; }
.hero__lead { max-width: max(16rem, min(34ch, calc(100vw - 1.07 * var(--hero-h) - 3.5rem))); font-size: var(--step-body); font-weight: 600; }
/* a soft, tight halo keeps the words readable over the lit brick and shopfronts */
.hero__title, .hero__lead, .hero__actions { text-shadow: 0 0 1.1rem rgba(26, 15, 8, 0.6), 0 0 0.25rem rgba(26, 15, 8, 0.35); } /* taste-skill-ignore: legibility halo on text over a photo */
.hero .btn { text-shadow: none; } /* taste-skill-ignore */
.hero__actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.hero__pic {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-inline: calc(var(--gutter) * -1);
  position: relative;
  background: var(--green-800);
  overflow: hidden;
}
.hero__pic picture { display: contents; }
/* a warm, deep shade from the left edge that dies out before the setup, for contrast under the words (the colour is the brick's own shadow, not grey) */
.hero__pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(28, 12, 8, 0.62) 0, rgba(28, 12, 8, 0.4) calc((100% - var(--hero-h)) * 0.55), rgba(28, 12, 8, 0) calc(100% - var(--hero-h) + 2rem)); /* taste-skill-ignore: shade behind text on a photo */
}
.hero__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; transform-origin: 100% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__pic { animation: pic-in 1800ms var(--ease-out) 150ms both; }
  .hero__pic img { animation: drift 24s ease-in-out 2s infinite alternate; }
  .hero__text > * { animation: text-in 1100ms var(--ease-out) both; }
  .hero__text > :nth-child(2) { animation-delay: 140ms; }
  .hero__text > :nth-child(3) { animation-delay: 280ms; }
}
@keyframes pic-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes text-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }

/* ---------- shared: a huge title, used on every section that opens a field of colour ---------- */
.range__title, .build__title, .point__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-mega);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.range__lead, .build__lead, .point__body { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.35; max-width: 34ch; text-wrap: pretty; }

/* ---------- range: the four pieces stand on brick paving in one picture, composed from separately generated layers (pieces, paving, shadows) that share one exact Blender camera, see design/images/lineup_compose.py.
   The paving fades out along its far edge and above it the picture is transparent, so the page's own ground shows there. The paving runs on in front of the pieces, where the
   descriptions sit, and fades into the builder's green, which the section then continues in. --ar is the picture's width over its height, --f where the
   pieces' base line is, as a fraction of its height ---------- */
.range { background: var(--paving); padding: calc(var(--section) * 0.75) var(--gutter) 0; display: grid; row-gap: var(--gap); }
.range__title { max-width: 14ch; }
.range__title, .range__lead { position: relative; z-index: 2; }
/* the picture is empty above the paving at the left, so it rises behind the title and the lead and they sit in that space */
.range__stage { --h: calc(100vw / var(--ar)); position: relative; margin-inline: calc(var(--gutter) * -1); margin-top: calc(var(--gap) - 0.32 * var(--h)); }
.range__pic { position: relative; z-index: 1; }
.range__pic img { width: 100%; height: auto; }
/* the fade: a little darkening where the words sit, then the paving turns into the builder's green; below the picture the stage is that green */
.range__pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(26, 17, 10, 0) 0, rgba(26, 17, 10, 0) calc(var(--f) * 100%), rgba(26, 17, 10, 0.5) calc(var(--f) * 100% + 9%), rgba(33, 58, 23, 0.88) 94%, var(--green-950) 100%);
}
.range__stage::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; top: calc(var(--h) - 1px); background: var(--green-950); }
/* each line is centred under its piece (--x is that piece's place across the picture) and sits on the paving, a little under the base line */
.range__list { position: relative; z-index: 2; color: var(--on-dark); margin-top: calc(var(--h) * (var(--f) + 0.05 - 1)); min-height: calc(var(--h) * (1 - var(--f) - 0.05)); padding-bottom: calc(var(--section) * 0.5); }
.range__list li { position: absolute; top: 0; left: calc(var(--x) * 100%); width: min(21%, 18rem); translate: -50% 0; display: grid; gap: 0.5rem; text-align: center; justify-items: center; }
.range__list li p { font-size: var(--step-body); max-width: 22ch; }

/* ---------- build: the live thing, on the night green ---------- */
.build { position: relative; background: var(--green-950); color: var(--on-dark); padding: calc(var(--section) * 0.7) var(--gutter) var(--section); display: grid; row-gap: var(--gap); }
.build__title { max-width: 12ch; }
.build__tool { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 2rem; align-items: center; margin-top: 0; }
.build__side { grid-column: 1 / span 4; container-type: inline-size; display: grid; gap: 2rem; align-content: center; }
.build__pieces { --cell: min(9.5rem, calc((100cqw - 1rem) / 3)); display: grid; grid-template-columns: repeat(3, var(--cell)); grid-template-rows: repeat(2, var(--cell)); gap: 0.5rem; }
.piece-btn {
  display: grid;
  place-items: center;
  padding: 0.5rem;
  border-radius: 0.6rem;
  background: color-mix(in srgb, #fff 7%, transparent);
  color: var(--on-dark);
  transition: background-color var(--t-fast) ease, box-shadow var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.piece-btn img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.piece-pair { display: grid; grid-template-rows: 1fr 1fr; gap: 0.25rem; min-height: 0; }
.piece-pair .piece-btn { padding: 0.2rem 0.5rem; min-height: 0; }
.piece-btn[data-piece="tall"] { grid-column: 3; grid-row: 1 / span 2; }
.piece-btn:hover { background: color-mix(in srgb, #fff 14%, transparent); }
.piece-btn:active { transform: scale(0.95); }
.piece-btn[aria-pressed="true"] { background: color-mix(in srgb, #fff 26%, transparent); }
.piece-btn:focus-visible { outline: 3px solid var(--green-200); outline-offset: 2px; }
.build__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.build .link { color: var(--on-dark); }
.build__stage { grid-column: 5 / -1; width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.cell { cursor: pointer; outline: none; }
.cell__ground { fill: var(--green-990); stroke: var(--green-950); stroke-width: 2; transition: fill var(--t-fast) ease; }
.cell:hover .cell__ground, .cell:focus-visible .cell__ground { fill: var(--green-600); }
.cell:focus-visible .cell__ground { stroke: var(--green-200); stroke-width: 4; }
.piece image { transition: opacity var(--t-mid) ease; }
.cell.is-near .piece image { opacity: 0.28; }                                          /* pieces around the pointer fade, so the floor under them shows */
.cell.is-near .cell__hit { pointer-events: none; }
.piece.is-new { animation: place-in 520ms var(--ease-out) both; }
@keyframes place-in { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }

/* ---------- points: three more fields, each composed differently ---------- */
.point__title--m { font-size: var(--step-head); line-height: 0.98; }

/* moves and shade each carry two headings with their text: an item is one heading and its text */
.point__item { display: grid; gap: 1.5rem; }
/* beside the picture the text is as tall as the picture and split in two equal halves, the first item sitting on the middle line and the second hanging from it, so the gap is centred on the picture's point */
.point--moves .point__text, .point--shade .point__text { align-self: stretch; display: grid; grid-template-rows: 1fr 1fr; row-gap: clamp(3rem, 6vw, 5.5rem); }
.point__text .point__item:first-child { align-self: end; }
.point__text .point__item:last-child { align-self: start; }

/* moves with the street (and no digging): deep green, the picture runs off the left edge and ends in a hexagon point */
.point--moves { background: var(--green-800); color: #fff; padding: var(--section) var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center; }
.point--moves .point__pic { --tip: 19.25%; grid-column: 1 / span 7; margin-left: calc(var(--gutter) * -1); clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%); overflow: hidden; }
.point--moves .point__text { grid-column: 9 / span 4; }

/* shade: moves, mirrored: the text on the left, the picture runs off the right edge and starts in a hexagon point */
.point--shade { background: var(--green-950); color: var(--on-dark); padding: var(--section) var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center; }
.point--shade .point__text { grid-column: 1 / span 4; grid-row: 1; }
.point--shade .point__pic { --tip: 19.25%; grid-column: 6 / -1; grid-row: 1; margin-right: calc(var(--gutter) * -1); clip-path: polygon(var(--tip) 0, 100% 0, 100% 100%, var(--tip) 100%, 0 50%); overflow: hidden; }
.point__pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--green-200); }

/* ---------- contact: the ask on the left, the two founders on the right, as a honeycomb pair ---------- */
.contact {
  background: var(--paving-light);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 4rem;
  padding: var(--section) var(--gutter);
  align-items: center;
}
.contact__main { grid-column: 1 / span 6; display: grid; gap: 2.25rem; justify-items: start; }
.contact__say { max-width: 16ch; font-family: var(--display); font-weight: 800; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.contact__sub { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.35; max-width: 30ch; }
.contact__mail { display: grid; gap: 0.4rem; }
.contact__link { font-family: var(--display); font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.01em; }

.team { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); justify-items: center; align-items: start; padding-bottom: 4rem; }
.person { width: min(100%, 18rem); display: grid; gap: 0.2rem; }
.person:nth-child(2) { translate: 0 4rem; } /* offset like neighbouring cells of a honeycomb */
.person__pic {
  aspect-ratio: 0.866;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--green-200);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.person__pic--kartik img { object-position: 20% 50%; } /* his face sits left of centre in the square photo */
.person__pic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.person__name { font-family: var(--display); font-weight: 800; font-size: var(--step-lead); line-height: 1.05; letter-spacing: -0.01em; }
.person__role { font-size: var(--step-small); color: var(--ink-soft); }

/* ---------- footer: the copyright line, then the wordmark bleeding off the bottom ---------- */
.foot {
  background: var(--green-800);
  color: #fff;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 0;
  display: grid;
  row-gap: clamp(1.5rem, 3vw, 2.5rem);
}
.foot__legal { display: flex; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; font-size: var(--step-small); }
.foot__name { margin-bottom: -5.2vw; } /* about a quarter of the wordmark's height runs off the bottom edge */
.foot__name img { width: 100%; height: auto; }

/* ---------- entrances (only when script runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; }
  .js [data-reveal].is-in { transition: opacity 200ms linear; }
  *, *::before, *::after { animation: none !important; }
}

/* ---------- hero in portrait (narrower than 0.95 : 1): a portrait photograph, brick houses and a plane tree in its upper part
   where the words are, the setup and its people below ---------- */
@media (max-aspect-ratio: 19 / 20) {
  .hero { --hero-h: 100svh; min-height: max(100svh, 38rem); }
  .hero__pic img { object-position: 50% 100%; }
  .hero__pic::after { background: linear-gradient(to bottom, rgba(28, 12, 8, 0.62) 0, rgba(28, 12, 8, 0.38) 38%, rgba(28, 12, 8, 0) 62%); } /* taste-skill-ignore */
  .hero__text { grid-column: 1 / -1; align-self: start; gap: 1.25rem; padding: clamp(4.5rem, 10svh, 8rem) 0 2rem; }
  .hero__title { font-size: max(2.4rem, min(var(--step-display), 7.2svh)); }
  .hero__lead { max-width: 34ch; }
  .hero__actions { gap: 0.75rem 1rem; }                           /* both actions on one line, so the text block stays above the setup */
}

/* ---------- tablet ---------- */
@media (max-width: 64rem) {
  .range__stage { margin-top: var(--gap); }
  .range__list { min-height: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem var(--gutter); padding: 0 var(--gutter) calc(var(--section) * 0.5); }
  .range__list li { position: static; width: auto; translate: none; text-align: left; justify-items: start; align-content: start; }
  .build__side { grid-column: 1 / -1; }
  .build__stage { grid-column: 1 / -1; margin-top: 6rem; }
  .point--moves .point__pic { grid-column: 1 / span 7; }
  .point--moves .point__text { grid-column: 8 / span 5; }
  .point--shade .point__text { grid-column: 1 / span 5; }
  .point--shade .point__pic { grid-column: 6 / -1; }
  .contact__main { grid-column: 1 / -1; }
  .team { grid-column: 1 / -1; max-width: 40rem; justify-self: start; }
}

/* ---------- phone ---------- */
@media (max-width: 47.99rem) {
  :root { --bar-h: 4.25rem; }
  .bar__nav, .bar__cta { display: none; }          /* no room beside the switch: on phones the island is just the logo, a way back to the top */
  .bar { padding-right: calc(var(--tip) + 0.6rem); }
  .bar__brand { width: 6rem; }

  .hero__text { padding-top: 5.5rem; gap: 1.5rem; }


  .range__list { grid-template-columns: 1fr; }
  .point--moves, .point--shade { grid-template-columns: 1fr; }
  .point--moves .point__pic, .point--moves .point__text,
  .point--shade .point__text, .point--shade .point__pic { grid-column: 1; grid-row: auto; }
  .point--moves, .point--shade { row-gap: 2rem; }
  .point--moves .point__pic, .point--shade .point__pic { margin-inline: calc(var(--gutter) * -1); clip-path: none; }
  .point--moves .point__text, .point--shade .point__text { grid-row: 2; }
  .point--moves .point__text, .point--shade .point__text { align-self: auto; grid-template-rows: none; row-gap: 3rem; }
  .point--shade .point__pic { grid-row: 1; }

  .contact { grid-template-columns: 1fr; row-gap: 3rem; }
  .contact__main, .team { grid-column: 1; }
  .team { column-gap: 0.75rem; padding-bottom: 3rem; }
  .person:nth-child(2) { translate: 0 2.5rem; }

  .foot { row-gap: 1.75rem; }
}
