/* ==========================================================
   OIKOS — eco builders
   Palette: cream paper, deep forest ink, one leaf accent.
   ========================================================== */
:root {
  --paper: #f2ede1;
  --paper-2: #e8e1cf;
  --ink: #132219;
  --ink-2: #44544a;
  --moss: #2f5a3a;
  --leaf: #a9c95a;
  --deep: #0e1f17;
  --line: rgba(19, 34, 25, 0.14);
  --line-light: rgba(242, 237, 225, 0.16);

  /* Fraunces/Geist have no Greek glyphs; the second family covers Greek per-glyph */
  --serif: "Fraunces", "Noto Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Geist", "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(20px, 4vw, 64px);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--leaf); color: var(--ink); }

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: var(--deep);
}
main, .footer { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
}
.lead { font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); max-width: 44ch; }

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.4rem, 5.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.h2 em, .chapter__title em, .contact__title em, .quote em { color: var(--moss); font-weight: 300; }

/* ---------- Word split reveal ---------- */
/* No clipping mask: accents, descenders and italics overhang any line box and
   got cut off. Words hide with opacity and rise into place instead. */
.w { display: inline-block; vertical-align: top; }
.w__i {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.1s var(--ease), opacity 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.in .w__i, .is-active .w__i { opacity: 1; transform: none; }
/* Chapters swap in place: the outgoing one clears in ~0.25s and the
   incoming one waits for it, so two titles never overlap mid-scroll. */
.chapter.is-past .w__i { opacity: 0; transform: translate3d(0, -108%, 0); transition-duration: 0.4s, 0.2s; transition-delay: 0s; }
.chapter.is-future .w__i { transition-duration: 0.4s, 0.2s; transition-delay: 0s; }
.chapter.is-active .w__i { transition-delay: calc(0.28s + var(--i, 0) * 40ms); }

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--paper);
  transform: translate3d(0, 101%, 0);
  transition: transform 0.55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn span { transition: transform 0.4s var(--ease); display: inline-block; }
.btn:hover span { transform: translateX(4px); }
.btn--leaf { --bg: var(--leaf); color: var(--ink); }
.btn--ghost { border: 1px solid rgba(242, 237, 225, 0.4); color: var(--paper); backdrop-filter: blur(8px); }
.btn--ghost:hover { color: var(--ink); border-color: var(--paper); }
.btn--small { padding: 0.7em 1.15em; font-size: 14px; }
.btn--big { padding: 1.15em 1.9em; font-size: 16px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: var(--paper);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s var(--ease-in-out);
}
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__inner { width: min(320px, 76vw); display: grid; gap: 18px; justify-items: start; }
.loader__mark { width: 40px; height: 40px; color: var(--leaf); animation: breathe 2.4s var(--ease-in-out) infinite; }
.loader__word { font-family: var(--serif); font-weight: 300; font-size: 54px; letter-spacing: 0.04em; line-height: 1; }
.loader__bar { width: 100%; height: 1px; background: var(--line-light); position: relative; overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; background: var(--leaf); transform-origin: left; transform: scaleX(0); transition: transform 0.3s linear; }
.loader__meta { width: 100%; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
@keyframes breathe { 50% { transform: scale(1.12) rotate(-6deg); } }

/* ---------- Cursor ---------- */
.cursor { display: none; }
html.fine .cursor { display: block; }
.cursor__dot, .cursor__ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 150;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--leaf); }
.cursor__ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(169, 201, 90, 0.8);
  display: grid;
  place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.45s var(--ease), opacity 0.3s, border-color 0.4s;
}
.cursor__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity 0.3s; }
html.cursor-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(169, 201, 90, 0.15); }
html.cursor-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--leaf); border-color: var(--leaf); }
html.cursor-label .cursor__label { opacity: 1; }
html.cursor-lens .cursor__ring { opacity: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px var(--pad);
  color: var(--paper);
  transition: color 0.5s var(--ease), transform 0.6s var(--ease), background 0.5s var(--ease), padding 0.5s var(--ease);
}
.nav.is-light { color: var(--ink); }
.nav.is-compact { padding-top: 14px; padding-bottom: 14px; }
.nav.is-light.is-compact { background: rgba(242, 237, 225, 0.72); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; letter-spacing: 0.06em; }
.brand svg { width: 28px; height: 28px; }
.brand svg path[fill] { color: var(--leaf); fill: var(--leaf); }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 14px; }
.nav__links a { position: relative; opacity: 0.85; transition: opacity 0.3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__menu { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__menu span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.nav__menu span:first-child { top: 17px; }
.nav__menu span:last-child { top: 25px; }
body.menu-open .nav__menu span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav__menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
body.menu-open .nav { color: var(--paper); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--deep);
  display: grid;
  align-items: end;
  padding: 120px var(--pad) 56px;
  clip-path: circle(0% at calc(100% - 42px) 42px);
  transition: clip-path 0.8s var(--ease-in-out);
  pointer-events: none;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 42px) 42px); pointer-events: auto; }
.menu nav { display: grid; gap: 6px; }
.menu a { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 11vw, 4rem); color: var(--paper); line-height: 1.1; }
.menu a:last-child { color: var(--leaf); font-style: italic; }

/* ---------- Film ---------- */
.film { position: relative; height: 760vh; }
.film__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: var(--paper);
}
.film__scrim-top { position: absolute; inset: 0 0 auto 0; height: 200px; background: linear-gradient(rgba(9, 20, 14, 0.55), rgba(9, 20, 14, 0)); pointer-events: none; }
.film__scrim-bottom { position: absolute; inset: auto 0 0 0; height: 70%; background: linear-gradient(rgba(9, 20, 14, 0), rgba(9, 20, 14, 0.62) 42%, rgba(9, 20, 14, 0.9)); pointer-events: none; }
.film__sticky::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 62%; background: linear-gradient(90deg, rgba(9, 20, 14, 0.38), rgba(9, 20, 14, 0)); pointer-events: none; }
.film__sticky > * { z-index: 1; }

.chapter {
  position: absolute;
  left: var(--pad);
  bottom: calc(clamp(72px, 12vh, 132px) + var(--badge-safe, 0px));
  width: min(720px, calc(100% - var(--pad) * 2 - 140px));
  pointer-events: none;
}
.chapter.is-active { pointer-events: auto; }
.chapter__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 237, 225, 0.85);
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.2s var(--ease), transform 0.8s var(--ease);
}
.chapter__kicker::before { content: ""; width: 32px; height: 1px; background: var(--leaf); }
.chapter__kicker b { color: var(--leaf); font-weight: 500; }
.chapter__title {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0.32em 0 0.38em;
  text-wrap: balance;
}
.chapter--hero .chapter__title { font-size: clamp(2.9rem, 7vw, 7.4rem); max-width: 12ch; line-height: 0.95; }
.chapter__title em { color: var(--leaf); }
.chapter__text {
  max-width: 46ch;
  font-size: clamp(15px, 1.15vw, 18px);
  color: rgba(242, 237, 225, 0.82);
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.2s var(--ease), transform 0.9s var(--ease);
}
.chapter__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 0.2s var(--ease), transform 0.9s var(--ease); }
.chapter.is-active :is(.chapter__kicker, .chapter__text, .chapter__actions) { transition-duration: 0.6s, 0.9s; }
.chapter.is-active .chapter__kicker { opacity: 1; transform: none; transition-delay: 0.28s; }
.chapter.is-active .chapter__text { opacity: 1; transform: none; transition-delay: 0.5s; }
.chapter.is-active .chapter__actions { opacity: 1; transform: none; transition-delay: 0.65s; }

.rail {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
}
.rail__list { list-style: none; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.rail__list li { opacity: 0.38; transition: opacity 0.5s, color 0.5s, transform 0.5s var(--ease); }
.rail__list li.on { opacity: 1; }
.rail__list li.now { color: var(--leaf); transform: translateX(-6px); }
.rail__track { width: 1px; background: rgba(242, 237, 225, 0.22); position: relative; }
.rail__fill { position: absolute; inset: 0; background: var(--leaf); transform-origin: top; transform: scaleY(0); }

.hud {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(24px + var(--badge-safe, 0px));
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 237, 225, 0.6);
}
.hud__tc { margin-left: auto; font-variant-numeric: tabular-nums; }
.hud__tc span { color: var(--paper); }
.hud__skip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); padding: 8px 14px; border: 1px solid rgba(242, 237, 225, 0.3); border-radius: 999px; transition: background 0.3s, color 0.3s; }
.hud__skip:hover { background: var(--paper); color: var(--ink); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 237, 225, 0.8);
  transition: opacity 0.6s;
}
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--leaf), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: -1px; width: 3px; height: 12px; border-radius: 3px; background: var(--paper); animation: drip 1.8s var(--ease-in-out) infinite; }
@keyframes drip { from { transform: translateY(-14px); } to { transform: translateY(48px); } }
.scroll-cue.is-gone { opacity: 0; }

/* ---------- Sections (over the topographic WebGL ground) ---------- */
.section { position: relative; padding: clamp(110px, 14vw, 210px) var(--pad); }
.section__head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 88px); max-width: 980px; }

.manifesto { padding-top: clamp(140px, 18vw, 260px); }
.manifesto__text {
  margin-top: 28px;
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(1.9rem, 4.1vw, 4.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 1280px;
  text-wrap: pretty;
}
.mw { opacity: 0.13; transition: opacity 0.5s var(--ease), color 0.5s; }
.mw.on { opacity: 1; }
.mw.key { font-style: italic; color: var(--moss); }

.stats {
  margin-top: clamp(80px, 10vw, 150px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 24px 0 0; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(3rem, 6vw, 6rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: 0.42em; margin-left: 0.08em; color: var(--moss); letter-spacing: 0; }
.stat__label { font-size: 14px; color: var(--ink-2); max-width: 22ch; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative;
  border-radius: var(--radius);
  padding: clamp(26px, 2.6vw, 40px);
  background: rgba(250, 247, 239, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 1s var(--ease);
  transform-style: preserve-3d;
}
.card[data-reveal] { transform: perspective(1000px) translate3d(0, 28px, 0); }
.card[data-reveal].in { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); }
.card.is-tilting { transition: transform 0.15s linear, box-shadow 0.6s var(--ease), opacity 1s var(--ease); }
.card:hover { box-shadow: 0 30px 60px -30px rgba(19, 34, 25, 0.35); }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(169, 201, 90, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.card:hover::after { opacity: 1; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2.2rem); line-height: 1.05; letter-spacing: -0.015em; }
.card p { color: var(--ink-2); font-size: 15.5px; max-width: 42ch; }
.card__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--moss); }
.card__icon { width: 52px; height: 52px; color: var(--moss); margin-bottom: auto; }
.card__tag { margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.card--a { grid-column: span 7; grid-row: span 2; min-height: 640px; }
.card--b, .card--c { grid-column: span 5; min-height: 311px; }
.card--d { grid-column: span 12; min-height: 460px; }
.card--image { padding: 0; color: var(--paper); justify-content: flex-end; border-color: transparent; background: var(--deep); }
.card--image img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; transition: transform 1.4s var(--ease); transform: translate3d(calc((var(--mx) - 50%) * -0.04), calc((var(--my) - 50%) * -0.04), 0) scale(1.02); }
.card--image:hover img { transform: translate3d(calc((var(--mx) - 50%) * -0.04), calc((var(--my) - 50%) * -0.04), 0) scale(1.07); }
.card--image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(9, 20, 14, 0) 30%, rgba(9, 20, 14, 0.82)); }
.card--image .card__body { position: relative; z-index: 2; padding: clamp(26px, 2.6vw, 40px); display: grid; gap: 12px; }
.card--image p { color: rgba(242, 237, 225, 0.82); }
.card--image .card__num { color: var(--leaf); }
.card--d .card__body { max-width: 640px; }

.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.badges li { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(250, 247, 239, 0.5); backdrop-filter: blur(6px); }
.badges li::before { content: "✓"; color: var(--moss); margin-right: 8px; }

/* Marquee */
.marquee { position: relative; overflow: hidden; padding: 34px 0; border-block: 1px solid var(--line); background: rgba(242, 237, 225, 0.4); backdrop-filter: blur(4px); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee span { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 1; padding: 0 0.45em; white-space: nowrap; letter-spacing: -0.02em; }
.marquee i {
  width: clamp(22px, 2.6vw, 36px);
  height: clamp(22px, 2.6vw, 36px);
  flex-shrink: 0;
  background: var(--leaf);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 28c-1-12 5-20 22-24 2 14-7 23-22 24Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 28c-1-12 5-20 22-24 2 14-7 23-22 24Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Process */
.process { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.process__aside { position: sticky; top: 140px; display: grid; gap: 24px; }
.steps-wrap { position: relative; padding-left: 36px; }
.steps__line { position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.steps__line span { position: absolute; inset: 0; background: var(--moss); transform-origin: top; transform: scaleY(0); }
.steps { list-style: none; display: grid; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 38px 0; border-bottom: 1px solid var(--line); opacity: 0.3; transition: opacity 0.7s var(--ease); position: relative; }
.step::before { content: ""; position: absolute; left: -41px; top: 52px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1px solid var(--moss); transition: background 0.5s, transform 0.5s var(--ease); }
.step.is-on { opacity: 1; }
.step.is-on::before { background: var(--leaf); transform: scale(1.3); }
.step:first-child { padding-top: 0; }
.step:first-child::before { top: 14px; }
.step__n { font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 1; color: var(--moss); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.1; margin-bottom: 10px; }
.step p { color: var(--ink-2); max-width: 48ch; }
.step__time { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(169, 201, 90, 0.25); }

/* Work (horizontal) */
.work { position: relative; height: 400vh; }
.work__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 56px); }
.work__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 0 var(--pad); }
.work__head .eyebrow { margin-bottom: 18px; }
.work__head .h2 { font-size: clamp(2.2rem, 4.4vw, 4.6rem); }
.work__meta { display: grid; gap: 10px; justify-items: end; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.work__count { font-variant-numeric: tabular-nums; }
.work__bar { width: 180px; height: 1px; background: var(--line); position: relative; }
.work__bar span { position: absolute; inset: 0; background: var(--moss); transform-origin: left; transform: scaleX(0); }
.work__note { color: var(--ink-2); font-size: 10.5px; }
.work__track { display: flex; gap: clamp(18px, 2.4vw, 36px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.proj { width: clamp(280px, 34vw, 540px); flex-shrink: 0; display: grid; gap: 16px; }
.proj:nth-child(even) { margin-top: clamp(20px, 6vh, 70px); }
.proj__media { position: relative; aspect-ratio: 4 / 4.6; max-height: 58vh; border-radius: var(--radius); overflow: hidden; background: var(--deep); }
.proj__media img { position: absolute; top: 0; left: -10%; width: 120%; max-width: none; height: 100%; object-fit: cover; transform: translate3d(var(--px, 0), 0, 0) scale(1.02); transition: scale 1.2s var(--ease), filter 0.8s; will-change: transform; }
.proj:hover .proj__media img { scale: 1.06; }
.proj__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.proj__info h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.9vw, 1.9rem); letter-spacing: -0.01em; }
.proj__info span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); text-align: right; }

/* Quote */
.quote { text-align: center; display: grid; justify-items: center; gap: 36px; }
.quote__leaf { width: 56px; height: 56px; color: var(--moss); }
.quote blockquote p { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(2rem, 4.4vw, 4.4rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 20ch; margin: 0 auto; text-wrap: balance; }
.quote blockquote footer { margin-top: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.quote blockquote footer span { color: var(--ink); margin-right: 10px; }

/* Contact */
.contact {
  position: relative;
  background: var(--deep);
  color: var(--paper);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  padding: clamp(100px, 12vw, 180px) var(--pad);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 201, 90, 0.16), transparent 62%);
  pointer-events: none;
}
.contact .eyebrow { color: var(--leaf); }
.contact .lead { color: rgba(242, 237, 225, 0.72); margin-top: 24px; }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 140px); align-items: start; }
.contact__title { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(3rem, 7.4vw, 8rem); line-height: 0.95; letter-spacing: -0.03em; margin-top: 20px; }
.contact__title em { color: var(--leaf); }
.contact__list { list-style: none; margin-top: 48px; display: grid; border-top: 1px solid var(--line-light); }
.contact__list li { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.contact__list span { width: 80px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242, 237, 225, 0.5); padding-top: 4px; }
.contact__list a:hover { color: var(--leaf); }

.form { display: grid; gap: 26px; padding: clamp(26px, 3vw, 44px); border: 1px solid var(--line-light); border-radius: var(--radius); background: rgba(242, 237, 225, 0.03); backdrop-filter: blur(10px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(242, 237, 225, 0.25);
  padding: 22px 0 10px;
  resize: none;
  transition: border-color 0.4s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--leaf); }
.field span { position: absolute; left: 0; top: 22px; color: rgba(242, 237, 225, 0.55); pointer-events: none; transform-origin: left; transition: transform 0.4s var(--ease), color 0.4s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-22px) scale(0.72); color: var(--leaf); }
.field.is-invalid input { border-color: #e07a5f; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { font-size: 14px; color: rgba(242, 237, 225, 0.55); margin-bottom: 12px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(242, 237, 225, 0.25); font-size: 14px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.chips input:checked + span { background: var(--leaf); color: var(--ink); border-color: var(--leaf); }
.chips input:focus-visible + span { outline: 2px solid var(--leaf); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form__ok { padding: 16px 20px; border-radius: 14px; background: rgba(169, 201, 90, 0.16); color: var(--paper); border: 1px solid rgba(169, 201, 90, 0.4); }
.form.is-sent .form__row, .form.is-sent .field, .form.is-sent .chips, .form.is-sent .btn { display: none; }

/* Footer */
.footer { background: var(--deep); color: var(--paper); padding: 40px var(--pad) 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 40px; padding: 48px 0; border-top: 1px solid var(--line-light); }
.footer .eyebrow { color: rgba(242, 237, 225, 0.45); display: block; margin-bottom: 14px; }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__col a { width: fit-content; opacity: 0.85; transition: color 0.3s, opacity 0.3s; }
.footer__col a:hover { color: var(--leaf); opacity: 1; }
.news { position: relative; display: flex; border-bottom: 1px solid rgba(242, 237, 225, 0.3); max-width: 460px; }
.news input { flex: 1; font: inherit; font-size: 18px; color: var(--paper); background: transparent; border: 0; padding: 12px 0; }
.news input:focus { outline: none; }
.news button { font-size: 22px; padding: 0 6px; color: var(--leaf); transition: transform 0.3s var(--ease); }
.news button:hover { transform: translateX(4px); }
.news__ok { display: none; position: absolute; inset: 0; align-items: center; background: var(--deep); color: var(--leaf); }
.news.is-sent .news__ok { display: flex; }
.footer__word {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(6rem, 27vw, 30rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 20px 0 30px;
  background: linear-gradient(180deg, var(--leaf), rgba(169, 201, 90, 0.08));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242, 237, 225, 0.5); }
.footer__bottom a:hover { color: var(--leaf); }

/* No WebGL fallback */
.no-webgl #gl { background: var(--paper); }
.no-webgl .film__sticky { background: url("media/poster.jpg") center / cover no-repeat; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .card--a { grid-column: span 12; min-height: 520px; }
  .card--b, .card--c { grid-column: span 6; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 20px 28px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: block; }
  .rail { display: none; }
  .chapter { width: calc(100% - var(--pad) * 2); bottom: calc(76px + var(--badge-safe, 0px)); }
  .hud__note { display: none; }
  .process { grid-template-columns: 1fr; }
  .process__aside { position: static; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__news { grid-column: span 2; }
  .work__head { flex-direction: column; align-items: start; }
  .work__meta { justify-items: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .card--b, .card--c { grid-column: span 12; min-height: 0; }
  .card--d { min-height: 420px; }
  .card__icon { margin-bottom: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; }
  .step__n { font-size: 32px; }
  .stat__label { font-size: 13px; }
  .scroll-cue { display: none; }
  .proj { width: 78vw; }
  .proj__media { aspect-ratio: 4 / 5; }
  .hud { bottom: calc(18px + var(--badge-safe, 0px)); }
}

/* ==========================================================
   Multi-page additions
   ========================================================== */

/* ---------- Page transition curtain ---------- */
.pt {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: var(--leaf);
  transform: translate3d(0, 0, 0);
  transition: transform 0.85s var(--ease-in-out);
  pointer-events: none;
}
.pt svg { width: 46px; height: 46px; transition: opacity 0.4s, transform 0.85s var(--ease-in-out); }
.pt.is-out { transform: translate3d(0, -100%, 0); }
.pt.is-out svg { opacity: 0; transform: translateY(40px); }
.pt.is-below { transform: translate3d(0, 100%, 0); transition: none; }
.pt.is-below svg { transition: none; }

/* ---------- Nav additions ---------- */
.nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.menu { grid-template-rows: 1fr auto; }
.menu nav { align-self: end; }
.menu__foot { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: rgba(242, 237, 225, 0.55); }
.menu__foot .lang { display: inline-flex; color: var(--paper); }

/* ---------- Greek: longer words, so slightly smaller display type ---------- */
html[lang="el"] .chapter--hero .chapter__title { font-size: clamp(2.5rem, 5.4vw, 5.8rem); max-width: 15ch; }
html[lang="el"] .chapter__title { font-size: clamp(2.1rem, 4.2vw, 4.4rem); }
html[lang="el"] .page-title { font-size: clamp(2.6rem, 7vw, 7.6rem); max-width: 16ch; }
html[lang="el"] .h2 { font-size: clamp(2.1rem, 4.4vw, 4.6rem); }
html[lang="el"] .cta__title, html[lang="el"] .contact__title { font-size: clamp(2.3rem, 5.4vw, 5.8rem); }
html[lang="el"] .manifesto__text { font-size: clamp(1.7rem, 3.5vw, 3.7rem); }
html[lang="el"] .nav__links { gap: 22px; }
/* Noto Serif Display's space is narrow; with tight tracking Greek words run together */
html[lang="el"] :is(h1, h2, h3, blockquote, .manifesto__text, .chapter__title, .page-title) { word-spacing: 0.14em; }

/* ---------- Language switch ---------- */
.lang { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.lang button { position: relative; z-index: 1; padding: 6px 10px; border-radius: 999px; opacity: 0.6; transition: opacity 0.3s, color 0.3s, background 0.4s var(--ease); }
.lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { opacity: 1; background: var(--leaf); color: var(--ink); }
.nav__links + .lang { margin-left: 4px; }
@media (max-width: 860px) { .nav > .lang { display: none; } }
.menu a[aria-current="page"] { color: var(--leaf); }
.menu a:last-child { color: var(--paper); font-style: normal; }

/* ---------- Generic helpers ---------- */
.h3 { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(2rem, 3.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; }
.h3 em { color: var(--moss); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.build .row-between { margin-top: 36px; }
.build .badges { margin-top: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid currentColor; }
.link-arrow span { transition: transform 0.4s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }
.btn--outline { border: 1px solid var(--line); color: var(--ink); }
.btn--outline::before { background: var(--leaf); }
.note { margin-top: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-2); opacity: 0.8; }
.section--tight { padding-top: clamp(60px, 7vw, 110px); padding-bottom: clamp(60px, 7vw, 110px); }
.section--flush { padding-top: 0; }
code { font-family: var(--mono); font-size: 0.88em; background: rgba(169, 201, 90, 0.2); padding: 0.1em 0.4em; border-radius: 6px; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: clamp(150px, 20vh, 220px) var(--pad) clamp(56px, 7vw, 100px); display: grid; gap: 26px; }
.page-hero--compact { padding-bottom: clamp(40px, 5vw, 70px); }
.page-title {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(3rem, 9vw, 9.6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}
.page-title em { color: var(--moss); }
.page-lede { max-width: 52ch; font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-2); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.jump a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(250, 247, 239, 0.5); backdrop-filter: blur(6px); transition: background 0.3s, color 0.3s; }
.jump a:hover { background: var(--ink); color: var(--paper); }
.back { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; width: fit-content; opacity: 0.75; transition: opacity 0.3s, transform 0.4s var(--ease); }
.back:hover { opacity: 1; transform: translateX(-4px); }

/* ---------- Media frames (mask reveal + parallax) ---------- */
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--deep); }
.media-frame--wide { margin: 0 var(--pad); aspect-ratio: 16 / 8; }
.media-frame--group { aspect-ratio: 16 / 9; margin-bottom: clamp(40px, 6vw, 80px); }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--photo { aspect-ratio: 3 / 2; }
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; will-change: transform; }
[data-mask] { clip-path: inset(10% 8% 10% 8% round 32px); transition: clip-path 1.5s var(--ease); }
[data-mask].in { clip-path: inset(0 0 0 0 round var(--radius)); }

/* ---------- Placeholder (until a photo is generated) ---------- */
.ph {
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(169, 201, 90, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 201, 90, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(169, 201, 90, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 201, 90, 0.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center;
}
.ph__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 237, 225, 0.55);
}
.ph__label b { font-weight: 500; color: var(--leaf); text-transform: none; letter-spacing: 0.02em; font-size: 13px; }
.ph__label::before {
  content: "";
  width: 34px;
  height: 34px;
  background: var(--leaf);
  opacity: 0.7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='4' y='7' width='24' height='18' rx='2'/%3E%3Ccircle cx='12' cy='13' r='2.5'/%3E%3Cpath d='m4 22 7-6 5 4 4-3 8 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='4' y='7' width='24' height='18' rx='2'/%3E%3Ccircle cx='12' cy='13' r='2.5'/%3E%3Cpath d='m4 22 7-6 5 4 4-3 8 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.card--image.ph .card__body { z-index: 2; }

/* ---------- Split text block ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.split__head { display: grid; gap: 22px; position: sticky; top: 130px; }
.split__body { display: grid; gap: 22px; color: var(--ink-2); font-size: clamp(16px, 1.2vw, 18px); max-width: 62ch; }
.story__lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }

/* ---------- Values & systems ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { min-height: 340px; justify-content: flex-end; }
.value__n { font-family: var(--serif); font-style: italic; font-size: 54px; line-height: 1; color: var(--moss); margin-bottom: auto; }
.systems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.systems .card { min-height: 320px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; display: grid; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(120px, 2fr) 5fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: background 0.4s; }
.timeline li:hover { background: linear-gradient(90deg, rgba(169, 201, 90, 0.14), transparent 70%); }
.timeline__y { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1; letter-spacing: -0.03em; color: var(--moss); }
.timeline h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2vw, 2rem); margin-bottom: 6px; }
.timeline p { color: var(--ink-2); max-width: 52ch; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { display: grid; gap: 6px; align-content: start; }
.member__photo { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--deep); margin-bottom: 12px; }
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35); transition: filter 0.6s, transform 1s var(--ease); }
.member:hover .member__photo img { filter: none; transform: scale(1.05); }
.member h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.member > span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Services rows ---------- */
.services { display: grid; gap: clamp(80px, 10vw, 160px); }
.srow { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 110px); align-items: center; scroll-margin-top: 100px; }
.srow--flip .media-frame { order: 2; }
.srow__body { display: grid; gap: 22px; }
.srow__n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--moss); }
.ticks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 4px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--moss);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 28c-1-12 5-20 22-24 2 14-7 23-22 24Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 28c-1-12 5-20 22-24 2 14-7 23-22 24Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.srow__meta { display: flex; gap: 40px; padding-top: 22px; border-top: 1px solid var(--line); margin-top: 6px; }
.srow__meta dt, .facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.srow__meta dd { font-family: var(--serif); font-size: 1.5rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 1100px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 400;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 28px; line-height: 1; color: var(--moss); transition: transform 0.4s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--moss); }
.faq details p { padding: 0 0 28px; max-width: 70ch; color: var(--ink-2); animation: faqIn 0.5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Projects grid ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 40px; }
.filters button { font-size: 14px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(250, 247, 239, 0.5); backdrop-filter: blur(6px); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters__count { margin-left: auto; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 60px) 24px; align-items: start; }
.pcard { display: grid; gap: 18px; }
.pcard:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
.pcard[hidden] { display: none; }
.pcard.pop { animation: pop 0.8s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(0.98); } }
.pcard__media { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--deep); }
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__type { position: absolute; z-index: 2; left: 16px; top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgba(242, 237, 225, 0.88); color: var(--ink); backdrop-filter: blur(6px); }
.pcard__info { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.pcard__info h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.4rem); letter-spacing: -0.015em; line-height: 1.05; }
.pcard__info div span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.pcard__arrow { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.5s var(--ease); }
.pcard:hover .pcard__arrow { background: var(--leaf); border-color: var(--leaf); color: var(--ink); transform: rotate(-45deg); }

/* ---------- Project detail ---------- */
.page-hero--project .page-title { max-width: 16ch; }
.facts { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dd { font-family: var(--serif); font-size: 1.35rem; }
.story { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.story__text { display: grid; gap: 22px; color: var(--ink-2); max-width: 62ch; font-size: clamp(16px, 1.2vw, 18px); }
.story__text .ticks { margin-top: 10px; color: var(--ink); }
.story .media-frame { position: sticky; top: 110px; }
.stats--project { margin-top: 0; }
.stat__num--text { font-size: clamp(2.4rem, 4.4vw, 4.6rem); }
.next {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: start;
  margin: 0 var(--pad) clamp(80px, 10vw, 140px);
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.next__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 7vw, 7rem); line-height: 1; letter-spacing: -0.03em; transition: color 0.4s, transform 0.6s var(--ease); }
.next__title span { display: inline-block; transition: transform 0.6s var(--ease); }
.next:hover .next__title { color: var(--moss); transform: translateX(12px); }
.next:hover .next__title span { transform: translateX(16px); }
.next__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Carbon bars ---------- */
.bars { display: grid; gap: 26px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: end; }
.bar__label { grid-column: 1; grid-row: 1; font-size: 15px; color: var(--ink-2); }
.bar__val { grid-column: 2; grid-row: 1 / span 2; font-family: var(--serif); font-size: 2rem; line-height: 1; align-self: end; font-variant-numeric: tabular-nums; min-width: 3.2ch; text-align: right; }
.bar__track { grid-column: 1; grid-row: 2; height: 14px; border-radius: 999px; background: rgba(19, 34, 25, 0.08); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--ink-2); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.bar:nth-child(2) .bar__fill { transition-delay: 0.12s; }
.bar:nth-child(3) .bar__fill { transition-delay: 0.24s; background: var(--moss); }
.bar--us .bar__fill { transition-delay: 0.36s; background: var(--leaf); }
.bar--us .bar__label { color: var(--ink); font-weight: 500; }
.bar--us .bar__val { color: var(--moss); }
.bars.in .bar__fill { transform: scaleX(1); }

/* ---------- Materials ---------- */
.mats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px) 18px; }
.mat { display: grid; gap: 10px; align-content: start; }
.mat__img { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--deep); margin-bottom: 10px; }
.mat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mat:hover .mat__img img { transform: scale(1.06) rotate(0.5deg); }
.mat h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.mat p { color: var(--ink-2); font-size: 15px; max-width: 40ch; }

/* ---------- Pledge ---------- */
.pledge__list { list-style: none; margin: 28px 0 40px; border-top: 1px solid var(--line); }
.pledge__list li { display: flex; align-items: baseline; gap: clamp(20px, 4vw, 60px); padding: 22px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
.pledge__list span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--moss); }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(100px, 12vw, 180px) var(--pad);
  background: var(--deep);
  color: var(--paper);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  overflow: hidden;
}
.cta::before { content: ""; position: absolute; right: -15%; top: -40%; width: 70vw; height: 70vw; border-radius: 50%; background: radial-gradient(circle, rgba(169, 201, 90, 0.18), transparent 62%); pointer-events: none; }
.cta__inner { position: relative; display: grid; gap: 30px; max-width: 1200px; }
.cta .eyebrow { color: var(--leaf); }
.cta__title { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(2.6rem, 6.4vw, 6.8rem); line-height: 0.98; letter-spacing: -0.03em; max-width: 18ch; }
.cta__title em { color: var(--leaf); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

/* ---------- Contact page ---------- */
.contact--page { border-radius: clamp(28px, 4vw, 56px); margin: 0 var(--pad); padding: clamp(40px, 5vw, 72px); }
.contact--page .contact__grid { grid-template-columns: 7fr 5fr; align-items: start; }
.visit { display: grid; gap: 28px; }
.visit .contact__list { margin-top: 0; }
.visit .contact__list a { color: var(--leaf); }
.footer__top { grid-template-columns: 1fr 1.3fr 1fr 2fr; }
.footer__col span:not(.eyebrow) { opacity: 0.85; }

/* ---------- Prompts page ---------- */
.prompt-style { display: grid; gap: 14px; justify-items: start; padding: 24px; border: 1px dashed rgba(19, 34, 25, 0.3); border-radius: var(--radius); background: rgba(250, 247, 239, 0.55); backdrop-filter: blur(8px); max-width: 900px; }
.prompt-style p { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.prompts { display: grid; gap: 18px; }
.prompt-group { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.4vw, 3.2rem); margin-top: 40px; letter-spacing: -0.02em; }
.prompt { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(250, 247, 239, 0.6); backdrop-filter: blur(10px); align-items: start; }
.prompt__thumb { position: relative; width: 100%; max-height: 260px; border-radius: 14px; overflow: hidden; background: var(--deep); }
.prompt__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prompt__thumb .ph__label { font-size: 9px; gap: 4px; }
.prompt__thumb .ph__label b { font-size: 10px; }
.prompt__body { display: grid; gap: 14px; justify-items: start; }
.prompt__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-2); }
.prompt__meta b { color: var(--moss); font-size: 14px; }
.prompt__status { padding: 4px 10px; border-radius: 999px; background: rgba(224, 122, 95, 0.18); color: #9a3f27; }
.prompt.is-done .prompt__status { background: rgba(169, 201, 90, 0.3); color: var(--moss); }
.prompt__body p { font-size: 15.5px; max-width: 80ch; }

/* ---------- Responsive (multi-page) ---------- */
@media (max-width: 1100px) {
  .systems { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__news { grid-column: span 2; }
}
@media (max-width: 860px) {
  .split, .story, .srow, .contact--page .contact__grid { grid-template-columns: 1fr; }
  .split__head, .story .media-frame { position: static; }
  .srow--flip .media-frame { order: 0; }
  .values, .mats { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .pcard:nth-child(even) { margin-top: 0; }
  .media-frame--wide { aspect-ratio: 4 / 3; }
  .contact--page { margin: 0 12px; padding: 28px 20px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .prompt { grid-template-columns: 1fr; }
  .prompt__thumb { max-width: 260px; }
}
@media (max-width: 640px) {
  .values, .mats, .systems { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .filters__count { margin-left: 0; width: 100%; }
  .bar__val { font-size: 1.5rem; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__news { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-mask] { clip-path: none; }
}

/* Phones: no blur behind glass. It costs more than it shows on a small screen. */
@media (hover: none) {
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
