/* ============================================================
   SFF — Solo Founder Fellowship · landing page styles
   ------------------------------------------------------------
   Brand: warm cream, near-black, signal orange.
   Type: JetBrains Mono (one face, three weights).
   ============================================================ */

/* === Fonts (loaded from jsdelivr / fontsource) === */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/jetbrains-mono/files/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/jetbrains-mono/files/jetbrains-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/jetbrains-mono/files/jetbrains-mono-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* === Design tokens === */
:root {
  --bg: #F2EEE5;             /* warm cream — NOT pure white */
  --fg: #0A0A0A;             /* near-black */
  --muted: #6B6B6B;          /* secondary text */
  --accent: #FF4D00;         /* signal orange — sparing use only */
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.85);
}

/* === Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* === Base === */
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Subtle paper grain — adds tactile warmth without being obvious */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' 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.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.7;
}

header, main, footer { position: relative; z-index: 1; }

/* === Header === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  border-bottom: 0.5px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 28px; height: 28px; display: block; }
.brand-wm { font-weight: 700; font-size: 15px; letter-spacing: 2px; }

.meta {
  display: flex;
  gap: 22px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
}

.meta .live::before {
  content: "●";
  color: var(--accent);
  margin-right: 6px;
  animation: blink 2s ease-in-out infinite;
}

/* === Hero / main === */
main {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  padding: 56px 40px 64px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.left-col h1 {
  font-size: clamp(32px, 5.2vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1.4px;
  max-width: 12ch;
}

.left-col h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1s 0.15s cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}

.left-col h1 .period { color: var(--accent); }

/* Lede — opens the manifesto. Slightly larger than body for emphasis. */
.lede {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  max-width: 560px;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1s 0.4s cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}
.lede strong { font-weight: 500; }

/* Benefits section header — small caps with a trailing rule, editorial */
.benefits-title {
  margin-top: 44px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 1s 0.55s cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}
.benefits-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 280px;
}

/* Benefits list — emoji acts as the bullet glyph */
.benefits {
  margin-top: 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1s 0.65s cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}
.benefits li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.benefits .b-icon {
  flex: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  /* Native emoji rendering — sits outside the mono face on purpose */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* Pull-quote tagline — orange rule on the left ties it to brand accent */
.manifesto-quote {
  margin-top: 36px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  font-weight: 500;
  max-width: 560px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--accent);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1s 0.78s cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}

/* CTA lead line — leads into the form */
.cta-lede {
  margin-top: 36px;
  font-size: 14px;
  color: var(--fg);
  letter-spacing: 0.2px;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 1s 0.88s cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}
.cta-lede .arrow { color: var(--accent); margin-right: 6px; }

/* === Signup form === */
.signup {
  margin-top: 16px;
  display: flex;
  max-width: 560px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1s 0.98s cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
  transition: border-color 0.2s ease;
}

.signup:focus-within { border-color: var(--accent); }

.signup input {
  flex: 1;
  min-width: 0;
  padding: 17px 18px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--fg);
  outline: none;
}

.signup input::placeholder { color: var(--muted); }

.signup button {
  padding: 17px 26px;
  background: var(--line-strong);
  color: var(--bg);
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.18s ease;
  white-space: nowrap;
}

.signup button:hover { background: var(--accent); }
.signup button:active { transform: translateY(1px); }
.signup button.success { background: var(--accent); cursor: default; }

/* === Founder card (right column) ===
   Editorial "dossier" treatment for the portrait:
   - Mono labels top + bottom, like a print caption
   - Hairline frame around the image
   - Offset card behind it for tactile depth
   - Tiny corner registration marks (print-shop detail)
   - Constellation mini-mark in the caption keeps the brand metaphor alive
*/
.right-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* Sticky so the photo card stays anchored while the long left column scrolls.
     `top` aligns roughly with main's top padding so the image holds its initial
     vertical position. Sticky degrades gracefully on browsers that don't support
     it (the image just scrolls normally). */
  position: sticky;
  top: 32px;
  align-self: start;
  opacity: 0;
  animation: rise 1.4s 0.4s cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}

.founder-card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.founder-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--muted);
}
.founder-card-meta .cap-mark {
  width: 18px;
  height: 18px;
  color: var(--fg);
  display: block;
}

/* Frame: hairline border + an offset "shadow card" behind it
   (built with ::before so we don't add markup or real shadows) */
.founder-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

.founder-frame::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid var(--line);
  z-index: -1;
}

.founder-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Quiet, editorial tone — preserves the photo while making it
     feel printed rather than glossy. Animate in subtly. */
  filter: grayscale(0.12) contrast(1.04) saturate(0.92);
  transform: scale(1.01);
  transition: filter 0.6s ease, transform 1.2s ease;
}
.founder-frame:hover img {
  filter: grayscale(0) contrast(1) saturate(1);
  transform: scale(1.03);
}

/* Corner registration marks — small plus-style ticks at each corner */
.founder-frame .corner {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 2;
  pointer-events: none;
}
.founder-frame .corner::before,
.founder-frame .corner::after {
  content: "";
  position: absolute;
  background: var(--line-strong);
}
.founder-frame .corner::before { width: 100%; height: 1px; top: 50%; left: 0; }
.founder-frame .corner::after { width: 1px; height: 100%; left: 50%; top: 0; }
.founder-frame .corner.tl { top: -7px; left: -7px; }
.founder-frame .corner.tr { top: -7px; right: -7px; }
.founder-frame .corner.bl { bottom: -7px; left: -7px; }
.founder-frame .corner.br { bottom: -7px; right: -7px; }

/* Keep the heartbeat on the orange dot inside the caption — same
   brand motif we used to have on the big constellation, just smaller. */
.cap-mark circle:last-of-type {
  transform-origin: center;
  transform-box: fill-box;
  animation: heartbeat 2.6s ease-in-out infinite;
}

/* === Animations === */
@keyframes blink {
  0%, 70%, 100% { opacity: 1; }
  85% { opacity: 0.3; }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes orbit-fade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* === Footer === */
footer {
  padding: 20px 40px;
  border-top: 0.5px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.2px;
}

footer .left, footer .right { display: flex; gap: 22px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
footer a:hover { color: var(--accent); }

/* === Responsive === */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    padding: 40px 24px 36px;
    gap: 40px;
  }
  .right-col {
    order: -1;
    /* Sticky doesn't make sense on a stacked single-column mobile layout */
    position: static;
    top: auto;
  }
  .founder-card { max-width: 240px; }
  .founder-frame::before { inset: 8px -8px -8px 8px; }
  .left-col h1 { letter-spacing: -1px; }
}

@media (max-width: 600px) {
  header { padding: 16px 20px; }
  footer { padding: 16px 20px; flex-direction: column; gap: 10px; align-items: flex-start; }
  .meta { display: none; }
  .signup { flex-direction: column; }
  .signup button { padding: 14px 20px; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .left-col h1 .line,
  .lede,
  .benefits-title,
  .benefits,
  .manifesto-quote,
  .cta-lede,
  .signup,
  .right-col { opacity: 1 !important; transform: none !important; }
}
