/* ============================================================
   Travis Rosser — Advising & Coaching
   Editorial / founder-authority aesthetic
   Ink + cream + signal-orange, distinctive type
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --ink:        #0c0b0a;
  --ink-2:      #141210;   /* raised surface */
  --ink-3:      #1c1916;   /* card */
  --paper:      #f3ede2;
  --cream:      #ece3d4;
  --text:       #ece4d5;
  --text-dim:   #b6ac9b;
  --muted:      #8b8272;
  --accent:     #ff6a2b;   /* signal orange */
  --accent-2:   #ffb27a;
  --line:       rgba(236, 228, 213, 0.12);
  --line-soft:  rgba(236, 228, 213, 0.07);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --maxw: 1200px;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* grain + subtle vignette overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  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.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -0.01em; }

.display {
  font-size: clamp(2.9rem, 8.5vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.display em { font-style: italic; color: var(--accent); }

.h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.0; letter-spacing: -0.02em; }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.lead { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.5; color: var(--text-dim); font-weight: 400; }

.serif-quote { font-family: var(--serif); font-style: italic; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { position: relative; }
.section-pad { padding-block: clamp(4.5rem, 11vw, 9rem); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.05rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { font-family: var(--mono); font-weight: 700; letter-spacing: 0.05em; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.brand span.sub { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links a { color: var(--text-dim); transition: color 0.25s; position: relative; padding-block: 0.3rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-family: var(--mono); cursor: pointer; font-size: 0.8rem; letter-spacing: 0.1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  padding: 0.95rem 1.6rem; border-radius: 2px; cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), background 0.25s, color 0.25s, box-shadow 0.25s;
  border: 1px solid transparent;
}
.btn .arw { transition: transform 0.3s cubic-bezier(.2,.8,.2,1); }
.btn:hover .arw { transform: translateX(5px); }
.btn-primary { background: var(--accent); color: #1a0d05; box-shadow: 0 8px 30px -12px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-dim); background: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(3rem, 7vw, 6rem); position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 62%);
  filter: blur(30px); pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 2.2rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero-meta span { color: var(--text-dim); }
.hero h1 { margin-bottom: 1.8rem; max-width: 15ch; }
.hero .lead { max-width: 46ch; margin-bottom: 2.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- Stat band ---------- */
.stats { border-block: 1px solid var(--line); background: var(--ink-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(2rem,4vw,3rem) clamp(1.25rem,2.5vw,2rem); border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: 0; }
.stat .num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; }
.stat .num em { font-style: normal; color: var(--accent); }
.stat .lab { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.9rem; line-height: 1.5; }

/* ---------- Section headers ---------- */
.sec-head { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 60ch; }
.sec-head .h2 { margin-top: 0.4rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }

/* ---------- Ventures strip ---------- */
.ventures { border-top: 1px solid var(--line-soft); }
.ventures-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.venture { padding: clamp(1.8rem,3vw,2.6rem); border-left: 1px solid var(--line-soft); transition: background 0.3s; }
.venture:first-child { border-left: 0; }
.venture:hover { background: var(--ink-2); }
.venture .vname { font-family: var(--serif); font-size: 1.5rem; }
.venture .vrole { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-top: 0.5rem; }
.venture .vdesc { color: var(--text-dim); font-size: 0.92rem; margin-top: 0.8rem; line-height: 1.55; }

/* ---------- Two-column prose ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split .sticky { position: sticky; top: 6rem; }
.prose p { margin: 0 0 1.4rem; color: var(--text-dim); }
.prose p.big { font-family: var(--serif); font-size: clamp(1.4rem,2.6vw,2rem); line-height: 1.3; color: var(--text); font-style: italic; }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- Cards / services ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.card {
  background: var(--ink); padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; gap: 1rem; min-height: 260px;
  transition: background 0.35s, transform 0.35s;
  position: relative;
}
.card:hover { background: var(--ink-3); }
.card .cnum { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--accent); }
.card h3 { font-size: 1.65rem; letter-spacing: -0.01em; }
.card p { color: var(--text-dim); font-size: 0.96rem; margin: 0; }
.card ul { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.card ul li { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--muted); padding-left: 1.1rem; position: relative; }
.card ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.card .spacer { flex: 1; }

/* ---------- Framework (4 P's) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; }
.pcard { border: 1px solid var(--line); padding: 1.8rem; border-radius: 3px; background: var(--ink-2); transition: border-color 0.3s, transform 0.3s; }
.pcard:hover { border-color: var(--accent); transform: translateY(-3px); }
.pcard .pletter { font-family: var(--serif); font-size: 3rem; color: var(--accent); line-height: 1; }
.pcard h4 { font-size: 1.3rem; margin: 0.6rem 0 0.5rem; }
.pcard p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

/* ---------- Quote / testimonial ---------- */
.paper-block { background: var(--paper); color: var(--ink); }
.paper-block .kicker { color: #b4471c; }
.paper-block .kicker::before { background: #b4471c; }
.bigquote { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.18; letter-spacing: -0.015em; color: var(--ink); max-width: 24ch; }
.bigquote .mark { color: var(--accent); }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.quote { border: 1px solid var(--line); padding: clamp(1.6rem,3vw,2.4rem); border-radius: 3px; display: flex; flex-direction: column; gap: 1.4rem; background: var(--ink-2); }
.quote p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--text); margin: 0; }
.quote .who { display: flex; flex-direction: column; gap: 0.15rem; }
.quote .who .nm { font-weight: 600; font-size: 0.95rem; }
.quote .who .tt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

/* ---------- Timeline (experience) ---------- */
.timeline { border-top: 1px solid var(--line); }
.tl-row {
  display: grid; grid-template-columns: 0.35fr 1fr; gap: clamp(1rem,4vw,3rem);
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem); border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s;
}
.tl-row:hover { background: var(--ink-2); }
.tl-when { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.05em; color: var(--accent); padding-top: 0.5rem; }
.tl-when .dur { display: block; color: var(--muted); margin-top: 0.35rem; letter-spacing: 0.04em; }
.tl-role h3 { font-size: 1.5rem; }
.tl-role .org { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.05em; color: var(--text-dim); margin-top: 0.35rem; text-transform: uppercase; }
.tl-role p { color: var(--text-dim); margin: 0.9rem 0 0; font-size: 0.96rem; max-width: 62ch; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 0.3rem 0.6rem; border-radius: 2px; }

/* ---------- Edu / honors small list ---------- */
.minirows { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.minirow { background: var(--ink); padding: 1.4rem clamp(1.2rem,2.5vw,2rem); display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: baseline; }
.minirow .mr-main { font-family: var(--serif); font-size: 1.25rem; }
.minirow .mr-sub { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.25rem; }
.minirow .mr-when { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--accent); white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta { text-align: center; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta .hero-glow { top: auto; bottom: -40%; left: 50%; transform: translateX(-50%); right: auto; }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { max-width: 18ch; margin: 0 auto 1.5rem; }
.cta .lead { max-width: 48ch; margin: 0 auto 2.4rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,5rem); align-items: start; }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row .field { margin-bottom: 1.3rem; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field label .opt { color: var(--muted); opacity: 0.65; text-transform: none; letter-spacing: 0.02em; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field input, .field textarea, .field select {
  background: var(--ink-2); border: 1px solid var(--line); color: var(--text);
  font-family: var(--sans); font-size: 1rem; padding: 0.9rem 1rem; border-radius: 3px;
  transition: border-color 0.25s, background 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--ink-3); }
.field textarea { resize: vertical; min-height: 130px; }
.channels { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line-soft); border-radius: 3px; overflow: hidden; }
.channel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--line-soft); transition: background 0.25s; }
.channel:last-child { border-bottom: 0; }
.channel:hover { background: var(--ink-2); }
.channel .cl-lab { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.channel .cl-val { font-size: 1.05rem; }
.channel .arw { color: var(--accent); }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-2); }
.footer-inner { padding-block: clamp(2.5rem,5vw,4rem); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer .brand { margin-bottom: 1rem; }
.footer .fdesc { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }
.footer h5 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 1rem; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer ul a { color: var(--muted); font-size: 0.92rem; transition: color 0.25s; }
.footer ul a:hover { color: var(--accent); }
.footer-base { border-top: 1px solid var(--line-soft); padding-block: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: clamp(3.5rem,7vw,6rem); padding-bottom: clamp(2.5rem,5vw,4rem); border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); margin: 1.2rem 0 1.4rem; letter-spacing: -0.025em; }
.page-hero .lead { max-width: 54ch; }

/* ---------- Reveal animation (progressive enhancement) ---------- */
/* Content is visible by default; the hidden/animated state only applies
   once JS confirms it can run, so no-JS visitors still see everything. */
.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.js-anim [data-delay="1"] { transition-delay: 0.08s; }
.js-anim [data-delay="2"] { transition-delay: 0.16s; }
.js-anim [data-delay="3"] { transition-delay: 0.24s; }
.js-anim [data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .ventures-grid { grid-template-columns: repeat(2, 1fr); }
  .venture:nth-child(3) { border-left: 0; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split .sticky { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 0.5rem var(--pad) 1.2rem; }
  .nav-links.open a { padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tl-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .tl-when { padding-top: 0; }
  .footer-inner { grid-template-columns: 1fr; }
}
