/* 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); }
.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); }
.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; }
.banners img { width: 100%; }
.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 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; } }
