/* ============================================
   PHINERD — design tokens
   ============================================ */
:root {
  --ink: #14213D;
  --ink-2: #1F2E4D;
  --ink-soft: #3B4A6B;
  --paper: #F6F1E4;
  --paper-2: #EDE6D3;
  --paper-3: #FBF8F1;
  --mustard: #C68A2E;
  --mustard-dark: #9C6C1F;
  --stamp-red: #A8322D;
  --forest: #2F5233;
  --line: rgba(20, 33, 61, 0.16);
  --line-light: rgba(246, 241, 228, 0.22);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1160px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--mustard-dark);
}
.eyebrow-dark { color: var(--stamp-red); }
.eyebrow-light { color: var(--mustard); }
.eyebrow-forest { color: var(--forest); }

.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 18px;
  max-width: 15ch;
}
.section-title-light { color: var(--paper-3); }

.section-lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 28px;
}
.lede-light { color: rgba(246, 241, 228, 0.72); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ink {
  background: var(--ink);
  color: var(--paper-3);
}
.btn-ink:hover { background: var(--ink-2); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper-3); }

.btn-mustard {
  background: var(--mustard);
  color: var(--ink);
}
.btn-mustard:hover { background: #d69a3d; }

.btn-small { padding: 10px 18px; font-size: 13.5px; }
.btn-full { width: 100%; }

.btn-forest {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-forest:hover { background: var(--forest); color: var(--paper-3); }

.btn-forest-solid {
  background: var(--forest);
  color: var(--paper-3);
}
.btn-forest-solid:hover { background: #274429; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 228, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  background: var(--ink);
  color: var(--paper);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
}
.main-nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: clamp(34px, 4.6vw, 54px);
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  color: var(--stamp-red);
}

.hero-sub {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 22px 0 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-microcopy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 18px;
  letter-spacing: 0.01em;
}

/* --- Signature element: the shortlist stack --- */
.hero-visual {
  position: relative;
  min-height: 420px;
}

.shortlist-stack {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  height: 420px;
}

.stamp {
  position: absolute;
  top: -18px;
  right: -6px;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--stamp-red);
  border: 2px solid var(--paper);
  outline: 1.5px solid var(--stamp-red);
  padding: 8px 12px;
  border-radius: 50%;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(11deg);
  box-shadow: 0 6px 16px rgba(20, 33, 61, 0.25);
}

.candidate-card {
  position: absolute;
  width: 100%;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 14px 30px rgba(20, 33, 61, 0.14);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.card-1 { top: 0; z-index: 3; transform: rotate(-3deg); }
.card-2 { top: 46px; z-index: 2; transform: rotate(2.5deg) translateX(14px); }
.card-3 { top: 92px; z-index: 1; transform: rotate(-1.5deg) translateX(-10px); }

.shortlist-stack:hover .card-1,
.shortlist-stack.fan .card-1 { transform: rotate(-6deg) translate(-34px, -6px); }
.shortlist-stack:hover .card-2,
.shortlist-stack.fan .card-2 { transform: rotate(3deg) translate(18px, 44px); }
.shortlist-stack:hover .card-3,
.shortlist-stack.fan .card-3 { transform: rotate(8deg) translate(-6px, 96px); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 2px;
}
.tag-role { background: var(--paper-2); color: var(--ink-soft); }
.card-id { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }

.candidate-card h3 {
  font-size: 19px;
  margin-bottom: 3px;
}
.card-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  font-size: 11.5px;
  font-family: var(--font-mono);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 20px;
  color: var(--ink-soft);
}
.card-status {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status-yes { color: var(--forest); }
.status-yes::before { background: var(--forest); }
.status-review { color: var(--mustard-dark); }
.status-review::before { background: var(--mustard); }

/* ============================================
   POSITIONING STRIP
   ============================================ */
.positioning {
  background: var(--ink);
  color: var(--paper);
  padding: 30px 0;
}
.positioning-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.1vw, 21px);
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.strike {
  color: rgba(246, 241, 228, 0.5);
  text-decoration: line-through;
  text-decoration-color: var(--stamp-red);
  text-decoration-thickness: 2px;
}
.arrow { color: var(--mustard); font-size: 20px; }
.fix { color: var(--paper-3); font-style: italic; }

/* ============================================
   GENERIC SECTION
   ============================================ */
.section { padding: 88px 0; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how { text-align: left; }
.how .wrap > .eyebrow,
.how .wrap > .section-title { text-align: left; }

.process {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.process-step {
  padding: 28px 22px 0 0;
  border-right: 1px solid var(--line);
}
.process-step:last-child { border-right: none; padding-right: 0; }
.step-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mustard-dark);
  display: block;
  margin-bottom: 14px;
}
.process-step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.process-step p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================
   SPLIT SECTIONS (startups / investors)
   ============================================ */
.split-startups { background: var(--paper-2); }
.split-students { background: var(--paper); }
.split-investors { background: var(--ink); color: var(--paper-3); }
.split-investors .section-title,
.split-investors .eyebrow-dark { color: var(--paper-3); }
.split-investors .eyebrow-dark { color: var(--mustard); }
.split-investors .section-lede { color: rgba(246,241,228,0.72); }
.split-investors .feature-list strong { color: var(--paper-3); }
.split-investors .feature-list span { color: rgba(246,241,228,0.65); }
.split-investors .feature-list { border-top-color: var(--line-light); }
.split-investors .feature-list li { border-bottom-color: var(--line-light); }

.split-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.split-inner-reverse { grid-template-columns: 0.85fr 1.15fr; }
.split-inner-reverse .split-aside { order: 1; }
.split-inner-reverse .split-copy { order: 2; }

.feature-list {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.feature-list strong {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}
.feature-list span {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.ledger {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.ledger-title {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.ledger-list { margin: 0; }
.ledger-list > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.ledger-list > div:last-child { border-bottom: none; }
.ledger-list dt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.ledger-list dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.roster {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
  border-radius: var(--radius);
  padding: 30px;
}
.roster-title {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--forest);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.thesis {
  background: rgba(246, 241, 228, 0.06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 34px;
}
.thesis-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mustard);
  margin: 0 0 18px;
}
.thesis-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.45;
  margin: 0;
  color: var(--paper-3);
}
.thesis-line em { color: var(--mustard); font-style: italic; }

/* ============================================
   FOUNDER NOTE
   ============================================ */
.founder-note { background: var(--paper); }
.founder-inner { max-width: 720px; }
.founder-note blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.5;
  margin: 0 0 22px;
  color: var(--ink);
  border-left: 3px solid var(--stamp-red);
  padding-left: 22px;
}
.founder-sign {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.edit-hint {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--mustard-dark);
}

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--ink); color: var(--paper-3); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  background: var(--paper-3);
  color: var(--ink);
  padding: 32px;
  border-radius: var(--radius);
}
.field-row { margin-bottom: 18px; }
.field-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field-row textarea { resize: vertical; }

.form-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 14px 0 0;
  line-height: 1.5;
}
.form-note code {
  font-family: var(--font-mono);
  background: var(--paper-2);
  padding: 1px 5px;
  border-radius: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink-2);
  color: rgba(246, 241, 228, 0.7);
  padding: 44px 0 30px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-3);
}
.brand-mark-footer { background: var(--mustard); color: var(--ink); }
.footer-tag { font-size: 13.5px; margin: 0; flex: 1 1 240px; }
.footer-nav { display: flex; gap: 20px; font-size: 13.5px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: rgba(246, 241, 228, 0.7); }
.footer-nav a:hover { color: var(--paper-3); }
.footer-copy {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  color: rgba(246, 241, 228, 0.45);
}

/* ============================================
   FOCUS STATES (accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--stamp-red);
  outline-offset: 2px;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 340px; order: -1; }
  .split-inner,
  .split-inner-reverse { grid-template-columns: 1fr; }
  .split-inner-reverse .split-aside { order: 2; margin-top: 28px; }
  .split-inner-reverse .split-copy { order: 1; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .process-step { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .process-step:nth-child(2n) { padding-right: 0; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .process { grid-template-columns: 1fr; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-3);
    padding: 20px 28px 26px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .site-header.nav-open .header-cta {
    display: inline-flex;
    position: absolute;
    top: 100%;
    right: 28px;
    margin-top: 200px;
  }
}

@media (max-width: 520px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 60px 0; }
  .shortlist-stack { max-width: 300px; height: 380px; }
  .stamp { width: 64px; height: 64px; font-size: 9.5px; right: 4px; }
}
