/* toddmcguire.co — "Operator dark" redesign per Studio's design direction 2026-07-12
   (vault: "11 - Outputs/Studio — toddmcguire.co Design Direction 2026-07-12.md").
   Martell section model, navy/amber, dark-first SINGLE mode (Studio §4.1 / M10).
   Font: Inter (Google Fonts, 400/500/600/700/800). No mono accents (DAW SP's tell).
   Copy is Beacon's verbatim — this file is layout/type/color only. */

:root {
  color-scheme: dark;
  --bg: #0C1220;          /* page bg */
  --bg-deep: #070B14;     /* hero, newsletter, footer bands */
  --bg-band: #101A2E;     /* proof, learn bands */
  --surface: #131C2E;     /* cards, inputs */
  --surface-2: #16233B;   /* door-card gradient top, glows */
  --line: #26314A;        /* borders (decorative) */
  --heading: #E8EAEE;     /* AAA on all bands */
  --ink: #B9C0C9;         /* body — AAA on bg/band */
  --ink-soft: #8E97A6;    /* muted, placeholders — AA */
  --accent: #E3A44A;      /* amber — the only accent */
  --accent-hover: #ECB868;
  --accent-ink: #0C1220;
  --max: 72rem;
}

/* Retired light set (Studio §5: kept for a possible print/reader variant — do not
   re-enable without Todd; the homepage is single-mode dark by design):
   --bg #FAF9F6; --bg-alt #FFFFFF; --heading #101A2B; --ink #33404F;
   --ink-soft #5A6675; --line #E2DFD8; --accent #8A5A0F; --accent-ink #FFFFFF; */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* guard for the about-portrait right bleed */
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 720px) { .wrap { padding: 0 2rem; } }

/* ---------- Nav (Studio §4.6, M3) ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 11, 20, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
  flex-wrap: nowrap; /* never wrap to two rows */
}
/* Wordmark (Todd-supplied treatment, 2026-07-12): Syne 700 lowercase,
   0.18em tracking, blinking underscore cursor. Cursor accent changed from the
   source file's #3b82f6 to site amber — Jarvis call, Todd can veto (build note). */
.wordmark {
  font-family: "Syne", "Inter", system-ui, sans-serif;
  font-weight: 700;
  color: var(--heading);
  text-transform: lowercase;
  letter-spacing: 0.18em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark::after {
  content: "_";
  color: var(--accent);
  font-weight: 500;
  margin-left: 2px;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink {
  to { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark::after { animation: none; }
}

.nav .name { font-size: 1.25rem; } /* 20px — source file's nav size */
.nav-right { display: flex; align-items: center; gap: 1.4rem; }
@media (max-width: 720px) {
  /* Fit wordmark + hamburger + pill in the 64px bar at 375px (measured):
     wordmark 14px ≈ 150px, hamburger 44px (tap target kept), pill ≈ 118px */
  .nav .name { font-size: 0.875rem; }
  .nav-right { gap: 0.5rem; }
  .nav .nav-right .btn { padding: 0.45rem 1rem; font-size: 0.9rem; }
}
.nav ul { display: flex; gap: 1.4rem; list-style: none; }
.nav ul a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav ul a:hover { color: var(--heading); }
.nav .btn { margin: 0; padding: 0.55rem 1.25rem; font-size: 0.95rem; }

/* Mobile nav: wordmark + pill CTA; links behind a plain hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--heading);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}
.nav-menu { display: contents; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(7, 11, 20, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav-menu.open { display: block; }
  .nav-menu ul { flex-direction: column; gap: 0; padding: 0.5rem 1.5rem 1rem; }
  .nav-menu ul a { display: block; padding: 0.75rem 0; min-height: 44px; }
}

/* ---------- Bands (Studio §4.2, M7) ---------- */
section { padding: 6.5rem 0; }
@media (max-width: 720px) { section { padding: 4rem 0; } }
.band-deep { background: var(--bg-deep); }
.band { background: var(--bg-band); }
/* No inter-section hairlines: band colors do the separation. */

/* ---------- Type scale (Studio §4.3) ---------- */
h1, h2, h3 { color: var(--heading); }
h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 14ch;
}
h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.5rem; }

p { max-width: 62ch; }
p + p { margin-top: 1rem; }

a { color: var(--accent); }

.kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 2.5rem; }

/* ---------- Buttons (Studio §4.5) ---------- */
.btn {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.875rem 1.75rem;
  min-height: 44px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap; /* pills never wrap (nav pill overflowed the 64px bar) */
  transition: background 150ms ease;
}
.btn:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--accent-ink); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 720px) {
  main .btn { display: block; width: 100%; max-width: 20rem; }
}

/* ---------- Hero (Studio §4.7, M1+M2) ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 6.5rem 0;
}
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 48%; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.05) brightness(0.92);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #070B14 0%, rgba(7, 11, 20, 0.85) 18%, rgba(7, 11, 20, 0.35) 45%, rgba(7, 11, 20, 0) 70%),
    linear-gradient(0deg, #070B14 0%, transparent 22%);
}
.hero-copy { position: relative; z-index: 1; max-width: 55%; }
.hero-copy .sub { font-size: 1.1875rem; line-height: 1.6; color: var(--ink); margin-top: 1.5rem; max-width: 52ch; }
@media (max-width: 720px) {
  .hero-photo { width: 100%; inset: 0; }
  .hero-photo::after {
    background: linear-gradient(0deg, #070B14 0%, rgba(7, 11, 20, 0.88) 55%, rgba(7, 11, 20, 0.45) 100%);
  }
  .hero-copy { max-width: 100%; align-self: end; padding-bottom: 1rem; }
}

/* ---------- Proof / receipts band (Studio §4.8, M6) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 0 3rem;
}
.stat-n {
  display: block;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--accent);
}
.stat-l {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } }

ul.list { list-style: none; margin-top: 1rem; }
ul.list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
ul.list li strong { color: var(--heading); font-weight: 600; }

.closing {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading);
  max-width: 52ch;
}

/* ---------- Two doors (Studio §4.9, M4) ---------- */
.doors-head { text-align: center; }
.doors-head .kicker { margin-bottom: 0.75rem; }
.doors-head h2 { margin-bottom: 2.5rem; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .doors { grid-template-columns: 1fr; } }
.door {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.5rem;
  transition: transform 200ms ease, border-color 200ms ease;
}
.door:hover { transform: translateY(-4px); border-color: #E3A44A55; }
.door-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.door h3 { font-size: 1.5rem; }
.door ul { list-style: none; margin-top: 1rem; }
.door ul li { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.door ul li:first-child { border-top: 0; }
.door ul li strong { color: var(--heading); font-weight: 600; }

/* ---------- Card grid (Studio §4.10, M8 — learn video types) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
@media (max-width: 720px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
}
.card h3 { font-size: 1.375rem; }

/* ---------- About / story: text-only per Todd's single-photo decision 2026-07-13.
   Copy sits at the global 62ch paragraph measure; no grid needed. ---------- */

/* ---------- Newsletter (Studio §4.12, M9) ---------- */
.newsletter {
  background:
    radial-gradient(600px 300px at 50% 0%, var(--surface-2) 0%, transparent 70%),
    var(--bg-deep);
  text-align: center;
}
.newsletter p { margin-left: auto; margin-right: auto; }
.newsletter form {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter input[type="email"] {
  flex: 1 1 16rem;
  padding: 0.875rem 1.5rem;
  min-height: 44px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
}
.newsletter input[type="email"]::placeholder { color: var(--ink-soft); }
.newsletter .btn { margin-top: 0; }
@media (max-width: 720px) { .newsletter .btn { width: auto; } }
.capture-line { font-size: 0.9rem; color: var(--ink-soft); margin-top: 2.5rem; }
.form-note { margin-top: 0.75rem; font-size: 0.9rem; color: var(--ink-soft); display: none; }

/* ---------- Footer (Studio §4.13) ---------- */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 3rem 0 4rem;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.footer-row .name { font-size: 1.0625rem; } /* wordmark sized down for footer context */
.footer-row ul { display: flex; gap: 1.4rem; list-style: none; }
.footer-row ul a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.footer-row ul a:hover { color: var(--heading); }
footer .legal p { font-size: 0.85rem; color: var(--ink-soft); }
footer .legal p + p { margin-top: 0.5rem; }

/* ---------- Subpages (Studio §4.14) ---------- */
.subhero { padding: 5rem 0 4rem; }
.subhero h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
.subhero .sub { font-size: 1.1875rem; line-height: 1.6; color: var(--ink); margin-top: 1.5rem; max-width: 52ch; }
.stack > .door { margin-bottom: 1.5rem; }
.stack > .door:last-of-type { margin-bottom: 0; }
.back {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.back:hover { border-color: var(--accent); color: var(--heading); }
