/* Academy home only. Shared palette, typography, header and card sizes stay intact. */
.da-home-root { --home-gap: 56px; }
.da-home-root h1, .da-home-root h2, .da-home-root h3, .da-home-root p { margin: 0; }
.da-home-root h1 { max-width: 790px; font-size: clamp(2.375rem, 4.8vw, 4.25rem); line-height: 1.07; }
.da-home-root h2 { max-width: 1000px; font-size: clamp(1.875rem, 3.4vw, 3rem); line-height: 1.1; }
.da-home-root h3 { font-size: 1.625rem; line-height: 1.2; }
.da-home-root p { max-width: 68ch; }
.da-home-root .home-section { margin-top: var(--home-gap); }
.home-section > h2 { margin-bottom: 24px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 36px; align-items: center; padding-top: 32px; }
.home-hero > *, .home-direction-grid > *, .home-ai > *, .home-academy > *, .home-final > * { min-width: 0; }
.home-eyebrow { color: var(--da-muted); font-size: 1.125rem; line-height: 1.4; }
.home-intro h1 { margin-top: 12px; }
.home-lead { margin-top: 12px !important; color: var(--da-muted); }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 24px; }
.home-link { gap: 12px; }
.home-link > span[aria-hidden] { display: inline-block; flex: 0 0 auto; }
.home-text-link { display: inline-flex; align-items: center; min-height: 48px; font-size: 1.25rem; line-height: 1.35; text-decoration: none; font-weight: 600; }
.da-home-root .button:active { transform: none; }
.home-trust { margin-top: 10px !important; font-size: 1.125rem; line-height: 1.4; }
.home-trust a { color: var(--da-muted); }
.home-person { margin: 0; justify-self: center; width: 100%; max-width: 350px; }
.home-portrait { position: relative; isolation: isolate; max-width: 310px; margin-inline: auto; }
.home-portrait > img { display: block; width: 100%; height: auto; position: relative; }
.home-arch { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.home-person figcaption { display: grid; gap: 2px; margin-top: 10px; text-align: center; }
.home-person strong { font-size: 1.375rem; line-height: 1.3; }
.home-person figcaption > span { font-size: 1.125rem; color: var(--da-muted); }
.home-direction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home-direction { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--da-border); border-radius: var(--da-radius-card); background: var(--da-surface); }
.home-direction-learning { background: var(--da-soft); }
.home-direction h3 { margin-bottom: 10px; }
.home-direction > p { color: var(--da-muted); }
.home-direction .home-text-link { margin-top: 12px; }
.home-direction .home-unavailable { margin-top: auto; padding-top: 16px; font-size: 1.125rem; }
.home-asset-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.home-asset-list li { display: flex; align-items: center; gap: 12px; min-width: 0; padding-block: 12px; border-bottom: 1px solid var(--da-border); }
.home-asset-list svg { flex: 0 0 32px; width: 32px; height: 32px; fill: none; stroke: var(--da-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-asset-bottom { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px 30px; margin-top: 22px; }
.home-asset-bottom p { max-width: 51ch; }
.home-ai { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); align-items: center; gap: 32px; padding: 28px; border: 1px solid var(--da-violet-border); border-radius: var(--da-radius-card); background: var(--da-violet-soft); }
.home-ai h3 { margin-top: 20px; font-size: 1.375rem; color: var(--da-violet-text); }
.home-ai .home-ai-types { margin-top: 8px; color: var(--da-violet-text); font-size: 1.125rem; }
.home-ai-copy > p:not(.home-ai-types) { margin-top: 16px; }
.home-ai-copy > a { margin-top: 12px; }
.home-ai-diagram { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: 10px 20px; }
.home-document { display: block; width: 100%; max-width: 170px; justify-self: center; }
.home-analysis-steps { list-style: none; padding: 0; margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.home-analysis-steps li { padding-block: 4px; }
.home-analysis-steps li > span { display: block; color: var(--da-violet-text); font-weight: 400; }
.home-diagram-note { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--da-violet-border); font-size: 1.125rem; color: var(--da-violet-text); }
.home-cases .da-case-card h3 { font-size: 1.5rem; font-weight: 750; line-height: 1.18; }
.home-cases .da-case-card h3 a { color: var(--da-text); text-decoration: none; }
.home-cases .da-case-card::after { content: none; }
.home-cases .da-card-photo { position: relative; }
.home-more { margin-top: 18px; }
.home-photo-corner { position: absolute; width: 22px; height: 22px; border: solid var(--da-apricot); opacity: 1; transform: none; pointer-events: none; }
.home-photo-corner--tl { left: 12px; top: 12px; border-width: 2px 0 0 2px; }
.home-photo-corner--tr { right: 12px; top: 12px; border-width: 2px 2px 0 0; }
.home-photo-corner--bl { left: 12px; bottom: 12px; border-width: 0 0 2px 2px; }
.home-photo-corner--br { right: 12px; bottom: 12px; border-width: 0 2px 2px 0; }
.home-academy { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); align-items: center; gap: 32px; padding-block: 28px; border-block: 1px solid var(--da-border); }
.home-principles { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 8px; }
.home-principles li { position: relative; padding-left: 24px; }
.home-principles li::before { content: '+'; position: absolute; left: 0; color: var(--da-accent); font-weight: 600; }
.home-academy a { margin-top: 12px; }
.home-license { border-left: 3px solid var(--da-apricot); padding-left: 22px; }
.home-license > p:first-child { font-size: 1.375rem; font-weight: 650; line-height: 1.35; }
.home-license .home-license-number { margin-top: 12px; color: var(--da-muted); font-size: 1.125rem; }
.home-journal .article-card-body { position: relative; }
.home-journal .article-card h3 { margin: 14px 0 12px; font-size: 1.625rem; line-height: 1.15; letter-spacing: -.025em; }
.home-journal .article-card h3 a { color: var(--da-text); text-decoration: none; }
.home-journal .article-card h3 a:hover { color: var(--da-accent); }
.home-journal .article-meta { padding-right: 16px; }
.home-bookmark { position: absolute; top: 0; right: 24px; width: 12px; height: 20px; background: var(--da-apricot); clip-path: polygon(0 0,100% 0,100% 100%,50% 75%,0 100%); pointer-events: none; }
.home-final { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; background: var(--da-soft); border-radius: var(--da-radius-card); }
.home-final p { margin-top: 14px; max-width: 41ch; }
.home-final-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
@media (max-width: 1100px) {
  .home-hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 24px; }
  .home-asset-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
  .home-ai { gap: 24px; padding: 24px; }
  .home-ai-diagram { grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 800px) {
  .da-home-root { --home-gap: 40px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .home-person { display: flex; gap: 20px; align-items: center; justify-content: center; max-width: 430px; }
  .home-portrait { flex: 0 0 42%; max-width: 170px; margin: 0; }
  .home-person figcaption { min-width: 0; margin: 0; text-align: left; }
  .home-actions { margin-top: 18px; gap: 6px 18px; }
  .home-direction-grid { gap: 20px; }
  .home-direction { padding: 20px; }
  .home-ai { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px; }
  .home-ai-diagram { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 460px; width: 100%; }
  .home-academy { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px; }
  .home-final { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px; }
  .home-journal .article-card h3 { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  .home-direction-grid { grid-template-columns: minmax(0, 1fr); }
  .home-section > h2 { margin-bottom: 20px; }
  .home-asset-list { gap: 6px 16px; }
  .home-asset-list li { gap: 8px; font-size: 1.125rem; }
  .home-asset-list svg { flex-basis: 28px; width: 28px; height: 28px; }
  .home-actions { align-items: flex-start; flex-direction: column; }
  .home-actions .button { width: 100%; }
  .home-ai, .home-final { padding: 20px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-link > span[aria-hidden] { transition: transform 160ms ease; }
  .home-link:hover > span[aria-hidden] { transform: translateX(3px); }
}
@media (prefers-reduced-motion: no-preference) {
  .home-link:focus-visible > span[aria-hidden] { transform: translateX(3px); }
}

/* Approved COLOR RHYTHM C */
/* B + C: a soft local light behind the cutout portrait. The existing blue
   arch, image size/position and portrait wrapper are retained. */
.da-home-root .home-portrait::before {
  content: "";
  position: absolute;
  inset: 9% 6% 0;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 48%, #fff7f1 0%, #fff0e6 72%, rgb(255 240 230 / 56%) 100%);
  pointer-events: none;
}

.da-home-root .home-portrait > img {
  z-index: 1;
}

/* C: the page keeps its current violet analysis section. Add small colour
   changes to the existing asset icons only; asset rows stay white. */
.da-home-root .home-asset-list li:nth-child(1) > svg {
  stroke: #1c4eff;
}

.da-home-root .home-asset-list li:nth-child(2) > svg {
  stroke: #a64a20;
}

.da-home-root .home-asset-list li:nth-child(3) > svg {
  stroke: #7557e8;
}

.da-home-root .home-asset-list li:nth-child(4) > svg {
  stroke: #5e43c4;
}

/* C: warm paper-like surface within the existing academy section footprint. */
.da-home-root .home-academy {
  background-color: #fff7f1;
  border-block-color: #ffd1bd;
}

.da-home-root .home-license {
  border-left-color: #1c4eff;
}

.da-home-root .home-license > p,
.da-home-root .home-license .home-license-number {
  color: #080d21;
}

/* C: deep blue is the new final colour anchor. A bright button, underlined
   secondary link, and a high-contrast keyboard ring remain easy to identify. */
.da-home-root .home-final {
  position: relative;
  overflow: visible;
  color: #ffffff;
  background-color: #153dd6;
}

.da-home-root .home-final::before {
  content: "";
  position: absolute;
  top: 0;
  right: 28px;
  width: 54px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: #ff8e5e;
  pointer-events: none;
}

.da-home-root .home-final h2,
.da-home-root .home-final p {
  color: #ffffff;
}

.da-home-root .home-final .button {
  color: #153dd6;
  background-color: #ffffff;
  border-color: #ffffff;
}

.da-home-root .home-final .button:hover {
  color: #153dd6;
  background-color: #e8f0ff;
  border-color: #e8f0ff;
}

.da-home-root .home-final .home-text-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.da-home-root .home-final a:focus-visible {
  outline-color: #ffffff;
}

/* v10 compact content. Approved C colors and the existing portrait stay intact. */
.home-hero { position: relative; }
.home-hero-signal { position: absolute; top: 4px; left: 0; width: 112px; height: 22px; fill: none; stroke: var(--da-accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.home-signal-link { stroke: var(--da-muted); }
.home-system, .home-license { scroll-margin-top: 24px; }
.home-system { position: relative; }
.home-system-wave { position: absolute; overflow: visible; pointer-events: none; z-index: 2; }
.home-system-list { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(9em, 15%)), 1fr)); gap: 16px; }
.home-system-list > li { display: flex; align-items: center; min-width: 0; gap: 12px; padding-block: 14px; border-bottom: 2px solid var(--da-border); font-size: 1.375rem; font-weight: 650; }
.home-system-list svg { display: block; width: 32px; height: 32px; flex: 0 0 32px; fill: none; stroke: var(--da-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.home-system-list .home-system-ai { color: var(--da-violet-text); border-bottom-color: var(--da-violet-border); }
.home-system-ai svg { stroke: var(--da-violet); }
.da-home-root .home-system-summary { margin-top: 20px; }
.da-home-root .home-format-note { margin-top: 10px; font-size: 1.125rem; color: var(--da-muted); }
.home-model-grid { position: relative; }
.home-model-grid .home-direction { position: relative; }
.home-model-grid h3 { max-width: 100%; }
.home-model-grid .home-agent-route { margin-top: 16px; font-size: 1.125rem; color: var(--da-accent); }
.home-fork { position: absolute; fill: none; stroke: var(--da-accent); stroke-width: 1.5; pointer-events: none; }
.home-fork path { vector-effect: non-scaling-stroke; }
.home-fork-wide { top: -22px; left: 0; width: 100%; height: 20px; }
.home-fork-narrow { display: none; }
.home-agent-signal { position: absolute; width: 68px; height: 18px; top: 28px; right: 24px; fill: var(--da-surface); stroke: var(--da-accent); stroke-width: 1.5; pointer-events: none; }
.home-mentor .home-academy { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 24px 32px; }
.home-mentor .home-academy > h2 { grid-column: 1; }
.home-mentor-profile { grid-row: 1 / 3; grid-column: 2; display: grid; grid-template-columns: minmax(0, 128px) minmax(0, 1fr); align-items: center; gap: 18px; }
.home-mentor-profile img { display: block; width: 128px; max-width: 100%; height: auto; justify-self: center; }
.home-mentor-profile p { margin-top: 8px; font-size: 1.125rem; color: var(--da-muted); }
.home-mentor .home-license { grid-column: 1; }
.home-license-number { position: relative; width: fit-content; max-width: 100%; padding-bottom: 5px; }
[data-home-license-mark] { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--da-accent); pointer-events: none; }
@media (max-width: 1100px) {
  .home-system-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(9em, 31%)), 1fr)); }
}
@media (max-width: 800px) {
  .home-hero-signal { height: 18px; width: 98px; top: 1px; }
  .home-mentor .home-academy { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home-mentor-profile { grid-column: 1; grid-row: auto; grid-template-columns: minmax(0, 104px) minmax(0, 1fr); align-items: center; gap: 18px; }
  .home-mentor-profile img { width: 104px; }
  .home-system-list { gap: 12px 18px; }
}
@media (max-width: 600px) {
  .home-system-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(6.5em, 45%)), 1fr)); gap: 6px 16px; }
  .home-system-list > li { gap: 8px; font-size: 1.25rem; padding-block: 12px; flex-wrap: wrap; }
  .home-system-list svg { width: 28px; height: 28px; flex-basis: 28px; }
  .home-fork-wide { display: none; }
  .home-fork-narrow { display: block; left: -12px; top: 22px; height: calc(100% - 44px); width: 12px; }
  .home-agent-signal { top: 24px; right: 20px; }
}
