/*
 * v1.5 Goal 1 — desktop core narrative prototype.
 *
 * The prototype deliberately scopes layout changes to >= 901px. Mobile keeps
 * the production v1.4 composition until the separately approved mobile goal.
 */

@media (min-width: 901px) {
  /* Keep the source DOM semantic while making the approved desktop argument
     read as Identity → Judgment → Proof → Breadth → Operating Philosophy. */
  #main {
    display: flex;
    flex-direction: column;
  }

  .hero {
    border-bottom: 1px solid var(--line-dark);
  }

  .hero-grid {
    min-height: clamp(42rem, calc(100svh - 5rem), 60rem);
  }

  .hero-copy {
    padding-block: clamp(4rem, 7vw, 6.5rem);
  }

  /* The thesis is a compact bridge, not a second hero. */
  #thesis {
    padding-block: clamp(3rem, 4.6vw, 4.7rem) clamp(3.4rem, 5.2vw, 5.5rem);
  }

  #thesis .shell {
    display: grid;
    grid-template-columns: minmax(10rem, .42fr) minmax(0, 1.58fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
  }

  #thesis h2 {
    max-width: 10ch;
    margin: 0;
    font-size: clamp(4.1rem, 6.1vw, 6.8rem);
    line-height: .88;
  }

  #thesis h2 span {
    color: var(--ink);
  }

  /* One integrated proof field: the argument and the existing artifact share
     the same horizontal rule system and enter the viewport together. */
  #featured-case {
    padding-block: clamp(4rem, 5.4vw, 5.7rem);
  }

  #featured-case .preview-featured-header {
    grid-template-columns: minmax(0, 1.25fr) minmax(12rem, .45fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
    margin-bottom: 0;
  }

  #featured-case .preview-featured-header h2 {
    max-width: 18ch;
    margin-top: 1.15rem;
    font-size: clamp(3rem, 4.3vw, 4.85rem);
    line-height: .92;
  }

  #featured-case .preview-featured-header .preview-meta {
    align-self: end;
    padding-bottom: .3rem;
  }

  #featured-case .preview-featured-layout {
    grid-template-columns: minmax(17rem, .64fr) minmax(0, 1.36fr);
    gap: clamp(3rem, 5.4vw, 6rem);
    align-items: stretch;
    margin-top: clamp(2.5rem, 3.6vw, 3.9rem);
  }

  #featured-case .case-thesis-stack {
    display: flex;
    flex-direction: column;
    max-width: 34rem;
    padding-top: 1.1rem;
  }

  #featured-case .preview-judgment {
    max-width: 23ch;
    font-size: clamp(1.8rem, 2.55vw, 2.85rem);
    line-height: 1.02;
  }

  #featured-case .preview-secondary {
    max-width: 31ch;
    margin-top: 1.25rem;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    line-height: 1.4;
  }

  #featured-case .preview-proof {
    margin-top: clamp(2.1rem, 3.2vw, 3.2rem);
    padding-top: 1.05rem;
    font-size: .94rem;
    line-height: 1.45;
  }

  #featured-case .preview-cta {
    width: fit-content;
    margin-top: 1rem;
  }

  #featured-case .artifact-embed {
    min-width: 0;
    border-top: 1px solid var(--growth-rule-soft);
  }

  #featured-case .embedded-meta {
    margin-top: 0;
    padding-block: .88rem;
  }

  #featured-case .embedded-decision-artifact {
    padding-block: 1.3rem 0;
  }

  #featured-case .embedded-decision-artifact .evidence-plate {
    grid-template-columns: minmax(7rem, .24fr) minmax(0, .76fr);
    min-height: 25rem;
    padding-block: 2.35rem 1rem;
  }

  #featured-case .embedded-decision-artifact .before-column {
    padding-right: clamp(1rem, 2.2vw, 2rem);
  }

  #featured-case .embedded-decision-artifact .after-field {
    padding-inline: clamp(1.1rem, 2.35vw, 2.4rem);
  }

  #featured-case .embedded-decision-artifact .before-outcome {
    margin-top: clamp(2.7rem, 4vw, 4rem);
  }

  #featured-case .homepage-lite .lite-signal-line {
    max-width: 32ch;
    margin-top: 1.8rem;
    font-size: clamp(.92rem, 1.12vw, 1.08rem);
    line-height: 1.42;
  }

  #featured-case .judgment-band {
    max-width: 31rem;
    margin-top: 2.35rem;
  }

  #featured-case .judgment-band .judgment-title {
    max-width: 14ch;
    font-size: clamp(1.55rem, 2.1vw, 2.2rem);
  }

  #featured-case .path-band {
    margin-top: 1.9rem;
  }

  /* Selected Leadership Work is an index of range, not a second proof block. */
  #cases {
    padding-block: clamp(3.8rem, 5vw, 5.2rem);
  }

  #cases .section-heading {
    grid-template-columns: minmax(0, .48fr) minmax(18rem, 1.52fr);
    gap: clamp(2rem, 6vw, 6rem);
    margin-bottom: clamp(1.8rem, 2.6vw, 2.75rem);
  }

  #cases .section-heading h2 {
    max-width: 12ch;
    font-size: clamp(3rem, 4.7vw, 5.25rem);
    line-height: .92;
  }

  #cases .case-item {
    grid-template-columns: 4rem minmax(15rem, 1.02fr) minmax(15rem, .98fr);
    gap: clamp(1.2rem, 3vw, 3.2rem);
    padding-block: clamp(1.2rem, 1.8vw, 1.8rem);
  }

  #cases .case-number {
    font-size: clamp(2.2rem, 3.2vw, 3.5rem);
  }

  #cases .case-item h3 {
    font-size: clamp(1.35rem, 1.85vw, 2rem);
    line-height: 1.04;
  }

  #cases .case-category {
    margin-bottom: .7rem;
  }

  #cases .case-item p {
    max-width: 34rem;
    align-self: end;
    font-size: clamp(.92rem, 1.03vw, 1.05rem);
    line-height: 1.45;
  }

  /* The AI section keeps the existing Twin Orbit semantics but makes the
     center, the two domains, accountability rail, and feedback legible as a
     single operating model. */
  #transformation .integration-section {
    min-height: 0;
  }

  #transformation .integration-layout {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: clamp(3rem, 5vw, 6rem);
    align-items: start;
    padding-block: clamp(4.3rem, 5.8vw, 6.2rem);
  }

  #transformation .integration-copy {
    padding-top: .2rem;
  }

  #transformation .integration-copy h2 {
    max-width: 9ch;
    margin-top: 1.65rem;
    font-size: clamp(3.25rem, 4.55vw, 5.65rem);
    line-height: .9;
  }

  #transformation .ai-workflow-thesis {
    max-width: 30rem;
    margin-top: 2.5rem;
    font-size: clamp(.98rem, 1.12vw, 1.08rem);
    line-height: 1.52;
  }

  #transformation .integration-map {
    min-width: 0;
    border-top: 1px solid var(--twin-rule-soft);
  }

  #transformation .integration-meta {
    padding-block: .86rem;
  }

  #transformation .integration-artifact {
    min-height: 37rem;
    margin-top: .2rem;
  }

  #transformation .integration-artifact .asset-core {
    top: 22%;
    width: min(15.5rem, 31%);
    padding: 1rem 1rem .8rem;
    border: 1px solid var(--twin-rule);
    background: rgba(16, 17, 16, .42);
  }

  #transformation .integration-artifact .asset-core h2 {
    margin-bottom: .9rem;
    font-size: clamp(1.6rem, 2.7vw, 2.55rem);
  }

  #transformation .integration-artifact .asset-core li {
    padding-block: .35rem;
    font-size: .78rem;
  }

  #transformation .integration-artifact .orbit-copy {
    top: 34%;
    width: 12.5rem;
    padding-block: .7rem .8rem;
    border-block: 1px solid var(--twin-rule-faint);
  }

  #transformation .integration-artifact .orbit-risk { left: 20%; }
  #transformation .integration-artifact .orbit-routing { right: 20%; }

  #transformation .integration-artifact .orbit-copy h2 {
    font-size: .67rem;
  }

  #transformation .integration-artifact .orbit-copy h2::after {
    margin-block: .75rem 1rem;
  }

  #transformation .integration-artifact .orbit-copy li {
    font-size: .86rem;
  }

  #transformation .integration-artifact .edge-rail {
    top: 34%;
    width: 8rem;
  }

  #transformation .integration-artifact .rail-ai { left: 0; }
  #transformation .integration-artifact .rail-human { right: 0; }

  #transformation .integration-artifact .edge-rail h2 {
    padding-bottom: .65rem;
    font-size: .62rem;
  }

  #transformation .integration-artifact .edge-rail li {
    font-size: .7rem;
  }

  #transformation .integration-artifact .learning-field {
    right: 9%;
    bottom: .7rem;
    left: 9%;
    grid-template-columns: 1fr 1.65fr;
    gap: 2rem;
    padding-top: .95rem;
    border-top: 1px solid var(--twin-rule-soft);
  }

  #transformation .integration-artifact .learning-field h2 {
    font-size: .65rem;
  }

  #transformation .integration-artifact .learning-items span {
    font-size: .78rem;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  /* At 1024px the map gets a full editorial row beneath its orientation copy;
     this avoids forcing a cramped two-column Twin Orbit. */
  #transformation .integration-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  #transformation .integration-map {
    margin-top: 0;
  }

  #transformation .integration-copy h2 {
    max-width: 11ch;
  }
}

/* Goal 1.1 surgical refinement — no narrative re-architecture. */
@media (min-width: 901px) {
  /* Featured Case: lower title dominance and promote mechanism/validation. */
  #featured-case .preview-featured-header h2 {
    max-width: 20ch;
    margin-top: .85rem;
    font-size: clamp(2.8rem, 3.9vw, 4.35rem);
  }

  #featured-case .preview-featured-layout {
    grid-template-columns: minmax(16rem, .58fr) minmax(0, 1.42fr);
    margin-top: clamp(2.2rem, 3.1vw, 3.25rem);
  }

  #featured-case .artifact-embed {
    background: rgba(18, 19, 17, .025);
  }

  #featured-case .embedded-meta p:first-child {
    color: var(--growth-ink);
    font-size: .72rem;
  }

  #featured-case .embedded-decision-artifact .field-header .zone-title {
    color: var(--growth-ink);
    font-size: .8rem;
    font-weight: 750;
  }

  #featured-case .homepage-lite .lite-signal-line {
    color: var(--growth-ink);
    font-size: clamp(1rem, 1.2vw, 1.16rem);
    font-weight: 560;
  }

  #featured-case .judgment-band {
    margin-top: 1.85rem;
    padding-top: 1rem;
  }

  #featured-case .judgment-band .judgment-title {
    font-size: clamp(1.7rem, 2.25vw, 2.4rem);
    font-weight: 560;
  }

  #featured-case .path-band {
    margin-top: 1.45rem;
    padding-top: .9rem;
    border-top-width: 1.5px;
  }

  #featured-case .path-band .lite-paths {
    color: var(--growth-ink);
    font-size: clamp(.84rem, 1.1vw, 1.02rem);
    font-weight: 750;
  }

  #featured-case .preview-proof {
    color: var(--growth-ink);
    font-size: 1rem;
    font-weight: 620;
    line-height: 1.4;
  }

  #featured-case .preview-proof-label {
    display: block;
    margin-bottom: .62rem;
    color: var(--growth-stone);
    font-size: .62rem;
    font-weight: 750;
    letter-spacing: .17em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  /* Leadership Work: visitor-facing reference and restrained heading weight. */
  #cases .section-heading h2 {
    font-size: clamp(2.85rem, 4.25vw, 4.75rem);
  }

  #cases .section-heading {
    margin-bottom: clamp(1.65rem, 2.25vw, 2.35rem);
  }

  /* Twin Orbit: three restrained directional systems — asset to both domains,
     operating activity into parallel learning, and learning back to the next
     decision cycle. */
  #transformation .twin-geometry .direction-cue {
    fill: none;
    stroke: var(--twin-rule);
    stroke-width: 1.05;
    vector-effect: non-scaling-stroke;
  }

  #transformation .twin-geometry .learning-cue {
    stroke-width: 1;
  }

  #transformation .twin-geometry .feedback-cue {
    stroke-width: 1.1;
  }
}
