/* Arushiya Solutions — matched to design PDF (navbar + hero + sections) */

:root {
  --color-black: #000000;
  --color-text: #1a1a1a;
  --color-nav: #2b2b2b;
  --color-muted: #8a8a8a;
  --color-border: #e5e5e5;
  --color-border-banner: #dddddd;
  --color-bg: #ffffff;
  --color-page: #f5f5f5;
  --color-careers-bg: var(--color-page);
  --color-hero-top: #ececec;
  --color-hero-mid: #f4f4f4;
  --color-logo: #1e5fa8;
  --color-footer: #f0f0f0;
  --color-title-underline: #b3b3b3;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Full-width layout — shared horizontal inset (matches banner content edges) */
  --site-pad: max(4vw, 20px);
  --inner-pad: clamp(28px, 4vw, 56px);
  --content-x: max(4vw, calc(var(--site-pad) + var(--inner-pad)));

  /* Banner spacing */
  --banner-outer: var(--site-pad);
  --banner-inner-x: var(--inner-pad);
  --banner-header-top: clamp(32px, 3.5vw, 44px);
  --nav-pill-y: 12px;
  --nav-pill-x: 28px;
  --nav-link-gap: 44px;
  --hero-pad-y: clamp(64px, 7.5vw, 96px);
  --hero-quote-size: clamp(30px, 2.65vw, 38px);
  --hero-quote-width: 680px;
  --banner-min-height: clamp(520px, 58vh, 600px);
  --footer-card-pad-y: clamp(48px, 5vw, 64px);
  --footer-gap: clamp(32px, 4vw, 56px);
  --footer-radius: 24px;
  --color-about-bg: #f7f7f7;
  --color-drives-bg: #f4f4f4;

  /* Spacing scale (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 96px;
  --space-11: 112px;

  /* Semantic spacing — used site-wide */
  --section-y: max(4vh, clamp(72px, 7.78vw, var(--space-11)));
  --section-y-tight: max(3vh, clamp(40px, 5vw, var(--space-9)));
  --section-y-mobile: max(4vh, clamp(56px, 6vw, 72px));
  --founder-size: clamp(280px, 24vw, 360px);
  --col-gap: clamp(40px, 5.5vw, var(--space-9));
  --col-gap-sm: clamp(24px, 2.5vw, 36px);
  --title-gap: var(--space-3);
  --title-gap-tight: var(--space-2);
  --head-gap: var(--space-6);
  --text-gap: var(--space-2);
  --text-gap-lg: var(--space-3);
  --stack-gap: var(--space-9);

  /* legacy aliases used in lower sections */
  --black: var(--color-black);
  --text: var(--color-text);
  --muted: var(--color-muted);
  --line: var(--color-border);
  --bg-footer: var(--color-footer);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.714;
  color: var(--color-text);
  background: var(--color-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  object-fit: cover;
}

.about-photo img,
.founders-grid img,
.drive-card img,
.vision .col-photo img,
.mission .col-photo img,
img.venture-banner,
.careers-photo img {
  transition: filter 0.45s ease;
}

.about-photo:hover img,
.about-photo img:hover,
.founders-grid figure:hover img,
.founders-grid img:hover,
.drive-card:hover img,
.drive-card img:hover,
.vision .col-photo:hover img,
.vision .col-photo img:hover,
.mission .col-photo:hover img,
.mission .col-photo img:hover,
.venture:hover img.venture-banner,
img.venture-banner:hover,
.careers-photo:hover img,
.careers-photo img:hover {
  filter: grayscale(0%);
}

img.brand-icon,
img.brand-logo {
  filter: none;
  object-fit: contain;
  transition: none;
}

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

h2 {
  margin: 0 0 var(--title-gap);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
  letter-spacing: -0.02em;
}

h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-black);
}

p { margin: 0 0 var(--text-gap); }

.site { width: 100%; }

.wrap {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--content-x);
}

/* ===== BANNER CARD (bordered hero + header) ===== */
.banner-section {
  width: 100%;
  padding: var(--banner-outer) var(--banner-outer) 0;
}

.banner-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: var(--banner-min-height);
  margin: 0 auto;
  border: 1px solid var(--color-border-banner);
  border-radius: 40px;
  overflow: hidden;
  background:
    url("../img/hero-bg.1eb9436f3b56.svg") center top / cover no-repeat,
    radial-gradient(ellipse 130% 90% at 50% 0%, #fafafa 0%, #ececec 42%, #e6e6e6 100%);
}

.site-header {
  padding: var(--banner-header-top) var(--banner-inner-x) 0;
}

.site-header::after {
  content: "";
  display: none;
  height: calc(60px + (2 * var(--nav-pill-y)) + 2px);
}

.site-header.is-stuck::after {
  display: block;
}

.nav-pill {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 60px;
  padding: var(--nav-pill-y) var(--nav-pill-x);
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-pill.is-stuck {
  position: fixed;
  top: 12px;
  left: var(--banner-outer);
  right: var(--banner-outer);
  z-index: 1200;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  padding-left: 4px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  filter: none;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 200px;
  filter: none;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-black);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--nav-link-gap);
  justify-self: center;
  padding: 0 8px;
}

.site-nav a,
.nav-link-btn {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-nav);
  white-space: nowrap;
  padding: 4px 0;
}

.site-nav a.is-active {
  font-weight: 600;
  color: var(--color-black);
}

.nav-link-btn,
.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
}

.site-nav a:hover,
.nav-link-btn:hover { color: var(--color-black); }

.btn-contact {
  justify-self: end;
  padding: 12px 28px;
  margin-right: 4px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
  background: var(--color-black);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-contact:hover { background: #222222; }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: none;
  background: none;
  cursor: pointer;
  justify-self: end;
  grid-column: 3;
}

.menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--color-black);
}

/* ===== HERO (inside banner card) ===== */
.hero {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: var(--hero-pad-y) var(--banner-inner-x);
  min-height: 0;
}

.hero-inner {
  width: 100%;
  max-width: var(--hero-quote-width);
  margin: 0 auto;
  text-align: center;
}

.hero-quote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: var(--hero-quote-size);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.022em;
  color: var(--color-black);
  text-wrap: balance;
}

.hero-byline {
  margin: 36px 0 0;
  padding-right: 4px;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  color: #757575;
  text-align: right;
}

.site-content {
  width: 100%;
  background: var(--color-bg);
}

.block {
  width: 100%;
}

/* ===== CONTACT MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  z-index: 2;
}

.modal-close:hover { color: var(--color-black); }

body.modal-open { overflow: hidden; }

.form-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  border: 1px solid #ebebeb;
  padding: 28px 24px 26px;
}

.form-card h2 {
  font-size: 18px;
  margin-bottom: 20px;
}

.touch-form { display: flex; flex-direction: column; gap: 14px; }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.field label span { color: var(--color-black); }

.touch-form .form-input,
.touch-form textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--color-black);
  background: #f3f3f3;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}

.touch-form textarea {
  min-height: 80px;
  resize: vertical;
}

.touch-form .form-input::placeholder,
.touch-form textarea::placeholder { color: #999; }

.touch-form .form-input:focus,
.touch-form textarea:focus,
.touch-form .form-input-file:focus {
  outline: none;
  border-color: #999;
  background: #fff;
}

.touch-form .form-input-file {
  padding: 9px 12px;
  cursor: pointer;
}

.field-file .field-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #888888;
}

.field em {
  display: block;
  font-size: 11px;
  font-style: normal;
  color: #c00;
  margin-top: 4px;
}

.btn-send {
  margin-top: 6px;
  width: 100%;
  padding: 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-black);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.btn-send:hover { background: #333; }

/* ===== ABOUT US ===== */
.about {
  background: var(--color-about-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: var(--col-gap);
  align-items: center;
}

.about .section-title,
.about-title {
  margin: 0 0 var(--title-gap);
  font-size: clamp(32px, 2.75vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.about-text p {
  margin: 0 0 var(--text-gap-lg);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
  color: #444444;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(100%);
}

.section-title {
  margin: 0 0 var(--title-gap);
  font-size: clamp(32px, 2.75vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.section-title-left {
  text-align: left;
}

.title-underline {
  position: relative;
  display: inline-block;
}

.title-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--color-title-underline);
}

/* ===== WHAT DRIVES US ===== */
.drives {
  background: var(--color-drives-bg);
}

.drives .section-title {
  margin: 0 0 var(--title-gap-tight);
}

.drives-intro {
  max-width: none;
  margin: 0 0 var(--head-gap);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
  color: #555555;
}

.drives-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap-sm);
  align-items: start;
}

.drive-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.drive-card h3 {
  margin: 0 0 var(--text-gap-lg);
  min-height: 2.8em;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-black);
}

.drive-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  filter: grayscale(100%);
}

/* ===== SHARED SECTIONS ===== */
.block {
  width: 100%;
}

.site-content > .block {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

/* Vision + Mission share one white band — slightly tighter between them */
.vision.block {
  padding-bottom: var(--section-y-tight);
}

.mission.block {
  padding-top: var(--section-y-tight);
}

/* ===== VISION & MISSION ===== */
.vision,
.mission {
  background: var(--color-bg);
}

.vision-row,
.mission-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--col-gap);
  align-items: center;
}

.vision .col-text .section-title,
.mission .col-text .section-title {
  margin: 0 0 var(--title-gap);
}

.vision .col-text p,
.mission .col-text p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
  color: #444444;
}

.vision .col-photo img,
.mission .col-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(100%);
}

.col-text p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.75;
}

.col-text p:last-child { margin-bottom: 0; }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
  align-items: center;
}

.row-2-reverse .col-photo { order: -1; }

.col-photo img {
  width: 100%;
  border-radius: 2px;
}

.col-photo-tall img {
  aspect-ratio: 3 / 4;
  max-height: 480px;
  object-fit: cover;
}

.col-photo:not(.col-photo-tall) img { aspect-ratio: 5 / 3; }

.block-head {
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0 auto var(--head-gap);
}

.block-head .section-title {
  margin-bottom: var(--title-gap-tight);
}

.block-head p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
  color: #555555;
  margin: 0;
}

/* ===== OUR FOUNDERS ===== */
.founders {
  background:
    url("../img/hero-bg.1eb9436f3b56.svg") center top / cover no-repeat,
    radial-gradient(ellipse 130% 90% at 50% 0%, #fafafa 0%, #ececec 42%, #e6e6e6 100%);
}

.founders-grid {
  display: flex;
  justify-content: center;
  gap: clamp(var(--space-7), 8vw, var(--space-10));
  flex-wrap: wrap;
}

.founders-grid figure {
  margin: 0;
  text-align: left;
  max-width: var(--founder-size);
}

.founders-grid img {
  width: var(--founder-size);
  height: var(--founder-size);
  margin: 0 0 var(--text-gap-lg);
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  background: #000000;
}

.founders-grid figcaption {
  border-left: 2px solid #cccccc;
  padding-left: var(--text-gap-lg);
}

.founders-grid .role {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-1);
}

.founders-grid .name {
  display: block;
  font-size: clamp(20px, 1.75vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-black);
}

.ventures .block-head {
  text-align: left;
}

/* ===== OUR VENTURES ===== */
.ventures {
  background: var(--color-bg);
}

.venture {
  margin-bottom: var(--stack-gap);
}

.venture:last-child {
  margin-bottom: 0;
}

.venture-banner {
  width: 100%;
  aspect-ratio: 16 / 5;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  margin-bottom: var(--space-4);
  border-radius: 0;
}

.venture-copy h3 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  margin: 0 0 var(--title-gap-tight);
  color: var(--color-black);
}

.venture-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--text-gap-lg) !important;
}

.venture-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  background: #f0f0f0;
  border: 1px solid #dddddd;
  border-radius: 999px;
}

.venture-meta span + span::before {
  content: none;
}

.venture-copy p {
  margin: 0 0 var(--text-gap);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
  color: #444444;
}

.venture-note {
  font-size: 16px !important;
  color: #444444 !important;
}

.venture-copy .btn-outline {
  margin-top: var(--space-1);
}

.btn-outline {
  display: inline-block;
  margin-top: var(--space-1);
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-black);
  background: #fff;
  border: 1px solid var(--color-black);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.btn-outline:hover {
  background: var(--color-black);
  color: #fff;
}

.col-text .lead {
  font-weight: 600;
  color: var(--color-black) !important;
}

.btn-solid {
  display: inline-block;
  margin-top: var(--text-gap-lg);
  padding: 12px 32px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  background: var(--color-black);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.btn-solid:hover { background: #333; }

/* ===== OUR CAREERS ===== */
.careers {
  background: var(--color-careers-bg);
}

.careers.block {
  padding-bottom: var(--footer-gap);
}

.careers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--col-gap);
  align-items: center;
}

.careers-copy .section-title {
  margin: 0 0 var(--title-gap);
}

.careers-copy p {
  margin: 0 0 var(--text-gap);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
  color: #444444;
}

.careers-copy p:last-of-type {
  margin-bottom: var(--title-gap);
}

.careers-copy .btn-solid {
  margin-top: 0;
}

.careers-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  filter: grayscale(100%);
}

.site-footer {
  margin-top: 0;
  width: 100%;
  padding: 0 var(--banner-outer) var(--banner-outer);
  background: var(--color-page);
}

.footer-card {
  width: 100%;
  padding: var(--footer-card-pad-y) var(--banner-inner-x);
  border: 1px solid var(--color-border-banner);
  border-radius: var(--footer-radius);
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 85% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(155deg, #e8e8e8 0%, #f0f0f0 38%, #f8f8f8 72%, #ffffff 100%);
}

.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--col-gap);
  align-items: start;
}

.brand-footer {
  margin-bottom: 0;
}

.brand-footer .brand-logo {
  height: 32px;
  max-width: 180px;
}

.brand-footer .brand-name {
  color: var(--color-logo);
}

.footer-address {
  margin: 20px 0 0;
  max-width: 280px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: #555555;
}

.footer-col p {
  margin: 0 0 var(--space-1);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: #444444;
}

.footer-col p:last-child {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a,
.footer-link-btn {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: #444444;
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--color-black);
  text-decoration: none;
}

.footer-contact {
  text-align: right;
}

.footer-contact a {
  color: #444444;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--color-black);
}

.footer-copy {
  margin: var(--space-3) 0 0;
  padding: 0 var(--banner-inner-x);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #999999;
  text-align: center;
}

.footer-copy a {
  color: #999999;
  text-decoration: none;
}

.footer-copy a:hover {
  color: #666666;
}

.messages-bar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}

.message {
  padding: 12px 20px;
  background: var(--color-black);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  :root {
    --site-pad: max(4vw, 20px);
    --inner-pad: 24px;
    --content-x: max(4vw, calc(var(--site-pad) + var(--inner-pad)));
    --section-y: var(--section-y-mobile);
    --section-y-tight: max(3vh, clamp(32px, 4vw, var(--space-7)));
    --founder-size: clamp(240px, 68vw, 300px);
    --col-gap: var(--space-5);
    --head-gap: var(--space-5);
    --stack-gap: var(--space-7);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--col-gap);
    align-items: start;
  }

  .about-photo img {
    max-height: none;
  }

  .drives-grid {
    grid-template-columns: 1fr;
    gap: var(--col-gap);
  }

  .drive-card h3 {
    min-height: 0;
  }

  .row-2,
  .row-2-reverse {
    grid-template-columns: 1fr;
    gap: var(--col-gap);
  }

  .row-2-reverse .col-photo { order: 0; }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: var(--col-gap);
  }

  .footer-contact {
    text-align: left;
  }

  .footer-card {
    border-radius: var(--footer-radius);
    padding: var(--space-6) var(--space-3);
  }

  .footer-copy {
    padding-inline: var(--space-3);
  }

  .founders-grid { gap: var(--col-gap); }

  .careers-grid {
    grid-template-columns: 1fr;
    gap: var(--col-gap);
  }

  :root {
    --nav-link-gap: 32px;
    --hero-pad-y: clamp(48px, 6vw, 72px);
    --banner-min-height: clamp(440px, 70vh, 520px);
    --footer-card-pad-y: var(--space-6);
    --footer-gap: var(--space-6);
  }

  .hero-quote { font-size: 30px; }
}

@media (max-width: 768px) {
  .banner-section { padding: 12px 12px 0; }

  .banner-card { border-radius: 20px; }

  .site-header { padding: 14px 14px 0; }

  .nav-pill {
    grid-template-columns: 1fr auto;
    border-radius: 20px;
    padding: 12px 14px;
  }

  .site-nav,
  .btn-contact { display: none; }

  .menu-btn { display: flex; }

  .site-nav.is-open {
    display: flex;
    position: fixed;
    inset: 72px 12px auto 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 200;
  }

  .hero {
    padding: var(--hero-pad-y) var(--space-3);
  }

  .banner-card {
    min-height: 0;
  }

  .hero-quote {
    font-size: 28px;
    line-height: 1.36;
  }

  .hero-byline {
    margin-top: 28px;
    font-size: 12px;
    text-align: center;
    padding-right: 0;
  }

  .drives .section-title {
    font-size: 28px;
    margin-bottom: var(--title-gap-tight);
  }

  .drives-intro {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: var(--head-gap);
  }

  .drive-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--text-gap);
    min-height: 0;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: var(--title-gap);
  }

  .about-text p {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: var(--text-gap-lg);
  }
}

/* Color on hover — keep after section image rules */
.about-photo:hover img,
.about-photo img:hover,
.founders-grid figure:hover img,
.founders-grid img:hover,
.drive-card:hover img,
.drive-card img:hover,
.vision .col-photo:hover img,
.vision .col-photo img:hover,
.mission .col-photo:hover img,
.mission .col-photo img:hover,
.venture:hover img.venture-banner,
img.venture-banner:hover,
.careers-photo:hover img,
.careers-photo img:hover {
  filter: grayscale(0%);
}

/* ===== STANDALONE PAGES (errors, legal) — matches home theme ===== */
.page-error,
.page-legal {
  background: var(--color-page);
}

.site-standalone {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-standalone .banner-card--compact,
.site-standalone .banner-card--page {
  min-height: auto;
}

.standalone-banner,
.standalone-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 72px) var(--banner-inner-x) clamp(32px, 4vw, 48px);
  text-align: center;
}

.standalone-banner-code {
  margin: 0 0 8px;
  font-size: clamp(64px, 10vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(0, 0, 0, 0.08);
}

.standalone-banner-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 2.75vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.standalone-banner-lead {
  margin: 0 0 12px;
  max-width: 560px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
}

.standalone-banner-detail {
  margin: 0;
  max-width: 520px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
  color: #555555;
}

/* Error page — centered hero with animated code */
@keyframes error-bg-drift {
  0% { background-position: 0% 0%, 50% 0%; }
  100% { background-position: 100% 40%, 0% 100%; }
}

@keyframes error-float {
  0%, 100% { transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) translateY(0); }
  50% { transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) translateY(-14px); }
}

@keyframes error-digit-wave {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.03); }
}

@keyframes error-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes error-orbit-spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes error-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes error-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-card--page {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(56px, 6vw, 80px);
  background:
    url("../img/hero-bg.1eb9436f3b56.svg") center top / 120% auto repeat-x,
    radial-gradient(ellipse 90% 70% at 50% 0%, #ffffff 0%, transparent 55%),
    linear-gradient(180deg, #fafafa 0%, #ececec 100%);
  animation: error-bg-drift 28s ease-in-out infinite alternate;
}

.error-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--banner-inner-x) clamp(16px, 2vw, 24px);
  text-align: center;
}

.error-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(320px, 72vw);
  height: min(320px, 72vw);
  margin: 0 0 clamp(28px, 3.5vw, 40px);
  animation: error-float 5s ease-in-out infinite;
}

.error-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(30, 95, 168, 0.22);
  pointer-events: none;
}

.error-orbit--outer {
  inset: 0;
  animation: error-orbit-spin 24s linear infinite;
}

.error-orbit--inner {
  inset: 18%;
  border-color: rgba(0, 0, 0, 0.08);
  animation: error-orbit-spin-reverse 18s linear infinite;
}

.error-code-display {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.5vw, 12px);
  line-height: 1;
}

.error-digit {
  display: inline-block;
  font-size: clamp(88px, 16vw, 140px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: transparent;
  background: linear-gradient(
    135deg,
    #0a0a0a 0%,
    #3a3a3a 35%,
    #1e5fa8 55%,
    #0a0a0a 75%,
    #2a2a2a 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation:
    error-digit-wave 2.8s ease-in-out infinite,
    error-shimmer 6s linear infinite;
  animation-delay: calc(var(--d, 0) * 0.18s), calc(var(--d, 0) * 0.35s);
}

.error-copy {
  animation: error-fade-up 0.7s ease 0.15s both;
}

.error-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-logo);
}

.error-title {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.error-detail {
  margin: 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.65;
  color: #5c5c5c;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: clamp(28px, 3.5vw, 36px) 0 clamp(24px, 3vw, 32px);
  animation: error-fade-up 0.7s ease 0.3s both;
}

.error-actions .btn-contact,
.error-actions .btn-outline {
  margin-top: 0;
}

.error-actions a.btn-contact {
  text-decoration: none;
}

.error-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: error-fade-up 0.7s ease 0.45s both;
}

.error-hints li {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #666666;
}

.error-hints li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-logo);
  opacity: 0.7;
}

button.btn-outline {
  font-family: var(--font);
}

@media (prefers-reduced-motion: reduce) {
  .banner-card--page,
  .error-visual,
  .error-digit,
  .error-orbit,
  .error-copy,
  .error-actions,
  .error-hints {
    animation: none;
  }

  .error-visual {
    transform: none;
  }
}

a.btn-solid,
a.btn-outline {
  text-decoration: none;
}

button.btn-outline,
button.btn-solid {
  font-family: var(--font);
}

.page-legal .standalone-actions .btn-solid {
  margin-top: 0;
  min-height: 44px;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
}

/* Legal pages — content below banner */
.banner-card--legal {
  min-height: auto;
  padding-bottom: clamp(40px, 4.5vw, 56px);
  background:
    url("../img/hero-bg.1eb9436f3b56.svg") center top / cover no-repeat,
    radial-gradient(ellipse 120% 88% at 50% 0%, #ffffff 0%, #f4f4f4 45%, #ececec 100%);
}

.legal-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 56px) var(--banner-inner-x) 0;
  text-align: left;
}

.legal-hero-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-logo);
}

.legal-hero-title {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-black);
}

.site-standalone .site-content {
  flex: 1;
  background: var(--color-page);
}

.site-standalone--legal .standalone-panel {
  margin-top: clamp(-32px, -3vw, -20px);
}

.standalone-panel {
  padding: 0 0 clamp(40px, 5vw, 56px);
  background: var(--color-page);
}

.standalone-panel-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 48px) clamp(28px, 3.5vw, 40px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 28px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.02),
    0 16px 40px rgba(0, 0, 0, 0.06);
}

.standalone-panel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e5fa8 0%, #5a9ad4 50%, #1e5fa8 100%);
}

.standalone-intro {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.625;
  color: #555555;
}

.standalone-panel-title {
  margin: 0 0 24px;
  font-size: clamp(30px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--color-black);
}

.legal-prose {
  font-size: 16px;
  line-height: 1.75;
  color: #444444;
}

.legal-prose p {
  margin: 0 0 1.25em;
}

.legal-prose p:last-child {
  margin-bottom: 0;
}

.legal-panel-actions {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #f0f0f0;
}

.legal-panel-actions .btn-contact {
  text-decoration: none;
}

.standalone-actions {
  margin-top: 32px;
  padding-top: 8px;
}

@media (max-width: 768px) {
  .standalone-banner,
  .standalone-hero {
    padding: 36px 24px 28px;
  }

  .error-stage {
    padding: 32px 20px 16px;
  }

  .error-hints {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .error-actions .btn-contact,
  .error-actions .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .standalone-panel-card {
    border-radius: 16px;
    padding: 28px 22px;
  }

  .standalone-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .standalone-actions .btn-solid,
  .standalone-actions .btn-outline {
    width: 100%;
    text-align: center;
  }
}
