/*
  VYW & CO. — corporate / venture-studio site (vywco.com)
  Aesthetic: monochrome, editorial, premium — black on warm bone, taken
  straight from the logo (#E4E2DD background, black halftone orb mark).
  Plain static CSS + one small JS enhancement in index.html. No build.
*/

:root {
  --bg: #e4e2dd;        /* exact logo bone */
  --soft: #ecebe5;      /* cards / lighter panels */
  --soft-2: #dbd9d2;    /* alt section / pressed */
  --ink: #16140f;       /* warm near-black */
  --ink-soft: #2c2a23;
  --muted: #6d6a60;
  --faint: #9b988d;
  --line: rgba(22, 20, 15, 0.14);
  --line-2: rgba(22, 20, 15, 0.30);

  --maxw: 1120px;
  --r: 16px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
/* overflow-x must be on BOTH html and body or iOS Safari still lets the page
   scroll sideways when something (e.g. wide letter-spacing) overflows by a hair. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Never let media or embeds push the page wider than the screen. */
img, svg, video, iframe { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--ink); opacity: 0.4; display: inline-block; }
.eyebrow.center { justify-content: center; }

/* ---------- Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: background .25s, border-color .25s;
}
header.site.scrolled { background: var(--bg); border-bottom-color: var(--line); }
header.site .nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; }
.brand .mark {
  width: 30px; height: 30px; flex: none;
  background: url(/assets/vyw-mark.png) center / contain no-repeat;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--muted); font-size: 14px; letter-spacing: 0.01em; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 20px; } .brand { font-size: 13px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  border: 1px solid var(--ink); color: var(--bg); background: var(--ink);
  transition: transform .14s, background .14s, color .14s, border-color .14s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(22,20,15,0.04); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 72px; text-align: center; }
.hero .logo { width: min(340px, 72vw); height: auto; margin: 0 auto 30px; display: block; }
.hero h1 {
  font-size: clamp(38px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.03em;
  font-weight: 640; margin: 0 auto 22px; max-width: 17ch;
}
.hero h1 em { font-style: italic; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero .sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 58ch; margin: 0 auto 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* focus pills */
.focus { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 52px; }
.pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  color: var(--muted); padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px;
}
.pill b { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 84px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 70ch; margin-bottom: 46px; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 16px; font-weight: 640; }
h2 em { font-style: italic; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.lead { color: var(--muted); font-size: 17.5px; max-width: 64ch; margin: 0; }

.card {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; transition: transform .2s, border-color .2s, background .2s;
}
.card:hover { border-color: var(--line-2); }

/* approach pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }
.pillar .num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--faint); }
.pillar h3 { margin: 16px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }

/* ventures */
.ventures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 820px) { .ventures { grid-template-columns: 1fr; } }
.venture { display: flex; flex-direction: column; min-height: 250px; color: var(--ink); }
a.venture:hover { transform: translateY(-4px); border-color: var(--ink); }
.venture .badge {
  align-self: flex-start; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); margin-bottom: 22px;
}
.venture .badge.live { color: var(--ink); border-color: var(--ink); }
.venture .badge.live::before { content: "●"; font-size: 8px; vertical-align: middle; margin-right: 7px; }
.venture .logo-wrap { margin-bottom: 14px; }
.venture .logo-wrap img { height: 26px; width: auto; }
.venture h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.015em; }
.venture p { margin: 0 0 22px; color: var(--muted); font-size: 15px; flex: 1; }
.venture .go { font-size: 14px; font-weight: 600; color: var(--ink); }
.venture.soon { opacity: 0.62; }
.venture.soon h3 { color: var(--muted); }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }
.principle { padding: 32px; border-right: 1px solid var(--line); }
.principle:last-child { border-right: 0; }
@media (max-width: 820px) { .principle { border-right: 0; border-bottom: 1px solid var(--line); } .principle:last-child { border-bottom: 0; } }
.principle .big { font-size: 26px; font-weight: 640; letter-spacing: -0.02em; margin-bottom: 8px; }
.principle p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* CTA band — with a faint orb watermark */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 24px; padding: 64px 40px;
  background: var(--soft); text-align: center;
}
.cta-band .orb {
  position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px; background: url(/assets/vyw-mark.png) center / contain no-repeat;
  opacity: 0.06; pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 58px 0 66px; margin-top: 0; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-grid .col h4 { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.foot-grid .col a { display: block; color: var(--muted); margin: 9px 0; font-size: 14px; transition: color .15s; }
.foot-grid .col a:hover { color: var(--ink); }
.foot-brand { max-width: 300px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--faint); font-size: 13.5px; margin: 0; }
.legal { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal a { color: var(--faint); }
.legal a:hover { color: var(--muted); }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
body.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
body.reveal-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { body.reveal-ready .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================= */
/*  Venture detail page                                          */
/* ============================================================= */
.venture-hero { padding: 70px 0 60px; text-align: center; border-bottom: 1px solid var(--line); }
.venture-hero .kicker { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.venture-hero img.brand-logo { height: 46px; width: auto; margin: 22px auto 18px; display: block; }
.venture-hero .tag { font-size: clamp(20px, 3vw, 30px); letter-spacing: -0.02em; margin: 0 auto 10px; max-width: 22ch; font-weight: 600; }
.venture-hero p.blurb { color: var(--muted); max-width: 56ch; margin: 0 auto 28px; font-size: 17px; }
.venture-hero .hero-cta { justify-content: center; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 620px) { .resource-grid { grid-template-columns: 1fr; } }
.resource { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); transition: border-color .15s, transform .15s; }
.resource:hover { border-color: var(--ink); transform: translateY(-2px); }
.resource .t { font-weight: 600; font-size: 15px; }
.resource .d { color: var(--muted); font-size: 13px; }
.resource .arrow { color: var(--muted); }

.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 620px) { .platforms { grid-template-columns: 1fr; } }
.platform { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.platform h3 { margin: 0 0 6px; font-size: 18px; }
.platform p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }

.backlink { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 8px; }
.backlink:hover { color: var(--ink); }

/* ============================================================= */
/*  Article pages (Help, Guidelines, Privacy, Terms)            */
/* ============================================================= */
.article { padding: 60px 0 30px; max-width: 800px; }
.article h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: -0.03em; margin: 0 0 10px; }
.article .updated { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--faint); font-size: 13px; margin-bottom: 16px; }
.article h2 { font-size: 20px; letter-spacing: -0.01em; margin: 36px 0 10px; }
.article p { color: var(--muted); margin: 0 0 14px; }
.article ul { color: var(--muted); padding-left: 20px; }
.article ul li { margin: 6px 0; }
.article a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.article a:hover { border-color: var(--ink); }

details.faq { border: 1px solid var(--line); border-radius: 12px; padding: 2px 20px; margin-bottom: 12px; background: var(--soft); transition: border-color .15s; }
details.faq:hover { border-color: var(--line-2); }
details.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; color: var(--ink); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--muted); font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 16px; }

.vyw { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.18em; font-weight: 600; }

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 48px; }
  .article { padding: 40px 0 24px; }
  .cta-band { padding: 44px 22px; }
  header.site .nav { height: 60px; }
  /* keep the brand wordmark from wrapping/overflowing on narrow screens */
  .brand { letter-spacing: 0.16em; }
}
