/* ==========================================================================
   Homepage sections (index.html only), on top of the shared system in
   harmony.css: the giant opener, the portfolio cases that stack while
   scrolling, Our history and How we invest (big lines with small event
   photos), the photo slider, and the logo mosaic in the network box.
   ==========================================================================
/* opener */
.ohero { position: relative; z-index: 1; background: var(--paper); color: var(--navy); padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 8vw, 120px); overflow: clip; }
.ohero h1 { padding-inline: var(--side); font-family: var(--font-display); font-weight: 800; font-size: clamp(60px, 17vw, 300px); line-height: .86; letter-spacing: -.045em; text-wrap: balance; }
/* portfolio champions: full-screen cases that stack as you scroll */
.projects { padding: 0; }
.pcases { margin-top: 8px; }
.pcase { position: sticky; top: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); height: 100vh; min-height: 560px; padding: 10px var(--gutter);
         background: var(--beige); color: var(--navy); border-top: 1px solid rgba(8, 44, 78, .15); }
.pcase__media { position: relative; overflow: hidden; height: 100%; aspect-ratio: 4 / 5; max-width: 44vw; background: rgba(8, 44, 78, .08); }
.pcase__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 1.4s var(--ease); }
.pcase:hover .pcase__media img { transform: scale(1.03); }
.pcase__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 44, 78, 0) 55%, rgba(8, 44, 78, .45)); pointer-events: none; }
.pcase__logo { position: absolute; z-index: 1; left: 0; right: 0; bottom: 8%; margin: auto; width: 46%; height: 12%; background: var(--paper);
               -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.pcase__text { display: flex; flex-direction: column; justify-content: flex-start; gap: 44px; padding: 16px var(--side) 24px; overflow: hidden; }   /* room on both sides */
.pcase__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 7.2vw, 128px); line-height: .9; letter-spacing: -.03em; text-wrap: balance; }
.pcase__foot { border-top: 1px solid rgba(8, 44, 78, .25); padding-top: 20px; display: grid; gap: 14px; }
.pcase__meta { font-size: .9375rem; line-height: 1.35; opacity: .7; }
.pcase__meta span + span::before { content: " / "; }
.pcase__foot p { font-size: 1rem; line-height: 1.5; max-width: 62ch; }
.pcase__foot p + p { margin-top: -4px; }
/* a story taller than the screen: cards follow each other instead of stacking */
.pcases--flow .pcase { position: relative; height: auto; min-height: 100vh; }
.pcases--flow .pcase__media { height: auto; align-self: start; position: sticky; top: 10px; max-height: calc(100vh - 20px); }
.pcases--flow .pcase__text { overflow: visible; }

/* how we invest: stacked lines with founder photos (from the Romans draft) */
.nb { white-space: nowrap; }
.rstack { position: relative; z-index: 1; background: var(--paper); color: var(--navy); padding: clamp(96px, 11vw, 160px) var(--side) clamp(64px, 8vw, 120px); text-align: center; }
.rtag { display: inline-block; margin-bottom: 36px; padding: 6px 9px; border: 1px solid currentColor; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1; }
.rstack ul { list-style: none; display: grid; justify-items: center; }
.rstack li { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.8vw, 80px); line-height: 1.04; letter-spacing: -.035em; }
.rstack li:nth-child(odd) { transform: translateX(-6%); }
.rstack li:nth-child(even) { flex-direction: row-reverse; transform: translateX(6%); }
.rstack li img { width: auto; height: .8em; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; flex: none; transition: transform .5s var(--ease); }
.rstack li > span { display: inline-block; transition: transform .45s cubic-bezier(.19, 1, .22, 1); transform-origin: 50% 80%; }
.rstack li:hover > span { transform: skewX(-12deg); }                       /* the line leans into italics on hover */
.rstack li:hover img { transform: scale(1.08) rotate(-2deg); }
.rstack__pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 112px); text-align: left; border-top: 1px solid rgba(8, 44, 78, .2); }
.rstack__pillars div { padding: 24px 24px 0 0; }
.rstack__pillars div + div { padding-left: 24px; border-left: 1px solid rgba(8, 44, 78, .2); }
.rstack__pillars h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.rstack__pillars p { margin-top: 10px; font-size: 16px; line-height: 1.45; }
/* the logo mosaic, at the top of the yellow network box */
.network .net-logo { width: calc(100% - var(--side) - 8px); margin: 0 0 clamp(64px, 7vw, 104px) var(--side); }   /* left edge = the headline's left edge; runs nearly to the right edge */
.network .net-logo canvas { max-width: 100%; }

/* the network headline ("Potential multiplied.") needs the full width below 1280px: text and button go under the headline */
@media (max-width: 1279px) {
  .network .pintro { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .network .pintro__title { max-width: none; }
}
/* shorter laptop screens: a little less type so the story always fits the card */
@media (max-height: 780px) and (min-width: 861px) {
  .pcase__foot p { font-size: .9375rem; line-height: 1.45; }
}
/* phones, small tablets and very short screens: cases simply follow each other */
@media (max-height: 600px) and (min-width: 861px) { .pcase { position: relative; height: auto; } .pcase__media { height: 80vh; } }
/* phones and small tablets: cases simply follow each other, photo on top */
@media (max-width: 860px) {
  .pcase { grid-template-columns: 1fr; height: auto; min-height: 0; position: relative; padding: 10px var(--gutter) 48px; }
  .pcase__media { height: auto; width: 100%; max-width: none; }
  .pcase__text { padding: 20px var(--side) 0; }
}

@media (max-width: 900px) {
  .rstack li:nth-child(n) { transform: none; }
  .rstack__pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .rstack__pillars div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .rstack li { font-size: 8.6vw; }
  .rstack__pillars { grid-template-columns: 1fr; }
  .rstack__pillars div:nth-child(n) { padding: 20px 0 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .rstack li img, .rstack li > span { transition: none; } }

@media (max-height: 780px) and (min-width: 861px) { .pcase__foot p { font-size: 16px; line-height: 1.45; } }

/* our history: the same stacked style as how we invest, on yellow, three text columns */
.rstack--yellow { background: var(--yellow); }
.rstack__pillars--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rstack__pillars--3 div:first-child { padding-left: 0; }
@media (max-width: 900px) { .rstack__pillars--3 { grid-template-columns: minmax(0, 1fr); row-gap: 0; } .rstack__pillars--3 div:nth-child(n) { padding: 20px 0 0; border-left: 0; } }

/* photo slider between our history and how we invest: photos only, two small arrows */
.nslider-sec { position: relative; z-index: 1; padding-top: 0; background: linear-gradient(to bottom, var(--yellow) 0 42%, var(--paper) 42%); }   /* photos straddle the yellow history box and the cream below */
.rstack--yellow { padding-bottom: calc(var(--sec) * .6); }
.nslider { position: relative; }
.nslider__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--side); padding: 0 var(--side); scrollbar-width: none; overscroll-behavior-x: contain; }
.nslider__track::-webkit-scrollbar { display: none; }
.nslider__track:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.nslide { flex: none; scroll-snap-align: start; width: min(78vw, calc(clamp(300px, 58vh, 600px) * 1.5)); aspect-ratio: 3 / 2; object-fit: cover; }
.nslider__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding: 0 var(--side); }
.nslider__nav button { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--navy); font-size: 18px; color: var(--navy); transition: background .2s, color .2s; }
.nslider__nav button:hover, .nslider__nav button:focus-visible { background: var(--navy); color: var(--yellow); }

.rstack__go { display: flex; justify-content: center; margin-top: 48px; }
