/* Shared section layouts and alternating site surfaces. */
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 44px;
  margin-top: 1.25rem;
  border-bottom: 1px solid currentColor;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.4;
}
.page-link span { transition: transform .18s ease; }
.page-link:hover span { transform: translateX(4px); }
.page-link:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.drone-explorer > .page-link { margin-top: .75rem; }
.home-waypoint {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  align-items: center;
  gap: clamp(2rem,4vw,5rem);
  padding: 3.5rem var(--pad);
  color: #172b46;
  background: #fff;
  border-top: 1px solid rgba(23,43,70,.16);
}
/* Alternating section surfaces provide the boundary between homepage topics. */
body .home-waypoint { border-top: 0; }
.home-waypoint h2, .automation-heading h2 {
  margin: 0 0 1.25rem;
  font-family: Outfit,sans-serif;
  font-size: clamp(2rem,3vw,3.3rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.home-waypoint p {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.05rem,1.5vw,1.65rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: -.015em;
}
.timeline-preview { width: 100%; max-width: 42rem; justify-self: center; }
.timeline-preview-heading, .timeline-preview-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8rem;
  line-height: 1.5;
}
.timeline-preview-heading { letter-spacing: .1em; text-transform: uppercase; }
.timeline-preview-caption { align-items: center; color: #58677b; }
.timeline-preview svg { display: block; width: 100%; height: auto; margin: .75rem 0; }
.timeline-flight-route, .timeline-flight-trail { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.timeline-flight-route { stroke: #b5c0ce; stroke-dasharray: 4 8; }
.timeline-flight-trail { stroke: #172b46; opacity: .7; }
.timeline-flight-waypoints circle { fill: #fff; stroke: #172b46; stroke-width: 1.5; }
.timeline-flight-waypoints .timeline-flight-start { fill: #172b46; }
.timeline-flight-controls { display: flex; align-items: center; gap: .75rem; }
.timeline-flight-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 54px; padding: 0 .5rem; border: 1px solid rgba(23,43,70,.2); border-radius: 4px; color: #172b46; background: #fff; font: inherit; cursor: pointer; }
.timeline-flight-toggle[hidden] { display: none; }
.timeline-flight-toggle:hover { border-color: #172b46; }
.timeline-flight-toggle:focus-visible { outline: 2px solid #172b46; outline-offset: 3px; }
.home-team-photo { width: 100%; max-width: 36rem; margin: 0; justify-self: center; }
.home-team-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.home-team-photo figcaption { margin-top: .65rem; color: #58677b; font-size: .75rem; }
.home-team-links { display: flex; flex-wrap: wrap; gap: 0 2rem; }
.home-team-links .page-link-secondary { color: #58677b; }
.home-sponsoring { grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); }
.home-sponsoring-copy { min-width: 0; }
.home-sponsoring-eyebrow { display: block; margin-bottom: 1rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.home-sponsoring h2 { font-size: clamp(1.8rem,2.6vw,2.7rem); }
.home-sponsoring-copy > p { max-width: 32rem; font-size: 1.1rem; }
.sponsoring-benefits { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.sponsoring-benefits li { display: flex; gap: 1rem; align-items: start; }
.sponsoring-benefits .benefit-number { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 1px solid var(--surface-line); border-radius: 50%; font-size: .65rem; }
.sponsoring-benefits h3 { margin: 0 0 .25rem; font-size: 1rem; line-height: 1.4; font-weight: 500; }
.sponsoring-benefits p { margin: 0; font-size: .9rem; line-height: 1.5; }
.home-sponsoring-links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.sponsoring-contact { width: min(100%,260px); margin: 0; justify-self: center; }
.sponsoring-contact img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; }
.sponsoring-contact figcaption { display: grid; gap: .3rem; margin-top: 1rem; }
.sponsoring-contact figcaption strong { font-size: 1.1rem; font-weight: 500; }
.sponsoring-contact figcaption span { font-size: .8rem; }
body .home-aircraft { transition-duration: .3s; }
body .home-signature { transition-duration: .4s; }
.automation-section { padding: 4rem var(--pad); color: #172b46; background: #fff; }
.automation-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.automation-heading h2 { font-size: clamp(1.7rem,2.6vw,2.6rem); }
.automation-heading p { max-width: 43rem; margin: 0; font-size: 1rem; line-height: 1.65; font-weight: 300; }
.automation-map { margin: 0; }
.automation-board {
  position: relative;
  isolation: isolate;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(23,43,70,.18);
  border-radius: 10px;
  background: #f9fafb;
  background-image: radial-gradient(rgba(23,43,70,.13) .8px,transparent .8px);
  background-size: 20px 20px;
}
.automation-edges { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; pointer-events: none; }
.automation-edges .automation-edge { fill: none; stroke: #657489; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.automation-edges .automation-feedback { stroke-dasharray: 5 5; }
.automation-edge-label { fill: #58677b; font: 12px Outfit,sans-serif; text-anchor: middle; }
.automation-row { display: flex; justify-content: center; }
.automation-row + .automation-row, .automation-work-stage + .automation-row, .automation-row + .automation-work-stage { margin-top: 3rem; }
.automation-work-stage { display: contents; }
.automation-work-stage > .automation-row { margin-top: 3rem; }
.automation-node { width: min(100%,22rem); padding: 1rem 1.1rem; border: 1px solid #172b46; border-radius: 8px; background: #fff; }
.automation-node h3 { margin: .3rem 0 .5rem; font-family: Outfit,sans-serif; font-size: 1.05rem; font-weight: 500; line-height: 1.25; text-transform: none; }
.automation-node p { margin: 0; color: #58677b; font-size: .8rem; line-height: 1.5; }
.automation-node .node-kicker { display: block; color: #58677b; font-size: .65rem; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.automation-node-root { color: #fff; background: #172b46; }
.automation-node-root p, .automation-node-root .node-kicker { color: #fff; }
.automation-node-root .node-kicker { opacity: .8; }
.automation-discipline summary { list-style: none; cursor: default; }
.automation-discipline summary::-webkit-details-marker { display: none; }
.automation-discipline-title { display: block; margin: .3rem 0 .5rem; font-size: 1.05rem; font-weight: 500; line-height: 1.25; }
.automation-discipline-icon { display: none; }
.automation-simulation-check { display: flex; align-items: center; gap: 1rem; }
.automation-simulation-check p { flex: 1; }
.automation-simulation-logo { display: block; width: 96px; height: auto; flex-shrink: 0; filter: none; }
.automation-branches { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.automation-branches .automation-node { width: auto; }
.automation-map > figcaption { margin: 1rem 0 0; color: #58677b; font-size: .8rem; line-height: 1.6; }
.automation-map > figcaption b { color: #172b46; font-weight: 500; }
/* Concise summary of the existing preliminary statement, within the Project page. */
body .project-ethics { padding: 3rem var(--pad); border-bottom: 1px solid var(--surface-line); scroll-margin-top: 6rem; }
.project-ethics-inner { max-width: 74rem; margin-inline: auto; }
.project-ethics-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 3rem; }
body .project-ethics-heading h2 { margin: 0; font-family: Outfit,sans-serif; font-size: clamp(1.7rem,2.6vw,2.6rem); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
body .project-ethics-heading p { max-width: 34rem; margin: 0; font-size: 1.05rem; font-weight: 300; line-height: 1.65; }
.project-ethics-heading mark { white-space: nowrap; }
.project-ethics-principles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.project-ethics-principles li { min-width: 0; padding-top: 1rem; border-top: 1px solid var(--surface-line); }
body .project-ethics-principles h3 { margin: 0 0 .65rem; font-size: 1.05rem; font-weight: 500; line-height: 1.4; }
body .project-ethics-principles p { margin: 0; font-size: .95rem; font-weight: 300; line-height: 1.65; }
.project-ethics-document { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; }
.project-ethics-document .page-link { margin-top: 0; }
.project-ethics-document small { font-size: .75rem; }
body[class] .project-ethics[data-surface] :is(.project-ethics-principles p,.project-ethics-document small) { color: var(--surface-muted); }
@media (max-width:850px) {
  .project-ethics-heading { grid-template-columns: minmax(0,1fr); gap: 1rem; }
}
@media (max-width:700px) {
  body .project-ethics { padding: 2.25rem max(20px,env(safe-area-inset-right)) 2.25rem max(20px,env(safe-area-inset-left)); }
  body .project-ethics-heading p { font-size: 1rem; }
  .project-ethics-principles { grid-template-columns: minmax(0,1fr); gap: 1.25rem; margin-top: 1.5rem; }
  .project-ethics-document { flex-direction: column; align-items: start; margin-top: 1rem; }
}
/* Six page links remain balanced around the existing centered wordmark. */
@media (min-width:1025px) {
  body .site-header .nav-side { gap: clamp(12px,1.5vw,24px); }
}
@media (max-width:1100px) and (min-width:851px) {
  .automation-board { padding-inline: 1.25rem; }
  .automation-branches { gap: .6rem; }
  .automation-branches .automation-node { padding: .9rem .75rem; }
}
@media (max-width:850px) {
  .automation-heading { display: block; }
  .automation-board { padding: 1.25rem 1rem; }
  .automation-row { justify-content: stretch; }
  .automation-node { width: 100%; }
  .automation-row + .automation-row, .automation-row + .automation-work-stage, .automation-work-stage + .automation-row { margin-top: 2rem; }
  .automation-work-stage { display: block; padding: 1rem; border: 1px solid var(--surface-line,rgba(23,43,70,.2)); border-radius: 8px; background: var(--surface-paper,#fff); }
  .automation-work-stage [data-automation-node="pipeline"] { padding: 0 0 .75rem; border: 0; border-radius: 0; }
  .automation-work-stage > .automation-row { margin-top: 0; }
  .automation-branches { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .automation-branches .automation-node { width: 100%; padding: 0; border: 0; border-top: 1px solid var(--surface-line,rgba(23,43,70,.2)); border-radius: 0; background: transparent; }
  .automation-discipline summary { position: relative; padding: .8rem 1.5rem .8rem 0; min-height: 44px; cursor: pointer; }
  .automation-discipline summary .node-kicker { display: none; }
  .automation-discipline-title { margin: 0; font-size: .95rem; }
  .automation-discipline p { padding: 0 0 .85rem; }
  .automation-discipline-icon { display: block; position: absolute; top: 50%; right: 0; margin-top: -.65rem; font-size: 1.2rem; line-height: 1.2; font-weight: 300; }
  .automation-discipline[open] .automation-discipline-icon { transform: rotate(45deg); }
  .automation-discipline summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  .automation-simulation-logo { width: 82px; }
}
@media (max-width:700px) {
  .home-waypoint { grid-template-columns: minmax(0,1fr); gap: 2rem; padding: 2.75rem max(20px,env(safe-area-inset-right)) 2.75rem max(20px,env(safe-area-inset-left)); }
  .home-waypoint h2 { font-size: clamp(1.7rem,7.5vw,2rem); margin-bottom: 20px; }
  .home-waypoint p { font-size: 1rem; }
  .home-team-photo { max-width: none; }
  .home-sponsoring-copy > p { font-size: 1rem; }
  .sponsoring-contact { display: grid; grid-template-columns: 100px minmax(0,1fr); align-items: center; gap: 1.25rem; width: 100%; }
  .sponsoring-contact figcaption { margin: 0; }
  .sponsoring-benefits p { font-size: .9rem; }
  .automation-section { padding: 2.75rem max(20px,env(safe-area-inset-right)) 2.75rem max(20px,env(safe-area-inset-left)); }
  .automation-heading { margin-bottom: 1.5rem; }
}
@media (min-width:801px) {
  .home-timeline.home-waypoint-reverse { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
  .home-waypoint-reverse > :first-child { grid-column: 2; grid-row: 1; }
  .home-waypoint-reverse > :last-child { grid-column: 1; grid-row: 1; }
}
@media (max-width:800px) {
  .home-waypoint { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce) {
  .page-link span { transition: none; }
}

/* Explicit section surfaces support both alternating colours and the larger navy homepage area. */
body[class] :is(section,footer)[data-surface="light"] {
  --surface-ink: #172b46;
  --surface-paper: #fff;
  --surface-muted: #58677b;
  --surface-line: rgba(23,43,70,.22);
  --surface-dot: rgba(23,43,70,.13);
}
body[class] :is(section,footer)[data-surface="dark"] {
  --surface-ink: #fff;
  --surface-paper: #172b46;
  --surface-muted: #bdc9d8;
  --surface-line: rgba(255,255,255,.3);
  --surface-dot: rgba(255,255,255,.13);
}
body[class] :is(section,footer)[data-surface] {
  color: var(--surface-ink);
  background: var(--surface-paper);
  border-color: var(--surface-line);
  --beige: var(--surface-ink);
  --light-line: var(--surface-line);
}
body[class] :is(section,footer)[data-surface] :is(h1,h2,h3,p,span,a,b,strong,small,dt,dd,figcaption,summary) { color: inherit; }
body[class] :is(section,footer)[data-surface] mark { color: var(--surface-paper); background: var(--surface-ink); padding: .05em .18em; border-radius: .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
body[class] .home-sponsoring[data-surface] :is(.home-sponsoring-eyebrow,.sponsoring-benefits p,.sponsoring-contact figcaption span) { color: var(--surface-muted); }
body[class] .home-team[data-surface] :is(.page-link-secondary,.home-team-photo figcaption) { color: var(--surface-muted); }
body[class] .home-timeline[data-surface] .timeline-preview-caption { color: var(--surface-muted); }
body[class] .home-timeline[data-surface] .timeline-flight-route { stroke: var(--surface-muted); }
body[class] .home-timeline[data-surface] .timeline-flight-trail { stroke: var(--surface-ink); }
body[class] .home-timeline[data-surface] .timeline-flight-waypoints circle { fill: var(--surface-paper); stroke: var(--surface-ink); }
body[class] .home-timeline[data-surface] .timeline-flight-waypoints .timeline-flight-start { fill: var(--surface-ink); }
body[class] .home-timeline[data-surface] .timeline-flight-toggle { color: var(--surface-ink); background: var(--surface-paper); border-color: var(--surface-line); }
body[class] .home-timeline[data-surface] .timeline-flight-toggle:hover { border-color: var(--surface-ink); }
body[class] .home-timeline[data-surface] .timeline-flight-toggle:focus-visible { outline-color: var(--surface-ink); }
body[class] .automation-section[data-surface] .automation-board { border-color: var(--surface-line); background-color: var(--surface-paper); background-image: radial-gradient(var(--surface-dot) .8px,transparent .8px); }
body[class] .automation-section[data-surface] .automation-edges .automation-edge { stroke: var(--surface-muted); }
body[class] .automation-section[data-surface] .automation-edges marker path { stroke: var(--surface-muted); }
body[class] .automation-section[data-surface] .automation-edge-label { fill: var(--surface-muted); }
body[class] .automation-section[data-surface] .automation-node { color: var(--surface-ink); background: var(--surface-paper); border-color: var(--surface-line); }
body[class] .automation-section[data-surface] .automation-node :is(p,.node-kicker) { color: var(--surface-muted); }
body[class] .automation-section[data-surface] .automation-node-root { color: var(--surface-paper); background: var(--surface-ink); border-color: var(--surface-ink); }
body[class] .automation-section[data-surface] .automation-node-root :is(p,.node-kicker) { color: inherit; }
body[class] .automation-section[data-surface] .automation-map > figcaption { color: var(--surface-muted); }
body[class] .automation-section[data-surface] .automation-map > figcaption b { color: var(--surface-ink); }

/* Compact social previews keep both channels visible and usable on small screens. */
body .home-social .social-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.75rem; }
body .home-social .social-heading > .page-link { margin-top: 0; flex-shrink: 0; }
body .home-social .social-heading h2 { margin: 0 0 1rem; font-size: clamp(2rem,3vw,3.3rem); }
body .home-social .social-heading p { margin: 0; font-size: 1.1rem; line-height: 1.65; }
body .home-social .amz-social-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; max-width: none; margin: 0; padding: 0; gap: 2rem; overflow: visible; scroll-snap-type: none; }
body .home-social .amz-social-card { display: flex; flex-direction: column; align-self: stretch; min-width: 0; border-color: rgba(23,43,70,.22); box-shadow: none; transition: none; }
body .home-social .amz-social-card:hover { transform: none; box-shadow: none; }
body .home-social .amz-social-caption { display: flex; flex-direction: column; flex: 1; padding-top: 1.25rem; }
body .home-social .amz-social-caption h3 { margin: 0 0 .75rem; font-size: 1.2rem; font-weight: 500; }
body .home-social .amz-social-caption p { margin: 0 0 1rem; color: #58677b; font-size: .95rem; line-height: 1.6; }
body .home-social .amz-social-caption .page-link { align-self: start; margin-top: auto; padding-top: .5rem; }
body .home-social .social-media-preview { position: relative; display: block; border-radius: 8px; overflow: hidden; }
body .home-social .social-media-preview:focus-visible { outline: 2px solid #172b46; outline-offset: 4px; }
body .home-social .social-media-preview .amz-social-photo { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; object-position: center 65%; }
body .home-social .social-preview-play { position: absolute; inset: auto 1rem 1rem auto; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(23,43,70,.65); }
body .home-social .social-preview-play svg { width: 24px; height: 24px; fill: #fff; }
body .home-social .project-report { max-width: none; margin-top: 2rem; }
@media (max-width:700px) {
  body .home-social .amz-social-cards { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  body .home-social .social-heading h2 { font-size: clamp(1.7rem,7.5vw,2rem); }
  body .home-social .social-heading p { font-size: 1rem; }
}
