/* ============================================================
   NGOBOYI GROUP — Design System
   Editorial / Pan-African look inspired by Masawara Group
   Palette: gold #D4AE30 · ink #1D252A · black #000000
            paper #FFFFFF · paper-2 #F7F6F2 · muted #6B7075
   Type:    Montserrat (display + body) · Marcellus (eyebrows)
   ============================================================ */

:root {
  --gold: #D4AE30;
  --gold-dark: #B8952A;
  --ink: #1D252A;
  --slate: #444444;
  --muted: #6B7075;
  --paper: #FFFFFF;
  --paper-2: #F7F6F2;
  --black: #000000;
  --line: rgba(29, 37, 42, 0.14);
  --line-soft: rgba(29, 37, 42, 0.10);
  --line-dark: rgba(255, 255, 255, 0.18);
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-eyebrow: "Marcellus", Georgia, "Times New Roman", serif;
  --container: 1180px;
  --header-h: 86px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.h-xl { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.02em; }
.h-lg { font-size: clamp(1.9rem, 3.9vw, 2.85rem); letter-spacing: -0.018em; }
.h-md { font-size: clamp(1.45rem, 2.5vw, 1.85rem); }
.h-sm { font-size: clamp(1.08rem, 1.6vw, 1.24rem); line-height: 1.4; }

.lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--slate); line-height: 1.85; font-weight: 400; }

.em-accent { font-style: normal; font-weight: inherit; color: inherit; }

.eyebrow {
  display: block;
  font-family: var(--font-eyebrow);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
  line-height: 1.4;
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--paper); }
.on-dark .lead { color: rgba(255, 255, 255, 0.72); }
.on-dark .eyebrow { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-dark); }

.btn-ghost { border-color: rgba(29, 37, 42, 0.3); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--black); }

.btn-outline { border-color: rgba(29, 37, 42, 0.3); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-light { border-color: rgba(255, 255, 255, 0.42); color: var(--paper); }
.btn-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 14px 34px -30px rgba(0, 0, 0, 0.5); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 34px; width: auto; }

.nav ul { display: flex; align-items: center; gap: 6px; }
.nav a.nav-link {
  display: inline-block;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav a.nav-link:hover, .nav a.nav-link.active { color: var(--gold); }
.nav .has-sub { position: relative; }
.nav .sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav .has-sub:hover .sub,
.nav .has-sub:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav .sub a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  color: var(--ink);
  transition: background 0.2s ease;
}
.nav .sub a:hover { background: var(--paper-2); }
.nav .sub .sub-title { font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; }
.nav .sub .sub-desc { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.nav .sub a:hover .sub-title { color: var(--gold); }

.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 13px 26px; font-size: 0.68rem; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  z-index: 120;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.nav-open .burger span:nth-child(2) { opacity: 0; }
.site-header.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (split, monochrome) ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-start;
  padding: calc(var(--header-h) + 50px) 0 100px;
  background: var(--black);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 60%;
  background-color: var(--black);
  background-size: auto 100%;
  background-position: center center;
  background-repeat: no-repeat;
  filter: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.2) 54%, #000 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { width: 48%; max-width: 560px; margin: clamp(24px, 5vh, 64px) 0 0 52%; }
.hero h1 { color: var(--paper); margin-bottom: 26px; }
.hero .lead { max-width: 540px; margin-bottom: 42px; color: rgba(255, 255, 255, 0.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-note {
  margin-top: 58px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}
.hero-note .sep { margin: 0 12px; opacity: 0.5; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--paper); }
.hero .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 9vw, 132px) 0; }
.section-tight { padding: clamp(60px, 7vw, 104px) 0; }
.section-light, .section-cream { background: var(--paper); border-top: 1px solid var(--line-soft); }
.section-navy { background: var(--black); }

.section-head { max-width: 760px; margin-bottom: clamp(46px, 6vw, 72px); }
.section-head.center { margin-inline: 0; text-align: left; }
.section-head p { margin-top: 20px; }

/* ---------- Intro split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(44px, 6vw, 90px);
  align-items: center;
}
.split .stack { display: grid; gap: 24px; }
.split .stack p { color: var(--slate); }
.split .stack .btn { justify-self: start; }

.media-frame {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  filter: grayscale(100%) contrast(1.04);
}

/* ---------- Cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }

.card {
  background: var(--paper);
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-radius: 0;
  padding: 48px 34px;
  transition: background 0.25s ease;
}
.grid-4 .card:last-child { border-right: 0; }
.grid-4 .card:hover { background: var(--paper-2); }
.card .icon {
  width: 54px;
  height: 54px;
  background: var(--gold);
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  color: var(--ink);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 14px; }
.card p { font-size: 0.94rem; color: var(--muted); }

/* standalone card (grid-3 pages) */
.grid-3 > .card {
  border: 1px solid var(--line-soft);
}
.grid-3 > .card:hover { border-color: var(--gold); }

/* ---------- Check list ---------- */
.check-list { display: grid; }
.check-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--slate);
}
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list .tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border-radius: 0;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.check-list .tick svg { width: 11px; height: 11px; }
.on-dark .check-list .tick { border-color: var(--gold); }
.on-dark .check-list li { color: rgba(255, 255, 255, 0.78); border-color: var(--line-dark); }

/* ---------- Subsidiaries showcase ---------- */
.sub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.sub-card:hover { border-color: var(--gold); }
.sub-card .logo-panel {
  height: 190px;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.sub-card .logo-panel img { height: 54px; width: auto; }
.sub-card .body { padding: 32px 30px 36px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sub-card .body p { color: var(--muted); font-size: 0.94rem; }
.sub-card .tags { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 10px; }
.sub-card .tags span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.sub-card .link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 6px;
  transition: color 0.2s ease;
}
.sub-card .link-more:hover { color: var(--gold); }
.sub-card .link-more svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.sub-card:hover .link-more svg { transform: translateX(3px); }

.sub-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; }
.sub-card .sub-links .link-more { margin-top: 0; }
.link-ext {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s ease;
}
.link-ext:hover { color: var(--gold-dark); }
.link-ext svg { width: 13px; height: 13px; }
.sub-card .logo-panel a { display: grid; place-items: center; width: 100%; height: 100%; }

/* ---------- Vision / aim band ---------- */
.aim { background: var(--black); }
.aim blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 940px;
}
.aim blockquote .accent { color: var(--gold); font-style: normal; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: clamp(50px, 6vw, 84px);
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line-dark);
}
.stat .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.stat .label {
  display: block;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.quote-strip { max-width: 900px; }
.quote-strip blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 700;
}
.quote-strip blockquote .accent { color: var(--gold); font-style: normal; }
.on-dark .quote-strip blockquote { color: var(--paper); }
.quote-strip .attrib {
  margin-top: 28px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.on-dark .quote-strip .attrib { color: rgba(255, 255, 255, 0.5); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--black);
  border-radius: 0;
  padding: clamp(64px, 8vw, 110px) clamp(28px, 6vw, 84px);
  text-align: left;
}
.cta-band h2 { color: var(--paper); max-width: 720px; margin-bottom: 20px; }
.cta-band p { color: rgba(255, 255, 255, 0.7); max-width: 560px; margin-bottom: 42px; }
.cta-band .eyebrow { color: var(--gold); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 clamp(72px, 8vw, 116px);
  background: var(--black);
  overflow: hidden;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--paper); max-width: 820px; }
.page-hero .lead { max-width: 660px; margin-top: 24px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.page-hero .crumbs a:hover { color: var(--gold); }
.page-hero .crumbs .sep { opacity: 0.4; }

/* ---------- Subsidiary hero panel ---------- */
.sub-hero {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(44px, 6vw, 90px);
  align-items: center;
}
.sub-hero-logo {
  background: var(--paper);
  border-radius: 0;
  padding: clamp(44px, 5vw, 68px);
  display: grid;
  place-items: center;
}
.sub-hero-logo img { max-height: 104px; width: auto; }
.sub-hero-logo.no-panel { background: transparent; padding: 0; }
.sub-hero-logo.no-panel img { max-height: 92px; filter: brightness(0) invert(1); }

/* ---------- Values (editorial rows) ---------- */
.value-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 34px 34px 10px 0;
}
.grid-2 > .value-card { padding-right: 44px; }
.grid-2 > .value-card:nth-child(even) { padding-left: 44px; border-left: 1px solid var(--line); }
.value-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.value-card p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Operating model ---------- */
.model-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line-dark); }
.model-step {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 40px 36px;
}
.model-step:nth-child(even) { border-right: 0; }
.model-step:nth-last-child(-n+2) { border-bottom: 0; }
.model-step .step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 18px;
}
.model-step h3 { font-size: 1.14rem; margin-bottom: 12px; }
.model-step p { color: rgba(255, 255, 255, 0.68); font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.contact-info-card {
  background: var(--black);
  color: var(--paper);
  border-radius: 0;
  padding: clamp(36px, 4vw, 50px);
  display: grid;
  gap: 34px;
}
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item .ci-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 0;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.contact-item .ci-icon svg { width: 19px; height: 19px; }
.contact-item h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
  font-family: var(--font-body);
}
.contact-item p, .contact-item a { color: rgba(255, 255, 255, 0.85); font-size: 0.96rem; line-height: 1.7; }
.contact-item a:hover { color: var(--gold); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  padding: clamp(36px, 4vw, 50px);
}
.contact-form h2 { margin-bottom: 12px; }
.contact-form > p { color: var(--muted); margin-bottom: 34px; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 9px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7075' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-group textarea { min-height: 132px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 16px; }

.map-wrap {
  margin-top: 72px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(100%); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--black);
  color: rgba(255, 255, 255, 0.66);
  padding: clamp(72px, 9vw, 112px) 0 0;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(32px, 5vw, 56px);
  padding-left: clamp(150px, 18vw, 260px);
  padding-bottom: clamp(56px, 7vw, 84px);
}
.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; margin-bottom: 24px; }
.footer-brand p { font-size: 0.92rem; max-width: 310px; }

.footer-col h4 {
  color: var(--paper);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 600;
}
.footer-col ul { display: grid; gap: 13px; }
.footer-col a {
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold); }
.footer-col li p { font-size: 0.9rem; line-height: 1.75; text-transform: none; }
.footer-zebra::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.18) 52%, #000 100%);
}
.footer-zebra {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 0;
  width: clamp(150px, 18vw, 260px);
  height: 100%;
  overflow: hidden;
}
.footer-zebra img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  opacity: 0.58;
  filter: saturate(0.78) contrast(1.08);
}

.footer-news {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: clamp(36px, 4vw, 52px) 0;
  padding-left: clamp(150px, 18vw, 260px);
  border-top: 1px solid var(--line-dark);
}
.footer-news h4 {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.footer-news p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); max-width: 520px; }
.news-form { display: flex; gap: 12px; align-items: stretch; }
.news-form input {
  min-width: 280px;
  padding: 15px 18px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--paper);
  font-family: inherit;
  font-size: 0.92rem;
}
.news-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.news-form input:focus { outline: none; border-color: var(--gold); }

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-dark);
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom .tagline { color: rgba(255, 255, 255, 0.6); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 0;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-dark); }
.to-top svg { width: 17px; height: 17px; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal-left.in, .reveal-right.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) 28px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
body.nav-open .mobile-nav { transform: translateX(0); }
body.nav-open { overflow: hidden; }
.mobile-nav ul { display: grid; gap: 2px; }
.mobile-nav > .container > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav .m-link {
  display: block;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.mobile-nav .m-sub { padding: 2px 0 20px 18px; display: grid; gap: 12px; }
.mobile-nav .m-sub a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.mobile-nav .m-sub a:hover { color: var(--gold); }
.mobile-nav .btn { margin-top: 30px; width: 100%; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 .card:nth-child(2) { border-right: 0; }
  .grid-4 .card:nth-child(1),
  .grid-4 .card:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .split, .sub-hero, .contact-grid { grid-template-columns: 1fr; }
  .sub-hero { gap: 44px; }
  .sub-hero-logo { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav ul { display: none; }
  .burger { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 860px) {
  .hero { min-height: 0; align-items: center; background: var(--ink); padding: calc(var(--header-h) + 70px) 0 80px; }
  .hero-bg { width: 100%; background-size: auto 100%; background-position: center top; }
  .hero::after { background: linear-gradient(180deg, rgba(29, 37, 42, 0.72), rgba(29, 37, 42, 0.9)); }
  .hero-inner { width: auto; max-width: none; margin: 0; }
  .hero h1 { color: var(--paper); }
  .hero .lead { color: rgba(255, 255, 255, 0.78); }
  .hero-note { color: rgba(255, 255, 255, 0.6); }
  .hero .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--paper); }
  .hero .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .stats { grid-template-columns: 1fr; gap: 34px; }
  .model-steps { grid-template-columns: 1fr; }
  .model-step { border-right: 0; }
  .model-step:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .model-step:last-child { border-bottom: 0; }
  .footer-news { grid-template-columns: 1fr; }
  .footer-grid { padding-left: 0; }
  .footer-news { padding-left: 0; }
  .footer-zebra { width: 125px; height: 260px; opacity: 0.5; }
  .footer-zebra::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0.32) 48%, #000 100%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 32%); }
  .footer-zebra img { object-position: 70% center; }
  .news-form { flex-wrap: wrap; }
  .news-form input { min-width: 0; flex: 1 1 220px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-4, .grid-3, .grid-2, .model-steps, .form-row { grid-template-columns: 1fr; }
  .grid-4 { border: 0; }
  .grid-4 .card { border: 1px solid var(--line-soft); border-bottom: 0; }
  .grid-4 .card:last-child { border-bottom: 1px solid var(--line-soft); }
  .grid-2 > .value-card,
  .grid-2 > .value-card:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-note { line-height: 2.1; }
  .hero-note .sep { margin: 0 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .to-top { width: 48px; height: 48px; }
}
