/* ==========================================================================
   Tenor — landing page
   Clean, dark grotesque (Geist), near-monochrome, one accent on hover only.
   The hero is a full-height frame with the Three.js form behind it (fixed
   canvas + right-side scrim); the page then scrolls to a solid team section.
   ========================================================================== */

/* Söhne (Klim Type Foundry) — licensed; not a free/CDN font. Drop the webfont
   .woff2 files into /assets/fonts/ with the names below and they take effect
   automatically. Until then the stack falls back to Geist. */
@font-face {
  font-family: 'Söhne';
  src: url('/assets/fonts/soehne-leicht.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('/assets/fonts/soehne-buch.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('/assets/fonts/soehne-kraftig.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('/assets/fonts/soehne-halbfett.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg: #0B0D10;
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.52);
  --faint: rgba(255, 255, 255, 0.12);
  --accent: #E8A33D;                    /* used only on hover */
}

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

html { scroll-behavior: smooth; }

body {
  height: 100dvh;
  overflow: hidden;                 /* single composed view — no scroll */
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'Söhne', 'Geist', system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Background animation + legibility scrim (cover the hero only) ------- */
.bg-canvas {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 100vh;
  width: 100vh;                         /* square, sized to viewport height, anchored left */
  z-index: 0;
  display: block;
  pointer-events: none;
  /* feather the square edges so it blends into the background (no hard seam) */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 50%, transparent 73%);
          mask-image: radial-gradient(circle at 50% 50%, #000 50%, transparent 73%);
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(11, 13, 16, 0) 0%,
    rgba(11, 13, 16, 0) 40%,
    rgba(11, 13, 16, 0.82) 70%,
    var(--bg) 100%
  );
}

/* --- Hero: full-height frame, content pinned right ----------------------- */
.hero {
  position: relative;
  z-index: 2;
  flex: 1;                          /* fill the viewport above the footer */
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 4vw, 2.75rem) clamp(1.4rem, 5vw, 3.25rem);
  gap: clamp(1.25rem, 4vh, 2rem);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brandmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: clamp(100px, 11.5vw, 140px);  /* a touch smaller than the manifesto logo */
  height: auto;
  filter: brightness(0) invert(1);     /* black wordmark → white on the dark header */
}
.stamp {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.frame {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
}
.block {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.4vh, 1.5rem);
  max-width: 37rem;                    /* slightly wider lines than the original 34rem */
  margin-left: auto;
  margin-right: clamp(0rem, 2.5vw, 2.5rem); /* nudged just off the right edge */
}

.statement {
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.americana-word {
  display: inline-block;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: var(--text);
}
.sub {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

/* Inline Y Combinator logo (mark + wordmark) — sized to the text, not above it */
.yc-logo {
  height: 1.15em;
  width: auto;
  vertical-align: -0.22em;
  margin: 0 0.18em;
}

/* --- Link list (primary navigation) ------------------------------------- */
.links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  margin-top: 0.5rem;
}
.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.4rem 0;
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.links a:hover, .links a:focus-visible { color: var(--accent); outline: none; }
.links a .arr { font-size: 0.95em; transition: transform 0.25s ease; }
.links a:hover .arr, .links a:focus-visible .arr { transform: translateX(4px); }

/* --- Footer ------------------------------------------------------------- */
.base {
  position: relative;
  z-index: 2;
  flex-shrink: 0;                   /* pinned at the bottom of the single view */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem clamp(1.4rem, 5vw, 3.25rem) 1.1rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.base a { color: var(--muted); text-decoration: none; transition: color 0.25s ease; }
.base a:hover { color: var(--accent); }
.base .dot { color: rgba(255, 255, 255, 0.25); }

/* --- Mobile: stack hero content; vertical scrim for legibility ----------- */
@media (max-width: 780px) {
  .block { margin-left: 0; margin-right: 0; max-width: 100%; }
  .bg-canvas {
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vw;
    opacity: 0.5;
  }
  .scrim {
    background: linear-gradient(
      0deg,
      var(--bg) 0%,
      rgba(11, 13, 16, 0.74) 46%,
      rgba(11, 13, 16, 0.36) 100%
    );
  }
}

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
