/* ============================================================
   FOKUSD — marketing site
   Built on the iOS design system tokens (fk-tokens.css).
   Brand motif: yellow camera brackets framing everything.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--fk-bg);
  color: var(--fk-fg);
  font-family: var(--fk-font-rounded);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, object { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--fk-accent); color: var(--fk-fg-on-accent); }

/* ============================================================
   LAYOUT — container
   ============================================================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: 720px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: var(--fk-radius);
  font-family: var(--fk-font-rounded);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform 200ms var(--fk-ease), box-shadow 300ms var(--fk-ease), background 200ms var(--fk-ease);
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 28px; font-size: 17px; }
.btn-xl { height: 68px; padding: 0 36px; font-size: 19px; border-radius: 16px; }

.btn-primary {
  background: var(--fk-grad-accent);
  color: var(--fk-fg-on-accent);
  box-shadow: 0 0 16px rgba(255,204,0,0.40), 0 0 1px rgba(255,204,0,0.6);
}
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(255,204,0,0.55), 0 0 2px rgba(255,204,0,0.7);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--fk-surface);
  color: var(--fk-fg);
  border: 1px solid var(--fk-border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(41,40,39,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
}
.brand-logo {
  height: 28px;
  width: auto;
}
.brand-word {
  font-family: var(--fk-font-rounded);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1.5px;
  color: var(--fk-fg);
}
.brand-bracket {
  width: 14px;
  height: 22px;
  border: 3px solid var(--fk-accent);
  display: inline-block;
  border-radius: 2px;
}
.brand-bracket.left  { border-right: none; }
.brand-bracket.right { border-left: none; }
.brand-bracket.small { width: 10px; height: 16px; border-width: 2.5px; }

.header-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--fk-fg-secondary);
  transition: color 200ms var(--fk-ease);
}
.header-nav a:hover { color: var(--fk-fg); }

@media (max-width: 760px) {
  .header-nav { display: none; }
}

/* ============================================================
   HERO — the page is a viewfinder
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px 120px;
  overflow: hidden;
}
.hero-warmth {
  position: absolute;
  inset: -10% -10% -10% -10%;
  background: radial-gradient(60% 50% at 50% 55%, rgba(255,149,0,0.18) 0%, rgba(255,149,0,0.05) 35%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  animation: breath var(--fk-dur-breath) var(--fk-ease) infinite alternate;
  transition: opacity 400ms var(--fk-ease);
}
body.warmth-off .hero-warmth { display: none; }
/* When prominent photos are on, the real warm beam in the photo IS the warmth — dim the synthetic glow */
body.photos-prominent .hero-warmth { opacity: 0.35; }

@keyframes breath {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

/* the four corner brackets — sized in vw/vh so they scale */
.viewfinder {
  position: absolute;
  inset: 32px;
  pointer-events: none;
  z-index: 1;
}
.vf-corner {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 3px solid var(--fk-accent);
}
.vf-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.vf-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.vf-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.vf-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }
.vf-reticle {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 1px; height: 1px;
}
.vf-reticle::before, .vf-reticle::after {
  content: '';
  position: absolute;
  background: rgba(255,204,0,0.30);
}
.vf-reticle::before { width: 14px; height: 1px; left: -7px; top: 0; }
.vf-reticle::after  { width: 1px; height: 14px; left: 0; top: -7px; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin: 0 0 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fk-fg-secondary);
  letter-spacing: 0.1px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--fk-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,204,0,0.8);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-title {
  font-family: var(--fk-font-rounded);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-title-accent {
  color: var(--fk-accent);
  /* subtle glow */
  text-shadow: 0 0 30px rgba(255,204,0,0.20);
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--fk-fg-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  text-wrap: balance;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.meta-item strong {
  font-family: var(--fk-font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--fk-fg);
  letter-spacing: -0.5px;
}
.meta-item span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--fk-fg-tertiary);
}
.meta-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.12);
}

.scroll-cue {
  position: absolute;
  bottom: 56px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fk-fg-tertiary);
  animation: scroll-cue 2.5s ease-in-out infinite;
}
@keyframes scroll-cue {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

@media (max-width: 600px) {
  .viewfinder { inset: 16px; }
  .vf-corner { width: 36px; height: 36px; border-width: 2.5px; }
  .hero { padding: 60px 20px 100px; }
  .hero-meta { gap: 16px; padding: 12px 18px; }
  .meta-item strong { font-size: 18px; }
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-label {
  font-family: var(--fk-font-rounded);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--fk-accent);
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--fk-accent);
  opacity: 0.6;
}

.section-title {
  font-family: var(--fk-font-rounded);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.section-sub {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--fk-fg-secondary);
  line-height: 1.55;
  max-width: 620px;
  margin: 0;
}
.section-head { margin-bottom: 64px; }
.section-head.center { text-align: center; }
.section-head.center .section-label { justify-content: center; }
.hl-accent { color: var(--fk-accent); }
.muted { color: var(--fk-fg-tertiary); font-weight: 700; }

/* ============================================================
   MANIFESTO — giant zombie backdrop, narrow text column
   ============================================================ */
.manifesto {
  position: relative;
  padding: 200px 0 200px;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  isolation: isolate;
}
.manifesto .container { position: relative; z-index: 2; }
.manifesto-bg {
  position: absolute;
  inset: -20% -10%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.manifesto-zombie {
  width: min(72vw, 1000px);
  height: auto;
  max-height: 130%;
  /* white-on-dark via invert filter */
  filter: invert(1) brightness(0.95);
  opacity: 0.07;
  transform: translateX(8%);
}
/* Soft vignette so text remains legible over the figure */
.manifesto::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 25% 50%, rgba(41,40,39,0.95) 0%, rgba(41,40,39,0.55) 35%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.manifesto-body {
  font-family: var(--fk-font-rounded);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--fk-fg);
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.manifesto-body em {
  font-style: normal;
  color: var(--fk-accent);
  font-weight: 700;
}

/* Shared line-art utility */
.line-art {
  filter: invert(1) brightness(0.95);
}
.illo-caption {
  font-family: var(--fk-font-mono);
  font-size: 12px;
  color: var(--fk-fg-tertiary);
  padding-bottom: 16px;
  letter-spacing: 0.5px;
}
.illo-caption.right { align-self: flex-end; }
body.illos-off .manifesto-bg,
body.illos-off .science-illo { display: none; }

/* ============================================================
   HERO PHOTO BACKDROP (Unsplash)
   Editorial treatment: heavy darkening, warm overlay, low opacity.
   ============================================================ */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/photo-hero.jpg");
  background-size: cover;
  background-position: center 60%;
  /* Photo is already warm + moody — gentle treatment lets it sing */
  filter: brightness(0.55) saturate(0.95) contrast(1.05);
  opacity: var(--photo-opacity, 0.55);
  pointer-events: none;
  will-change: transform;
}
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 50%, transparent 0%, rgba(41,40,39,0.55) 65%, var(--fk-bg) 100%),
    linear-gradient(180deg, rgba(41,40,39,0.35) 0%, transparent 30%, transparent 70%, rgba(41,40,39,0.55) 100%);
  pointer-events: none;
}
body.photos-off .hero-photo,
body.photos-off .cta-photo,
body.photos-off .key-photo { display: none; }
body.photos-prominent {
  --photo-opacity: 0.78;
  --key-opacity: 0.92;
  --cta-photo-opacity: 0.72;
}

/* ============================================================
   PICK A KEY — gallery of real-world objects
   ============================================================ */
.keys {
  padding: 140px 0 140px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.keys-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 900px) { .keys-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .keys-grid { grid-template-columns: 1fr; } }

.key-card {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--fk-radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--fk-surface);
  transition: transform 400ms var(--fk-ease), border-color 300ms var(--fk-ease);
}
.key-card.tall { aspect-ratio: 3 / 4.6; align-self: end; }
.key-card:hover { transform: translateY(-4px); border-color: rgba(255,204,0,0.45); }
.key-card:hover .key-photo { transform: scale(1.04); filter: brightness(0.85) saturate(0.95); }

.key-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.72) saturate(0.85) contrast(1.05);
  opacity: var(--key-opacity, 0.75);
  transition: transform 600ms var(--fk-ease), filter 400ms var(--fk-ease);
}
.key-photo[data-photo="polaroids"] {
  background-image: url("assets/photo-polaroids.jpg");
  background-position: center 40%;
}
.key-photo[data-photo="poster"] {
  background-image: url("assets/photo-poster.jpg");
  background-position: center 40%;
}
.key-photo[data-photo="fridge"] {
  background-image: url("assets/photo-fridge.jpg");
  background-position: center;
}
.key-photo[data-photo="book"] {
  background-image: url("assets/photo-book.jpg");
  background-position: center 30%;
}
.key-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.key-card figcaption {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--fk-fg);
}
.key-num {
  font-family: var(--fk-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--fk-accent);
  letter-spacing: 1px;
}
.key-label {
  font-family: var(--fk-font-rounded);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
/* Yellow viewfinder bracket on the top-left of every card — brand consistency */
.key-card::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  width: 18px; height: 18px;
  border: 2.5px solid var(--fk-accent);
  border-right: none; border-bottom: none;
  z-index: 2;
  transition: top 300ms, left 300ms;
}
.key-card:hover::before { top: 8px; left: 8px; }

/* ============================================================
   CTA PHOTO BACKDROP
   ============================================================ */
.cta-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/photo-cta.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.95) contrast(1.05);
  opacity: var(--cta-photo-opacity, 0.5);
  pointer-events: none;
  will-change: transform;
}
.cta-photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 50% 50%, transparent 0%, rgba(41,40,39,0.85) 80%, var(--fk-bg) 100%);
}
.mechanism {
  padding: 120px 0 140px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 64px; }
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step-num {
  font-family: var(--fk-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--fk-accent);
  letter-spacing: 2px;
  margin-bottom: 28px;
  padding: 6px 12px;
  border: 1px solid rgba(255,204,0,0.3);
  border-radius: 6px;
}
.step-title {
  font-family: var(--fk-font-rounded);
  font-size: 26px;
  font-weight: 800;
  color: var(--fk-fg);
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.step-body {
  font-size: 16px;
  color: var(--fk-fg-secondary);
  line-height: 1.5;
  max-width: 320px;
  margin: 0;
}

/* ---------- iPhone mockups ---------- */
.phone {
  width: 240px;
  margin: 0 auto;
}
.phone-frame {
  position: relative;
  aspect-ratio: 9 / 19.5;
  background: #0a0a0a;
  border: 8px solid #1a1a1a;
  border-radius: 38px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 0 40px -10px rgba(255,149,0,0.15);
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 2;
}
.phone-screen {
  position: absolute;
  inset: 0;
  background: var(--fk-bg);
  padding: 38px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ph-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--fk-fg);
  padding: 0 4px;
}
.ph-icons { font-size: 8px; letter-spacing: 1px; color: var(--fk-fg); }
.ph-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--fk-fg);
  margin-top: 4px;
  margin-bottom: 6px;
  padding: 0 4px;
  letter-spacing: -0.2px;
}
.ph-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ph-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fk-fg);
  transition: background 200ms;
}
.ph-row.selected {
  background: rgba(255,204,0,0.10);
  border: 1px solid rgba(255,204,0,0.25);
  padding: 7px 9px;
}
.ph-app {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #444;
  flex-shrink: 0;
}
.ph-app.a-ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.ph-app.a-tt { background: #000; box-shadow: 1px 0 #25f4ee, -1px 0 #fe2c55, inset 0 0 0 1px #333; }
.ph-app.a-x  { background: #000; box-shadow: inset 0 0 0 1px #333; }
.ph-app.a-yt { background: #ff0000; }
.ph-app.a-rd { background: #ff4500; }
.ph-app-name { flex: 1; text-align: left; }
.ph-check {
  width: 18px; height: 18px;
  background: var(--fk-accent);
  color: var(--fk-fg-on-accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 0 6px rgba(255,204,0,0.5);
}
.ph-circle {
  width: 18px; height: 18px;
  border: 1.5px solid rgba(255,255,255,0.20);
  border-radius: 50%;
}

/* Camera viewfinder phone */
.ph-camera {
  position: relative;
  flex: 1;
  background:
    radial-gradient(circle at 30% 30%, #2a2a28 0%, #0e0d0c 70%),
    #0e0d0c;
  border-radius: 14px;
  overflow: hidden;
  /* faint film grain */
}
.ph-camera::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 4px 4px;
  pointer-events: none;
}
.ph-poster {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 80px; height: 100px;
  background: #fff;
  border-radius: 3px;
  padding: 6px 6px 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ph-poster-art {
  flex: 1;
  background: linear-gradient(135deg, #ff6b35, #f7c59f 50%, #2d8b9e);
  border-radius: 2px;
  position: relative;
}
.ph-poster-art::after {
  content: '';
  position: absolute;
  left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}
.ph-poster-label {
  font-size: 8px;
  font-family: var(--fk-font-mono);
  color: #333;
  text-align: center;
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ph-poster.matched { transform: translate(-50%, -50%) rotate(0deg) scale(1.05); transition: transform 600ms; }
.ph-match-badge {
  position: absolute;
  top: -8px; right: -22px;
  background: var(--fk-success);
  color: white;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 6px 3px 4px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 0 8px rgba(52,199,89,0.5);
}

.ph-reticle {
  position: absolute;
  inset: 22px;
  pointer-events: none;
}
.ph-reticle .rc {
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--fk-accent);
  transition: border-color 300ms;
}
.ph-reticle.locked .rc { border-color: var(--fk-success); }
.ph-reticle .rc.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.ph-reticle .rc.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.ph-reticle .rc.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.ph-reticle .rc.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.ph-cta {
  margin-top: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fk-fg);
  text-align: center;
}
.ph-cta.primary {
  background: var(--fk-grad-accent);
  color: var(--fk-fg-on-accent);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(255,204,0,0.4);
}

/* ============================================================
   SCIENCE
   ============================================================ */
.science {
  padding: 140px 0 140px;
}
.science-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
@media (max-width: 900px) {
  .science-head { grid-template-columns: 1fr; }
  .science-illo { max-width: 280px; }
}
.science-illo {
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  will-change: transform;
}
.science-illo .line-art {
  width: 100%;
  height: auto;
  opacity: 0.85;
}
.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
@media (max-width: 900px) {
  .science-grid { grid-template-columns: 1fr; gap: 56px; }
}
.research {
  position: relative;
  padding-top: 16px;
}
.research-num {
  position: absolute;
  top: -16px; left: 0;
  background: var(--fk-bg);
  padding-right: 12px;
  font-family: var(--fk-font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--fk-accent);
  letter-spacing: 1px;
}
.research-title {
  font-family: var(--fk-font-rounded);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--fk-fg);
}
.research-source {
  font-size: 13px;
  color: var(--fk-fg-tertiary);
  margin: 0 0 20px;
  font-weight: 500;
  line-height: 1.4;
}
.research-source a {
  color: var(--fk-fg-secondary);
  border-bottom: 1px dashed rgba(255,255,255,0.30);
  transition: color 200ms, border-color 200ms;
}
.research-source a:hover {
  color: var(--fk-accent);
  border-bottom-color: var(--fk-accent);
}
.research-body {
  font-size: 15.5px;
  color: var(--fk-fg-secondary);
  line-height: 1.55;
  margin: 0 0 14px;
}
.research-body em {
  font-style: normal;
  color: var(--fk-fg);
  font-weight: 700;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 140px 0 140px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .features-grid { grid-template-columns: 1fr; } }

.feature {
  position: relative;
  padding: 36px 28px 32px;
  background: var(--fk-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--fk-radius);
  transition: background 300ms, border-color 300ms, transform 300ms;
}
.feature:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
}
.feature:hover .feature-corners span { border-color: var(--fk-accent); }
.feature-corners {
  position: absolute;
  inset: 10px;
  pointer-events: none;
}
.feature-corners span {
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,204,0,0.25);
  transition: border-color 300ms;
}
.feature-corners span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; }
.feature-corners span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; }
.feature-corners span:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; }
.feature-corners span:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; }

.feature-kicker {
  font-family: var(--fk-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fk-fg-tertiary);
  margin: 0 0 24px;
}
.feature-title {
  font-family: var(--fk-font-rounded);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--fk-fg);
}
.feature-body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fk-fg-secondary);
  margin: 0;
}

/* ============================================================
   STORY / LETTER
   ============================================================ */
.story {
  padding: 140px 0 140px;
}
.letter {
  max-width: 640px;
}
.story-title {
  font-family: var(--fk-font-rounded);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 36px;
}
.story-title em {
  font-style: italic;
  color: var(--fk-accent);
  font-weight: 800;
}

.story-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #555, #2a2a2a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-initials {
  font-family: var(--fk-font-rounded);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
}
.byline-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.byline-meta strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--fk-fg);
}
.byline-meta span {
  font-size: 13px;
  color: var(--fk-fg-tertiary);
}

.letter-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fk-fg);
  margin: 0 0 22px;
  font-weight: 400;
}
.letter-body em {
  font-style: italic;
  color: var(--fk-accent);
  font-weight: 600;
}

.signature {
  font-family: 'Caveat', 'Nunito', cursive;
  font-size: 32px;
  font-weight: 600;
  color: var(--fk-fg-secondary);
  margin: 40px 0 0;
}

/* ============================================================
   FOOTER CTA
   ============================================================ */
.cta {
  position: relative;
  padding: 160px 32px 160px;
  text-align: center;
  overflow: hidden;
}
.cta-warmth {
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 50% 50%, rgba(255,149,0,0.18) 0%, rgba(255,149,0,0.04) 40%, transparent 70%);
  pointer-events: none;
}
body.warmth-off .cta-warmth { display: none; }

.cta-inner {
  position: relative;
  display: inline-block;
  padding: 100px 80px;
  max-width: 900px;
}
.cta-brackets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-brackets .cb {
  position: absolute;
  width: 72px; height: 72px;
  border: 4px solid var(--fk-accent);
}
.cta-brackets .cb.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.cta-brackets .cb.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.cta-brackets .cb.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.cta-brackets .cb.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.cta-title {
  font-family: var(--fk-font-rounded);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 48px;
  text-wrap: balance;
}
.cta-cap {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--fk-fg-tertiary);
}

@media (max-width: 640px) {
  .cta { padding: 100px 16px; }
  .cta-inner { padding: 60px 32px; }
  .cta-brackets .cb { width: 40px; height: 40px; border-width: 3px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 48px 0 64px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-word {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--fk-fg-secondary);
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--fk-fg-tertiary);
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--fk-fg-secondary);
  transition: color 200ms;
}
.footer-nav a:hover { color: var(--fk-fg); }
.coffee-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fk-accent) !important;
}
.footer-sep { color: var(--fk-fg-quaternary); }
.footer-fineprint {
  font-size: 12px;
  color: var(--fk-fg-tertiary);
  margin: 0;
  text-align: right;
}
@media (max-width: 700px) {
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-fineprint { text-align: left; }
}

/* ============================================================
   TWEAK MODES (toggled by JS)
   ============================================================ */
/* Density: compact */
body.density-compact .manifesto,
body.density-compact .mechanism,
body.density-compact .science,
body.density-compact .features,
body.density-compact .story { padding-top: 96px; padding-bottom: 96px; }
body.density-compact .cta { padding-top: 120px; padding-bottom: 120px; }
body.density-compact .section-head { margin-bottom: 48px; }

/* ============================================================
   LEGAL PAGES (privacy.html, terms.html)
   ============================================================ */
.legal {
  padding: 80px 0 140px;
}
.legal-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fk-fg);
  margin: 0 0 10px;
}
.legal-updated {
  font-size: 13px;
  color: var(--fk-fg-tertiary);
  margin: 0 0 56px;
  font-family: var(--fk-font-mono);
}
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--fk-fg);
  margin: 48px 0 12px;
}
.legal h2:first-of-type {
  margin-top: 0;
}
.legal p {
  color: var(--fk-fg-secondary);
  line-height: 1.65;
  margin: 0 0 16px;
}
.legal a {
  color: var(--fk-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:hover {
  opacity: 0.8;
}
.legal ul {
  color: var(--fk-fg-secondary);
  line-height: 1.65;
  margin: 0 0 16px;
  padding-left: 20px;
}
.legal ul li {
  margin-bottom: 8px;
}

/* Accent color override is applied via inline style on :root in tweaks.jsx */
