/* ============================================================
   GR8 Events — one-page site
   Rebuilt 2026 from archived content. Com Technology Ltd.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Barlow+Condensed:wght@600;700&display=swap');

:root {
  --ink:        #0d0d0f;
  --ink-2:      #16161a;
  --ink-3:      #1f1f25;
  --paper:      #f5f3ee;
  --paper-dim:  #c9c6bd;
  --orange:     #ff5a1f;
  --orange-hi:  #ff7a45;
  --yellow:     #ffd23f;
  --line:       rgba(245,243,238,.14);
  --maxw:       1180px;
  --ease:       cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---- shared layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--orange);
}

h1, h2, h3 { font-family: 'Archivo Black', sans-serif; font-weight: 400; line-height: .98; letter-spacing: -.02em; }

.section-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  text-transform: uppercase;
  margin: 18px 0 0;
}
.section-title em {
  font-style: normal;
  color: var(--orange);
  -webkit-text-stroke: 0;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(13,13,15,.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 0; }
.nav-logo img {
  height: 38px; width: auto;
  display: block;
}
.nav-links {
  display: flex; gap: 30px;
  list-style: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-links a {
  text-decoration: none;
  color: var(--paper-dim);
  transition: color .2s var(--ease);
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--orange);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--orange); color: var(--ink) !important;
  padding: 9px 18px; border-radius: 2px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--yellow); }

.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-v8s-racing.jpg') center 42% / cover no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, var(--ink) 18%, rgba(13,13,15,.72) 52%, rgba(13,13,15,.4) 100%),
    linear-gradient(0deg, var(--ink) 2%, transparent 38%);
}
/* diagonal speed-streak accent */
.hero-streak {
  position: absolute; z-index: 1;
  right: -8%; top: 0; bottom: 0; width: 46%;
  background: repeating-linear-gradient(
    -24deg,
    transparent 0 38px,
    rgba(255,90,31,.05) 38px 40px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 {
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  text-transform: uppercase;
  margin: 20px 0 0;
  max-width: 14ch;
}
.hero h1 .hl { color: var(--orange); }
.hero h1 .out {
  -webkit-text-stroke: 2px var(--paper);
  color: transparent;
}
.hero-sub {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  max-width: 46ch;
  color: var(--paper-dim);
}
.hero-actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--yellow); transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* hero stat ribbon */
.hero-stats {
  position: relative; z-index: 2;
  margin-top: 64px;
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--line);
}
.hero-stats .stat {
  flex: 1 1 0; min-width: 150px;
  padding: 22px 26px 22px 0;
  border-right: 1px solid var(--line);
}
.hero-stats .stat:last-child { border-right: 0; }
.hero-stats .num {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--yellow);
}
.hero-stats .lbl {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--paper-dim);
  margin-top: 2px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 110px 0; position: relative; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-copy p { margin-top: 18px; color: var(--paper-dim); }
.about-copy p:first-of-type { color: var(--paper); font-size: 1.16rem; margin-top: 26px; }
.about-copy strong { color: var(--paper); font-weight: 700; }

.about-media { position: relative; }
.about-media img {
  border-radius: 3px;
  width: 100%;
  filter: saturate(1.05) contrast(1.02);
}
.about-media .img-a {
  aspect-ratio: 4/3; object-fit: cover;
}
.about-media .img-b {
  position: absolute;
  width: 38%;
  right: 14px; bottom: 14px;
  aspect-ratio: 3/2; object-fit: cover;
  border: 4px solid var(--ink);
  box-shadow: 0 12px 30px rgba(0,0,0,.6);
}
.about-tag {
  position: absolute;
  left: -14px; top: -22px;
  background: var(--orange);
  color: var(--ink);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
  padding: 8px 14px;
  transform: rotate(-3deg);
  z-index: 3;
}

/* founders */
.founders {
  margin-top: 54px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.founder {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 24px;
  border-left: 3px solid var(--orange);
}
.founder .fname {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.18rem;
  text-transform: uppercase;
}
.founder .frole {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--orange);
  margin: 2px 0 10px;
}
.founder p { font-size: .96rem; color: var(--paper-dim); }

/* ============================================================
   WHAT WE DO
   ============================================================ */
.services {
  padding: 110px 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.svc-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 32px 28px 30px;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.svc::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.svc:hover { transform: translateY(-6px); border-color: rgba(255,90,31,.4); }
.svc:hover::before { transform: scaleX(1); }
.svc .svc-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 2.4rem;
  color: var(--ink-3);
  line-height: 1;
}
.svc h3 {
  font-size: 1.22rem;
  text-transform: uppercase;
  margin: 14px 0 10px;
}
.svc p { font-size: .98rem; color: var(--paper-dim); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { padding: 110px 0; }
.gal-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 168px;
  gap: 14px;
}
.gal-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink-2);
  margin: 0;
}
.gal-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .4s var(--ease);
  filter: saturate(.92) brightness(.9);
}
.gal-grid figure:hover img { transform: scale(1.06); filter: saturate(1.12) brightness(1); }
.gal-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 13px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(13,13,15,.94), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gal-grid figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* explicit mosaic — all 6 figures, zero gaps. 6 cols x 3 rows (168px each):
   row1-2:  [ 1 1 1 1 | 2 2 ]
            [ 1 1 1 1 | 3 3 ]
   row3:    [ 4 4 | 5 5 | 6 6 ]                                        */
.gal-1 { grid-column: 1 / 5; grid-row: 1 / 3; }
.gal-2 { grid-column: 5 / 7; grid-row: 1 / 2; }
.gal-3 { grid-column: 5 / 7; grid-row: 2 / 3; }
.gal-4 { grid-column: 1 / 3; grid-row: 3 / 4; }
.gal-5 { grid-column: 3 / 5; grid-row: 3 / 4; }
.gal-6 { grid-column: 5 / 7; grid-row: 3 / 4; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners {
  padding: 84px 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.partners h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-align: center;
}
.partner-list {
  margin-top: 30px;
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 14px 14px;
}
.partner-list span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.partner-list span:hover { border-color: var(--orange); color: var(--orange); }

/* charity strip */
.charity {
  margin-top: 40px;
  text-align: center;
  font-size: 1.04rem;
  color: var(--paper-dim);
  max-width: 60ch;
  margin-left: auto; margin-right: auto;
}
.charity strong { color: var(--yellow); font-weight: 700; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "GR8";
  position: absolute;
  right: -2%; top: 50%; transform: translateY(-50%);
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(10rem, 26vw, 30rem);
  color: var(--ink-2);
  z-index: 0;
  letter-spacing: -.04em;
  pointer-events: none;
}
.contact .wrap { position: relative; z-index: 1; }
.contact h2 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  text-transform: uppercase;
  margin: 18px 0 0;
  max-width: 16ch;
}
.contact h2 em { font-style: normal; color: var(--orange); }
.contact-sub {
  margin-top: 22px;
  font-size: 1.14rem;
  color: var(--paper-dim);
  max-width: 44ch;
}
.contact-cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
}
.cc {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 28px;
  border-top: 3px solid var(--orange);
}
.cc .cc-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
}
.cc .cc-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .76rem;
  color: var(--orange);
  margin: 3px 0 16px;
}
.cc a {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--paper);
  font-size: 1.02rem;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.cc a:hover { color: var(--yellow); }
.cc a svg { flex: none; }
.contact-addr {
  margin-top: 30px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .92rem;
  color: var(--paper-dim);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--ink);
}
.footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.footer img {
  height: 40px; width: auto;
  display: block;
  opacity: .8;
}
.footer-meta {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--paper-dim);
  text-align: right;
}
.footer-meta a { color: var(--orange); text-decoration: none; }

/* ============================================================
   SCROLL REVEAL
   Only hides content when JS is present (html.js). Without JS,
   or if the observer never fires, content stays fully visible.
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .reveal.d4 { transition-delay: .32s; }
.js .reveal.d5 { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { margin-bottom: 30px; }
  .about-media .img-b { position: relative; right: 0; bottom: 0; width: 70%; margin-top: 14px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gal-1, .gal-2, .gal-3, .gal-4, .gal-5, .gal-6 {
    grid-column: auto; grid-row: auto;
  }
  .gal-1 { grid-column: 1 / 3; grid-row: span 2; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav { padding: 12px 20px; }
  .nav-links {
    position: fixed; inset: 60px 0 auto 0;
    flex-direction: column;
    background: rgba(13,13,15,.97);
    backdrop-filter: blur(14px);
    padding: 24px 28px 30px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 6px;
  }
  .nav-toggle span {
    width: 24px; height: 2px; background: var(--paper);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 120px 0 70px; min-height: auto; }
  .hero-stats .stat { flex: 1 1 45%; border-right: 0; padding: 16px 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gal-1, .gal-2, .gal-3, .gal-4, .gal-5, .gal-6 {
    grid-column: auto; grid-row: auto;
  }
  .founders { grid-template-columns: 1fr; }
  .footer .wrap { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
}
