/* AjB Ventures — one-page site (v2).
   Type: Playfair Display (headings) + Source Sans 3 (body), both Google Fonts.
   Palette: deep ink navy + warm off-white, one accent sampled from the coral light in the hero photo. */
:root{
  --ink:#132238;          /* deep navy: headings, header text, dark bands */
  --ink-2:#1c2e48;
  --text:#1f2733;
  --muted:#5a6473;
  --paper:#f7f4ee;        /* warm off-white page */
  --card:#fffdf9;
  --rule:#e3ddd2;
  --accent:#a4513a;       /* text-safe coral (from hero light, darkened) */
  --accent-bright:#d5856c;/* hero coral, for rules/numerals */
  --serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --sans:"Source Sans 3","Source Sans Pro",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --wrap:72rem;
  --narrow:42rem;
  --header-h:4.25rem;
  /* Type scale: one step set, used everywhere */
  --fs-h1:clamp(2.5rem,6vw,4.75rem);
  --fs-h2:clamp(2rem,3.6vw,2.75rem);   /* all section headings + thesis lead statement */
  --fs-h3:clamp(1.3rem,2vw,1.5rem);    /* card titles, value tiles */
  --fs-lead:clamp(1.125rem,1.5vw,1.25rem);
  --fs-body:1.0625rem;
  --fs-small:.9rem;
  --fs-eyebrow:.8rem;
  /* Spacing rhythm */
  --space-section:clamp(4rem,8vw,6.5rem); /* top/bottom of every section */
  --space-head:clamp(2rem,4vw,3rem);      /* section heading block -> content */
  --space-gap:clamp(2rem,5vw,4.5rem);     /* between two columns */
  --space-block:2rem;                     /* between blocks inside a section */
  --space-stack:1rem;                     /* between paragraphs */
  --space-eyebrow:.75rem;                 /* eyebrow -> heading */
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 1rem);-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{font-family:var(--sans);font-size:var(--fs-body);line-height:1.7;color:var(--text);background:var(--paper);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%;height:auto}
a{color:var(--accent);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{color:var(--ink)}
:focus-visible{outline:2px solid var(--accent-bright);outline-offset:3px}
h1,h2,h3{font-family:var(--serif);color:var(--ink);font-weight:500;line-height:1.15;letter-spacing:-.005em}
.wrap{width:min(var(--wrap),100% - 3rem);margin-inline:auto}
.narrow{max-width:var(--narrow)}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:absolute;left:1rem;top:-4rem;z-index:100;background:var(--ink);color:#fff;padding:.5rem .9rem;border-radius:4px}
.skip-link:focus{top:.75rem;color:#fff}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(247,244,238,.94);backdrop-filter:saturate(1.2) blur(8px);-webkit-backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid transparent;transition:border-color .2s,box-shadow .2s}
.site-header.is-scrolled{border-bottom-color:var(--rule);box-shadow:0 8px 20px -18px rgba(19,34,56,.55)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:var(--header-h)}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--ink)}
.brand img{height:2.6rem;width:auto;mix-blend-mode:multiply}
.brand span{font-family:var(--serif);font-size:1.15rem;font-weight:600;letter-spacing:.01em}
.site-nav{display:flex;align-items:center;gap:1.75rem}
.site-nav a{color:var(--ink);text-decoration:none;font-size:.95rem;font-weight:500;letter-spacing:.01em}
.site-nav a:hover{color:var(--accent)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-family:var(--sans);font-weight:600;font-size:.95rem;letter-spacing:.02em;text-decoration:none;border-radius:999px;padding:.6rem 1.25rem;line-height:1.2;border:1px solid transparent;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.btn-ink{background:var(--ink);color:#fff!important}
.btn-ink:hover{background:var(--accent);color:#fff}
.btn-light{background:#fff;color:var(--ink)!important}
.btn-light:hover{background:var(--accent-bright);color:#fff!important}
.nav-toggle{display:none;background:none;border:0;width:2.75rem;height:2.75rem;padding:.65rem;cursor:pointer;margin-right:-.5rem}
.nav-toggle span{display:block;height:2px;background:var(--ink);margin:5px 0;transition:transform .2s,opacity .2s}

/* ---------- Hero ---------- */
.hero{position:relative;min-height:min(86vh,52rem);display:flex;align-items:flex-end;color:#fff;background:#20363e;overflow:hidden}
.hero-media{position:absolute;inset:0}
.hero-media picture,.hero .hero-img,.hero-video{position:absolute;inset:0;width:100%;height:100%}
.hero .hero-img,.hero-video{object-fit:cover;object-position:50% 70%}
@media (prefers-reduced-motion:reduce){.hero-video{display:none}}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,22,38,.55) 0%,rgba(11,22,38,.28) 40%,rgba(11,22,38,0) 70%),linear-gradient(180deg,rgba(11,22,38,.25) 0%,rgba(11,22,38,0) 30%,rgba(11,22,38,.08) 60%,rgba(11,22,38,.6) 100%)}
.hero-content{position:relative;z-index:1;padding:0 0 var(--space-section)}
.eyebrow{font-family:var(--sans);font-size:var(--fs-eyebrow);font-weight:600;letter-spacing:.18em;line-height:1.4;text-transform:uppercase;color:var(--accent)}
.eyebrow + h1,.eyebrow + h2{margin-top:var(--space-eyebrow)}
/* Same eyebrow everywhere; only the colour adapts to dark backgrounds */
.hero .eyebrow{color:#fff;text-shadow:0 1px 12px rgba(10,20,35,.5)}
.hero h1{color:#fff;font-weight:500;font-size:var(--fs-h1);line-height:1.06;max-width:14ch;text-shadow:0 1px 24px rgba(10,20,35,.25)}
.hero-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:var(--space-block)}
.btn-ghost{color:#fff!important;border-color:rgba(255,255,255,.7)}
.btn-ghost:hover{background:rgba(255,255,255,.12);border-color:#fff}

/* ---------- Sections ---------- */
.section{padding:var(--space-section) 0}
.section + .section{border-top:1px solid var(--rule)}
.section-head{max-width:var(--narrow);margin-bottom:var(--space-head)}
.section-head h2,.simple h1{font-size:var(--fs-h2);font-weight:500;line-height:1.15}
.section-head p:not(.eyebrow),.lead{margin-top:var(--space-stack);color:var(--muted);font-size:var(--fs-lead);line-height:1.6}

/* Thesis */
.thesis{background:var(--paper)}
.thesis-lead{font-family:var(--serif);color:var(--ink);font-size:var(--fs-h2);font-weight:500;line-height:1.2;max-width:24ch}
.thesis .lead{max-width:44ch}
.thesis .rule{display:block;width:3.5rem;height:3px;background:var(--accent-bright);margin-bottom:var(--space-block);border:0}

/* Story */
.story-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--space-head) var(--space-gap);align-items:start}
.story-grid .section-head{margin-bottom:0}
.story-body p{font-size:var(--fs-lead);line-height:1.7}
.story-body p + p{margin-top:var(--space-stack)}
.story-body .values-lead{margin-top:var(--space-block);font-weight:600;color:var(--ink)}
.values{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--rule);border:1px solid var(--rule);border-radius:10px;overflow:hidden;margin-top:var(--space-stack)}
.values li{background:var(--card);padding:1.25rem;font-family:var(--serif);font-size:var(--fs-h3);color:var(--ink);text-align:center}
.values-note{margin-top:1rem;color:var(--muted);font-size:.98rem}

/* Investments */
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.card{position:relative;display:flex;flex-direction:column;background:var(--card);border:1px solid var(--rule);border-radius:12px;padding:1.75rem 1.75rem 1.5rem;transition:border-color .2s,box-shadow .2s,transform .2s}
.card:hover{border-color:#d6cdbf;box-shadow:0 18px 40px -30px rgba(19,34,56,.45)}
.card-top{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}
.card-num{font-family:var(--serif);font-size:1rem;color:var(--accent-bright);font-weight:600;letter-spacing:.04em}
.tag{font-size:.74rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.card h3{font-size:var(--fs-h3);margin-top:.75rem}
.card p{margin-top:.75rem;color:var(--text)}
.facts{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;margin-top:var(--space-stack)}
.facts li{font-size:.85rem;color:var(--ink);background:#f1ece3;border-radius:999px;padding:.22rem .7rem;line-height:1.4}
.card-links{margin-top:auto;padding-top:1.25rem;display:flex;flex-wrap:wrap;gap:.35rem 1.5rem}
.card-links:empty{display:none}
.card-link{font-weight:600;font-size:.95rem;text-decoration:none}
.card-link:hover{text-decoration:underline}
/* Outbound (new-tab) links */
.ext-icon{display:inline-block;width:.72em;height:.72em;margin-left:.3em;vertical-align:.02em;transition:transform .2s}
.ext:hover .ext-icon{transform:translate(1px,-1px)}

/* Past endeavors */
.past{background:#f1ece3}
.past .card{background:var(--card)}
.cards-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.logo-tile{height:6.5rem;display:flex;align-items:center;justify-content:flex-start;border-bottom:1px solid var(--rule);padding-bottom:1.25rem;margin-bottom:.25rem}
.logo-tile img{max-height:4.75rem;width:auto;mix-blend-mode:multiply}
.logo-tile .slq{max-height:2.6rem}
.monogram{font-family:var(--serif);font-size:1.6rem;color:var(--ink);letter-spacing:.06em;border:1px solid var(--ink);border-radius:50%;width:4.5rem;height:4.5rem;display:flex;align-items:center;justify-content:center}

/* Contact */
.contact{background:var(--ink);color:#e6ebf2;border-top:0!important}
.contact h2{color:#fff}
.contact .section-head .eyebrow{color:var(--accent-bright)}
.contact-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--space-head) var(--space-gap)}
.contact .section-head p{color:#c3ccd8}
.contact a{color:#fbe3d6}
.contact a:hover{color:#fff}
.contact-list{list-style:none;margin-top:var(--space-block);display:grid;gap:.4rem;font-size:1.05rem}
.contact-list span{display:block;font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;color:#93a0b3;margin-top:.9rem}
.form{display:grid;grid-template-columns:1fr 1fr;gap:1rem 1.1rem}
.field{display:flex;flex-direction:column;gap:.35rem}
.field.full{grid-column:1/-1}
.field label{font-size:.85rem;font-weight:600;letter-spacing:.04em;color:#c3ccd8}
.field input,.field textarea{width:100%;font:inherit;font-size:1rem;color:#fff;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.22);border-radius:8px;padding:.75rem .9rem;transition:border-color .2s,background .2s}
.field textarea{min-height:9rem;resize:vertical}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--accent-bright);background:rgba(255,255,255,.1)}
.form .actions{grid-column:1/-1;display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:.25rem}
.form .note{font-size:.85rem;color:#93a0b3}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Footer */
.site-footer{background:#0e1a2c;color:#93a0b3;font-size:.92rem;padding:2rem 0}
.footer-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 2rem}
.site-footer a{color:#c3ccd8;text-decoration:none}
.site-footer a:hover{color:#fff}
.footer-links{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem}

/* Simple pages */
.simple{min-height:60vh;display:flex;align-items:center;padding:var(--space-section) 0}
.simple p:not(.eyebrow){margin-top:var(--space-stack);color:var(--muted);font-size:var(--fs-lead)}
.simple .btn{margin-top:var(--space-block)}

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .cards-3{grid-template-columns:1fr 1fr}
  .story-grid,.contact-grid{grid-template-columns:1fr}
}
@media (max-width:820px){
  .nav-toggle{display:block}
  .site-nav{position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:var(--paper);border-bottom:1px solid var(--rule);padding:.5rem 1.5rem 1.25rem;box-shadow:0 18px 30px -24px rgba(19,34,56,.5);display:none}
  .nav-open .site-nav{display:flex}
  .site-nav a{padding:.8rem 0;border-bottom:1px solid var(--rule);font-size:1.05rem}
  .site-nav a.btn{margin-top:1rem;border-bottom:0;padding:.8rem 1.25rem}
  .nav-open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .nav-open .nav-toggle span:nth-child(2){opacity:0}
  .nav-open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
}
@media (max-width:640px){
  .wrap{width:calc(100% - 2.5rem)}
  .brand img{height:2.2rem}
  .brand span{font-size:1.05rem}
  .hero{min-height:82svh}
  .hero::after{background:linear-gradient(180deg,rgba(11,22,38,.25) 0%,rgba(11,22,38,.1) 30%,rgba(11,22,38,.35) 60%,rgba(11,22,38,.7) 100%)}
  .hero .hero-img,.hero-video{object-position:40% 70%}
  .cards,.cards-3{grid-template-columns:1fr}
  .card{padding:1.4rem 1.3rem 1.25rem}
  .values{grid-template-columns:1fr}
  .values li{padding:1rem}
  .form{grid-template-columns:1fr}
  .footer-inner{flex-direction:column;align-items:flex-start}
}
