/* ═══ HOME PAGE REDESIGN ═══ */
:root { --glow: rgba(176,34,51,.45); --card-edge: rgba(255,255,255,.08); }

/* ── nav floats over the photo until you scroll ── */
body.has-hero nav:not(.scrolled) { background: linear-gradient(180deg, rgba(8,8,8,.85), rgba(8,8,8,0)); border-bottom-color: transparent; backdrop-filter: none; box-shadow: none; }

/* ── hero ── */
#hero { min-height: 100svh; display: block; padding: 0; background: #070707; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; filter: saturate(1.08) contrast(1.04); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(7,7,7,.96) 0%, rgba(7,7,7,.82) 34%, rgba(7,7,7,.35) 62%, rgba(7,7,7,.55) 100%),
  linear-gradient(0deg, #070707 0%, rgba(7,7,7,0) 32%),
  radial-gradient(ellipse 60% 50% at 18% 55%, rgba(140,26,40,.38), transparent 70%); }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 25% 55%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 25% 55%, #000 0%, transparent 75%); }
.hero-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 9.5rem 3rem 12rem; text-align: left; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-pill { display: inline-flex; align-items: center; gap: .65rem; padding: .42rem .9rem .42rem .5rem; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); backdrop-filter: blur(10px); border-radius: 999px; font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--silver-light); margin-bottom: 1.6rem; opacity: 0; animation: up .7s .05s forwards; text-decoration: none; transition: border-color .2s, background .2s; }
.hero-pill:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.1); }
.hero-pill b { background: var(--red-bright); color: #fff; padding: .18rem .55rem; border-radius: 999px; letter-spacing: .12em; }
.hero-tag { margin-bottom: 1rem; justify-content: flex-start; color: #ff7381; text-shadow: 0 2px 14px rgba(0,0,0,.9); }
.hero-tag::before { flex: 0 0 2.4rem; min-width: 0; height: 2px; background: var(--red-bright); }
.hero-tag::after { display: none; }
.hero-h1 { font-size: clamp(3.6rem, 10.5vw, 9.5rem); line-height: .86; margin-bottom: 1.4rem; text-shadow: 0 8px 40px rgba(0,0,0,.5); }
.hero-h1 em { display: block; background: linear-gradient(90deg, #ff4d5e, #b02233 70%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hero-sub { margin: 0 0 2.2rem; max-width: 520px; font-size: 1.12rem; color: #c9ced3; }
.hero-btns { justify-content: flex-start; gap: .8rem; }
.hero-btns .btn { padding-inline: 2.2rem; }
.hero-scroll { display: none; }

/* stat strip pinned to the bottom of the hero */
.hero-stats { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; border-top: 1px solid rgba(255,255,255,.12); background: linear-gradient(180deg, rgba(10,10,10,.35), rgba(10,10,10,.82)); backdrop-filter: blur(14px); }
.hero-stats-inner { max-width: 1200px; margin: 0 auto; padding: 0 3rem; display: grid; grid-template-columns: repeat(3, 1fr); }
.hs { padding: 1.6rem 1.5rem 1.6rem 0; border-right: 1px solid rgba(255,255,255,.1); }
.hs + .hs { padding-left: 2rem; }
.hs:last-child { border-right: 0; }
.hs-n { font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hs-n span { color: var(--red-bright); }
.hs-l { margin-top: .4rem; font-weight: 800; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--silver); }

/* ── sponsor marquee ── */
.marquee { border-bottom: 1px solid var(--line); background: #0a0a0a; padding: 1.35rem 0; position: relative; overflow: hidden; }
.marquee-label { text-align: center; font-weight: 800; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--silver); margin-bottom: 1rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #0a0a0a, transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, #0a0a0a, transparent); }
.mq-item { display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 2.6rem; opacity: .7; filter: grayscale(1) brightness(1.5); transition: opacity .25s, filter .25s; text-decoration: none; color: var(--silver-light); font-weight: 900; letter-spacing: .12em; font-size: 1.4rem; }
.mq-item:hover, .mq-item:focus-visible { opacity: 1; filter: none; }
.mq-item img { max-height: 34px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── about: subteam cards with a cursor spotlight ── */
.quick-grid { gap: 12px; background: none; border: 0; }
.qcard { position: relative; overflow: hidden; border: 1px solid var(--card-edge); border-radius: 14px; background: linear-gradient(160deg, #181818, #101010); padding: 1.5rem; --mx: 50%; --my: 0%; }
.qcard::before { content: ''; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(176,34,51,.28), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.qcard:hover::before { opacity: 1; }
.qcard:hover { border-color: rgba(176,34,51,.5); }
.q-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(176,34,51,.14); border: 1px solid rgba(176,34,51,.3); margin-bottom: .9rem; }
.q-name { font-size: 1rem; }

/* ── featured robot ── */
.section.alt { background: radial-gradient(ellipse 70% 80% at 85% 0%, rgba(140,26,40,.16), transparent 60%), var(--surface); }
.featured { gap: 3.5rem; }
.feat-photo { border-radius: 16px; border: 1px solid var(--card-edge); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02); }
.feat-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); pointer-events: none; }
.feat-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 1.4rem; }
.spec { padding: .9rem 1rem; border: 1px solid var(--card-edge); border-radius: 12px; background: rgba(255,255,255,.03); }
.spec b { display: block; font-weight: 900; font-size: 1.6rem; line-height: 1; letter-spacing: -.02em; color: var(--white); }
.spec span { display: block; margin-top: .35rem; font-weight: 800; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }

/* ── bento gallery ── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(150px, 17vw, 240px); gap: 12px; }
.bento figure { position: relative; margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--card-edge); background: var(--surface2); cursor: zoom-in; }
.bento figure:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.bento figure:nth-child(2) { grid-column: span 2; }
.bento figure:nth-child(3) { grid-column: span 2; }
.bento figure:nth-child(4) { grid-column: span 2; }
.bento figure:nth-child(5) { grid-column: span 2; }
.bento figure:nth-child(6) { grid-column: span 2; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.bento figure:hover img { transform: scale(1.06); }
.bento figcaption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .9rem; background: linear-gradient(0deg, rgba(0,0,0,.82), transparent); font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; transform: translateY(8px); opacity: 0; transition: opacity .3s, transform .3s; }
.bento figure:hover figcaption, .bento figure:focus-within figcaption { opacity: 1; transform: none; }
.bento button.zoom { position: absolute; inset: 0; width: 100%; height: 100%; background: none; border: 0; cursor: zoom-in; }
.bento button.zoom:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 14px; }

dialog.lightbox { border: 0; background: transparent; padding: 0; max-width: 96vw; max-height: 94vh; margin: auto; color: #fff; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(6px); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
dialog.lightbox p { margin: .8rem 0 0; text-align: center; font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--silver-light); }
dialog.lightbox .lb-close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: #111; color: #fff; font-size: 1.2rem; cursor: pointer; }

/* ── responsive ── */
@media (max-width: 900px) {
  .hero-inner { padding: 7.5rem 1.5rem 15rem; }
  .hero-photo img { object-position: 70% 30%; }
  .hero-shade { background: linear-gradient(180deg, rgba(7,7,7,.8) 0%, rgba(7,7,7,.55) 40%, #070707 100%), radial-gradient(ellipse 80% 40% at 30% 40%, rgba(140,26,40,.35), transparent 70%); }
  .hero-stats-inner { padding: 0 1.5rem; }
  .hs { padding: 1.1rem .8rem 1.1rem 0; }
  .hs + .hs { padding-left: 1rem; }
  .featured { gap: 2rem; }
  .feat-specs { grid-template-columns: 1fr 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; }
  .bento figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .bento figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 520px) {
  .hero-inner { padding: 6rem 1.25rem 10.5rem; }
  .hero-pill { margin-bottom: 1.1rem; font-size: .66rem; }
  .hero-tag { font-size: .62rem; letter-spacing: .16em; margin-bottom: .8rem; }
  .hero-h1 { font-size: clamp(3.2rem, 17vw, 4.6rem); margin-bottom: 1rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.4rem; }
  .hero-btns .btn { flex: 1 1 calc(50% - .4rem); padding-inline: .6rem; min-height: 46px; white-space: nowrap; font-size: .78rem; letter-spacing: .1em; }
  .hero-btns .btn:first-child { flex-basis: 100%; }
  .hs-l { font-size: .6rem; letter-spacing: .12em; }
  .spec b { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .bento img { transition: none; }
}
