/* =========================================================
   Hologram Hacks - sub-page styles (Founder + Relay case study)
   Loaded AFTER styles.css on those two pages only.
   Depends on the base tokens/components already in styles.css.
   ========================================================= */

:root { --text-2: #3b3a33; }

/* active nav item (current page) */
.nav-links a.active { color: var(--text); position: relative; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

/* Keep the brand wordmark on one line. (Nav CTA sizing is static in
   styles.css so it matches on every page.) */
.brand .wm { white-space: nowrap; }

/* local segmented sub-nav shared by Founder + Case study */
.page-tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 30px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.page-tabs a {
  font-size: 0.82rem; font-weight: 500;
  color: var(--muted); padding: 8px 15px; border-radius: 8px; white-space: nowrap;
  transition: color 140ms, background 140ms;
}
.page-tabs a:hover { color: var(--text); }
.page-tabs a[aria-current="page"] {
  color: var(--text); background: var(--bg); box-shadow: inset 0 0 0 1px var(--border);
}

/* ---- shared sub-page shell ------------------------------ */
.subpage { padding-top: 68px; }
.page.narrow { max-width: var(--maxw); }
.backlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--muted); margin-bottom: 26px; transition: color 140ms;
}
.backlink:hover { color: var(--text); }

.sub-hero { padding: 104px 0 48px; position: relative; }
/* desktop top spacing matches the homepage headline line on purpose; just tighten on mobile */
@media (max-width: 760px) { .sub-hero { padding: 40px 0 28px; } }
.sub-hero::before {
  content: ""; position: absolute; z-index: 0;
  top: -10%; right: -6%; width: 760px; height: 720px;
  background:
    radial-gradient(circle at 60% 40%, var(--hero-glow-1), transparent 60%),
    radial-gradient(circle at 40% 70%, var(--hero-glow-2), transparent 62%);
  filter: blur(8px); pointer-events: none;
}
.sub-hero .page { position: relative; z-index: 1; }
.gradbar { height: 2px; width: 84px; border-radius: 2px; background: var(--card-top); margin-bottom: 30px; }
.case-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; vertical-align: middle;
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--border)); color: var(--accent); margin-left: 10px;
}
.sub-h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  letter-spacing: -0.02em; line-height: 1.1; max-width: 1040px; padding-bottom: 0.04em;
}
.sub-h1 .g { background: var(--grad-h1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sub-lede { color: var(--muted); font-size: 1.16rem; line-height: 1.6; max-width: 760px; margin-top: 22px; }
.sub-lede b { color: var(--text); font-weight: 600; }
.sub-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted-2); margin-top: 20px; letter-spacing: 0.02em; }

/* two-column hero: display text left, standfirst right */
.sub-cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
/* optical: drop the standfirst to the headline's cap height */
.sub-cols > div:last-child { padding-top: 0.55rem; }
.sub-cols .sub-lede { max-width: none; margin-top: 0; }
.sub-cols .sub-lede + .sub-lede { margin-top: 16px; }
.sub-cols .sub-meta { margin-top: 28px; }
@media (max-width: 860px) { .sub-cols { grid-template-columns: 1fr; gap: 24px; } }

/* paired callouts share a full-width row */
.callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.callouts .case-callout { max-width: none; margin-top: 0; }
@media (max-width: 860px) { .callouts { grid-template-columns: 1fr; } }

/* sections */
.case-section { padding: 38px 0; border-top: 1px solid var(--border); }
.case-section:first-of-type { border-top: none; }
.case-body { color: var(--text-2); }
.case-body p { max-width: 760px; margin-bottom: 13px; font-size: 1rem; }
.case-body p:last-child { margin-bottom: 0; }
.case-body b { color: var(--text); }
.case-body i { color: var(--muted); }
.case-thesis {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.45rem, 2.8vw, 2rem); letter-spacing: -0.02em;
  color: var(--text); max-width: 1000px; line-height: 1.32;
}
.case-thesis .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.case-callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 16px 20px; max-width: 760px; margin-top: 18px;
  color: var(--text-2); font-size: 0.95rem; line-height: 1.6;
}
.case-callout b { color: var(--text); }

/* tech-stack table */
.stack { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.stack-row { display: grid; grid-template-columns: 168px 1fr; gap: 22px; padding: 20px 24px; border-top: 1px solid var(--border); align-items: start; }
.stack-row:first-child { border-top: none; }
.stack-k { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); padding-top: 3px; }
.stack-v { color: var(--text-2); font-size: 0.97rem; line-height: 1.55; }
.stack-v .tags { margin-top: 12px; }
@media (max-width: 620px) { .stack-row { grid-template-columns: 1fr; gap: 10px; } }

/* enterprise-scale band */
.scale-band {
  display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 32px; margin-top: 8px;
}
.scale-figs { display: flex; gap: 30px; flex-shrink: 0; }
.scale-fig .n { font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; letter-spacing: -0.02em; color: var(--accent); line-height: 1; }
.scale-fig .l { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); margin-top: 8px; letter-spacing: 0.04em; max-width: 150px; line-height: 1.4; }
.scale-text { flex: 1; min-width: 300px; color: var(--text-2); font-size: 0.97rem; line-height: 1.6; }
.scale-text b { color: var(--text); }
.scale-text i { color: var(--muted); }
@media (max-width: 680px) { .scale-band { padding: 24px; } .scale-figs { gap: 24px; } }

/* case study - ownership list */
.owned { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 36px; max-width: 940px; }
.owned li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 0.95rem; }
.owned li::before { content: ""; position: absolute; left: 0; top: 0.52em; width: 7px; height: 7px; background: var(--accent); }
@media (max-width: 680px) { .owned { grid-template-columns: 1fr; } }

/* founder - where I add value */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.focus-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.focus-card .fc-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-light); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.focus-card h3 { font-size: 1.05rem; margin-bottom: 7px; letter-spacing: -0.01em; }
.focus-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.focus-card .eng-metric { color: var(--accent-light); font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.02em; margin-bottom: 9px; }
.focus-card .tags { margin-top: 14px; }
@media (max-width: 760px) { .focus-grid { grid-template-columns: 1fr; } }

/* founder - timeline */
.timeline { }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--border); }
.tl-item:first-child { border-top: none; }
.tl-when { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted-2); letter-spacing: 0.04em; padding-top: 3px; }
.tl-what h3 { font-size: 1.12rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.tl-what .role { font-family: var(--font-mono); font-size: 0.74rem; color: var(--accent); margin-bottom: 9px; letter-spacing: 0.04em; }
.tl-what p { color: var(--text-2); font-size: 0.95rem; line-height: 1.58; }
@media (max-width: 620px) { .tl-item { grid-template-columns: 1fr; gap: 8px; } }

/* founder - skills */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skill-col { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; }
.skill-col h3 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 14px; }
@media (max-width: 620px) { .skills { grid-template-columns: 1fr; } }
