/* Company lane (private equity, about, contact, privacy, 404), site-wide round 1. Scoped to this lane's own classes
   (.co-*, .pill, .dip) and to the contact form island; tokens, type scale, header, footer, close and buttons are site.css. */

/* ---------- hero crops (each page's hero film, so the subject sits clear of the copy) ---------- */
main:has(#problem) .hero--inner .hero-ph { --pos: 50% 34%; }          /* private equity: board, the pair at the whiteboard */
main:has(#pov) .hero--inner .hero-ph { --pos: 50% 40%; }               /* about: roller, the conveyor curves (integrate: was plan) */
main:has(#send) .hero--inner .hero-ph { --pos: 50% 62%; }              /* contact: desk, lamp and laptop */
main:has(.co-pv) .hero--inner .hero-ph { --pos: 50% 22%; }             /* privacy: wire, the hands and cable heads */
/* the line naming the principals (private equity) and the location line (contact): body size, not small print */
main:has(#problem) .hero .who, main:has(#send) .hero .who { font-size: var(--t-body); opacity: .94; }
/* contact, phone (round 2 repair): the laptop's bright screen and its dark deck sat behind the words, and the two text
   grounds showed as a rounded pale panel and a hard dark slab. One soft ground instead: the grounds are switched off
   (--halo: 0) and a single gradient rises from the foot of the hero, with no straight edge. */
@media (max-width: 47.99rem) {
  main:has(#send) .hero--inner .scrim { --halo: 0; background: linear-gradient(to top, rgb(var(--k) / .94) 0, rgb(var(--k) / .9) 34%, rgb(var(--k) / .7) 48%, rgb(var(--k) / .38) 62%, rgb(var(--k) / .12) 76%, rgb(var(--k) / 0) 90%), var(--scrim-top); }
}

/* ---------- film bands on these pages: the words sit higher and fade before the next panel reaches them,
   so a statement is never cut by the rising edge (fix round 1) ---------- */
main > .film:not(.film--centre) > .wrap { padding-bottom: clamp(8rem, 30svh, 17rem); }
@media (max-width: 47.99rem) { main > .film:not(.film--centre) > .wrap { padding-bottom: clamp(6rem, 24svh, 12rem); } }
@media (prefers-reduced-motion: no-preference) { .js main > .film.roll > .wrap { opacity: calc(1 - 2.6 * var(--out)); } }

/* ---------- the opening statement with a film window set into the line ---------- */
/* the band holds a full screen, the statement in the middle of it, so it is never a thin strip between hero and Paper */
.co-open { min-height: 100svh; display: grid; align-content: center; }
@media (max-width: 47.99rem) { .co-open { min-height: 86svh; } }
.co-open .statement { max-width: 25ch; }
.co-open .statement.is-long { max-width: 28ch; }
/* unread lines stay readable (dimmer, never absent) */
.co-open .brighten .w { opacity: calc(.45 + .55 * var(--b, 1)); }
.pill { --pw: 1; position: relative; display: inline-block; vertical-align: -0.12em; height: .92em;
  width: calc(2.4em + 3.4em * var(--pw)); margin-inline: .06em; overflow: hidden; border-radius: .1em; background: var(--c-dusk); }
@media (max-width: 47.99rem) { .pill { width: calc(2em + 2.2em * var(--pw)); } }
.pill picture, .pill img, .pill video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the window follows the line's brightness: dim while unread, full once read (company.js sets --pw from the same reading line) */
.js .pill { opacity: calc(.72 + .28 * var(--pw)); }

/* ---------- two moments: two films side by side, the seam travels as the band is scrolled ---------- */
.dip { background: var(--c-night); color: var(--c-glass); overflow: clip; --fg: var(--c-glass); --fg-2: var(--c-steel); --acc: var(--c-teal); --acc-ink: var(--c-night); }
.dip-pin { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.dip-h { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 6vw, 8rem); align-items: end;
  padding-block: var(--sec) clamp(2rem, 4vw, 3rem); }
.dip-h h2 { font-size: var(--t-display); max-width: 14ch; }
.dip-h p { color: var(--fg-2); font-size: var(--t-lede); line-height: 1.45; max-width: 34rem; }
.dip-panes { display: flex; gap: 3px; background: var(--c-night); }
.dip-p { position: relative; flex: 1 1 0; min-width: 0; min-height: 76svh; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; }
.dip-p .media { z-index: 0; }
.dip-p .media img, .dip-p .media video { transition: filter .8s var(--ease); }
.dip-p .scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgb(7 19 28 / .9) 0%, rgb(7 19 28 / .45) 36%, rgb(7 19 28 / 0) 64%); }
.dip-t { position: relative; z-index: 3; width: min(100%, 36rem); padding: clamp(1.5rem, 3.5vw, 3.5rem); }
.dip-t h3 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.6rem); font-stretch: 120%; line-height: 1; letter-spacing: -0.02em; max-width: 12ch; }
.dip-t p { margin-top: 1rem; font-size: var(--t-body); color: var(--c-glass); opacity: .94; max-width: 32rem; }
.dip-t, .dip-p .scrim { transition: opacity .7s var(--ease); }
@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  .js .dip { height: 250svh; }
  .js .dip-pin { position: sticky; top: 0; height: 100svh; }
  .js .dip-h { padding-block: calc(var(--hd) + 2.5rem) 2rem; }
  .js .dip-p { min-height: 0; flex: none; }
  .js .dip-p:first-child { width: calc(var(--a, .5) * 100%); }
  .js .dip-p:last-child { flex: 1 1 0; }
  .js .dip-p:not(.is-on) .dip-t { opacity: .8; }   /* the moment not being read stays readable */
  .js .dip-p:not(.is-on) .media img, .js .dip-p:not(.is-on) .media video { filter: brightness(.74) contrast(1.1) saturate(.9); }
}
@media (max-width: 47.99rem) {
  .dip-h { grid-template-columns: 1fr; row-gap: 1.25rem; }
  .dip-panes { flex-direction: column; }
  .dip-p { flex: none; min-height: 72svh; }
}

/* ---------- contact: the form on the ONE Paper band (island markup from src/ContactForm.tsx, styled by element) ---------- */
.co-form .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.co-form-h h2 { font-size: var(--t-display); max-width: 11ch; }
.co-form-h .paras { margin-top: 1.75rem; max-width: 30rem; color: var(--fg-2); font-size: var(--t-lede); line-height: 1.45; }
.co-form-h .paras .small { font-size: var(--t-body); }
@media (min-width: 48rem) and (min-height: 40rem) { .co-form-h { position: sticky; top: calc(var(--hd) + 2rem); } }
.co-form-f { min-width: 0; }
#contact-form form, #contact-form [role=status] { display: block; min-width: 0; padding-top: 1.75rem; border-top: 2px solid var(--fg); }
#contact-form form > div:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
#contact-form form > div + div { margin-top: 1.5rem; }
#contact-form label { display: block; margin-bottom: .6rem; font-size: 1.125rem; font-weight: 600; font-stretch: 108%; color: var(--fg); }
#contact-form label span { color: var(--fg-2); font-weight: 400; }
#contact-form input:not([type=hidden]), #contact-form textarea {
  display: block; width: 100%; min-height: 3.75rem; padding: .9rem 1.05rem; border: 1px solid color-mix(in srgb, var(--fg) 34%, transparent); border-bottom: 2px solid var(--fg); border-radius: 2px 2px 0 0;
  background: color-mix(in srgb, var(--bg) 35%, white); color: var(--fg); font: 400 var(--t-body)/1.5 var(--font); transition: border-color .4s var(--ease), background .4s var(--ease);
}
#contact-form textarea { min-height: 11rem; resize: vertical; line-height: 1.6; }
#contact-form input:focus, #contact-form textarea:focus { border-bottom-color: var(--acc); background: color-mix(in srgb, var(--acc) 8%, transparent); outline: 2px solid var(--acc); outline-offset: 0; }
#contact-form ::placeholder { color: color-mix(in srgb, var(--fg) 64%, transparent); opacity: 1; }
#contact-form .rs-focus-frame { width: 300px; max-width: 100%; height: 65px; margin-top: 1.5rem; overflow: hidden; }
#contact-form [role=alert] { margin-top: 1.25rem; padding: .75rem 1rem; border: 1px solid #a3332b; color: #8e2a23; font-size: 1rem; }
#contact-form button[type=submit] {
  margin-top: 2rem; min-height: 3.5rem; padding: 0 2rem; border: 1px solid var(--acc); border-radius: 2px; background: var(--acc);
  color: var(--acc-ink); font: 600 1.0625rem/1 var(--font); font-stretch: 110%; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease);
}
#contact-form button[type=submit]:hover:not(:disabled) { background: transparent; color: var(--fg); }
#contact-form button[type=submit]:disabled { opacity: .5; cursor: not-allowed; }
#contact-form [role=status] p { margin-top: .75rem; color: var(--fg-2); }
@media (max-width: 47.99rem) {
  .co-form .contact-grid { grid-template-columns: 1fr; row-gap: 2.5rem; }
  #contact-form form > div:first-child { grid-template-columns: 1fr; }
  #contact-form button[type=submit] { width: 100%; justify-content: center; }
}
@media (max-width: 23.2rem) {
  #contact-form .rs-focus-frame { width: 246px; height: 54px; }
  #contact-form .rs-focus-frame > div { transform: scale(.82); transform-origin: top left; }
}

/* ---------- contact: the two principals compact (portrait beside the words; the full cards are on /about) ---------- */
.co-who .people { gap: clamp(2rem, 4vw, 4rem); }
.co-who .person { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 1.75rem; align-content: start; }
.co-who .person figure { grid-row: 1 / span 5; width: 100%; margin: 0; }
.co-who .person .role { margin-top: .2rem; }
@media (max-width: 47.99rem) { .co-who .person { grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 1.1rem; } }

/* ---------- the Paper sticky splits (private equity, about): items closer together, so the column never shows long empty gaps ---------- */
@media (min-width: 64rem) { section[aria-labelledby="do"] .ix-list > li, section[aria-labelledby="hold"] .ix-list > li { min-height: 40svh; } }

/* ---------- privacy: the notice on the ONE Paper band, sections as rows that open, a film held beside them ---------- */
.co-pv-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.co-pv-f .frame { aspect-ratio: auto; height: clamp(18rem, 100svh - var(--hd) - 6rem, 44rem); }
@media (min-width: 48rem) and (min-height: 40rem) { .co-pv-f { position: sticky; top: calc(var(--hd) + 2rem); } }
.co-pv-t .acc-i > summary h2 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.6rem); font-stretch: 120%; line-height: 1.02; letter-spacing: -0.02em; transition: color .4s var(--ease); }
.co-pv-t .acc-i:not([open]) > summary h2 { color: var(--fg-2); }
.co-pv-t .acc-i > summary:hover h2 { color: var(--fg); }
.co-pv-t .acc-i > summary { min-height: 5.5rem; padding-block: 1.6rem; }
.co-pv-t .acc-b { color: var(--fg); max-width: 40rem; padding-bottom: 2.4rem; }
.co-pv-t .acc-b p + p { margin-top: 1em; }
@media (max-width: 47.99rem) {
  .co-pv-g { grid-template-columns: 1fr; row-gap: 2rem; }
  .co-pv-f { display: none; }   /* phones: the notice alone, no film block above it */
  .co-pv-t .acc-b { padding-right: 0; }
}

/* ---------- 404: the site's pages along the foot of the one film band ---------- */
.co-links { list-style: none; margin: clamp(2rem, 5svh, 3.5rem) 0 0; padding: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0 clamp(1.5rem, 3vw, 3rem);
  border-top: 1px solid rgb(230 237 240 / .3); }
.co-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font: 600 clamp(1.15rem, 1rem + .6vw, 1.6rem)/1.1 var(--font); font-stretch: 118%;
  letter-spacing: -0.015em; color: var(--c-glass); text-decoration: none; }
.co-links a:hover { text-decoration: underline; text-decoration-color: var(--c-teal); text-decoration-thickness: 2px; }

/* ---------- 404: the words centred down the corridor; the hero dims less as the film rises, and the film's curved top shows ---------- */
.hero.co-nf { align-items: center; }
.co-nf .hero-copy { padding-bottom: clamp(3rem, 10svh, 6rem); }
.co-nf .hero-txt { margin-inline: auto; text-align: center; max-width: 52rem; }
.co-nf .crumbs, .co-nf .actions { justify-content: center; }
.co-nf h1 { margin-inline: auto; max-width: none; font-size: clamp(3rem, 1.2rem + 6.4vw, 8.25rem); }
.co-nf .lede { margin-inline: auto; }
.hero.co-nf .scrim { background: radial-gradient(62% 58% at 50% 54%, rgb(7 19 28 / .74), rgb(7 19 28 / .3) 72%, rgb(7 19 28 / .5)); }
.co-nf .btn--ghost { border-color: var(--c-glass); color: var(--c-glass); background: rgb(7 19 28 / .5); }
.co-nf .btn--ghost:hover { background: var(--c-glass); color: var(--c-night); }
@media (prefers-reduced-motion: no-preference) { .js .co-nf .hero-ph::after { opacity: calc(.28 * var(--out)); } }
.co-nf + .film { overflow: clip; min-height: 84svh; }
.co-nf + .film > .wrap { padding-bottom: clamp(3rem, 9svh, 6rem); }
.co-nf + .film .statement { font-size: var(--t-h2); max-width: 30ch; }
.co-links { gap: .25rem clamp(1.75rem, 3.5vw, 3.5rem); }
.co-links a { font-size: clamp(1.5rem, 1rem + 1.7vw, 2.75rem); }

/* ---------- symbols pass (2026-11-10): private equity, the ONE accent. A faint still of the 3D mark in the empty Paper beside
   "What you can hold us to": on the film panel's left edge, centred on the cap height of the heading's first line. Wide
   screens only; under 64rem the heading fills the row, so there is no quiet area and no accent. ---------- */
section[aria-labelledby="hold"] .ix-head .mk-acc { display: none; }
@media (min-width: 64rem) {
  section[aria-labelledby="hold"] .ix-head .mk-acc { display: block; grid-column: 2; grid-row: 1; align-self: start; margin-top: calc(var(--t-display) * .51 - 3.75rem); --mk-acc-o: .5; }
  section[aria-labelledby="hold"] .ix-head h2 { grid-column: 1; grid-row: 1; }
}
