/* ————————————————————————————————
   Qualified Introductions — warm ink ledger
   ———————————————————————————————— */

:root {
  --bg: #161310;
  --bg-raise: #1d1915;
  --ink: #ebe4d6;
  --muted: #a89d89;
  --accent: #c89b5a;
  --hairline: rgba(235, 228, 214, 0.14);
  --hairline-soft: rgba(235, 228, 214, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --measure: 36rem;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

img, svg { display: block; }

a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ———— Header ———— */

.site-head {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--pad);
  border-bottom: 1px solid var(--hairline-soft);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  z-index: 10;
}

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

.brand-mark { color: var(--accent); flex: none; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.015em;
  padding: 0.2rem 0;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
  transition: color 0.25s, background-size 0.3s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background-size: 100% 1px;
}

/* ———— Buttons & links ———— */

.btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: 2px;
  transition: background 0.25s, transform 0.25s;
}

.btn:hover { background: #d9af6e; }
.btn:active { transform: translateY(1px); }

.btn-small { padding: 0.5rem 1rem; font-size: 0.85rem; white-space: nowrap; }

.link-arrow {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s;
}

.link-arrow::after {
  content: " ↓";
  color: var(--accent);
}

.link-arrow:hover, .link-arrow:focus-visible { color: var(--ink); }

/* ———— Hero ———— */

.hero {
  padding: clamp(4rem, 10vh, 7.5rem) var(--pad) clamp(4rem, 9vh, 6.5rem);
  max-width: 72rem;
  margin-inline: auto;
}

.overline {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(2.2rem, 5.6vw, 4.3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 18ch;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  margin-top: 1.6rem;
  max-width: var(--measure);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

/* ———— Connector diagram ———— */

.connector {
  margin-top: clamp(3.5rem, 8vh, 5.5rem);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--hairline-soft);
}

.node {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
}

.node-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  flex: none;
}

.node-dot.filled { background: var(--accent); }

.wire {
  position: relative;
  flex: 1;
  min-width: 4rem;
  height: 1px;
}

.wire-line {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

.connector.in-view .wire-line {
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
  transform: scaleX(1);
}

.wire-mid {
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(0);
}

.connector.in-view .wire-mid {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s;
  transform: translate(-50%, -50%) scale(1);
}

.wire-label {
  position: absolute;
  left: 50%; top: 1rem;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
}

.connector.in-view .wire-label {
  transition: opacity 0.6s ease 1.5s;
  opacity: 1;
}

/* ———— Sections ———— */

.section {
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(3.5rem, 9vh, 6rem) var(--pad);
  border-top: 1px solid var(--hairline-soft);
}

.section-head { margin-bottom: 2.75rem; }

.section-head h2,
.contact h2 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
}

.section-head p {
  margin-top: 0.7rem;
  color: var(--muted);
  max-width: var(--measure);
}

/* ———— Steps ———— */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.step {
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
}

.step-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.step h3 {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.3;
}

.step p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ———— Ledger ———— */

.ledger {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.row {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.35rem 0.5rem;
  border-bottom: 1px solid var(--hairline-soft);
  transition: background 0.3s;
}

.row:hover { background: var(--bg-raise); }

.row-tag {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.row p {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.row strong {
  font-weight: 560;
  color: var(--accent);
}

/* ———— Founder ———— */

.founder { text-align: center; }

.founder-inner {
  max-width: 44rem;
  margin-inline: auto;
}

.founder-note {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  text-wrap: balance;
}

.founder-sig {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* ———— Contact ———— */

.contact { text-align: center; }

.contact p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.contact-mail {
  display: inline-block;
  margin-top: 2.2rem;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.25rem, 3.6vw, 2.1rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.25rem;
  transition: color 0.25s;
  overflow-wrap: anywhere;
}

.contact-mail:hover, .contact-mail:focus-visible { color: var(--accent); }

/* ———— Footer ———— */

.site-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 72rem;
  margin-inline: auto;
  padding: 2rem var(--pad) 2.5rem;
  border-top: 1px solid var(--hairline-soft);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-foot .brand-mark { color: var(--muted); }

.site-foot a { color: var(--muted); text-underline-offset: 3px; }
.site-foot a:hover { color: var(--ink); }

/* ———— Reveal motion ———— */

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Stagger siblings slightly */
.reveal.in-view:nth-child(2) { transition-delay: 0.08s; }
.reveal.in-view:nth-child(3) { transition-delay: 0.16s; }
.reveal.in-view:nth-child(4) { transition-delay: 0.24s; }
.reveal.in-view:nth-child(5) { transition-delay: 0.32s; }
.reveal.in-view:nth-child(6) { transition-delay: 0.4s; }

/* ———— Reduced motion ———— */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .connector .wire-line { transform: scaleX(1); transition: none; }
  .connector .wire-mid { transform: translate(-50%, -50%) scale(1); transition: none; }
  .connector .wire-label { opacity: 1; transition: none; }
  .btn, .site-nav a, .row { transition: none; }
}

/* ———— Responsive ———— */

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-head { justify-content: space-between; }

  .steps { grid-template-columns: 1fr; }

  .row { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.2rem 0.25rem; }
}

@media (max-width: 640px) {
  .connector {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .wire {
    flex: none;
    width: 1px;
    min-width: 0;
    height: 4.5rem;
    margin-left: 4px;
  }

  .wire-line { transform-origin: top; transform: scaleY(0); }
  .connector.in-view .wire-line { transform: scaleY(1); }
  @media (prefers-reduced-motion: reduce) {
    .connector .wire-line { transform: scaleY(1); }
  }

  .wire-label {
    left: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
  }
}
