/*
Theme Name: AI Academy
Theme URI: https://ai-academy.co.il
Author: Guy Aga
Author URI: https://bestguy.ai
Description: AI Academy — dark editorial "Signal" theme. Practical generative-AI for organizations, creators and businesses. Rubik (HE) + Fraunces (EN), signal-red accent, abstract generative-tech visuals.
Version: 1.2.8
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: aiacademy
*/

/* ------------------------------------------------------------------
   Hebrew font system.
   WordPress prints <html lang="he-IL">, so the compiled build's
   html[lang='he'] rules never match. Re-assert them for he* here.
------------------------------------------------------------------ */
html[lang^="he"] {
  --font-display: 'Rubik', system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, sans-serif;
}
html[lang^="he"] body {
  font-family: 'Rubik', system-ui, sans-serif;
}
html[lang^="he"] .eyebrow {
  font-family: 'Rubik', sans-serif;
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 500;
}
html[lang^="he"] .drama {
  font-style: normal;
  font-weight: 800;
}

/* Scroll reveal — replaces the React (framer-motion) whileInView behaviour */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

#wpadminbar {
  z-index: 2147483646;
}

/* ------------------------------------------------------------------
   Contact form (scoped) — utilities the compiled build doesn't ship.
------------------------------------------------------------------ */
.aia-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: #b8b4ab;
  font-family: 'Rubik', system-ui, sans-serif;
}
.aia-form input,
.aia-form textarea {
  width: 100%;
  background: #16161a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2efe8;
  border-radius: 1rem;
  padding: 0.8rem 1.05rem;
  font-size: 1rem;
  font-family: 'Rubik', system-ui, sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.aia-form input::placeholder,
.aia-form textarea::placeholder {
  color: #8c877e;
}
.aia-form input:focus,
.aia-form textarea:focus {
  outline: none;
  border-color: #e63b2e;
  box-shadow: 0 0 0 3px rgba(230, 59, 46, 0.16);
}
.aia-form textarea {
  resize: vertical;
  min-height: 8rem;
}
.aia-form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .aia-form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.aia-form button {
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 9999px;
  background: linear-gradient(180deg, #e63b2e, #c2382e);
  color: #0e0e10;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 1.5rem;
  font-family: 'Rubik', system-ui, sans-serif;
  box-shadow: 0 18px 50px -20px rgba(230, 59, 46, 0.6);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.aia-form button:hover {
  transform: translateY(-2px) scale(1.01);
}
.aia-form button:active {
  transform: scale(0.98);
}
.aia-form-ok,
.aia-form-err {
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  text-align: center;
  font-family: 'Rubik', system-ui, sans-serif;
}
.aia-form-ok {
  background: rgba(91, 214, 160, 0.1);
  border: 1px solid rgba(91, 214, 160, 0.3);
  color: #e9fbf2;
}
.aia-form-err {
  background: rgba(230, 59, 46, 0.09);
  border: 1px solid rgba(230, 59, 46, 0.3);
  color: #f7d9d4;
  margin-bottom: 1.25rem;
}

/* ------------------------------------------------------------------
   Prose — readable long-form content (legal, articles) via page.php.
------------------------------------------------------------------ */
.aia-prose h2 {
  color: #f2efe8;
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 2.4rem 0 0.9rem;
}
.aia-prose h3 {
  color: #f2efe8;
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 1.8rem 0 0.6rem;
}
.aia-prose p { margin: 0 0 1.1rem; }
.aia-prose a { color: #e8836a; text-decoration: underline; text-underline-offset: 3px; }
.aia-prose a:hover { color: #ff8f6f; }
.aia-prose ul,
.aia-prose ol { margin: 0 0 1.2rem; padding-inline-start: 1.4rem; }
.aia-prose li { margin: 0.35rem 0; }
.aia-prose ul li { list-style: disc; }
.aia-prose ol li { list-style: decimal; }
.aia-prose strong { color: #f2efe8; font-weight: 600; }
.aia-prose hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 2rem 0; }
.aia-prose :first-child { margin-top: 0; }

/* ------------------------------------------------------------------
   Home hero — full-screen video + kinetic title.
------------------------------------------------------------------ */
.aia-home-hero-media { position: absolute; left: 0; right: 0; top: -15%; height: 130%; z-index: 0; }
.aia-home-hero-poster, .aia-home-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 26% 50%; }
.aia-home-hero-poster { z-index: 0; }
.aia-home-hero-video { z-index: 1; }
@media (max-width: 767px) { .aia-home-hero-video { display: none; } }
@media (prefers-reduced-motion: reduce) { .aia-home-hero-video { display: none; } }

/* ------------------------------------------------------------------
   Tools hub — categorized tool cards.
------------------------------------------------------------------ */
.aia-tools-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .aia-tools-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .aia-tools-grid { grid-template-columns: repeat(3, 1fr); } }
.aia-tool { display: flex; flex-direction: column; height: 100%; padding: 1.4rem 1.5rem; border-radius: 1.4rem; border: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, rgba(31, 31, 36, 0.5), rgba(22, 22, 26, 0.6)); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s; }
.aia-tool:hover { transform: translateY(-4px); border-color: rgba(230, 59, 46, 0.4); }
.aia-tool-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.aia-tool-name { font-family: 'Rubik', system-ui, sans-serif; font-weight: 700; color: #f2efe8; font-size: 1.15rem; }
.aia-tool-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: #e63b2e; border: 1px solid rgba(230, 59, 46, 0.3); border-radius: 9999px; padding: 0.2rem 0.55rem; white-space: nowrap; }
.aia-tool-desc { color: #8c877e; font-size: 0.93rem; line-height: 1.6; margin: 0.7rem 0 1rem; flex: 1; }
.aia-tool-link { color: #e8836a; font-size: 0.9rem; font-weight: 600; transition: color 0.3s; }
.aia-tool:hover .aia-tool-link { color: #ff8f6f; }

/* ------------------------------------------------------------------
   Video hero (animated background) — reusable across page heroes.
------------------------------------------------------------------ */
.aia-vhero { position: relative; width: 100%; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; background: #0b0b0d; }
@media (min-width: 768px) { .aia-vhero { min-height: 80vh; } }
.aia-vhero-media { position: absolute; inset: 0; z-index: 0; }
.aia-vhero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.aia-vhero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.aia-vhero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, #0e0e10 2%, rgba(14,14,16,0.82) 30%, rgba(14,14,16,0.3) 60%, rgba(14,14,16,0.12) 80%, rgba(14,14,16,0.5) 100%); }
.aia-vhero-inner { position: relative; z-index: 3; width: 100%; padding-top: 8rem; padding-bottom: 3.5rem; }
@media (min-width: 768px) { .aia-vhero-inner { padding-bottom: 5rem; } }
.aia-vhero-title { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; text-shadow: 0 2px 40px rgba(0,0,0,0.45); }
.aia-vhero-sub { color: #e6e2d9; text-shadow: 0 1px 20px rgba(0,0,0,0.4); }
/* Mobile + reduced-motion: show the still poster, skip the video */
@media (max-width: 767px) { .aia-vhero-video { display: none; } }
@media (prefers-reduced-motion: reduce) { .aia-vhero-video { display: none; } }

/* ------------------------------------------------------------------
   Stats strip — instrument-panel numbers.
------------------------------------------------------------------ */
.aia-stats { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid rgba(255, 255, 255, 0.08); }
@media (min-width: 900px) { .aia-stats { grid-template-columns: repeat(4, 1fr); } }
.aia-stat { padding: 1.7rem 1.4rem; border-inline-start: 1px solid rgba(255, 255, 255, 0.06); }
.aia-stat:first-child { border-inline-start: 0; }
@media (max-width: 899px) { .aia-stat:nth-child(3) { border-inline-start: 0; } .aia-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.06); } }
.aia-stat-n { display: block; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 2.3rem; line-height: 1; color: #e63b2e; letter-spacing: -0.02em; }
.aia-stat-l { display: block; margin-top: 0.6rem; color: #8c877e; font-size: 0.9rem; line-height: 1.45; }

/* ------------------------------------------------------------------
   Subscribe / waitlist.
------------------------------------------------------------------ */
.aia-sub { position: relative; overflow: hidden; border-radius: 2rem; border: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, rgba(31, 31, 36, 0.55), rgba(22, 22, 26, 0.7)); padding: 2.25rem 1.75rem; }
@media (min-width: 900px) { .aia-sub { padding: 3rem; } }
.aia-sub-glow { position: absolute; inset: auto -12% -55% -12%; height: 90%; background: radial-gradient(closest-side, rgba(230, 59, 46, 0.16), transparent); filter: blur(30px); pointer-events: none; }
.aia-sub-inner { position: relative; display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 900px) { .aia-sub-inner { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }
.aia-sub-title { font-family: 'Rubik', system-ui, sans-serif; font-weight: 700; color: #f2efe8; font-size: 1.65rem; line-height: 1.2; }
.aia-sub-sub { color: #8c877e; margin-top: 0.7rem; line-height: 1.65; max-width: 46ch; }
.aia-sub-form { position: relative; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.aia-sub-form input[type="email"] { flex: 1 1 220px; background: #101013; border: 1px solid rgba(255, 255, 255, 0.12); color: #f2efe8; border-radius: 9999px; padding: 0.85rem 1.3rem; font-size: 1rem; font-family: 'JetBrains Mono', monospace; transition: border-color 0.3s, box-shadow 0.3s; }
.aia-sub-form input[type="email"]::placeholder { color: #6f6a62; }
.aia-sub-form input[type="email"]:focus { outline: none; border-color: #e63b2e; box-shadow: 0 0 0 3px rgba(230, 59, 46, 0.15); }
.aia-sub-form button { border: 0; cursor: pointer; border-radius: 9999px; background: linear-gradient(180deg, #e63b2e, #c2382e); color: #0e0e10; font-weight: 700; font-size: 1rem; padding: 0.85rem 1.8rem; font-family: 'Rubik', system-ui, sans-serif; box-shadow: 0 18px 50px -20px rgba(230, 59, 46, 0.6); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.aia-sub-form button:hover { transform: translateY(-2px) scale(1.02); }
.aia-sub-form button:active { transform: scale(0.98); }
.aia-sub-err { color: #f7d9d4; font-size: 0.88rem; margin-top: 0.6rem; }

/* ------------------------------------------------------------------
   Course sales page — outcomes, syllabus, who, instructor, FAQ, enroll.
------------------------------------------------------------------ */
.aia-outcomes { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .aia-outcomes { grid-template-columns: repeat(3, 1fr); } }
.aia-outcome { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 1.5rem; padding: 1.6rem 1.5rem; background: linear-gradient(180deg, rgba(31, 31, 36, 0.5), rgba(22, 22, 26, 0.6)); }
.aia-outcome-n { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 0.2em; color: #e63b2e; }
.aia-outcome p { color: #cfcabf; margin-top: 0.7rem; line-height: 1.6; }

.aia-syllabus { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid rgba(255, 255, 255, 0.08); }
@media (min-width: 900px) { .aia-syllabus { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; } }
.aia-day { display: flex; gap: 1.3rem; align-items: flex-start; padding: 1.35rem 0.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.aia-day-n { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.18em; color: #e63b2e; white-space: nowrap; padding-top: 0.35rem; }
.aia-day-t { font-family: 'Rubik', system-ui, sans-serif; font-weight: 700; color: #f2efe8; font-size: 1.1rem; }
.aia-day-d { color: #8c877e; font-size: 0.93rem; line-height: 1.6; margin-top: 0.3rem; }

.aia-who { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .aia-who { grid-template-columns: repeat(3, 1fr); } }
.aia-who-card { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 1.5rem; padding: 1.6rem 1.5rem; background: rgba(22, 22, 26, 0.5); transition: border-color 0.3s, transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.aia-who-card:hover { border-color: rgba(230, 59, 46, 0.35); transform: translateY(-3px); }
.aia-who-card h3 { font-family: 'Rubik', system-ui, sans-serif; font-weight: 700; color: #f2efe8; font-size: 1.08rem; }
.aia-who-card p { color: #8c877e; margin-top: 0.5rem; line-height: 1.6; font-size: 0.95rem; }

.aia-instructor { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 2rem; padding: 2rem; background: linear-gradient(180deg, rgba(31, 31, 36, 0.5), rgba(22, 22, 26, 0.6)); }
.aia-instructor-img { width: 130px; height: 130px; border-radius: 1.5rem; object-fit: cover; border: 1px solid rgba(230, 59, 46, 0.35); background: #141418; flex-shrink: 0; }

.aia-faq { max-width: 760px; }
.aia-faq details { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 1.1rem; background: rgba(22, 22, 26, 0.5); margin-bottom: 0.7rem; overflow: hidden; }
.aia-faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.35rem; color: #f2efe8; font-weight: 600; font-family: 'Rubik', system-ui, sans-serif; position: relative; transition: color 0.3s; }
.aia-faq summary::-webkit-details-marker { display: none; }
.aia-faq summary::after { content: "+"; position: absolute; inset-inline-end: 1.25rem; top: 50%; transform: translateY(-50%); color: #e63b2e; font-size: 1.3rem; font-weight: 400; transition: transform 0.3s; }
.aia-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.aia-faq details p { padding: 0 1.35rem 1.2rem; color: #b8b4ab; line-height: 1.65; margin: 0; }
.aia-faq details a { color: #e8836a; text-decoration: underline; text-underline-offset: 3px; }

.aia-enroll { position: relative; overflow: hidden; text-align: center; border: 1px solid rgba(230, 59, 46, 0.25); border-radius: 2.5rem; padding: 3.5rem 1.75rem; background: linear-gradient(180deg, rgba(31, 31, 36, 0.6), rgba(22, 22, 26, 0.75)); }
@media (min-width: 900px) { .aia-enroll { padding: 4.5rem 3rem; } }
.aia-enroll-glow { position: absolute; inset: auto -15% -60% -15%; height: 100%; background: radial-gradient(closest-side, rgba(230, 59, 46, 0.2), transparent); filter: blur(40px); pointer-events: none; }
.aia-enroll .aia-sub-form { justify-content: center; }

/* ------------------------------------------------------------------
   Services page — visual split hero, zigzag showcase, process strip.
------------------------------------------------------------------ */
.aia-shero { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .aia-shero { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; } }
.aia-shero-media {
  position: relative; border-radius: 2rem; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08); background: #141418;
  aspect-ratio: 5 / 4; isolation: isolate;
}
@media (min-width: 900px) { .aia-shero-media { aspect-ratio: 4 / 5; max-height: 540px; margin-inline-start: auto; } }
.aia-shero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.aia-shero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 14, 16, 0.55), transparent 50%); pointer-events: none; }
.aia-shero-glow { position: absolute; inset: auto -10% -20% -10%; height: 55%; background: radial-gradient(closest-side, rgba(230, 59, 46, 0.25), transparent); filter: blur(40px); pointer-events: none; z-index: -1; }

.aia-svc { display: flex; flex-direction: column; gap: 2.75rem; }
@media (min-width: 900px) { .aia-svc { gap: 4.75rem; } }
.aia-svc-row { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 900px) {
  .aia-svc-row { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .aia-svc-row:nth-child(even) .aia-svc-media { order: 2; }
}
.aia-svc-media {
  position: relative; border-radius: 1.75rem; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08); background: #141418;
  aspect-ratio: 5 / 4; isolation: isolate;
}
.aia-svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.aia-svc-row:hover .aia-svc-media img { transform: scale(1.04); }
.aia-svc-media::after { content: ""; position: absolute; inset: auto -18% -28% auto; width: 62%; height: 62%; background: radial-gradient(closest-side, rgba(230, 59, 46, 0.32), transparent); filter: blur(28px); pointer-events: none; }
.aia-svc-num { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em; color: #e63b2e; }
.aia-svc-title { font-family: 'Rubik', sans-serif; font-weight: 700; color: #f2efe8; font-size: 1.85rem; line-height: 1.12; margin: 0.55rem 0 0.9rem; }
@media (min-width: 900px) { .aia-svc-title { font-size: 2.25rem; } }
.aia-svc-desc { color: #b8b4ab; line-height: 1.7; max-width: 52ch; }
.aia-svc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.aia-svc-chip { font-size: 0.82rem; color: #cfcabf; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); border-radius: 9999px; padding: 0.35rem 0.85rem; }
.aia-svc-cta { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.6rem; color: #f2efe8; font-weight: 600; transition: color 0.3s; }
.aia-svc-cta:hover { color: #e63b2e; }
.aia-svc-cta svg { transition: transform 0.3s; }
.aia-svc-cta:hover svg { transform: translateX(-5px); }

.aia-proc { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .aia-proc { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .aia-proc { grid-template-columns: repeat(4, 1fr); } }
.aia-proc-step { position: relative; border: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, rgba(31, 31, 36, 0.5), rgba(22, 22, 26, 0.6)); border-radius: 1.5rem; padding: 1.6rem 1.5rem; overflow: hidden; }
.aia-proc-num { font-family: 'JetBrains Mono', monospace; font-size: 1.9rem; font-weight: 700; color: rgba(230, 59, 46, 0.9); line-height: 1; }
.aia-proc-title { font-family: 'Rubik', sans-serif; font-weight: 700; color: #f2efe8; margin: 0.7rem 0 0.4rem; font-size: 1.08rem; }
.aia-proc-desc { color: #8c877e; font-size: 0.92rem; line-height: 1.6; }

/* ------------------------------------------------------------------
   Blog — index grid, post cards, single post.
------------------------------------------------------------------ */
.aia-blog-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .aia-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .aia-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.aia-post-card-link {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(31, 31, 36, 0.5), rgba(22, 22, 26, 0.6));
  border-radius: 1.5rem; overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.aia-post-card-link:hover { transform: translateY(-5px); border-color: rgba(230, 59, 46, 0.4); }
.aia-post-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #141418; }
.aia-post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.aia-post-card-link:hover .aia-post-card-media img { transform: scale(1.05); }
.aia-post-card-ph { width: 100%; height: 100%; background: radial-gradient(closest-side, rgba(230, 59, 46, 0.2), #141418); }
.aia-post-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.aia-post-cat {
  align-self: flex-start; font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #e63b2e;
  border: 1px solid rgba(230, 59, 46, 0.3); border-radius: 9999px; padding: 0.2rem 0.65rem;
  transition: background 0.3s;
}
a.aia-post-cat:hover { background: rgba(230, 59, 46, 0.12); }
.aia-post-card-title { font-family: 'Rubik', sans-serif; font-weight: 700; color: #f2efe8; font-size: 1.15rem; line-height: 1.3; }
.aia-post-card-ex { color: #8c877e; font-size: 0.92rem; line-height: 1.6; flex: 1; }
.aia-post-card-meta { color: #6f6a62; font-size: 0.8rem; font-family: 'JetBrains Mono', monospace; }

/* magazine index — featured lead story + category sections */
.aia-feat { position: relative; display: block; border-radius: 2rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); aspect-ratio: 16 / 9; min-height: 360px; background: #141418; }
.aia-feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.aia-feat:hover img { transform: scale(1.03); }
.aia-feat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,14,16,0.95) 4%, rgba(14,14,16,0.5) 42%, rgba(14,14,16,0.05) 75%); }
.aia-feat-inner { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 1.75rem; }
@media (min-width: 768px) { .aia-feat-inner { padding: 2.75rem; } }
.aia-feat-title { font-family: 'Rubik', system-ui, sans-serif; font-weight: 700; color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.75rem); line-height: 1.08; margin-top: 0.7rem; max-width: 20ch; text-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.aia-feat-ex { color: #d8d3c9; margin-top: 0.85rem; max-width: 58ch; line-height: 1.6; }
.aia-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 0.85rem; }
.aia-cat-head h2 { font-family: 'Rubik', system-ui, sans-serif; font-weight: 700; color: #f2efe8; font-size: 1.5rem; }
.aia-cat-head a { color: #8c877e; font-size: 0.9rem; white-space: nowrap; transition: color 0.3s; }
.aia-cat-head a:hover { color: #e63b2e; }
.aia-single-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.aia-single-date { color: #8c877e; font-size: 0.9rem; font-family: 'JetBrains Mono', monospace; }
.aia-single-hero { border-radius: 2rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); aspect-ratio: 16 / 9; background: #141418; }
.aia-single-hero img { width: 100%; height: 100%; object-fit: cover; }
.aia-single .aia-prose img { border-radius: 1rem; margin: 1.5rem 0; }
.navigation.pagination .nav-links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.navigation.pagination a, .navigation.pagination span {
  padding: 0.5rem 0.95rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b8b4ab; font-size: 0.9rem; transition: border-color 0.3s, color 0.3s;
}
.navigation.pagination a:hover { border-color: rgba(230, 59, 46, 0.5); color: #f2efe8; }
.navigation.pagination .current { background: #e63b2e; color: #0e0e10; border-color: #e63b2e; font-weight: 600; }

/* ------------------------------------------------------------------
   Single post — reading bar, lead, figures, quotes, embeds, share, author.
------------------------------------------------------------------ */
.aia-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 55; background: transparent; }
.aia-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e63b2e, #ff7a5c); box-shadow: 0 0 12px rgba(230, 59, 46, 0.6); transition: width 0.1s linear; }
.aia-single-meta { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.aia-single-dot { color: #4f4a44; }
.aia-single-rt { color: #8c877e; font-size: 0.9rem; font-family: 'JetBrains Mono', monospace; }
.aia-single-lead { color: #cfcabf; font-size: 1.3rem; line-height: 1.55; font-weight: 400; }

/* cinematic full-bleed post hero */
.aia-hero-full { position: relative; width: 100%; min-height: 60vh; display: flex; align-items: flex-end; overflow: hidden; background: #0b0b0d; }
@media (min-width: 768px) { .aia-hero-full { min-height: 72vh; } }
.aia-hero-full-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.aia-hero-full-img { position: absolute; left: 0; right: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; object-position: center; will-change: transform; }
.aia-hero-full::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, #0e0e10 0%, rgba(14,14,16,0.94) 24%, rgba(14,14,16,0.5) 54%, rgba(14,14,16,0.12) 80%, rgba(14,14,16,0.55) 100%); }
.aia-hero-full-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 3rem; }
@media (min-width: 768px) { .aia-hero-full-inner { padding-bottom: 4.75rem; } }

/* hero content block */
.aia-hero-block { max-width: 880px; }
.aia-hero-kicker { margin-bottom: 1.15rem; }
.aia-hero-full-title { font-family: 'Rubik', system-ui, sans-serif; font-weight: 700; color: #fff; letter-spacing: -0.015em; line-height: 1.03; font-size: clamp(2.2rem, 5.2vw, 3.85rem); text-shadow: 0 2px 40px rgba(0,0,0,0.45); margin: 0; }
.aia-hero-block--plain .aia-hero-full-title { color: #f2efe8; text-shadow: none; }
.aia-hero-deck { color: #e6e2d9; font-size: clamp(1.12rem, 1.9vw, 1.4rem); line-height: 1.5; font-weight: 400; max-width: 60ch; margin: 1.15rem 0 0; text-shadow: 0 1px 20px rgba(0,0,0,0.4); }
.aia-hero-block--plain .aia-hero-deck { color: #cfcabf; text-shadow: none; }
.aia-byline { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.9rem; }
.aia-byline-avatar { width: 48px; height: 48px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; border: 1.5px solid rgba(230,59,46,0.55); background: #141418; }
.aia-byline-text { display: flex; flex-direction: column; line-height: 1.35; }
.aia-byline-name { color: #f6f4ef; font-weight: 600; font-size: 0.98rem; }
.aia-byline-meta { color: #cfcabf; font-size: 0.8rem; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }

/* rich content inside .aia-prose (posts) */
.aia-prose figure { margin: 2.25rem 0; }
.aia-prose figure img, .aia-prose > img { width: 100%; border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.08); display: block; }
.aia-prose figcaption { margin-top: 0.7rem; text-align: center; color: #8c877e; font-size: 0.86rem; line-height: 1.5; }
.aia-prose blockquote {
  margin: 2rem 0; padding: 0.4rem 0 0.4rem 1.4rem; border-inline-start: 3px solid #e63b2e;
  color: #f2efe8; font-family: 'Rubik', sans-serif; font-size: 1.35rem; line-height: 1.5; font-weight: 500;
}
.aia-prose blockquote p { margin: 0; }
.aia-callout {
  margin: 2rem 0; padding: 1.3rem 1.5rem; border-radius: 1.25rem;
  border: 1px solid rgba(230, 59, 46, 0.28); background: rgba(230, 59, 46, 0.07); color: #f2efe8;
}
.aia-callout strong { color: #ff8f6f; }
/* article boxes — TL;DR, try-today, prompt, sources */
.aia-box-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #e63b2e; margin-bottom: 0.7rem; }
.aia-tldr { margin: 0 0 2.2rem; padding: 1.35rem 1.5rem; border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.1); background: linear-gradient(180deg, rgba(31, 31, 36, 0.6), rgba(22, 22, 26, 0.7)); }
.aia-tldr ul { margin: 0; padding-inline-start: 1.2rem; }
.aia-tldr li { margin: 0.4rem 0; color: #cfcabf; list-style: disc; }
.aia-try { margin: 2.4rem 0; padding: 1.5rem 1.6rem; border-radius: 1.25rem; border: 1px solid rgba(230, 59, 46, 0.35); background: rgba(230, 59, 46, 0.07); }
.aia-try p { color: #e6e2d9; margin: 0 0 0.6rem; }
.aia-prompt { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; line-height: 1.6; color: #f2efe8; background: #101013; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.9rem; padding: 1rem 1.2rem; overflow-x: auto; white-space: pre-wrap; unicode-bidi: plaintext; text-align: start; margin: 0.9rem 0 0; }
.aia-sources { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.aia-sources ul { list-style: none; padding: 0; margin: 0; }
.aia-sources li { margin: 0.35rem 0; font-size: 0.9rem; padding: 0; }
.aia-sources li::before { display: none; }
.aia-sources a { color: #8c877e; text-decoration: none; }
.aia-sources a:hover { color: #e8836a; }

.aia-embed { position: relative; width: 100%; margin: 2.25rem 0; border-radius: 1.25rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); background: #000; aspect-ratio: 16 / 9; }
.aia-embed iframe, .aia-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aia-embed-native { margin: 2.25rem 0; border-radius: 1.25rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); background: #000; }
.aia-embed-native video { width: 100%; display: block; }
.aia-prose .instagram-media { margin: 2.25rem auto !important; }

/* share row */
.aia-share { display: flex; align-items: center; gap: 0.6rem; }
.aia-share-label { color: #8c877e; font-size: 0.85rem; margin-inline-end: 0.3rem; }
.aia-share-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); color: #b8b4ab;
  transition: transform 0.25s, border-color 0.25s, color 0.25s, background 0.25s;
}
.aia-share-btn:hover { color: #f2efe8; border-color: rgba(230, 59, 46, 0.5); transform: translateY(-2px); }
.aia-share-btn.is-copied { color: #0e0e10; background: #e63b2e; border-color: #e63b2e; }

/* author card */
.aia-author { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.5rem; border-radius: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, rgba(31, 31, 36, 0.5), rgba(22, 22, 26, 0.6)); }
.aia-author-img { width: 64px; height: 64px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(230, 59, 46, 0.3); background: #141418; }
.aia-author-name { font-family: 'Rubik', sans-serif; font-weight: 700; color: #f2efe8; font-size: 1.05rem; }
.aia-author-bio { color: #8c877e; font-size: 0.92rem; line-height: 1.6; margin: 0.35rem 0 0.6rem; }
.aia-author-link { color: #e8836a; font-size: 0.9rem; }
.aia-author-link:hover { color: #ff8f6f; }

/* ------------------------------------------------------------------
   Editorial article layout — asymmetric grid, sticky TOC + share rail.
------------------------------------------------------------------ */
.aia-article-grid { display: block; }
@media (min-width: 1024px) {
  .aia-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 3.5rem; align-items: start; }
}
.aia-article-main { min-width: 0; }
.aia-article-main .aia-prose { max-width: 730px; }
.aia-article-main .aia-prose > p:first-of-type { font-size: 1.24rem; line-height: 1.72; color: #d3cec4; }

/* redesigned pull-quote */
.aia-prose blockquote {
  position: relative; margin: 2.6rem 0; padding: 0.3rem 2.2rem 0.3rem 0; border: 0;
  font-family: 'Rubik', system-ui, sans-serif; font-size: 1.55rem; line-height: 1.42; font-weight: 500; color: #f6f4ef;
}
.aia-prose blockquote::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.4rem; bottom: 0.4rem; width: 3px; border-radius: 3px;
  background: linear-gradient(#e63b2e, rgba(230, 59, 46, 0.2));
}
.aia-prose blockquote p { margin: 0; }

/* sticky rail */
.aia-article-rail { display: none; }
@media (min-width: 1024px) { .aia-article-rail { display: block; } }
.aia-rail-sticky { position: sticky; top: 108px; }
.aia-toc-label, .aia-rail-share .aia-share-label {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #6f6a62; margin-bottom: 0.9rem;
}
.aia-toc { display: flex; flex-direction: column; gap: 0.1rem; max-height: 62vh; overflow-y: auto; }
.aia-toc a { display: block; padding: 0.4rem 0 0.4rem 0.9rem; border-inline-start: 2px solid rgba(255, 255, 255, 0.1); color: #8c877e; font-size: 0.9rem; line-height: 1.4; transition: color 0.3s, border-color 0.3s; }
.aia-toc a:hover { color: #cfcabf; }
.aia-toc a.is-active { color: #f2efe8; border-inline-start-color: #e63b2e; }
.aia-rail-share { margin-top: 2.25rem; }
.aia-share-vert { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.aia-share-h { margin-top: 3rem; }
@media (min-width: 1024px) { .aia-share-h { display: none; } }
.aia-article-main .aia-author { margin-top: 3rem; }
.aia-article-back { margin-top: 2rem; }

/* ---- Offerings bento ("what we can do together") ---- */
.aia-offers { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 860px) {
  .aia-offers { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 1.25rem; }
}
.aia-offer {
  position: relative; display: flex; flex-direction: column;
  border-radius: 1.9rem; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, #17171b, #121216);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.5s;
}
.aia-offer:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.16); box-shadow: 0 40px 80px -46px rgba(0, 0, 0, 0.9); }
.aia-offer::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(230, 59, 46, 0.16), transparent 62%);
  opacity: 0; transition: opacity 0.4s;
}
.aia-offer:hover::before { opacity: 1; }
.aia-offer-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0e0e10; }
.aia-offer-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.aia-offer:hover .aia-offer-media img { transform: scale(1.06); }
.aia-offer-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 18, 22, 0) 44%, rgba(18, 18, 22, 0.86) 86%, #121216 100%);
}
.aia-offer-lvl {
  position: absolute; top: 0.9rem; inset-inline-end: 0.9rem; z-index: 2;
  font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; letter-spacing: 0.18em;
  color: #cfcabf; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 14, 16, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 0.5rem; padding: 0.32rem 0.55rem; transition: color 0.3s, border-color 0.3s;
}
.aia-offer:hover .aia-offer-lvl { color: #e63b2e; border-color: rgba(230, 59, 46, 0.5); }
.aia-offer-body { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.6rem; margin-top: -1.25rem; }
@media (min-width: 860px) { .aia-offer-body { padding: 1.6rem 1.9rem 1.9rem; } }
.aia-offer-text { flex: 1; }
.aia-offer-tag { margin-bottom: 0.5rem; }
.aia-offer-title { font-family: 'Rubik', sans-serif; font-weight: 700; color: #f2efe8; font-size: 1.4rem; line-height: 1.18; margin: 0; }
@media (min-width: 860px) { .aia-offer-title { font-size: 1.6rem; } }
.aia-offer-desc { color: #b8b4ab; line-height: 1.65; margin: 0.7rem 0 0; font-size: 0.97rem; max-width: 48ch; }
.aia-offer-cta {
  position: relative; overflow: hidden; align-self: flex-start; margin-top: 1.5rem;
  display: inline-flex; align-items: center; border-radius: 9999px; padding: 0.7rem 1.4rem;
  font-weight: 600; font-size: 0.92rem; color: #f2efe8;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.aia-offer-cta:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.06); }
.aia-offer-cta--solid { color: #0e0e10; border: none; background: linear-gradient(180deg, #e63b2e, #c2382e); box-shadow: 0 18px 50px -20px rgba(230, 59, 46, 0.6); }
.aia-offer-cta--solid:hover { transform: translateY(-1px) scale(1.02); }
.aia-offer-cta-in { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.5rem; }
.aia-offer-arw { transition: transform 0.3s; }
.aia-offer-cta:hover .aia-offer-arw { transform: translateX(-5px); }
.aia-offer--featured { border-color: rgba(230, 59, 46, 0.4); }
.aia-offer--featured:hover { border-color: rgba(230, 59, 46, 0.62); box-shadow: 0 44px 90px -44px rgba(230, 59, 46, 0.5); }

/* ---- Cinematic scroll layer ---- */
/* Scroll-progress bar */
#aia-progress {
  position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 60;
  transform: scaleX(0); transform-origin: right;
  background: linear-gradient(90deg, #e63b2e, #ff7a5c);
  box-shadow: 0 0 12px rgba(230, 59, 46, 0.6); pointer-events: none;
}
/* Hero scroll cue */
.aia-scrollcue { position: absolute; bottom: 1.7rem; inset-inline-start: 50%; transform: translateX(-50%); z-index: 10; width: 1px; height: 48px; overflow: hidden; background: linear-gradient(to bottom, transparent, rgba(242, 239, 232, 0.22)); }
.aia-scrollcue span { position: absolute; left: -1px; top: -40%; width: 3px; height: 40%; border-radius: 2px; background: #e63b2e; box-shadow: 0 0 8px rgba(230, 59, 46, 0.85); animation: aiaCue 2.2s cubic-bezier(0.6, 0, 0.2, 1) infinite; }
@keyframes aiaCue { 0% { top: -45%; opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 100% { top: 105%; opacity: 0; } }
/* Magnetic buttons: hand transform to GSAP (no CSS transition fighting it) */
.is-magnetic { transition: box-shadow 0.3s, background 0.3s, border-color 0.3s !important; }
@media (prefers-reduced-motion: reduce) {
  .aia-scrollcue { display: none; }
  #aia-progress { display: none; }
}
