/* ————— Base ————— */
:root {
  --ink: #0d0d0d;
  --gray: #6b6b6b;
  --gray-light: #a8a8a8;
  --hairline: rgba(0, 0, 0, 0.07);
  --bg: #ffffff;
  --bg-alt: #fafafa;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

::selection {
  background: var(--ink);
  color: #fff;
}

/* ————— Floating nav ————— */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px) saturate(1.8);
  -webkit-backdrop-filter: blur(12px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    rgba(0, 0, 0, 0.03) 0 1px 2px 0,
    rgba(0, 0, 0, 0.06) 0 8px 32px 0,
    rgba(255, 255, 255, 0.7) 0 1px 0 0 inset;
  white-space: nowrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.nav-name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-divider {
  width: 1px;
  height: 16px;
  background: var(--hairline);
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  font-size: 13px;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

/* ————— Hero ————— */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-line {
  display: block;
}

.hero-muted {
  color: var(--gray-light);
}

.cursor {
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-sub {
  max-width: 520px;
  margin-top: 32px;
  font-size: 17px;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ————— Buttons ————— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: rgba(0, 0, 0, 0.15) 0 4px 14px 0;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: rgba(0, 0, 0, 0.22) 0 6px 18px 0;
}

.btn-primary .arrow {
  transition: transform 0.15s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(2px);
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--hairline);
  color: var(--gray);
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.16);
}

/* ————— Sections ————— */
.section {
  padding: 110px 24px;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-inner {
  max-width: 980px;
  margin: 0 auto;
}

.section-narrow {
  max-width: 640px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-light);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.prose {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 18px;
  max-width: 620px;
}

/* ————— Criteria cards ————— */
/* Center the section header (eyebrow + heading) like the contact section,
   while the cards below keep their left-aligned text. */
#criteria .eyebrow,
#criteria > .section-inner > h2 {
  text-align: center;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 26px 24px;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: rgba(0, 0, 0, 0.06) 0 8px 32px 0;
  transform: translateY(-2px);
}

.card-num {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  color: var(--gray);
}

/* ————— Letter to Founders ————— */
.letter {
  max-width: 620px;
  padding-top: 40px;
}

/* Center the section header (eyebrow + heading) like the criteria section,
   while the letter body below stays left-aligned. */
#letter .eyebrow,
#letter > .section-inner > h2 {
  text-align: center;
}

.letter-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 56px;
  font-size: 14px;
  color: var(--gray);
}

.letter-address {
  text-align: right;
  line-height: 1.55;
}

.letter-salutation {
  margin-top: 64px;
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.letter-muted {
  color: var(--gray-light);
}

.letter-body {
  margin-top: 40px;
}

.letter-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 22px;
}

.letter-signoff {
  margin-top: 44px;
  font-size: 15px;
  color: var(--gray);
}

.letter-signature {
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 44px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin: 18px 0 14px;
  transform: rotate(-3deg);
  transform-origin: left center;
}

.letter-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.letter-title {
  font-size: 14px;
  margin-top: 2px;
}

.letter-cta {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

/* ————— Contact ————— */
.contact {
  text-align: center;
}

.contact .prose {
  margin-left: auto;
  margin-right: auto;
}

.contact .hero-actions {
  margin-top: 28px;
}

/* ————— Footer ————— */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 36px 24px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.footer-clocks {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--gray);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-clocks time {
  color: var(--gray-light);
  margin-left: 4px;
}

.footer-clocks .sep {
  color: var(--gray-light);
}

.footer-copy {
  font-size: 12.5px;
  color: var(--gray);
}

/* ————— Reveal on scroll ————— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
}

/* ————— Responsive ————— */
@media (max-width: 860px) {
  .criteria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav {
    gap: 12px;
    padding: 9px 16px;
    max-width: calc(100vw - 24px);
  }
  .nav-links {
    gap: 12px;
  }
  .nav-name {
    display: none;
  }
  .criteria-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 80px 20px;
  }
  .letter-rule {
    white-space: normal;
  }
  .letter-rule span {
    max-width: 75%;
  }
  .letter-meta {
    flex-direction: column;
  }
  .letter-address {
    text-align: left;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
