/* ==========================================================================
   LLC portfolio sites - shared stylesheet
   Per-site accent is injected as --accent / --accent-soft in the document head.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #09090b;
  --bg-alt:      #0e0e11;
  --bg-card:     #141418;
  --bg-raised:   #1a1a1f;
  --border:      #26262c;
  --border-soft: #1d1d22;
  --text:        #e9e9ec;
  --text-muted:  #8f8f9a;
  --text-dim:    #6b6b76;
  --white:       #ffffff;

  --accent:      #4f8cff;   /* overridden per site */
  --accent-soft: rgba(79, 140, 255, 0.10);

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 68px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
img, svg { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

::selection { background: var(--accent); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--accent); color: var(--white);
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ============================ HEADER ============================ */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(9, 9, 11, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--white); }

.brand-mark {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(255, 255, 255, .28) 130%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset;
}

.brand-text {
  font-size: 16.5px; font-weight: 700; letter-spacing: -.35px; color: var(--white);
  white-space: nowrap;
}
.brand-text span { color: var(--accent); }

.site-nav ul { display: flex; align-items: center; gap: 34px; }

.site-nav a {
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.1px;
}
.site-nav a:hover, .site-nav a.current { color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--white);
  border-radius: 2px; margin: 5px 0; transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ SECTIONS ============================ */

section { padding: 96px 0; }

.section-label {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.6px; color: var(--accent); margin-bottom: 18px;
}

.section-title {
  font-size: 36px; font-weight: 700; color: var(--white);
  letter-spacing: -1.1px; line-height: 1.2; margin-bottom: 18px;
}

.section-desc {
  font-size: 16.5px; color: var(--text-muted); max-width: 660px; line-height: 1.8;
}

.band { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* ============================ HERO ============================ */

.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 104px) 0 96px;
  border-bottom: 1px solid var(--border-soft);
}

/* Faint engineering grid - reads as "tech" without competing with the type. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

.hero::after {
  content: ""; position: absolute; pointer-events: none;
  top: -340px; right: -180px; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
}

.hero .wrap { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 2.2px;
  color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 7px 16px 7px 13px; margin-bottom: 30px;
  background: rgba(255, 255, 255, .015);
}
.hero-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero h1 {
  font-size: 52px; font-weight: 800; line-height: 1.1; letter-spacing: -2px;
  color: var(--white); max-width: 15ch; margin-bottom: 26px;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: 18px; color: var(--text-muted); max-width: 620px; line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ============================ BUTTONS ============================ */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-size: 14.5px; font-weight: 600;
  padding: 13px 26px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, filter .18s ease;
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { filter: brightness(1.12); color: var(--white); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--white); }

.btn svg { width: 15px; height: 15px; }

/* ============================ OVERVIEW / PROSE ============================ */

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 72px; align-items: start;
}

.prose p { color: var(--text-muted); font-size: 16.5px; line-height: 1.85; }
.prose p + p { margin-top: 20px; }
.prose strong { color: var(--text); font-weight: 600; }

/* ============================ SECTOR CARDS ============================ */

.sector-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 20px; margin-top: 46px;
}

.sector-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
  transition: border-color .25s ease, transform .25s ease;
}
.sector-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.sector-card h3 {
  font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.sector-count {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 100px; padding: 3px 10px; flex-shrink: 0;
}

.sector-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }

.sector-list { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.sector-list li {
  font-size: 13.5px; color: var(--text-dim); padding: 5px 0;
  font-family: var(--mono); letter-spacing: -.2px;
}

/* ============================ PRINCIPLES ============================ */

.principles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 42px; margin-top: 50px;
}

.principle { padding-top: 26px; border-top: 2px solid var(--accent); }
.principle h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.principle p { font-size: 14.5px; color: var(--text-muted); line-height: 1.75; }

/* ============================ HOLDINGS ============================ */

.page-head {
  padding: calc(var(--header-h) + 86px) 0 62px;
  border-bottom: 1px solid var(--border-soft);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; pointer-events: none;
  top: -420px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 66%);
}
.page-head .wrap { position: relative; z-index: 1; }

.page-head h1 {
  font-size: 42px; font-weight: 800; letter-spacing: -1.5px;
  color: var(--white); line-height: 1.15; margin-bottom: 18px;
}
.page-head p { font-size: 17px; color: var(--text-muted); max-width: 640px; line-height: 1.8; }

.holdings-group { padding: 76px 0; border-bottom: 1px solid var(--border-soft); }
.holdings-group:last-of-type { border-bottom: 0; }

.group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 8px;
}

.group-head h2 {
  font-size: 25px; font-weight: 700; color: var(--white); letter-spacing: -.7px;
}

.group-head .sector-count { font-size: 12.5px; }

.group-desc { font-size: 15.5px; color: var(--text-muted); max-width: 660px; }

.holdings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px; margin-top: 34px;
}

.holding {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.holding:hover {
  border-color: var(--accent); background: var(--bg-raised); transform: translateY(-3px);
}

.holding-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 12px;
}

.holding h3 { font-size: 17.5px; font-weight: 700; color: var(--white); letter-spacing: -.3px; }

.badge {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .6px; white-space: nowrap;
  color: var(--text-dim); border: 1px solid var(--border);
  border-radius: 100px; padding: 3px 9px; flex-shrink: 0;
}
.badge-ios { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.holding p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; flex: 1; }

.holding-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-soft);
  font-family: var(--mono); font-size: 13px; color: var(--text-dim);
  transition: color .18s ease;
}
.holding:hover .holding-link { color: var(--accent); }
.holding-link svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ============================ CONTACT ============================ */

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px; align-items: start; margin-top: 8px;
}

.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 38px;
}

.contact-card h2 { font-size: 21px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.contact-card > p { font-size: 15px; color: var(--text-muted); line-height: 1.75; }

.email-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  font-size: 17px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 20px; width: 100%; word-break: break-all;
  transition: border-color .2s ease, background .2s ease;
}
.email-link:hover { border-color: var(--accent); background: var(--accent-soft); }
.email-link svg { width: 17px; height: 17px; flex-shrink: 0; }

.detail-list { margin-top: 8px; }

.detail-list div {
  display: grid; grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-soft);
}
.detail-list div:last-child { border-bottom: 0; }

.detail-list dt {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.6px; color: var(--text-dim); padding-top: 3px;
}
.detail-list dd { font-size: 15.5px; color: var(--text); line-height: 1.65; }

.inquiry-list { margin-top: 30px; }
.inquiry-list li {
  display: flex; gap: 13px; padding: 13px 0;
  font-size: 15px; color: var(--text-muted); line-height: 1.65;
}
.inquiry-list li::before {
  content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 10px;
  border-radius: 50%; background: var(--accent);
}
.inquiry-list strong { color: var(--text); font-weight: 600; }

/* ============================ CTA BAND ============================ */

.cta { text-align: center; }
.cta h2 {
  font-size: 32px; font-weight: 700; color: var(--white);
  letter-spacing: -1px; margin-bottom: 14px;
}
.cta p { font-size: 16.5px; color: var(--text-muted); max-width: 520px; margin: 0 auto 32px; }
.cta .hero-actions { justify-content: center; }

/* ============================ FOOTER ============================ */

.site-footer { border-top: 1px solid var(--border-soft); padding: 62px 0 34px; }

.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 56px; padding-bottom: 40px;
}

.footer-brand p {
  font-size: 14.5px; color: var(--text-muted); line-height: 1.75;
  max-width: 400px; margin-top: 14px;
}

.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

.footer-nav h3 {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.8px; color: var(--text-dim); margin-bottom: 16px;
}
.footer-nav li { padding: 6px 0; }
.footer-nav a { font-size: 14.5px; color: var(--text-muted); word-break: break-word; }
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  padding-top: 30px; border-top: 1px solid var(--border-soft);
}
.footer-bottom p { font-size: 13px; color: var(--text-dim); }
.footer-note { max-width: 460px; text-align: right; }

/* ============================ RESPONSIVE ============================ */

@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-note { text-align: left; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  section { padding: 68px 0; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(9, 9, 11, .97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: none; padding: 12px 20px 22px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--border-soft); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: 15px 2px; font-size: 14px; }

  .hero { padding: calc(var(--header-h) + 66px) 0 66px; }
  .hero h1 { font-size: 35px; letter-spacing: -1.2px; max-width: none; }
  .hero-sub { font-size: 16.5px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .page-head { padding: calc(var(--header-h) + 56px) 0 46px; }
  .page-head h1 { font-size: 31px; letter-spacing: -1px; }

  .section-title { font-size: 27px; letter-spacing: -.7px; }
  .cta h2 { font-size: 26px; }

  .holdings-grid, .sector-grid { grid-template-columns: 1fr; }
  .holdings-group { padding: 52px 0; }
  .principles { gap: 30px; margin-top: 38px; }

  .contact-card { padding: 28px 22px; }
  .detail-list div { grid-template-columns: 1fr; gap: 5px; }

  .footer-nav { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
  }
}
