/* ============================================================
   AVELINA AI — sub-page styles
   Sub-pages share the main palette/tokens from styles.css and
   add their own page-chrome (hero, prose, diagrams).
   ============================================================ */

/* ===== Nav: cancel homepage cinematic delay on sub-pages =====
   styles.css sets navIn with a 2.6s delay for the hero sequence.
   Sub-pages have no hero, so the nav must appear instantly.      */
.nav.glass {
  animation: none !important;
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
  filter: none !important;
}

/* ===== Sub-page hero ===== */
.sub-hero {
  position: relative;
  padding: 160px var(--gut) 80px;
  text-align: center;
  overflow: hidden;
}
.sub-hero .crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.sub-hero .crumbs a { color: var(--copper); transition: color 0.3s var(--ease); }
.sub-hero .crumbs a:hover { color: var(--text); }
.sub-hero .crumbs .sep { opacity: 0.4; }
.sub-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 920px;
  margin: 0 auto;
  text-wrap: balance;
}
.sub-hero h1 em { font-style: italic; color: var(--teal); font-weight: 400; }
.sub-hero .lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 24px);
  font-style: italic;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.4;
  max-width: 720px;
  margin: 32px auto 0;
}
.sub-hero .small-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  position: relative;
}
.sub-hero .small-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.sub-hero .small-avatar::after {
  content: ""; position: absolute; inset: -20px;
  background: radial-gradient(circle, var(--teal-glow), transparent 70%);
  filter: blur(20px); z-index: -1;
}

/* ===== Sub-page prose ===== */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.prose p + h3, .prose p + h4 { margin-top: 36px; }
.prose h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.prose h3 em { font-style: italic; color: var(--teal); }
.prose h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}
.prose blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.35;
  margin: 40px 0;
  padding-left: 24px;
  border-left: 2px solid var(--teal);
  text-wrap: balance;
}
.prose ul, .prose ol {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 1px;
  background: var(--teal);
}
.prose ol { counter-reset: it; }
.prose ol li {
  position: relative;
  padding-left: 36px;
  counter-increment: it;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
}
.prose ol li::before {
  content: counter(it, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--copper);
}
.prose a { color: var(--teal); border-bottom: 1px solid var(--teal-soft); padding-bottom: 1px; }
.prose a:hover { background: var(--teal-soft); }
.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--teal);
}

/* Wider prose variant */
.prose-wide { max-width: 920px; }

/* ===== Anchor sections inside sub-pages ===== */
.s-block {
  padding: clamp(60px, 10vh, 120px) var(--gut);
}
.s-block.alt {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.s-block .s-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  text-align: center;
  margin-bottom: 28px;
}
.s-block .s-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  text-align: center;
  margin: 0 auto 60px;
  max-width: 900px;
  text-wrap: balance;
}
.s-block .s-title em { font-style: italic; color: var(--teal); font-weight: 400; }

/* ===== Card grids for sub-pages ===== */
.layer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}
.layer-card {
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.layer-card .l-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--copper);
  text-transform: uppercase;
}
.layer-card h4 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.005em;
}
.layer-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.layer-card .l-example {
  margin-top: 12px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--teal);
  border-radius: 4px;
  font-style: normal;
}
.layer-card .l-example b { color: var(--teal); font-weight: 500; }

.layer-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

/* 8-channel meter for /personality */
.channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 40px;
}
.ch {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  gap: 14px;
  align-items: center;
  font-size: 12px;
}
.ch .ch-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.ch .ch-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}
.ch .ch-fill {
  position: absolute;
  inset: 0;
  width: var(--v, 50%);
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
  border-radius: 999px;
  box-shadow: 0 0 6px var(--teal-glow);
  animation: ch-breathe 4s ease-in-out infinite alternate;
}
@keyframes ch-breathe {
  to { width: calc(var(--v, 50%) + 3%); }
}
.ch .ch-val {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  text-align: right;
}

/* Skills category list for /skills */
.skill-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.skill-cat {
  padding: 28px 28px 26px;
}
.skill-cat h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.skill-cat h4 .icon {
  width: 24px; height: 24px;
  color: var(--teal);
  display: inline-flex;
}
.skill-cat ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skill-cat li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.skill-cat li:last-child { border-bottom: 0; }
.skill-cat li b { color: var(--text); font-weight: 500; }

/* MCP logos grid */
.mcp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
}
.mcp-chip {
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-align: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

/* Persona segment for /comparison */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}
.persona {
  padding: 32px 28px;
}
.persona h4 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text);
}
.persona .who {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.persona p { font-size: 14px; line-height: 1.6; color: var(--text-dim); }
.persona .choose {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--teal);
}

/* Pricing matrix for /pricing */
.pmatrix {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
}
.pmatrix table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-1);
  font-size: 13px;
}
.pmatrix th, .pmatrix td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.pmatrix th {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  color: var(--text);
  background: var(--bg-2);
}
.pmatrix th.feat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); font-weight: 400; }
.pmatrix td.feature { color: var(--text); font-weight: 500; font-size: 13px; }
.pmatrix .check {
  display: inline-flex;
  width: 16px; height: 16px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  background: var(--teal-soft);
  position: relative;
}
.pmatrix .check::after {
  content: "";
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: rotate(-45deg);
  position: absolute;
  top: 4px; left: 3px;
}
.pmatrix .dash { color: var(--text-quiet); font-family: var(--mono); }
.pmatrix tbody tr:last-child td { border-bottom: 0; }

/* CTA blocks at bottom of sub-pages */
.page-cta {
  text-align: center;
  padding: clamp(80px, 14vh, 140px) var(--gut);
}
.page-cta h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 32px;
}
.page-cta h2 em { font-style: italic; color: var(--teal); font-weight: 400; }
.page-cta .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Legal page styles */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gut);
}
.legal-doc h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin: 48px 0 16px;
  letter-spacing: -0.005em;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.legal-doc ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 14px;
}
.legal-doc li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 8px;
  line-height: 1.5;
}
.legal-doc li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 1px;
  background: var(--copper);
}
.legal-doc .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 880px) {
  .layer-grid, .layer-grid-3, .skill-cats, .persona-grid { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; padding: 24px; }
  .ch { grid-template-columns: 110px 1fr 30px; gap: 10px; }
  .pmatrix { font-size: 12px; overflow-x: auto; }
  .pmatrix table { min-width: 600px; }
  .sub-hero { padding: 130px 24px 60px; }
}

/* =========================================================
   ABOUT page — manifesto rewrite (2026-05-29)
   ========================================================= */
.about-hero {
  text-align: center;
  padding-top: clamp(140px, 18vh, 200px);
  padding-bottom: clamp(60px, 8vh, 100px);
}
.about-eyebrow {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(95,217,194,0.85);
  margin-bottom: 28px;
}
.about-h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 auto 24px;
  max-width: 900px;
  background: linear-gradient(180deg, #ffffff 0%, #e8efe9 55%, #aebabe 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-h1 em {
  font-style: italic;
  color: rgba(95,217,194,0.95);
  -webkit-text-fill-color: rgba(95,217,194,0.95);
}
.about-lede {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-dim);
  font-style: italic;
  font-family: var(--display);
}

.about-tag {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper, #c79570);
  margin-bottom: 22px;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(199,149,112,0.25);
}
.about-tag-center {
  display: block;
  width: max-content;
  margin: 0 auto 22px;
}

/* ============== Section / inner shell ============== */
.about-section {
  padding: clamp(60px, 9vh, 110px) var(--gut);
  position: relative;
}
.about-section + .about-section {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.about-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.about-inner-narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* ============== Shared typography ============== */
.about-h {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.008em;
  margin: 0 0 28px;
  color: var(--text);
  text-wrap: balance;
}
.about-h em {
  font-style: italic;
  color: rgba(95,217,194,0.95);
}
.about-h-center {
  text-align: center;
}
.about-h-big {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.1;
}
.about-p {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.about-p b { color: var(--text); font-weight: 500; }
.about-p em { color: rgba(95,217,194,0.95); font-style: italic; }
.about-lede-p {
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 720px;
  color: var(--text);
  margin-bottom: 36px;
}
.about-out {
  margin-top: 32px;
  font-style: italic;
  color: var(--text);
  font-size: clamp(15.5px, 1.25vw, 17.5px);
}

/* ============== 01 · Stat trio ============== */
.about-stat-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 32px;
}
.about-stat {
  padding: 28px 22px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(95,217,194,0.07), transparent 70%),
    rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  transition: border-color .35s ease, transform .35s ease;
}
.about-stat:hover {
  border-color: rgba(95,217,194,0.25);
  transform: translateY(-2px);
}
.about-stat .num {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300;
  color: rgba(95,217,194,0.95);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.about-stat .lbl {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============== Pull quote ============== */
.about-pullquote {
  margin: 28px 0 28px;
  padding: 28px 32px 28px 38px;
  border-left: 3px solid rgba(95,217,194,0.75);
  background: rgba(95,217,194,0.04);
  border-radius: 0 14px 14px 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.35;
  color: var(--text);
  text-wrap: balance;
}
.about-pullquote em {
  color: rgba(95,217,194,0.95);
  font-style: italic;
}
.about-pullquote-big {
  text-align: center;
  border-left: 0;
  border-top: 1px solid rgba(95,217,194,0.3);
  border-bottom: 1px solid rgba(95,217,194,0.3);
  border-radius: 0;
  padding: 36px 24px;
  font-size: clamp(22px, 2.6vw, 34px);
  background: transparent;
  margin: 36px 0;
}

/* ============== 02 · Capability cards grid ============== */
.about-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 28px;
}
.about-cap {
  padding: 26px 22px 22px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(28,28,30,0.6), rgba(20,20,22,0.6));
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.about-cap:hover {
  border-color: rgba(95,217,194,0.25);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}
.about-cap .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(95,217,194,0.08);
  border: 1px solid rgba(95,217,194,0.2);
  color: rgba(95,217,194,0.95);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.about-cap .ico svg { width: 22px; height: 22px; }
.about-cap h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.about-cap p {
  font-size: clamp(13.5px, 1.05vw, 15px);
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}
@media (max-width: 920px) {
  .about-cap-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .about-cap-grid { grid-template-columns: 1fr; gap: 12px; }
  .about-stat-trio { grid-template-columns: 1fr; gap: 12px; }
}

/* ============== 03 · Duo cards ============== */
.about-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.about-duo-card {
  padding: 32px 28px 30px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(95,217,194,0.08), transparent 70%),
    rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.about-duo-card .ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(95,217,194,0.08);
  border: 1px solid rgba(95,217,194,0.22);
  color: rgba(95,217,194,0.95);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.about-duo-card .ico svg { width: 26px; height: 26px; }
.about-duo-card .badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(199,149,112,0.12);
  border: 1px solid rgba(199,149,112,0.3);
  color: var(--copper, #c79570);
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.about-duo-card h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.about-duo-card p {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}
.about-duo-card p b { color: var(--text); font-weight: 500; }
@media (max-width: 760px) {
  .about-duo { grid-template-columns: 1fr; gap: 14px; }
}

/* ============== 04 · Callout block ============== */
.about-callout {
  margin: 28px 0;
  padding: 32px 32px 28px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(95,217,194,0.05), rgba(95,217,194,0.02));
  border: 1px solid rgba(95,217,194,0.18);
}
.about-callout p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.about-callout p:last-child { margin-bottom: 0; }
.about-callout p.hi {
  text-align: center;
  font-size: clamp(20px, 2vw, 28px);
  color: rgba(255,255,255,0.95);
  border-top: 1px solid rgba(95,217,194,0.18);
  padding-top: 18px;
  margin-top: 8px;
}
.about-callout p.hi em {
  color: rgba(95,217,194,0.95);
  font-style: italic;
}

/* ============== 05 · Academy card ============== */
.about-academy-card {
  padding: 44px 40px 40px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 60% 100% at 100% 0%, rgba(199,149,112,0.10), transparent 70%),
    radial-gradient(ellipse 60% 100% at 0% 100%, rgba(95,217,194,0.06), transparent 70%),
    linear-gradient(180deg, rgba(30,28,26,0.7), rgba(20,18,16,0.7));
  border: 1px solid rgba(199,149,112,0.22);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.about-academy-card .ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(199,149,112,0.1);
  border: 1px solid rgba(199,149,112,0.3);
  color: var(--copper, #c79570);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.about-academy-card .ico svg { width: 28px; height: 28px; }
.about-academy-card h3 {
  margin-bottom: 18px;
}
.about-academy-card p {
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 14px;
  max-width: 640px;
}
.about-academy-card p b { color: var(--text); font-weight: 500; }
.about-academy-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.about-academy-cta .arr {
  transition: transform .25s ease;
  display: inline-block;
}
.about-academy-cta:hover .arr { transform: translateX(4px); }

/* ============== 07 · Philosophy core (poem) ============== */
.about-philosophy-core {
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(95,217,194,0.05), transparent 75%);
}
.about-philo {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.about-philo p {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 22px;
  text-wrap: balance;
}
.about-philo p em {
  color: rgba(95,217,194,0.95);
  font-style: italic;
}
.about-philo p b {
  font-style: normal;
  color: var(--text);
  font-weight: 500;
}
.about-philo p.hi {
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--text);
  margin: 24px 0 28px;
}
.about-philo p.sig {
  font-size: clamp(15px, 1.2vw, 17px);
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}

/* ============== Final CTA on about ============== */
.about-cta {
  padding: clamp(80px, 12vh, 140px) var(--gut) clamp(100px, 14vh, 160px);
  text-align: center;
}
.about-cta-sub {
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--text-dim);
  margin: -10px auto 32px;
  max-width: 520px;
}

/* =========================================================
   EN-translation-pending banner (subpages)
   Shown only when html[lang="en"] — pure CSS, no JS coupling.
   ========================================================= */
.en-pending {
  display: none;
}
html[lang="en"] .en-pending {
  display: block;
  position: relative;
  margin: 86px auto 0;
  max-width: 920px;
  padding: 0 var(--gut);
  z-index: 5;
}
.en-pending-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(95,217,194,0.10) 0%, rgba(95,217,194,0.04) 100%),
    rgba(14,20,26,0.65);
  border: 1px solid rgba(95,217,194,0.32);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
          backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 12px 36px -16px rgba(0,0,0,0.6);
}
.en-pending-icon {
  font-size: 22px;
  line-height: 1.2;
  flex-shrink: 0;
}
.en-pending-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.en-pending-text strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(95,217,194,0.95);
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.en-pending-text a {
  color: rgba(95,217,194,0.95);
  text-decoration: underline;
  text-decoration-color: rgba(95,217,194,0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s var(--ease);
}
.en-pending-text a:hover {
  text-decoration-color: rgba(95,217,194,0.95);
}
@media (max-width: 720px) {
  html[lang="en"] .en-pending {
    margin-top: 72px;
  }
  .en-pending-inner {
    padding: 14px 16px;
    flex-direction: row;
    gap: 12px;
  }
  .en-pending-text { font-size: 13px; }
}


/* ============================================================
   Business page — module catalog: flip cards + details dialog
   Hover flips the card (decorative). The full description is
   reachable by click/keyboard and also lives in the DOM, so the
   flip is never the only path to content.
   ============================================================ */
.mcard-hint {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  opacity: 0.85;
}
.mcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 36px auto 0;
}
.mcard {
  position: relative;
  perspective: 1400px;
  min-height: 248px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  border-radius: 18px;
  animation: mcardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--d, 0) * 40ms);
}
@keyframes mcardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mcard-inner {
  position: relative;
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}
.mcard:hover .mcard-inner,
.mcard:focus-visible .mcard-inner,
.mcard.is-flipped .mcard-inner { transform: rotateY(180deg); }
.mcard:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.mcard-face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 60px -30px rgba(0,0,0,0.7);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color 0.3s ease;
}
.mcard:hover .mcard-face { border-color: var(--line-strong, rgba(255,255,255,0.16)); }
.mcard-icon { font-size: 26px; line-height: 1; margin-bottom: 14px; }
.mcard-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 10px;
}
.mcard-lede { font-size: 14px; line-height: 1.6; color: var(--text-dim); margin: 0; }
.mcard-back {
  transform: rotateY(180deg);
  background: var(--glass-strong, var(--glass));
  border-color: rgba(95, 217, 194, 0.22);
}
.mcard-points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.mcard-points li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.mcard-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.75;
}
.mcard-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.mcard-more svg { width: 15px; height: 15px; transition: transform 0.25s ease; }
.mcard:hover .mcard-more svg { transform: translateX(3px); }

/* ---- details dialog ---- */
.mdlg { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.mdlg[hidden] { display: none; }
.mdlg-scrim {
  position: absolute; inset: 0;
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: mdlgFade 0.25s ease;
}
@keyframes mdlgFade { from { opacity: 0; } to { opacity: 1; } }
.mdlg-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(84vh, 760px);
  overflow-y: auto;
  padding: 38px 38px 32px;
  border-radius: 22px;
  animation: mdlgIn 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes mdlgIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.mdlg-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mdlg-close:hover { color: var(--text); border-color: var(--line-strong, rgba(255,255,255,0.16)); }
.mdlg-close svg { width: 18px; height: 18px; }
.mdlg-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-right: 48px; }
.mdlg-icon { font-size: 30px; line-height: 1; }
.mdlg-head h3 { font-family: var(--serif); font-size: 27px; font-weight: 400; color: var(--text); margin: 0; }
.mdlg-body p { font-size: 15px; line-height: 1.75; color: var(--text-dim); margin: 0 0 18px; }
.mdlg-body h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 24px 0 12px;
}
.mdlg-body ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mdlg-body li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.mdlg-body li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.75;
}
.mdlg-cta { margin-top: 26px; display: inline-flex; }
body.mdlg-open { overflow: hidden; }

@media (max-width: 980px) {
  .mcard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mcard-grid { grid-template-columns: 1fr; }
  .mcard { min-height: 0; }
  /* No hover on touch — show the front only, details come from the dialog. */
  .mcard-inner { transform: none !important; }
  .mcard-back { display: none; }
  .mdlg-panel { padding: 30px 22px 26px; }
  .mdlg-head h3 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .mcard, .mcard-inner, .mdlg-panel, .mdlg-scrim { animation: none !important; transition: none !important; }
  .mcard:hover .mcard-inner, .mcard:focus-visible .mcard-inner { transform: none; }
  .mcard-back { display: none; }
}

/* The "hover the card" half of the hint is meaningless on touch devices. */
@media (hover: none), (max-width: 640px) {
  .mcard-hint .hint-hover { display: none; }
}

/* ============================================================
   About page — hero with image backdrop
   The artwork (Claude spark + Telegram plane in her hands) sits
   behind the copy. It is decorative, so it carries empty alt and
   aria-hidden; the vignette keeps text contrast readable.
   ============================================================ */
.about-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(168px, 20vh, 232px);
  padding-bottom: clamp(88px, 13vh, 148px);
}
.about-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Frame on the hands — that is where the two logos are. */
  object-position: center 44%;
  opacity: 0.5;
  filter: saturate(0.9) contrast(1.06);
}
/* Vignette: dissolve the light-grey studio backdrop into the page void. */
.about-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 76% 66% at 50% 48%, rgba(5,7,9,0) 0%, rgba(5,7,9,0.5) 54%, var(--bg-0) 86%),
    linear-gradient(180deg, var(--bg-0) 0%, rgba(5,7,9,0.62) 20%, rgba(5,7,9,0.34) 48%, rgba(5,7,9,0.86) 82%, var(--bg-0) 100%);
}
/* Keep the copy above the artwork. */
.about-hero > *:not(.about-hero-media) { position: relative; z-index: 1; }
/* A soft pool of darkness directly under the headline for contrast. */
.about-hero .about-h1 {
  text-shadow: 0 2px 40px rgba(5, 7, 9, 0.9);
}
.about-hero .about-lede {
  text-shadow: 0 1px 24px rgba(5, 7, 9, 0.95);
  color: rgba(237, 229, 212, 0.78);
}
.about-hero .about-eyebrow { text-shadow: 0 1px 18px rgba(5, 7, 9, 0.9); }

@media (max-width: 700px) {
  .about-hero { padding-top: clamp(130px, 17vh, 170px); padding-bottom: 72px; }
  /* Portrait crop: keep her torso and the logos in frame. */
  .about-hero-media img { object-position: center 40%; opacity: 0.42; }
  .about-hero-media::after {
    background:
      radial-gradient(ellipse 110% 56% at 50% 44%, rgba(5,7,9,0) 0%, rgba(5,7,9,0.55) 58%, var(--bg-0) 92%),
      linear-gradient(180deg, var(--bg-0) 0%, rgba(5,7,9,0.68) 16%, rgba(5,7,9,0.42) 46%, rgba(5,7,9,0.9) 80%, var(--bg-0) 100%);
  }
}

/* The lede sits lower, where the artwork is brightest — lift its contrast
   and give it a little more air under the headline. */
.about-hero .about-lede {
  color: rgba(237, 229, 212, 0.9);
  margin-top: 30px;
  text-shadow: 0 1px 3px rgba(5,7,9,0.95), 0 2px 28px rgba(5,7,9,0.9);
}
.about-hero .about-h1 { margin-bottom: 6px; }

/* Breadcrumbs + eyebrow were removed from this hero (owner, 2026-08-14).
   Their ~90px is given back to the artwork so it still has room to breathe,
   and the copy stays optically centred rather than riding the top edge. */
.about-hero {
  padding-top: clamp(156px, 19vh, 220px);
  padding-bottom: clamp(120px, 16vh, 190px);
}

/* Owner 2026-08-14: "растяни картинку вниз побольше" — the backdrop ended
   too early and left a dead black band before the next section. Give the
   hero real height and centre the copy inside it, so the artwork fills the
   viewport instead of sitting in a short strip. */
.about-hero {
  min-height: clamp(680px, 92vh, 980px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: clamp(150px, 17vh, 200px);
  padding-bottom: clamp(150px, 17vh, 200px);
}
/* Keep the children block-level so their own max-width/margin:auto still rule. */
.about-hero > *:not(.about-hero-media) { width: 100%; }
/* Push the dissolve further down so the image fades right into the next
   section rather than stopping short of it. */
.about-hero-media::after {
  background:
    radial-gradient(ellipse 82% 74% at 50% 46%, rgba(5,7,9,0) 0%, rgba(5,7,9,0.42) 58%, var(--bg-0) 92%),
    linear-gradient(180deg, var(--bg-0) 0%, rgba(5,7,9,0.6) 16%, rgba(5,7,9,0.3) 44%, rgba(5,7,9,0.72) 78%, var(--bg-0) 100%);
}
@media (max-width: 700px) {
  .about-hero {
    min-height: clamp(560px, 78vh, 760px);
    padding-top: clamp(120px, 15vh, 160px);
    padding-bottom: clamp(90px, 12vh, 130px);
  }
}

/* ============================================================
   Generic hero backdrop for subpages (owner, 2026-08-14):
   every feature/partner page gets an artwork behind its hero,
   same treatment as /about. The .has-backdrop class is added
   together with the .hero-backdrop node by the build script.
   ============================================================ */
.sub-hero.has-backdrop {
  /* Owner 2026-08-14: full-screen artwork, same as the about page. */
  min-height: clamp(680px, 92vh, 980px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(150px, 17vh, 200px);
  padding-bottom: clamp(150px, 17vh, 200px);
}
.sub-hero.has-backdrop > *:not(.hero-backdrop) { position: relative; z-index: 1; width: 100%; }
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0.45;
  filter: saturate(0.9) contrast(1.06);
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 72% at 50% 46%, rgba(5,7,9,0) 0%, rgba(5,7,9,0.44) 56%, var(--bg-0) 92%),
    linear-gradient(180deg, var(--bg-0) 0%, rgba(5,7,9,0.6) 16%, rgba(5,7,9,0.3) 44%, rgba(5,7,9,0.74) 78%, var(--bg-0) 100%);
}
.sub-hero.has-backdrop h1 { text-shadow: 0 2px 40px rgba(5,7,9,0.9); }
.sub-hero.has-backdrop .lede { text-shadow: 0 1px 3px rgba(5,7,9,0.95), 0 2px 28px rgba(5,7,9,0.9); }
.sub-hero.has-backdrop .crumbs { text-shadow: 0 1px 18px rgba(5,7,9,0.9); }
@media (max-width: 700px) {
  .sub-hero.has-backdrop {
    min-height: clamp(560px, 78vh, 760px);
    padding-top: clamp(120px, 15vh, 160px);
    padding-bottom: clamp(90px, 12vh, 130px);
  }
  .hero-backdrop img { opacity: 0.38; object-position: center 36%; }
}

/* Comparison table inside articles (added 2026-09-13, consolidated Telegram guide) */
.prose .cmp-table { width: 100%; border-collapse: collapse; margin: 28px 0 36px; font-size: 15px; line-height: 1.45; display: block; overflow-x: auto; }
.prose .cmp-table thead th { text-align: left; font-family: var(--mono, monospace); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose .cmp-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 140px; }
.prose .cmp-table td:first-child { min-width: 160px; }
.prose .cmp-table tr:last-child td { border-bottom: 0; }
