/* ─────────────────────────────────────────────
   Pleco Ventures — styles
   Strict monochrome. OLED black, off-white ink.
   ───────────────────────────────────────────── */

:root {
  --bg: #000000;
  --bg-raised: #0a0a0a;
  --ink: #f2f2f0;
  --ink-strong: #ffffff;
  --muted: #888888;
  --muted-2: #5c5c5c;
  --border: #1a1a1a;
  --border-2: #262626;
  --border-hi: #3a3a3a;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 700ms;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--font-mono); font-feature-settings: "ss01", "zero"; }

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute; left: 8px; top: -100px;
  padding: 8px 12px; background: var(--ink); color: var(--bg);
  border-radius: var(--radius); z-index: 100;
}
.skip:focus { top: 8px; }

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

::selection { background: var(--ink); color: var(--bg); }

/* Brand mark — the supplied asset is a gradient; the site is monochrome.
   We neutralise it in CSS so the original file stays untouched. */
.brand-mark {
  filter: grayscale(1) brightness(1.15) contrast(1.05);
  flex: none;
}

/* ───────────── Type ───────────── */
.eyebrow {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-size: clamp(40px, 4.45vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--ink-strong);
  text-wrap: balance;
}
.display .dim { color: var(--muted); }
.display .line { display: block; white-space: nowrap; }

.h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink-strong);
  text-wrap: balance;
  max-width: 22ch;
}

.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
  text-wrap: pretty;
}

.label {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ───────────── Header ───────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1) blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}
.brand-dim { color: var(--muted); font-weight: 400; }

.nav {
  display: flex;
  gap: 4px;
}
.nav a, .footer-nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav a:hover, .footer-nav a:hover { color: var(--ink-strong); }
.nav a:hover { background: var(--bg-raised); }
.nav a.is-active { color: var(--ink-strong); }

.header-right { display: flex; align-items: center; gap: 12px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px 0 9px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-strong);
  box-shadow: 0 0 0 0 rgba(255,255,255,.5);
  animation: pulse 2.4s var(--ease) infinite;
}
.status-text { color: var(--ink); }
.status-meta { color: var(--muted-2); padding-left: 8px; border-left: 1px solid var(--border-2); font-variant-numeric: tabular-nums; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.45); }
  70%  { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span {
  display: block; width: 18px; height: 1px; background: var(--ink);
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding: 8px var(--gutter) 16px;
}
.mobile-nav a {
  padding: 12px 4px;
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.is-open { display: flex; }

/* ───────────── Hero ───────────── */
.hero {
  position: relative;
  padding-top: clamp(64px, 10vw, 128px);
  overflow: hidden;
}
.hero::before {
  /* hairline grid, barely there */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 55% 60% at 72% 40%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 72% 40%, #000 0%, transparent 62%);
  opacity: .5;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.hero-copy { display: grid; gap: 28px; }
.hero-copy .eyebrow { margin-bottom: -8px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hero-mark {
  margin: 0;
  justify-self: end;
  width: min(100%, 400px);
  filter: grayscale(1) brightness(1.3) contrast(1.02);
  opacity: .95;
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.hero-foot {
  margin-top: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.facts {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.facts li {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 0;
  font-size: 12.5px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 18px;
}
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts .k { color: var(--muted-2); }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }

.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; gap: 8px; }
.btn-primary { background: var(--ink-strong); color: var(--bg); }
.btn-primary:hover { background: #e6e6e4; }
.btn-arrow { display: inline-block; transition: transform var(--t-fast) var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--border-hi); background: var(--bg-raised); }

/* ───────────── Sections ───────────── */
.section { padding-block: clamp(80px, 11vw, 160px); }
.section + .section { border-top: 1px solid var(--border); }

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* Thesis — two-column contrast */
.contrast {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.contrast-divider { background: var(--border); align-self: stretch; }
.contrast .label { margin-bottom: 22px; }
.contrast li {
  position: relative;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.contrast li:last-child { border-bottom: 1px solid var(--border); }
.contrast li strong { color: var(--ink); font-weight: 500; }
.contrast-status li strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted-2); text-decoration-thickness: 1px; }
.contrast-us li strong { color: var(--ink-strong); }

.thesis-close {
  margin-top: clamp(40px, 6vw, 72px);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  max-width: 30ch;
  text-wrap: balance;
}

/* Focus — bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.cell {
  position: relative;
  grid-column: span 3;
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  align-content: start;
  min-height: 280px;
  isolation: isolate;
  transition: background var(--t-med) var(--ease);
}
.cell-wide { grid-column: span 4; }
.cell-wide + .cell { grid-column: span 2; }
.cell:nth-child(3) { grid-column: span 2; }
.cell:nth-child(4) { grid-column: span 4; }

.cell::after {
  /* pointer-tracking highlight — subtle, monochrome */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.055), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
  z-index: -1;
}
.cell:hover::after { opacity: 1; }
.cell:hover { background: var(--bg-raised); }

.cell-head { display: flex; align-items: baseline; gap: 16px; }
.cell-index { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.cell-title {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
}
.cell-body { color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 48ch; text-wrap: pretty; }

.tags {
  list-style: none; margin: auto 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  align-self: end;
  padding-top: 8px;
}
.tags li {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 4px 8px;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.cell:hover .tags li { border-color: var(--border-hi); color: var(--ink); }

/* Craft — manifesto */
.craft-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.craft-side { position: sticky; top: 96px; display: grid; gap: 18px; }

.manifesto {
  list-style: none; margin: 0; padding: 0;
  display: grid;
}
.manifesto li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.manifesto li:last-child { border-bottom: 1px solid var(--border); }
.m-index { font-size: 13px; color: var(--muted); padding-top: 5px; letter-spacing: .06em; }
.manifesto h3 {
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
  margin-bottom: 10px;
  text-wrap: balance;
}
.manifesto p { color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 52ch; text-wrap: pretty; }

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.contact-inner > div:first-child { display: grid; gap: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ───────────── Footer ───────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 32px 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "brand line nav"
    "copy  copy copy";
  align-items: center;
  gap: 16px 32px;
}
.footer-brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-strong); }
.footer-line { grid-area: line; font-size: 12px; color: var(--muted-2); letter-spacing: .02em; }
.footer-nav { grid-area: nav; display: flex; gap: 4px; margin-right: -10px; }
.footer-copy { grid-area: copy; font-size: 12px; color: var(--muted-2); padding-top: 16px; border-top: 1px solid var(--border); }

/* ───────────── Reveal ───────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.hero-copy .reveal:nth-child(2) { transition-delay: 60ms; }
.hero-copy .reveal:nth-child(3) { transition-delay: 120ms; }
.hero-copy .reveal:nth-child(4) { transition-delay: 180ms; }
.hero-mark.reveal { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-dot { animation: none; }
  .btn, .btn-arrow, .cell, .cell::after, .tags li { transition: none; }
}

/* ───────────── Responsive ───────────── */
@media (max-width: 1024px) {
  .cell, .cell-wide, .cell-wide + .cell, .cell:nth-child(3), .cell:nth-child(4) { grid-column: span 3; }
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .display { font-size: clamp(36px, 9.6vw, 56px); }
  .display .line { white-space: normal; display: inline; }
  .display .line.dim { display: block; }
  .hero-mark { justify-self: start; width: min(70%, 320px); order: -1; opacity: .8; }

  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--border); }

  .contrast { grid-template-columns: 1fr; }
  .contrast-divider { display: none; }

  .craft-grid { grid-template-columns: 1fr; }
  .craft-side { position: static; }

  .contact-inner { grid-template-columns: 1fr; align-items: start; }
  .contact-actions { justify-content: flex-start; }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "nav" "line" "copy";
    gap: 12px;
  }
  .footer-nav { margin-left: -10px; margin-right: 0; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .cell, .cell-wide, .cell-wide + .cell, .cell:nth-child(3), .cell:nth-child(4) { grid-column: span 6; min-height: 0; }
  .status { height: 28px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .h2 { max-width: none; }
}
