/* === Fluid Reality · pitch.fluidreality.com === */

:root {
  --fr-primary:   #721012;
  --fr-secondary: #EE2C24;
  --fr-ink:       #0E0E0E;
  --fr-paper:     #F2F2F3;
  --fr-paper-2:   #E8E8EA;
  --fr-muted:     #6B6B70;
  --fr-rule:      #1A1A1C;
  --fr-line:      #C8C8CC;

  --f-display: "Fraunces", "Times New Roman", Georgia, serif;
  --f-body:    "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 720px;
  --gutter: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fr-ink);
  background-color: var(--fr-paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a { color: var(--fr-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fr-secondary); }

/* === MASTHEAD === */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--fr-rule);
}
.logo img {
  display: block;
  height: 28px;
  width: auto;
}
.masthead-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fr-primary);
  text-transform: uppercase;
  white-space: nowrap;
}

/* === HERO === */
.hero { padding: 44px 0 56px; }
.kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fr-primary);
  margin: 0 0 28px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(44px, 10vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--fr-ink);
  margin: 0 0 28px;
  font-variation-settings: "opsz" 144;
}
.sub {
  font-size: clamp(18px, 2.3vw, 21px);
  line-height: 1.45;
  color: var(--fr-ink);
  margin: 0 0 36px;
  max-width: 560px;
}

/* spec strip */
.specstrip {
  list-style: none;
  padding: 18px 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
  border-top: 1px solid var(--fr-rule);
  border-bottom: 1px solid var(--fr-rule);
}
.specstrip li { display: flex; flex-direction: column; gap: 4px; }
.specstrip-k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fr-muted);
  text-transform: uppercase;
}
.specstrip-v {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--fr-primary);
  letter-spacing: 0.02em;
}

/* CTAs */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid;
  transition: transform 120ms ease, background-color 160ms ease, color 160ms ease;
}
.cta-primary {
  background: var(--fr-secondary);
  color: var(--fr-paper);
  border-color: var(--fr-secondary);
}
.cta-primary:hover {
  background: var(--fr-primary);
  border-color: var(--fr-primary);
  color: var(--fr-paper);
  transform: translateY(-1px);
}
.cta-ghost {
  background: transparent;
  color: var(--fr-ink);
  border-color: var(--fr-ink);
}
.cta-ghost:hover {
  background: var(--fr-ink);
  color: var(--fr-paper);
  transform: translateY(-1px);
}

/* === THESIS === */
.thesis {
  padding: 48px 0;
  border-top: 1px solid var(--fr-rule);
}
.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fr-primary);
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 500;
}
.thesis-body {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 620px;
}

/* === PROOF === */
.proof {
  padding: 48px 0;
  border-top: 1px solid var(--fr-rule);
}
.proof-grid {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.proof-grid--redacted { margin-top: 18px; }
.proof-card {
  background: var(--fr-paper);
  border: 1px solid var(--fr-line);
  margin: -1px 0 0 -1px;        /* collapse adjoining borders */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 134px;
  padding: 22px 18px 16px;
}

/* logo wrapper */
.proof-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
.proof-logo {
  display: block;
  max-height: 28px;
  width: auto;
  max-width: 100%;
}
.proof-logo--samsung { max-height: 22px; }
.proof-logo--nsf     { max-height: 44px; }
.proof-logo--cmu     { max-height: 44px; }
.proof-logo--nu      { max-height: 22px; }
.proof-logo--manus   { max-height: 22px; }
.proof-suffix {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #1428a0;
}

/* typographic Samsung NEXT wordmark — simpleicons SVG is squeezed into 24x24 so we render it as type */
.proof-wordmark--samsung {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-body);
  letter-spacing: 0.02em;
  line-height: 1;
}
.proof-wordmark-1 {
  font-weight: 700;
  font-size: 18px;
  color: #1428a0;
}
.proof-wordmark-2 {
  font-weight: 500;
  font-size: 18px;
  color: var(--fr-secondary);
}
@media (min-width: 600px) {
  .proof-wordmark-1, .proof-wordmark-2 { font-size: 20px; }
}

/* === REDACTED CARDS === */
.proof-redacted {
  background: var(--fr-paper);
  border-style: dashed;
  border-color: var(--fr-line);
}
.proof-redacted .proof-mark {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.proof-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--fr-paper);
  background: var(--fr-secondary);
  padding: 2px 8px;
  text-transform: uppercase;
  line-height: 1.4;
}
.proof-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.proof-bars span {
  display: block;
  height: 8px;
  background: var(--fr-primary);
  position: relative;
  overflow: hidden;
}
.proof-bars span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.18) 0 2px,
    transparent 2px 4px
  );
}
.proof-bars span:nth-child(1) { width: 82%; }
.proof-bars span:nth-child(2) { width: 64%; }
.proof-bars span:nth-child(3) { width: 74%; }

.proof-cap {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fr-muted);
  text-transform: uppercase;
}

.proof-note {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fr-muted);
  margin: 16px 0 0;
  text-transform: uppercase;
}

/* === DECK === */
.deck {
  padding: 48px 0;
  border-top: 1px solid var(--fr-rule);
}
.deck-card {
  display: block;
  position: relative;
  text-decoration: none;
  color: var(--fr-paper);
  background: var(--fr-primary);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--fr-rule);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.deck-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -16px rgba(114, 16, 18, 0.55);
}
.deck-card-inner {
  position: relative;
  z-index: 2;
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 260px;
}
.deck-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 12% 110%, rgba(238, 44, 36, 0.55), transparent 55%),
    radial-gradient(circle at 95% -10%, rgba(0, 0, 0, 0.4), transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}
.deck-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px);
  pointer-events: none;
}
.deck-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fr-secondary);
  text-transform: uppercase;
}
.deck-headline {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(36px, 8vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--fr-paper);
  font-variation-settings: "opsz" 144;
  margin-top: auto;
}
.deck-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 242, 243, 0.25);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.deck-meta {
  color: rgba(242, 242, 243, 0.65);
  text-transform: uppercase;
}
.deck-cta {
  color: var(--fr-paper);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.deck-cta span { transition: transform 200ms ease; display: inline-block; margin-left: 4px; }
.deck-card:hover .deck-cta span { transform: translateX(4px); }

/* === BOOK === */
.book {
  padding: 48px 0 64px;
  border-top: 1px solid var(--fr-rule);
}
.book-lede {
  font-size: 16px;
  color: var(--fr-muted);
  margin: 0 0 28px;
  max-width: 520px;
}
.cal-wrap {
  background: var(--fr-paper-2);
  border: 1px solid var(--fr-rule);
  overflow: hidden;
  position: relative;
}
.cal-wrap iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: var(--fr-paper-2);
}
.book-fallback {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fr-muted);
  margin: 16px 0 0;
  letter-spacing: 0.02em;
}
.book-fallback a { color: var(--fr-primary); text-decoration: underline; }

/* === FOOTER === */
.footer {
  padding: 36px 0 56px;
  border-top: 1px solid var(--fr-rule);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-bottom: 24px;
  font-family: var(--f-mono);
  font-size: 13px;
}
.footer-links a {
  color: var(--fr-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--fr-ink);
  padding-bottom: 2px;
}
.footer-links a:hover { color: var(--fr-secondary); border-color: var(--fr-secondary); }
.footer-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fr-muted);
  text-transform: uppercase;
  margin: 0;
}

/* === LARGER SCREENS === */
@media (min-width: 600px) {
  .proof-grid--known    { grid-template-columns: repeat(5, 1fr); }
  .proof-grid--redacted { grid-template-columns: repeat(4, 1fr); }
  .proof-card { min-height: 146px; padding: 22px 18px 16px; }
  .proof-logo--samsung { max-height: 24px; }
  .proof-logo--nsf     { max-height: 48px; }
  .proof-logo--cmu     { max-height: 48px; }
  .proof-logo--nu      { max-height: 24px; }
  .proof-logo--manus   { max-height: 24px; }
}

@media (min-width: 720px) {
  .masthead { padding: 36px 0 28px; }
  .logo img { height: 34px; }
  .hero { padding: 64px 0 72px; }
  .specstrip { grid-template-columns: repeat(4, 1fr); }
  .thesis { padding: 64px 0; }
  .proof { padding: 64px 0; }
  .deck  { padding: 64px 0; }
  .deck-card-inner { padding: 44px 36px 36px; min-height: 320px; }
  .book  { padding: 64px 0 80px; }
  .cal-wrap iframe { height: 760px; }
}

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

/* Print */
@media print {
  body { background: white; }
  .cta, .cal-wrap, .masthead-tag, .deck-bg { display: none; }
}
