/* ==========================================================================
   Vicoba Connect — vicobaconnect.co.tz

   Colours come from the logo and the company profile (zone colours match the
   profile's map exactly). The page is built around one object every VICOBA
   member knows: the share book, where each share bought at a weekly meeting is
   recorded with a stamp. The stamps land once, on load — that is the only
   orchestrated motion on the page.
   ========================================================================== */

:root {
  /* grounds */
  --night:   #260142;   /* the logo's aubergine */
  --night-2: #330A55;
  --night-3: #1C0033;
  --deep:    #14001F;
  --paper:   #F6F3FA;   /* the share book's page */
  --paper-2: #EAE3F2;
  --white:   #FFFFFF;

  /* text */
  --ink:      #1D0A33;
  --ink-soft: #54456A;
  --on-night: rgba(255, 255, 255, .74);
  --rule-dark:  rgba(255, 255, 255, .14);
  --rule-light: rgba(29, 10, 51, .14);

  /* the logo's inks */
  --lime:        #A6CA3F;
  --lime-deep:   #7FA21F;
  --cyan:        #00A3D5;
  --red:         #D5182F;
  --red-bright:  #F0354B;   /* red that still reads on aubergine */
  --navy:        #003872;
  --navy-light:  #5B8FD6;   /* navy that still reads on aubergine */
  --orange:      #FF9B00;
  --orange-deep: #E07F00;

  --display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --body:    'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --nav-h: 76px;
  --focus: var(--lime);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
section[id] { scroll-margin-top: var(--nav-h); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.paper, .white { --focus: var(--navy); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--lime); color: var(--night); font-weight: 700;
  padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- Type ----------------------------------------------------------------- */
/* Display lines are set in capitals, as the wordmark and the profile set them. */
h1, h2 {
  font-family: var(--display);
  font-weight: 900;
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}
h2 { font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.25rem); margin-bottom: .35em; }
.label {
  font: 700 .8rem/1.2 var(--body);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-soft); margin-bottom: 14px;
}
.label--night { color: var(--lime); }

/* The profile's five-colour rule, used as a divider at the top of the footer
   and the foot of the hero. */
.stripe {
  height: 6px;
  background: linear-gradient(90deg,
    var(--navy) 0 20%, var(--lime) 20% 40%, var(--cyan) 40% 60%, var(--red) 60% 80%, var(--lime) 80% 100%);
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 6px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.1 var(--body); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn--lg { min-height: 56px; padding: 8px 28px; font-size: 1.0625rem; text-wrap: balance; }
.btn--lime { background: var(--lime); color: var(--night); }
.btn--lime:hover { background: #BBDB5A; }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn:active { transform: translateY(1px); }

/* ---- Navigation ---------------------------------------------------------- */
/* No backdrop-filter or transform on the header: either would become the
   containing block for the fixed mobile drawer inside it and collapse it.
   The header is a stacking context (sticky + z-index), so the scrim is placed
   INSIDE it by script.js — appended to <body> it would cover the drawer. */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--night);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--rule-dark); }
.nav__bar {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--nav-h);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav__brand { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 0; border-radius: 8px; text-decoration: none; color: var(--white); }
.nav__brand img { height: 56px; width: auto; }
/* The wordmark inside the logo is ~9px tall at header size, so the name is set
   beside it — in two stacked lines, as the logo stacks it. */
.nav__name { font: 900 1.2rem/.92 var(--display); letter-spacing: .04em; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links > a:not(.btn) {
  color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 600;
  padding: 12px; white-space: nowrap;
}
.nav__links > a:not(.btn):hover,
.nav__links > a.active { color: var(--white); box-shadow: inset 0 -3px 0 var(--lime); }
.nav__signin { margin-left: 8px; }
.nav__cta { margin-left: 8px; white-space: nowrap; }

.nav__tools { display: flex; align-items: center; gap: 10px; }

.lang { display: inline-flex; padding: 3px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; }
.lang button {
  min-width: 44px; min-height: 38px; padding: 0 10px;
  background: none; border: 0; border-radius: 999px;
  color: var(--white); font: 700 .85rem var(--body); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--white); color: var(--night); }

.nav__toggle {
  display: none; position: relative; z-index: 80;
  width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .08); cursor: pointer;
}
.nav__toggle i {
  position: absolute; left: 13px; right: 13px; height: 2px;
  background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav__toggle i:nth-of-type(1) { top: 17px; }
.nav__toggle i:nth-of-type(2) { top: 23px; }
.nav__toggle i:nth-of-type(3) { top: 29px; }
.nav__toggle.open i:nth-of-type(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.open i:nth-of-type(2) { opacity: 0; }
.nav__toggle.open i:nth-of-type(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 0, 18, .6);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.nav__scrim.open { opacity: 1; pointer-events: auto; }

@media (max-width: 1080px) {
  .nav__toggle { display: block; }
  .nav__tools { margin-left: auto; }
  .nav__links {
    position: fixed; z-index: 70; top: 0; right: 0; bottom: 0;
    width: min(86vw, 360px);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--night-2);
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
    overflow-y: auto;
  }
  .nav__links.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .nav__links > a:not(.btn) { padding: 16px 6px; font-size: 1.15rem; border-bottom: 1px solid var(--rule-dark); }
  .nav__links > a:not(.btn):hover, .nav__links > a.active { box-shadow: inset 3px 0 0 var(--lime); padding-left: 14px; }
  .nav__signin { margin-left: 0; }
  .nav__cta { margin: 24px 0 0; min-height: 56px; }
}
@media (max-width: 420px) {
  .nav__brand img { height: 48px; }
  .nav__bar { gap: 12px; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { background: var(--night); color: var(--white); overflow: hidden; }
.hero__grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(40px, 6vw, 88px);
  padding-block: clamp(40px, 7vw, 96px) clamp(48px, 6vw, 80px);
}
.hero__kicker { color: var(--lime); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.9rem, 1.4rem + 5.2vw, 5.4rem); }
.hero__lead {
  max-width: 32em; margin-top: 26px;
  font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.55;
  color: rgba(255, 255, 255, .84);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__count { margin-top: 26px; color: var(--on-night); }
.hero__count b { font: 900 1.7rem/1 var(--display); color: var(--lime); margin-right: 6px; }

.pillars {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px;
  padding-block: 26px clamp(40px, 5vw, 56px); border-top: 1px solid var(--rule-dark);
}
.pillars li { display: flex; flex-direction: column; gap: 2px; }
.pillars b { font: 800 1rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.pillars span { color: var(--on-night); }

/* ---- The share book (signature) ------------------------------------------ */
.book { justify-self: center; width: 100%; max-width: 460px; }
.book__page {
  position: relative;
  padding: 22px 22px 16px;
  color: var(--ink);
  border-radius: 8px 12px 12px 8px;
  transform: rotate(-2.2deg);
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .6);
  background: var(--paper);
}
/* the ruled margin a treasurer writes the week number against */
.book__rows, .book__cols { background: linear-gradient(90deg, transparent 54px, rgba(213, 24, 47, .38) 54px, rgba(213, 24, 47, .38) 55.5px, transparent 55.5px); }
.book__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
  padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.book__title { font: 900 1.9rem/1 var(--display); letter-spacing: .01em; }
.book__gloss { font-size: .82rem; color: var(--ink-soft); }
.book__cols {
  display: grid; grid-template-columns: 58px 1fr;
  padding: 10px 0 4px;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.book__cols span:first-child { padding-left: 4px; }
.book__rows li {
  display: grid; grid-template-columns: 58px 1fr; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--rule-light);
}
.book__rows li:last-child { border-bottom: 0; }
.book__wk { font: 800 1.15rem/1 var(--display); color: var(--ink-soft); padding-left: 4px; font-variant-numeric: tabular-nums; }
.book__cells { display: grid; grid-template-columns: repeat(5, 1fr); justify-items: center; }

.stamp, .slot { width: clamp(30px, 8.4vw, 42px); aspect-ratio: 1; border-radius: 50%; }
.slot { border: 1.5px dashed rgba(29, 10, 51, .16); }
.stamp {
  position: relative; display: block;
  color: var(--c); border: 3px solid currentColor;
  opacity: .9;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  mix-blend-mode: multiply;
  /* a rubber stamp never inks evenly */
  -webkit-mask-image: radial-gradient(circle at 32% 28%, #000 52%, rgba(0, 0, 0, .7) 100%);
          mask-image: radial-gradient(circle at 32% 28%, #000 52%, rgba(0, 0, 0, .7) 100%);
}
.stamp::before { content: ""; position: absolute; inset: 3px; border: 1.5px solid currentColor; border-radius: 50%; }
.stamp::after  { content: ""; position: absolute; inset: 34%; background: currentColor; border-radius: 50%; }

@media (prefers-reduced-motion: no-preference) {
  .stamp {
    animation: stamp-in .42s cubic-bezier(.2, 1.5, .45, 1) both;
    animation-delay: calc(450ms + var(--i) * 85ms);
  }
}
@keyframes stamp-in {
  0%   { opacity: 0;   transform: translate(var(--x), var(--y)) rotate(calc(var(--r) - 28deg)) scale(1.9); }
  55%  { opacity: .95; }
  100% { opacity: .9;  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); }
}

.book figcaption { margin: 22px auto 0; max-width: 34ch; text-align: center; font-size: .95rem; color: var(--on-night); }

/* ---- Sections ------------------------------------------------------------ */
.section { padding-block: clamp(64px, 9vw, 120px); }
.paper { background: var(--paper); color: var(--ink); }
.white { background: var(--white); color: var(--ink); }
.night { background: var(--night); color: var(--white); }

/* A small stamp. Its ink comes from --c on itself or its list item; declaring
   --c here would override the inherited colour, so only a fallback. */
.ink {
  position: relative; flex: none; display: block;
  width: 24px; aspect-ratio: 1;
  border: 3px solid var(--c, currentColor); border-radius: 50%;
}
.ink::after { content: ""; position: absolute; inset: 28%; background: var(--c, currentColor); border-radius: 50%; }

/* ---- About --------------------------------------------------------------- */
.deal { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px clamp(28px, 6vw, 88px); align-items: end; }
.deal h2 { margin-bottom: 0; }
.deal__lead { font: 800 clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem)/1.1 var(--display); margin-bottom: 14px; }
.deal__body p:not(.deal__lead) { color: var(--ink-soft); }

.aims__label { margin-top: clamp(48px, 6vw, 80px); }
.aims { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; border-top: 2px solid var(--ink); }
.aims li { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding-top: 22px; }
.aims b { font: 800 1.55rem/1 var(--display); }
.aims span { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }

/* ---- Value chain --------------------------------------------------------- */
.journey__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; }
.journey__head h2 { margin-bottom: 0; }
.journey__head > p { color: var(--on-night); font-size: 1.1rem; max-width: 30em; }

.chain {
  counter-reset: step;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}
.chain li { counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 8px; }
.chain li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 64px; aspect-ratio: 1; margin-bottom: 10px;
  border-radius: 50%; border: 3px solid var(--c);
  font: 900 1.9rem/1 var(--display); color: var(--c);
}
/* the arrow between steps */
.chain li:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; left: 78px; right: 0;
  height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .08));
}
.chain b { font: 900 1.7rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.chain span { color: var(--on-night); max-width: 16em; }

/* ---- Zones --------------------------------------------------------------- */
.zones__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; }
.zones__head h2 { margin-bottom: 0; }
.zones__head > p { color: var(--ink-soft); font-size: 1.1rem; max-width: 32em; }
.zones__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px); margin-top: clamp(36px, 5vw, 56px); align-items: start;
}
.map { background: var(--paper); border-radius: var(--radius); padding: clamp(16px, 3vw, 32px); }
.map img { width: 100%; }
.map figcaption { margin-top: 10px; font-size: .85rem; color: var(--ink-soft); }

.zones { border-top: 2px solid var(--ink); }
.zones li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--rule-light);
}
.dot { width: 18px; aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }
.zones b { font: 800 1.6rem/1 var(--display); }
.zones span { color: var(--ink-soft); text-align: right; }

.why__label { margin-top: 36px; }
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.why dt { font: 800 1.3rem/1.1 var(--display); }
.why dd { margin-top: 4px; color: var(--ink-soft); font-size: 1rem; }

.experience {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: 20px 48px; align-items: start;
  margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 3.5vw, 40px);
  background: var(--night); color: var(--white); border-radius: var(--radius);
}
.experience__lead { font: 800 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.05 var(--display); }
.experience ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; }
.experience b { display: block; font: 800 .95rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.experience span { color: var(--on-night); }

.dates {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 16px 32px; align-items: start;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 2px solid var(--ink);
}
.dates h3 { font: 800 1.7rem/1 var(--display); text-transform: uppercase; }
.dates__empty { color: var(--ink-soft); }
.dates__all { color: var(--night); font-weight: 700; padding: 4px 0 10px; white-space: nowrap; }
.date {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--rule-light); text-decoration: none; color: inherit;
}
.date:first-child { padding-top: 0; }
.date__day { font: 900 2.3rem/1 var(--display); color: var(--night); }
.date__day small { display: block; font: 700 .72rem/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.date b { display: block; font-size: 1.1rem; }
.date span { color: var(--ink-soft); }
.date:hover b { text-decoration: underline; }

/* ---- Audience ------------------------------------------------------------ */
.aud__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.aud__head h2 { margin-bottom: 0; }
.aud__head > p { color: var(--ink-soft); font-size: 1.1rem; max-width: 32em; }
.groups {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px;
  border-top: 2px solid var(--ink);
}
.groups li {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 8px;
  padding: 22px 0; border-bottom: 1px solid var(--rule-light);
}
.groups .ink { grid-row: 1 / span 2; align-self: start; margin-top: 2px; }
.groups b { font: 800 1.6rem/1 var(--display); }
.groups span { color: var(--ink-soft); margin-top: 6px; }

.second {
  display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, 1.55fr); gap: 16px 40px; align-items: center;
  margin-top: clamp(40px, 5vw, 56px); padding: clamp(22px, 3vw, 32px);
  background: var(--paper-2); border-radius: var(--radius);
}
.second .label { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--rule-light); font-weight: 600; }

/* ---- Platform ------------------------------------------------------------ */
.plat__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; }
.plat__head h2 { margin-bottom: 0; }
.plat__head > p { color: var(--ink-soft); font-size: 1.1rem; max-width: 30em; }
.plat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 4vw, 52px); }
.plat__item {
  display: block; padding: 26px 28px; border-radius: var(--radius);
  background: var(--paper); border: 2px solid transparent; text-decoration: none; color: var(--ink);
  transition: border-color .15s;
}
.plat__item b { display: flex; justify-content: space-between; gap: 12px; font: 800 1.85rem/1 var(--display); margin-bottom: 10px; }
.plat__item b::after { content: "→"; font-family: var(--body); font-weight: 700; font-size: 1.4rem; color: var(--night); transition: transform .15s; }
.plat__item span { color: var(--ink-soft); }
.plat__item:hover { border-color: var(--night); }
.plat__item:hover b::after { transform: translateX(4px); }
.plat__signin { margin-top: 26px; color: var(--ink-soft); }
.plat__signin a { color: var(--night); font-weight: 700; }

/* ---- Partners ------------------------------------------------------------ */
.partners { background: var(--night-3); }
.partners__head { max-width: 46em; }
.partners__head p:last-child { color: var(--on-night); font-size: 1.15rem; }
.eco { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
.eco li {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 22px 24px; background: var(--night-2); border-radius: var(--radius);
  border-top: 5px solid var(--c);
}
.eco em { font: 700 .75rem/1.2 var(--body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.eco b { font: 800 1.6rem/1 var(--display); }
.eco span { color: var(--on-night); }

.principle {
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px 48px; align-items: center;
  margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--rule-dark);
}
.principle p { font: 800 clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem)/1.1 var(--display); }
.principle footer { margin-top: 10px; color: var(--lime); font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---- Footer -------------------------------------------------------------- */
.foot { background: var(--deep); color: var(--on-night); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 52px; }
.foot__brand img { height: 88px; width: auto; margin-bottom: 14px; }
.foot__brand p { max-width: 24em; }
.foot h4 { font: 700 .78rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; }
.foot nav a, .foot__grid > div > a { display: block; padding: 10px 0; color: rgba(255, 255, 255, .84); text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 20px; font-size: .9rem;
  /* a rule the width of the content, not of the padded box */
  background: linear-gradient(var(--rule-dark), var(--rule-dark)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
}

/* ---- Enhancements added by script.js ------------------------------------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 90; background: var(--lime); }
.totop {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--lime); color: var(--night); font: 700 1.3rem/1 var(--body); cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.install {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: flex; align-items: center; gap: 12px;
  width: min(440px, calc(100% - 32px)); padding: 12px 12px 12px 14px;
  background: var(--white); color: var(--ink); border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transform: translate(-50%, 140%); transition: transform .3s ease;
}
.install.on { transform: translate(-50%, 0); }
.install img { width: 44px; height: 44px; border-radius: 10px; }
.install div { flex: 1; min-width: 0; line-height: 1.3; }
.install b { display: block; }
.install span { font-size: .85rem; color: var(--ink-soft); }
.install .btn { min-height: 44px; padding: 0 16px; background: var(--night); color: var(--white); }
.install .x { width: 44px; height: 44px; border: 0; background: none; font-size: 1.5rem; color: var(--ink-soft); cursor: pointer; }

/* ---- Narrow screens ------------------------------------------------------ */
@media (max-width: 1080px) {
  .aims { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .eco, .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .chain li:nth-child(3)::after { display: none; }
}
@media (max-width: 960px) {
  .hero__grid, .deal, .journey__head, .zones__head, .zones__grid, .aud__head,
  .plat__head, .experience, .principle, .second { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { padding-top: 32px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .experience ul { grid-template-columns: minmax(0, 1fr); }
  .dates { grid-template-columns: minmax(0, 1fr); }
  .principle .btn { justify-self: start; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .aims, .plat, .eco, .why, .groups { grid-template-columns: minmax(0, 1fr); }
  .chain { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .chain li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; padding-bottom: 22px; }
  .chain li::before { grid-row: span 2; margin: 0; width: 56px; font-size: 1.6rem; }
  .chain li:not(:last-child)::after { top: 60px; bottom: 4px; left: 27px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .08)); display: block; }
  .chain b { align-self: end; }
  .hero__actions .btn { flex: 1 1 100%; }
  .zones span { grid-column: 2; text-align: left; margin-top: -4px; }
  .book__page { padding: 18px 14px 12px; }
  .book__rows, .book__cols { background: linear-gradient(90deg, transparent 40px, rgba(213, 24, 47, .38) 40px, rgba(213, 24, 47, .38) 41.5px, transparent 41.5px); }
  .book__cols, .book__rows li { grid-template-columns: 44px 1fr; }
  .plat__item { padding: 22px; }
  .plat__item b { font-size: 1.6rem; }
}
@media (max-width: 380px) {
  .foot__grid, .pillars { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .nav, .totop, .install, .progress { display: none !important; }
  .night, .hero, .partners, .foot, .experience { background: #fff !important; color: #000 !important; }
}
