/* =========================================================
   ToddHenderson.com — Fractional CMO + Agentic Operations
   ========================================================= */

:root {
  --bg: #0B0B0C;
  --surface: #121214;
  --surface-2: #17171A;
  --line: #1F1F22;
  --line-2: #2A2A2E;
  --fg: #FFFFFF;
  --mid: #A1A1AA;
  --mid-2: #71717A;
  --logo: #E4E4E7;
  --accent: #EC008C;
  --accent-soft: rgba(236, 0, 140, 0.16);

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1280px;
  --max-text: 1080px;
  --max-narrow: 720px;

  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(96px, 14vw, 180px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
html { scroll-behavior: smooth; }
body {
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

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

/* ---- Typography utilities ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.eyebrow.no-rule::before { display: none; }

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--fg);
  text-wrap: balance;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
.h-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.lede {
  color: var(--mid);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 60ch;
}
p { margin: 0 0 1em; }
p.mid { color: var(--mid); }
.mono { font-family: var(--font-mono); }

/* ---- Layout ---- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.wrap-text {
  max-width: var(--max-text);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
section {
  padding-top: calc(var(--section-y) / 2);
  padding-bottom: calc(var(--section-y) / 2);
}
section:last-of-type { padding-bottom: var(--section-y); }

/* Tonal rhythm — alternating section tints */
.what            { background: #1A1A1F; }
#model           { background: #1A1A1F; }
#bio             { background: #25252B; }
.insights-section { background: #1A1A1F; }

/* ---- Top bar ---- */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--pad-x);
}
.topbar .mark {
  display: inline-flex; align-items: baseline; gap: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-transform: none;
}
.topbar .mark .dot { color: var(--accent); }
.topbar nav {
  display: flex; gap: 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--mid);
}
.topbar nav a { position: relative; transition: color .2s ease; }
.topbar nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 1px; background: var(--accent);
  transition: right .25s ease;
}
.topbar nav a:hover { color: var(--fg); }
.topbar nav a:hover::after { right: 0; }
.topbar .top-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  text-transform: none;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px 18px;
  border-radius: 3px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.topbar .top-cta:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
@media (max-width: 760px) {
  .topbar nav { display: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-top: clamp(32px, 6vw, 64px);
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
  background: linear-gradient(180deg, #0B0B0C 0%, #0B0B0C 35%, #1A1A1F 100%);
}
.hero-glow {
  display: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 152px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 36px;
  text-wrap: balance;
}
.hero h1 .period { color: var(--accent); }
.hero h1 .line { display: block; }
.hero .sub {
  color: var(--mid);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 28ch;
  margin: 0 0 44px;
}
.hero .meta {
  margin-top: 36px;
  display: flex; gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  flex-wrap: wrap;
}
.hero .meta span::before { content: "→ "; color: var(--accent); }

.hero-photo {
  position: relative;
  align-self: stretch;
  display: flex; align-items: stretch; justify-content: flex-end;
}
.hero-photo .frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  overflow: hidden;
  border-radius: 2px;
}
.hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(0.15) contrast(1.02);
}
.hero-photo .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0) 55%, rgba(11,11,12,0.55) 100%);
  pointer-events: none;
}
.hero-photo .corner-tag {
  position: absolute; bottom: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--logo);
  background: rgba(11,11,12,0.5);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  border-left: 2px solid var(--accent);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; align-items: start; }
  .hero h1 { font-size: clamp(48px, 14vw, 92px); }
  .hero-photo .frame { aspect-ratio: 4 / 5; max-height: 70vh; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 16px 28px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
  isolation: isolate;
}
.btn::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 20px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  transition: border-color .2s ease, color .2s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Magenta inline link ---- */
.m-link {
  color: var(--fg);
  position: relative;
  display: inline-flex; align-items: baseline; gap: 6px;
  font-weight: 500;
}
.m-link::after {
  content: "→";
  color: var(--accent);
  transition: transform .25s ease;
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.m-link::before {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px;
  height: 1px; background: var(--accent);
  transition: right .25s ease;
}
.m-link:hover::before { right: 0; }
.m-link:hover::after { transform: translateX(4px); }

/* ---- Section 1: Market Problem ---- */
.market .market-head {
  max-width: 68ch;
}
.market .market-head .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.market .market-head .label::before {
  content: ""; width: 32px; height: 1px; background: var(--accent);
}
.market .market-head h2 {
  max-width: 22ch;
}
.market .prose {
  margin-top: 48px;
  max-width: 68ch;
}
.market .prose p {
  color: var(--mid);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  letter-spacing: -0.005em;
  margin: 0 0 1.1em;
}
.market .prose p:last-child { margin-bottom: 0; }
.market .prose p.lead {
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-top: 1.4em;
  max-width: 36ch;
}
.market .prose p.lead em {
  font-style: normal;
  color: var(--accent);
}

/* ---- Section 2: What I Do — three-column system ---- */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.three-col .col {
  padding: 36px 32px 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
  background: transparent;
  transition: background .25s ease;
}
.three-col .col:last-child { border-right: 0; }
.three-col .col:hover { background: rgba(255, 255, 255, 0.04); }
.three-col .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mid-2);
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 56px;
}
.three-col .num .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.three-col .col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.three-col .col p { color: var(--mid); font-size: 16px; line-height: 1.55; margin: 0; }
.three-col .col .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
@media (max-width: 900px) {
  .three-col { grid-template-columns: 1fr; }
  .three-col .col { border-right: 0; border-bottom: 1px solid var(--line); }
  .three-col .col:last-child { border-bottom: 0; }
  .three-col .num { margin-bottom: 28px; }
}

/* ---- Section 3: What I Solve — 2x2 ---- */
.solve .section-head { margin-bottom: 24px; }
.solve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 24px;
  margin-left: 240px; /* align left edge with section-head heading-area */
  border: 1px solid var(--line);
}
@media (max-width: 820px) {
  .solve-grid { margin-left: 0; }
}
.solve-card {
  background: var(--bg);
  padding: 40px 36px 44px;
  display: flex; flex-direction: column;
  gap: 16px;
  min-height: 280px;
  position: relative;
  transition: background .25s ease;
}
.solve-card:hover { background: var(--surface); }
.solve-card .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.solve-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
}
.solve-card p {
  color: var(--mid);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 48ch;
}
@media (max-width: 800px) { .solve-grid { grid-template-columns: 1fr; } }

/* ---- Section 3.5: The Model ---- */
.model {
  /* tonal section, padding follows rhythm */
}
.model .base {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 40px;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: baseline;
  position: relative;
  background: var(--bg);
}
.model .base .n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.model .base h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0 0 16px;
}
.model .base p {
  color: var(--mid); font-size: 17px; line-height: 1.55; margin: 0;
  max-width: 60ch;
}

.model .modules {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.model .module {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: baseline;
}
.model .module .n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.model .module .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 10px;
}
.model .module .desc {
  color: var(--mid);
  font-size: 16px;
  line-height: 1.55;
  max-width: 70ch;
}
.model .footer-line {
  margin-top: 32px;
  margin-left: 240px;
  color: var(--mid);
  font-size: 15px;
}
@media (max-width: 760px) {
  .model .base { grid-template-columns: 1fr; gap: 16px; padding: 28px; }
  .model .module { grid-template-columns: 1fr; gap: 8px; }
  .model .footer-line { margin-left: 0; }
}

/* ---- Section 4: Selected Work — wordmark grid ---- */
.work-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.work-tile {
  background: var(--bg);
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 22px 24px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: background .25s ease;
}
.work-tile .tile-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
  transition: filter .35s ease, transform .6s ease;
  z-index: 0;
  pointer-events: none;
}
.work-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0) 35%, rgba(11,11,12,0.6) 75%, rgba(11,11,12,0.9) 100%);
  z-index: 1;
  pointer-events: none;
  transition: background .25s ease;
}
.work-tile .name,
.work-tile .kind { position: relative; z-index: 2; }
.work-tile:hover { background: var(--bg); }
.work-tile:hover .tile-bg {
  transform: scale(1.04);
}
.work-tile:hover::after {
  background: linear-gradient(180deg, rgba(11,11,12,0) 20%, rgba(11,11,12,0.5) 70%, rgba(11,11,12,0.85) 100%);
}
.work-tile .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.05;
  transition: color .25s ease;
}
.work-tile .kind {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}
.work-tile::before {
  content: "";
  position: absolute; top: 18px; right: 18px;
  width: 6px; height: 6px;
  background: var(--mid-2);
  opacity: 0.6;
  z-index: 2;
  transition: background .25s ease, opacity .25s ease;
}
.work-tile:hover::before { background: var(--accent); opacity: 1; }

.work-foot {
  margin-top: 40px;
  font-size: 15px;
  color: var(--mid);
}
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Section 5: Bio ---- */
.bio-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
.bio-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  border-radius: 2px;
}
.bio-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
}
.bio-photo .stat-strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(11,11,12,0.78);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.bio-photo .stat {
  padding: 18px 14px 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.bio-photo .stat:last-child { border-right: 0; }
.bio-photo .stat .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.bio-photo .stat .l {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 1.3;
}
.bio-copy h2 { margin-bottom: 28px; max-width: 16ch; }
.bio-copy p { color: var(--mid); font-size: 18px; line-height: 1.6; margin: 0 0 1.25em; }
.bio-copy p strong { color: var(--fg); font-weight: 500; }

/* Ambient terminal in bio */
.terminal {
  margin-top: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--mid);
  overflow: hidden;
}
.terminal .term-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-2);
}
.terminal .term-head .live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
}
.terminal .term-head .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
@keyframes pulse {
  0%   { opacity: 1; }
  50%  { opacity: 0.4; }
  100% { opacity: 1; }
}
.terminal .term-body {
  padding: 14px 14px 8px;
  height: 184px;
  overflow: hidden;
  position: relative;
}
.terminal .term-body::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 28px;
  background: linear-gradient(180deg, var(--bg), rgba(11,11,12,0));
  pointer-events: none;
}
.terminal .line {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  white-space: nowrap;
  opacity: 0;
  animation: termIn .35s ease forwards;
}
.terminal .line .t { color: var(--mid-2); }
.terminal .line .msg { color: var(--mid); overflow: hidden; text-overflow: ellipsis; }
.terminal .line .msg b { color: var(--fg); font-weight: 500; }
@keyframes termIn { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: none; } }

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

/* ---- Section 6: Testimonials — editorial pull-quotes ---- */
.quotes {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 96px);
}
.quote {
  position: relative;
  max-width: 720px;
  padding: 0;
  border: 0;
  background: transparent;
}
.quote.q-lg { max-width: 1040px; }
.quote.q-right { margin-left: auto; text-align: right; }
.quote .mark-q {
  position: absolute;
  top: -36px;
  left: -4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 9vw, 132px);
  line-height: 0.7;
  color: var(--accent);
  letter-spacing: -0.05em;
  pointer-events: none;
}
.quote.q-right .mark-q { left: auto; right: -4px; }
.quote .body {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.quote.q-lg .body {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.028em;
}
.quote .who {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--mid);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quote .who .n { color: var(--fg); }
.quote .who .role { color: var(--mid); }
.quote.q-right .who { align-items: flex-end; }

/* Subtle inline rule connecting quotes */
.quote::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * clamp(28px, 4vw, 48px));
  left: 0;
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
.quote.q-right::after { left: auto; right: 0; }
.quote:last-child::after { display: none; }

@media (max-width: 720px) {
  .quote, .quote.q-lg { max-width: 100%; }
  .quote.q-right { margin-left: 0; text-align: left; }
  .quote.q-right .mark-q { left: -4px; right: auto; }
  .quote.q-right .who { align-items: flex-start; }
  .quote.q-right::after { left: 0; right: auto; }
}

/* (legacy testimonials grid rules removed) */

/* ---- Section 7: Insights ---- */
.insights {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.insight {
  background: var(--bg);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column;
  gap: 14px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  transition: background .25s ease;
}
.insight-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.75;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 25%, rgba(0,0,0,0.6) 65%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 25%, rgba(0,0,0,0.6) 65%, #000 100%);
  z-index: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .8s ease;
}
.insight:hover .insight-bg { opacity: 0.9; transform: scale(1.02); }
.insight > .meta,
.insight > h3,
.insight > p,
.insight > .read { position: relative; z-index: 1; }
.insight:hover { background: var(--bg); }
.insight .meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-2);
  display: flex; gap: 14px;
}
.insight .meta .cat { color: var(--accent); }
.insight h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0;
  max-width: 24ch;
}
.insight p {
  color: var(--mid);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 50ch;
}
.insight .read {
  margin-top: auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.insight .read::after { content: "→"; transition: transform .25s ease; }
.insight:hover .read::after { transform: translateX(4px); }
@media (max-width: 800px) { .insights { grid-template-columns: 1fr; } }

/* ---- Section 8: CTA ---- */
.cta {
  padding-bottom: var(--section-y);
}
.cta-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(54px, 8vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
}
.cta h2 .period { color: var(--accent); }
.cta p {
  color: var(--mid);
  font-size: 19px;
  line-height: 1.55;
  max-width: 60ch;
  margin: 0 0 1.3em;
}
.cta .qualifier {
  color: var(--mid);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  margin-top: 40px;
}
.cta .contact {
  margin-top: 56px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta .contact a {
  color: var(--accent);
  text-decoration: none;
  position: relative;
  width: max-content;
  max-width: 100%;
  transition: opacity .2s ease;
}
.cta .contact a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transition: right .3s ease;
}
.cta .contact a:hover { opacity: 0.85; }
.cta .contact a:hover::after { right: 0; }

/* ---- Footer ---- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 32px var(--pad-x) 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mid);
}
footer.site .left { text-transform: none; letter-spacing: 0.04em; }
footer.site .social { display: flex; gap: 18px; }
footer.site .social a {
  color: var(--mid);
  transition: color .2s ease;
}
footer.site .social a:hover { color: var(--accent); }
footer.site .copy { color: var(--mid-2); text-transform: uppercase; letter-spacing: 0.14em; font-size: 10.5px; }

/* ---- Section header pattern: rule + eyebrow ---- */
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: baseline;
  margin-bottom: 8px;
}
.section-head .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px;
  white-space: nowrap;
}
.section-head .label::before {
  content: ""; width: 32px; height: 1px; background: var(--accent);
}
.section-head .heading-area { max-width: 920px; }
.section-head--center {
  display: block;
  text-align: left;
  max-width: 1080px;
  margin: 0 auto;
}
.section-head--center .label {
  justify-content: flex-start;
  padding-top: 0;
  margin-bottom: 24px;
}
.section-head--center .label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.section-head--center .label::after { display: none; }
.section-head--center .label {
  display: inline-flex;
  align-items: center;
}
.section-head--center .heading-area {
  max-width: none;
  margin: 0;
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head .label { padding-top: 0; }
}

/* ---- Reveal-on-scroll ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   Tweaks panel
   ============================================ */
.tw-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  box-shadow: 0 24px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02) inset;
  font-family: var(--font-body);
  color: var(--fg);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.tw-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.tw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.tw-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}
.tw-close {
  background: transparent;
  border: 0;
  color: var(--mid);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  transition: color .2s ease;
}
.tw-close:hover { color: var(--accent); }
.tw-body { padding: 14px; }
.tw-section + .tw-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tw-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-2);
  margin-bottom: 10px;
}
.tw-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.tw-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 10px 12px;
  color: var(--mid);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.tw-opt:hover { color: var(--fg); border-color: var(--mid-2); }
.tw-opt.is-active {
  border-color: var(--accent);
  color: var(--fg);
  background: rgba(236, 0, 140, 0.06);
}
.tw-opt-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.tw-opt-lbl { font-size: 12.5px; letter-spacing: -0.005em; }
.tw-preview {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mid);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 12px;
}
@media (max-width: 520px) {
  .tw-panel { right: 12px; left: 12px; width: auto; bottom: 12px; }
}
