/* ============================================================
   GREEN ORIGINES — Cubic-inspired dark studio
   Deep green canvas · yellow accent · sans-serif editorial
   ============================================================ */

/* ---------- Fonts (Fontshare General Sans + Google Instrument Sans) ---------- */
@import url("https://api.fontshare.com/v2/css?f[]=general-sans@200,300,400,500,600,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Instrument+Serif:ital@0;1&display=swap");

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  line-height: 1.5;
}
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}

/* ---------- Tokens ---------- */
:root {
  /* Cubic palette adapted to forest/origines */
  --bg: #081802; /* canvas — deep almost-black green */
  --bg-2: #0d2803; /* subtle layer */
  --bg-3: #133308; /* card / panel */
  --bg-4: #144204; /* hover panel */
  --line: #21550f; /* divider, subtle stroke */
  --moss: #2a8016; /* mid green accent */

  --cream: #d4dfd4; /* light section bg */
  --bone: #efe6d5; /* warm light alt */
  --off: #faf8f3; /* light text on dark */

  --accent: #ffc300; /* signature yellow */
  --accent-d: #e6ae00;
  --ink: #0b1b06; /* near-black for light surfaces */

  /* Functional */
  --fg: var(--off);
  --muted: rgba(250, 248, 243, 0.62);
  --rule: rgba(250, 248, 243, 0.12);

  /* Type */
  --sans:
    "General Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    sans-serif;
  --display: "Instrument Sans", "General Sans", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  /* Spacing scale */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
  --s8: 9rem;

  /* Radius */
  --r-sm: 4px;
  --r-md: 14px;
  --r-lg: 28px;
  --r-xl: 40px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.6, 0, 0.2, 1);

  /* Container */
  --maxw: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 0.6vw + 0.7rem, 17px);
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
  letter-spacing: -0.005em;
}

@media (max-width: 900px) {
  body {
    cursor: auto;
  }
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.98;
}
h1 em,
h2 em,
h3 em,
.italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: currentColor;
}
.eyebrow.no-rule::before {
  display: none;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(4.5rem, 11vw, 10rem) 0;
  position: relative;
}
.section--tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section--dark {
  background: var(--bg-2);
  color: var(--off);
}
.section--beige {
  background: var(--cream);
  color: var(--ink);
}
.section--beige .eyebrow {
  color: var(--bg-4);
}
.section--beige h1 em,
.section--beige h2 em,
.section--beige h3 em {
  color: var(--bg-4);
}
.section--forest {
  background: var(--bg-3);
  color: var(--off);
}

/* Subtle grain overlay */
.grain {
  position: relative;
  isolation: isolate;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0   0 0 0 0 0   0 0 0 0 0   0 0 0 1.4 -0.2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.grain > * {
  position: relative;
  z-index: 2;
}

/* Soft radial glow used behind hero / section heads */
.glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  background: radial-gradient(
    closest-side,
    rgba(42, 128, 22, 0.55),
    transparent 70%
  );
}
.glow--accent {
  background: radial-gradient(
    closest-side,
    rgba(255, 195, 0, 0.3),
    transparent 70%
  );
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    background 0.3s var(--ease),
    opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor.is-hover {
  width: 52px;
  height: 52px;
  background: var(--off);
}
.cursor.is-down {
  transform: translate(-50%, -50%) scale(0.6);
}
@media (max-width: 900px) {
  .cursor {
    display: none;
  }
}

/* ---------- Loader / Page curtain ---------- */
.curtain {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform-origin: top;
  animation: curtainUp 1.2s var(--ease) 0.5s forwards;
}
.curtain__mark {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 4rem);
  font-style: italic;
  color: var(--accent);
  opacity: 0;
  animation:
    fadeIn 0.5s var(--ease) 0.1s forwards,
    fadeOut 0.3s var(--ease) 1s forwards;
}
@keyframes curtainUp {
  0% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* ---------- Top Bar / Nav ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition:
    background 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease),
    padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  background: rgba(8, 24, 2, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--rule);
  padding: 0.8rem 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--off);
}
.brand__dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(255, 195, 0, 0.55);
  animation: pulseDot 2.4s infinite;
}
@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 195, 0, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 195, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 195, 0, 0);
  }
}
.brand em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  margin-left: 1px;
}

.nav {
  display: flex;
  gap: clamp(0.6rem, 2vw, 2.2rem);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav a {
  position: relative;
  padding: 0.4rem 0;
  display: inline-flex;
  gap: 0.4rem;
  align-items: baseline;
  color: rgba(250, 248, 243, 0.78);
  transition: color 0.3s;
}
.nav a:hover {
  color: var(--off);
}
.nav a .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav a.is-active {
  color: var(--off);
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.72);
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.lang-switch:hover {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}
.lang-switch__current {
  color: var(--accent);
}
.lang-switch:hover .lang-switch__current {
  color: var(--ink);
}
.lang-switch__sep {
  opacity: 0.4;
}
.lang-switch__alt {
  opacity: 0.7;
}
.lang-switch:hover .lang-switch__alt {
  opacity: 1;
}
@media (max-width: 980px) {
  .lang-switch {
    margin-left: auto;
  }
}

.menu-btn {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.menu-btn span {
  width: 26px;
  height: 1.5px;
  background: var(--off);
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s;
}
.menu-btn.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 980px) {
  .menu-btn {
    display: flex;
  }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    color: var(--off);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.4rem;
    transform: translateX(100%);
    transition: transform 0.6s var(--ease);
    padding: var(--s6);
  }
  .nav.is-open {
    transform: translateX(0);
  }
}

/* ---------- Side scroll index ---------- */
.side-index {
  position: fixed;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.side-index a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(250, 248, 243, 0.45);
  transition: color 0.4s var(--ease);
}
.side-index a::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  transition:
    width 0.4s var(--ease),
    background 0.4s var(--ease);
}
.side-index a.is-active {
  color: var(--accent);
}
.side-index a.is-active::before {
  width: 2.6rem;
  background: var(--accent);
}
.side-index a:hover {
  color: var(--off);
}

.side-index.is-on-light a {
  color: rgba(11, 27, 6, 0.55);
}
.side-index.is-on-light a.is-active {
  color: var(--bg-4);
}
.side-index.is-on-light a.is-active::before {
  background: var(--bg-4);
}

@media (max-width: 1100px) {
  .side-index {
    display: none;
  }
}

/* ---------- Buttons (Cubic-style fill animation via background-position) ---------- */
.btn {
  --btn-base: transparent;
  --btn-fill: var(--accent);
  --btn-fg: var(--off);
  --btn-fg-hover: var(--ink);
  --btn-border: rgba(250, 248, 243, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.6rem 0.95rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--btn-border);
  color: var(--btn-fg);
  background-color: var(--btn-base);
  background-image: linear-gradient(
    180deg,
    var(--btn-fill) 0%,
    var(--btn-fill) 50%,
    transparent 50%,
    transparent 100%
  );
  background-size: 100% 220%;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition:
    background-position 0.6s var(--ease-soft),
    color 0.45s var(--ease-soft),
    border-color 0.45s var(--ease-soft);
}
.btn::after {
  content: "→";
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  transition: transform 0.45s var(--ease);
}
.btn:hover {
  color: var(--btn-fg-hover);
  border-color: var(--btn-fill);
  background-position: 0 0;
}
.btn:hover::after {
  transform: translateX(5px);
}

/* Primary: solid yellow at rest, cream fill on hover */
.btn--primary {
  --btn-base: var(--accent);
  --btn-fill: var(--off);
  --btn-fg: var(--ink);
  --btn-fg-hover: var(--ink);
  --btn-border: var(--accent);
}

/* Ghost on light surfaces */
.btn--ghost {
  --btn-base: transparent;
  --btn-fill: var(--ink);
  --btn-fg: var(--ink);
  --btn-fg-hover: var(--off);
  --btn-border: rgba(11, 27, 6, 0.35);
}

/* Ghost on dark surfaces — yellow fill */
.section--dark .btn--ghost,
.section--forest .btn--ghost {
  --btn-base: transparent;
  --btn-fill: var(--accent);
  --btn-fg: var(--off);
  --btn-fg-hover: var(--ink);
  --btn-border: rgba(250, 248, 243, 0.4);
}

.btn--ghost-light {
  --btn-base: transparent;
  --btn-fill: var(--off);
  --btn-fg: var(--off);
  --btn-fg-hover: var(--ink);
  --btn-border: rgba(250, 248, 243, 0.45);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition:
    gap 0.4s var(--ease),
    color 0.3s;
}
.text-link:hover {
  gap: 0.85rem;
  color: var(--off);
}
.section--beige .text-link {
  color: var(--bg-4);
}
.section--beige .text-link:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: clamp(7rem, 14vh, 10rem);
  padding-bottom: var(--s6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 90%;
  background:
    radial-gradient(
      ellipse at 18% 30%,
      rgba(42, 128, 22, 0.45),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 82% 12%,
      rgba(255, 195, 0, 0.2),
      transparent 55%
    ),
    radial-gradient(ellipse at 50% 90%, rgba(20, 66, 4, 0.6), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero__head {
  position: relative;
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(3rem, 12vw, 12rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-top: 1.5rem;
  color: var(--off);
}
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero__title .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordRise 1s var(--ease) forwards;
}
@keyframes wordRise {
  to {
    transform: translateY(0);
  }
}

.hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.hero__meta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--s4);
  align-items: end;
  margin-top: var(--s7);
}
.hero__lede {
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(250, 248, 243, 0.78);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease) 1s forwards;
}
.hero__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease) 1.2s forwards;
}
.hero__index {
  text-align: right;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(250, 248, 243, 0.6);
  line-height: 1.4;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.4s forwards;
}
.hero__index strong {
  display: block;
  color: var(--accent);
  font-weight: 500;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .hero__meta {
    grid-template-columns: 1fr;
  }
  .hero__index {
    text-align: left;
  }
}

/* Hero image strip */
.hero-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 1px;
  margin-top: var(--s5);
  height: 32vh;
  min-height: 240px;
  background: var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.hero-strip__cell {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}
.hero-strip__cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(8, 24, 2, 0.55) 100%
  );
  pointer-events: none;
}
.hero-strip__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  animation: imgZoom 2.5s var(--ease) 0.8s forwards;
  filter: saturate(1.05) contrast(1.02);
}
@keyframes imgZoom {
  to {
    transform: scale(1);
  }
}
.hero-strip__cell .label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: var(--off);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.hero-strip__cell .num {
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: var(--off);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  background: rgba(8, 24, 2, 0.45);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  z-index: 2;
}
@media (max-width: 700px) {
  .hero-strip {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .hero-strip__cell:nth-child(3) {
    display: none;
  }
  .hero-strip__cell {
    aspect-ratio: 4/5;
  }
}

/* ---------- Parallax (Cubic-style) ----------
   JS sets --py (px) on scroll; CSS composes it with any other
   transform the element naturally has via the .parallax-img variant. */
[data-parallax] {
  transform: translate3d(0, var(--py, 0), 0);
  will-change: transform;
}
/* For elements that also need an inner image scale (zoom-on-load),
   wrap with .parallax-img — keeps the scale alive. */
[data-parallax].parallax-img img {
  transform: scale(1.12);
  transition: transform 1.6s var(--ease);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s var(--ease),
    transform 1.1s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] {
  transition-delay: 0.1s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.2s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.3s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.4s;
}

.reveal-img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s var(--ease);
}
.reveal-img.is-in {
  clip-path: inset(0 0 0 0);
}
.reveal-img img {
  transform: scale(1.15);
  transition: transform 1.6s var(--ease);
}
.reveal-img.is-in img {
  transform: scale(1);
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 0;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  font-weight: 500;
  white-space: nowrap;
  color: var(--off);
  letter-spacing: -0.02em;
}
.marquee__inner {
  display: inline-flex;
  gap: 3rem;
  padding-right: 3rem;
  animation: marquee 38s linear infinite;
}
.marquee__inner > span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee__inner > span::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.6em;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s5);
  margin-bottom: var(--s6);
  align-items: end;
}
.section-head h2 {
  font-size: clamp(2.4rem, 6.5vw, 5.8rem);
  font-weight: 500;
  max-width: 18ch;
}
.section-head p {
  font-size: 1.05rem;
  max-width: 50ch;
  line-height: 1.6;
  opacity: 0.78;
}
@media (max-width: 800px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: var(--s3);
  }
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pillar {
  background: var(--bg-2);
  padding: var(--s5) var(--s3);
  position: relative;
  transition: background 0.5s var(--ease);
  color: var(--off);
}
.pillar:hover {
  background: var(--bg-4);
}
.pillar__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent);
}
.pillar__icon {
  width: 36px;
  height: 36px;
  margin-top: var(--s4);
  color: var(--accent);
}
.pillar h3 {
  font-size: 1.5rem;
  margin-top: var(--s3);
  line-height: 1.1;
  font-weight: 500;
}
.pillar p {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.7;
}

.section--beige .pillars {
  background: rgba(11, 27, 6, 0.12);
  border-color: rgba(11, 27, 6, 0.12);
}
.section--beige .pillar {
  background: var(--cream);
  color: var(--ink);
}
.section--beige .pillar:hover {
  background: var(--bone);
}
.section--beige .pillar__icon {
  color: var(--bg-4);
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* ---------- Editorial split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.split--reverse {
  direction: rtl;
}
.split--reverse > * {
  direction: ltr;
}
.split__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background: var(--bg-3);
  border-radius: var(--r-md);
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split__caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: var(--ink);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--accent);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}
.split h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 500;
}
.split p {
  margin-top: var(--s2);
  font-size: 1.02rem;
  line-height: 1.65;
  opacity: 0.82;
}
.split p + p {
  margin-top: var(--s2);
}
.split .actions {
  margin-top: var(--s4);
}
@media (max-width: 850px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
}

/* ---------- Project cards ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s4);
  row-gap: var(--s5);
}
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.project--lg {
  grid-column: span 7;
}
.project--md {
  grid-column: span 5;
}
.project--full {
  grid-column: span 12;
}

.project__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-3);
  border-radius: var(--r-md);
}
.project--md .project__media {
  aspect-ratio: 4/5;
}
.project--full .project__media {
  aspect-ratio: 21/9;
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1.4s var(--ease),
    filter 0.6s;
  filter: saturate(1.05);
}
.project:hover .project__media img {
  transform: scale(1.06);
}

.project__chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  background: var(--accent);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  z-index: 2;
}
.project__status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  font-weight: 500;
  background: rgba(8, 24, 2, 0.7);
  color: var(--off);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(250, 248, 243, 0.18);
  z-index: 2;
}
.project__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 195, 0, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 195, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 195, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 195, 0, 0);
  }
}

.project__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.6rem;
  gap: 1rem;
}
.project__loc {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}
.project__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
}
.project h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1.05;
  font-weight: 500;
}
.project p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.74;
  max-width: 56ch;
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.project__tags span {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  opacity: 0.78;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .project--lg,
  .project--md,
  .project--full {
    grid-column: span 12;
  }
}

/* ---------- Activities list ---------- */
.activities {
  border-top: 1px solid var(--rule);
}
.activity {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 60px;
  gap: var(--s3);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition:
    background 0.4s var(--ease),
    padding 0.4s var(--ease);
  cursor: none;
  position: relative;
}
.activity:hover {
  background: var(--bg-3);
  padding-left: var(--s3);
  padding-right: var(--s3);
}
.section--beige .activity:hover {
  background: var(--bone);
}
.activity__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
  padding-top: 0.4rem;
}
.activity h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 500;
  transition: color 0.4s var(--ease);
}
.activity__desc {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.78;
  max-width: 60ch;
}
.activity__arrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
  padding-top: 0.4rem;
  text-align: right;
  transition: transform 0.4s var(--ease);
}
.activity:hover .activity__arrow {
  transform: translateX(8px);
}
@media (max-width: 750px) {
  .activity {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
  }
  .activity__desc {
    grid-column: 2;
  }
  .activity__arrow {
    display: none;
  }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.stat {
  padding: var(--s5) var(--s3);
  border-right: 1px solid var(--rule);
  position: relative;
}
.stat:last-child {
  border-right: none;
}
.stat__num {
  font-family: var(--display);
  font-size: clamp(3rem, 7.5vw, 6.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.stat__num em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.stat__label {
  margin-top: var(--s2);
  font-size: 0.85rem;
  opacity: 0.72;
  line-height: 1.4;
  max-width: 22ch;
}
@media (max-width: 850px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: none;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--rule);
  }
}

/* ---------- Impact rows ---------- */
.impact-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s5);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.impact-row__kind {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--accent);
  line-height: 1;
}
.impact-row__body h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.impact-row__body p {
  font-size: 1.02rem;
  line-height: 1.7;
  opacity: 0.82;
  max-width: 65ch;
}
@media (max-width: 700px) {
  .impact-row {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }
}

/* ---------- Partner grid ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.partner {
  background: var(--bg-3);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 220px;
  transition: background 0.5s var(--ease);
  position: relative;
  color: var(--off);
}
.partner:hover {
  background: var(--bg-4);
}
.partner__num {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  opacity: 0.55;
  text-transform: uppercase;
}
.partner h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin-top: auto;
  font-weight: 500;
}
.partner__plus {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  width: 32px;
  height: 32px;
  border: 1px solid rgba(250, 248, 243, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  transition: all 0.4s var(--ease);
}
.partner:hover .partner__plus {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  transform: rotate(90deg);
}
@media (max-width: 800px) {
  .partner-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3) var(--s4);
}
.field {
  position: relative;
  padding-top: 1rem;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  position: absolute;
  top: 1.6rem;
  left: 0;
  font-size: 0.95rem;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.3s var(--ease);
  font-family: var(--sans);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 1.2rem 0 0.9rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  background: transparent;
  color: var(--off);
  transition: border-color 0.3s;
  border-radius: 0;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23ffc300' fill='none' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 12px;
  cursor: pointer;
}
.field select option {
  background: var(--bg-2);
  color: var(--off);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field input:focus + label,
.field textarea:focus + label,
.field select:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label,
.field select.has-value + label {
  top: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.field textarea {
  resize: vertical;
  min-height: 5rem;
}

.section--beige .field input,
.section--beige .field textarea,
.section--beige .field select {
  color: var(--ink);
  border-bottom-color: rgba(11, 27, 6, 0.18);
}
.section--beige .field label {
  color: rgba(11, 27, 6, 0.55);
}
.section--beige .field input:focus,
.section--beige .field textarea:focus,
.section--beige .field select:focus {
  border-color: var(--bg-4);
}
.section--beige .field input:focus + label,
.section--beige .field textarea:focus + label,
.section--beige .field select:focus + label,
.section--beige .field input:not(:placeholder-shown) + label,
.section--beige .field textarea:not(:placeholder-shown) + label,
.section--beige .field select.has-value + label {
  color: var(--bg-4);
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact details ---------- */
.contact-details {
  display: grid;
  gap: var(--s3);
}
.contact-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--rule);
}
.contact-row:last-child {
  border-bottom: none;
}
.contact-row dt {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  padding-top: 0.2rem;
}
.contact-row dd {
  font-size: 1.05rem;
}
.contact-row dd a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.3s;
}
.contact-row dd a:hover {
  color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
  background: #050f00;
  color: var(--off);
  padding: var(--s7) 0 var(--s4);
  border-top: 1px solid var(--rule);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s4);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--rule);
}
.footer h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
  opacity: 0.55;
  font-weight: 500;
}
.footer__big {
  font-family: var(--display);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  max-width: 18ch;
  letter-spacing: -0.025em;
}
.footer__big em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.footer ul {
  display: grid;
  gap: 0.55rem;
}
.footer ul a {
  opacity: 0.72;
  transition:
    opacity 0.3s,
    padding 0.3s var(--ease),
    color 0.3s;
}
.footer ul a:hover {
  opacity: 1;
  padding-left: 6px;
  color: var(--accent);
}
.footer__bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s3);
  font-size: 0.75rem;
  opacity: 0.55;
  flex-wrap: wrap;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
@media (max-width: 800px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

/* ---------- Generic page header ---------- */
.page-head {
  padding: clamp(8rem, 18vh, 12rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  left: -10%;
  top: 30%;
  width: 60%;
  height: 70%;
  background: radial-gradient(
    closest-side,
    rgba(42, 128, 22, 0.35),
    transparent 70%
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.page-head > * {
  position: relative;
  z-index: 1;
}
.page-head__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
}
.page-head h1 {
  font-size: clamp(3rem, 9.5vw, 9rem);
  font-weight: 500;
  margin-top: 0.4rem;
  line-height: 0.94;
  letter-spacing: -0.04em;
}
.page-head h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.page-head__sub {
  margin-top: var(--s4);
  max-width: 56ch;
  font-size: 1.1rem;
  line-height: 1.55;
  opacity: 0.8;
}

/* ---------- Decorative dividers ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: var(--s5) 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ---------- Misc utility ---------- */
.text-mute {
  opacity: 0.65;
}
.center {
  text-align: center;
}
.mt-3 {
  margin-top: var(--s3);
}
.mt-4 {
  margin-top: var(--s4);
}
.mt-5 {
  margin-top: var(--s5);
}
.mt-6 {
  margin-top: var(--s6);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.brand__logo {
  max-width: 170px;
}
