@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: 'Mokoto';
  src: url('../fonts/mokoto.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F4F0EA;
  --paper-2: #ECE6DC;
  --paper-3: #E4DDD0;
  --ink: #1F2024;
  --ink-2: #30373A;
  --muted: #6B6E72;
  --muted-2: #9B9DA1;
  --line: rgba(31, 32, 36, 0.12);
  --line-strong: rgba(31, 32, 36, 0.22);
  --accent: #0E7A66;
  --accent-bright: #16A088;
  --accent-soft: rgba(14, 122, 102, 0.08);
  --black: #14171A;
  --black-2: #1B1E22;
  --white: #FFFFFF;

  --font-sans: 'Onest', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'Onest', system-ui, -apple-system, Segoe UI, sans-serif;

  --container: 1320px;
  --gutter: 24px;
  --radius: 4px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide { max-width: 1560px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-paper { background: var(--paper); }
.section-paper-2 { background: var(--paper-2); }
.section-dark { background: var(--black); color: var(--white); }
.section-ink { background: var(--ink); color: var(--white); }

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.eyebrow-muted { color: var(--muted); }
.eyebrow-light { color: rgba(255,255,255,0.6); }

h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 500; line-height: 1.12; letter-spacing: -0.012em; margin: 0; color: inherit; }
h1 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; }
h2 { font-size: clamp(26px, 3vw, 42px); }
h3 { font-size: clamp(20px, 2vw, 28px); }
h4 { font-size: clamp(17px, 1.3vw, 20px); font-weight: 500; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.text-muted { color: var(--muted); }
.text-small { font-size: 14px; line-height: 1.6; }

/* ---------- BUTTONS / LINKS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn-bright { background: var(--accent-bright); color: var(--white); border-color: var(--accent-bright); }
.btn-bright:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-on-dark:hover { background: var(--white); color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 220ms var(--ease), color 220ms var(--ease);
}
.link-arrow:hover { gap: 14px; color: var(--accent-bright); }
.link-arrow svg { width: 14px; height: 14px; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 240ms var(--ease), border-color 240ms var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px var(--gutter);
  max-width: 1560px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  flex-shrink: 0;
  margin-right: 40px;
}
.brand__mark { width: 30px; height: 30px; color: var(--ink); flex-shrink: 0; transition: color 220ms var(--ease); }
.brand__word {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
  transition: color 220ms var(--ease);
}
.brand__f {
  font-family: 'Mokoto', var(--font-sans);
  font-size: 30px;
  line-height: 1;
  color: var(--accent-bright);
  flex-shrink: 0;
}
.brand:hover .brand__mark, .brand:hover .brand__word { color: var(--accent); }
.brand--inverse { color: var(--white); }
.brand--inverse .brand__mark { color: var(--white); }
.brand--inverse:hover .brand__mark, .brand--inverse:hover .brand__word { color: var(--accent-bright); }

.primary-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.primary-nav a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 14px 2px;
  transition: color 220ms var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 6px;
  height: 1.5px;
  background: var(--accent);
  transition: right 320ms var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { right: 0; }
.primary-nav a.is-active { color: var(--ink); }
.primary-nav a.is-active::after { right: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  padding-left: 24px;
}
.header-actions::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 18px;
  background: var(--line-strong);
  transform: translateY(-50%);
}
.header-search {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color 180ms var(--ease);
}
.header-search:hover { color: var(--ink); }
.header-search svg { width: 15px; height: 15px; }
.lang-switch {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lang-switch span { color: var(--line-strong); }
.lang-switch a { transition: color 180ms var(--ease); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { color: var(--ink); }
.header-actions .btn-sm {
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Solid header on scroll, added by JS */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: transform 220ms var(--ease); }

@media (max-width: 960px) {
  .primary-nav, .header-search, .lang-switch { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 400px) {
  .site-header__inner { padding-left: 16px; padding-right: 16px; }
  .brand { margin-right: 12px; }
  .header-actions { gap: 8px; padding-left: 10px; }
  .header-actions .btn-sm { padding: 8px 12px; }
  .header-actions .btn-bright { display: none; }
}

/* ---------- NAV DROPDOWNS ---------- */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; }
.nav-caret { width: 11px; height: 11px; margin-left: 5px; transition: transform 240ms var(--ease); }
.nav-item:hover > a .nav-caret, .nav-item.is-open > a .nav-caret { transform: rotate(180deg); }
.mega, .nav-dropdown {
  position: absolute;
  top: 100%; left: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 26px 64px -22px rgba(20, 23, 26, 0.28);
  padding: 24px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
  z-index: 70;
}
.mega { display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 32px; }
.nav-dropdown { display: flex; flex-direction: column; min-width: 230px; }
.nav-item:hover .mega, .nav-item:hover .nav-dropdown,
.nav-item.is-open .mega, .nav-item.is-open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__label { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 14px; }
.mega a, .nav-dropdown a { display: block; padding: 8px 0; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink-2); font-weight: 500; }
.mega a::after, .nav-dropdown a::after { display: none; }
.mega a:hover, .nav-dropdown a:hover { color: var(--accent); padding-left: 5px; }

@media (max-width: 960px) {
  .primary-nav.is-open .nav-item { flex-direction: column; align-items: flex-start; width: 100%; }
  .primary-nav.is-open .nav-item > a { width: 100%; }
  .primary-nav.is-open .mega, .primary-nav.is-open .nav-dropdown {
    position: static; margin-top: 0; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 4px 0 8px 14px; display: none; grid-template-columns: 1fr;
  }
  .primary-nav.is-open .nav-item.is-open .mega,
  .primary-nav.is-open .nav-item.is-open .nav-dropdown { display: flex; flex-direction: column; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: stretch;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.10) 28%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.62) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 55%);
}
.hero__inner {
  width: 100%;
  padding: 64px var(--gutter) 48px;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  align-self: flex-start;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__title {
  margin-top: auto;
  max-width: 22ch;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.06;
  text-wrap: balance;
}
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.link-arrow--light {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.6);
}
.link-arrow--light:hover { color: var(--accent-bright); border-bottom-color: var(--accent-bright); }
.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 220ms var(--ease), transform 220ms var(--ease);
}
.hero__scroll svg { width: 18px; height: 18px; animation: scrollPulse 1.8s ease-in-out infinite; }
.hero__scroll:hover { color: var(--white); transform: translateY(2px); }
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* META TICKER under hero */
.hero-ticker {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.hero-ticker__inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.hero-ticker__inner strong {
  color: var(--white);
  font-weight: 600;
  margin-right: 4px;
}
.hero-ticker .dot { color: var(--accent-bright); }

/* ---------- SECONDARY HERO ---------- */
.page-hero {
  background: var(--paper);
  padding: 120px var(--gutter) 80px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  max-width: 22ch;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--accent); }

/* ---------- SPLIT BLOCK ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__body h2, .split__body h3 { margin-bottom: 24px; }
.split__body > ul:not([class]) {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split__media { order: 2; }
}

/* ---------- TYPO LIST (services/specialisms) ---------- */
.typo-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px 80px;
  align-items: start;
}
.typo-grid .eyebrow { display: block; margin-bottom: 24px; }
.typo-list {
  list-style: none;
  margin: 0; padding: 0;
}
.typo-list li {
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
  border-bottom: 1px solid transparent;
}
.typo-list li:not(:has(a)),
.split__body > ul:not([class]) li {
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.typo-list li:not(:has(a)):last-child,
.split__body > ul:not([class]) li:last-child { border-bottom: 0; }
.typo-list a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
  position: relative;
  transition: color 220ms var(--ease), padding-left 220ms var(--ease);
}
.typo-list a::after {
  content: ""; width: 0; height: 2px; background: var(--accent);
  transition: width 260ms var(--ease);
  display: inline-block;
}
.typo-list a:hover { color: var(--accent); padding-left: 6px; }
.typo-list a:hover::after { width: 28px; }
@media (max-width: 880px) {
  .typo-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- PROJECTS GRID ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 32px;
}
.projects-grid--three { grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }
.project-tile {
  display: block;
  color: var(--ink);
}
.project-tile__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--paper-2);
}
.project-tile__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease), filter 400ms var(--ease);
}
.project-tile:hover .project-tile__media img { transform: scale(1.04); filter: brightness(1.04); }
.project-tile__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 2px;
}
.project-tile__tags {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 10px;
}
.project-tile__tags > span { position: relative; }
.project-tile__tags > span + span::before {
  content: "|"; margin-right: 14px; color: var(--line-strong);
}
.project-tile__title {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.project-tile:hover .project-tile__title { color: var(--accent); }
@media (max-width: 880px) {
  .projects-grid, .projects-grid--three { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- FILTER BAR ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.filter-bar__label { color: var(--muted); margin-right: 4px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip svg { width: 10px; height: 10px; }
.filter-bar__view {
  margin-left: auto;
  display: inline-flex; gap: 8px;
}

/* ---------- DARK BAND ---------- */
.dark-band {
  background: var(--black);
  color: var(--white);
  padding: 96px var(--gutter);
  border-radius: 0;
}
.dark-band__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.dark-band h2 { font-size: clamp(26px, 3vw, 42px); margin-bottom: 12px; max-width: 16ch; }
.dark-band p { color: rgba(255,255,255,0.78); max-width: 50ch; }
@media (max-width: 880px) {
  .dark-band__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- CARD GRID (about + case) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.feature-card {
  border-radius: 6px;
  padding: 56px 48px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.feature-card { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.feature-card.is-dark { background: var(--ink); color: var(--white); border-color: transparent; }
.feature-card.is-accent { background: var(--accent); color: var(--white); border-color: transparent; }
.feature-card.is-paper { background: var(--paper); color: var(--ink); border-color: transparent; }
.feature-card h3 { font-size: clamp(22px, 2.2vw, 30px); max-width: 20ch; margin-bottom: 20px; line-height: 1.15; }
.feature-card p { color: var(--ink-2); max-width: 44ch; }
.feature-card.is-dark p, .feature-card.is-accent p { color: rgba(255,255,255,0.82); }
@media (max-width: 880px) {
  .card-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 320px; padding: 36px 28px; }
}

/* ---------- STATS STRIP ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__cell {
  padding: 40px 24px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.stats__cell:last-child { border-right: 0; }
.stats__num {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
  overflow-wrap: break-word;
}
.stats__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__cell:nth-child(2n) { border-right: 0; }
  .stats__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- META STRIP (project page) ---------- */
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-strip > span { display: inline-flex; gap: 8px; }
.meta-strip strong { color: var(--ink); font-weight: 500; }

/* ---------- FULL BLEED ---------- */
.full-bleed { width: 100%; }
.full-bleed img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.image-pair img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 880px) { .image-pair { grid-template-columns: 1fr; } }

/* ---------- MEDIA ROTATOR ---------- */
.media-rotator { position: relative; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; }
.media-rotator img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms var(--ease); }
.media-rotator img.is-active { opacity: 1; }
.media-rotator__dots { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; z-index: 2; }
.media-rotator__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: background 300ms var(--ease); }
.media-rotator__dots span.is-active { background: var(--white); }
.rotator-caption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); min-height: 1.4em; }

/* ---------- FOMAT BUTTON ---------- */
.btn-fomat { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-fomat:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ---------- CAROUSEL ---------- */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 4px; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track img { flex: 0 0 auto; width: min(80%, 780px); aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; scroll-snap-align: center; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.92); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px -10px rgba(20,23,26,0.4); z-index: 3; transition: background 200ms var(--ease), transform 200ms var(--ease); }
.carousel__btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel__btn svg { width: 20px; height: 20px; color: var(--ink); }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }
@media (max-width: 700px) { .carousel__track img { width: 88%; } .carousel__btn { width: 40px; height: 40px; } }
.carousel--logos .carousel__track { gap: 28px; align-items: center; }
.carousel--logos .carousel__track img {
  width: 190px; height: 84px; aspect-ratio: auto; object-fit: contain;
  border-radius: 0; padding: 0 12px; flex-shrink: 0;
  filter: grayscale(1); opacity: 0.6;
  transition: filter 260ms var(--ease), opacity 260ms var(--ease);
}
.carousel--logos .carousel__track img:hover { filter: grayscale(0); opacity: 1; }
@media (max-width: 700px) { .carousel--logos .carousel__track img { width: 140px; height: 64px; } }

/* ---------- HERO SLOGAN ---------- */
.hero__slogan { margin-top: auto; max-width: none; }
.hero__slogan-text {
  color: var(--white);
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 36px rgba(0, 0, 0, 0.45);
}

/* ---------- TOOLTIP ---------- */
.has-tip { position: relative; }
.has-tip::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 230px; white-space: normal;
  background: var(--ink); color: var(--white);
  font-size: 12.5px; line-height: 1.5; font-weight: 400; letter-spacing: 0; text-transform: none; text-align: left;
  padding: 12px 14px; border-radius: 9px;
  box-shadow: 0 18px 44px -16px rgba(20, 23, 26, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
  z-index: 90; pointer-events: none;
}
.has-tip::before {
  content: ""; position: absolute; top: calc(100% + 4px); right: 24px;
  border: 7px solid transparent; border-bottom-color: var(--ink);
  opacity: 0; visibility: hidden;
  transition: opacity 200ms var(--ease), visibility 200ms;
  z-index: 91; pointer-events: none;
}
.has-tip:hover::after, .has-tip:focus-visible::after { opacity: 1; visibility: visible; transform: translateY(0); }
.has-tip:hover::before, .has-tip:focus-visible::before { opacity: 1; visibility: visible; }

/* ---------- PROCESS STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.steps__nav {
  position: sticky;
  top: 100px;
  display: flex; flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.steps__nav button {
  text-align: left;
  padding: 14px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  display: flex; gap: 16px;
  transition: color 200ms var(--ease);
}
.steps__nav button:hover, .steps__nav button.is-active { color: var(--ink); }
.steps__nav button.is-active::before { content: "→"; color: var(--accent); }
.steps__panel { display: none; }
.steps__panel.is-active { display: block; animation: fadeIn 380ms var(--ease); }
.steps__panel h3 { margin-bottom: 16px; }
.steps__panel p { color: var(--ink-2); max-width: 56ch; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps__nav { position: static; flex-direction: row; overflow-x: auto; }
  .steps__nav button { white-space: nowrap; padding: 12px 14px; border-bottom: 0; border-bottom: 2px solid transparent; }
  .steps__nav button.is-active { border-bottom-color: var(--accent); }
}

/* ---------- LOGO STRIP ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
}
.logo-strip span {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 880px) {
  .logo-strip { grid-template-columns: repeat(2, 1fr); gap: 0; }
}

/* ---------- PARTNER LOGOS GRID ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.partner-logo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}
.partner-logo:hover { border-color: var(--ink); transform: translateY(-2px); }
.partner-logo svg, .partner-logo img { max-width: 100%; max-height: 56px; height: auto; }
@media (max-width: 880px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- FILTER DROPDOWN ---------- */
.filter-chip-wrap { position: relative; display: inline-block; }
.filter-chip.is-open { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter-chip.is-open svg { transform: rotate(180deg); }
.filter-chip svg { transition: transform 220ms var(--ease); }
.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.18);
  padding: 8px 0;
  display: none;
  z-index: 30;
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: normal;
}
.filter-chip-wrap.is-open .filter-dropdown { display: block; animation: dropIn 220ms var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.filter-dropdown button {
  display: flex; align-items: center;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.filter-dropdown button:hover { background: var(--paper); color: var(--ink); }
.filter-dropdown button.is-selected { color: var(--accent); }
.filter-dropdown button.is-selected::after {
  content: "✓"; margin-left: auto; color: var(--accent);
}

.filter-bar__view .btn-sm { padding: 8px 14px; }
.filter-bar__view .btn-sm.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- ACCORDION (FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  gap: 24px;
  transition: color 200ms var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-size: 22px; line-height: 1; font-weight: 400;
  color: var(--accent); transition: transform 240ms var(--ease);
  flex-shrink: 0;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion summary:hover { color: var(--accent); }
.accordion .answer { padding-top: 14px; color: var(--ink-2); max-width: 70ch; }

/* ---------- LEGAL / LONG-FORM ---------- */
.prose { max-width: 72ch; color: var(--ink-2); }
.prose h2 { font-size: clamp(22px, 2vw, 28px); margin-top: 48px; margin-bottom: 16px; color: var(--ink); }
.prose h3 { font-size: clamp(18px, 1.4vw, 21px); margin-top: 32px; margin-bottom: 12px; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 20px; }
.prose ul li, .prose ol li { margin-bottom: 6px; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.prose details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.prose details > summary { cursor: pointer; font-weight: 500; color: var(--ink); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.prose details > summary::-webkit-details-marker { display: none; }
.prose details > summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; flex-shrink: 0; transition: transform 240ms var(--ease); }
.prose details[open] > summary::after { transform: rotate(45deg); }
.prose details > summary + * { margin-top: 14px; }

/* ---------- VACANCIES LIST ---------- */
.vacancy-list { border-top: 1px solid var(--line); }
.vacancy-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 220ms var(--ease);
}
.vacancy-row:hover { padding-left: 8px; }
.vacancy-row h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  color: var(--ink);
  transition: color 200ms var(--ease);
}
.vacancy-row:hover h3 { color: var(--accent); }
.vacancy-row__meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.vacancy-row .btn { white-space: nowrap; }
@media (max-width: 720px) {
  .vacancy-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
}

/* ---------- CARDS GRID (3-up) ---------- */
.card-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .card-grid--3 { grid-template-columns: 1fr; }
}

/* ---------- TICKER ---------- */
.ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ticker strong { font-family: var(--font-sans); font-size: 22px; color: var(--ink); margin-right: 6px; }

/* ---------- FORM ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field--full { grid-column: 1 / -1; }
.form label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.form input, .form textarea, .form select {
  font: inherit;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 200ms var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 120px; }
@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.78);
  padding: 80px var(--gutter) 32px;
}
.site-footer__inner {
  max-width: 1560px;
  margin: 0 auto;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col h4 {
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col p, .footer-col a:not(.brand) { color: rgba(255,255,255,0.72); display: block; line-height: 1.7; font-size: 14px; }
.footer-col a.brand { display: inline-flex; }
.footer-col a:hover { color: var(--white); }
.footer-col .accent-link { color: var(--accent-bright); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__bottom a { color: rgba(255,255,255,0.6); margin-right: 18px; }
.site-footer__bottom a:hover { color: var(--white); }
@media (max-width: 980px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

/* ---------- BACK TO TOP ---------- */
.scroll-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  z-index: 40;
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--accent); transform: translateY(-2px); }

/* ---------- UTILS ---------- */
.center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 64px 0; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; } .mb-4 { margin-bottom: 64px; }

/* ---------- REVEAL ANIM (JS-driven, FOUC-safe) ---------- */
.js-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); }
[data-reveal] { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js-ready [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

/* ---------- CALCULATOR ---------- */
.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin-top: 40px;
}
@media (max-width: 640px) {
  .calc-form { grid-template-columns: 1fr; }
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.calc-field label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
}
.calc-field input,
.calc-field select {
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--border, #d1d5db);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface, #fff);
  color: var(--text, #111);
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--accent, #0d9488);
}
.calc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
}
.calc-result {
  margin-top: 48px;
  padding: 40px;
  background: var(--surface-alt, #f9fafb);
  border-radius: 6px;
  border: 1.5px solid var(--border, #d1d5db);
}
.calc-result__total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-result__num {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent, #0d9488);
}
.calc-result__unit {
  font-size: 1.25rem;
  color: var(--text-muted, #6b7280);
}
.calc-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 640px) {
  .calc-breakdown { grid-template-columns: 1fr; }
}
.calc-breakdown__cell {
  padding: 20px;
  background: var(--surface, #fff);
  border-radius: 4px;
  border: 1px solid var(--border, #d1d5db);
}
.calc-breakdown__label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
}
.calc-breakdown__value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 6px;
  color: var(--text, #111);
}
.calc-note {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
}
.calc-divider {
  border: none;
  border-top: 1.5px solid var(--border, #d1d5db);
  margin: 40px 0;
}
