/* Zimara marketing site
   One family (Montserrat), heavy display against light body.
   Colour comes from the product's own tokens: ink, teal, gold. */

:root {
  --ink: #060d0d;
  --ink-2: #0d1c1c;
  --paper: #f4f7f6;
  --paper-2: #e6ecea;
  --teal: #40bfbf;
  --teal-deep: #0d2e2e;
  --gold: #facc15;
  --slate: #475569;
  --slate-2: #94a3b8;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--paper-2); caret-color: var(--teal); }

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
q { quotes: "\201C" "\201D"; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
::selection { background: var(--teal); color: var(--ink); }

.skip {
  position: absolute; left: var(--pad); top: -60px; z-index: 1000;
  padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 999px;
}
.skip:focus { top: 16px; }

/* ---------- Type ---------- */

.h-xl, .h-xxl, .h-lg, .h-giant, .hero-title, .themes h3, .steps b, .case h3, .audiences h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.h-xl   { font-size: clamp(30px, 3.9vw, 58px); max-width: 18ch; }
.h-xxl  { font-size: clamp(34px, 4.8vw, 72px); max-width: 16ch; }
.h-lg   { font-size: clamp(28px, 3vw, 44px); max-width: 16ch; }
.h-giant { font-size: clamp(38px, 5.6vw, 84px); line-height: 0.98; max-width: 15ch; }

.lede { font-weight: 300; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.4; max-width: 44ch; }

/* ---------- Buttons ---------- */

.pill {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em; line-height: 1;
  transition: color .35s var(--ease);
  white-space: nowrap;
}
.pill span { position: relative; z-index: 1; }
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; background: var(--pill-fill, var(--teal));
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.pill:hover::before, .pill:focus-visible::before { transform: translateY(0); }

.pill-ink { background: var(--teal); color: var(--ink); --pill-fill: var(--ink); }
.pill-ink:hover, .pill-ink:focus-visible { color: var(--paper); }
.hero .pill-ink, .contact .pill-ink { background: var(--ink); color: var(--paper); --pill-fill: var(--paper); }
.hero .pill-ink:hover, .hero .pill-ink:focus-visible, .contact .pill-ink:hover, .contact .pill-ink:focus-visible { color: var(--ink); }

.pill-line { border: 1.5px solid currentColor; --pill-fill: var(--ink); }
.pill-line:hover, .pill-line:focus-visible { color: var(--paper); }

.pill-big { padding: 20px 34px; font-size: 17px; }

/* ---------- Loader ---------- */

.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: flex-end;
  padding: var(--pad);
  transition: transform .9s var(--ease);
  will-change: transform;
}
.loader.done { transform: translateY(-100%); }
.loader-brand img { display: block; height: clamp(40px, 5vw, 60px); width: auto; }
.loader-line { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--paper); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out); }
.loader.go .loader-line { transform: scaleX(1); }
.loader.off { display: none; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--pad);
  color: var(--navfg);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav[data-theme="light"] { --navfg: var(--ink); --navbg: var(--paper); }
.nav[data-theme="dark"]  { --navfg: var(--paper); --navbg: var(--ink); }
.nav[data-theme="teal"]  { --navfg: var(--ink); --navbg: var(--teal); }
.nav[data-theme="gold"]  { --navfg: var(--ink); --navbg: var(--gold); }
.nav.scrolled { background: var(--navbg); box-shadow: 0 1px 0 rgb(0 0 0 / .06); }
.nav[data-theme="dark"].scrolled { box-shadow: 0 1px 0 rgb(255 255 255 / .08); }

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 32px; width: auto; }
.nav .logo-dark { display: none; }
.nav[data-theme="dark"] .logo-light { display: none; }
.nav[data-theme="dark"] .logo-dark { display: block; }

.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .4s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.pill-nav { padding: 11px 20px; font-size: 13px; border: 1.5px solid currentColor; --pill-fill: var(--teal); }
.pill-nav:hover, .pill-nav:focus-visible { color: var(--ink); }
.nav[data-theme="teal"] .pill-nav { --pill-fill: var(--ink); }
.nav[data-theme="teal"] .pill-nav:hover { color: var(--paper); }

.menu-btn { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn i:first-child { top: 17px; }
.menu-btn i:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--paper);
  padding: 110px var(--pad) var(--pad);
  display: flex; flex-direction: column; gap: 6px;
}
.menu[hidden] { display: none; }
.menu a { font-weight: 800; font-size: clamp(30px, 8vw, 48px); letter-spacing: -0.03em; line-height: 1.1; }

/* ---------- Sections ---------- */

.in { padding: 0 var(--pad); }

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 110px var(--pad) clamp(40px, 6vh, 64px);
  background: var(--teal); color: var(--ink);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; width: 100%; }
.hero-clip { overflow: hidden; padding-bottom: .1em; }
.hero-title { transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.hero.in-view .hero-title { transform: none; }
.hero-title { font-size: clamp(34px, 4.4vw, 66px); max-width: 17ch; }

.hero-row { margin-top: clamp(24px, 3.5vh, 40px); opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease-out) .4s, transform .8s var(--ease-out) .4s; }
.hero.in-view .hero-row { opacity: 1; transform: none; }
.hero-body { font-weight: 300; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.4; max-width: 40ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* The visual: an ink panel, the record inside it, a badge that arrives with certification */
.hero-visual { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out) .55s, transform .9s var(--ease-out) .55s; }
.hero.in-view .hero-visual { opacity: 1; transform: none; }
.hero-panel {
  position: relative; background: var(--ink); border-radius: 20px;
  padding: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 44px) clamp(44px, 4vw, 64px);
  display: flex; justify-content: center;
}
.hero-panel .record { width: 100%; max-width: 440px; box-shadow: 0 40px 90px -40px rgb(0 0 0 / .9); }
.hero-badge {
  position: absolute; left: clamp(12px, 2vw, 28px); bottom: clamp(-18px, -1.4vw, -14px);
  display: inline-grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
  padding: 12px 18px 12px 12px; border-radius: 12px;
  background: var(--gold); color: var(--ink);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / .6);
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.hero-badge img { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); }
.hero-badge b { display: block; font-weight: 700; font-size: 14px; line-height: 1.2; }
.hero-badge small { display: block; font-size: 12px; margin-top: 2px; color: var(--ink); opacity: .75; }
.hero-visual[data-s="3"] .hero-badge { opacity: 1; transform: none; }
.hero-caption { margin-top: 32px; font-size: 14px; line-height: 1.45; color: var(--teal-deep); max-width: 48ch; }
.hero-caption a { border-bottom: 1px solid currentColor; color: var(--ink); }

/* Record states driven by data-s on the closest [data-record] container */
.record[data-s="1"] .record-status { background: var(--teal); }
.record[data-s="2"] .record-status { background: var(--ink); color: var(--paper); }
.record[data-s="3"] .record-status { background: var(--gold); }
.record[data-s="3"] .score-bar i { background: var(--teal); }
.record[data-s="1"] .row-state::after { content: attr(data-s1); }
.record[data-s="2"] .row-state::after { content: attr(data-s2); }
.record[data-s="3"] .row-state::after { content: attr(data-s3); }

/* What we do */
.what { background: var(--ink); color: var(--paper); padding: clamp(80px, 12vw, 160px) 0; }
.what-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: clamp(32px, 4vw, 56px); }
.what .lede { color: var(--paper-2); }

.themes { margin-top: clamp(56px, 8vw, 112px); border-top: 1px solid rgb(244 247 246 / .25); }
.themes li {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: baseline;
  padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid rgb(244 247 246 / .25);
}
.themes h3 { font-size: clamp(24px, 3vw, 48px); color: var(--teal); }
.themes p { font-weight: 300; font-size: clamp(15px, 1.25vw, 18px); color: var(--paper-2); max-width: 36ch; }
.themes li:hover h3 { color: var(--paper); transition: color .3s; }

.what-close { margin-top: clamp(40px, 5vw, 72px); font-weight: 300; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.35; max-width: 42ch; margin-left: auto; }

/* How it works: sticky stage */
.journey { height: 440vh; position: relative; }
.stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: var(--paper); color: var(--ink);
  transition: background .8s var(--ease), color .8s var(--ease);
}
.stage[data-s="1"] { background: var(--teal); }
.stage[data-s="2"] { background: var(--ink); color: var(--paper); }
.stage[data-s="3"] { background: var(--gold); }

.stage-in {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 100px var(--pad) clamp(28px, 4vh, 48px);
}
.stage-head { display: flex; justify-content: space-between; align-items: baseline; }
.stage-head h2 { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.stage-count { font-size: 14px; font-weight: 300; }
.stage-count b { font-weight: 700; }

.stage-body {
  display: grid; grid-template-columns: auto 1fr minmax(320px, 440px);
  gap: clamp(24px, 4vw, 64px); align-items: center; flex: 1; min-height: 0;
}

.steps li { margin: clamp(2px, 1vh, 8px) 0; }
.steps b {
  display: block; font-size: clamp(34px, 5vw, 78px); letter-spacing: -0.035em;
  opacity: .22; transition: opacity .5s var(--ease);
}
.steps li.act b { opacity: 1; }

.step-desc { position: relative; align-self: center; max-width: 28ch; min-height: 5em; }
.step-desc p {
  position: absolute; inset: 0 auto auto 0;
  font-weight: 300; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.4;
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.step-desc p.act { opacity: 1; transform: none; transition-delay: .15s; }

.stage-dots { display: flex; gap: 8px; }
.stage-dots i { width: 28px; height: 3px; background: currentColor; opacity: .25; transition: opacity .4s; }
.stage-dots i.act { opacity: 1; }

/* The Insight Page record */
.record {
  background: var(--paper); color: var(--ink);
  border-radius: 14px; padding: 22px 24px 18px;
  border: 1px solid var(--paper-2);
  box-shadow: 0 30px 80px -30px rgb(6 13 13 / .35);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.stage[data-s="2"] .record { box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8); }
.record-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.record-name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.record-meta { font-size: 13px; color: var(--slate); margin-top: 2px; }
.record-status {
  flex: none; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink);
  transition: background .5s, color .5s;
}

.record-score { margin-top: 22px; }
.score-bar { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.score-bar i { display: block; height: 100%; width: 100%; background: var(--ink); border-radius: inherit; transform: scaleX(var(--score, .41)); transform-origin: 0 50%; transition: transform 1.1s var(--ease-out), background .5s; }
.score-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 13px; color: var(--slate); }
.score-row b { font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.score-row small { font-size: 13px; font-weight: 500; color: var(--slate); margin-left: 2px; }

.record-rows { margin-top: 18px; border-top: 1px solid var(--paper-2); }
.record-rows li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--paper-2); font-size: 14px;
}
.row-name { font-weight: 500; }
.row-state { flex: none; font-size: 12px; font-weight: 600; color: var(--slate); display: inline-flex; align-items: center; gap: 7px; transition: color .4s; }
.row-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.row-state::after { content: attr(data-s0); }
.row-state.ok { color: #0f766e; }
.row-state.ok::before { opacity: 1; }
.row-state.warn { color: #b45309; }

.record-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; font-size: 12.5px; color: var(--slate); }
.record-tag { flex: none; font-size: 11px; font-weight: 600; color: var(--slate); }

/* Why it matters */
.why { background: var(--paper); color: var(--ink); padding: clamp(80px, 12vw, 160px) 0; }
.why-setup { font-weight: 300; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.35; max-width: 40ch; }
.why .h-xxl { margin-top: clamp(24px, 3vw, 40px); padding-top: clamp(24px, 3vw, 40px); border-top: 3px solid var(--teal); }
.why-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: clamp(40px, 5vw, 72px); font-size: clamp(16px, 1.3vw, 19px); font-weight: 300; line-height: 1.45; }
.why-cols p { max-width: 38ch; }
.why-turn { font-weight: 500; }
.why-turn q { font-weight: 700; }

/* Proof */
.proof { background: var(--ink); color: var(--paper); padding: clamp(80px, 12vw, 160px) 0; }
.proof-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.cases { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); margin-top: clamp(40px, 5vw, 72px); }
.poster { margin: 0; }
.poster img { display: block; width: 100%; height: auto; border-radius: 16px; }
.poster figcaption { margin-top: 14px; font-size: 13.5px; line-height: 1.45; color: var(--paper-2); max-width: 44ch; }
.case { border-top: 1.5px solid var(--teal); padding-top: 22px; }
.case h3 { font-size: clamp(24px, 2.4vw, 34px); color: var(--teal); }
.case p { font-weight: 300; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.45; color: var(--paper-2); max-width: 40ch; margin-top: 14px; }

/* Who we work with */
.partners { background: var(--paper); color: var(--ink); padding: clamp(80px, 12vw, 160px) 0; }
.audiences { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(40px, 5vw, 72px); border-top: 2px solid var(--teal); }
.audiences li { padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 48px) clamp(28px, 3.5vw, 48px) 0; border-bottom: 2px solid var(--teal); }
.audiences li:nth-child(odd) { border-right: 2px solid var(--teal); }
.audiences li:nth-child(even) { padding-left: clamp(20px, 3vw, 48px); }
.audiences h3 { font-size: clamp(24px, 2.4vw, 34px); }
.audiences p { font-weight: 300; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.45; max-width: 32ch; margin-top: 14px; }

.partner-row { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center; }
.partner-row p { font-size: 15px; font-weight: 300; max-width: 24ch; }
.partner-row ul { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: flex-end; }
.partner-row li { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; line-height: 1.2; max-width: 190px; }
.partner-row img { display: block; height: 56px; width: auto; }
.partner-row li:nth-child(3) img { height: 36px; }
.partner-row li:nth-child(4) img { height: 30px; }

/* Contact */
.contact { background: var(--teal); color: var(--ink); padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 120px); }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-top: clamp(48px, 6vw, 96px); }
.contact-about p { font-weight: 300; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.45; max-width: 40ch; }
.contact-about p + p { margin-top: 14px; font-weight: 500; }
.contact-about a { border-bottom: 1.5px solid currentColor; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; justify-self: end; }
.contact-mail { font-weight: 600; font-size: 15px; border-bottom: 1.5px solid currentColor; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: clamp(40px, 5vw, 64px) 0; }
.foot .in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 24px; font-size: 14px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--teal); }
.foot-legal { width: 100%; margin-top: 8px; font-size: 13px; color: var(--slate-2); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-links, .pill-nav { display: none; }
  .menu-btn { display: block; }
  .hero { padding-top: 96px; align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-title { max-width: 14ch; }
  .hero-panel { padding: 18px 14px 40px; }
  .hero-badge { left: 12px; bottom: -14px; padding: 10px 14px 10px 10px; }
  .hero-caption { margin-top: 30px; }
  .proof-grid, .partner-row { grid-template-columns: 1fr; }
  .partner-row ul { justify-content: flex-start; gap: 16px 28px; }
  .poster { max-width: 420px; }
  .what-cols, .why-cols, .cases, .contact-cols { grid-template-columns: 1fr; gap: 24px; }
  .themes li { grid-template-columns: 1fr; gap: 6px; }
  .what-close { margin-left: 0; }
  .contact-actions { justify-self: start; }
  .audiences { grid-template-columns: 1fr; }
  .audiences li, .audiences li:nth-child(odd), .audiences li:nth-child(even) { border-right: 0; padding-left: 0; padding-right: 0; }

  .journey { height: 400vh; }
  .stage-in { padding-top: 84px; }
  .stage-body { grid-template-columns: 1fr; gap: 12px; align-content: center; align-items: start; padding-bottom: 24px; }
  .steps { display: flex; flex-wrap: wrap; gap: 0 14px; }
  .steps li { margin: 0; }
  .steps b { font-size: clamp(28px, 7.5vw, 40px); }
  .step-desc { grid-column: 1 / -1; min-height: 3.2em; max-width: 34ch; }
  .step-desc p { font-size: 15px; }
  .record { grid-column: 1 / -1; margin-top: 16px; padding: 16px 16px 12px; }
  .record-rows li { padding: 8px 0; font-size: 12.5px; gap: 10px; }
  .record-score { margin-top: 14px; }
  .score-row b { font-size: 22px; }
}

@media (max-width: 380px) {
  .record-rows li:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader { display: none; }
  .hero-title, .hero-row, .hero-visual { transition: none; transform: none; opacity: 1; }
  .hero-badge { transition: none; }
  .stage, .steps b, .step-desc p, .score-bar i, .pill::before, .nav, .loader-line { transition: none; }
}
