/* Hotwire Robotics. Colours and type are taken from the original site. */
:root {
  --black: #000;
  --dark: #2d2d2d;
  --mid: #575757;
  --light: #e8e8e8;
  --grey: #ccc;
  --orange: #f1833f;
  --orange-bright: #fc6000;
  --orange-soft: #e58d50;
  --orange-deep: #c2540f;
  --heading: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --body: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  --tech: "Play", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--dark); color: var(--light); font: 400 17px/1.55 var(--body); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 700; line-height: 1.12; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--orange); }
/* Words that fade from flame yellow to orange (used on "DEVELOPING LEADERS." on the home page).
   Add class="flame-text" to a span to use it elsewhere. */
.flame-text { background: linear-gradient(90deg, #ffd23f, #fc6000 75%); -webkit-background-clip: text; background-clip: text;
  color: transparent; padding-right: .12em; }
.italic { font-style: italic; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); }
/* Thin flame strip under the header (yellow -> orange -> red, like the team shirts) */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, #ffd23f 0%, #fc6000 50%, #c8200e 100%); pointer-events: none; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.logo img { width: 190px; }
.nav-list { display: flex; gap: 34px; list-style: none; }
.nav-list a { font: italic 700 16px/1 var(--tech); letter-spacing: .85px; color: var(--light); text-decoration: none; white-space: nowrap; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--orange-bright); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--light); cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; display: block; fill: currentColor; }

/* Buttons */
.btn { display: inline-block; padding: 11px 18px; border-radius: 8px; background: var(--orange-deep); color: #fff; font: 700 17px/1.2 var(--heading); letter-spacing: .3px; text-decoration: none; border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: #a84609; }
.btn-dark { background: var(--dark); }
.btn-dark:hover { background: var(--black); }
.btn-outline { background: transparent; border: 2px solid #fff; padding: 9px 16px; }
.btn-outline:hover { background: #fff; color: #111; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Section headings with flanking rules */
.ruled { display: flex; align-items: center; gap: 28px; font-size: 40px; color: var(--light); text-align: center; justify-content: center; }
.ruled::before, .ruled::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .5; }

.icon { fill: var(--orange-bright); width: 72px; height: 72px; display: block; }

/* Home hero */
.hero { position: relative; background: var(--dark) center right / cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(45,45,45,.97) 22%, rgba(45,45,45,.55) 48%, rgba(45,45,45,0) 68%); }
.hero-home { min-height: 540px; display: flex; align-items: center; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.hero-home::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 110px; background: var(--dark); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 60px); color: #fff; font-style: italic; }
.hero p { max-width: 470px; margin: 14px 0 26px; color: #fff; }

/* Stats */
.stats { background: var(--dark); padding: 12px 0 44px; }
.stats ul { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; }
.stats li { text-align: center; padding: 6px 10px; border-left: 1px solid rgba(232,232,232,.4); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font: italic 400 50px/1.15 var(--heading); color: var(--light); }

/* Three-up feature rows */
.features { padding: 44px 0 56px; }
.features-mid { background: var(--mid); }
.features-dark { background: var(--dark); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 34px; text-align: center; }
.feature-grid .icon { margin: 0 auto 14px; }
.feature-grid h3 { font-size: 22px; color: #fff; margin-bottom: 10px; }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > * { min-width: 0; }
.split-img { position: relative; min-height: 340px; }
.split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-white { background: #fff; color: #111; display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: center; padding: 44px clamp(24px, 4vw, 56px); }
.split-white .btn { margin-top: 20px; }
.split-orange { background: var(--orange-deep); color: #fff; display: flex; align-items: center; padding: 30px clamp(24px, 7vw, 90px); font-size: 18px; }

.split-weeks { grid-template-columns: 1fr 2fr; }
.split-weeks .split-img { min-height: 400px; }
.split-orange h2 { font-size: clamp(30px, 3.6vw, 40px); font-style: italic; color: var(--light); margin-bottom: 14px; max-width: 560px; }
.split-orange h2 span { color: #000; }

/* Sponsors */
.sponsors { background: var(--grey); color: #111; padding: 46px 0 50px; text-align: center; }
.sponsors h2 { font-size: 40px; color: #000; }
.sponsors p { color: #8f3b08; margin: 8px 0 28px; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 34px; list-style: none; margin-bottom: 30px; }
.logo-grid a { display: flex; align-items: center; justify-content: center; height: 92px; transition: transform .15s; }
.logo-grid a:hover { transform: scale(1.04); }
.logo-grid img { width: auto; height: auto; max-width: min(100%, 230px); max-height: 100%; }

/* Page intro */
.intro { padding: 56px 0; }
.intro h1 { font-size: clamp(36px, 5vw, 52px); color: #fff; font-style: italic; margin-bottom: 14px; }
.intro h2.sub { font-size: clamp(30px, 4vw, 44px); color: #fff; font-style: italic; margin: 34px 0 12px; }

/* About */
.about-text { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: start; }
.intro .about-text h2.sub { margin-top: 0; }
.culture { background: var(--mid); padding: 46px 0 52px; }
.culture-lead { text-align: center; font-style: italic; margin: 14px 0 32px; }
.culture-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; margin: 0; padding-left: 20px; }
.culture-list li::marker { color: var(--orange); }
.wins { background: #fff; color: #111; padding: 42px 0 46px; text-align: center; }
.wins h2 { color: #000; font-size: 40px; margin-bottom: 24px; }
.banners { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0 0 6px; }
/* Blue banners, drawn the way The Blue Alliance draws them. Text sizes scale with each banner's width (cqw). */
.banner { container-type: inline-size; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.banner { position: relative; aspect-ratio: 400 / 554; background: #0f4bcb; color: #fff; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 91%, 0 100%); }
.banner img { display: block; width: 54%; height: auto; margin: 14cqw auto 9cqw; }
.banner-award { display: block; font: italic 700 13cqw/1.1 var(--heading); text-transform: uppercase; letter-spacing: .02em; }
.banner-event { display: block; margin: 10cqw 7cqw 0; font: 500 9.5cqw/1.2 var(--heading); text-transform: uppercase; }
.banner-event.long { margin-top: 7cqw; font-size: 8.3cqw; }
@media (max-width: 680px) { /* phones: 3 per row, centered, with bigger text */
  .banners { display: flex; flex-wrap: wrap; justify-content: center; }
  .banner { width: calc((100% - 24px) / 3); }
  .banner-award { font-size: 14cqw; }
  .banner-event { font-size: 10.5cqw; margin-inline: 5cqw; }
  .banner-event.long { font-size: 9.5cqw; }
}
.team-title { padding: 30px 24px 26px; background: #000; }

/* Team */
.team-layout { display: grid; grid-template-columns: 38% 1fr; background: #333; }
.team-lists { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; padding: 44px clamp(24px, 4vw, 56px); }
.team-lists h2 { font-size: 24px; font-style: italic; text-align: center; margin-bottom: 18px; }
.names { list-style: none; columns: 2; column-gap: 24px; text-align: center; }
.names-mentors { columns: 1; font-weight: 600; }
.gallery { position: relative; background: #333; padding: 14px 0 26px; }
.gallery-track { display: flex; gap: 20px; padding: 0 40px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; scroll-padding: 0 40px; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: none; height: 251px; width: auto; max-width: none; scroll-snap-align: start; }
.gallery-arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -28px; padding: 10px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); cursor: pointer; }
.gallery-arrow svg { display: block; width: 24px; height: 24px; fill: #fff; }
.gallery-arrow:hover { background: var(--orange-bright); }
.gallery-arrow:disabled { opacity: 0; pointer-events: none; }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }

/* Sponsors page */
.logo-wall { background: #aaa; padding: 44px 0; }
.logo-wall .logo-grid { margin: 0; }
.become { background: var(--mid); padding: 46px 0 50px; text-align: center; }
.become h2 { font-size: 40px; font-style: italic; color: #fff; margin-bottom: 14px; }
.become p { max-width: 720px; margin: 0 auto 22px; }
.trailer { background: var(--dark); padding: 44px 0; }
.trailer .wrap { display: grid; grid-template-columns: 1fr 42%; gap: 40px; align-items: center; }
.trailer h2 { font-size: 40px; font-style: italic; color: #fff; margin-bottom: 14px; }
.trailer p + p { margin-top: 14px; }

/* Join */
.hero-join { min-height: 440px; display: flex; align-items: center; }
.hero-join .hero-inner { padding: 48px 24px; }
.hero-join p { margin: 12px 0 18px; }
.hero-join .lets { font: italic 700 22px/1.25 var(--heading); color: #fff; margin-bottom: 18px; }
.foryou-panel { background: var(--mid); padding: 44px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.foryou-panel h2 { font-size: 34px; text-align: center; color: #fff; margin-bottom: 22px; }
.dots { padding-left: 20px; }
.dots li { margin: 6px 0; }
.note { display: flex; gap: 14px; align-items: center; margin-top: 24px; font-weight: 600; color: #fff; }
.note svg { width: 42px; height: 54px; fill: var(--orange-bright); flex: none; }
.expect { background: var(--dark); padding: 42px 0 46px; }
.big-title { font-size: clamp(32px, 4.4vw, 46px); font-style: italic; color: #fff; text-align: center; }
.expect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 30px; }
.expect-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.expect-head .icon { width: 50px; height: 50px; flex: none; }
.expect-head h3 { color: var(--orange); font-size: 19px; font-weight: 600; }
.video-band { background: #000; }
.video-band video { width: 100%; max-height: 620px; object-fit: cover; }
.roles { background: #000; padding: 42px 0 46px; text-align: center; }
.roles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 28px 0 34px; text-align: left; }
.roles-col { padding: 6px 40px; }
.roles-col + .roles-col { border-left: 1px solid rgba(232,232,232,.35); }
.roles-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.roles-head .icon { width: 44px; height: 44px; flex: none; }
.roles-head h3 { color: var(--orange); font-size: 21px; font-weight: 600; }
.roles-photo { width: 100%; height: 270px; object-fit: cover; margin-bottom: 18px; }
.role { margin-bottom: 12px; padding-left: 58px; }
.role small { display: block; font-size: 13px; font-style: italic; line-height: 1.2; opacity: .85; }
.faq { background: var(--dark); padding: 42px 0 46px; }
.faq-inner { max-width: 880px; margin: 0 auto; }
.faq-title { display: flex; align-items: center; gap: 14px; font-size: 40px; font-style: italic; color: #fff; margin-bottom: 12px; }
.faq-title .icon { width: 42px; height: 42px; }
.faq details { border-bottom: 1px solid rgba(232,232,232,.45); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-size: 19px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--light); border-bottom: 2px solid var(--light); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 2px 8px; }
.faq details p:last-child { padding-bottom: 20px; }
.faq-more { margin-top: 22px; }
.quote { position: relative; background: #000 center / cover no-repeat; padding: 70px 24px; }
.quote blockquote { max-width: 520px; margin: 0 auto; background: rgba(45,45,45,.9); padding: 34px; text-align: center; }
.quote p { font: 500 30px/1.2 var(--heading); color: #fff; }
.quote cite { display: block; margin-top: 14px; font-style: normal; }

/* Camp */
.camp-hero { padding: 42px 0 36px; }
.camp-hero-layout { position: relative; padding: 42px 0; }
.camp-hero-photo { margin-left: 28%; width: 72%; height: 400px; object-fit: cover; }
.camp-card { background: var(--mid); padding: 36px; }
.camp-hero-layout .camp-card { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 50%; }
.camp-card h1 { font-size: clamp(32px, 4vw, 44px); font-style: italic; color: #fff; margin-bottom: 18px; }
.camp-lede { max-width: 780px; margin: 0 auto; text-align: center; color: #fff; }
.camp-lede p + p { margin-top: 18px; }
.camp-gallery { padding-bottom: 46px; }
.camp-gallery h2 { font-size: 30px; font-style: italic; text-align: center; margin: 34px 0 18px; }
.photo-row { display: grid; grid-template-columns: 1fr 1.45fr 1.45fr; gap: 10px; }
.photo-row.flip { grid-template-columns: 1.45fr 1fr 1.45fr; }
.photo-row.last { grid-template-columns: 1.45fr 1.45fr 1fr; }
.photo-row img { width: 100%; height: 280px; object-fit: cover; }
.camp-next { background: var(--mid); padding: 44px 0; }
.camp-next-layout { position: relative; padding: 44px 0; }
.camp-next-photo { width: 64%; height: 340px; object-fit: cover; }
.camp-next-layout .camp-card { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 58%; background: var(--dark); }
.camp-card .btn { margin-top: 18px; }

/* Rebuilt */
.rebuilt { text-align: center; }
.rebuilt img { margin: 18px auto; max-width: 480px; width: 100%; }

/* 404 */
.notfound { padding: 90px 0; text-align: center; }
.notfound-code { font: 700 14px var(--tech); letter-spacing: 2px; color: var(--orange); margin-bottom: 10px; }
.notfound h1 { font-size: 50px; font-style: italic; color: #fff; margin-bottom: 12px; }
.notfound .btn { margin-top: 22px; }

/* Footer */
.site-footer { background: var(--black); color: #fff; padding: 46px 0 24px; font-family: var(--tech); font-size: 16px; }
.footer-note { margin: 22px auto 0; font-size: 14px; color: #bbb; }
.footer-grid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.site-footer h2 { font-size: 46px; font-style: italic; color: #fff; }
.site-footer h2::after { content: ""; display: block; width: 76px; height: 2px; background: #fff; margin: 8px 0 12px; }
.site-footer p { margin-bottom: 14px; }
.social { display: flex; gap: 12px; list-style: none; margin-top: 22px; }
.social img { width: 34px; height: 34px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; font-family: var(--body); }
.contact-form label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; background: var(--light); color: #111; border: 0; border-radius: 6px; padding: 10px 12px; font: 400 15px/1.3 var(--body); }
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form ::placeholder { color: #555; }
.contact-form .btn { width: 100%; font: 500 16px/1.2 var(--body); }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; min-height: 1.4em; font-size: 15px; }

/* Tablet */
@media (max-width: 960px) {
  .site-header .wrap { min-height: 66px; flex-wrap: wrap; gap: 0; }
  .logo img { width: 150px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; padding: 4px 0 14px; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 12px 0; }
  .about-text { grid-template-columns: 1fr; gap: 28px; }
  .banners { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .team-layout, .split, .split-weeks { grid-template-columns: 1fr; }
  .team-layout > .split-img { min-height: 0; }
  .team-layout > .split-img img { position: static; height: auto; }
}

/* Phone */
@media (max-width: 680px) {
  .culture-list { grid-template-columns: 1fr; gap: 14px; }
  .wins h2 { font-size: 30px; }
  body { font-size: 16px; }
  .ruled, .sponsors h2 { font-size: 30px; }
  .ruled { gap: 14px; }
  .hero::before { background: rgba(45,45,45,.72); }
  .hero-home { min-height: 480px; }
  .stats ul { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stats li:nth-child(odd) { border-left: 0; }
  .stats li:last-child { grid-column: 1 / -1; }
  .feature-grid, .expect-grid, .roles-grid, .trailer .wrap, .team-lists { grid-template-columns: 1fr; }
  .expect-grid > div, .roles-grid { text-align: center; }
  .expect-head, .roles-head { flex-direction: column; gap: 8px; text-align: center; }
  .expect .dots { padding-left: 0; list-style: none; }
  .role { padding-left: 0; }
  .roles-col { padding: 16px 0; }
  .roles-col + .roles-col { border-left: 0; border-top: 1px solid rgba(232,232,232,.35); }
  .split-white { grid-template-columns: 1fr; justify-items: start; }
  .split-white img { width: 130px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .logo-grid a { height: 70px; }
  .gallery-track { gap: 12px; padding: 0 16px; scroll-padding: 0 16px; }
  .gallery-track img { height: 190px; }
  .gallery-arrow { display: none; }
  .photo-row, .photo-row.flip, .photo-row.last { grid-template-columns: 1fr; }
  .photo-row img { height: 230px; }
  .camp-hero-layout, .camp-next-layout { padding: 0; }
  .camp-hero-photo, .camp-next-photo { margin: 0; width: 100%; height: 240px; }
  .camp-hero-layout .camp-card, .camp-next-layout .camp-card { position: static; transform: none; width: 100%; padding: 26px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .full { grid-column: auto; }
  .quote p { font-size: 24px; }
  .faq summary { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html, .gallery-track { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Resources */
.res-hero { background: var(--dark); padding: 54px 0 40px; text-align: center; }
.res-hero h1 { font-size: clamp(38px, 5.6vw, 56px); font-style: italic; color: #fff; }
.res-hero p { max-width: 640px; margin: 14px auto 0; color: #fff; }
.res-list { background: var(--black); padding: 10px 0 50px; }
.res-list h2 { color: var(--orange); font-size: 26px; font-style: italic; margin: 34px 0 16px; }
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.res-card { background: var(--dark); border-left: 4px solid var(--orange-deep); padding: 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.res-card h3 { color: #fff; font-size: 21px; font-weight: 600; }
.res-card p { color: var(--light); font-size: 15px; flex: 1; }
.res-soon { font: italic 700 13px/1 var(--tech); letter-spacing: .6px; text-transform: uppercase; color: #bbb; border: 1px solid #666; padding: 6px 10px; margin-top: 6px; }
.res-card .btn { margin-top: 6px; }
.res-note { margin-top: 34px; text-align: center; color: var(--light); }
.res-note a { color: var(--orange-bright); }
@media (max-width: 680px) { .res-grid { grid-template-columns: 1fr; } }
.res-detail { background: var(--black); padding: 44px 0 60px; }
.res-detail-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: start; }
.res-photo { width: 100%; border-radius: 6px; }
.res-body h2 { color: var(--orange); font-size: 26px; font-style: italic; margin: 30px 0 12px; }
.res-body h2:first-child { margin-top: 0; }
.res-needs { list-style: none; display: grid; gap: 8px; }
.res-needs li { padding-left: 18px; position: relative; }
.res-needs li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--orange-deep); }
.res-needs strong { color: #fff; font-weight: 600; }
.res-files { list-style: none; display: grid; gap: 12px; }
.res-files li { background: var(--dark); border-left: 4px solid var(--orange-deep); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.res-files h3 { color: #fff; font-size: 19px; font-weight: 600; }
.res-files p { color: var(--light); font-size: 15px; margin-top: 3px; }
.res-files .btn, .res-files .res-soon { flex: none; margin-top: 0; }
.res-back { margin-top: 30px; }
.res-back a { color: var(--orange-bright); }
.res-gallery { margin-top: 56px; }
.res-gallery h2 { color: var(--orange); font-size: 26px; font-style: italic; margin-bottom: 16px; }
.res-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.res-gallery-grid img { width: 100%; border-radius: 6px; }
@media (max-width: 520px) { .res-gallery-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .res-detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .res-photo { max-width: 460px; max-height: 420px; margin: 0 auto; object-fit: cover; object-position: 50% 72%; }
}
@media (max-width: 520px) {
  .res-files li { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Counted download pages (/resources/get/...) */
.get-page{max-width:560px;min-height:100vh;box-sizing:border-box;margin:0 auto;padding:18vh 16px 10vh;text-align:center}
.get-title{font-size:1.25rem;font-weight:600;margin-bottom:.75rem}

/* Easter eggs (see the end of site.js) */
.egg-ball { position: fixed; top: 0; left: 0; z-index: 9999; border-radius: 50%; cursor: pointer; touch-action: none;
  -webkit-tap-highlight-color: transparent;
  background: radial-gradient(circle at 35% 30%, #fff6a8, #f7d21e 45%, #d9a800); box-shadow: 0 2px 4px rgba(0,0,0,.35); }
.egg-ball::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; } /* bigger tap target */
.egg-bot { position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none; line-height: 0; }
.egg-bot-num { fill: #fff; font: 700 13px Play, sans-serif; letter-spacing: 1px; }
.egg-bot-rsl { fill: #fc6000; animation: egg-rsl .5s steps(1) infinite; } /* robot signal light blinks while enabled */
@keyframes egg-rsl { 50% { fill: #5a2400; } }
.egg-bot-roller { transform-box: fill-box; transform-origin: center; animation: egg-roll .35s linear infinite; }
@keyframes egg-roll { to { transform: rotate(360deg); } }
.egg-spark { position: fixed; z-index: 9999; width: 18px; height: 3px; margin-top: -1.5px; pointer-events: none;
  transform-origin: 0 50%; border-radius: 2px; background: linear-gradient(90deg, #fff 0%, #ffe066 45%, #fc6000 100%); box-shadow: 0 0 6px 1px rgba(255,190,60,.8); }
.egg-toast { position: fixed; left: 50%; bottom: 28px; z-index: 9999; transform: translateX(-50%);
  background: var(--black); color: var(--orange); border: 1px solid var(--orange); border-radius: 6px;
  padding: 10px 18px; font: 700 15px var(--heading); letter-spacing: .5px; transition: opacity .4s; }
.egg-toast.out { opacity: 0; }
.egg-kickoff { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px;
  background: var(--orange-deep); color: #fff; font: 600 15px/1.35 var(--heading); text-align: center; }
.egg-kickoff button { flex: none; background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }

/* Resources page: photo band above the footer. On computers the photo stays put while the page
   scrolls past it; phones (which don't support that) get a normal photo. */
.res-photo-band { position: relative; display: flex; align-items: center; min-height: 440px; padding: 60px 0;
  background: #000 url("/assets/img/res-build-room.jpg") center 55% / cover no-repeat; }
.res-photo-band::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.res-photo-band .wrap { position: relative; width: 100%; }
.res-photo-band .wrap { text-align: center; }
.res-photo-band h2 { font-size: clamp(34px, 5vw, 54px); font-style: italic; color: #fff; margin-bottom: 14px; }
.res-band-text { max-width: 560px; margin: 0 auto 24px; color: #fff; }
.res-photo-band .btn-row { justify-content: center; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .res-photo-band { background-attachment: fixed; } }
@media (max-width: 680px) { .res-photo-band { min-height: 320px; } }

/* Home page: Instagram feed */
.hp-insta { background: var(--dark); padding: 64px 0 70px; text-align: center; }
.hp-insta-sub { max-width: 560px; margin: -10px auto 28px; color: var(--light); }
.insta-feed { margin-bottom: 30px; }
.hp-insta .btn-row { justify-content: center; }

/* Photo bands that stay still while the page scrolls (computers only; phones scroll normally).
   Add the class "hp-still" to an hp-cta section to use it. The photo is shown at its full width
   (no zoom), moved so its faces sit in the middle of the screen, where the band is when people
   read it. Its top edge fades into the black background. Each section sets two numbers:
   --still-ratio: the photo's height divided by its width (1400 x 841 -> 0.6007)
   --still-focus: how far down the faces are, as a fraction (0.35 = 35% down) */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .hp-cta.hp-still { clip-path: inset(0); }
  .hp-cta.hp-still > img { position: fixed; left: 0; right: auto; bottom: auto; width: 100vw; object-fit: fill;
    height: calc(100vw * var(--still-ratio, .6007));
    top: calc(50vh - 100vw * var(--still-ratio, .6007) * var(--still-focus, .35));
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%); }
}
/* Long-pressing the logo sparks instead of opening the phone's link menu */
.site-header .logo { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.hp-hero .hp-eyebrow { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

/* Fundraiser banner (set up at the end of site.js) */
.site-banner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 16px;
  background: #ffd23f; color: #111; font: 600 15px/1.4 var(--heading); text-align: center;
  border-bottom: 3px solid #111; }
.site-banner a { display: inline-block; background: #111; color: #fff; font-weight: 700; white-space: nowrap; text-decoration: none;
  border-radius: 999px; padding: 3px 12px; margin: 2px 0 2px 6px; box-shadow: 0 2px 0 rgba(0,0,0,.2); transition: background .15s, color .15s; }
.site-banner a:hover { background: var(--orange-deep); color: #fff; }
.site-banner-pop { display: inline-block; margin-right: 6px; cursor: pointer; transform-origin: 50% 90%; animation: banner-pop 2.4s ease-in-out 1s 3; }
@keyframes banner-pop { 0%, 40%, 100% { transform: translateY(0) rotate(0); } 10% { transform: translateY(-5px) rotate(-12deg); } 20% { transform: translateY(0) rotate(0); } 28% { transform: translateY(-3px) rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .site-banner-pop { animation: none; } }
.site-banner button { flex: none; background: none; border: 0; color: #111; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }


/* Pit mode easter egg (the "pit" class goes on <html> for a minute) */
.pit .site-header::after { height: 6px; bottom: -6px; background: repeating-linear-gradient(-45deg, #ffd23f 0 10px, #111 10px 20px); }
.pit-label { display: inline-block; background: #161616; color: #f2f2f2; font-family: "Courier New", Courier, monospace; font-style: normal;
  font-weight: 700; letter-spacing: .12em; padding: .12em .5em .08em; border-radius: 4px; transform: rotate(-1.2deg);
  text-shadow: 0 1px 0 rgba(0,0,0,.9), 0 -1px 0 rgba(255,255,255,.18); box-shadow: 0 2px 4px rgba(0,0,0,.35); font-size: .8em; }
.pit-label .accent { color: inherit; background: none; -webkit-text-fill-color: currentColor; }
.pit .hp-stats { background: #0b0b0b; box-shadow: inset 0 0 0 1px #2a2a2a, inset 0 0 24px rgba(0,0,0,.9); }
.pit .hp-stats li + li { border-left-color: #2a2a2a; }
.pit .hp-stats strong { font: 900 44px/1 Doto, "Courier New", monospace; font-style: normal; letter-spacing: 2px; color: #ff6a1a;
  text-shadow: 0 0 4px rgba(255,106,26,.9), 0 0 14px rgba(255,80,0,.55); }
@media (max-width: 680px) { .pit .hp-stats strong { font-size: 32px; letter-spacing: 1px; } }
.pit main article, .pit .res-card { position: relative; }
.pit main article::before, .pit .res-card::before { content: ""; position: absolute; z-index: 3; top: 22px; left: -18px; width: 112px; height: 12px;
  border-radius: 2px; transform: rotate(-38deg); background: repeating-linear-gradient(90deg, #2e2e2e 0 3px, #555 3px 6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 4px rgba(0,0,0,.6); pointer-events: none; }
.pit main article::after, .pit .res-card::after { content: ""; position: absolute; z-index: 3; top: 7px; left: 46px; width: 18px; height: 18px;
  border-radius: 3px; transform: rotate(-38deg); background: #3a3a3a; box-shadow: inset 0 0 0 3px #5a5a5a, inset 0 0 0 5px #222, 0 2px 4px rgba(0,0,0,.6); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .pit, .pit * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M19.5 2a6 6 0 0 0-5.7 7.9L3 20.7a2.4 2.4 0 0 0 3.4 3.4l10.8-10.8A6 6 0 0 0 25.6 7l-3.5 3.5-3-.8-.8-3L21.8 3.2A6 6 0 0 0 19.5 2z' fill='%23c9ced3' stroke='%23111' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 23, auto !important; }
}

/* DESIGN / BUILD / COMPETE rains on the home page */
.egg-drop { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; line-height: 0; }
.egg-drop svg { display: block; overflow: visible; }
.egg-code { line-height: 1; white-space: nowrap; font: 600 14px/1 "SFMono-Regular", Menlo, Consolas, monospace; color: #7ee787;
  text-shadow: 0 0 6px rgba(126,231,135,.6); }
.hp-do article h3 { -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.egg-randy { -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.egg-word { line-height: 1; white-space: nowrap; font: 900 1em/1 Doto, "Courier New", monospace; letter-spacing: .04em;
  text-shadow: 0 0 2px rgba(255,90,0,.35), 0 1px 3px rgba(0,0,0,.7); }
.egg-thanks { -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }

/* Home page stats: little pop when each number finishes counting up (site.js) */
.hp-stats strong { font-variant-numeric: tabular-nums; }
.hp-stat-pop { animation: hp-stat-pop .35s ease-out; }
@keyframes hp-stat-pop { 50% { transform: scale(1.15); } }

/* Fundraiser slide-up card (set up in the BANNER block of site.js) */
.promo-card { position: fixed; right: 20px; bottom: 20px; z-index: 9990; width: 330px; max-width: calc(100vw - 32px);
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 40px 16px 16px;
  background: #ffd23f; color: #111; border: 3px solid #111; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transform: translateY(140%); transition: transform .5s cubic-bezier(.2,1.3,.4,1); }
.promo-card.in { transform: translateY(0); }
.promo-card-icon { font-size: 40px; line-height: 1; flex: none; }
.promo-card.in .promo-card-icon { animation: banner-pop 2.4s ease-in-out .6s 2; transform-origin: 50% 90%; }
.promo-card-body strong { display: block; font: italic 700 20px/1.1 var(--heading); text-transform: uppercase; }
.promo-card-body p { margin: 4px 0 10px; font: 500 15px/1.35 var(--body); }
.promo-card-btn { display: inline-block; background: #111; color: #fff; font: 700 15px/1.2 var(--heading); text-decoration: none;
  border-radius: 999px; padding: 7px 14px; transition: background .15s; }
.promo-card-btn:hover { background: var(--orange-deep); color: #fff; }
.promo-card-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: #111; font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 6px; }
@media (max-width: 680px) { .promo-card { left: 16px; right: 16px; bottom: 16px; width: auto; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .promo-card { transition: none; } .promo-card.in .promo-card-icon { animation: none; } }
