/* ============================================================
   IncredAgents · Testimonial Harvester Skill — Theme v3
   Amber Warmth gold + Vision 4 airy gradients
   Palette: navy #1B3A5C · deep navy #122A45 · cream #FAFAF8
            amber #D9A441 (buttons, borders, icons, thin rules ONLY)
   Headings: Georgia, italic, 400 · Body: Helvetica, Arial, sans-serif
   Script: Yellowtail — ONE word only ("everywhere") + signatures
   BANNED per her votes: yellow highlights, glow blobs, gold text
   on navy backgrounds, script fonts on nav/kickers/headings.
   ============================================================ */
@font-face {
  font-family: "Yellowtail";
  src: url("assets/Yellowtail-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --navy: #1b3a5c;
  --navy-deep: #122a45;
  --cream: #fafaf8;
  --gold: #d9a441;
  --gold-dark: #b4832a;
  --gold-soft: rgba(217, 164, 65, 0.14);
  --white: #ffffff;
  --ink: #22303f;
  --muted: #5a7292;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Helvetica, Arial, sans-serif;
  --script: "Yellowtail", cursive;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(27, 58, 92, 0.12);
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5vw;
  border-bottom: 3px solid var(--gold);
}
.nav-brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.nav-cta {
  background: linear-gradient(180deg, #dfae4e 0%, #cf9836 100%);
  color: var(--navy-deep) !important;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--cream); color: var(--navy) !important; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(170deg, #21456b 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--cream);
  text-align: center;
  padding: 100px 6vw 90px;
  position: relative;
  overflow: hidden;
}
.hero .kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  display: block;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  max-width: 920px;
  margin: 0 auto 24px;
  color: var(--white);
}
.hero p.sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 720px;
  margin: 0 auto 38px;
  color: #d8dde4;
}
.btn {
  display: inline-block;
  background: linear-gradient(180deg, #dfae4e 0%, #cf9836 100%);
  color: var(--navy-deep);
  font-weight: 700;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(217, 164, 65, 0.45); }
.btn.ghost {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
  box-shadow: none;
  margin-left: 14px;
}
.btn.ghost:hover { border-color: var(--gold); color: var(--cream); }
.hero .fine { margin-top: 24px; font-size: 0.85rem; color: #9fb0c3; }

/* ---------- Sections ---------- */
section { padding: 76px 6vw; }
.section-light { background: var(--cream); }
.section-navy {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #162f4c 100%);
  color: var(--cream);
}
.section-white { background: var(--white); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.section-navy .eyebrow { color: rgba(250, 250, 248, 0.72); }

h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--navy);
}
.section-navy h2 { color: var(--white); }
.section-lead { max-width: 780px; font-size: 1.1rem; margin-bottom: 44px; }

.script-accent {
  font-family: var(--script);
  font-style: normal;
  color: var(--gold-dark);
  font-size: 1.15em;
}
.section-navy .script-accent,
.hero .script-accent { color: var(--cream); }

/* ---------- Icons ---------- */
.icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; stroke: var(--gold-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skill-card .icon { background: rgba(217, 164, 65, 0.18); }
.skill-card .icon svg { stroke: var(--gold); }

/* ---------- Pipeline steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
  max-width: 1100px;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--gold);
  transition: transform 0.18s ease;
}
.step:hover { transform: translateY(-5px); }
.step .num {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.14em;
}
.step h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  margin: 6px 0 10px;
  color: var(--navy);
}
.step p { font-size: 0.97rem; }

/* ---------- Two skills split ---------- */
.skill-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 26px;
  max-width: 1100px;
}
.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.skill-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.skill-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 6px;
}
.skill-card .tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9fb0c3;
  display: block;
  margin-bottom: 16px;
}
.skill-card ul { list-style: none; margin: 14px 0 24px; }
.skill-card li { padding: 6px 0 6px 28px; position: relative; font-size: 0.98rem; }
.skill-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.skill-card a.repo {
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--gold);
}
.skill-card a.repo:hover { color: var(--white); border-color: var(--white); }

/* ---------- Spotlight (featured testimonial) ---------- */
.spotlight {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(280px, 480px);
  gap: 48px;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
}
.spotlight figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(27, 58, 92, 0.22);
  background: var(--navy);
  border: 2px solid var(--gold);
}
.spotlight img { width: 100%; height: auto; }
.spotlight .who {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.spotlight p { font-size: 1.05rem; margin-bottom: 14px; }
.spotlight .rule {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  border: none;
  margin: 0 0 20px;
}
@media (max-width: 860px) {
  .spotlight { grid-template-columns: minmax(280px, 460px); gap: 32px; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1200px;
}
.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
  border: 1px solid rgba(27, 58, 92, 0.08);
  position: relative;
}
.gallery figure::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(217, 164, 65, 0) 100%);
  z-index: 1;
}
.gallery img { width: 100%; height: auto; transition: transform 0.25s ease; }
.gallery figure:hover img { transform: scale(1.03); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1000px;
  text-align: center;
}
.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(217, 164, 65, 0.3);
  border-radius: var(--radius);
  padding: 26px 12px;
}
.stat .big {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--white);
  font-weight: 700;
}
.stat .label { font-size: 0.95rem; color: #c9d4df; }

/* ---------- Install ---------- */
.install-box {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 880px;
  font-size: 0.98rem;
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow);
}
.install-box code {
  display: block;
  background: var(--navy-deep);
  color: var(--cream);
  border: 1px solid rgba(217, 164, 65, 0.4);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 14px 0 20px;
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: nowrap;
}
.install-box a { color: var(--cream); border-bottom: 1px dashed var(--gold); text-decoration: none; }

/* ---------- About page ---------- */
.about-hero {
  background: linear-gradient(170deg, #21456b 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 90px 6vw 70px;
  text-align: center;
}
.about-hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3rem);
}
.about-hero .kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 14px;
}
.about-hero p.hero-note { max-width: 680px; margin: 14px auto 0; color: #d8dde4; }
.prose { max-width: 780px; margin: 0 auto; }
.prose p { margin-bottom: 20px; font-size: 1.08rem; }
.prose h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
  font-size: 1.5rem;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.lesson-list { list-style: none; margin: 14px 0 24px; }
.lesson-list li {
  background: var(--white);
  border-left: 5px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 15px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(27, 58, 92, 0.06);
}
.lesson-list li strong { color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, #dfae4e 0%, #c89230 100%);
  text-align: center;
  padding: 76px 6vw;
}
.cta-band h2 { color: var(--navy-deep); }
.cta-band p { max-width: 640px; margin: 0 auto 32px; font-size: 1.12rem; color: #33270a; }
.cta-band .btn { background: var(--navy); color: var(--cream); box-shadow: 0 4px 14px rgba(18, 42, 69, 0.4); }
.cta-band .btn:hover { background: var(--navy-deep); }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: #9fb0c3;
  text-align: center;
  padding: 38px 6vw;
  font-size: 0.88rem;
  border-top: 3px solid var(--gold);
}
footer a { color: var(--cream); text-decoration: none; border-bottom: 1px dotted rgba(217, 164, 65, 0.7); }
footer a:hover { color: var(--white); border-bottom-style: solid; }
footer .foot-brand {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--cream);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  display: block;
  margin-bottom: 10px;
}
footer .foot-eco { margin-top: 12px; }
footer .foot-eco a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: none;
}
.foot-logo { height: 36px; width: auto; display: inline-block; }

@media (max-width: 640px) {
  nav { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav-links { flex-wrap: wrap; gap: 12px 18px; }
  .btn.ghost { margin-left: 0; margin-top: 14px; }
}

/* ============================================================
   v2 — graphics + motion + skim layer (same palette, same bans:
   no glow blobs, no gold text on navy, script = accent word only)
   ============================================================ */

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease var(--d, 0s), transform .6s ease var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Split hero ---------- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, .95fr);
  gap: 56px;
  align-items: center;
  text-align: left;
  background: linear-gradient(120deg, #21456b 0%, var(--navy) 40%, var(--navy-deep) 75%, #1d3f63 100%);
  background-size: 220% 220%;
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
.hero-split h1 { margin: 0 0 22px; }
.hero-split p.sub { margin: 0 0 26px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream); border: 1px solid rgba(217, 164, 65, 0.55); border-radius: 999px;
  padding: 7px 16px; background: rgba(255, 255, 255, 0.05);
}
.hero-actions .btn.ghost { margin-left: 14px; }

/* Floating proof cards */
.hero-art { position: relative; min-height: 380px; }
.float-card {
  position: absolute; width: min(58%, 260px); border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38); border: 2px solid var(--gold);
}
.float-card img { width: 100%; height: auto; }
.fc-back { top: 0; right: 4%; transform: rotate(5deg); animation: floatY 7s ease-in-out infinite; }
.fc-front { bottom: 6%; left: 2%; transform: rotate(-4deg); animation: floatY 7s ease-in-out -3.2s infinite; }
@keyframes floatY { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }
.art-caption {
  position: absolute; bottom: -14px; right: 0; font-size: 0.8rem; color: #9fb0c3;
  font-family: var(--serif); font-style: italic;
}

/* ---------- Stats band ---------- */
.stats-band { padding: 54px 6vw; }
.stats-band .stats { margin: 0 auto; }

/* ---------- Media skill cards ---------- */
.media-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px; max-width: 1200px;
}
.media-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border-top: 5px solid var(--gold);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.media-card:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(27, 58, 92, 0.2); }
/* NOTE: fixed ratio + overflow hidden — only for icon-led cards (.media-icon).
   Any raster/tall content must use .media-mock or .media-top-square instead. */
.media-top { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.media-top img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s ease; }
.media-card:hover .media-top img { transform: scale(1.04); }
.media-svg svg { width: 100%; height: 100%; display: block; }
.badge {
  position: absolute; top: 12px; left: 12px; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.14em; padding: 6px 12px; border-radius: 999px;
}
.badge-live { background: var(--gold); color: var(--navy-deep); }
.badge-soon { background: rgba(18, 42, 69, 0.85); color: var(--cream); border: 1px solid var(--gold); }
.media-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.media-body h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.45rem; color: var(--navy); margin-bottom: 4px;
}
.media-tag { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.quick-list { list-style: none; margin-bottom: 20px; flex: 1; }
.quick-list li { padding: 5px 0 5px 26px; position: relative; font-size: 0.95rem; }
.quick-list li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 13px; height: 13px;
  background: var(--gold); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.card-link { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); align-self: flex-start; }
.card-link:hover { color: var(--gold-dark); }
.card-link-muted { color: var(--muted); border-bottom-style: dashed; font-size: 0.9rem; }

/* Zoom mock animation */
.rec-dot { animation: recPulse 1.6s ease-in-out infinite; }
@keyframes recPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.tl { opacity: 0; animation: tlIn .5s ease forwards; }
.tl1 { animation-delay: .4s; } .tl2 { animation-delay: 1.2s; } .tl3 { animation-delay: 2s; }
@keyframes tlIn { to { opacity: 1; } }
.tl-cursor { opacity: 0; animation: tlIn .3s ease 2.6s forwards, cursorBlink 1s step-end 2.9s infinite; }
@keyframes cursorBlink { 50% { opacity: 0; } }

/* ---------- Pipeline flow ---------- */
.flow {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px; align-items: stretch; max-width: 1200px;
}
.flow-step {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: var(--radius); padding: 26px 20px; transition: transform .18s ease, border-color .18s ease;
}
.flow-step:hover { transform: translateY(-5px); border-color: var(--gold); }
.flow-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy-deep);
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.flow-step h3 { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--white); font-size: 1.25rem; margin-bottom: 8px; }
.flow-step p { font-size: 0.93rem; color: #c9d4df; }
.flow-arrow { align-self: center; color: var(--gold); font-size: 1.5rem; font-weight: 700; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-split, .fc-back, .fc-front, .rec-dot, .tl, .tl-cursor { animation: none; }
  .tl { opacity: 1; } .tl-cursor { opacity: 1; }
  .media-card, .media-card:hover .media-top img, .flow-step { transition: none; transform: none; }
}

/* ---------- v2 responsive ---------- */
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; padding: 70px 6vw 90px; }
  .hero-split h1 { margin: 0 auto 22px; }
  .hero-split p.sub { margin: 0 auto 26px; }
  .chips { justify-content: center; }
  .hero-art { min-height: 330px; max-width: 460px; margin: 10px auto 0; width: 100%; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 640px) {
  .hero-actions .btn.ghost { margin-left: 0; margin-top: 14px; }
  .art-caption { position: static; text-align: center; margin-top: 12px; }
}

/* ---------- v2.1 mobile overflow fixes ---------- */
html, body { overflow-x: clip; }
.install-box code { white-space: pre-wrap; word-break: break-word; }

/* ---------- v2.2 stack hero buttons on small screens ---------- */
@media (max-width: 640px) {
  .hero-actions { display: flex; flex-direction: column; gap: 14px; align-items: center; }
  .hero-actions .btn.ghost { margin-left: 0; margin-top: 0; }
}

/* ---------- v3 — brand + skill logos ---------- */
.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 34px; width: auto; border-radius: 8px; display: inline-block; }
.foot-brand-logo { height: 56px; width: auto; border-radius: 12px; margin: 0 auto 12px; }
.skill-id { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.skill-logo { width: 48px; height: 48px; flex: none; }
.skill-id h3 { margin-bottom: 4px; }
.skill-id .media-tag { margin-bottom: 0; }

/* ============================================================
   v4 — skill-first hero tiles, terminal install, navy texture
   (inspiration: Linear bento depth, Vercel terminal, Raycast float)
   ============================================================ */

/* ---------- Floating skill tiles (hero) ---------- */
.hero-art { position: relative; min-height: 460px; }
.tile {
  position: absolute; width: min(64%, 250px);
  background: linear-gradient(160deg, #1d3f63 0%, var(--navy-deep) 100%);
  border: 2px solid var(--gold); border-radius: 16px; padding: 20px 18px 16px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 12px;
}
.tile img { width: 56px; height: 56px; }
.tile-text strong {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.12rem; color: var(--white); line-height: 1.2;
}
.tile-text span { font-size: 0.82rem; color: #9fb0c3; }
.tile-pill {
  align-self: flex-start; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em;
  background: var(--gold); color: var(--navy-deep); border-radius: 999px; padding: 4px 10px;
}
.tile-pill.pill-soon { background: transparent; color: var(--cream); border: 1px solid var(--gold); }
.t-back { top: 0; left: 50%; margin-left: -110px; z-index: 1; opacity: .82; transform: scale(.92); animation: tileFloat 9s ease-in-out infinite; }
.t-left { bottom: 26px; left: 0; z-index: 3; transform: rotate(-5deg); animation: tileFloat 7s ease-in-out -1.5s infinite; }
.t-right { bottom: 0; right: 0; z-index: 2; transform: rotate(4deg); animation: tileFloat 7.6s ease-in-out -4s infinite; }
@keyframes tileFloat { 0%, 100% { margin-top: 0; } 50% { margin-top: -16px; } }
.tile:hover { z-index: 5; }

/* ---------- Navy dot texture (depth without glow) ---------- */
.section-navy, .stats-band {
  background-image:
    radial-gradient(rgba(217, 164, 65, 0.08) 1px, transparent 1.6px),
    linear-gradient(180deg, var(--navy-deep) 0%, #162f4c 100%);
  background-size: 24px 24px, 100% 100%;
}

/* ---------- Terminal install ---------- */
.terminal {
  max-width: 880px; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 44px rgba(18, 42, 69, 0.28); border: 1px solid rgba(217, 164, 65, 0.5);
}
.term-bar {
  background: var(--navy); display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-bottom: 1px solid rgba(217, 164, 65, 0.35);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: #5a7292; }
.term-dot.td-gold { background: var(--gold); }
.term-title { margin-left: 10px; font-size: 0.82rem; color: #9fb0c3; font-family: var(--serif); font-style: italic; }
.term-body {
  background: var(--navy-deep); color: var(--cream); padding: 24px 26px;
  font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 0.86rem; line-height: 2;
  overflow-x: auto;
}
.term-body p { white-space: nowrap; }
.prompt { color: var(--gold); font-weight: 700; margin-right: 8px; }
.term-comment { color: #5a7292; }
.term-say { color: #8fd0a0; }
.block-cursor {
  display: inline-block; width: 9px; height: 17px; background: var(--gold);
  vertical-align: text-bottom; animation: cursorBlink2 1.1s steps(1) infinite;
}
@keyframes cursorBlink2 { 50% { opacity: 0; } }
.term-foot {
  background: var(--navy); color: #c9d4df; font-size: 0.92rem; padding: 16px 22px;
}
.term-foot a { color: var(--cream); border-bottom: 1px dashed var(--gold); text-decoration: none; }

/* ---------- Scene animations ---------- */
.drop { opacity: 0; animation: dropFall 2.4s ease-in infinite; }
.d2 { animation-delay: .8s; } .d3 { animation-delay: 1.6s; }
@keyframes dropFall {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 1; }
  75% { opacity: 1; transform: translateY(72px); }
  100% { opacity: 0; transform: translateY(80px); }
}
.wipe-arrow { animation: arrowNudge 1.8s ease-in-out infinite; }
@keyframes arrowNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.after-card { animation: afterGlow 3.2s ease-in-out infinite; }
@keyframes afterGlow { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }

/* ---------- v4 responsive ---------- */
@media (max-width: 960px) {
  .hero-art { min-height: 480px; max-width: 480px; }
}
@media (max-width: 640px) {
  .tile { width: min(72%, 230px); padding: 16px 14px 14px; }
  .t-back { margin-left: -100px; }
  .term-body { font-size: 0.78rem; }
}

/* ---------- v4 reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .t-back, .t-left, .t-right, .drop, .wipe-arrow, .after-card, .block-cursor { animation: none; }
  .drop { opacity: 1; }
}

/* ============================================================
   v5 — robot-window hero, 4-tile orbit, card-foot pills,
   mailer + audit scenes
   ============================================================ */

/* ---------- Robot window hero composition ---------- */
.hero-art { min-height: 520px; perspective: 1100px; }
.orbit-ring {
  position: absolute; top: 50%; left: 50%; width: 460px; height: 460px;
  margin: -230px 0 0 -230px; border-radius: 50%;
  border: 2px dashed rgba(217, 164, 65, 0.35);
  animation: orbitSpin 40s linear infinite;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.robot-window {
  position: absolute; top: 50%; left: 50%; width: min(64%, 300px);
  margin: -170px 0 0 -150px;
  background: var(--navy-deep); border: 2px solid var(--gold); border-radius: 18px;
  overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  transform: rotateY(-10deg) rotateX(4deg);
  animation: windowSway 9s ease-in-out infinite;
}
@keyframes windowSway {
  0%, 100% { transform: rotateY(-10deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-6deg) rotateX(2deg) translateY(-10px); }
}
.rw-bar { display: flex; gap: 7px; padding: 10px 14px; background: var(--navy); border-bottom: 1px solid rgba(217, 164, 65, 0.4); }
.rw-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.rw-dot + .rw-dot { background: #5a7292; }
.robot-window img { width: 100%; height: auto; display: block; }

/* four tiles around the window */
.tile { width: 196px; padding: 14px 14px 12px; gap: 8px; flex-direction: row; align-items: center; }
.tile img { width: 42px; height: 42px; flex: none; }
.tile-text strong { font-size: 0.95rem; }
.tile-text span { font-size: 0.74rem; }
.ht-1 { bottom: 8%; left: -2%; z-index: 3; transform: rotate(-5deg); animation: tileFloat 7s ease-in-out -1s infinite; }
.ht-2 { bottom: 2%; right: -2%; z-index: 3; transform: rotate(4deg); animation: tileFloat 7.6s ease-in-out -4s infinite; }
.ht-3 { top: 4%; left: 2%; z-index: 2; transform: rotate(3deg); animation: tileFloat 8.4s ease-in-out -2.5s infinite; }
.ht-4 { top: 10%; right: 1%; z-index: 2; transform: rotate(-4deg); animation: tileFloat 6.8s ease-in-out -5.5s infinite; }

/* ---------- Card foot (badge at bottom, not on image) ---------- */
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 6px;
}
.foot-pill {
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.14em;
  background: var(--gold); color: var(--navy-deep); border-radius: 999px;
  padding: 5px 12px; white-space: nowrap;
}
.foot-pill.pill-soon { background: transparent; color: var(--muted); border: 1.5px solid var(--gold-dark); }

/* ---------- Mailer scene animation ---------- */
.mail-block { opacity: 0; transform: translateY(-8px); animation: mailIn .5s ease forwards; }
.mb1 { animation-delay: .3s; } .mb2 { animation-delay: .9s; }
.mb3 { animation-delay: 1.5s; } .mb4 { animation-delay: 2.1s; }
@keyframes mailIn { to { opacity: 1; transform: translateY(0); } }
.mail-env { animation: envFloat 5s ease-in-out infinite; }
.mail-env.env2 { animation-delay: -2.5s; }
@keyframes envFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Audit scene animation ---------- */
.audit-scan { animation: scanSweep 4.5s ease-in-out infinite; }
@keyframes scanSweep {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(140px, -55px); }
  60% { transform: translate(10px, 60px); }
  80% { transform: translate(0, 0); }
}
.audit-flag { opacity: 0; animation: flagPop .6s ease 1.4s forwards, flagPulse 3s ease-in-out 2.2s infinite; }
@keyframes flagPop { to { opacity: 1; } }
@keyframes flagPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- v5 responsive ---------- */
@media (max-width: 960px) {
  .hero-art { min-height: 560px; max-width: 520px; }
  .orbit-ring { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .robot-window { width: min(70%, 260px); margin-left: -130px; }
}
@media (max-width: 640px) {
  .tile { width: 168px; }
  .tile-text strong { font-size: 0.85rem; }
  .ht-1 { left: 0; } .ht-2 { right: 0; } .ht-3 { left: 0; } .ht-4 { right: 0; }
  .orbit-ring { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
}

/* ---------- v5 reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .orbit-ring, .robot-window, .mail-block, .mail-env, .audit-scan { animation: none; }
  .mail-block { opacity: 1; transform: none; }
  .audit-flag { animation: none; opacity: 1; }
}

/* ---------- v5.1 balanced 2x2 library grid ---------- */
@media (min-width: 1000px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); max-width: 1080px; }
}

/* ============================================================
   v6 — top-loaded hero: headline 10px under the nav line,
   robot composition center-stage, word-stagger + pulse motion
   ============================================================ */

.hero-top {
  text-align: center;
  padding: 10px 6vw 70px;
  background: linear-gradient(120deg, #21456b 0%, var(--navy) 40%, var(--navy-deep) 75%, #1d3f63 100%);
  background-size: 220% 220%;
  animation: heroDrift 18s ease-in-out infinite alternate;
  position: relative; overflow: hidden;
}

/* headline: each word lifts in, staggered */
.hero-title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.12;
  color: var(--white); max-width: 980px; margin: 0 auto 18px;
}
.hero-title .w {
  display: inline-block;
  animation: wordIn .55s cubic-bezier(.2,.7,.3,1.2) backwards;
  animation-delay: calc(var(--i) * 75ms);
}
@keyframes wordIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-top .sub {
  max-width: 640px; margin: 0 auto 10px;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: #d8dde4;
}

/* center-stage composition */
.hero-stage {
  position: relative; height: 560px; max-width: 760px; margin: 0 auto;
  perspective: 1100px;
}
.hero-stage .orbit-ring { top: 50%; left: 50%; }
.hero-stage .robot-window { top: 50%; left: 50%; width: min(44%, 300px); margin: -160px 0 0 -150px; }
.hero-stage .tile { position: absolute; }
.hero-stage .ht-1 { bottom: 6%; left: 2%; }
.hero-stage .ht-2 { bottom: 10%; right: 2%; }
.hero-stage .ht-3 { top: 6%; left: 6%; }
.hero-stage .ht-4 { top: 3%; right: 6%; }

/* sonar pulse rings behind the window (rings, not glow blobs) */
.pulse-ring {
  position: absolute; top: 50%; left: 50%; width: 340px; height: 340px;
  margin: -170px 0 0 -170px; border-radius: 50%;
  border: 2px solid rgba(217, 164, 65, 0.55);
  animation: ringPulse 3.4s ease-out infinite;
}
.pr-2 { animation-delay: 1.7s; }
@keyframes ringPulse {
  0% { transform: scale(.82); opacity: .6; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* CTA attention pulse */
.btn-pulse { animation: ctaPulse 2.4s ease-out infinite; }
@keyframes ctaPulse {
  0% { box-shadow: 0 4px 14px rgba(217, 164, 65, 0.35), 0 0 0 0 rgba(217, 164, 65, 0.45); }
  70% { box-shadow: 0 4px 14px rgba(217, 164, 65, 0.35), 0 0 0 18px rgba(217, 164, 65, 0); }
  100% { box-shadow: 0 4px 14px rgba(217, 164, 65, 0.35), 0 0 0 0 rgba(217, 164, 65, 0); }
}

/* scroll hint */
.scroll-hint {
  margin: 34px auto 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(217, 164, 65, 0.6); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  animation: hintBounce 1.8s ease-in-out infinite;
}
@keyframes hintBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* version tag */
.site-version { margin-top: 14px; font-size: 0.72rem; letter-spacing: 0.14em; color: #4d6584; text-transform: uppercase; }

/* ---------- v6 responsive ---------- */
@media (max-width: 960px) {
  .hero-stage { height: 540px; max-width: 520px; }
  .hero-stage .robot-window { width: min(58%, 250px); margin-left: -125px; }
  .pulse-ring { width: 280px; height: 280px; margin: -140px 0 0 -140px; }
}
@media (max-width: 640px) {
  .hero-stage { height: 500px; }
  .hero-stage .ht-3 { left: 0; } .hero-stage .ht-4 { right: 0; }
  .hero-stage .ht-1 { left: 0; } .hero-stage .ht-2 { right: 0; }
  .hero-actions { display: flex; flex-direction: column; gap: 14px; align-items: center; }
  .hero-actions .btn.ghost { margin-left: 0; }
}

/* ---------- v6 reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-title .w { animation: none; opacity: 1; transform: none; }
  .pulse-ring, .btn-pulse, .scroll-hint { animation: none; }
  .pulse-ring { opacity: 0; }
}

/* ============================================================
   v7 — gold script accents in headline, FB-post mock visual,
   two-tile hero (owner directive overrides old no-gold-text ban)
   ============================================================ */

/* "agent" and "skills." — script font, gold, per owner request */
.hero-title .script-accent { color: var(--gold); font-size: 1.12em; }

/* two-tile stage: tiles flank the window lower-left / lower-right */
.hero-stage .ht-1 { top: auto; bottom: 4%; left: 4%; }
.hero-stage .ht-2 { top: auto; bottom: 8%; right: 4%; }
.hero-stage .tile { width: 210px; }

/* ---------- Facebook post mock (Harvest card visual) ---------- */
.media-mock {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #21456b 0%, var(--navy-deep) 100%);
}
.fb-post {
  background: var(--white); border-radius: 12px; width: 82%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); text-align: left;
  animation: fbFloat 6s ease-in-out infinite;
}
@keyframes fbFloat { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(-1deg); } }
.fb-head { display: flex; gap: 10px; align-items: center; padding: 14px 14px 8px; }
.fb-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--navy); color: var(--cream); font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.fb-name { font-weight: 700; color: #050505; font-size: 0.92rem; }
.fb-meta { font-size: 0.74rem; color: #65676b; }
.fb-text { padding: 2px 14px 12px; margin: 0; color: #050505; font-size: 0.93rem; line-height: 1.45; }
.fb-text .tag { color: #1877f2; font-weight: 600; }
.fb-actions {
  margin: 0 14px; padding: 8px 0 10px; border-top: 1px solid #e4e6eb;
  display: flex; gap: 20px; color: #65676b; font-size: 0.8rem;
}

/* ---------- v7 reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .fb-post { animation: none; }
}

/* ============================================================
   v8 — real testimonial shot, new FreedomAIOS logo
   ============================================================ */

/* real client screenshot, framed and gently floating */
.real-shot { width: 86%; max-width: 400px; text-align: center; }
.real-shot img {
  width: 100%; height: auto; border-radius: 10px; background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); border: 3px solid var(--white);
  animation: fbFloat 6s ease-in-out infinite;
}
.real-shot figcaption {
  margin-top: 12px; font-family: var(--serif); font-style: italic;
  font-size: 0.85rem; color: #9fb0c3;
}

/* new square FreedomAIOS logo in footer */
.foot-logo-v2 { height: 52px; border-radius: 10px; }

/* ============================================================
   v9 — before → after: real post in, branded card out
   ============================================================ */
.ba-label {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.ba-before { background: rgba(18, 42, 69, 0.9); color: var(--cream); border: 1px solid var(--gold); }
.ba-after { background: var(--gold); color: var(--navy-deep); }

.media-grid { position: relative; }
.ba-arrow {
  position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%);
  z-index: 4; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 900; color: var(--gold);
  background: var(--navy-deep); border: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(27, 58, 92, 0.35);
  animation: baNudge 2.4s ease-in-out infinite;
}
@keyframes baNudge {
  0%, 100% { transform: translate(-50%, -50%) translateX(0); }
  50% { transform: translate(-50%, -50%) translateX(7px); }
}
@media (max-width: 1000px) { .ba-arrow { display: none; } }

/* the after-card is 1080×1080 — show it whole, not cropped */
.media-top-square { aspect-ratio: 1 / 1; }

/* ============================================================
   v11 — full library: linked tiles, mod pack block,
   slide-in skill index with dotted leaders, hover prefixes
   ============================================================ */

/* hero tiles are real links now */
a.tile { text-decoration: none; color: inherit; cursor: pointer; }
a.tile:hover { border-color: var(--gold); }
a.tile:hover strong { color: var(--gold); }

/* nav index toggle */
.nav-idx {
  background: none; border: 1px solid var(--gold); color: var(--gold);
  font: inherit; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.nav-idx:hover { background: var(--gold); color: var(--navy-deep); }

/* card links reveal a mono "> " prefix on hover */
.card-link { position: relative; }
.card-link::before {
  content: "> "; font-family: Menlo, monospace; font-weight: 700;
  opacity: 0; margin-left: -1ch; transition: opacity .18s ease, margin .18s ease;
}
.card-link:hover::before { opacity: 1; margin-left: 0; }

/* standalone singles: icon-led media top */
.media-icon { display: flex; align-items: center; justify-content: center; }
.media-icon .big-icon { width: 128px; height: 128px; object-fit: contain; }

/* cascading rhythm: even cards sit lower on desktop */
@media (min-width: 1000px) {
  .singles-grid .media-card:nth-child(even) { margin-top: 34px; }
}

/* ---------- the mod pack block ---------- */
.pack-block {
  max-width: 1200px; margin-top: 56px; width: 100%;
  background: linear-gradient(160deg, #1b3a5c 0%, #122a45 70%);
  border: 1px solid rgba(217, 164, 65, 0.4); border-top: 5px solid var(--gold);
  border-radius: var(--radius); padding: 44px 46px 40px;
  box-shadow: 0 18px 46px rgba(18, 42, 69, 0.35);
}
.pack-head { display: flex; gap: 26px; align-items: flex-start; }
.pack-logo { width: 84px; height: 84px; flex-shrink: 0; }
.eyebrow-gold { color: var(--gold); }
.pack-title { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 6px 0 12px; }
.pack-lead { color: #c7d3e0; max-width: 62ch; line-height: 1.6; }
.pack-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin-top: 30px;
}
.pack-pill {
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(250, 250, 248, 0.06); border: 1px solid rgba(250, 250, 248, 0.14);
  border-radius: 12px; padding: 14px 18px; text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.pack-pill strong { color: var(--white); font-size: 1rem; letter-spacing: 0.01em; }
.pack-pill span { color: #9fb0c3; font-size: 0.85rem; }
.pack-pill:hover { border-color: var(--gold); background: rgba(217, 164, 65, 0.1); transform: translateY(-3px); }
.pack-pill:hover strong { color: var(--gold); }
.pack-foot { margin-top: 30px; text-align: center; }

/* ---------- slide-in skill index ---------- */
.idx-backdrop {
  position: fixed; inset: 0; background: rgba(18, 42, 69, 0.55);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 90;
}
.idx-panel {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(400px, 92vw);
  background: var(--gold); color: var(--navy-deep); z-index: 100;
  transform: translateX(105%); transition: transform .38s cubic-bezier(0.8, 0, 0.2, 1);
  overflow-y: auto; padding: 26px 28px 40px;
  box-shadow: -18px 0 50px rgba(18, 42, 69, 0.35);
}
body.idx-open .idx-panel { transform: translateX(0); }
body.idx-open .idx-backdrop { opacity: 1; pointer-events: auto; }
.idx-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.idx-head strong { font-size: 1.15rem; letter-spacing: 0.02em; }
.idx-close {
  background: none; border: 2px solid var(--navy-deep); border-radius: 50%;
  width: 34px; height: 34px; font-size: 1.2rem; font-weight: 800;
  color: var(--navy-deep); cursor: pointer; line-height: 1;
}
.idx-group {
  margin: 22px 0 8px; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75;
}
.idx-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 9px 2px; text-decoration: none; color: var(--navy-deep);
  font-weight: 700; font-size: 0.98rem;
}
.idx-row i { flex: 1; border-bottom: 2px dotted rgba(18, 42, 69, 0.45); transform: translateY(-3px); }
.idx-row em { font-style: normal; font-weight: 800; }
.idx-row:hover { background: rgba(250, 250, 248, 0.35); border-radius: 8px; }
.idx-row:hover em { transform: translate(2px, -2px); }
.idx-row em { transition: transform .18s ease; display: inline-block; }

@media (max-width: 720px) {
  .pack-block { padding: 30px 22px; }
  .pack-head { flex-direction: column; gap: 16px; }
}

/* ============================================================
   v12 — per-skill mini pages (first: Brief-Me) + feature card
   ============================================================ */

/* ---------- skill detail hero ---------- */
.skill-hero {
  background: linear-gradient(170deg, #1b3a5c 0%, #122a45 78%);
  border-bottom: 4px solid var(--gold);
  padding: 88px 5vw 96px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.skill-hero .eyebrow { margin-bottom: 14px; }
.skill-title {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.18; max-width: 21ch;
}
.skill-title .w { display: inline-block; animation: wordUp .55s both; animation-delay: calc(var(--i) * .05s); }
@keyframes wordUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.skill-sub {
  color: #c7d3e0; font-size: 1.12rem; line-height: 1.65;
  max-width: 66ch; margin-top: 22px;
}
.skill-sub code {
  font-family: Menlo, monospace; font-size: 0.95em;
  background: rgba(217, 164, 65, 0.16); color: var(--gold);
  padding: 2px 8px; border-radius: 6px;
}
.skill-art {
  margin-top: 44px; width: min(880px, 100%);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(217, 164, 65, 0.45);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}
.skill-hero .hero-actions { margin-top: 40px; }

/* flashing command in the terminal block */
.cmd-flash {
  font-family: Menlo, monospace; font-weight: 700; color: var(--gold);
  animation: cmdFlash 2.2s ease-in-out infinite;
}
@keyframes cmdFlash { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ---------- six voice cards ---------- */
.voice-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px; max-width: 1100px; width: 100%; margin-top: 38px;
}
.voice-card {
  background: var(--white); border-radius: var(--radius);
  padding: 26px 26px 24px; box-shadow: var(--shadow);
  border-top: 5px solid var(--tone, var(--gold));
  transition: transform .2s ease, box-shadow .2s ease;
}
.voice-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(27, 58, 92, 0.2); }
.tone-terra { --tone: #c9825d; }
.tone-sage  { --tone: #8ba888; }
.tone-slate { --tone: #7f96b8; }
.voice-card h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.35rem; color: var(--navy); }
.voice-lens {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--tone); margin: 6px 0 12px;
}
.voice-card p:last-child { color: var(--ink); font-size: 0.98rem; }

/* ---------- tight three-up rule cards (v13 — badges removed) ---------- */
.truth-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px; max-width: 1100px; width: 100%; margin-top: 38px;
}
.truth-card {
  background: var(--white); border-radius: var(--radius);
  padding: 26px 26px 24px; box-shadow: var(--shadow);
  border-left: 5px solid var(--gold);
}
.truth-card h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.3rem; color: var(--navy); margin-bottom: 10px;
}
.truth-card p { color: var(--ink); font-size: 0.98rem; }

/* ---------- feature card on the main page ---------- */
.feature-card {
  max-width: 1200px; width: 100%; margin-top: 56px;
  background: linear-gradient(160deg, #1b3a5c 0%, #122a45 70%);
  border: 1px solid rgba(217, 164, 65, 0.4); border-top: 5px solid var(--gold);
  border-radius: var(--radius); padding: 46px;
  box-shadow: 0 18px 46px rgba(18, 42, 69, 0.35);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center;
}
.feature-copy .eyebrow { margin-bottom: 8px; }
.feature-name { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--white); font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.feature-copy p { color: #c7d3e0; line-height: 1.65; max-width: 52ch; }
.feature-copy code {
  font-family: Menlo, monospace; font-size: 0.9em;
  background: rgba(217, 164, 65, 0.16); color: var(--gold);
  padding: 2px 7px; border-radius: 6px;
}
.feature-copy p + p { margin-top: 12px; }
.feature-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.feature-actions .ghost { border-color: rgba(250, 250, 248, 0.5); color: var(--cream); }
.feature-actions .ghost:hover { border-color: var(--gold); color: var(--gold); }
.feature-art {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(217, 164, 65, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  transition: transform .25s ease;
}
.feature-art:hover { transform: translateY(-5px) rotate(-0.5deg); }
@media (max-width: 900px) {
  .feature-card { grid-template-columns: 1fr; padding: 30px 24px; }
}

/* ============================================================
   v14 — full catalog: every skill gets a card with real output
   ============================================================ */
.pack-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px; margin-top: 30px;
}
.pack-card {
  background: rgba(250, 250, 248, 0.97);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pack-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35); }
.pc-art { display: block; aspect-ratio: 16 / 6.2; overflow: hidden; background: var(--cream); }
.pc-art img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pc-body { padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-body h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.22rem; color: var(--navy); }
.pc-body p { font-size: 0.9rem; color: var(--ink); flex: 1; }
.pc-links { display: flex; gap: 16px; margin-top: 8px; }
.pc-links a {
  font-size: 0.86rem; font-weight: 700; color: var(--navy);
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px;
}
.pc-links a:hover { color: var(--gold-dark); }

/* v15 — cohesive logo set across pages and cards; thumbs never cropped */
.skill-badge { width: 92px; height: 92px; margin-bottom: 20px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.4)); }
.pc-head { display: flex; align-items: center; gap: 10px; }
.pc-logo { width: 34px; height: 34px; border-radius: 8px; }
.pc-art img { object-fit: contain; }

/* v15 review fixes */
.skill-art img { width: 100%; height: auto; }

/* v16 — mobile hero: truly centered robots, balanced headline wrap */
.hero-title { text-wrap: balance; }
.skill-art figcaption {
  padding: 10px 16px; font-family: var(--serif); font-style: italic;
  font-size: 0.85rem; color: #9fb0c3; background: var(--navy-deep);
  border-top: 1px solid rgba(217, 164, 65, 0.35); text-align: center;
}
@media (max-width: 720px) {
  nav { flex-wrap: wrap; padding: 12px 4vw; }
  .nav-links { gap: 16px; font-size: 0.88rem; }
  .hero-top { padding: 10px 7vw 56px; }
  .hero-title { font-size: clamp(1.9rem, 8.6vw, 2.6rem); line-height: 1.18; max-width: 22ch; }
  .hero-top .sub { font-size: 1rem; line-height: 1.55; }
  .hero-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; height: auto; padding-bottom: 10px; }
  .hero-stage .tile { position: static !important; width: 100%; max-width: 340px; margin: 0 auto; }
  .hero-stage .robot-window {
    position: relative; top: auto; left: auto; right: auto;
    margin: 0 auto; width: min(76%, 260px);
  }
  .hero-stage .robot-window img { width: 100%; height: auto; display: block; }
  .ba-label { top: -12px; left: 12px; transform: none; }
}
@media (max-width: 720px) {
  .hero-stage .orbit-ring, .hero-stage .pulse-ring { display: none; }
  .hero-stage { perspective: none; }
  .hero-stage .tile { transform: none; animation: none; }
}

/* ============================================================
   v17 — room to breathe: uncropped before/after, the brief-page
   tone trio site-wide, bigger art and type
   ============================================================ */

/* the tone trio from the Brief-Me voice cards */
:root { --terra: #c9825d; --sage: #8ba888; --slate: #5f7b9e; } /* slate darkened for AA contrast on cream */

/* before/after: the frame grows to fit the art — nothing clips */
.media-top.media-mock { aspect-ratio: auto; padding: 40px 0; }
.media-top-square { aspect-ratio: auto; }
.media-top-square img { height: auto; object-fit: contain; display: block; }
/* the uncropped after-card must stay whole even on hover */
.media-card:hover .media-top-square img { transform: none; }
.real-shot { max-width: 440px; }
.real-shot figcaption { padding: 0 12px; }

/* tone trio cycling through card top borders */
.media-card:nth-child(4n+2) { border-top-color: var(--terra); }
.media-card:nth-child(4n+3) { border-top-color: var(--sage); }
.media-card:nth-child(4n+4) { border-top-color: var(--slate); }
.pack-card { border-top: 4px solid var(--gold); }
.pack-card:nth-child(3n+2) { border-top-color: var(--terra); }
.pack-card:nth-child(3n+3) { border-top-color: var(--sage); }
.pack-block .eyebrow, .feature-copy .eyebrow { color: var(--terra); }
.section-light:nth-of-type(even) .eyebrow { color: var(--slate); }

/* de-compact: taller art, larger logos and type, more air */
.pc-art { aspect-ratio: 16 / 7.6; background: var(--navy); }
.pc-art img { object-fit: contain; object-position: center; }
.pc-logo { width: 44px; height: 44px; }
.pc-body h4 { font-size: 1.35rem; }
.pc-body p { font-size: 0.96rem; }
.pack-cards { gap: 22px; margin-top: 36px; }
.media-icon .big-icon { width: 168px; height: 168px; }
.media-grid { gap: 32px; }
.media-body { padding: 28px 30px 32px; }
.media-body h3 { font-size: 1.55rem; }
.media-tag { font-size: 0.9rem; }
.quick-list li { font-size: 1rem; padding: 6px 0 6px 28px; }
.skill-logo { width: 56px; height: 56px; }

/* ============================================================
   v18 — mobile: nothing truncates. Terminal commands wrap in
   full on phones instead of clipping behind a scroll shadow.
   ============================================================ */
@media (max-width: 720px) {
  .term-body { font-size: 0.8rem; line-height: 1.8; overflow-x: visible; }
  .term-body p { white-space: pre-wrap; overflow-wrap: anywhere; }
  .term-body p + p { margin-top: 6px; }
}
