/*
 * site.css — Acorn Investment Partners
 *
 * Page grammar modelled on the measured structure of leading advisory and
 * investment firm sites (Centerview, Elliott, Hellman & Friedman):
 *   - full-width photographic mastheads with the page title bottom-left
 *     behind a thin vertical rule, navy gradient fading into the page
 *   - 40px light-weight serif headings, 17px sans body in slate blue
 *   - 90 to 110px section padding, alternating white / pale blue / navy
 *   - small labels with a thin left bar ("| Overview")
 *   - white cards with a navy date-and-value strip for transactions
 *   - pale cards for people
 *
 * Photography: each .masthead and .photo-band takes
 * style="--photo:url(images/x.jpg)". See images/PLACEHOLDERS.md.
 */

:root {
    --navy: #0d2b60;
    --navy-deep: #0a2150;
    --ink: #0d2b60;
    --text: #34486b;
    --muted: #6b7a93;
    --accent: #3a5891;
    --pale: #e9f1fa;
    --pale-2: #eef4fb;
    --hair: #d5dde9;
    --white: #ffffff;
    --on-navy: #ffffff;
    --on-navy-soft: rgba(255, 255, 255, 0.86);
    --on-navy-hair: rgba(255, 255, 255, 0.22);
    --shell: 1240px;
    --narrow: 900px;
    --gutter: clamp(20px, 5vw, 70px);
    --sec: clamp(64px, 8vw, 110px);
    --serif: "Newsreader", "Times New Roman", serif;
    --sans: "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/public-sans-400.ttf") format("truetype"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/public-sans-500.ttf") format("truetype"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/public-sans-600.ttf") format("truetype"); }

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 40px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.5;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; color: var(--ink); line-height: 1.2; text-wrap: balance; }
h2 { font-size: 40px; line-height: 1.22; }
h3 { font-size: 24px; line-height: 1.3; }
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--narrow); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 0.5rem 1rem; z-index: 50; }
.skip-link:focus { left: 0; }

/* Labels and links */
.label {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    border-left: 1px solid var(--accent);
    padding-left: 10px;
    line-height: 1.1;
    margin-bottom: 14px;
}
.label.light { color: #a9c3ea; border-left-color: #a9c3ea; }
.more {
    display: inline-block;
    font-size: 17px;
    font-weight: 500;
    color: var(--accent);
    margin-top: 18px;
}
.more::after { content: "\2192"; margin-left: 10px; transition: margin-left 0.2s; }
.more:hover::after { margin-left: 16px; }
.more.light { color: #a9c3ea; }
.text-link { color: var(--accent); font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- Header over the masthead --------------------------------------------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: var(--white); }
.site-header.fixed { position: fixed; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--hair); animation: drop .25s ease; }
.site-header.fixed .shell { height: 72px; }
.site-header .brand .dark, .site-header.fixed .brand .light { display: none; }
.site-header.fixed .brand .dark { display: block; }
.site-header.fixed .site-nav a:hover, .site-header.fixed .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
@keyframes drop { from { transform: translateY(-100%); } to { transform: none; } }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; height: 110px; }
.site-header .brand img { width: 170px; }
.site-nav { display: flex; gap: 34px; font-size: 16px; font-weight: 500; }
.site-nav a { padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, 0.8); }
.nav-toggle { display: none; font: inherit; font-size: 15px; font-weight: 500; color: inherit; background: none; border: 1px solid rgba(255, 255, 255, 0.6); padding: 6px 14px; cursor: pointer; }

/* --- Masthead ------------------------------------------------------------ */
.masthead {
    position: relative;
    height: 500px;
    display: flex;
    align-items: flex-end;
    background-color: var(--navy);
    color: var(--white);
    overflow: hidden;
}
.masthead.tall { height: min(900px, 100vh); min-height: 620px; }
.masthead::before {
    content: "";
    position: absolute; inset: 0;
    background-image: var(--photo);
    background-size: cover;
    background-position: center;
    filter: grayscale(1) contrast(1.08) brightness(1.02);
}
.masthead::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(13, 43, 96, 0.55) 0%, rgba(13, 43, 96, 0.5) 45%, rgba(13, 43, 96, 0.82) 100%);
    mix-blend-mode: multiply;
}
.masthead .veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13, 43, 96, 0.18), rgba(13, 43, 96, 0.08) 50%, rgba(13, 43, 96, 0.42)); pointer-events: none; }
.masthead .shell { position: relative; z-index: 1; width: 100%; padding-bottom: 60px; }
.masthead.tall .shell { padding-bottom: 96px; }
.masthead h1 {
    font-size: 65px;
    font-weight: 300;
    line-height: 1.02;
    color: var(--white);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    padding-left: 18px;
    max-width: 14ch;
}
.masthead .rule { border-left: 1px solid rgba(255, 255, 255, 0.7); padding-left: 18px; }
.masthead .rule h1 { border-left: 0; padding-left: 0; }
.masthead .sub {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    max-width: 44rem;
    margin: 18px 0 0;
    line-height: 1.6;
}

/* --- Full-width text block (overview) ------------------------------------- */
.overview { padding: var(--sec) 0; }
.overview .narrow { margin-left: 0; }
.overview h2 { margin-bottom: 20px; }
.overview p { max-width: 42rem; }

/* --- Split teaser ----------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.split.after-hero { margin-top: 100px; }
.split.after-hero .split-media { margin-left: 0; }
.split.flip .split-media { order: 2; }
.split-media { position: relative; min-height: 360px; background: var(--navy); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.split-media::after { content: ""; position: absolute; inset: 0; background: rgba(13, 43, 96, 0.22); mix-blend-mode: multiply; }
.split-body { display: flex; align-items: center; padding: var(--sec) var(--gutter); }
.split-body.pale { background: var(--pale); }
.split-body > div { max-width: 480px; }
.split-body h2 { margin-bottom: 16px; }

/* --- Stats band ------------------------------------------------------------- */
.stats { background: var(--pale); padding: 48px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-row.two { grid-template-columns: repeat(2, max-content); gap: 0 96px; }
.stats-row.two .stat { padding-right: 96px; margin-right: 0; }
.stats-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 6px 28px 6px 0; margin-right: 28px; border-right: 1px solid rgba(13, 43, 96, 0.22); }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat .figure { font-family: var(--serif); font-weight: 300; font-size: 48px; line-height: 1; color: var(--ink); display: block; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat .figure sup { font-size: 0.5em; vertical-align: 0.6em; }
.stat .caption { display: block; font-size: 14px; line-height: 1.4; margin-top: 10px; color: var(--text); }

/* --- Sections ---------------------------------------------------------------- */
.section { padding: var(--sec) 0; }
.section.pale { background: var(--pale); }
.section.pale-2 { background: var(--pale-2); }
.section.navy { background: var(--navy); color: var(--on-navy-soft); }
.section.navy h2, .section.navy h3 { color: var(--white); }
.section-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.section-row .intro > p { max-width: 26rem; margin-top: 16px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.section-head .more { margin-top: 0; }

/* list rows (navy "What We Do" pattern) */
.list-rows { border-top: 1px solid var(--on-navy-hair); }
.list-rows > div { padding: 26px 0; border-bottom: 1px solid var(--on-navy-hair); }
.list-rows h3 { font-size: 26px; margin-bottom: 8px; }
.list-rows p { font-size: 16px; line-height: 1.55; margin: 0; max-width: 40rem; }
.list-rows.on-light { border-top-color: var(--hair); }
.list-rows.on-light > div { border-bottom-color: var(--hair); }

/* three or four columns of items */
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.items.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.item h3 { font-size: 26px; margin-bottom: 10px; }
.item p { font-size: 16px; line-height: 1.55; margin: 0; }
.item .step { display: block; font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.section.navy .item .step { color: #a9c3ea; }
.section.navy .item p { color: var(--on-navy-soft); }

/* two-column pairs */
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 64px; }
.quads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.quad { border-top: 1px solid var(--ink); padding-top: 20px; }
.quad h3 { font-size: 26px; margin-bottom: 10px; }
.quad p { font-size: 16px; line-height: 1.5; margin: 0; }
.pair { padding-left: 18px; border-left: 1px solid var(--hair); }
.pair h3 { font-size: 26px; margin-bottom: 10px; }
.pair p { font-size: 16px; margin: 0; }

/* --- Accordion (capabilities pattern) --------------------------------------- */
.accordion { background: var(--pale); }
.accordion details { border-top: 1px solid rgba(13, 43, 96, 0.14); }
.accordion details:last-child { border-bottom: 1px solid rgba(13, 43, 96, 0.14); }
.accordion summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px var(--gutter);
    font-family: var(--serif);
    font-weight: 300;
    font-size: 36px;
    line-height: 1.2;
    color: var(--ink);
    max-width: var(--shell);
    margin: 0 auto;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 34px; color: var(--accent); line-height: 1; }
.accordion details[open] summary::after { content: "\00d7"; }
.accordion .panel { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.accordion .panel p { max-width: 60rem; }

.struct { background: var(--pale); padding: 0 0 var(--sec); }
.struct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.struct-row { display: block; padding: 28px 0; border-top: 1px solid rgba(13, 43, 96, 0.18); }
.struct-row .n { font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1; color: var(--accent); padding-top: 4px; }
.struct-row h3 { font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.struct-row p { font-size: 15px; line-height: 1.5; margin: 0; }
.overview.tight { padding-bottom: 40px; }
/* --- Transaction cards ----------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--white); display: flex; flex-direction: column; transition: transform 0.2s; }
.card:hover { transform: translateY(-2px); }
.card-body { padding: 30px 28px 26px; flex: 1; display: flex; flex-direction: column; min-height: 210px; }
.card-body .text-link { margin-top: auto; padding-top: 18px; }
.card-cat { font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 14px; }
.card h3 { font-size: 24px; line-height: 1.25; margin-bottom: 12px; }
.card p { font-size: 14px; line-height: 1.55; margin-bottom: 10px; }
.card .card-note { font-size: 13px; color: var(--muted); }
.card .text-link { font-size: 14px; }
.card-strip { background: var(--navy); color: var(--white); font-size: 13px; font-weight: 500; padding: 14px 28px; display: flex; justify-content: space-between; gap: 12px; }
.card-strip b { font-weight: 600; }

.ledger { border-top: 1px solid var(--ink); }
.lrow { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--hair); }
.lrow .lfig { font-family: var(--serif); font-weight: 300; font-size: 56px; line-height: 1; color: var(--ink); letter-spacing: -0.01em; }
.lrow .lfig small { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.4; }
.lrow h3 { font-size: 28px; margin-bottom: 10px; }
.lrow p { font-size: 16px; max-width: 46rem; margin-bottom: 12px; }
.lrow .lmeta { text-align: right; font-size: 14px; color: var(--muted); line-height: 1.6; }
.lrow .lmeta b { display: block; color: var(--ink); font-weight: 600; }
/* --- People cards ---------------------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.people.leads { grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
.people.leads .person { display: grid; grid-template-columns: 46% minmax(0, 1fr); }
.people.leads .person .portrait { height: 100%; aspect-ratio: auto; }
.people.leads .pbody { padding: 28px 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.people.leads .person h3 { font-size: 30px; }
.person { background: var(--white); border: 1px solid var(--hair); }
.person .portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-radius: 0; margin: 0; filter: grayscale(1) contrast(1.04); transition: filter 0.25s; }
.person:hover .portrait { filter: none; }
.person .pbody { padding: 22px 24px 22px; }
.person h3 { font-family: var(--serif); font-weight: 300; font-size: 26px; color: var(--ink); margin-bottom: 4px; }
.person .role { font-size: 15px; color: var(--text); margin-bottom: 14px; display: block; }
.person details summary { list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--accent); }
.person details summary::-webkit-details-marker { display: none; }
.person details summary::after { content: "\2192"; margin-left: 10px; }
.person details[open] summary::after { content: "\2191"; }
.person details p { font-size: 15px; line-height: 1.55; color: var(--text); margin-top: 14px; }

/* --- Photo band (contact / approach) --------------------------------------- */
.photo-band { position: relative; background-color: var(--navy); color: var(--on-navy-soft); padding: var(--sec) 0; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.photo-band::before { content: ""; position: absolute; inset: 0; background-image: var(--photo); background-size: cover; background-position: center; filter: grayscale(1) contrast(1.06); opacity: 0.75; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(13, 43, 96, 0.96) 0%, rgba(13, 43, 96, 0.82) 50%, rgba(13, 43, 96, 0.6) 100%); mix-blend-mode: multiply; }
.photo-band .veil { position: absolute; inset: 0; background: linear-gradient(to right, rgba(13, 43, 96, 0.55), rgba(13, 43, 96, 0.1)); pointer-events: none; }
.photo-band .shell { position: relative; z-index: 1; width: 100%; }
.photo-band h2 { color: var(--white); margin-bottom: 18px; max-width: 16ch; }
.photo-band p { max-width: 30rem; }
.contact-big { display: inline-block; font-family: var(--serif); font-weight: 300; font-size: 40px; color: var(--white); border-bottom: 1px solid var(--on-navy-hair); padding-bottom: 4px; margin: 6px 0 22px; }
.contact-big:hover { border-bottom-color: var(--white); }
.contact-lines { display: flex; gap: 48px; flex-wrap: wrap; font-size: 16px; }
.contact-lines span { display: block; font-size: 13px; color: #a9c3ea; margin-bottom: 4px; }
.contact-lines a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- Footer ----------------------------------------------------------------- */
.footer { background: var(--navy); color: var(--on-navy-soft); padding: 72px 0 40px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; border-left: 1px solid rgba(255, 255, 255, 0.5); padding-left: 24px; margin-bottom: 48px; }
.footer-top .ghost { display: inline-block; border: 1px solid rgba(255,255,255,.6); color: #fff; padding: 12px 22px; font-size: 15px; font-weight: 500; }
.footer-top .ghost:hover { background: #fff; color: var(--navy); }
.footer-top img { width: 190px; margin-bottom: 18px; }
.footer-top .cities { font-family: var(--serif); font-weight: 300; font-size: 30px; color: var(--white); line-height: 1.3; margin-bottom: 8px; }
.footer-top p { font-size: 16px; }
.footer-top a { color: #a9c3ea; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--on-navy-hair); font-size: 15px; }
.footer-cols h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--white); }
.footer-cols a { display: block; margin-bottom: 6px; }
.footer-cols a:hover { color: var(--white); }
.footer-legal { padding-top: 26px; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, 0.7); }
.footer-legal p { max-width: 70rem; margin-bottom: 8px; }
.footer-legal .copy { color: var(--on-navy-soft); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
    .struct-grid { grid-template-columns: 1fr; }
    .quads { grid-template-columns: 1fr 1fr; }
    .photo-band .cgrid { grid-template-columns: 1fr; gap: 24px; }
    .footer-top { grid-template-columns: 1fr; }
    .people.leads { grid-template-columns: 1fr; }
    .people.leads .person { grid-template-columns: 1fr; }
    .people.leads .person .portrait { aspect-ratio: 4 / 5; }
    .lrow { grid-template-columns: 1fr; gap: 14px; }
    .lrow .lmeta { text-align: left; }
    .split.after-hero { margin-top: 48px; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 110px; flex-direction: column; gap: 0; background: var(--navy); padding: 8px var(--gutter) 20px; }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--on-navy-hair); }
    .nav-toggle { display: inline-block; }
    .masthead h1 { font-size: 48px; }
    .split { grid-template-columns: 1fr; }
    .split.flip .split-media { order: 0; }
    .split-media { min-height: 300px; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 28px 0; }
    .stat:nth-child(2) { border-right: 0; }
    .section-row { grid-template-columns: 1fr; gap: 36px; }
    .items, .items.four { grid-template-columns: 1fr 1fr; }
    .cards, .people { grid-template-columns: 1fr 1fr; }
    .accordion summary { font-size: 28px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .stats-row.two { grid-template-columns: 1fr; }
    .quads { grid-template-columns: 1fr; }
    h2 { font-size: 32px; }
    .site-header .shell { height: 84px; }
    .site-header .brand img { width: 140px; }
    .site-nav { top: 84px; }
    .masthead { height: 420px; }
    .masthead.tall { min-height: 560px; height: 80vh; }
    .masthead h1 { font-size: 40px; }
    .masthead .sub { font-size: 16px; }
    .stats-row, .items, .items.four, .cards, .people, .pairs { grid-template-columns: 1fr; }
    .stat { border-right: 0; margin-right: 0; padding-right: 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .accordion summary { font-size: 24px; padding: 24px var(--gutter); }
    .contact-big { font-size: 28px; }
    .footer-cols { grid-template-columns: 1fr; }
    .footer-top .cities { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.photo-band .cgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 60px; align-items: end; }
.photo-band .cgrid .lines { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 8px; font-size: 16px; color: var(--white); }
.photo-band .cgrid .lines span { display: block; font-size: 13px; color: #a9c3ea; margin-bottom: 4px; }
.photo-band .cgrid .lines a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .photo-band .cgrid { grid-template-columns: 1fr; gap: 24px; } }
