/* COSIMO, photography-led homepage. Same structure as anumventures.com: full-bleed
   photo bands fade into solid text cards; slow zoom, parallax and text reveals.
   Ground and accents follow the COSIMO brand tokens. */

:root {
  --card: #050b18;          /* solid card ground; photo fades blend into this */
  --ink: #ffffff;
  --ink-dim: #a8c0db;
  --ink-faint: #6f83a0;
  --accent: #7ec8e8;
  --rule: rgba(238,241,246,.10);
  --nav-h: 90px;
  --serifless: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--card);
  color: var(--ink);
  font-family: var(--serifless);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  /* readable from the first pixel: a dark gradient behind the bar over any photo */
  background: linear-gradient(to bottom, rgba(5,11,24,.82) 0%, rgba(5,11,24,.45) 60%, rgba(5,11,24,0) 100%);
  transition: background .5s ease, backdrop-filter .5s ease;
}
.nav.scrolled { background: rgba(5,11,24,.80); backdrop-filter: blur(10px); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav-brand img { height: 34px; width: auto; display: block; border-radius: 7px; }
.nav-brand span {
  font-family: 'Poppins', 'Inter', sans-serif; font-weight: 600; font-size: 23px;
  letter-spacing: .08em; text-transform: uppercase;
}
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-links a {
  color: var(--ink); text-decoration: none;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  text-shadow: 0 1px 14px rgba(0,0,0,.7);
  transition: color .3s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-brand span { text-shadow: 0 1px 14px rgba(0,0,0,.7); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px; padding: 9px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- full-bleed photo sections ---------- */
.photo {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: var(--card);
}
.bg-wrap { position: absolute; inset: 0; overflow: hidden; }
.bg {
  position: absolute; inset: -8% 0;
  background-size: cover; background-position: center;
  transform: scale(1.0);
  transition: transform 9s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.photo.in .bg { transform: scale(1.05); }
.photo.wide .bg,
.photo.wide.in .bg { transform: scale(1.0); }

.fade-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5,11,24,0) 0%, rgba(5,11,24,.55) 55%, var(--card) 100%);
}
.fade-top {
  position: absolute; left: 0; right: 0; top: 0; height: 22vh; pointer-events: none;
  background: linear-gradient(to top, rgba(5,11,24,0) 0%, rgba(5,11,24,.5) 60%, var(--card) 100%);
}

.photo-copy {
  position: relative; z-index: 2;
  padding: 0 clamp(20px, 6vw, 96px);
  max-width: 1100px;
}
.photo-copy.low { padding-bottom: clamp(72px, 14vh, 150px); }
.photo-copy.center {
  align-self: center; text-align: center;
  padding-bottom: 0; margin: auto 0;
}

/* ---------- hero ---------- */
.hero { justify-content: center; }
.hero .fade-top { height: 30vh; }
.hero-inner {
  position: relative; z-index: 2; text-align: center;
  padding: 0 24px;
}
.hero-kicker {
  font-size: 12px; letter-spacing: .38em; text-transform: uppercase;
  color: var(--ink-dim); font-weight: 400;
}
.hero-title {
  margin-top: 18px;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 600; letter-spacing: .10em; line-height: 1;
}
.hero-line {
  margin-top: 18px;
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 300; letter-spacing: .02em; color: var(--ink);
}
.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-faint); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue span {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(238,241,246,0), rgba(238,241,246,.7));
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- shared type ---------- */
.kicker {
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 400; margin-bottom: 18px;
}
.statement {
  font-size: clamp(26px, 4.4vw, 52px);
  font-weight: 200; line-height: 1.3; letter-spacing: .015em;
}
.statement.small { font-size: clamp(22px, 3.2vw, 40px); }

/* ---------- solid cards ---------- */
.card { background: var(--card); position: relative; z-index: 3; }
.card-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 11vh, 130px) clamp(22px, 5vw, 40px);
}
.card-inner.wide { max-width: 1040px; }
/* two black cards in a row share one gap, not two paddings */
.card + .card > .card-inner { padding-top: clamp(24px, 4vh, 44px); }
.card-head {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 300; line-height: 1.35; margin-bottom: 30px;
}
.body {
  color: var(--ink-dim);
  font-size: clamp(15.5px, 1.35vw, 18px);
  margin-bottom: 22px;
}
.body-lg {
  color: var(--ink);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 300; line-height: 1.6; margin-bottom: 26px;
}
.list { list-style: none; }
.list li {
  padding-left: 26px; position: relative; margin-bottom: 16px;
}
.list li::before {
  content: ""; position: absolute; left: 2px; top: .72em;
  width: 10px; height: 1px; background: var(--accent);
}
.explore {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 10px;
  color: var(--ink); text-decoration: none;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase; font-weight: 400;
  border: 1px solid rgba(238,241,246,.28);
  padding: 13px 22px;
  transition: border-color .3s ease, background .3s ease;
}
.explore:hover { border-color: rgba(238,241,246,.7); background: rgba(238,241,246,.05); }
.explore span { transition: transform .3s ease; }
.explore:hover span { transform: translateX(4px); }

/* ---------- the problem: four statements ---------- */
.problem { list-style: none; margin: 8px 0 34px; border-top: 1px solid var(--rule); }
.problem li {
  display: grid; grid-template-columns: 150px 1fr; gap: 10px 32px;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.problem .p-num {
  font-size: clamp(30px, 3.4vw, 44px); font-weight: 200; line-height: 1;
  color: var(--accent); letter-spacing: -.01em;
}
.problem .p-label {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 400; margin: 6px 0 0;
}
.problem .p-head { color: var(--ink); font-size: clamp(17px, 1.6vw, 21px); font-weight: 400; margin-bottom: 8px; }
.problem .p-body { color: var(--ink-dim); font-size: clamp(15px, 1.3vw, 17px); margin: 0; }

/* ---------- headline figure ---------- */
.figure {
  display: grid; grid-template-columns: auto 1fr; gap: 18px 30px; align-items: center;
  padding: 30px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin: 10px 0 30px;
}
.figure .f-num {
  font-size: clamp(56px, 7vw, 96px); font-weight: 200; line-height: 1;
  color: var(--accent); letter-spacing: -.02em;
}
.figure .f-label {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 400; margin-bottom: 8px;
}
.figure .f-text { color: var(--ink); font-size: clamp(16px, 1.5vw, 20px); font-weight: 300; margin: 0; }

/* ---------- charts on the dark ground ---------- */
.chart { margin: 34px 0 0; padding-top: 34px; border-top: 1px solid var(--rule); }
.chart h4 { font-size: clamp(19px, 2vw, 24px); font-weight: 400; margin-bottom: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--ink-dim); margin: 6px 0 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.chart figure { margin: 0; }
.chart .plot { overflow-x: auto; }
.chart .plot > svg { display: block; width: 100%; height: auto; overflow: visible; aspect-ratio: 800/378; }
.chart figcaption { font-size: 13px; color: var(--ink-faint); margin: 10px 0 0; }
.takeaway {
  margin: 22px 0 0; padding: 18px 22px;
  border-left: 2px solid var(--accent); background: rgba(126,200,232,.06);
}
.takeaway .tk-label {
  display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent); font-weight: 400; margin-bottom: 7px;
}
.takeaway p { margin: 0; color: var(--ink); font-size: clamp(15.5px, 1.35vw, 18px); }
details { margin-top: 16px; font-size: 14px; color: var(--ink-dim); }
details summary { cursor: pointer; color: var(--ink-faint); letter-spacing: .05em; }
details table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
details th, details td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
details th { color: var(--ink-faint); font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- ranked and sorted, the animated queue ---------- */
.rq-card { margin: 34px 0 0; padding-top: 34px; border-top: 1px solid var(--rule); }
.rq-label { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-faint); font-weight: 400; margin-bottom: 18px; }
.rq-card h4 { font-size: clamp(19px, 2vw, 24px); font-weight: 400; margin: 0 0 12px; }
.rq-sub { color: var(--ink-dim); font-size: clamp(15.5px, 1.35vw, 18px); margin: 0 0 22px; }
.rq-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--ink-dim); margin: 0 0 18px; }
.rq-legend span { display: inline-flex; align-items: center; gap: 9px; }
.rq-swatch { display: inline-block; width: 22px; height: 5px; border-radius: 3px; flex: 0 0 auto; }
.rq-phase { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 10px; min-height: 17px; transition: color .5s ease; }
.rq-stage.is-ranked .rq-phase { color: var(--accent); }
.rq-plot { position: relative; margin: 0; }
.rq-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.rq-plot rect.bar { will-change: transform; }
.rq-plot .bracket { opacity: 0; transition: opacity .55s ease; }
.rq-stage.is-ranked .rq-plot .bracket { opacity: 1; }
.rq-foot { display: flex; margin-top: 14px; opacity: 0; transition: opacity .55s ease .1s; }
.rq-stage.is-ranked .rq-foot { opacity: 1; }
.rq-foot b { font-size: 15px; line-height: 1.45; display: block; padding-right: 18px; font-weight: 400; }
.rq-foot .lead b { color: #ff7ee0; }
.rq-foot .rest b { color: var(--ink-dim); }
.rq-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-top: 22px; }
.rq-cap { font-size: 13px; color: var(--ink-faint); line-height: 1.55; max-width: 84ch; margin: 0; }
.rq-replay { font-family: inherit; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); background: none; border: 0; padding: 8px 0 8px 20px; cursor: pointer; white-space: nowrap; }
.rq-replay:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .rq-plot rect.bar { transition: none !important; } .rq-replay { display: none; } }
@media (max-width: 760px) { .rq-foot { display: block; } .rq-foot .lead, .rq-foot .rest { width: auto !important; margin-left: 0 !important; } .rq-foot .rest b { margin-top: 8px; } }

/* ---------- process steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 8px 0 34px; }
.steps li { border-top: 1px solid var(--rule); padding-top: 20px; }
.steps .s-num { font-size: 11px; letter-spacing: .3em; color: var(--accent); }
.steps .s-head { font-size: clamp(19px, 2vw, 24px); font-weight: 300; margin: 8px 0 10px; }
.steps p { color: var(--ink-dim); font-size: clamp(15px, 1.3vw, 17px); margin: 0; }

/* ---------- archives ---------- */
.archives { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 8px 0 30px; }
.archives li { border-top: 1px solid var(--rule); padding-top: 20px; }
.archives .a-name { font-size: clamp(18px, 1.8vw, 22px); font-weight: 400; }
.archives .a-pub { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-faint); margin: 6px 0 14px; }
.archives p { color: var(--ink-dim); font-size: clamp(14.5px, 1.2vw, 16px); margin: 0 0 14px; }
.archives dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.archives dt { color: var(--ink-faint); }
.archives dd { color: var(--ink); }
.note { font-size: 13.5px; color: var(--ink-faint); margin-top: 10px; }

/* ---------- finale + footer ---------- */
.finale { min-height: 80svh; }
.finale .fade-bottom { height: 46vh; }
.footer { margin-top: -1px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(40px, 7vh, 84px) clamp(22px, 5vw, 60px) clamp(30px, 4vh, 48px);
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: clamp(30px, 5vw, 80px);
  flex-wrap: wrap;
}
.footer-brand { flex: 1 1 320px; min-width: 260px; max-width: 520px; }
.footer-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.footer-lockup img { height: 34px; width: auto; border-radius: 7px; }
.footer-lockup span { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 600; font-size: 23px; letter-spacing: .08em; }
.footer-closer { font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; line-height: 1.3; margin-bottom: 8px; }
.footer-sub { font-size: 14px; color: var(--ink-dim); margin-bottom: 18px; }
.footer-philosophy {
  font-size: clamp(14.5px, 1.3vw, 16.5px);
  font-weight: 300; line-height: 1.8; color: var(--ink-dim); margin: 0 0 14px;
}
.footer-found { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.footer-col { flex: 0 1 auto; min-width: 138px; }
.footer-h {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink); font-weight: 400; margin-bottom: 16px;
}
.footer-ph { font-size: 14px; color: var(--ink-faint); margin-bottom: 9px; }
.footer-ph a { color: var(--ink-dim); text-decoration: none; transition: color .3s ease; }
.footer-ph a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 18px; align-items: center; margin-top: 6px; }
.footer-social a { display: inline-flex; width: 20px; height: 20px; color: var(--ink-faint); transition: color .3s ease; }
.footer-social a:hover { color: var(--ink); }
.footer-social svg { width: 100%; height: 100%; fill: currentColor; display: block; }
/* parent company strip: the Anum Ventures lockup and one sentence, one link */
.footer-parent {
  max-width: 1180px; margin: 0 auto;
  padding: 34px clamp(22px, 5vw, 60px);
  border-top: 1px solid var(--rule);
}
.footer-parent a {
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); flex-wrap: wrap;
  text-decoration: none; color: var(--ink-dim); transition: color .3s ease;
}
.footer-parent a:hover { color: var(--ink); }
.footer-parent img { height: 42px; width: auto; display: block; opacity: .92; }
.footer-parent span { font-size: clamp(15px, 1.4vw, 18px); font-weight: 300; letter-spacing: .01em; }
.footer-bar {
  max-width: 1180px; margin: 0 auto;
  padding: 22px clamp(22px, 5vw, 60px) clamp(40px, 7vh, 72px);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px 28px;
}
.footer-bar span, .footer-bar a {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-faint); text-decoration: none;
}
.footer-inception { display: inline-flex; align-items: center; gap: 14px; }
.footer-inception img { height: 30px; width: auto; display: block; opacity: .85; }
.footer-legal { max-width: 1180px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 60px) 40px; }
.footer-legal p { font-size: 11.5px; line-height: 1.6; color: rgba(238,241,246,.35); max-width: 640px; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s ease, transform 1.1s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg, .photo.in .bg { transform: none; transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- tablet / small screens ---------- */
@media (max-width: 860px) {
  :root { --nav-h: 82px; }
  .nav { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: rgba(5,11,24,.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--rule);
    padding: 8px 20px 18px;
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a {
    padding: 15px 0; font-size: 13px; letter-spacing: .22em;
    border-bottom: 1px solid rgba(238,241,246,.06);
  }
  .steps, .archives { grid-template-columns: 1fr; }
  .footer-brand { flex-basis: 100%; margin-bottom: 4px; }
  .footer-col { flex: 1 1 140px; }
}

/* ---------- phone ---------- */
@media (max-width: 560px) {
  .photo { min-height: 0; height: 94vw; }
  .hero { min-height: 0; height: 86svh; }
  .finale { min-height: 0; height: 96vw; }
  .photo .fade-bottom { height: 52%; }
  .photo .fade-top { height: 26%; }

  /* per-image focal points for the narrow crop; the street scene has its own tall file */
  [data-img="hero"] .bg        { background-position: 62% 40%; }
  [data-img="city"] .bg        { background-image: url('/assets/city-label-science-tall.jpg') !important; background-position: center 55%; }
  [data-img="city"]            { height: 130vw; }
  [data-img="pedestrians"] .bg { background-position: center 46%; }
  [data-img="drive"] .bg       { background-position: 45% 50%; }
  [data-img="finale"] .bg      { background-position: 62% 40%; }

  .photo-copy { padding: 0 24px; }
  .photo-copy.low { padding-bottom: clamp(24px, 4vh, 44px); }
  .card-inner { padding-top: clamp(28px, 4vh, 44px); padding-bottom: clamp(44px, 7vh, 72px); }
  .card-inner, .card-inner.wide { padding-left: 24px; padding-right: 24px; }
  .hero-title { letter-spacing: .06em; }
  .statement { font-size: clamp(24px, 6.6vw, 34px); }
  .problem li { grid-template-columns: 1fr; gap: 6px; }
  .figure { grid-template-columns: 1fr; gap: 10px; }
  .chart .plot > svg { min-width: 640px; }
  .footer-inner { gap: 30px 36px; }
  .footer-col { flex-basis: 100%; }
  .footer-bar { justify-content: flex-start; }
}
