/*
Theme Name: RP Rahull Kashyap
Theme URI: https://example.com/
Author: RP Rahull Kashyap
Author URI: https://example.com/
Description: A custom WordPress theme for RP Rahull Kashyap — freelance digital marketer and AI-assisted growth trainer. Blue, black and white. Includes Home, About, Courses, Services and Contact templates, a WhatsApp enquiry form and a floating WhatsApp button.
Version: 1.5.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rpk
Tags: business, portfolio, one-column, custom-menu, blue, black, white
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --ink: #05070c;
  --panel: #0b1220;
  --panel-2: #111b2e;
  --blue: #1f6bff;
  --blue-deep: #0a2e7a;
  --sky: #7fb0ff;
  --white: #ffffff;
  --paper: #f5f7fb;
  --mute: #8f9cb3;
  --mute-dark: #5b6478;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(5, 7, 12, 0.12);

  --display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ==========================================================================
   3. Shared type utilities
   ========================================================================== */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px; background: var(--blue); display: inline-block;
}
.on-dark .eyebrow { color: var(--sky); }
.on-dark .eyebrow::before { background: var(--sky); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #3d4759; max-width: 62ch; }
.on-dark .lede { color: var(--mute); }

.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section--dark { background: var(--ink); color: var(--white); }
.section--panel { background: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 52px; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 26px;
  border: 2px solid var(--blue);
  background: var(--blue); color: #fff;
  border-radius: var(--radius);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
  cursor: pointer;
}
.btn:hover { background: #0b4fd6; border-color: #0b4fd6; text-decoration: none; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--blue); }
.on-dark .btn--ghost, .section--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }

/* ==========================================================================
   5. Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 7, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 74px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand a { color: #fff; text-decoration: none; }
.brand-name {
  font-family: var(--display);
  font-size: 1.16rem; font-weight: 700; letter-spacing: -0.02em;
}
.brand-name .dot { color: var(--blue); }
.brand-role {
  font-family: var(--mono);
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute); margin-top: 5px;
}
.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav a {
  color: #d7dde8; font-size: 0.9rem; font-weight: 500;
  padding: 6px 0; position: relative; text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--blue); transition: width 0.22s var(--ease);
}
.nav a:hover::after,
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after { width: 100%; }
.nav .current-menu-item > a, .nav .current_page_item > a { color: #fff; }
.header-cta { display: inline-flex; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-dark);
  border-radius: var(--radius); width: 44px; height: 40px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 74px;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
  }
  .nav.open { max-height: 420px; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 22px; }
  .nav li { border-bottom: 1px solid var(--line-dark); }
  .nav a { display: block; padding: 15px 0; font-size: 1rem; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
  background: var(--ink); color: #fff;
  padding: clamp(64px, 8vw, 108px) 0 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 460px at 82% 8%, rgba(31, 107, 255, 0.30), transparent 62%),
    radial-gradient(600px 400px at 4% 88%, rgba(10, 46, 122, 0.45), transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero-sub { color: #b9c4d6; font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 40px; }
.hero-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-stack figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
.hero-stack img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; filter: saturate(0.95); }
.hero-stack figure:first-child { grid-row: span 2; }
.hero-stack figure:first-child img { aspect-ratio: 3/5; }

/* Ticker */
.ticker {
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  margin-top: clamp(48px, 6vw, 80px); overflow: hidden; background: rgba(255,255,255,0.02);
}
.ticker-track {
  display: flex; gap: 56px; padding: 15px 0; width: max-content;
  animation: ticker 34s linear infinite;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute); white-space: nowrap;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; }
.ticker-track span::before { content: "◆"; color: var(--blue); font-size: 0.6rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ticker-track { animation-duration: 22s; }
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 92px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 420px at 88% 0%, rgba(31,107,255,0.28), transparent 62%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; }
.page-hero p { color: #b9c4d6; max-width: 60ch; }

/* ==========================================================================
   7. Ledger (signature element) — pricing rows
   ========================================================================== */
.ledger { border-top: 2px solid var(--blue); }
.ledger-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: baseline;
  padding: 22px 4px; border-bottom: 1px solid var(--line-light);
  transition: background 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.section--dark .ledger-row { border-bottom-color: var(--line-dark); }
.ledger-row:hover { background: rgba(31, 107, 255, 0.06); padding-left: 14px; }
.ledger-name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.ledger-note { display: block; font-family: var(--body); font-weight: 400; font-size: 0.88rem; color: #6a7488; margin-top: 5px; letter-spacing: 0; }
.section--dark .ledger-note { color: var(--mute); }
.ledger-was {
  font-family: var(--mono); font-size: 0.86rem; color: #8892a4;
  text-decoration: line-through; text-decoration-color: var(--blue); text-decoration-thickness: 2px;
}
.ledger-now { font-family: var(--mono); font-size: 1.06rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.section--dark .ledger-now { color: var(--sky); }
@media (max-width: 640px) {
  .ledger-row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .ledger-name { grid-column: 1 / -1; }
}

/* ==========================================================================
   8. Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 30px 26px; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(5,7,12,0.6); }
.card h3 { margin-bottom: 10px; }
.card p { color: #55607a; font-size: 0.96rem; margin-bottom: 0; }
.card-index {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--blue); display: block; margin-bottom: 16px;
}
.section--dark .card { background: var(--panel); border-color: var(--line-dark); }
.section--dark .card p { color: var(--mute); }

/* Pricing plan cards */
.plan {
  border: 1px solid var(--line-dark); background: var(--panel); border-radius: var(--radius);
  padding: 32px 26px; display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--blue); background: linear-gradient(180deg, rgba(31,107,255,0.14), rgba(11,18,32,1) 45%); }
.plan-tag {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 12px; display: block;
}
.plan-price { font-family: var(--display); font-size: 2.5rem; font-weight: 700; letter-spacing: -0.04em; color: #fff; }
.plan-price small { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--mute); display: block; margin-top: 6px; text-transform: uppercase; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; }
.plan li {
  display: grid; grid-template-columns: 1fr auto; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,0.12);
  font-size: 0.92rem; color: var(--mute);
}
.plan li b { color: #fff; font-family: var(--mono); font-size: 0.86rem; font-weight: 600; text-align: right; }
.plan .btn { margin-top: auto; justify-content: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.stat { background: var(--ink); padding: 28px 22px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: #fff; letter-spacing: -0.04em; line-height: 1; }
.stat span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); display: block; margin-top: 12px; }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   9. Gallery / testimonials
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.gallery img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3;
  transition: transform 0.5s var(--ease); 
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery .tall { grid-row: span 2; }
.gallery .tall img { aspect-ratio: 3/4; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery .wide { grid-column: span 2; } }

.tcard {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.tcard img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.tcard-body { padding: 24px 24px 26px; }
.tcard-body p { font-size: 0.98rem; color: #3d4759; }
.tcard-meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.quote-mark { font-family: var(--display); font-size: 2.4rem; color: var(--blue); line-height: 0.5; display: block; margin-bottom: 14px; }

/* ==========================================================================
   10. Split blocks
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr 0.9fr; }
.split figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.split img { width: 100%; object-fit: cover; }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 26px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 13px; font-size: 0.98rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 12px; border: 2px solid var(--blue); border-radius: 2px;
}
.section--dark .checklist li { color: #c8d1e0; }

/* ==========================================================================
   11. Projects
   ========================================================================== */
.project {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 4px; border-bottom: 1px solid var(--line-light);
  transition: padding-left 0.2s var(--ease), background 0.2s var(--ease);
}
.section--dark .project { border-bottom-color: var(--line-dark); }
.projects { border-top: 2px solid var(--blue); }
.project:hover { padding-left: 14px; background: rgba(31,107,255,0.06); }
.project-num { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--blue); }
.project h3 { margin: 0 0 6px; }
.project p { margin: 0; font-size: 0.93rem; color: #6a7488; }
.section--dark .project p { color: var(--mute); }
.project-link {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; border: 1px solid var(--line-light); padding: 10px 16px; border-radius: var(--radius);
  color: var(--ink); transition: 0.18s var(--ease);
}
.section--dark .project-link { border-color: var(--line-dark); color: #fff; }
.project-link:hover { background: var(--blue); border-color: var(--blue); color: #fff; text-decoration: none; }
@media (max-width: 720px) {
  .project { grid-template-columns: 1fr; gap: 10px; }
  .project-link { justify-self: start; }
}

/* ==========================================================================
   12. Tables (services comparison)
   ========================================================================== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.matrix { width: 100%; border-collapse: collapse; min-width: 640px; }
table.matrix th, table.matrix td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line-light); font-size: 0.94rem; }
.section--dark table.matrix th, .section--dark table.matrix td { border-bottom-color: var(--line-dark); }
table.matrix thead th {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); border-bottom: 2px solid var(--blue);
}
table.matrix tbody th { font-weight: 600; font-family: var(--body); }
table.matrix td { font-family: var(--mono); font-size: 0.88rem; }

/* ==========================================================================
   13. Contact form
   ========================================================================== */
.form-shell {
  background: var(--panel); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font-family: var(--body); font-size: 1rem;
  background: #060a13; color: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius);
  transition: border-color 0.18s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5b6478; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field select option { background: #0b1220; color: #fff; }
.field select optgroup { background: #060a13; color: var(--sky); font-family: var(--mono); }
.form-note { font-size: 0.83rem; color: var(--mute); margin: 16px 0 0; }
.form-error { color: #ff8f8f; font-size: 0.82rem; margin-top: 7px; display: none; }
.field.invalid .form-error { display: block; }
.field.invalid input, .field.invalid select { border-color: #ff8f8f; }
.form-submit { width: 100%; justify-content: center; }

.contact-cards { display: grid; gap: 14px; }
.contact-item {
  border: 1px solid var(--line-light); border-radius: var(--radius); padding: 20px 22px;
}
.contact-item span {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue);
  display: block; margin-bottom: 7px;
}
.contact-item strong { font-size: 1.05rem; font-weight: 600; }

/* ==========================================================================
   14. Footer + WhatsApp float
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--mute); padding: 72px 0 32px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.site-footer h4 {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c3ccdb; font-size: 0.94rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--display); font-size: 1.5rem; color: #fff; letter-spacing: -0.03em; margin-bottom: 12px; }
.footer-bottom {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 34px; } }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 28px -8px rgba(5, 7, 12, 0.55);
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { opacity: 0; }
}

/* ==========================================================================
   15. Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}

/* ==========================================================================
   16. Default WP content (page.php / posts)
   ========================================================================== */
.entry-content { max-width: 760px; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  border-left: 3px solid var(--blue); margin: 0 0 1.2em; padding-left: 20px; color: #3d4759;
}
.alignright { float: right; margin: 0 0 1em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.aligncenter { margin: 0 auto 1em; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute !important; word-wrap: normal !important;
}

/* ==========================================================================
   17. Inner page hero adjustments
   ========================================================================== */
.page-hero .eyebrow { color: var(--sky); }
.page-hero .eyebrow::before { background: var(--sky); }
.page-hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.page-hero .btn--ghost:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.quote-mark { line-height: 0.8; }
.form-shell h2 { margin-top: 0; }
.plan p { margin-bottom: 0; }
.tcard-body p:last-child { margin-bottom: 0; }
.card .checklist li { font-size: 0.94rem; }
.section--panel .card { background: #fff; }

/* ==========================================================================
   18. Hero form
   ========================================================================== */
.hero-grid { align-items: center; }
.hero-form { position: relative; z-index: 2; }
.form-title { color: #fff; font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin: 0 0 24px; }
.form-shell--compact { padding: 26px 24px 28px; border-color: rgba(127, 176, 255, 0.28); }
.form-shell--compact .form-title { font-size: clamp(1.25rem, 2.1vw, 1.55rem); margin-bottom: 20px; }
.form-shell--compact .field { margin-bottom: 15px; }
.form-shell--compact .field input,
.form-shell--compact .field select,
.form-shell--compact .field textarea { padding: 12px 14px; font-size: 0.95rem; }
.form-shell--compact .field textarea { min-height: 74px; }
.form-shell--compact .form-note { font-size: 0.78rem; }
@media (max-width: 900px) {
  .hero { padding-bottom: 0; }
  .hero .hero-actions { margin-bottom: 8px; }
}

/* ==========================================================================
   19. Text-only testimonials
   ========================================================================== */
.tcard--text { border-left: 3px solid var(--blue); }
.tcard--text .tcard-body { padding: 30px 26px 32px; }
.tcard--text .tcard-meta { margin-top: 16px; }

/* ==========================================================================
   20. Spec panel (about page)
   ========================================================================== */
.spec {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
}
.section--dark .spec { background: var(--panel); border-color: var(--line-dark); }
.spec-title {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--blue);
}
.spec-list { list-style: none; counter-reset: spec; padding: 0; margin: 0; }
.spec-list li {
  counter-increment: spec;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.95rem;
}
.spec-list li::before {
  content: counter(spec, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--blue);
  padding-top: 3px;
}
.spec-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
}
.spec-rows b { font-family: var(--body); font-weight: 600; font-size: 0.96rem; }
.spec-rows span { font-family: var(--mono); font-size: 0.78rem; color: #6a7488; text-align: right; }
.spec-list li:last-child, .spec-rows > div:last-child { border-bottom: 0; }
.spec-note { margin: 20px 0 0; font-size: 0.86rem; color: #6a7488; }
.section--dark .spec-list li, .section--dark .spec-rows > div { border-bottom-color: var(--line-dark); }
.section--dark .spec-rows span, .section--dark .spec-note { color: var(--mute); }

/* ==========================================================================
   21. Fixes: admin bar, uncropped images
   ========================================================================== */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
.header-inner { min-height: 74px; height: auto; padding: 14px 0; }

/* Images are never cropped — natural aspect ratio is preserved everywhere. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.gallery figure { background: transparent; border: 1px solid var(--line-light); }
.section--dark .gallery figure, .section--panel .gallery figure { border-color: var(--line-light); }
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}
.gallery .tall, .gallery .wide { grid-column: auto; grid-row: auto; }
.gallery .tall img, .gallery .wide img { aspect-ratio: auto; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

.split figure img, .entry-content img { width: 100%; height: auto; object-fit: contain; }

/* ==========================================================================
   22. Course syllabus
   ========================================================================== */
.course-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 2px solid var(--blue);
}
.course-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.section--dark .course-facts, .section--dark .course-facts > div { border-color: var(--line-dark); background: var(--panel); }
.course-facts > div { background: #fff; padding: 16px 18px; }
.section--panel .course-facts > div { background: var(--paper); }
.course-facts span {
  display: block; font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); margin-bottom: 7px;
}
.course-facts b { font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.02em; }

.course-outcome {
  font-size: 1.02rem;
  color: #3d4759;
  max-width: 78ch;
  border-left: 3px solid var(--blue);
  padding-left: 18px;
  margin-bottom: 40px;
}
.course-outcome b { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 6px; }

.syllabus { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .syllabus { grid-template-columns: 1fr; } }

.module {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  transition: border-color 0.2s var(--ease);
}
.section--panel .module { background: #fff; }
.section--dark .module { background: var(--panel); border-color: var(--line-dark); }
.module:hover { border-color: var(--blue); }
.module h3 {
  font-size: 1.06rem;
  line-height: 1.25;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-light);
}
.section--dark .module h3 { border-bottom-color: var(--line-dark); }
.module ul { list-style: none; padding: 0; margin: 0; }
.module li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #4a5468;
}
.section--dark .module li { color: var(--mute); }
.module li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px;
  border: 2px solid var(--blue);
  border-radius: 1px;
}
.module li:last-child { margin-bottom: 0; }
.module-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.module-head h3 { border-bottom: 0; padding-bottom: 0; margin-bottom: 10px; }
.module-price { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.module-note { font-size: 0.9rem; color: #6a7488; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-light); }
.module-note b { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.section--dark .module-note { color: var(--mute); border-bottom-color: var(--line-dark); }

.course-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.ledger-meta { font-family: var(--mono); font-size: 0.8rem; color: #8892a4; white-space: nowrap; }
.ledger-unit { font-family: var(--mono); font-size: 0.7rem; color: #6a7488; }

@media (max-width: 820px) {
  .course-head { grid-template-columns: 1fr; gap: 26px; align-items: start; }
}

/* ==========================================================================
   23. Metric cards (real numbers)
   ========================================================================== */
.metric-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.metric-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(5, 7, 12, 0.6); }
.section--dark .metric-card { background: var(--panel); border-color: var(--line-dark); border-top-color: var(--blue); }
.metric-source {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.metric-card h3 { font-size: 1.15rem; margin: 0 0 20px; }
.metric-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.metric-rows > div { background: #fff; padding: 16px 14px; }
.section--dark .metric-rows, .section--dark .metric-rows > div { background: var(--panel); border-color: var(--line-dark); }
.metric-rows b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric-rows span {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a7488;
  margin-top: 9px;
  line-height: 1.4;
}
.section--dark .metric-rows span { color: var(--mute); }
.metric-note { font-size: 0.9rem; color: #55607a; margin: 18px 0 0; }
.section--dark .metric-note { color: var(--mute); }
.module-note b + br { line-height: 1.8; }

/* ==========================================================================
   24. Gallery — masonry columns, nothing cropped, edges aligned
   ========================================================================== */
.gallery {
  display: block;
  column-count: 3;
  column-gap: 16px;
}
.gallery figure {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 16px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
}
.section--dark .gallery figure { border-color: var(--line-dark); }
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 560px) { .gallery { column-count: 1; } }

/* ==========================================================================
   25. Proof blocks — full screenshot, figures underneath
   ========================================================================== */
.proof {
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  margin-bottom: 28px;
}
.section--dark .proof { background: var(--panel); border-color: var(--line-dark); border-top-color: var(--blue); }
.proof:last-of-type { margin-bottom: 28px; }

.proof-shot { margin: 0; background: var(--paper); border-bottom: 1px solid var(--line-light); }
.proof-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}
.proof-body { padding: 26px 26px 24px; }
.proof-head { margin-bottom: 22px; }
.proof-source {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.proof-head h3 { font-size: 1.25rem; margin: 0 0 8px; }
.proof-range { font-family: var(--mono); font-size: 0.76rem; color: #6a7488; }
.section--dark .proof-range { color: var(--mute); }

.proof-rows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.proof-rows > div { background: #fff; padding: 20px 18px; }
.section--dark .proof-rows, .section--dark .proof-rows > div { background: var(--panel); border-color: var(--line-dark); }
.proof-rows b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.proof-rows span {
  display: block;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a7488;
  margin-top: 11px;
  line-height: 1.45;
}
.section--dark .proof-rows span { color: var(--mute); }
.proof-note { font-size: 0.95rem; color: #55607a; margin: 20px 0 0; max-width: 78ch; }
.section--dark .proof-note { color: var(--mute); }

@media (max-width: 720px) {
  .proof-rows { grid-template-columns: repeat(2, 1fr); }
  .proof-body { padding: 22px 20px 20px; }
}
