:root {
  /* Palette v8b — "tech / venture studio", all mid-tone: midnight hero, then a slate / indigo family with no white or
     near-white backgrounds; sections are separated by glowing ridge lines, not colour jumps. The brand gradient (teal → blue → violet) appears only as accents: thin
     lines, the hero wordmark, underlines, status dashes and the 01/02/03 section labels. Contrast verified on the render. */
  --mid: #141a3a; --mid-b: #1b2352;
  --slate: #1f2748; --slate-b: #263057;
  --about: #1c2448; --about-b: #212a55; --vent: #1a1f4a; --contact: #222b55;
  --ink: #141a3a;
  --text: #eef1fa; --muted-d: #b9c1de;       /* text on slate / midnight */
  --teal: #2ee6d0; --blue: #4f8cff; --violet: #8b5cf6;
  --moon: #f0e0c0;
  --hair-d: rgba(255, 255, 255, 0.10);
  --grad: linear-gradient(90deg, var(--teal), var(--blue) 50%, var(--violet));
  --grad-text: linear-gradient(90deg, var(--teal), #6fa4ff 50%, #a78bfa);   /* lightened stops for text on midnight (AA) */

  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--mid); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--about); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--text); color: var(--ink); padding: 0.5rem 0.9rem; border-radius: 4px; z-index: 20; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* Header — translucent midnight, sticky */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20, 26, 58, 0.92); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--hair-d);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.brand-campo { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav-list { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; color: var(--muted-d); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0.4rem 0.75rem; border-radius: 4px; transition: color .15s, background-color .15s; }
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }

/* Hero — midnight slate, dot grid, soft brand glows; the SVG line art carries the ridge and the campo */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(250px, 33vw, 480px);
  color: var(--text);
  background:
    radial-gradient(48% 60% at 6% 0%, rgba(139, 92, 246, 0.20), transparent 70%),
    radial-gradient(40% 55% at 78% 8%, rgba(46, 230, 208, 0.10), transparent 70%),
    radial-gradient(60% 50% at 70% 60%, rgba(79, 140, 255, 0.10), transparent 70%),
    linear-gradient(180deg, var(--mid), var(--mid-b) 55%, var(--about));
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(219, 229, 255, 0.16) 1px, transparent 1.2px);
  background-size: 22px 22px; background-position: 11px 11px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 75%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -0.045em; line-height: 1; margin-bottom: 1.25rem; text-wrap: balance; color: #fff; }
.hero h1 .campo { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { text-wrap: pretty; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; max-width: 40ch; color: var(--muted-d); margin: 0; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(300px, 44vw, 640px); display: block; z-index: 1; overflow: visible; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 2; background: var(--grad); opacity: .55; }

/* Sections — one mid-tone family; each section rises out of the one above along a glowing ridge line */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; isolation: isolate; color: var(--text); }
.section > .container { position: relative; z-index: 1; }
.section h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); color: #fff; }
/* 01 / 02 / 03 — small mono section labels with a gradient tick (decorative; empty alt text for screen readers) */
.section h2::before {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; color: var(--teal);
  font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em;
  padding-left: 26px; background: var(--grad) no-repeat 0 50% / 18px 1px;
}
#about-title::before { content: "01" / ""; }
#ventures-title::before { content: "02" / ""; }
#contact-title::before { content: "03" / ""; }
/* faint dot grid, fading in from one corner (shared by the mid-tone sections) */
.section::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(219, 229, 255, 0.09) 1px, transparent 1.2px); background-size: 22px 22px; background-position: 11px 11px;
  -webkit-mask-image: radial-gradient(55% 80% at 100% 10%, #000, transparent 80%); mask-image: radial-gradient(55% 80% at 100% 10%, #000, transparent 80%);
}
.ridge-edge { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: 120px; display: block; pointer-events: none; z-index: 0; }

/* About — slate */
.section-about {
  padding-bottom: clamp(6rem, 11vw, 8.5rem);
  background: radial-gradient(40% 70% at 95% 10%, rgba(79, 140, 255, 0.10), transparent 70%), linear-gradient(180deg, var(--about), var(--about-b));
}
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 2rem; align-items: start; }
.about-grid h2 { margin: 0; }
#about p { margin: 2rem 0 0; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.5; letter-spacing: -0.01em; color: var(--text); max-width: 34ch; text-wrap: pretty; }

/* Ventures — indigo, with luminous glows behind a grid of elevated glass cards */
.section-ventures {
  padding-bottom: clamp(6rem, 11vw, 8.5rem);
  background:
    radial-gradient(42% 46% at 22% 42%, rgba(79, 140, 255, 0.20), transparent 70%),
    radial-gradient(40% 46% at 82% 62%, rgba(139, 92, 246, 0.20), transparent 70%),
    radial-gradient(30% 30% at 60% 20%, rgba(46, 230, 208, 0.07), transparent 70%),
    var(--vent);
}
.section-ventures::before { -webkit-mask-image: radial-gradient(60% 70% at 0% 100%, #000, transparent 80%); mask-image: radial-gradient(60% 70% at 0% 100%, #000, transparent 80%); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 2rem; align-items: end; margin-bottom: 2.25rem; }
.section-head h2 { margin: 0; }
.venture-note { color: var(--muted-d); margin: 0; }
.venture-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.venture {
  position: relative; padding: 1.5rem 1.5rem 1.6rem; border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)), rgba(47, 58, 107, 0.55);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(5, 8, 25, 0.4), 0 22px 44px -22px rgba(5, 8, 25, 0.85);
  transition: border-color .2s, transform .2s, box-shadow .2s, background-color .2s;
}
/* gradient top edge; fuller on hover */
.venture::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; border-radius: 6px 6px 0 0; background: var(--grad); opacity: .85; transition: opacity .2s; }
.venture:hover { border-color: rgba(255, 255, 255, 0.26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(5, 8, 25, 0.4), 0 28px 54px -22px rgba(5, 8, 25, 0.95), 0 0 0 1px rgba(79, 140, 255, 0.18); }
.venture:hover::before { opacity: 1; }
.venture.is-linked:hover { transform: translateY(-2px); }
.venture-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; margin-bottom: 1.25rem; }
.venture-mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.venture-mark img { display: block; width: 40px; height: 40px; }
.venture-mark--full img { border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 4px 12px -4px rgba(0, 0, 0, 0.6); }
.venture-mark--icon img { object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }
.venture-mark--tile img { object-fit: contain; filter: drop-shadow(0 4px 10px rgba(31, 91, 255, 0.35)); }
.venture-mark--initials {
  border: 1px solid rgba(238, 241, 250, 0.6); border-radius: 4px; background: rgba(255, 255, 255, 0.06);
  font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--text);
}
.venture h3 { margin: 0 0 0.35rem; font-size: 1.3rem; letter-spacing: -0.015em; color: #fff; }
.venture h3 a { color: #fff; text-decoration: none; }
.venture h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.venture.is-linked h3 a { background: var(--grad) no-repeat 0 100% / 0 1px; transition: background-size .25s; }
.venture.is-linked:hover h3 a { background-size: 100% 1px; }
.venture-status { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-d); white-space: nowrap; }
.venture-status::before { content: ""; width: 18px; height: 1px; background: var(--grad); }
.venture p { margin: 0; color: var(--muted-d); font-size: 0.98rem; }
.venture .venture-domain { font-family: var(--mono); font-size: 0.8rem; color: #a9bbec; margin-bottom: 0.45rem; }

/* Contact — lighter slate, glass card; the ridge rises out of it into the ventures above */
.section-contact {
  padding-top: clamp(5rem, 9vw, 7rem); padding-bottom: clamp(7rem, 12vw, 9rem);
  background: radial-gradient(45% 80% at 85% 30%, rgba(79, 140, 255, 0.12), transparent 70%), radial-gradient(35% 70% at 10% 70%, rgba(46, 230, 208, 0.06), transparent 70%), var(--contact);
}
.contact-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 2rem; align-items: end;
  padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: 6px; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)), rgba(47, 58, 107, 0.5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 50px -26px rgba(5, 8, 25, 0.85);
}
.contact-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; border-radius: 6px 6px 0 0; background: var(--grad); }
.contact-card h2 { margin: 0; color: #fff; }
#contact p { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: -0.01em; color: var(--text); }
#contact a { color: #fff; text-decoration: none; background: var(--grad) no-repeat 0 100% / 100% 1px; padding-bottom: 3px; transition: background-size .2s; }
#contact a:hover { background-size: 100% 2px; }

/* Footer — midnight; the ridge rises from the contact slate and the campo's furrows run down to the baseline */
.site-footer {
  position: relative; isolation: isolate;
  padding: clamp(110px, 12vw, 160px) 0 1.75rem; font-size: 0.875rem; color: var(--muted-d);
  background: var(--mid);
}
.footer-art { position: absolute; left: 0; top: -119px; width: 100%; height: 380px; display: block; z-index: 0; pointer-events: none; }
.site-footer .container { position: relative; z-index: 1; }
.site-footer p { margin: 0; }
.footer-line { display: flex; align-items: center; justify-content: center; gap: 0.65rem; }
.footer-mono { width: 28px; height: 28px; flex: none; }

@media (max-width: 900px) { .hero { padding-bottom: calc(max(300px, 44vw) - 40px); } }
@media (max-width: 760px) {
  .about-grid, .section-head, .contact-card { grid-template-columns: 1fr; gap: 0.75rem; }
  #about p { margin-top: .5rem; }
  .venture-list { grid-template-columns: 1fr; }
  .ridge-edge { height: 80px; }
  .footer-art { top: -79px; height: 300px; }
}
@media (max-width: 520px) {
  .hero { padding-bottom: calc(max(300px, 44vw) + 10px); }
  .nav-list a { font-size: 0.86rem; padding: 0.4rem 0.5rem; }
  .brand { font-size: 1.05rem; gap: 0.5rem; }
  .brand-mark { width: 30px; height: 30px; }
}
@media (max-width: 420px) { .header-inner { padding-left: 1rem; padding-right: 1rem; } .nav-list { gap: 0; } .nav-list a { padding: 0.4rem 0.4rem; font-size: 0.82rem; } }
@media (max-width: 340px) { .header-inner { height: auto; padding-top: .6rem; padding-bottom: .6rem; flex-direction: column; align-items: flex-start; } }
