/* ═══════════════════════════════════════════════════════════════
   J2 Capital — shared stylesheet
   Brand: Instrument Serif (display) + Archivo (body/UI)
   Palette: warm dark ink, paper, conviction orange (#ff5c35)
   Source of truth: design_handoff_j2_redesign/README.md
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #14100C;
  --ink-input: #1E1812;
  --border-dark: #2C2419;
  --border-dark-muted: #4A4032;
  --paper: #FBF6EE;
  --band: #F4EDE1;
  --border-light: #E4DACA;
  --card: #FFFFFF;
  --td: #F5EEE3;            /* text on dark */
  --td-muted: #B3A995;
  --td-faint: #8A7D66;
  --td-disclaimer: #5F5442;
  --tl: #201A14;            /* text on light */
  --tl-prose: #4A4133;
  --tl-muted: #6B5F4E;
  --tl-faint: #9C8F7B;
  --orange: #ff5c35;
  --orange-tint: #FDEBDD;
  --r-card: 14px;
  --r-btn: 8px;
  --r-tile-sm: 10px;
  --r-tile-lg: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  font-family: 'Archivo', sans-serif;
  background: var(--paper);
  color: var(--tl);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.25s, border-color 0.25s, background 0.25s; }
.dot { color: var(--orange); }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 56px; }
.wrap-820 { max-width: 932px; margin: 0 auto; padding: 0 56px; } /* 820 content + padding */
.wrap-720 { max-width: 832px; margin: 0 auto; padding: 0 56px; }

/* ─── Nav (dark, every page) ─── */
header { background: var(--ink); color: var(--td); }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--td); }
.logo .j2 { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.logo .j2 .two { color: var(--orange); }
.logo .divider { width: 1.5px; height: 20px; background: var(--border-dark-muted); }
.logo .capital { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; }
nav ul { display: flex; gap: 34px; list-style: none; align-items: center; }
nav a { font-size: 13px; font-weight: 500; color: var(--td-muted); }
nav a:hover { color: var(--td); }
nav a.nav-contact { color: var(--orange); font-weight: 600; }
nav a.nav-contact:hover { color: var(--td); }

/* ─── Shared furniture ─── */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.section { padding: 80px 0; border-bottom: 1px solid var(--border-light); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 44px; gap: 40px; flex-wrap: wrap; }
.sec-title { font-size: clamp(36px, 4vw, 52px); line-height: 1.1; }
.sec-aside { font-size: 14px; color: var(--tl-muted); font-style: italic; }
.sec-aside a { color: var(--orange); font-style: normal; font-size: 13px; font-weight: 700; }
.sec-aside a:hover { color: var(--tl); }

.btn {
  display: inline-block; background: var(--orange); color: var(--ink);
  font-size: 14px; font-weight: 700; padding: 16px 30px; border-radius: var(--r-btn);
  border: none; cursor: pointer; font-family: 'Archivo', sans-serif;
}
.btn:hover { background: var(--td); color: var(--ink); }
.btn-ghost {
  display: inline-block; border: 1px solid var(--border-dark-muted); color: var(--td);
  font-size: 14px; font-weight: 600; padding: 16px 30px; border-radius: var(--r-btn);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.pill {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  border: 1px solid var(--border-dark-muted); border-radius: 999px;
  padding: 8px 16px; color: var(--td-muted); white-space: nowrap;
}
.pill-orange { background: var(--orange); border: none; color: var(--ink); }
.pill-orange:hover { background: var(--td); }
.stage-pill {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange); background: var(--orange-tint); padding: 6px 12px;
  border-radius: 999px; white-space: nowrap;
}

.link-u { color: var(--tl); font-weight: 600; border-bottom: 1.5px solid var(--orange); padding-bottom: 1px; }
.link-u:hover { color: var(--orange); }
.link-orange { font-size: 13px; font-weight: 700; color: var(--orange); white-space: nowrap; }
.link-orange:hover { color: var(--tl); }

/* ─── Homepage hero (dark) ─── */
.hero { background: var(--ink); color: var(--td); padding: 104px 0 112px; }
.hero .eyebrow { margin-bottom: 36px; }
.hero h1 { font-size: clamp(52px, 8vw, 108px); line-height: 1.02; letter-spacing: -0.01em; max-width: 1000px; }
.hero h1 em { font-style: italic; color: var(--orange); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; margin-top: 48px; flex-wrap: wrap; }
.hero-dek { font-size: 18px; line-height: 1.65; color: var(--td-muted); max-width: 580px; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; }

/* ─── Belief (paper, centered) ─── */
.belief { padding: 88px 0; text-align: center; border-bottom: 1px solid var(--border-light); }
.belief .eyebrow { margin-bottom: 28px; }
.belief-text { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25; max-width: 860px; margin: 0 auto; }
.belief-text em { font-style: italic; color: var(--orange); }
.belief-founders { font-size: 13px; font-weight: 600; color: var(--tl-faint); margin-top: 32px; }

/* ─── Cards ─── */
.cards-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border-light); border-radius: var(--r-card);
  padding: 36px; display: flex; flex-direction: column; gap: 16px; min-height: 240px;
}
.card-dark { background: var(--ink); color: var(--td); border: none; }
.card-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.card h3 { font-size: 30px; }
.card p { font-size: 14px; line-height: 1.6; color: var(--tl-muted); }
.card-dark p { color: var(--td-muted); }

/* ─── Geography ─── */
.geo-band { background: var(--band); }
.geo { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.geo .eyebrow { margin-bottom: 24px; }
.geo h2 { font-size: clamp(36px, 4vw, 48px); line-height: 1.1; }
.geo p { font-size: 15px; line-height: 1.7; color: var(--tl-muted); margin-top: 28px; }
.geo p + p { margin-top: 16px; }
.geo p strong { color: var(--tl); font-weight: 700; }
.geo-card { background: var(--ink); color: var(--td); border-radius: var(--r-card); padding: 48px; }
.geo-card h3 { font-size: 30px; }
.geo-card p { font-size: 14px; line-height: 1.7; color: var(--td-muted); margin-top: 20px; }
.geo-card .pills { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ─── Portfolio cards (homepage teaser) ─── */
.holding { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--r-card); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.co-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.co-id { display: flex; align-items: center; gap: 14px; }
.co-logo { width: 40px; height: 40px; border-radius: var(--r-tile-sm); display: block; object-fit: cover; }
.co-name { font-family: 'Instrument Serif', Georgia, serif; font-size: 34px; font-weight: 400; }
.holding p { font-size: 15px; line-height: 1.6; color: var(--tl-muted); }
.holding .proof { font-size: 13px; color: var(--tl-faint); }
.holding .thesis-link { font-size: 13px; font-weight: 700; color: var(--orange); margin-top: auto; }
.holding .thesis-link:hover { color: var(--tl); }

/* ─── Writing teaser / essay cards ─── */
.hover-card:hover { border-color: var(--orange); }
.essay-row {
  background: var(--card); border: 1px solid var(--border-light); border-radius: var(--r-card);
  padding: 36px 40px; display: grid; grid-template-columns: 160px 1fr auto; gap: 40px; align-items: center;
}
.essay-row .pdate { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--tl-faint); }
.essay-row h3 { font-size: 28px; color: var(--tl); }
.essay-row .pdek { font-size: 14px; line-height: 1.6; color: var(--tl-muted); margin-top: 8px; }
.follow-line { font-size: 14px; color: var(--tl-muted); margin-top: 24px; }

/* ─── Team (homepage) ─── */
.team-card { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--r-card); padding: 32px 36px; display: flex; gap: 24px; align-items: center; }
.team-card img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.team-card h3 { font-size: 26px; }
.team-card .role { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin: 6px 0 10px; }
.team-card .line { font-size: 14px; line-height: 1.6; color: var(--tl-muted); }
.team-card .links { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.team-card .links a { border-bottom: 1.5px solid var(--orange); padding-bottom: 2px; }
.team-card .links a:hover { color: var(--orange); }

/* ─── Contact (dark) + homepage footer ─── */
.contact { background: var(--ink); color: var(--td); padding: 88px 0 40px; }
.contact-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; margin-bottom: 56px; flex-wrap: wrap; }
.contact-top h2 { font-size: clamp(44px, 5vw, 64px); }
.contact-stmt { max-width: 460px; }
.contact-stmt .big { font-family: 'Instrument Serif', Georgia, serif; font-size: 26px; line-height: 1.35; }
.contact-stmt .big em { font-style: italic; color: var(--orange); }
.contact-stmt .small { font-size: 14px; color: var(--td-muted); margin-top: 12px; line-height: 1.7; }
.contact-grid { display: grid; grid-template-columns: 1fr 420px; gap: 72px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  background: var(--ink-input); border: 1px solid var(--border-dark); border-radius: var(--r-btn);
  padding: 15px 18px; font-family: 'Archivo', sans-serif; font-size: 14px; color: var(--td);
  outline: none; width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--orange); }
.contact-form ::placeholder { color: var(--td-faint); }
.contact-form .btn { align-self: flex-start; padding: 15px 32px; }
.contact-list { list-style: none; border-top: 2px solid var(--orange); }
.contact-list li { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--border-dark); gap: 20px; }
.contact-list .who { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--td-faint); }
.contact-list a { font-size: 14px; color: var(--td); }
.contact-list a:hover { color: var(--orange); }
.contact-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--border-dark);
  font-size: 12px; color: var(--td-faint); flex-wrap: wrap;
}
.contact .disclaimer { font-size: 11px; color: var(--td-disclaimer); line-height: 1.6; max-width: 640px; margin-top: 20px; padding-bottom: 8px; }

/* ─── Footer (dark, interior pages) ─── */
footer { background: var(--ink); color: var(--td); padding: 48px 0; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 24px; font-size: 13px; color: var(--td-muted); list-style: none; flex-wrap: wrap; }
.foot-links a { color: var(--td-muted); }
.foot-links a:hover { color: var(--td); }
.foot-links a.nav-contact { color: var(--orange); font-weight: 600; }
.foot-links a.nav-contact:hover { color: var(--td); }
.foot .where { font-size: 12px; color: var(--td-faint); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 24px; margin-top: 28px;
  padding-top: 24px; border-top: 1px solid var(--border-dark);
  font-size: 11px; color: var(--td-disclaimer); flex-wrap: wrap;
}
.foot-bottom .legal { max-width: 520px; line-height: 1.6; }

/* ─── Interior page hero (dark) ─── */
.page-hero { background: var(--ink); color: var(--td); padding: 72px 0 80px; }
.page-hero .eyebrow { letter-spacing: 0.14em; margin-bottom: 28px; }
.page-hero h1 { font-size: clamp(40px, 5.5vw, 64px); line-height: 1.06; }
.page-hero h1 em { font-style: italic; color: var(--orange); }
.page-hero .dek { font-size: 17px; line-height: 1.65; color: var(--td-muted); margin-top: 24px; max-width: 620px; }
.page-hero .dek-italic { font-style: italic; }
.page-hero .byline { font-size: 13px; font-weight: 600; color: var(--td-faint); margin-top: 24px; }
.page-hero .pills { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.co-hero { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.co-hero img { width: 72px; height: 72px; border-radius: var(--r-tile-lg); display: block; background: var(--card); object-fit: cover; }
.co-hero h1 { font-size: clamp(48px, 6vw, 76px); line-height: 1.02; }
.about-hero h1 { font-size: clamp(38px, 4.5vw, 56px); line-height: 1.08; }

/* ─── Interior prose ─── */
.page-body { padding: 72px 0 88px; }
.page-body h2 { font-size: 34px; margin-bottom: 20px; }
.page-body h2:not(:first-child) { margin-top: 48px; }
.page-body p { font-size: 16px; line-height: 1.85; color: var(--tl-prose); margin-bottom: 16px; }
.page-body p strong { color: var(--tl); font-weight: 700; }
.page-body p em { font-style: italic; }
.page-body .attribution { font-size: 13px; font-weight: 600; color: var(--tl-faint); }
.pull-card { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--r-card); padding: 36px 40px; margin: 40px 0; }
.pull-card .card-tag { display: block; margin-bottom: 14px; }
.pull-card .pull { font-family: 'Instrument Serif', Georgia, serif; font-size: 26px; line-height: 1.35; }
.pull-card .pull em { font-style: italic; color: var(--orange); }
.end-note { border-top: 1px solid var(--border-light); padding-top: 28px; font-size: 15px; color: var(--tl-muted); margin-top: 48px; }
.cta-row {
  border-top: 1px solid var(--border-light); padding-top: 36px; margin-top: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-row p { font-size: 15px; color: var(--tl-muted); max-width: 480px; line-height: 1.65; margin: 0; }
.cta-row .btn { white-space: nowrap; padding: 15px 30px; }

/* Founder cards (About) */
.founder-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; margin-bottom: 48px; }
.founder-card { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--r-card); padding: 40px; display: flex; flex-direction: column; }
.founder-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: top; margin-bottom: 24px; }
.founder-card h3 { font-size: 28px; }
.founder-card .role { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin: 8px 0 18px; }
.founder-card p { font-size: 14px; line-height: 1.75; color: var(--tl-muted); margin-bottom: 12px; }
.founder-card .email { font-size: 14px; font-weight: 600; color: var(--tl); border-bottom: 1px solid var(--border-light); padding-bottom: 3px; margin-top: auto; align-self: flex-start; }
.founder-card .email:hover { color: var(--orange); border-color: var(--orange); }

/* Portfolio index cards */
.port-row {
  background: var(--card); border: 1px solid var(--border-light); border-radius: var(--r-card);
  padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start;
}
.port-row .co-id { flex-wrap: wrap; gap: 16px; }
.port-row .co-logo { width: 44px; height: 44px; }
.port-row .co-name { font-size: 36px; }
.port-row p { font-size: 15px; line-height: 1.65; color: var(--tl-muted); margin: 14px 0 0; max-width: 58ch; }
.port-stack { display: flex; flex-direction: column; gap: 20px; }

/* Writing index card */
.post-card { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--r-card); padding: 40px; display: block; }
.post-card .pdate { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tl-faint); }
.post-card h2 { font-size: 36px; margin: 14px 0 0; }
.post-card p { font-size: 15px; line-height: 1.65; color: var(--tl-muted); margin-top: 12px; max-width: 60ch; }
.post-card .read { font-size: 13px; font-weight: 700; color: var(--orange); margin-top: 20px; }

/* Article (narrow measure) */
.article h2 { font-size: 30px; margin-bottom: 18px; }
.article h2:not(:first-child) { margin-top: 40px; }
.article p { font-size: 17px; line-height: 1.9; color: var(--tl-prose); margin-bottom: 16px; }
.article img { width: 100%; height: auto; border-radius: 12px; display: block; margin: 12px 0 32px; }
.article img.img-narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.article .end-note a, .end-note a { color: var(--tl); font-weight: 600; border-bottom: 1.5px solid var(--orange); }
.article .end-note a:hover, .end-note a:hover { color: var(--orange); }

/* ─── Motion ─── */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Mobile ─── */
@media (max-width: 900px) {
  .wrap, .wrap-820, .wrap-720 { padding: 0 24px; }
  .nav { flex-wrap: wrap; gap: 14px; padding: 20px 0; }
  nav ul { gap: 20px; }
  .hero { padding: 64px 0 72px; }
  .hero-foot { margin-top: 36px; gap: 32px; }
  .section, .belief { padding: 56px 0; }
  .cards-3, .cards-2, .founder-cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .geo { grid-template-columns: 1fr; gap: 40px; }
  .geo-card { padding: 36px; }
  .essay-row { grid-template-columns: 1fr; gap: 12px; padding: 28px; }
  .contact { padding: 64px 0 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-meta { margin-top: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero { padding: 52px 0 60px; }
  .page-body { padding: 52px 0 64px; }
  .port-row { grid-template-columns: 1fr; gap: 18px; padding: 28px; }
  .team-card { flex-direction: column; align-items: flex-start; }
}
