.ai-layout {
  display: grid;
  grid-template-columns: minmax(170px, 200px) minmax(0, 720px) minmax(250px, 290px);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  width: min(100% - 3rem, 1320px);
  margin: 0 auto;
  padding: 2.25rem 0 4rem;
}

.profile-rail,
.offer-rail,
.ai-main { min-width: 0; }

.profile-rail__sticky,
.offer-rail__sticky { position: sticky; top: 1.5rem; }

.profile-photo { display: block; width: 128px; height: 128px; margin-bottom: 1.1rem; overflow: hidden; border-radius: 50%; }
.profile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; transform: translateY(10px) scale(1.28); }
.profile-name { margin-bottom: 0.25rem; font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.profile-name a { color: var(--ink); }
.profile-role,
.profile-links,
.offer-note,
.offer-term { color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.profile-nav { display: grid; gap: 0.45rem; margin: 1.4rem 0; padding: 1.1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: 0.8125rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; }

.practice-intro { margin-bottom: 2.75rem; }
.practice-intro h1 { max-width: none; font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: 1.02; letter-spacing: -0.035em; }
.practice-intro .deck { max-width: 53ch; font-size: clamp(1.08rem, 1.7vw, 1.32rem); line-height: 1.55; }
.intro-note { max-width: 62ch; margin-top: 1rem; color: var(--muted); font-size: 0.9375rem; }
.hero-link { margin-top: 1rem; font-family: var(--font-display); font-size: 0.8125rem; }

.featured-video { margin-bottom: 3.75rem; }
.section-heading { margin-bottom: 1.15rem; }
.section-heading .section-label,
.practice > .section-label,
.materials .section-label,
.application > .section-label,
.offer-rail .section-label { margin-bottom: 0.75rem; padding: 0; border: 0; }
.section-heading h2,
.practice h2,
.materials h2,
.application h2,
.offer-rail h2 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.25; }
.video-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 10px; box-shadow: 0 14px 38px rgba(19, 35, 50, 0.12); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: start; margin-top: 0.9rem; color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.video-links { display: flex; gap: 0.45rem; white-space: nowrap; }

.block { margin-bottom: 3.75rem; }
.practice > p:not(.section-label):not(.proof-note) { max-width: 65ch; margin-top: 1rem; }
.practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 1.75rem 0; border: 1px solid var(--border); border-radius: 8px; background: var(--border); }
.practice-grid article { padding: 1.25rem; background: var(--surface); }
.step-number,
.offer-kicker,
.material-meta { font-family: var(--font-display); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.practice-grid h3 { margin: 0.65rem 0 0.45rem; color: var(--ink); font-family: var(--font-display); font-size: 0.95rem; }
.practice-grid p { color: var(--muted); font-size: 0.8125rem; line-height: 1.55; }
.proof-note { padding: 1rem 1.15rem; border-left: 3px solid var(--accent); background: var(--accent-pale); color: var(--ink); font-size: 0.9rem; }

.section-heading--with-link { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.section-heading--with-link > a { flex: 0 0 auto; font-family: var(--font-display); font-size: 0.8125rem; }
.material-list { border-top: 1px solid var(--border); }
.material-card { padding: 1.35rem 0; border-bottom: 1px solid var(--border); }
.material-card h3 { margin: 0.45rem 0; font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.35; }
.material-card p:last-child { max-width: 62ch; color: var(--muted); font-size: 0.9rem; }
.material-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.75rem; color: var(--muted); }
.material-meta span { color: var(--accent-text); }
.knowledge-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.knowledge-links a { display: flex; flex-direction: column; gap: 0.25rem; min-height: 104px; padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.knowledge-links a:hover { background: var(--accent-pale); text-decoration: none; }
.knowledge-links strong { font-family: var(--font-display); font-size: 0.875rem; }
.knowledge-links span { color: var(--muted); font-size: 0.75rem; line-height: 1.45; }

.offer-rail__sticky { padding: 1.35rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 30px rgba(19, 35, 50, 0.06); }
.offer-rail h2 { font-size: 1.25rem; }
.offer-intro { margin: 0.8rem 0 1.2rem; color: var(--muted); font-size: 0.825rem; line-height: 1.55; }
.offer-list { display: grid; gap: 0.75rem; }
.offer-card { padding: 1rem; border-radius: 8px; background: var(--well); }
.offer-card h3 { margin: 0.4rem 0 0.55rem; color: var(--ink); font-family: var(--font-display); font-size: 0.875rem; line-height: 1.4; }
.offer-card > p:not(.offer-kicker):not(.offer-price):not(.offer-term) { color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.offer-price { margin-top: 0.8rem; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.offer-term { margin-top: 0.15rem; }
.offer-summary { margin: 1rem 0 0; }
.offer-summary div { padding: 0.8rem 0; border-top: 1px solid var(--border); }
.offer-summary dt { color: var(--ink); font-family: var(--font-display); font-size: 0.8125rem; font-weight: 700; }
.offer-summary dd { margin-top: 0.2rem; color: var(--muted); font-size: 0.75rem; line-height: 1.45; }
.offer-cta { display: flex; justify-content: center; width: 100%; margin-top: 1rem; }
.offer-note { margin-top: 0.75rem; }

.application { max-width: 640px; padding-top: 2rem; border-top: 1px solid var(--border); }
.application > p:not(.section-label):not(.form-note) { margin-top: 0.75rem; }
.form-note,
.form-status { color: var(--muted); font-size: 0.8125rem; }
.form-note { margin-top: 1rem; }
.field { margin: 1rem 0; }
.field label { display: block; margin-bottom: 0.35rem; color: var(--ink); font-weight: 600; }
input,
textarea,
select { width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--body-text); font: inherit; }
textarea { resize: vertical; }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; margin: 1.15rem 0; font-size: 0.875rem; }
.consent input { flex: 0 0 auto; width: 1rem; height: 1rem; margin-top: 0.25rem; }
.website-trap { position: absolute; left: -10000px; overflow: hidden; width: 1px; height: 1px; }
.form-status { min-height: 1.6em; margin-top: 0.75rem; }
button.btn { cursor: pointer; }
button.btn:disabled { cursor: wait; opacity: 0.7; }
.ai-footer { display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8125rem; }

@media (max-width: 1080px) {
  .ai-layout { grid-template-columns: 160px minmax(0, 720px); justify-content: center; }
  .offer-rail { grid-column: 2; }
  .offer-rail__sticky { position: static; }
  .offer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .ai-layout { display: block; width: min(100% - 2rem, 640px); padding-top: 1rem; }
  .profile-rail__sticky { position: static; display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 1rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
  .profile-photo { grid-row: 1 / 3; width: 72px; height: 72px; margin: 0; }
  .profile-name,
  .profile-role { grid-column: 2; }
  .profile-nav,
  .profile-links { display: none; }
  .ai-main { padding-top: 2rem; }
  .practice-intro h1 { font-size: clamp(2.35rem, 14vw, 3.5rem); }
  .practice-grid,
  .knowledge-links,
  .offer-list { grid-template-columns: 1fr; }
  .video-caption { display: block; }
  .video-links { margin-top: 0.65rem; }
  .offer-rail { margin-top: 3rem; }
}

@media (max-width: 420px) {
  .ai-layout { width: min(100% - 1.5rem, 640px); }
  .cta-row,
  .section-heading--with-link { align-items: flex-start; flex-direction: column; }
  .video-frame { margin-right: -0.75rem; margin-left: -0.75rem; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
