/* f7 Ventures — Concept D (Ledger + founder-forward) */
:root {
  --maroon: #B40F0C;
  --maroon-dark: #6B0907;
  --maroon-deep: #3A0605;
  --charcoal: #2B2A29;
  --latte: #F3ECE2;
  --white: #FFFFFF;
  --ink: #2B2A29;
  --ink-soft: #5E5A56;      /* charcoal tint for secondary text */
  --rule: #2B2A29;
  --rule-soft: rgba(43, 42, 41, .16);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
em { font-style: italic; color: var(--maroon); }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 99; }

.eyebrow {
  font: 500 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--maroon);
}

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.masthead__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo-slot { text-decoration: none; color: #000; display: inline-flex; align-items: center; }
.logo-slot img { height: 46px; width: auto; }
.logo-slot--latte img { height: 54px; }
.logo-stand-in {
  font: italic 600 1.6rem/1 var(--serif); letter-spacing: -.01em;
  padding: .2rem .5rem; border: 1px dashed currentColor; border-radius: 2px;
}
.logo-slot--latte { color: var(--latte); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }
.nav a {
  font: 500 .8125rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--charcoal); position: relative; padding: .5rem 0;
  transition: color .2s var(--ease);
}
.nav a:not(.nav__icon)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--maroon); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--maroon); }
.nav a:hover::after { transform: scaleX(1); }
.nav__icon { display: inline-flex; padding: .5rem; }
.nav__icon:last-child { margin-right: -.5rem; }
.nav__icon + .nav__icon { margin-left: calc(-1 * clamp(1rem, 3vw, 2.25rem) + .25rem); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3.5rem, 9vw, 7.5rem); }
.hero .eyebrow { margin-bottom: 1.5rem; }
.hero__title {
  font: 500 clamp(2.6rem, 7vw, 5.75rem)/1.04 var(--serif);
  letter-spacing: -.025em; color: var(--charcoal);
}
.hero__title em { font-weight: 500; }
.hero__rule { margin: clamp(2rem, 5vw, 3.5rem) 0 1.25rem; height: 1px; background: var(--rule); position: relative; }
.hero__rule span { position: absolute; left: 0; top: -2px; width: 72px; height: 5px; background: var(--maroon); }
.hero__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .75rem 1.5rem; padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero__sub { font: 400 1.0625rem/1.5 var(--sans); color: var(--ink-soft); }
.hero__jump {
  margin-left: auto; font: 500 .8125rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--maroon); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.hero__jump:hover { color: var(--maroon-dark); }

/* Founder face band */
.faceband { background: var(--maroon-deep); overflow: hidden; padding: 1.25rem 0; }
.faceband__track { display: flex; gap: .75rem; width: max-content; animation: drift 80s linear infinite; }
.faceband:hover .faceband__track { animation-play-state: paused; }
.face {
  width: 96px; height: 96px; flex: none; overflow: hidden; background: var(--maroon-dark); border-radius: 20px;
}
.face img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.face:hover img { transform: scale(1.06); }
.face.is-placeholder { display: grid; place-items: center; font: italic 500 1.4rem/1 var(--serif); color: rgba(243, 236, 226, .55); }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .faceband__track { animation: none; } }

/* ---------- Section heads ---------- */
.section-title {
  font: 500 clamp(2rem, 4.4vw, 3.25rem)/1.08 var(--serif); letter-spacing: -.02em; color: var(--charcoal);
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule);
}
.section-note { color: var(--ink-soft); font-size: .9375rem; max-width: 34ch; text-align: right; }

/* ---------- Portfolio ledger ---------- */
.portfolio { padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6rem); }
.ledger { position: relative; z-index: 0; }

/* shared row parts */
.row {
  position: relative; display: grid; column-gap: clamp(1rem, 2.2vw, 1.75rem); row-gap: .5rem;
  padding: clamp(1.5rem, 2.4vw, 2rem) 0; border-bottom: 1px solid var(--rule-soft);
}
.row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -.6); background: var(--latte);
  opacity: 0; transition: opacity .35s var(--ease); z-index: -1; border-radius: 6px;
}
.row:hover::before { opacity: 1; }
.row--acq:not(.row--acq ~ .row--acq) { border-top: 1px solid var(--rule); margin-top: -1px; }

.r-logo { grid-area: logo; }
.r-id { grid-area: id; display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; min-width: 0; }
.r-founders { grid-area: founders; min-width: 0; }
.r-line { grid-area: line; font: 400 1.2rem/1.45 var(--serif); color: var(--charcoal); letter-spacing: -.005em; }
.r-careers { grid-area: careers; justify-self: start; align-self: start; }

.tile {
  --t: 64px; flex: none; display: grid; place-items: center; width: var(--t); height: var(--t);
  overflow: hidden; border-radius: 18px; background: var(--latte);
  box-shadow: 0 0 0 1px var(--rule-soft);
  transition: transform .4s var(--ease), box-shadow .3s var(--ease);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile--logo { background: var(--white); text-decoration: none; }
.tile--logo img { object-fit: contain; }
.tile--face.is-placeholder { font: italic 500 1.1rem/1 var(--serif); color: var(--maroon); }
.row:hover .tile { box-shadow: 0 0 0 1px rgba(43,42,41,.2), 0 8px 18px -12px rgba(43,42,41,.45); }
.row:hover .tile--face img { transform: scale(1.07); }
.row:hover .tile--face.is-placeholder { background: var(--white); }
.logo-ph { font: italic 600 1.35rem/1 var(--serif); color: var(--maroon); }

.r-faces { display: flex; flex-wrap: wrap; gap: .6rem; }
.r-face { display: flex; flex-direction: column; gap: .4rem; }
.r-cap { display: none; font: 500 .75rem/1.3 var(--sans); color: var(--charcoal); }
.r-people { font: 400 .8125rem/1.4 var(--sans); color: var(--ink-soft); }

.row__name { font: 600 1.4rem/1.15 var(--serif); letter-spacing: -.01em; color: var(--charcoal); }
.row__name a { text-decoration: none; transition: color .2s; }
.row__name a:hover, .row:hover .row__name a { color: var(--maroon); }

.tag-acq {
  display: inline-block; padding: .3rem .55rem; white-space: nowrap; border-radius: 999px;
  font: 500 .625rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--maroon-dark); background: var(--latte); border: 1px solid rgba(107, 9, 7, .25);
}
.row:hover .tag-acq { background: var(--white); }

.careers {
  font: 500 .8125rem/1 var(--sans); letter-spacing: .02em;
  color: var(--maroon); text-decoration: none; border-bottom: 1px solid rgba(180, 15, 12, .35); padding-bottom: 3px;
  transition: border-color .2s, color .2s;
}
.careers span { display: inline-block; transition: transform .25s var(--ease); }
.careers:hover { color: var(--maroon-dark); border-color: currentColor; }
.careers:hover span { transform: translateX(3px); }


/* ---- Portfolio row: compact line, overlapping founder avatars on the right ---- */
.row {
  grid-template-columns: 56px minmax(150px, 210px) minmax(0, 1fr) 210px;
  grid-template-areas: "logo id line founders" "logo id careers founders";
  grid-template-rows: auto auto; align-items: center; row-gap: .35rem;
}
.r-logo { --t: 56px; border-radius: 16px; }
.r-line { align-self: end; }
.r-careers { align-self: start; }
.r-founders { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; text-align: right; }
.r-faces { flex-wrap: nowrap; gap: 0; }
.r-face + .r-face { margin-left: -12px; }
.tile--face { --t: 54px; border-radius: 999px; box-shadow: 0 0 0 3px var(--white); }
.row:hover .tile--face { box-shadow: 0 0 0 3px var(--latte); }
.r-people { font-size: .75rem; }
.row__name { font-size: 1.25rem; }
.r-line { font-size: 1.1rem; }


/* ---------- Team (latte, subdued) ---------- */
.team { background: var(--latte); padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5rem); }
.team__head { display: flex; flex-direction: column; gap: .75rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.team .section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.member { display: flex; align-items: center; gap: 1rem; }
.member__img { flex: 0 0 auto; display: block; width: 80px; height: 80px; overflow: hidden; background: var(--white); border-radius: 14px; }
.member__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(.2); transition: filter .4s; }
.member:hover .member__img img { filter: none; }
.member__img.is-placeholder { display: grid; place-items: center; font: italic 500 1.25rem/1 var(--serif); color: var(--maroon); }
.member__text { min-width: 0; }
.member__name { font: 500 1rem/1.25 var(--serif); color: var(--charcoal); }
.member__role { margin-top: .25rem; font-size: .8125rem; line-height: 1.35; color: var(--ink-soft); }
.member__li { display: inline-block; margin-top: .4rem; font: 500 .6875rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--maroon); text-decoration: none; }
.member__li:hover { color: var(--maroon-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer (charcoal) ---------- */
.footer { background: var(--charcoal); color: rgba(243, 236, 226, .78); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; }
.footer a { color: var(--latte); text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(243, 236, 226, .16); }
.footer__links { display: flex; gap: clamp(2rem, 5vw, 4rem); flex-wrap: wrap; }
.footer__links p { display: flex; flex-direction: column; gap: .5rem; font-size: .9375rem; }
.footer__label { font: 500 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 236, 226, .5); }
.footer__pf { margin: 2rem 0 1.75rem; font: italic 400 1.0625rem/1.5 var(--serif); color: var(--latte); }
.footer__pf a { border-bottom: 1px solid rgba(243, 236, 226, .4); }
.footer__legal { font-size: .75rem; line-height: 1.65; color: rgba(243, 236, 226, .55); max-width: 92ch; }
.footer__legal strong { font-weight: 500; color: rgba(243, 236, 226, .75); }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; font-size: .75rem; color: rgba(243, 236, 226, .5); }

/* ---------- Responsive ---------- */
.br-desk { display: inline; }

@media (max-width: 1000px) {
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "logo id founders" "line line line" "careers careers careers"; }
  .r-line { padding-top: .5rem; }
}

@media (max-width: 720px) {
  .br-desk { display: none; }
  .nav { gap: 1.1rem; }
  .nav__icon + .nav__icon { margin-left: -.85rem; }
  .section-note { text-align: left; }
  .row::before { inset: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .row { column-gap: .9rem; }
  .tile { --t: 52px; border-radius: 14px; }
  .row__name { font-size: 1.25rem; }
  .r-line { font-size: 1.0625rem; }
  .r-id { padding-top: 0; align-self: center; }
  .r-line { padding-top: 0; }
  .row { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "logo id founders" "line line line" "careers careers careers"; row-gap: .6rem; }
  .r-people { display: none; }
  .tile--face { --t: 42px; border-radius: 999px; }
  .r-face + .r-face { margin-left: -10px; }
  .team__grid { grid-template-columns: 1fr; gap: 1rem; }
  .member__img { width: 64px; height: 64px; border-radius: 12px; }
  .face { width: 76px; height: 76px; border-radius: 16px; }
  .footer__base { flex-direction: column; }
}
