/* ============================================================
   Eli Seidner — Acquisition Search
   Token system: paper ink brass
   ============================================================ */

:root {
  --paper: #EFF1EE;
  --paper-raised: #F9FAF8;
  --ink: #1B1E24;
  --ink-soft: #4E555F;
  --pine: #16233D;
  --pine-deep: #0D1626;
  --brass: #C08D3A;
  --brass-soft: #E0B36B;
  --rule: #C7CBCE;
  --rule-soft: #DEE1E0;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --script: 'Caveat', cursive;

  --max: 1080px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* subtle paper grain, whole site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

header, main, section, footer { position: relative; z-index: 1; }

a {
  color: inherit;
}

img { max-width: 100%; display: block; }

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

/* ---------- Letterhead / header ---------- */

.letterhead {
  border-bottom: 1px solid var(--rule);
  background: rgba(250,249,243,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.letterhead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.mark-seal {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--brass);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  flex-shrink: 0;
  position: relative;
  transition: transform 0.35s ease;
  background: var(--pine);
}

.mark-seal::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--rule);
  border-radius: 13px;
}

.mark-seal svg {
  width: 17px;
  height: 17px;
  position: relative;
  z-index: 1;
}

.mark:hover .mark-seal { transform: rotate(-6deg) scale(1.05); }

.mark-text {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
}

nav a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}

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

nav a.active {
  color: var(--ink);
  border-bottom: 1.5px solid var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  width: 40px;
  height: 36px;
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 720px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  nav.open { display: flex; }
  nav a {
    padding: 14px 32px;
    border-bottom: 1px solid var(--rule-soft);
  }
  nav a.active { border-bottom: 1px solid var(--rule-soft); }
  .letterhead-inner { position: relative; }
  .nav-toggle { display: block; }
}

/* ---------- Hero (letter-style) ---------- */

.hero {
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(192,141,58,0.18), transparent 60%),
    linear-gradient(160deg, var(--pine) 0%, var(--pine-deep) 100%);
  color: var(--paper-raised);
  padding: 100px 0 86px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      transparent, transparent 27px,
      rgba(250,249,243,0.035) 28px
    );
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(220px, 32vw, 420px);
  color: rgba(250,249,243,0.035);
  right: -4%;
  top: 50%;
  transform: translateY(-46%);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-route { display: none; }
}

.hero-route {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-route .path {
  fill: none;
  stroke: var(--brass-soft);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-route .path {
    stroke-dasharray: 480;
    stroke-dashoffset: 480;
    animation: draw-path 2.2s ease-out 0.3s forwards;
  }
  .hero-route .pin {
    opacity: 0;
    transform: scale(0.6);
    transform-origin: center;
    animation: pop-pin 0.5s ease-out 2.1s forwards;
  }
}

@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}

@keyframes pop-pin {
  to { opacity: 1; transform: scale(1); }
}

.dateline {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  margin: 0 0 22px;
  max-width: 15ch;
}

.hero .lede {
  font-size: 18px;
  color: #E4E4D6;
  max-width: 54ch;
  margin: 0 0 30px;
}

.hero-rule {
  width: 64px;
  height: 2px;
  background: var(--brass);
  margin: 0 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brass);
  color: var(--pine-deep);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.btn:hover {
  background: var(--brass-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(192,141,58,0.30);
}

.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--paper-raised);
  border: 1.5px solid rgba(250,249,243,0.5);
}

.btn-outline:hover {
  background: rgba(250,249,243,0.08);
  border-color: var(--paper-raised);
}

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

/* ---------- Hero highlights (single operator / independent / self-funded / long-term) ---------- */

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin: 40px 0 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(250,249,243,0.15);
}

@media (max-width: 620px) {
  .hero-highlights { grid-template-columns: 1fr; gap: 22px; }
}

.highlight-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--brass-soft);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 12px;
}

.highlight-item h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--paper-raised);
  margin: 0 0 6px;
}

.highlight-item p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(228,228,214,0.72);
  margin: 0;
}

/* ---------- Sections ---------- */

section {
  padding: 76px 0;
  position: relative;
}

section + section {
  border-top: 1px solid var(--rule-soft);
}

section + section::before {
  content: "◆";
  position: absolute;
  top: -7px;
  left: 32px;
  font-size: 10px;
  color: var(--brass);
  background: var(--paper);
  padding: 0 8px;
}

/* Scroll reveal — progressive enhancement only.
   Content is visible by default; JS opts INTO the animated hidden state,
   so anyone without JS (or if the observer fails) always sees full content. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}

html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
  display: block;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 34px);
  margin: 0 0 20px;
  line-height: 1.2;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 10px;
}

p { margin: 0 0 16px; color: var(--ink-soft); }

.lead-text {
  font-size: 19px;
  color: var(--ink);
  max-width: 62ch;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Timeline (background) ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.25s ease;
}

.timeline li:hover {
  padding-left: 8px;
  border-bottom-color: var(--brass-soft);
}

@media (max-width: 620px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

.timeline .years {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brass);
  padding-top: 3px;
}

.timeline h3 { margin-bottom: 4px; }
.timeline .role-org { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 8px; }
.timeline p { margin-bottom: 0; font-size: 15.5px; }

/* ---------- Profile grid (photo + stacked bio sections) ---------- */

.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 36px;
}

@media (max-width: 820px) {
  .profile-grid { grid-template-columns: 1fr; gap: 32px; }
}

.profile-photo {
  position: sticky;
  top: 96px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper-raised);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(13,22,38,0.1);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.profile-photo.is-placeholder {
  border: 1.5px dashed var(--rule);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-soft);
  text-align: center;
  padding: 24px;
}

@media (max-width: 820px) {
  .profile-photo { position: static; max-width: 300px; }
}

.profile-photo svg {
  width: 40px;
  height: 40px;
  stroke: var(--rule);
  stroke-width: 1.3;
  fill: none;
}

.profile-photo .placeholder-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.placeholder-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  background: rgba(192,141,58,0.1);
  border: 1px solid rgba(192,141,58,0.3);
  border-radius: 3px;
  padding: 2px 7px;
  margin-bottom: 9px;
}

/* ---------- Personal note ---------- */

.personal-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  border-radius: 4px;
  padding: 36px 40px;
  box-shadow: 0 10px 30px rgba(13,22,38,0.07);
}

.personal-card p:last-child { margin-bottom: 0; }

.signature {
  font-family: var(--script);
  font-size: 32px;
  color: var(--pine);
  margin-top: 18px;
  display: block;
}

/* ---------- Spec sheet (criteria) — signature element ---------- */

.spec-sheet {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(13,22,38,0.09);
}

.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.2s ease;
}

.spec-row:hover { background: rgba(192,141,58,0.05); }

.spec-row:last-child { border-bottom: none; }

.spec-label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 20px 24px;
  border-right: 1px solid var(--rule-soft);
  background: rgba(22,35,61,0.035);
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-label svg {
  width: 15px;
  height: 15px;
  stroke: var(--brass);
  flex-shrink: 0;
}

.spec-label svg path,
.spec-label svg rect,
.spec-label svg circle {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spec-value {
  padding: 20px 24px;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.spec-value .figure {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--pine);
  font-weight: 600;
}

.spec-value .out {
  color: #9B4A4A;
  text-decoration: line-through;
  text-decoration-color: rgba(155,74,74,0.4);
  margin-right: 14px;
  display: inline-block;
}

@media (max-width: 620px) {
  .spec-row { grid-template-columns: 1fr; }
  .spec-label { border-right: none; border-bottom: 1px solid var(--rule-soft); }
}

/* ---------- Two-up cards (what happens after) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 700px) {
  .card-grid { grid-template-columns: 1fr; }
}

.info-card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 26px 24px;
  background: var(--paper-raised);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(13,22,38,0.11);
  border-color: var(--brass-soft);
}

.info-card .num {
  font-family: var(--mono);
  color: var(--brass);
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}

.info-card p { font-size: 15px; margin-bottom: 0; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.contact-detail {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.contact-detail .label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  width: 70px;
  flex-shrink: 0;
}

.contact-detail a {
  color: var(--pine);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.contact-detail a:hover { text-decoration: underline; }

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  font-size: 13px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 7px;
}

input, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15.5px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper-raised);
  color: var(--ink);
}

input:focus, textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: -4px;
}

.calendar-embed {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-raised);
}

.calendar-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

.calendar-placeholder {
  padding: 40px 28px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.calendar-placeholder code {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  background: rgba(22,35,61,0.05);
  padding: 10px;
  border-radius: 3px;
  text-align: left;
  overflow-x: auto;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.footer-inner a { color: var(--ink-soft); text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
