/* Preserved Pro hero and introduction. Compact lower-page layouts live in pro-experience.css. */
.hero-copy .pro-hero-kicker {
  margin: 0 0 24px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.09em;
}
.hero-copy .pro-hero-subtitle {
  max-width: 660px;
  margin-top: 25px;
  font-size: clamp(19px, 1.7vw, 24px);
  color: var(--paper);
  line-height: 1.4;
}
.hero-copy .pro-hero-description {
  max-width: 600px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.75;
}
.pro-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 24px;
}
.hero-copy .pro-hero-actions .hero-cta {
  margin-top: 0;
}
.pro-video-trigger {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: inherit;
  padding: 12px 0;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
/* One layout system for the homepage. The hero and original introduction
   retain their scale; every later section shares tracks, spacing and type. */
[data-page="developers"] {
  --pro-inline: max(
    var(--gutter),
    calc((100% - var(--content)) / 2 + var(--gutter))
  );
  --pro-section-space: 88px;
  --pro-column-gap: 64px;
  --pro-card-gap: 32px;
  --pro-selection-background: var(--ink);
  --pro-selection-foreground: var(--paper);
}

/* Selection follows the actual surface, independently of shared text tokens.
   Several dark components set --text without changing --background. */
[data-page="developers"]
  :is(
    .hero,
    .site-header,
    .site-menu,
    .editorial-dark,
    .team-select,
    .pro-access-stage,
    .site-footer,
    .overview-dialog
  ) {
  --pro-selection-background: var(--paper);
  --pro-selection-foreground: var(--ink);
}
[data-page="developers"] :is(.site-header.is-on-light, .access-start) {
  --pro-selection-background: var(--ink);
  --pro-selection-foreground: var(--paper);
}
[data-page="developers"]::selection,
[data-page="developers"] ::selection {
  color: var(--pro-selection-foreground);
  background-color: var(--pro-selection-background);
  text-shadow: none;
}

[data-page="developers"] .site-header::before {
  background: rgba(var(--nav-background-rgb), 0.7);
}
.hero-copy .hero-cta {
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid var(--button-line);
  border-radius: 0;
}
.hero-copy .hero-cta:hover {
  opacity: 1;
  border-color: currentColor;
}

/* Shared type and spacing, scoped to content so navigation stays independent. */
.pro-shift,
.editorial-section {
  color-scheme: light;
  --text: var(--ink);
  --muted: rgba(var(--ink-rgb), 0.72);
  --line: rgba(var(--ink-rgb), 0.2);
  padding: var(--pro-section-space) var(--pro-inline);
  color: var(--text);
  background: var(--paper);
}
.editorial-dark {
  color-scheme: dark;
  --text: var(--paper);
  --muted: rgba(var(--paper-rgb), 0.74);
  --line: rgba(var(--paper-rgb), 0.24);
  background: var(--ink);
}
.editorial-section h2 {
  margin: 0;
  font: 300 clamp(38px, 3.9vw, 56px) / 1.12 var(--sans);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.editorial-section h3,
.pro-capabilities h4 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.pro-kickers {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 24px;
}
.editorial-label,
.pro-kickers .editorial-label {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--muted);
}
.pro-kickers > p + p {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.pro-section-heading {
  margin-bottom: 40px;
}
.pro-section-heading > h2 {
  max-width: 850px;
}
.pro-split,
.client-assignment,
.syllabus-layout,
.access-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--pro-column-gap);
}
.pro-prose p,
.syllabus-intro > p,
.pro-closing-copy p {
  max-width: 65ch;
  font-size: 18px;
  line-height: 1.7;
}
.pro-prose p + p,
.pro-closing-copy p + p {
  margin-top: 20px;
}
.pro-split > .pro-prose {
  padding-top: 5px;
}
.pro-heading > .pro-lead {
  max-width: 34ch;
  margin-top: 24px;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.015em;
}
.pro-why + .practice-section,
.pro-audience + .access-section {
  border-top: 1px solid var(--line);
}
.editorial-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid currentColor;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.editorial-link > span {
  flex: none;
  font-size: 20px;
}
.editorial-link:hover {
  opacity: 0.72;
}

/* Preserve the introduction's original photograph and two-column composition. */
.pro-shift {
  padding-block: clamp(72px, 7.5vw, 108px);
  border-top: 1px solid var(--line);
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}
.story-photo {
  width: 100%;
  max-width: 390px;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}
.story-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: grayscale(1);
}
.story-context {
  min-width: 0;
}
.story-heading h2 {
  max-width: 760px;
  font: 300 clamp(34px, 3.9vw, 56px) / 1.12 var(--sans);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.story-heading > p {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.7;
}
.pro-capability-heading {
  margin-top: 64px;
}
.pro-capability-heading h3 {
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.pro-capabilities {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 32px;
}
.pro-capabilities article {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  gap: 0;
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pro-capabilities h4 {
  font-size: clamp(20px, 1.65vw, 24px);
}
.pro-capabilities p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.65;
}

/* Preserve the original opening at every breakpoint. */
@media (max-width: 1100px) {
  [data-page="developers"] {
    --pro-section-space: 72px;
    --pro-column-gap: 40px;
  }
  .story-grid {
    gap: 48px;
  }
  .pro-capabilities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 16px;
  }
  .pro-capabilities p {
    margin-bottom: 16px;
  }
}
@media (max-width: 900px) {
  [data-page="developers"] {
    --pro-column-gap: 32px;
  }
}
@media (max-width: 800px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .story-context {
    order: -1;
  }
  .story-photo {
    max-width: none;
    aspect-ratio: 3 / 2;
  }
  .story-photo img {
    object-position: center 44%;
  }
  .pro-shift {
    padding-block: 72px;
  }
  .story-heading h2 {
    max-width: 620px;
  }
}
@media (max-width: 767px) {
  .hero-copy .pro-hero-kicker {
    margin-bottom: 20px;
  }
  .pro-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 700px) {
  [data-page="developers"] {
    --pro-section-space: 64px;
    --pro-card-gap: 24px;
  }
  .editorial-section h2 {
    font-size: clamp(34px, 6.6vw, 44px);
  }
  .pro-kickers {
    gap: 8px;
    margin-bottom: 20px;
  }
  .pro-kickers > p {
    flex-basis: 100%;
  }
  .pro-kickers > p + p {
    border: 0;
    padding: 0;
  }
}
@media (max-width: 600px) {
  .pro-shift {
    padding-block: 64px;
  }
  .story-heading h2 {
    font-size: clamp(32px, 8.6vw, 43px);
  }
  .story-heading > p {
    font-size: 17px;
  }
  .pro-capability-heading {
    margin-top: 40px;
  }
  .pro-capabilities {
    grid-template-columns: 1fr;
    margin-top: 24px;
    row-gap: 24px;
  }
  .pro-capabilities article {
    display: block;
    grid-row: auto;
    padding-top: 20px;
  }
  .pro-capabilities h4 {
    font-size: 22px;
  }
  .pro-capabilities p {
    margin: 12px 0 0;
  }
}
