/* Taetso and Omphile Project
   The idea: the ground. Civil work goes down into it; in season the harvest comes up out of it.
   Type: Sofia Sans, a DIN-style face like the lettering on South African road signs.
   Colour: night and bitumen, road-sign green, road-marking yellow; citrus orange for the harvest chapter only.
   See DESIGN.md. */

@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/sofia-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("../assets/fonts/sofia-sans-extra-condensed-latin.woff2") format("woff2");
}

:root {
  --night: #0C1011;
  --bitumen: #14191B;
  --bitumen-2: #1E2528;
  --paper: #F1F2EE;
  --paper-2: #E6E8E3;
  --panel: #FFFFFF;
  --ink: #131A1B;
  --ink-soft: #4A5755;
  --ink-faint: #B4BBB7;
  --rule: #CDD3CF;
  --green: #0F5B3F;
  --green-deep: #0A4630;
  --orchard: #0B3526;
  --yellow: #F5C518;
  --yellow-hover: #FFD84A;
  --citrus: #F59A1C;
  --blue: #1565A8;
  --on-dark: #E7EBE8;
  --on-dark-soft: #A7B1AE;
  --error: #A3261C;

  --text: "Sofia Sans", Bahnschrift, "Segoe UI", Arial, sans-serif;
  --display: "Sofia Sans Extra Condensed", "Bahnschrift Condensed", "Arial Narrow", Impact, sans-serif;

  --gutter: clamp(1.125rem, 4vw, 2.75rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

.sprite {
  position: absolute;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 60;
  padding: 0.6rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 0 0 8px 8px;
}

.skip:focus {
  top: 0;
}

.wrap {
  width: min(76rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Type ---------- */

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.3rem, 9.2vw, 8.4rem);
  line-height: 0.86;
}

h2 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.92;
}

.h2-small {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
}

.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.section-intro {
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.text-link {
  font-weight: 700;
  color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.text-link:hover {
  color: var(--green-deep);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-deep);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn-yellow:hover {
  background: var(--yellow-hover);
}

.btn-citrus {
  background: var(--citrus);
  color: var(--ink);
}

.btn-citrus:hover {
  background: #FFB347;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

/* ---------- Things that arrive once, when scrolled to ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.9s var(--ease);
}

/* ---------- Header: clear over the hero, solid once the page scrolls ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  color: #fff;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-solid,
.site-header.is-open {
  background: rgba(12, 16, 17, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header :focus-visible {
  outline-color: var(--yellow);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem 2rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  --mark-bg: #fff;
  --mark-fg: var(--night);
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-top {
  font-weight: 800;
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.brand-sub {
  margin-top: 0.28rem;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.56em;
}

.nav {
  display: flex;
  gap: 0.25rem 1.7rem;
}

.nav a {
  display: inline-block;
  padding-block: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--yellow), var(--yellow)) left bottom / 0 3px no-repeat;
  transition: background-size 0.25s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  background-size: 100% 3px;
}

.header-cta {
  min-height: 2.7rem;
  padding: 0.45rem 1.1rem;
}

.menu-btn {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  color: #fff;
  background: var(--night);
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero-video {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-video.is-on {
  opacity: 1;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 11, 12, 0.86) 0%, rgba(8, 11, 12, 0.6) 32%, rgba(8, 11, 12, 0.08) 62%, rgba(8, 11, 12, 0) 78%),
    linear-gradient(180deg, rgba(8, 11, 12, 0.6) 0%, rgba(8, 11, 12, 0) 20%, rgba(8, 11, 12, 0) 60%, rgba(8, 11, 12, 0.78) 100%);
}

.hero-inner {
  position: relative;
  align-self: center;
  padding-block: 7.5rem 2.5rem;
}

.hero-kicker {
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: var(--yellow);
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

.hero h1 .line > span {
  display: block;
}

.lede {
  max-width: 33rem;
  margin-top: clamp(1.25rem, 3vw, 1.9rem);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: #E9ECEA;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* arrival: the headline rises line by line, then the rest settles */
.js .hero h1 .line > span {
  transform: translateY(108%);
}

.js .hero .hero-kicker,
.js .hero .lede,
.js .hero .actions,
.js .hero .proof {
  opacity: 0;
  transform: translateY(1rem);
}

.js .hero.is-in h1 .line > span {
  transform: none;
  transition: transform 1s var(--ease);
}

.js .hero.is-in h1 .line:nth-child(2) > span {
  transition-delay: 0.12s;
}

.js .hero.is-in h1 .line:nth-child(3) > span {
  transition-delay: 0.24s;
}

.js .hero.is-in .hero-kicker,
.js .hero.is-in .lede,
.js .hero.is-in .actions,
.js .hero.is-in .proof {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.9s var(--ease);
}

.js .hero.is-in .lede {
  transition-delay: 0.5s;
}

.js .hero.is-in .actions {
  transition-delay: 0.62s;
}

.js .hero.is-in .proof {
  transition-delay: 0.8s;
}

.film-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 6.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.9rem 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(12, 16, 17, 0.5);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.film-toggle[hidden] {
  display: none;
}

.film-toggle:hover {
  background: rgba(12, 16, 17, 0.8);
}

.film-toggle:focus-visible {
  outline-color: var(--yellow);
}

.film-toggle svg {
  width: 1rem;
  height: 1rem;
}

.proof {
  position: relative;
  background: rgba(10, 13, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-row > div {
  padding: 1.15rem 1.25rem 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-row > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.proof dt {
  font-size: 0.875rem;
  color: var(--on-dark-soft);
}

.proof dd {
  margin-top: 0.15rem;
  font-weight: 700;
  font-size: 1.0625rem;
}

/* ---------- Statement ---------- */

.statement {
  padding-block: clamp(4.5rem, 12vw, 10rem);
}

.statement-text {
  max-width: 21em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1;
  text-wrap: pretty;
}

.statement-text .w {
  color: var(--ink-faint);
  transition: color 0.35s ease;
}

.statement-text .w.is-lit {
  color: var(--ink);
}

/* ---------- Services: an index that changes the picture ---------- */

.services {
  padding-bottom: var(--section);
}

.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.svc-list {
  border-top: 2px solid var(--ink);
}

.svc-item {
  border-bottom: 1px solid var(--rule);
}

.svc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem 0 0.8rem;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.25s ease;
}

.svc-btn:hover,
.svc-item.is-active .svc-btn,
html:not(.js) .svc-btn {
  color: var(--ink);
}

.svc-btn svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.35s var(--ease);
}

.svc-item.is-active .svc-btn svg {
  transform: rotate(45deg);
}

.svc-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.js .svc-item:not(.is-active) .svc-panel {
  grid-template-rows: 0fr;
}

.svc-inner {
  overflow: hidden;
  min-height: 0;
}

.svc-inner p {
  max-width: 30rem;
  color: var(--ink-soft);
}

.svc-inner .text-link {
  display: inline-block;
  margin: 0.6rem 0 1.4rem;
}

.svc-inner img {
  display: none;
}

.svc-stage {
  position: sticky;
  top: 6.25rem;
}

.svc-frame {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bitumen);
}

.svc-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.55s ease, transform 1.4s var(--ease);
}

.svc-frame img.is-on {
  opacity: 1;
  transform: none;
}

.svc-kind {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(12, 16, 17, 0.62);
  color: #fff;
  font-size: 0.8125rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- The dig ---------- */

.dig {
  background: var(--night);
  color: #fff;
}

.dig .section-intro {
  margin-top: 1rem;
  color: var(--on-dark-soft);
}

.dig-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--on-dark-soft);
}

/* phones, reduced motion and no script: three pictures */
.dig-pin {
  display: none;
}

.dig-cards {
  display: grid;
  gap: 2rem;
  padding-block: var(--section);
}

.dig-cards h2 + .section-intro {
  margin-top: -1rem;
}

.dig-cards figure img {
  width: 100%;
  border-radius: 8px;
}

.dig-cards figcaption {
  margin-top: 0.8rem;
  color: var(--on-dark-soft);
}

.dig-cards figcaption strong {
  color: #fff;
}

/* wide screens with script and motion: one stage, scrubbed by the scroll */
@media (min-width: 62rem) and (prefers-reduced-motion: no-preference) {
  .js .dig {
    height: 400vh;
  }

  .js .dig-cards {
    display: none;
  }

  .js .dig-pin {
    position: sticky;
    top: 0;
    display: grid;
    align-items: center;
    height: 100vh;
    overflow: hidden;
  }
}

.dig-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
  padding-top: 4.5rem;
}

.dig-steps {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
}

.dig-steps li {
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-left: 3px solid rgba(255, 255, 255, 0.16);
  opacity: 0.4;
  transition: opacity 0.35s ease, border-color 0.35s ease;
}

.dig-steps li.is-on {
  border-left-color: var(--yellow);
  opacity: 1;
}

.dig-steps h3 {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.dig-steps p {
  margin-top: 0.3rem;
  color: var(--on-dark-soft);
}

.dig-stage {
  width: 100%;
  max-width: calc((100vh - 11rem) * 16 / 9);
  margin-left: auto;
}

.dig-frame {
  position: relative;
  aspect-ratio: 16 / 9;
}

.dig-still,
.dig-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 74% 82% at 50% 50%, #000 64%, transparent 100%);
  mask-image: radial-gradient(ellipse 74% 82% at 50% 50%, #000 64%, transparent 100%);
}

.dig-canvas {
  opacity: 0;
}

.dig-frame.is-live .dig-canvas {
  opacity: 1;
}

.dig-frame.is-live .dig-still {
  opacity: 0;
}

.dig-tags li {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  padding: 0.22rem 0.75rem 0.25rem 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(12, 16, 17, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transform: translate(-0.62rem, -50%) scale(0.92);
  transform-origin: 0.62rem 50%;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
  pointer-events: none;
}

.dig-tags li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: -0.325rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.3);
}

.dig-tags li.is-flip {
  padding: 0.22rem 1.55rem 0.25rem 0.75rem;
  transform: translate(calc(-100% + 0.62rem), -50%) scale(0.92);
  transform-origin: calc(100% - 0.62rem) 50%;
}

.dig-tags li.is-flip::before {
  left: auto;
  right: 0.3rem;
}

.dig-tags li.is-on {
  opacity: 1;
  transform: translate(-0.62rem, -50%);
}

.dig-tags li.is-flip.is-on {
  transform: translate(calc(-100% + 0.62rem), -50%);
}

/* ---------- Harvest ---------- */

.harvest {
  --mark-bg: #fff;
  background: var(--orchard);
  color: #fff;
}

.harvest :focus-visible {
  outline-color: var(--yellow);
}

.harvest-banner {
  position: relative;
  height: clamp(24rem, 78vh, 46rem);
  overflow: hidden;
}

.harvest-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.harvest-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 53, 38, 0.15) 0%, rgba(11, 53, 38, 0) 35%, rgba(11, 53, 38, 0.72) 78%, var(--orchard) 100%);
}

.harvest-banner figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

.harvest-banner h2 {
  max-width: 9.5em;
  font-size: clamp(3rem, 8.4vw, 7.4rem);
  line-height: 0.88;
}

.harvest-body {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 4rem) var(--section);
}

.harvest-lede {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1;
  color: var(--citrus);
}

.harvest-copy > p + p {
  margin-top: 1.1rem;
  color: #D5E2DB;
}

.harvest-copy .btn {
  margin-top: 1.75rem;
}

.harvest-copy .harvest-note {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: #9DB8AA;
}

.prints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  align-items: start;
}

.print {
  will-change: transform;
}

.print:nth-child(2) {
  margin-top: clamp(1.5rem, 5vw, 4.5rem);
}

.print img {
  width: 100%;
  aspect-ratio: 5 / 6.2;
  object-fit: cover;
  border-radius: 8px;
}

.print p {
  margin-top: 0.6rem;
  font-weight: 600;
  color: #D5E2DB;
}

/* ---------- Company details as a contract site board ---------- */

.company {
  padding-block: var(--section) clamp(2rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 62%, var(--paper-2) 100%);
  overflow: hidden;
}

.board-wrap {
  max-width: 62rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  perspective: 1600px;
}

.board {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 4.4vw, 3.5rem);
  border-radius: 16px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0.08) 100%),
    var(--green);
  color: #fff;
  box-shadow:
    inset 0 0 0 6px var(--green),
    inset 0 0 0 10px #fff,
    0 34px 60px -28px rgba(8, 30, 20, 0.55),
    0 4px 10px rgba(8, 30, 20, 0.18);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.35s var(--ease);
}

.board :focus-visible {
  outline-color: var(--yellow);
}

.bolt {
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F4F6F5 0%, #AEB6B3 45%, #6D7673 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.bolt:nth-of-type(1) { left: 1.35rem; top: 1.35rem; }
.bolt:nth-of-type(2) { right: 1.35rem; top: 1.35rem; }
.bolt:nth-of-type(3) { left: 1.35rem; bottom: 1.35rem; }
.bolt:nth-of-type(4) { right: 1.35rem; bottom: 1.35rem; }

.board-role {
  font-weight: 700;
  color: var(--yellow);
}

.board-name {
  margin-top: 0.2rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 0.92;
  text-wrap: balance;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.fact {
  padding-block: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.fact-wide {
  grid-column: 1 / -1;
}

.fact dt {
  font-size: 0.9375rem;
  color: #C9DED4;
}

.fact dd {
  margin-top: 0.1rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.copy {
  margin-left: 0.5rem;
  padding: 0.12rem 0.6rem;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.copy:hover {
  background: #fff;
  color: var(--green-deep);
}

.posts {
  display: flex;
  justify-content: space-between;
  height: clamp(4rem, 9vw, 7rem);
  padding-inline: 17%;
  margin-top: -0.75rem;
}

.posts span {
  width: 1rem;
  background: linear-gradient(90deg, #8E9794 0%, #D9DEDC 38%, #A7AFAC 62%, #6F7875 100%);
  box-shadow: 14px 0 22px -6px rgba(8, 30, 20, 0.3);
}

.board-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1.75rem;
  border-top: 3px solid var(--ink);
}

.copy-status:empty {
  display: none;
}

.copy-status {
  color: var(--ink-soft);
}

/* ---------- About ---------- */

.about {
  padding-block: var(--section);
  background: var(--paper-2);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.about-text > p {
  max-width: 34rem;
  margin-top: 1.2rem;
  font-size: 1.125rem;
}

.mission {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  background: var(--bitumen);
}

.mission img {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
}

.mission::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 12, 0.05) 20%, rgba(8, 11, 12, 0.88) 100%);
}

.mission blockquote {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.mission blockquote p {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
  line-height: 1.02;
  text-wrap: balance;
}

.mission blockquote footer {
  margin-top: 0.7rem;
  color: var(--yellow);
  font-weight: 600;
}

.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.75rem clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 1.75rem;
}

.ways li {
  padding-top: 1rem;
  border-top: 4px solid var(--ink);
}

.ways li:nth-child(2).is-in { transition-delay: 0.08s; }
.ways li:nth-child(3).is-in { transition-delay: 0.16s; }
.ways li:nth-child(4).is-in { transition-delay: 0.24s; }

.ways p {
  margin-top: 0.35rem;
  color: var(--ink-soft);
}

.aims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  column-gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 1.5rem;
}

.aims li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-top: 1px solid var(--rule);
}

.aims li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 0.9rem;
  height: 0.3rem;
  background: var(--green);
}

/* ---------- Contact ---------- */

.contact {
  padding-block: var(--section);
  background: var(--paper);
}

.contact .section-intro {
  margin-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.quote {
  display: grid;
  gap: 1.15rem;
  max-width: 42rem;
  margin-top: 2.25rem;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  border-top: 6px solid var(--green);
  border-radius: 4px 4px 10px 10px;
  background: var(--panel);
  box-shadow: 0 24px 50px -30px rgba(19, 26, 27, 0.35), 0 1px 0 var(--rule);
}

.quote-title {
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.15rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.field label {
  font-weight: 700;
}

.optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid #7C8783;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

.field-error {
  color: var(--error);
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: 0.75rem 1rem;
  border-left: 6px solid var(--green);
  background: var(--paper);
}

.direct {
  font-style: normal;
  padding-top: 0.4rem;
}

.direct h3 {
  margin-top: 1.75rem;
  padding-top: 0.85rem;
  border-top: 4px solid var(--ink);
}

.direct h3:first-child {
  margin-top: 0;
}

.direct p {
  margin-top: 0.4rem;
  overflow-wrap: anywhere;
}

.direct a {
  display: inline-block;
  padding-block: 0.2rem;
}

.direct a:not(.text-link) {
  text-decoration-color: var(--rule);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.direct a:not(.text-link):hover {
  text-decoration-color: var(--green);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 1.25rem;
  padding-bottom: 5.5rem;
  background: var(--night);
  color: var(--on-dark);
}

.site-footer :focus-visible {
  outline-color: var(--yellow);
}

.road-lines {
  position: relative;
  height: 6px;
  background: var(--yellow);
}

.road-lines::after {
  content: "";
  position: absolute;
  inset: 1.6rem 0 auto;
  height: 6px;
  background: repeating-linear-gradient(90deg, #FAFAF7 0 3.5rem, transparent 3.5rem 7rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.75rem 3rem;
  padding-top: 4.5rem;
}

.brand-footer {
  align-self: start;
  color: #fff;
}

.footer-legal {
  display: grid;
  gap: 0.4rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-dark-soft);
  font-size: 0.9375rem;
}

.footer-legal p {
  max-width: 52rem;
}

/* ---------- Floating WhatsApp button ---------- */

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.6rem 1.1rem 0.6rem 0.9rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #128C4B;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(10, 20, 15, 0.3);
}

.whatsapp-float:hover {
  background: #0E7A40;
}

.whatsapp-float svg {
  width: 1.6rem;
  height: 1.6rem;
}

/* ---------- Medium screens and phones ---------- */

@media (max-width: 61.99rem) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.4rem 0.95rem;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    background: transparent;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
  }

  .site-header nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    background: rgba(12, 16, 17, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header.is-open nav {
    display: block;
  }

  .nav {
    flex-direction: column;
    width: min(76rem, 100% - 2 * var(--gutter));
    margin-inline: auto;
    padding-block: 0.5rem 1rem;
  }

  .nav a {
    display: block;
    padding-block: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.125rem;
  }

  .svc,
  .about-grid,
  .contact-grid,
  .harvest-body {
    grid-template-columns: 1fr;
  }

  .svc-stage {
    display: none;
  }

  .svc-inner img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin: 0.25rem 0 1rem;
    border-radius: 8px;
  }

  .proof-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-row > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .proof-row > div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .film-toggle {
    display: none;
  }
}

@media (max-width: 47.99rem) {
  .hero-poster {
    object-position: 50% 100%;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(8, 11, 12, 0.72) 0%, rgba(8, 11, 12, 0.5) 38%, rgba(8, 11, 12, 0.1) 62%, rgba(8, 11, 12, 0.7) 100%);
  }

  .hero-inner {
    align-self: start;
    padding-block: 6.5rem 14rem;
  }

  .prints {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 0.5rem;
  }

  .print {
    scroll-snap-align: center;
    transform: none !important;
  }

  .print:nth-child(2) {
    margin-top: 0;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .bolt {
    display: none;
  }

  .posts {
    padding-inline: 12%;
  }
}

@media (max-width: 36rem) {
  .header-cta {
    display: none;
  }

  .brand-top {
    font-size: 0.9375rem;
  }

  .brand-sub {
    font-size: 0.8125rem;
  }

  .btn {
    flex: 1 1 100%;
  }

  .whatsapp-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .whatsapp-float {
    padding: 0.6rem;
    width: 3.25rem;
    justify-content: center;
  }
}

/* ---------- Less motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js [data-reveal],
  .js .hero h1 .line > span,
  .js .hero .hero-kicker,
  .js .hero .lede,
  .js .hero .actions,
  .js .hero .proof {
    opacity: 1;
    transform: none;
  }

  .statement-text .w {
    color: var(--ink);
  }
}

@media print {
  .whatsapp-float,
  .site-header,
  .film-toggle,
  .quote {
    display: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* the dig stills on phones: crop closer so the block fills the picture */
@media (max-width: 47.99rem) {
  .dig-cards figure img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}

/* wide screens without script or with reduced motion: the three stills side by side */
@media (min-width: 62rem) {
  .dig-cards {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.5rem;
  }

  .dig-cards h2,
  .dig-cards .section-intro,
  .dig-cards .dig-note {
    grid-column: 1 / -1;
  }
}

/* the hero film and its still sit a touch deeper than they were rendered */
.hero-poster,
.hero-video {
  filter: contrast(1.07) saturate(1.1);
}

/* the dig picture fades into the section on all four sides, so no frame edge shows */
.dig-still,
.dig-canvas {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.dig-copy h2 {
  font-size: clamp(2.6rem, 4.4vw, 3.9rem);
}

.dig-grid {
  grid-template-columns: minmax(15rem, 19.5rem) minmax(0, 1fr);
}

/* Phones: the hero picture is sized from the screen's width and stands at the bottom,
   so the words above never land on the works. */
@media (max-width: 47.99rem) {
  .hero-media {
    top: auto;
    height: 150vw;
  }

  .hero-shade {
    background: linear-gradient(to top, rgba(8, 11, 12, 0.55) 0, rgba(8, 11, 12, 0) 34vw, rgba(8, 11, 12, 0) 74vw, rgba(12, 16, 17, 0.72) 108vw, #0C1011 149vw);
  }

  .hero-inner {
    align-self: start;
    padding-block: 6.25rem calc(80vw - 9.5rem);
  }
}

@media (max-width: 47.99rem) {
  /* the picture belongs to the first row of the hero, above the credentials bar */
  .hero-media,
  .hero-shade {
    grid-row: 1;
    grid-column: 1;
  }

  .hero-inner {
    padding-bottom: calc(78vw + 1rem);
  }

  .proof {
    background: var(--night);
  }
}

@media (max-width: 61.99rem) {
  .site-header nav {
    background: var(--night);
  }
}

/* ---------- Service index, final behaviour ---------- */

.svc-frame .svc-kind {
  z-index: 1;
}

.svc-caption {
  display: none;
}

@media (min-width: 62rem) {
  /* names only on the left; the words for the chosen one sit under the picture */
  .js .svc-panel {
    display: none;
  }

  .js .svc-btn svg {
    display: none;
  }

  .js .svc-btn {
    justify-content: flex-start;
    gap: 0;
  }

  .js .svc-btn::before {
    content: "";
    flex: none;
    width: 0;
    height: 0.42rem;
    background: var(--yellow);
    transition: width 0.35s var(--ease), margin-right 0.35s var(--ease);
  }

  .js .svc-item.is-active .svc-btn::before {
    width: 2.4rem;
    margin-right: 1rem;
  }

  .js .svc-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    min-height: 4.5rem;
    padding-top: 1.1rem;
  }

  .svc-text {
    flex: 1 1 18rem;
    max-width: 30rem;
    font-size: 1.125rem;
  }
}

/* phones: the hero picture box, with explicit row lines (an open-ended row would run to the bottom of the hero) */
@media (max-width: 47.99rem) {
  .hero-media,
  .hero-shade {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
  }
}

/* ---------- Footer wordmark ---------- */

.footer-word {
  padding-top: 4rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 14.2vw, 13.5rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #fff;
}

.footer-word + .footer-grid {
  padding-top: 2.5rem;
}

/* fingers need bigger targets than pointers: at least 44px tall */
@media (pointer: coarse) {
  .svc-inner .text-link,
  .direct a,
  .site-footer a {
    padding-block: 0.7rem;
  }

  .site-footer a {
    display: inline-block;
  }

  .copy {
    min-height: 2.75rem;
    padding-inline: 0.9rem;
  }
}

/* without scripts the header never learns the page has scrolled, so it is solid from the start,
   and the service lines are plain headings */
html:not(.js) .site-header {
  background: rgba(12, 16, 17, 0.94);
}

html:not(.js) .svc-btn {
  cursor: default;
}

html:not(.js) .svc-btn svg {
  display: none;
}

/* tablets held upright: the upright picture, with the words above the works */
@media (min-width: 48rem) and (max-aspect-ratio: 4/5) {
  .hero-inner {
    align-self: start;
    padding-top: clamp(7rem, 13vh, 10rem);
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(8, 11, 12, 0.82) 0%, rgba(8, 11, 12, 0.5) 30%, rgba(8, 11, 12, 0) 48%, rgba(8, 11, 12, 0) 70%, rgba(8, 11, 12, 0.7) 100%);
  }

  .hero-poster {
    object-position: 50% 50%;
  }
}

/* the labels are plotted on the frames, so they wait until the frames are showing */
.dig-frame:not(.is-live) .dig-tags {
  visibility: hidden;
}
