/* Landing pages share the compact spacing and card treatment of the Tools library. */
.section-page {
  --section-border: #c6d5cc;
  --section-muted: #52615e;
  --section-accent: #327260;
}
.section-page .page-hero { min-height: 0; }
.section-page .page-hero .hero-content { padding: 8rem 0 2.5rem; }
.section-page .page-hero .eyebrow { margin: 0 0 .8rem; }
.section-page .page-hero h1 { max-width: 23ch; font-size: clamp(2.35rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.section-page .page-hero .hero-copy { max-width: 560px; margin: 1rem 0 0; font-size: 1rem; line-height: 1.6; }
.section-page .page-hero .hero-media { left: 42%; }
.section-page .page-hero .hero-media img { object-position: center 54%; transform: none; }
.section-page .page-hero::before { background: linear-gradient(90deg, #090c0e 0%, #090c0e 35%, rgba(9,12,14,.8) 54%, rgba(9,12,14,.2) 100%); }
.section-page .page-hero::after { height: 70px; }
.section-page .hero-actions { gap: .6rem; margin-top: 1.25rem; }
.section-page .button { min-height: 44px; padding: .65rem 1rem; font-size: .85rem; border-radius: 5px; }
.section-page .section { padding: 2.5rem 0; }
.section-page .section-heading { max-width: 780px; }
.section-page .section-heading-wide { display: block; max-width: 780px; }
.section-page .section-heading .eyebrow { margin: 0 0 .65rem; }
.section-page .section-heading h2 { margin: 0; max-width: 34ch; font-size: clamp(1.65rem, 2.5vw, 2.1rem); font-weight: 580; line-height: 1.15; letter-spacing: -.035em; text-wrap: initial; }
.section-page .section-heading p:not(.eyebrow) { margin: .85rem 0 0; font-size: .95rem; line-height: 1.65; }
.section-page.reveal-ready .section > .section-inner { opacity: 1; transform: none; transition: none; }
.section-page .card-action { min-height: 44px; color: #194f3f; font-size: .85rem; font-weight: 650; }
.section-page .card-action::after { content: '\2197'; margin-left: .7rem; font-size: 1.1rem; line-height: 1; }
.section-page .card-action:hover { outline: none; border-color: #4e8b76; }
.section-page a:focus-visible { outline: 3px solid #287c62; outline-offset: 4px; }
.section-page .hero a:focus-visible, .section-page .contact-section a:focus-visible { outline-color: #a4efdf; }

/* Equal-width content cards, with the same restrained borders as the tool cards. */
.section-page .development-stack,
.section-page .article-list,
.section-page .article-grid,
.section-page .deliverable-grid,
.section-page .game-scope-grid,
.section-page .playable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  border: 0;
  perspective: none;
}
.section-page .stack-card,
.section-page .article-list-card,
.section-page .article-card,
.section-page .tool-roadmap article,
.section-page .game-scope-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--section-border);
  border-radius: 7px;
  background: #fff;
  color: #151a1f;
  box-shadow: none;
  transform: none;
}
.section-page .stack-card:last-child,
.section-page .article-list-card:first-child,
.section-page .tool-roadmap article:last-child,
.section-page .game-scope-grid article:last-child,
.section-page .game-scope-grid article:nth-child(2),
.section-page .game-scope-grid article:nth-child(-n + 2) { border: 1px solid var(--section-border); }
.section-page .stack-card:hover,
.section-page .article-card:hover,
.section-page .tool-roadmap article:hover { box-shadow: none; transform: none; }
.section-page .stack-card > *, .section-page .article-list-card > * { grid-column: auto; grid-row: auto; }
.section-page .stack-card > span,
.section-page .article-meta,
.section-page .game-scope-grid article > span { margin: 0; padding: 0; min-height: 0; border: 0; color: var(--section-accent); font-size: .7rem; line-height: 1.5; letter-spacing: .1em; font-weight: 650; text-transform: uppercase; }
.section-page .stack-card h3,
.section-page .article-list-card h3,
.section-page .article-card h3,
.section-page .tool-roadmap h3,
.section-page .game-scope-grid h3 { margin: .65rem 0 .75rem; color: #151a1f; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.section-page .tool-roadmap h3 { margin-top: 0; }
.section-page .stack-card p,
.section-page .article-list-card p,
.section-page .article-card p,
.section-page .tool-roadmap p,
.section-page .game-scope-grid p { margin: 0; max-width: 62ch; color: var(--section-muted); font-size: .9rem; line-height: 1.65; }
.section-page .stack-card ul { gap: .35rem; margin: 1rem 0 0; padding: .9rem 0 0; border-top: 1px solid #e0e8e3; }
.section-page .stack-card li { font-size: .82rem; color: var(--section-muted); }
.section-page .stack-card li::before { color: var(--section-accent); }
.section-page .tool-roadmap .card-action { align-self: stretch; width: 100%; justify-content: flex-end; margin-top: 1rem; padding: .8rem 0 0; border: 0; border-top: 1px solid #e0e8e3; border-radius: 0; }

/* The complete article card is a single destination; its title remains the link label. */
.section-page .article-list-card { padding-bottom: 1.1rem; }
.section-page .article-list-card:hover,
.section-page .article-list-card:focus-within { padding: 1.35rem 1.5rem 1.1rem; border-color: #4e8b76; box-shadow: 0 5px 20px -12px rgba(24,65,49,.3); transform: none; }
.section-page .article-list-card > div { margin-bottom: 1.1rem; }
.section-page .article-list-card .card-action { display: flex; align-items: center; justify-content: flex-end; width: 100%; margin: auto 0 0; padding: .8rem 0 0; border: 0; border-top: 1px solid #e0e8e3; border-radius: 0; background: transparent; }
.section-page .article-list-card .card-action::before { content: ''; position: absolute; inset: 0; border-radius: 7px; }
.section-page .article-list-card:focus-within { outline: 3px solid #287c62; outline-offset: 3px; }
.section-page .article-list-card .card-action:focus-visible { outline: none; }

/* Supporting sections keep their existing wording in a denser, consistent layout. */
.section-page .split-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2.5rem; }
.section-page .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; border: 0; }
.section-page .process-list li,
.section-page .process-list li:hover { min-height: 0; padding: 2.9rem 1.1rem 1.1rem; border: 1px solid #37504a; border-radius: 7px; background: #162723; }
.section-page .process-list li::before { left: 1.1rem; top: .75rem; width: auto; height: auto; font-size: .8rem; color: #9fdecf; }
.section-page .process-list span { color: #edf5f0; font-size: .98rem; font-weight: 600; line-height: 1.35; }
.section-page .process-list p { color: #bfcec9; font-size: .85rem; line-height: 1.6; }
.section-page .process-list-light li,
.section-page .process-list-light li:hover { background: #fff; border-color: var(--section-border); }
.section-page .process-list-light li::before { color: var(--section-accent); }
.section-page .process-list-light span { color: #1f382d; }
.section-page .process-list-light p { color: var(--section-muted); }
.section-page .contact-layout { gap: 2.5rem; }
.section-page #contact .section-heading h2 { font-size: 2rem; max-width: 28ch; }
.section-page #contact .section-heading p:not(.eyebrow) { font-size: .95rem; }
.section-page #contact .contact-panel a { padding-block: .9rem; min-height: 0; }
.section-page #contact .contact-panel a:first-child strong { font-size: 1.6rem; }

/* Game imagery stays intact inside the same card frame. */
.games-index .release-section { background: var(--paper); }
.games-index .release-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem; align-items: center; padding: 1.5rem; border: 1px solid var(--section-border); border-radius: 7px; background: #fff; }
.games-index .release-media { border: 1px solid #d6e0d9; border-radius: 5px; box-shadow: none; }
.games-index .release-media img { width: 100%; height: auto; object-fit: contain; transform: none; }
.games-index .release-copy { max-width: none; }
.games-index .release-copy .eyebrow { margin: 0 0 .7rem; color: var(--section-accent); font-size: .7rem; letter-spacing: .1em; }
.games-index .release-copy h2 { max-width: 22ch; font-family: inherit; font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 600; }
.games-index .release-copy > p:not(.eyebrow) { margin: .85rem 0 0; color: var(--section-muted); font-size: .9rem; line-height: 1.65; }
.games-index .section-actions { gap: .75rem; margin-top: 1.15rem; }
.games-index .text-link { font-size: .85rem; color: #194f3f; border-color: #a2baad; }
.games-index .game-scope-grid article { background: #162723; border-color: #37504a; }
.games-index .game-scope-grid article:last-child,
.games-index .game-scope-grid article:nth-child(2),
.games-index .game-scope-grid article:nth-child(-n + 2) { border-color: #37504a; }
.games-index .game-scope-grid article > span { color: #9fdecf; }
.games-index .game-scope-grid h3 { color: #edf5f0; }
.games-index .game-scope-grid p { color: #bfcec9; }
.games-index .playable-card,
.games-index .playable-card:hover { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--section-border); border-radius: 7px; background: #fff; color: #151a1f; box-shadow: none; transform: none; }
.games-index .playable-preview { height: 145px; min-height: 145px; }
.games-index .playable-card-body { flex: 1; padding: 1.35rem 1.5rem 1.1rem; }
.games-index .playable-card-body .eyebrow { margin: 0 0 .65rem; color: var(--section-accent); font-size: .7rem; letter-spacing: .1em; }
.games-index .playable-card h3 { margin: 0 0 .75rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.games-index .playable-card p:not(.eyebrow) { margin: 0 0 1rem; color: var(--section-muted); font-size: .9rem; line-height: 1.65; }
.games-index .playable-card .playable-note { font-size: .78rem; font-weight: 550; }
.games-index .playable-card .card-action { width: 100%; justify-content: flex-end; margin-top: auto; padding: .8rem 0 0; border: 0; border-top: 1px solid #e0e8e3; border-radius: 0; color: #194f3f; }

@media (max-width: 1000px) {
  .section-page .split-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-page .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 800px) {
  .section-page .page-hero .hero-content { padding-top: 7.5rem; }
  .section-page .stack-card, .section-page .article-card, .section-page .tool-roadmap article, .section-page .game-scope-grid article { padding: 1.25rem; }
  .games-index .release-layout { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.25rem; }
}
@media (max-width: 600px) {
  .section-page .page-hero .hero-content { padding: 6.8rem 0 1.75rem; }
  .section-page .page-hero .hero-media { left: 10%; top: 70px; bottom: 0; height: auto; opacity: .35; }
  .section-page .page-hero::before { background: linear-gradient(90deg, #090c0e, rgba(9,12,14,.75)); }
  .section-page .page-hero .eyebrow { max-width: none; margin-bottom: .7rem; font-size: .7rem; }
  .section-page .page-hero h1 { max-width: none; font-size: clamp(1.85rem, 7.2vw, 2.65rem); }
  .section-page .page-hero .hero-copy { font-size: .9rem; margin-top: .85rem; }
  .section-page .hero-actions { gap: .5rem; margin-top: 1rem; }
  .section-page .hero-actions .button { padding-inline: .8rem; font-size: .8rem; }
  .section-page .section { padding: 1.75rem 0; }
  .section-page .section-heading h2 { font-size: 1.6rem; }
  .section-page .section-heading p:not(.eyebrow) { font-size: .9rem; }
  .section-page .development-stack, .section-page .article-list, .section-page .article-grid, .section-page .deliverable-grid, .section-page .game-scope-grid, .section-page .playable-grid { grid-template-columns: 1fr; gap: .8rem; margin-top: 1.25rem; }
  .section-page .stack-card h3, .section-page .article-list-card h3, .section-page .article-card h3, .section-page .tool-roadmap h3, .section-page .game-scope-grid h3 { font-size: 1.3rem; }
  .section-page .process-list { grid-template-columns: 1fr; gap: .8rem; }
  .section-page #contact .section-heading h2 { font-size: 1.7rem; }
  .games-index .playable-card-body { padding: 1.25rem; }
}
