/* Homepage chapters: scoped away from the established header and robot. */
.mech-home section.movement{position:relative;padding-block:clamp(4rem,8vw,8rem);margin-top:0;border-top:0}
.mech-home section.movement:before{content:none}
.mech-home section .eyebrow{font-size:.8rem;letter-spacing:.17em;margin-bottom:2.5rem;color:var(--accent-red)}
.mech-home .chapter-title{font-family:Oxanium,sans-serif;font-size:clamp(2rem,4.4vw,4.8rem);line-height:1.12;letter-spacing:-.045em;margin:0 0 2.5rem;max-width:18ch}
.mech-home .chapter-title em{font-style:normal;color:var(--accent-red)}
.mech-home #origin .origin__statement{font-size:clamp(2.5rem,5.7vw,6rem);line-height:1.12;max-width:20ch;margin-bottom:3rem}
.mech-home #origin .origin__statement em{font-style:normal;color:transparent;-webkit-text-stroke:1px var(--accent-red)}
.mech-home #origin .origin__media{padding:1rem;border:1px solid #e326203b;background:linear-gradient(140deg,var(--surface-red),#090909 65%)}
.mech-home #origin .origin__photo{position:relative}
.mech-home #origin .origin__img{border-radius:0;overflow:hidden;border:1px solid #ffffff20}
.mech-home #origin .origin__img img{filter:saturate(.6);transition:filter .3s}
.mech-home #origin .origin__photo:hover img{filter:saturate(1)}
.mech-home #origin figcaption{font-size:.75rem;padding:1rem 0 .2rem;letter-spacing:.08em}
.mech-home #origin .origin__body{border-left:2px solid var(--signal-red);padding-left:clamp(1.2rem,3vw,3rem);margin-block:3.5rem}
.mech-home #origin .origin__lede{max-width:35ch;font-size:clamp(1.5rem,2.8vw,2.7rem);line-height:1.35}
.mech-home #origin .origin__cols{font-size:1rem;line-height:1.8}
.mech-home .team-principles{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#e3262036;border:1px solid #e3262036;margin-top:3rem}
.mech-home .team-principles>div{padding:2rem 1.5rem;min-width:0;background:var(--surface-dark)}
.mech-home .team-principles strong{display:block;font-family:Oxanium,sans-serif;font-weight:500;font-size:clamp(1.2rem,2vw,2rem);color:var(--text-main);margin-bottom:.7rem}
.mech-home .team-principles span{font-family:Oxanium,sans-serif;font-size:.8rem;color:var(--accent-red);line-height:1.5}
.mech-home #updates .updates{gap:1.2rem;border:0;background:none}
.mech-home #updates .updates__feature{position:relative;border:1px solid #e3262054;border-top:3px solid var(--signal-red);background:radial-gradient(ellipse at 0 100%,var(--surface-red),transparent 70%),var(--surface-dark);min-height:26rem;align-content:start}
.mech-home #updates .updates__feature .link-arrow{align-self:end;margin-top:2rem}
.mech-home #updates .updates__rest{background:none;gap:1rem}
.mech-home #updates .updates__row{border:1px solid #ffffff20;background:var(--surface-dark);padding:1.6rem;transition:border-color .2s,background .2s}
.mech-home #updates .updates__row:hover{border-color:var(--signal-red);background:var(--surface-red)}
.mech-home #updates .updates__row .mono,.mech-home #updates .updates__feature>.mono{font-size:.8rem}
.mech-home #updates .updates__photo{padding:0;background:none}
.mech-home #updates .updates__photo img{border-radius:0;filter:saturate(.55);border-left:3px solid var(--signal-red)}
.mech-home #gallery .gteaser__top{border-left:2px solid var(--signal-red);padding-left:1.5rem;margin-bottom:2.5rem}
.mech-home #gallery .gteaser__top h2{max-width:24ch;font-family:Oxanium,sans-serif;font-size:clamp(2rem,3.5vw,3.7rem)}
.mech-home #gallery .gteaser__strip{height:clamp(13rem,24vw,22rem);gap:1rem}
.mech-home #gallery .gteaser__cell,.mech-home #gallery .gteaser__more{border-radius:0;border-color:#e326203a}
.mech-home #gallery .gteaser__cell:nth-child(even){transform:translateY(1.2rem)}
.mech-home #gallery .gteaser__more{background:var(--surface-red);color:var(--accent-red)}
.mech-home .sponsor-strip{position:relative;margin:2rem var(--gutter) 4rem;border:1px solid #e3262050;border-left:4px solid var(--signal-red);background:linear-gradient(115deg,var(--surface-red),var(--surface-dark) 70%)}
.mech-home .sponsor-strip .wrap{padding-inline:clamp(1.5rem,3vw,3rem)}
.mech-home .sponsor-strip .btn{border-radius:0}
.mech-home .sponsor-strip .btn--solid:after{content:none}
.mech-home .footer{border-top:1px solid #e326204a;background:linear-gradient(180deg,var(--surface-dark),#080808)}
.mech-home .footer__grid{gap:3rem}
.mech-home .footer h4{color:var(--accent-red);font-size:.85rem;letter-spacing:.14em}
.mech-home .footer__grid>div:not(:first-child){border-left:1px solid #ffffff18;padding-left:2rem}
.mech-home .footer__word{letter-spacing:-.07em;-webkit-text-stroke:1.75px #e326206b}
.mech-home .footer a:hover{color:var(--accent-red)}
@media(max-width:900px){.mech-home .team-principles{grid-template-columns:repeat(2,1fr)}.mech-home #gallery .gteaser__strip{height:auto;gap:.6rem}.mech-home #gallery .gteaser__cell:nth-child(even){transform:none}.mech-home #updates .updates__feature{min-height:20rem}.mech-home .footer__grid>div:not(:first-child){padding-left:0;border-left:0}}
@media(max-width:540px){.mech-home .team-principles>div{padding:1.3rem 1rem}.mech-home #origin .origin__media{padding:.5rem}.mech-home .sponsor-strip{margin-inline:1rem}.mech-home section .eyebrow{margin-bottom:1.8rem}}
@media(prefers-reduced-motion:reduce){.mech-home section img,.mech-home #updates .updates__row{transition:none}}

/* Separate photo cards with a balanced, staggered composition. */
.mech-home #origin .origin__media{grid-template-columns:1.35fr 1fr;gap:clamp(1.2rem,3vw,3rem);padding:0;border:0;background:none}
.mech-home #origin .origin__photo{grid-column:auto;margin:0;min-width:0;padding:.65rem;border:1px solid #e326203b;background:var(--surface-dark)}
.mech-home #origin .origin__photo--b{margin-top:clamp(2rem,5vw,5rem)}
.mech-home #origin .origin__photo:before{content:'';position:absolute;top:-1px;left:-1px;width:3rem;height:2px;background:var(--signal-red)}
.mech-home #origin .origin__img{border:0}
.mech-home #origin .origin__img img{display:block;scale:1;transform:none;width:100%;height:auto}
.mech-home #origin figcaption{margin:0;padding:1rem .5rem .4rem;font-size:.875rem;line-height:1.5}
@media(max-width:700px){.mech-home #origin .origin__media{grid-template-columns:1fr;gap:1.5rem}.mech-home #origin .origin__photo--b{margin-top:0}}
/* Tighter section rhythm and a refined, softly animated header. */
.mech-home section.movement{padding-block:clamp(3rem,5vw,5rem)}
.community-sponsors{padding-block:clamp(3rem,5vw,5rem)}
.build-link{margin-top:1rem}.build-notes .origin__cols{max-width:62ch;gap:.65rem}.build-notes h3:not(:first-child){margin-top:1rem}
.mech-hero .build-link{pointer-events:auto}

.rookie-season {margin-block: 2.5rem 1rem}
.season-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1.6rem;
  padding: .8rem .5rem;
  color: var(--accent-red);
  border-bottom: 1px solid var(--edge-dark);
}
.season-heading, .machine-detail, .machine-no {
  font-size: .83rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.season-heading h2 {margin: 0; font: inherit; scroll-margin-top: 6rem}
.season-heading > :last-child, .machine-no {color: var(--text-secondary)}
.season-machine {
  display: grid;
  grid-template-columns: minmax(2rem,5%) minmax(0,1.55fr) minmax(10rem,1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 7rem;
  padding: 1.5rem .5rem;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--edge-dark);
}
.machine-title {display:flex; flex-wrap:wrap; align-items:baseline; gap:.25rem 1rem}
.machine-title h3 {margin:0; font-size:clamp(2.2rem,3.6vw,4rem); line-height:1.05}
.machine-title em {font:500 1rem/1.4 var(--font-sans); color:var(--text-secondary)}
.machine-detail {display:grid; justify-items:start; gap:.5rem; color:var(--text-secondary)}
.cad-label {border:1px solid var(--edge-dark); border-radius:2rem; padding:.3rem .7rem; color:var(--accent-red); font-size:.75rem}
.machine-arrow {font-size:1.45rem; color:var(--accent-red)}
.season-machine:is(:hover,:focus-visible) {background:var(--surface-red)}
.season-machine:focus-visible {outline:2px solid var(--accent-red); outline-offset:2px}
@media(max-width:640px) {
  .season-machine {grid-template-columns:2ch 1fr auto; gap:.7rem; padding-block:1rem}
  .machine-detail {grid-column:2; grid-row:2}
  .machine-arrow {grid-column:3; grid-row:1 / span 2}
}

.blueprint-field .model-page-link {pointer-events:auto;z-index:3;text-decoration:underline}
.robot-file {padding-block:clamp(7rem,12vw,11rem) 4rem}
.robot-file > a {color:var(--accent-red)}
.robot-file h1 {font-size:clamp(3rem,8vw,8rem);line-height:1.05;margin:1rem 0}
.robot-file > p {color:var(--text-secondary);max-width:54ch}
.robot-drawing {position:relative;margin:2rem 0;background:radial-gradient(ellipse at center,var(--surface-red),var(--surface-dark) 75%);border:1px solid var(--edge-dark)}
.robot-drawing canvas {display:block;width:100%;height:clamp(18rem,51vw,36rem);touch-action:pan-y;cursor:grab}
.robot-drawing figcaption {display:flex;justify-content:space-between;padding:.8rem 1rem;color:var(--accent-red)}
.robot-file dl {margin-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:1rem}
.robot-file dl div {border-top:1px solid var(--edge-dark);padding-top:1rem}
.robot-file dt {color:var(--accent-red)}
.robot-file dd {margin:.4rem 0 0}
