/* VentureQubits site. White page, one blue accent (plan R2). */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #1d1e22;
  --ink-2: #4b4d55;
  --muted: #62646c;
  --line: rgba(29, 30, 34, 0.13);
  --panel: #f6f6f8;
  --accent: #173dff;
  --accent-wash: #f0f2ff;
  --accent-line: rgba(23, 61, 255, 0.42);
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 2.6vw, 40px);
  --consent-h: 0px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 30;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
  font: 500 12px/1 var(--mono);
}
.skip:focus { top: 12px; }

.eyebrow, .pillar-top, .pillar-cue, .row-no {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- Page frame ---------- */

.page {
  max-width: 1700px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 22px var(--gutter) calc(14px + var(--consent-h));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.masthead { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 12px; }
.brand { font-weight: 800; font-size: clamp(24px, 2.1vw, 36px); letter-spacing: -0.06em; text-decoration: none; }
.signoff { margin: 0; color: var(--ink-2); font-style: italic; font-weight: 500; font-size: 15px; }

.main { display: contents; }

.intro {
  padding: clamp(10px, 2.2vh, 28px) 0 clamp(14px, 2.6vh, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  align-items: end;
  gap: 12px clamp(24px, 4vw, 72px);
}
.eyebrow { margin: 0; color: var(--accent); font-size: 11px; font-weight: 500; }
.intro h1 {
  margin: 12px 0 12px;
  font-size: clamp(32px, min(4.2vw, 7.4vh), 66px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 750;
}
.intro h1 .tl { display: block; text-wrap: balance; }
.tagline-turn { color: #686a71; }
.identity {
  margin: 0 0 6px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  max-width: 34ch;
  color: var(--ink-2);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.45;
}

/* ---------- Portfolio ---------- */

.portfolio { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 12px; min-height: 0; }

.pillar {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Crect width='1.5' height='1.5' fill='%231d1e22' fill-opacity='0.12'/%3E%3C/svg%3E");
  background-size: 18px 18px;
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.pillar--quantum { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Crect width='1.5' height='1.5' fill='%23173dff' fill-opacity='0.2'/%3E%3C/svg%3E"); }
.pillar:focus { outline: none; }

.pillar-top { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.pillar-meter { display: flex; gap: 3px; margin-left: auto; }
.pillar-meter i { display: block; width: 22px; height: 6px; border: 1px solid var(--accent-line); transform-origin: left center; }
.pillar-meter i.on { background: var(--accent); border-color: var(--accent); }
.pillar-status { color: var(--accent); }
.pillar-status b { font-weight: 500; }

.rows {
  list-style: none;
  margin: 0;
  padding: 12px 0 14px;
  align-self: end;
  display: grid;
  gap: 0;
}
.row .row-link { border-top: 1px solid var(--line); }

.row-link {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 10px;
  text-decoration: none;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), padding 0.25s var(--ease);
}
.row-link:hover { background: rgba(23, 61, 255, 0.07); padding-left: 14px; }
.row-no { font-size: 11px; color: var(--muted); }
.row-body strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.row-desc { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.row-go { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.02em; color: var(--accent); white-space: nowrap; }
.row-link--soon .row-go { font-family: var(--sans); font-weight: 600; letter-spacing: 0; font-size: 12px; color: var(--ink-2); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: live 2.4s var(--ease) infinite; }
@keyframes live {
  0%, 100% { transform: scale(1); background-color: var(--accent); }
  50% { transform: scale(0.55); background-color: #7d93ff; }
}

.pillar-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pillar-name {
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(40px, min(5.8vw, 11vh), 92px);
  line-height: 0.82;
  letter-spacing: -0.085em;
}
.pillar-cue { margin: 0 0 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Desktop, tall enough: one screen, reveal on hover or focus (plan R1, R4). */
@media (min-width: 900px) and (min-height: 640px) {
  .page { height: 100vh; height: 100dvh; }

  @media (hover: hover) {
    /* A folded panel keeps its company names as a quiet index; detail unfolds on hover or focus. */
    .row-desc, .row-go, .row-no { transition: opacity 0.35s var(--ease); }
    .row-body strong { transition: color 0.35s var(--ease), letter-spacing 0.35s var(--ease); }
    .pillar-cue { transition: opacity 0.3s var(--ease); }

    .pillar--deeptech .row-desc,
    .pillar--deeptech .row-go,
    .pillar--deeptech .row-no { opacity: 0; }
    .pillar--deeptech .row-body strong { color: var(--muted); }
    .pillar--deeptech .row-link { pointer-events: none; }

    .pillar--deeptech:is(:hover, :focus-within) :is(.row-desc, .row-go, .row-no) { opacity: 1; }
    .pillar--deeptech:is(:hover, :focus-within) .row-body strong { color: var(--ink); }
    .pillar--deeptech:is(:hover, :focus-within) .row-link { pointer-events: auto; }

    /* Quantum is open at rest; Deep tech takes over while hovered or focused. */
    .pillar--quantum,
    .pillar:is(:hover, :focus-within) { background-color: var(--accent-wash); border-color: var(--accent-line); }

    .portfolio:has(.pillar--deeptech:is(:hover, :focus-within)) .pillar--quantum { background-color: var(--panel); border-color: var(--line); }
    .portfolio:has(.pillar--deeptech:is(:hover, :focus-within)) .pillar--quantum :is(.row-desc, .row-go, .row-no) { opacity: 0; }
    .portfolio:has(.pillar--deeptech:is(:hover, :focus-within)) .pillar--quantum .row-body strong { color: var(--muted); }
    .portfolio:has(.pillar--deeptech:is(:hover, :focus-within)) .pillar--quantum .row-link { pointer-events: none; }

    .pillar--quantum .pillar-cue,
    .pillar:is(:hover, :focus-within) .pillar-cue { opacity: 0; }
    .portfolio:has(.pillar--deeptech:is(:hover, :focus-within)) .pillar--quantum .pillar-cue { opacity: 1; }
  }
}

/* One-screen layout on shorter desktops: tighten so four rows fit (plan KTD5). */
@media (min-width: 900px) and (min-height: 640px) and (max-height: 820px) {
  .page { padding-top: 16px; }
  .masthead { padding-bottom: 6px; }
  .intro { padding: 6px 0 14px; }
  .intro h1 { margin: 8px 0; font-size: clamp(30px, min(4vw, 6.2vh), 56px); }
  .identity { font-size: 15px; }
  .pillar { padding: 14px 18px 14px; }
  .rows { padding: 6px 0 8px; }
  .row-link { padding: 6px 10px; }
  .row-body strong { font-size: 14px; }
  .row-desc { font-size: 12.5px; margin-top: 1px; }
  .pillar-name { font-size: clamp(36px, min(5.2vw, 8.4vh), 72px); }
}

/* Mid-width screens: the headline needs the full width, the line under it follows. */
@media (max-width: 1099px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .identity { max-width: 52ch; }
}

/* Short or narrow screens: stack and scroll, everything visible. */
@media (max-width: 899px), (max-height: 639px) {
  .portfolio { grid-template-columns: 1fr; }
  .pillar { grid-template-rows: auto auto auto; }
  .pillar-foot { order: -1; margin: 14px 0 4px; }
  .pillar-top { order: -2; }
  .pillar-cue { display: none; }
  .rows { padding-top: 6px; }
}
@media (max-width: 899px) {
  .masthead { flex-direction: column; gap: 6px; }
  .intro { padding: 36px 0 28px; grid-template-columns: minmax(0, 1fr); }
  .identity { max-width: 40ch; }
  .intro h1 { font-size: clamp(36px, 10.5vw, 60px); }
  .pillar-name { font-size: clamp(44px, 15vw, 84px); }
  .row-link { grid-template-columns: 26px minmax(0, 1fr); }
  .row-go { grid-column: 2; }
}

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 12px; color: var(--muted); font: 500 11px/1.4 var(--mono); letter-spacing: 0.04em;
}
.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Forms ---------- */

.botcheck { display: none; }

/* No-JavaScript confirmation after the form posts back (plan U4). */
.sent { display: none; }
.sent:target {
  display: flex; gap: 16px; align-items: center;
  position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 40;
  padding: 12px 16px; background: var(--ink); color: var(--paper); font-size: 14px;
}
.sent:target p { margin: 0; }

/* ---------- Consent bar ---------- */

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 10px var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent-actions { display: flex; gap: 8px; }
.consent button { padding: 8px 16px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 600; }
.consent .primary { padding: 8px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .pulse { animation: none; }
}

/* ---------- 404 page ---------- */

.e404 { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 32px var(--gutter); }
.e404 .wrap { max-width: 560px; width: 100%; }
.e404 .code { margin: 0 0 18px; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.e404 .title { margin: 0 0 18px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1; letter-spacing: -0.06em; font-weight: 750; }
.e404 .lead { margin: 0 0 28px; max-width: 46ch; color: var(--ink-2); line-height: 1.5; }
.e404 .cta { display: inline-block; padding: 11px 16px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.e404 .cta:hover { background: var(--accent); }
.e404 .signoff { margin-top: 56px; }

/* ---------- Privacy page ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: 22px var(--gutter) calc(32px + var(--consent-h)); }
.doc .masthead { padding-bottom: 28px; }
.doc-body h1 { margin: 12px 0 14px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1; letter-spacing: -0.06em; font-weight: 750; text-wrap: balance; }
.doc-lead { margin: 0 0 8px; font-size: 18px; color: var(--ink-2); line-height: 1.5; }
.doc-body h2 { margin: 36px 0 8px; font-size: 19px; letter-spacing: -0.02em; }
.doc-body p { margin: 0 0 12px; line-height: 1.6; color: var(--ink-2); max-width: 66ch; }
.doc-body a { color: var(--accent); }
.doc .footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); }
.doc .footer a { color: inherit; }
.consent a { color: var(--accent); }
.footer a { color: inherit; text-underline-offset: 3px; }
.footer-links { display: inline-flex; gap: 18px; }
