/* ===========================================================
   KollectiveLabs — marketing site · PROPOSAL V2
   Editorial serif direction. Sentence case throughout.
   Newsreader (display/serif) + Hanken Grotesk (body).
   The main messages are given room to breathe.
   =========================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body);
  font-size: 17px; line-height: 1.62; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* ===========================================================
   THEME TOKENS — warm paper, institutional blue accent
   =========================================================== */
:root {
  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 96px);
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-head: 'Newsreader', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --bg:        #f5f2ec;
  --surface:   #fbf9f4;
  --surface-2: #ece7dd;
  --ink:       #23211c;
  --ink-soft:  #3e3a33;
  --muted:     #6a665e;
  --line:      #ddd6c8;
  --line-soft: #e8e2d5;
  --accent:    #41657f;
  --accent-deep:#2f4d63;
  --accent-soft:#9fbcd0;
  --accent-on: #ffffff;

  --head-weight: 500;
  --head-tracking: -0.012em;
  --label-tracking: 0.22em;
  --radius: 4px;
}

/* ===========================================================
   LAYOUT PRIMITIVES
   =========================================================== */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(60px, 7vw, 116px); position: relative; }
.section--tint { background: var(--surface); }
.section--alt  { background: var(--surface-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: var(--label-tracking); text-transform: uppercase;
  color: var(--accent); font-weight: 400;
}
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 28px; margin-bottom: clamp(34px, 4vw, 60px); }
.section-head .eyebrow { display: block; margin-bottom: 20px; }
.section-title {
  font-family: var(--font-head); font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking); line-height: 1.04;
  font-size: clamp(36px, 5.2vw, 66px); text-wrap: balance; color: var(--ink); }
.section-title em { font-style: italic; color: var(--accent); }
.section-note { max-width: 36ch; color: var(--muted); font-size: 15.5px;
  font-family: var(--font-head); font-style: italic; font-size: 18px; line-height: 1.5; color: var(--ink-soft); }

.rule { height: 1px; background: var(--line); border: 0; }

/* ===========================================================
   TOP BAR
   =========================================================== */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut); transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent; }
.topbar.scrolled { background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.1); border-bottom-color: var(--line); padding-block: 13px; }

.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.brand-mark { width: auto; height: 24px; flex: none; display: block; }
.brand-word { font-family: 'Jost', system-ui, sans-serif; text-transform: uppercase;
  font-weight: 400; font-size: 15px; letter-spacing: .17em; color: var(--ink); white-space: nowrap; }
.brand--footer .brand-mark { filter: invert(1); }
.brand--footer .brand-word { color: var(--bg); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--ink-soft); letter-spacing: .005em;
  position: relative; padding-block: 4px; transition: color .25s; }
.nav-links a::after { content:''; position:absolute; left:0; bottom:0; width:100%; height:1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.btn { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; white-space: nowrap;
  font-size: 14px; font-weight: 500; letter-spacing: .005em;
  padding: 12px 22px; border-radius: 100px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.nav-toggle { display: none; }

/* ---------- LinkedIn icon links ---------- */
.li-link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted); flex: none; cursor: pointer;
  transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease); }
.li-link:hover { color: var(--accent-on); background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.li-link svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.li-link--sm { width: 32px; height: 32px; }
.li-link--sm svg { width: 14px; height: 14px; }
/* dark surfaces (footer, contact) */
.footer .li-link, .contact .li-link {
  color: color-mix(in srgb, var(--bg) 62%, transparent);
  border-color: color-mix(in srgb, var(--bg) 22%, transparent); }
.footer .li-link:hover, .contact .li-link:hover {
  color: var(--accent-on); background: var(--accent); border-color: var(--accent); }
.founder-head { display: flex; align-items: center; gap: 14px; }
.partner-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.footer-social { display: flex; align-items: center; gap: 12px; }

/* ===========================================================
   HERO — the headline gets the room it deserves
   =========================================================== */
.hero { padding-top: clamp(128px, 15vh, 178px); padding-bottom: clamp(54px, 6vw, 88px);
  position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(34px, 5.5vw, 84px); align-items: end; }
.hero-eyebrow { margin-bottom: 26px; }
.hero-title { font-family: var(--font-head); font-weight: 460;
  letter-spacing: -0.022em; line-height: .96;
  font-size: clamp(50px, 8.2vw, 116px); color: var(--ink); text-wrap: balance; }
.hero-title .ln { display: block; }
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub { margin-top: clamp(26px, 2.6vw, 36px); max-width: 26ch;
  font-family: var(--font-head); font-style: italic; font-weight: 420;
  font-size: clamp(21px, 2vw, 28px); line-height: 1.36; color: var(--ink-soft); text-wrap: balance; }
.hero-aside { display: flex; flex-direction: column; gap: 30px; padding-bottom: 6px; }
.hero-lede p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.62; }
.hero-lede p + p { margin-top: 18px; }
/* the "we don't just advise" line — pulled up as a serif statement */
.hero-lede .lede-lead { font-family: var(--font-head); font-size: 21px; line-height: 1.42;
  color: var(--ink); font-weight: 460; }
.hero-lede .lede-lead em { font-style: italic; color: var(--accent); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

.hero-meta { margin-top: clamp(44px, 5vw, 72px); display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border-block: 1px solid var(--line); }
.hero-meta .cell { background: var(--bg); padding: 38px 24px 38px 0; }
.hero-meta .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hero-meta .v { font-family: var(--font-head); font-size: clamp(22px, 2.1vw, 30px);
  font-weight: var(--head-weight); color: var(--ink); line-height: 1.05; }

/* ===========================================================
   MANIFESTO BAND — one big idea, full editorial weight
   (built from existing copy, not new content)
   =========================================================== */
.manifesto { background: var(--ink); color: var(--bg); }
.manifesto .wrap { padding-block: clamp(64px, 8vw, 128px); }
.manifesto .eyebrow { color: var(--accent-soft); display:block; margin-bottom: 30px; }
.manifesto-line { font-family: var(--font-head); font-weight: 420;
  font-size: clamp(30px, 4.6vw, 62px); line-height: 1.14; letter-spacing: -0.018em;
  color: var(--bg); text-wrap: balance; max-width: 20ch; }
.manifesto-line em { font-style: italic; color: var(--accent-soft); }

/* ===========================================================
   CAPABILITIES
   =========================================================== */
.cap-list { border-top: 1px solid var(--line); }
.cap { display: grid; grid-template-columns: 54px 1fr 1.7fr; gap: clamp(14px, 2.2vw, 36px);
  align-items: start; padding: clamp(22px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--line);
  position: relative; transition: background .35s var(--ease); }
.cap::before { content:''; position:absolute; inset:0; background: var(--surface);
  opacity:0; transition: opacity .35s var(--ease); z-index:-1; }
.cap:hover::before { opacity:1; }
.cap-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  padding-top: 8px; letter-spacing: .05em; }
.cap-title { font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: clamp(22px, 2.1vw, 29px); line-height: 1.14; letter-spacing: var(--head-tracking); color: var(--ink); }
.cap-desc { color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 52ch; }
.cap:hover .cap-title { color: var(--accent); }

/* ===========================================================
   CASE STUDIES (accordion)
   =========================================================== */
.cases { border-top: 1px solid var(--line); }
.case { border-bottom: 1px solid var(--line); }
.case-row { display: grid; grid-template-columns: 70px 1fr auto; gap: clamp(14px,2.5vw,40px);
  align-items: center; width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: clamp(24px, 2.8vw, 36px) 0; color: inherit; font: inherit; }
.case-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .05em; }
.case-head { display: flex; flex-direction: column; gap: 8px; }
.case-name { font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: clamp(23px, 2.6vw, 36px); line-height: 1.05; letter-spacing: var(--head-tracking);
  color: var(--ink); transition: color .3s; }
.case-meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }
.case-toggle { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; flex: none; transition: background .3s, border-color .3s, transform .3s; }
.case-toggle span { position: relative; width: 13px; height: 13px; }
.case-toggle span::before, .case-toggle span::after { content:''; position:absolute; background: var(--ink);
  transition: transform .35s var(--ease), background .3s; }
.case-toggle span::before { left: 0; top: 6px; width: 13px; height: 1.5px; }
.case-toggle span::after  { left: 6px; top: 0; width: 1.5px; height: 13px; }
.case[aria-expanded="true"] .case-toggle { background: var(--accent); border-color: var(--accent); }
.case[aria-expanded="true"] .case-toggle span::before { background: var(--accent-on); }
.case[aria-expanded="true"] .case-toggle span::after { transform: scaleY(0); }
.case-row:hover .case-name { color: var(--accent); }
.case-row:hover .case-toggle { border-color: var(--ink); }

.case-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.case[aria-expanded="true"] .case-body { grid-template-rows: 1fr; }
.case-body-inner { overflow: hidden; }
.case-detail { display: grid; grid-template-columns: 70px 1fr; gap: clamp(14px,2.5vw,40px);
  padding-bottom: clamp(30px, 3.2vw, 46px); }
.case-detail p { grid-column: 2; color: var(--ink-soft); font-size: 16.5px; line-height: 1.68; max-width: 68ch; }
.case-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px;
  background: var(--surface); }

/* ===========================================================
   ABOUT + QUOTE
   =========================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 6vw, 100px); align-items: start; }
.about-copy p { color: var(--ink-soft); font-size: 17.5px; line-height: 1.72; }
.about-copy p + p { margin-top: 22px; }
.quote { font-family: var(--font-head); font-weight: 420; font-style: italic;
  font-size: clamp(28px, 3.6vw, 48px); line-height: 1.2; letter-spacing: var(--head-tracking);
  color: var(--ink); text-wrap: balance; }
.quote .accent { color: var(--accent); }
.quote-cite { margin-top: 28px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quote-cite--lead { margin-top: 0; margin-bottom: 22px; color: var(--accent); }

/* ===========================================================
   FOUNDER
   =========================================================== */
.founder-grid { display: grid; grid-template-columns: 288px 1fr; gap: clamp(30px, 3.6vw, 60px); align-items: start; }
.portrait { aspect-ratio: 5/6; max-width: 288px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); position: relative; overflow: hidden; position: sticky; top: 96px;
  margin-top: var(--portrait-offset, 0px); transition: margin-top .3s var(--ease); }
.portrait .ph-label { position: absolute; left: 14px; bottom: 14px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.portrait .ph-grid { position: absolute; inset: 0; opacity: .5;
  background-image: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 11px); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.founder-name { font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: var(--head-tracking); color: var(--ink); }
.founder-role { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-top: 14px; }
.founder-bio { margin-top: 26px; }
.founder-bio p { color: var(--ink-soft); font-size: 16px; line-height: 1.66; }
.founder-bio p + p { margin-top: 16px; }
.boards { margin-top: clamp(34px, 3.4vw, 52px); padding-top: clamp(30px, 3vw, 44px); border-top: 1px solid var(--line); }
.boards-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px; }
.board-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(24px, 3vw, 48px); row-gap: 0; }
.board-item { display: flex; flex-direction: column; gap: 5px; padding: 16px 0;
  border-top: 1px solid var(--line-soft); }
.board-item:nth-child(-n+3) { border-top: 0; padding-top: 0; }
.board-org { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 17px;
  letter-spacing: var(--head-tracking); color: var(--ink); line-height: 1.18; }
.board-desc { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ===========================================================
   PARTNERS
   =========================================================== */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
.partner { display: flex; flex-direction: column; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.partner:hover { transform: translateY(-4px); box-shadow: 0 26px 54px -36px var(--ink); border-color: var(--line-soft); }
.partner-ph { aspect-ratio: 4/5; background: var(--surface-2); position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.partner-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  transition: transform .5s var(--ease); }
.partner:hover .partner-ph img { transform: scale(1.03); }
.partner-ph .ph-grid { position:absolute; inset:0; opacity:.45;
  background-image: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 11px); }
.partner-ph .init { position:absolute; inset:0; display:grid; place-items:center;
  font-family: var(--font-head); font-size: clamp(42px,4.5vw,62px); font-weight: var(--head-weight); color: var(--muted); opacity:.6; }
.partner-body { padding: clamp(24px, 2vw, 32px) clamp(22px, 2vw, 28px) clamp(28px, 2.4vw, 34px);
  display: flex; flex-direction: column; flex: 1; }
.partner-name { font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: clamp(23px, 1.9vw, 28px); letter-spacing: var(--head-tracking); color: var(--ink); line-height: 1.06; }
.partner-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent); margin-top: 12px; line-height: 1.5; }
.partner-bio { margin-top: 17px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.64; }
.partner-tags { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 7px; }
.partner-tags--stack { flex-direction: column; align-items: flex-start; }
.partners-note { margin-top: 8px; }

/* ===========================================================
   CONTACT / FOOTER
   =========================================================== */
.contact { background: var(--accent-deep); color: var(--bg); }
.contact .eyebrow { color: var(--accent-soft); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(38px,5vw,84px); align-items: end; }
.contact-title { font-family: var(--font-head); font-weight: 420;
  font-size: clamp(46px, 6.4vw, 96px); line-height: 1.0; letter-spacing: -0.02em;
  color: var(--bg); text-wrap: balance; }
.contact-title em { font-style: italic; color: var(--accent-soft); }
.contact-side { display: flex; flex-direction: column; gap: 24px; }
.contact-line { display: flex; flex-direction: column; gap: 6px; }
.contact-line .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 58%, transparent); }
.contact-line .v { font-size: 20px; font-family: var(--font-head); }
.contact-line a.v { border-bottom: 1px solid color-mix(in srgb, var(--bg) 35%, transparent); width: fit-content;
  padding-bottom: 2px; transition: border-color .3s; }
.contact-line a.v:hover { border-color: var(--accent-soft); }
.btn--invert { background: var(--bg); color: var(--accent-deep); border-color: var(--bg); }
.btn--invert:hover { box-shadow: 0 12px 30px -16px #000; }

.footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 60%, transparent);
  padding-block: 44px; border-top: 1px solid color-mix(in srgb, var(--bg) 16%, transparent); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }

/* ===========================================================
   SCROLL REVEAL
   =========================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-aside { margin-top: 10px; }
  .about-grid, .founder-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait { position: static; top: auto; max-width: 240px; }
  .board-list { grid-template-columns: repeat(2, 1fr); }
  .board-item:nth-child(-n+3) { border-top: 1px solid var(--line-soft); padding-top: 16px; }
  .board-item:nth-child(-n+2) { border-top: 0; padding-top: 0; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .cap { grid-template-columns: 54px 1fr; }
  .cap-desc { grid-column: 2; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .case-row { grid-template-columns: 48px 1fr auto; }
  .board-list { grid-template-columns: 1fr; }
  .board-item, .board-item:nth-child(-n+3) { border-top: 1px solid var(--line-soft); padding-top: 14px; }
  .board-item:first-child { border-top: 0; padding-top: 0; }
  .case-detail { grid-template-columns: 1fr; }
  .case-detail p, .case-tags { grid-column: 1; }
  .partners-grid { grid-template-columns: 1fr; max-width: 440px; }
  .partner-ph { aspect-ratio: 16/10; }
  .cap-desc { display: block; }
}
