/* ==========================================================================
   Pharos '95 — design system
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* brand */
  --green: #77b62f;
  --green-bright: #8fd53c;
  --green-deep: #4e7d1c;
  --green-wash: #eff6e5;

  /* neutrals */
  --ink: #0e1210;
  --ink-soft: #1a201c;
  --ink-line: #2a322c;
  --slate: #5c6660;
  --slate-light: #8b948e;
  --paper: #ffffff;
  --paper-warm: #f6f7f3;
  --paper-line: #e3e6df;

  /* semantic */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--slate);
  --line: var(--paper-line);

  /* type */
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* "Álmodjunk együtt" slogan + its subtitle (home hero, CTA bands) — after xeniasolutions.com */
  --font-slogan: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-tagline: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem);
  --step-1: clamp(1.12rem, 1.04rem + 0.4vw, 1.32rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.85rem, 1.4rem + 2vw, 3rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.6vw, 4.6rem);
  --step-5: clamp(2.8rem, 1.4rem + 6vw, 6.6rem);

  /* space */
  --gutter: clamp(1.15rem, 0.7rem + 2.2vw, 2.75rem);
  --section-y: clamp(3.75rem, 2.2rem + 6vw, 8.5rem);
  --container: 1320px;
  --container-narrow: 900px;

  --radius: 4px;
  --radius-lg: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(14, 18, 16, 0.06), 0 6px 18px -8px rgba(14, 18, 16, 0.14);
  --shadow-md: 0 2px 6px rgba(14, 18, 16, 0.07), 0 22px 48px -20px rgba(14, 18, 16, 0.28);
  --shadow-lg: 0 3px 10px rgba(14, 18, 16, 0.08), 0 44px 90px -32px rgba(14, 18, 16, 0.4);

  --header-h: 84px;
  --header-h-sticky: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-sticky) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

figure, blockquote { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

/* Every responsive image is wrapped in <picture>. An inline <picture> would
   shrink-wrap its child and defeat every `… img { width: 100% }` rule below,
   so take the wrapper out of layout entirely. */
picture { display: contents; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.42em; }

strong, b { font-weight: 650; }

button { font: inherit; color: inherit; }

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

::selection { background: var(--green); color: #fff; }

/* ---------- helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.6rem + 3.4vw, 5rem); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.section--dark {
  --bg: var(--ink);
  --fg: #f2f4f0;
  --muted: #9aa39c;
  --line: var(--ink-line);
  background: var(--bg);
  color: var(--fg);
}
.section--warm { background: var(--paper-warm); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- type components ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1rem;
}
.eyebrow--muted { color: var(--muted); }

/* the signature Pharos full stop */
.dot { color: var(--green); }

.h-display { font-size: var(--step-4); }
.h-xl { font-size: var(--step-3); }
.h-lg { font-size: var(--step-2); }
.h-md { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.015em; }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}
.section--dark .lead { color: #b9c1bb; }

.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h3 { font-size: var(--step-1); margin-top: 2em; }
.prose h4 { font-size: var(--step-0); font-weight: 700; margin-top: 1.8em; letter-spacing: 0; }
.prose a { color: var(--green-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.section--dark .prose a { color: var(--green-bright); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul > li {
  position: relative;
  padding-left: 1.6em;
}
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0.15em; top: 0.62em;
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 1px;
  transform: rotate(45deg);
}

.rule {
  width: 64px; height: 3px;
  background: var(--green);
  border: 0;
  margin: 1.6rem 0 0;
}
.rule--center { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), color 0.28s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.42s var(--ease-out-expo);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: translateY(0); }
.btn .btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--outline::after { background: var(--green); }
.btn--outline:hover { --btn-fg: #fff; box-shadow: inset 0 0 0 1.5px var(--green), var(--shadow-md); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  padding-inline: 0;
  letter-spacing: 0.12em;
}
.btn--ghost::after { display: none; }
.btn--ghost { border-bottom: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 0; padding-bottom: 0.5em; }
.btn--ghost:hover { color: var(--green); border-bottom-color: var(--green); box-shadow: none; }

.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--white::after { background: var(--green); }
.btn--white:hover { --btn-fg: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; align-items: center; }

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px;
  background: linear-gradient(to bottom, rgba(14, 18, 16, 0.78) 0%, rgba(14, 18, 16, 0.45) 55%, rgba(14, 18, 16, 0) 100%);
  opacity: 1;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.header.is-stuck {
  height: var(--header-h-sticky);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--paper-line), 0 10px 34px -18px rgba(14, 18, 16, 0.3);
}
.header.is-stuck::before { opacity: 0; }
.header.is-hidden { transform: translateY(-100%); }
.header { transition: height 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.4s var(--ease); }

.header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.4rem);
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img {
  height: clamp(34px, 2.4vw, 46px);
  width: auto;
  transition: height 0.35s var(--ease), opacity 0.25s var(--ease);
}
.brand__light { display: block; }
.brand__dark { display: none; }
.header.is-stuck .brand__light { display: none; }
.header.is-stuck .brand__dark { display: block; }
.header.is-stuck .brand img { height: clamp(30px, 2vw, 38px); }

/* light-header pages (no hero image behind) */
.page--solid-header .header { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--paper-line); }
.page--solid-header .header::before { opacity: 0; }
.page--solid-header .brand__light { display: none; }
.page--solid-header .brand__dark { display: block; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.1vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__item { position: relative; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.55em 0.15em;
  font-size: 0.795rem;
  font-weight: 650;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  transition: color 0.22s var(--ease);
}
.header.is-stuck .nav__link,
.page--solid-header .nav__link { color: var(--ink); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.15em; right: 0.15em; bottom: 0.15em;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease-out-expo);
}
.nav__item:hover > .nav__link::after,
.nav__item.is-current > .nav__link::after { transform: scaleX(1); }
.nav__item:hover > .nav__link,
.nav__item.is-current > .nav__link { color: var(--green); }

.nav__caret { width: 8px; height: 8px; opacity: 0.7; transition: transform 0.28s var(--ease); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: 100%; left: -0.9rem;
  min-width: 250px;
  list-style: none;
  margin: 0;
  padding: 0.55rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0.26s;
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), padding-left 0.24s var(--ease);
}
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--green-wash); color: var(--green-deep); padding-left: 1.15rem; }

.header__tools { display: flex; align-items: center; gap: 0.7rem; flex: 0 0 auto; }

.lang {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.header.is-stuck .lang,
.page--solid-header .lang { background: var(--paper-warm); }
.lang a {
  display: grid;
  place-items: center;
  min-width: 34px;
  padding: 0.32em 0.6em;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}
.header.is-stuck .lang a,
.page--solid-header .lang a { color: var(--slate); }
.lang a[aria-current="true"] { background: var(--green); color: #fff; }
.lang a:not([aria-current="true"]):hover { background: rgba(255, 255, 255, 0.2); }
.header.is-stuck .lang a:not([aria-current="true"]):hover,
.page--solid-header .lang a:not([aria-current="true"]):hover { background: #fff; color: var(--ink); }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.34s var(--ease-out-expo), opacity 0.2s var(--ease), background-color 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.header.is-stuck .burger span,
.page--solid-header .burger span { background: var(--ink); }
body.nav-open .burger span { background: #fff; }
body.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
body.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  grid-template-rows: var(--header-h) 1fr;
  background: var(--ink);
  color: #fff;
  clip-path: circle(0% at calc(100% - 44px) 42px);
  transition: clip-path 0.62s var(--ease-out-expo);
  overflow: hidden;
  pointer-events: none;
}
body.nav-open .drawer { clip-path: circle(150% at calc(100% - 44px) 42px); pointer-events: auto; }
.drawer__body {
  overflow-y: auto;
  padding: 1rem var(--gutter) 4rem;
  overscroll-behavior: contain;
}
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list > li { border-bottom: 1px solid var(--ink-line); }
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem 0;
  background: transparent;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-align: left;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
}
body.nav-open .drawer__link { animation: drawerIn 0.5s var(--ease-out-expo) forwards; }
@keyframes drawerIn { to { opacity: 1; transform: none; } }
.drawer__link .plus {
  position: relative;
  width: 18px; height: 18px;
  flex: 0 0 auto;
}
.drawer__link .plus::before,
.drawer__link .plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: var(--green);
  transition: transform 0.34s var(--ease-out-expo);
}
.drawer__link .plus::after { transform: rotate(90deg); }
.drawer__link[aria-expanded="true"] .plus::after { transform: rotate(0deg); }
.drawer__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 0.6rem 0.1rem;
  display: grid;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s var(--ease-out-expo);
}
.drawer__sub.is-open { max-height: 420px; }
.drawer__sub a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: #b9c1bb;
  transition: color 0.2s var(--ease), transform 0.24s var(--ease);
}
.drawer__sub a:hover { color: var(--green-bright); transform: translateX(5px); }
.drawer__meta { margin-top: 2.4rem; display: grid; gap: 1rem; color: #9aa39c; font-size: 0.92rem; }
.drawer__meta a { color: #fff; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (min-width: 1181px) {
  .drawer { display: none; }
}

/* ---------- hero: video ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media video,
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(14, 18, 16, 0.92) 0%, rgba(14, 18, 16, 0.42) 42%, rgba(14, 18, 16, 0.5) 100%),
    radial-gradient(120% 80% at 20% 100%, rgba(119, 182, 47, 0.22), transparent 60%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) var(--gutter) clamp(4rem, 9vh, 7.5rem);
}
/* Home hero — after the xeniasolutions.com hero: a wide-tracked two-tone
   wordmark over an italic tagline. The two words share one line when they fit
   and stack on narrow screens. */
.hero__title {
  font-family: var(--font-tagline);
  font-size: clamp(2.4rem, 0.4rem + 4.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin: 0 0 1.3rem;
}
/* Room above the caps for Á/Ü accents, which the line mask would otherwise clip */
.hero__title.split-lines .line { display: inline-block; vertical-align: top; padding-top: 0.2em; margin-top: -0.2em; }
.hero__title .line--1 { margin-right: 0.2em; }
.hero__title .line > span {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.35));
}
.hero__title .line--1 > span {
  font-weight: 700;
  background-image: linear-gradient(180deg, #b6ec6c 0%, var(--green-bright) 30%, var(--green) 62%, var(--green-deep) 100%);
}
.hero__title .line--2 > span {
  font-weight: 300;
  background-image: linear-gradient(180deg, #ffffff 0%, #eef0ec 45%, #b9c0ba 100%);
}
.hero__title .dot { color: var(--green-bright); -webkit-text-fill-color: var(--green-bright); letter-spacing: 0; }
.hero__sub {
  font-family: var(--font-tagline);
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.85rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
  margin: 0 0 2.3rem;
}
@media (max-width: 560px) {
  .hero__title { letter-spacing: 0.08em; }
}
.hero__cue {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  z-index: 3;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hero__cue span {
  display: block;
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75), transparent);
  animation: cue 2.1s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  70%, 100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

.hero__playbtn {
  position: absolute;
  right: var(--gutter); bottom: clamp(4rem, 9vh, 7.5rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__playbtn .ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero__playbtn .ring::before {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.hero__playbtn:hover .ring { border-color: var(--green); transform: scale(1.08); }
@media (max-width: 760px) { .hero__playbtn { position: static; margin-top: 1.5rem; } }

/* ---------- hero: page banner ---------- */
.pagehero {
  position: relative;
  min-height: clamp(340px, 46vh, 520px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.pagehero__media { position: absolute; inset: 0; z-index: 0; }
.pagehero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.pagehero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(14, 18, 16, 0.9), rgba(14, 18, 16, 0.34) 60%, rgba(14, 18, 16, 0.5));
}
.pagehero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + 2.2rem) var(--gutter) clamp(2.4rem, 5vh, 4rem);
}
.pagehero__title { font-size: var(--step-4); letter-spacing: -0.032em; margin: 0; }
.pagehero__sub { margin: 1rem 0 0; max-width: 58ch; color: rgba(255, 255, 255, 0.85); font-size: var(--step-1); }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  list-style: none; margin: 0 0 1.1rem; padding: 0;
  font-size: 0.78rem; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.66);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; opacity: 0.45; }
.breadcrumb a { transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--green-bright); }

/* ---------- section headers ---------- */
.sec-head { max-width: 64ch; margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.6rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head__title { font-size: var(--step-3); }
.sec-head .lead { margin-top: 1.15rem; }

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.8rem, 1rem + 3.4vw, 4.5rem);
  align-items: center;
}
.split__text { grid-column: span 6; }
.split__media { grid-column: span 6; }
.split--reverse .split__text { order: 2; }
.split--wide-text .split__text { grid-column: span 7; }
.split--wide-text .split__media { grid-column: span 5; }
@media (max-width: 900px) {
  /* Collapse to a single column. The `--wide-text` selectors above are two
     classes deep, so they must be repeated here or they keep winning on
     specificity and the 12-column grid survives on phones. */
  .split { grid-template-columns: 1fr; }
  .split__text,
  .split__media,
  .split--wide-text .split__text,
  .split--wide-text .split__media { grid-column: 1 / -1; }
  .split--reverse .split__text { order: 0; }
}

/* ---------- figures ---------- */
.figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-warm);
}
.figure img { width: 100%; transition: transform 0.9s var(--ease-out-expo); }
.figure--zoom:hover img { transform: scale(1.05); }
.figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.figure--frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(14, 18, 16, 0.07);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.figure--accent { box-shadow: 22px 22px 0 -1px var(--green-wash); }
.section--dark .figure--accent { box-shadow: 22px 22px 0 -1px rgba(119, 182, 47, 0.16); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1.4rem, 1rem + 2vw, 3rem);
}
.stat { border-top: 2px solid var(--green); padding-top: 1.1rem; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.06em;
}
.stat__suffix { font-size: 0.5em; color: var(--green); }
.stat__label { margin-top: 0.6rem; font-size: 0.87rem; color: var(--muted); line-height: 1.45; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(1.1rem, 0.7rem + 1.5vw, 2rem);
}
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.42s var(--ease-out-expo), box-shadow 0.42s var(--ease-out-expo), border-color 0.3s var(--ease);
}
.section--dark .card { background: var(--ink-soft); border-color: var(--ink-line); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-warm); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.85s var(--ease-out-expo); }
.card:hover .card__media img { transform: scale(1.07); }
.card__icon {
  width: 54px; height: 54px;
  object-fit: contain;
  margin-bottom: 1.15rem;
}
.card__body { padding: clamp(1.3rem, 1rem + 0.8vw, 2rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card__title { font-size: var(--step-1); font-weight: 750; letter-spacing: -0.015em; }
.card__text { color: var(--muted); font-size: 0.94rem; line-height: 1.62; margin: 0; }
.card__link { margin-top: auto; padding-top: 0.6rem; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-deep); display: inline-flex; gap: 0.5em; align-items: center; }
.section--dark .card__link { color: var(--green-bright); }
/* Stretched link: the overlay lives on the anchor itself so the whole card is clickable. */
.card--link .card__link::after { content: ""; position: absolute; inset: 0; }
.card__num {
  position: absolute;
  top: 0.85rem; left: 0.95rem;
  z-index: 2;
  display: grid; place-items: center;
  min-width: 34px; height: 34px;
  padding-inline: 0.5rem;
  border-radius: 999px;
  background: rgba(14, 18, 16, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 750;
}

/* feature list (icon rows) */
.features { display: grid; gap: clamp(1.2rem, 0.8rem + 1.4vw, 2.2rem); }
.features--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.features--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.feature { display: grid; gap: 0.6rem; }
.feature__mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--green-wash);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.section--dark .feature__mark { background: rgba(119, 182, 47, 0.15); color: var(--green-bright); }
.feature__title { font-size: var(--step-0); font-weight: 700; letter-spacing: -0.01em; }
.feature__text { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.62; }

/* ---------- overlay tiles (environment section) ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(0.9rem, 0.6rem + 1vw, 1.5rem);
}
.tile {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(280px, 34vw, 400px);
  padding: clamp(1.3rem, 1rem + 1vw, 2.1rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.tile__bg { position: absolute; inset: 0; z-index: -2; }
.tile__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out-expo); }
.tile:hover .tile__bg img { transform: scale(1.07); }
.tile::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(14, 18, 16, 0.88) 0%, rgba(14, 18, 16, 0.15) 65%);
  transition: opacity 0.4s var(--ease);
}
.tile__icon { width: 42px; height: 42px; object-fit: contain; margin-bottom: 0.9rem; }
.tile__body { display: grid; gap: 0.55rem; }
.tile__title {
  font-size: var(--step-1);
  font-weight: 750;
  letter-spacing: -0.018em;
}
.tile__title::after {
  content: "";
  display: block;
  width: 34px; height: 2px;
  margin-top: 0.7rem;
  background: var(--green);
}
.tile__text { font-size: 0.95rem; line-height: 1.58; margin: 0; color: rgba(255, 255, 255, 0.88); }

/* ---------- gallery + lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 0.7rem;
}
.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-warm);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
/* One hero tile: two columns wide, two rows tall, so the module stays intact. */
.gallery__item--feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 640px) {
  .gallery__item--feature { grid-column: span 1; grid-row: span 1; aspect-ratio: 4 / 3; }
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo), filter 0.4s var(--ease);
}
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(119, 182, 47, 0.42), rgba(14, 18, 16, 0.1));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item .zoom {
  position: absolute;
  inset: auto auto 0.7rem 0.7rem;
  z-index: 2;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.gallery__item:hover .zoom { opacity: 1; transform: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(8, 10, 9, 0.96);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--gutter); color: #fff; }
.lightbox__count { font-size: 0.82rem; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(0.6rem, 4vw, 4.5rem); overflow: hidden; }
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
  animation: lbIn 0.45s var(--ease-out-expo);
}
@keyframes lbIn { from { opacity: 0; transform: scale(0.97); } }
.lightbox__caption { padding: 1rem var(--gutert, var(--gutter)) 1.6rem; text-align: center; color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; min-height: 3rem; }
.lb-btn {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.24s var(--ease), transform 0.24s var(--ease);
}
.lb-btn:hover { background: var(--green); transform: scale(1.06); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__nav--prev { left: clamp(0.4rem, 1.4vw, 1.4rem); }
.lightbox__nav--next { right: clamp(0.4rem, 1.4vw, 1.4rem); }

/* ---------- steps carousel ---------- */
.steps { position: relative; }
.steps__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 27%);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.steps__track::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .steps__track { grid-auto-columns: minmax(215px, 74%); } }
.step {
  position: relative;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  min-height: 330px;
  display: grid;
  align-items: end;
  isolation: isolate;
}
.step__bg { position: absolute; inset: 0; z-index: -2; }
.step__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out-expo); }
.step:hover .step__bg img { transform: scale(1.08); }
.step::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(14, 18, 16, 0.9) 0%, rgba(14, 18, 16, 0.05) 70%);
}
.step__body { padding: 1.4rem; color: #fff; display: grid; gap: 0.5rem; }
.step__num { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; color: var(--green-bright); }
.step__title { font-size: var(--step-1); font-weight: 750; letter-spacing: -0.015em; }

.carousel-ctl { display: flex; gap: 0.6rem; margin-top: 1.6rem; }
.carousel-ctl button {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--fg);
  transition: background-color 0.26s var(--ease), border-color 0.26s var(--ease), color 0.26s var(--ease), transform 0.26s var(--ease);
}
.carousel-ctl button:hover:not(:disabled) { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.05); }
.carousel-ctl button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---------- project tabs ---------- */
.tabs { position: relative; }
.tabs__nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.4rem);
}
.tabs__nav::-webkit-scrollbar { display: none; }
.tabs__btn {
  position: relative;
  flex: 0 0 auto;
  padding: 0.95rem 1.15rem;
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.26s var(--ease);
}
.tabs__btn::after {
  content: "";
  position: absolute;
  left: 0.6rem; right: 0.6rem; bottom: -1px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.36s var(--ease-out-expo);
}
.tabs__btn:hover { color: var(--fg); }
.tabs__btn[aria-selected="true"] { color: var(--fg); }
.tabs__btn[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__panel[hidden] { display: none !important; }
[data-tabs] { scroll-margin-top: 1rem; } /* html scroll-padding already clears the sticky header */

/* ---------- project search ---------- */
.psearch { position: relative; max-width: 820px; margin-inline: auto; z-index: 5; }
.psearch__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.psearch__bar:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(119, 182, 47, 0.14), var(--shadow-sm); }
.psearch__ico { display: grid; color: var(--slate-light); flex: none; }
.psearch__input {
  flex: 1;
  min-width: 0;
  padding: 0.75em 0.4em;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--step-0);
  color: var(--fg);
}
.psearch__input:focus { outline: none; }
.psearch__input::placeholder { color: var(--slate-light); }
.psearch__input::-webkit-search-cancel-button { cursor: pointer; }
.psearch__btn { flex: none; padding: 0.95em 1.4em; }
.psearch__btn svg { width: 17px; height: 17px; }
.psearch__results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: min(70vh, 560px);
  overflow-y: auto;
}
.psearch__results[hidden] { display: none; }
.psearch__hit {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.psearch__hit:hover, .psearch__hit:focus-visible { background: var(--green-wash); outline: none; }
.psearch__hit img, .psearch__noimg { flex: none; width: 84px; height: 60px; object-fit: cover; border-radius: var(--radius); background: var(--paper-warm); }
.psearch__txt { display: grid; gap: 0.15rem; min-width: 0; }
.psearch__cat { font-size: 0.7rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-deep); }
.psearch__title { font-family: var(--font-display); font-weight: 750; font-size: 1.02rem; letter-spacing: -0.012em; }
.psearch__snip { font-size: var(--step--1); color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.psearch__empty { padding: 1rem; color: var(--muted); }
@media (max-width: 560px) {
  .psearch__bar { padding-left: 0.85rem; }
  .psearch__btn span { display: none; }
  .psearch__btn { padding: 0.95em 1.05em; }
  .psearch__hit img, .psearch__noimg { width: 64px; height: 48px; }
}
.tabs__panel { animation: panelIn 0.55s var(--ease-out-expo); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(1.2rem, 0.8rem + 1.4vw, 2.2rem);
}
.quote {
  position: relative;
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 1.3rem;
}
.section--dark .quote { background: var(--ink-soft); border-color: var(--ink-line); }
.quote::before {
  content: "\201C";
  position: absolute;
  top: 0.1em; right: 0.6rem;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--green);
  opacity: 0.16;
}
.quote__text { font-size: var(--step-0); line-height: 1.7; margin: 0; }
.quote__by { display: grid; gap: 0.12rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.quote--portrait .quote__by {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 0.95rem;
}
.quote__photo {
  display: block;
  width: 60px; height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-warm);
}
.quote__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.quote--portrait .quote__name,
.quote--portrait .quote__meta { display: block; }
.quote__name { font-family: var(--font-display); font-weight: 750; font-size: 1rem; }
.quote__meta { font-size: 0.85rem; color: var(--muted); }

/* ---------- team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.9rem);
}
.member { display: grid; gap: 0.9rem; }
.member__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-warm);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.85s var(--ease-out-expo), filter 0.5s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05); }
.member__photo::after {
  content: "";
  position: absolute; inset: auto 0 0; height: 45%;
  background: linear-gradient(to top, rgba(14, 18, 16, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.member:hover .member__photo::after { opacity: 1; }
.member__li {
  position: absolute;
  right: 0.7rem; bottom: 0.7rem;
  z-index: 2;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), background-color 0.24s var(--ease);
}
.member:hover .member__li { opacity: 1; transform: none; }
.member__li:hover { background: var(--green); color: #fff; }
.member__li svg { width: 17px; height: 17px; }
.member__name { font-family: var(--font-display); font-size: 1.06rem; font-weight: 750; letter-spacing: -0.015em; }
.member__role { font-size: 0.85rem; color: var(--muted); margin-top: 0.1rem; }

/* ---------- press ---------- */
.press { display: grid; gap: 0.9rem; }
.press__item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: clamp(1rem, 0.6rem + 1.4vw, 2rem);
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.36s var(--ease-out-expo), box-shadow 0.36s var(--ease-out-expo), border-color 0.3s var(--ease);
}
.section--dark .press__item { background: var(--ink-soft); border-color: var(--ink-line); }
.press__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.press__thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--paper-warm); }
.press__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out-expo); }
.press__item:hover .press__thumb img { transform: scale(1.07); }
.press__title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 750; letter-spacing: -0.018em; line-height: 1.24; }
.press__src { margin-top: 0.5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-deep); }
.section--dark .press__src { color: var(--green-bright); }
.press__go {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex: 0 0 auto;
  transition: background-color 0.26s var(--ease), border-color 0.26s var(--ease), color 0.26s var(--ease);
}
.press__item:hover .press__go { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 700px) {
  .press__item { grid-template-columns: 1fr; }
  .press__go { display: none; }
}

/* ---------- jobs ---------- */
.jobs { display: grid; gap: 0.85rem; }
.job {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.2rem, 0.9rem + 1vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.36s var(--ease-out-expo), box-shadow 0.36s var(--ease-out-expo), border-color 0.3s var(--ease);
}
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.job__title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 750; letter-spacing: -0.018em; }
.job__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; margin-top: 0.8rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.28em 0.7em;
  border-radius: 999px;
  background: var(--paper-warm);
  font-size: 0.76rem;
  font-weight: 550;
  color: var(--slate);
}
.section--dark .chip { background: var(--ink-line); color: #b9c1bb; }
.job__bullets { margin: 0.9rem 0 0; padding-left: 0; list-style: none; display: grid; gap: 0.32rem; }
.job__bullets li { position: relative; padding-left: 1.2rem; font-size: 0.92rem; color: var(--muted); margin: 0; }
.job__bullets li::before { content: ""; position: absolute; left: 0.1rem; top: 0.6em; width: 6px; height: 6px; background: var(--green); border-radius: 1px; transform: rotate(45deg); }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; } }

.job-spec { display: grid; gap: clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem); }
.job-spec__group { display: grid; gap: 0.85rem; }
.job-spec__title {
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.job-spec__list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 0.45rem; }
.job-spec__list li { position: relative; padding-left: 1.5rem; margin: 0; }
.job-spec__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.52em;
  width: 8px; height: 8px;
  border: 2px solid var(--green);
  border-radius: 50%;
}

/* ---------- marquee (logos / kudos) ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: clamp(2rem, 4vw, 5rem); width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.7rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
}
.marquee__item::after { content: ""; width: 7px; height: 7px; background: var(--green); border-radius: 1px; transform: rotate(45deg); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.6rem, 1rem + 2.6vw, 3.6rem);
}
.contact-grid__form { grid-column: span 7; }
.contact-grid__aside { grid-column: span 5; }
@media (max-width: 940px) { .contact-grid__form, .contact-grid__aside { grid-column: 1 / -1; } }

.info-list { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.info-list li { margin: 0; display: grid; grid-template-columns: 42px 1fr; gap: 1rem; align-items: start; }
.info-list__ico {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: var(--green-wash);
  color: var(--green-deep);
}
.section--dark .info-list__ico { background: rgba(119, 182, 47, 0.15); color: var(--green-bright); }
.info-list__label { font-size: 0.76rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.info-list__value { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; letter-spacing: -0.015em; margin-top: 0.15rem; }
.info-list__value a:hover { color: var(--green); }

.office-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.office {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.3s var(--ease), transform 0.36s var(--ease-out-expo), box-shadow 0.36s var(--ease-out-expo);
}
.section--dark .office { background: var(--ink-soft); border-color: var(--ink-line); }
.office:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--green); }
.office__dept { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-deep); }
.section--dark .office__dept { color: var(--green-bright); }
.office__name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; margin-top: 0.5rem; }
.office__phone { display: inline-block; margin-top: 0.35rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.office__phone:hover { color: var(--green); }

.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  aspect-ratio: 16 / 9;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); transition: filter 0.5s var(--ease); }
.map:hover iframe { filter: none; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.1rem; }
.field { display: grid; gap: 0.42rem; }
.field > label { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.92em 1.05em;
  font-family: inherit;
  font-size: var(--step-0);
  color: var(--fg);
  background: var(--paper-warm);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.26s var(--ease), background-color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.section--dark .field input, .section--dark .field select, .section--dark .field textarea { background: var(--ink-soft); color: #f2f4f0; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(119, 182, 47, 0.14);
}
.section--dark .field input:focus, .section--dark .field select:focus, .section--dark .field textarea:focus { background: var(--ink); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235c6660' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1em center; background-size: 12px; padding-right: 2.6em; }

.file-field { position: relative; }
.file-field input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-field__box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05em;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper-warm);
  color: var(--muted);
  font-size: 0.92rem;
  transition: border-color 0.26s var(--ease), color 0.26s var(--ease), background-color 0.26s var(--ease);
}
.file-field:hover .file-field__box,
.file-field input:focus-visible + .file-field__box { border-color: var(--green); color: var(--green-deep); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.9rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 0.18rem 0 0; accent-color: var(--green); cursor: pointer; }
.check a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }
.section--dark .check a { color: var(--green-bright); }

.form__note {
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  background: var(--green-wash);
  color: var(--green-deep);
  font-size: 0.88rem;
  display: none;
}
.form__note.is-visible { display: block; animation: panelIn 0.4s var(--ease-out-expo); }
.form__note--error { background: #fdecec; color: #a12525; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14, 18, 16, 0.94) 0%, rgba(14, 18, 16, 0.72) 50%, rgba(119, 182, 47, 0.34) 100%);
}
.cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.6rem, 1rem + 3vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}
@media (max-width: 820px) { .cta__inner { grid-template-columns: 1fr; } }
.cta__title { font-family: var(--font-slogan); font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.8rem); font-weight: 600; line-height: 0.98; letter-spacing: 0; text-transform: uppercase; }
.cta__text { margin: 1rem 0 0; color: rgba(255, 255, 255, 0.86); max-width: 52ch; font-family: var(--font-tagline); font-size: var(--step-1); font-style: italic; font-weight: 400; line-height: 1.5; }

.socialband__inner {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.4rem;
}
.socials--lg { margin-top: 0.6rem; }
.socials--lg a { width: 54px; height: 54px; border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.socials--lg svg { width: 21px; height: 21px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #cbd2cc; padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem);
  padding-bottom: clamp(2.4rem, 1.6rem + 3vw, 4rem);
}
@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 44px; width: auto; margin-bottom: 1.3rem; }
.footer__tagline { color: #9aa39c; font-size: 0.94rem; max-width: 34ch; }
.footer__h {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.15rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.62rem; }
.footer__list li { margin: 0; }
.footer__list a { font-size: 0.92rem; color: #9aa39c; transition: color 0.22s var(--ease), transform 0.24s var(--ease); display: inline-block; }
.footer__list a:hover { color: var(--green-bright); transform: translateX(4px); }

.socials { display: flex; gap: 0.6rem; margin-top: 1.6rem; }
.socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  color: #cbd2cc;
  transition: background-color 0.26s var(--ease), border-color 0.26s var(--ease), color 0.26s var(--ease), transform 0.26s var(--ease);
}
.socials a:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

.footer__bar {
  border-top: 1px solid var(--ink-line);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #7d867f;
}
.footer__bar a:hover { color: var(--green-bright); }

/* ---------- scroll to top ---------- */
.totop {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 90;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease-out-expo), background-color 0.24s var(--ease);
}
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--ink); }

/* ---------- progress bar ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  pointer-events: none;
}

/* ---------- cookie bar ---------- */
.cookiebar {
  position: fixed;
  left: 50%; bottom: clamp(0.8rem, 2vw, 1.6rem);
  z-index: 130;
  width: min(calc(100% - 2rem), 760px);
  transform: translate(-50%, 160%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.4rem;
  align-items: center;
  padding: 1.1rem 1.3rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  color: var(--slate);
  transition: transform 0.6s var(--ease-out-expo);
}
.cookiebar.is-visible { transform: translate(-50%, 0); }
.cookiebar a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 620px) { .cookiebar { grid-template-columns: 1fr; } }

/* ---------- reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(0.95); }

/* Once the layout is a single column the side-slides read as a stack anyway,
   and the pre-reveal offset would push the page 30px wide. Rise instead. */
@media (max-width: 900px) {
  [data-reveal="left"],
  [data-reveal="right"] { transform: translateY(26px); }
}
[data-reveal="mask"] { opacity: 1; clip-path: inset(0 100% 0 0); transform: none; transition: clip-path 1.1s var(--ease-out-expo); }
[data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

.split-lines { display: block; }
.split-lines .line {
  display: block;
  overflow: hidden;
  /* Display headings run a 1.06 line-height while the font's own box is ~1.37em,
     so descenders (j, g, y) sit below the line box. The mask needs
     `overflow: hidden`, which would shear them off — so open up room below and
     take it back with a negative margin, leaving the vertical rhythm untouched. */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.split-lines .line > span {
  display: block;
  /* Exactly the span's own height plus the descender padding above — a bare
     percentage would leave the tops of the glyphs peeking out of the mask. */
  transform: translateY(calc(100% + 0.35em));
  transition: transform 0.95s var(--ease-out-expo);
  transition-delay: var(--line-delay, 0ms);
}
.split-lines.is-in .line > span { transform: none; }

/* ---------- page enter ---------- */
body { animation: pageIn 0.5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .split-lines .line > span { transform: none !important; }
  .marquee__track { animation: none; }
}

/* ---------- print ---------- */
@media print {
  .header, .drawer, .footer, .totop, .cookiebar, .progress, .hero__cue { display: none !important; }
  .hero, .pagehero { min-height: auto; color: #000; }
  .hero__scrim, .pagehero__scrim, .hero__media, .pagehero__media { display: none; }
  body { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* centred button row (used by centre-aligned sections) */
.btn-row--center { justify-content: center; }
