/* Homepage-only "assembly style" restyle.
   Fonts stay Bungee + Inter. Colors stay Redwood.
   Loaded after styles.css on index.html only. */

:root{
  --ch:#2B2B2B;
  --ch-deep:#1C1C1C;
  --ch-mid:#332E2A;
  --rust:#B5482F;
  --moss:#6E9A45;
  --cream:#FAF3E8;
  --cream-dim:#C9BFAE;
  --line:rgba(181,72,47,.45);
  --line-soft:rgba(250,243,232,.14);
}

body{background:var(--ch-deep);color:var(--cream);line-height:1.6}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px}

/* Sticky nav: same wordmark and gel CTA, thinner hairline bar */
html body .tnav{background:rgba(43,43,43,.88);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid rgba(110,154,69,.45)!important}
@media(max-width:1100px){
  html body .tnav.open ul{border-bottom:1px solid rgba(110,154,69,.45)}
}

/* Kickers and big headlines */
.kicker{
  color:var(--rust);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.32em;
  font-size:.72rem;
  margin:0 0 18px;
  display:flex;
  align-items:center;
  gap:14px;
}
.kicker::before{
  content:"";
  width:28px;
  height:1px;
  background:var(--rust);
  flex:none;
}
h2{
  font-family:Bungee,sans-serif;
  font-weight:400;
  font-size:clamp(1.7rem,4.2vw,2.85rem);
  line-height:1.15;
  letter-spacing:.02em;
  margin:.1em 0 .5em;
  color:var(--cream);
}
.accent{color:var(--rust)}
.rn{color:var(--rust);font-weight:600;letter-spacing:.12em;text-transform:uppercase;font-size:.8em}

/* Dramatic dark hero with the portrait video as a framed object, never cropped */
.hero{
  background:radial-gradient(ellipse at 72% 42%,#4A3028 0%,#2B2B2B 42%,#1C1C1C 78%);
  color:var(--cream);
  text-align:left;
  padding:36px 0 64px;
  position:relative;
  overflow:hidden;
}
.hero-h1{
  font-family:Bungee,sans-serif;
  font-weight:400;
  font-size:clamp(1.85rem,5vw,3.2rem);
  line-height:1.18;
  letter-spacing:.02em;
  margin:0 0 16px;
  color:var(--cream);
  max-width:14em;
}
.hero .tag{
  font-size:clamp(1.05rem,1.6vw,1.25rem);
  line-height:1.5;
  color:var(--cream-dim);
  max-width:28em;
  margin:0 0 28px;
}
.hero-copy .btn-outline{margin-top:4px}
.hero-video{
  position:relative;
  margin:28px auto 0;
  width:63%;
  max-width:288px;
  padding:8px;
  background:transparent;
  border-radius:0;
  overflow:visible;
  aspect-ratio:auto;
}
.hero-video .video-frame{
  position:relative;
  width:100%;
  aspect-ratio:448/704;
  background:#1a1a1a;
  overflow:hidden;
}
.hero-video .hero-poster,
.hero-video video{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  border-radius:0;
}
.hero-video video{position:absolute;inset:0}
/* Hairline frame and corner ticks sit OUTSIDE the 448x704 frame */
.hero-video::before{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(181,72,47,.7);
  pointer-events:none;
  z-index:2;
}
.hero-video::after{
  content:"";
  position:absolute;
  inset:4px;
  pointer-events:none;
  z-index:2;
  background:
    linear-gradient(var(--rust),var(--rust)) 0 0/18px 1px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 0 0/1px 18px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 100% 0/18px 1px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 100% 0/1px 18px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 0 100%/18px 1px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 0 100%/1px 18px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 100% 100%/18px 1px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 100% 100%/1px 18px no-repeat;
}
@media(prefers-reduced-motion:reduce){
  .hero-video video{display:none}
}
@media(min-width:900px){
  .hero{min-height:calc(100vh - 68px);display:flex;align-items:center;padding:28px 0 56px;text-align:left}
  .hero .hero-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,288px);gap:40px 56px;align-items:center;width:100%}
  .hero-copy{margin:0;max-width:none}
  .hero-h1{margin:0 0 18px;max-width:none}
  .hero .tag{margin:0 0 32px}
  .hero-video{margin:0;width:100%;max-width:288px}
}

/* Outline CTA (reference "JOIN NOW" treatment, Redwood colors) */
.btn-outline{
  background:transparent;
  color:var(--cream);
  border:1px solid var(--rust);
  border-radius:0;
  padding:14px 28px;
  font-weight:600;
  font-size:.78rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  text-decoration:none;
  display:inline-block;
  transition:background .25s ease,color .25s ease,box-shadow .25s ease;
}
.btn-outline:hover{background:var(--rust);color:var(--cream);box-shadow:0 6px 24px rgba(181,72,47,.35)}

/* Sharper default buttons on this page (gel packet CTA stays clipped in its own rules) */
.sec .btn,.feature .btn,.guidebox .btn,.fitfeat .btn,.runfeat .rfbtn,.fitfeat .fgbtn,.tbtcard .tbtbtn,.brand-gate .gate-go{
  border-radius:0;
}

/* Free tools roman-numeral grid */
.inside{padding:88px 0 72px;border-top:1px solid var(--line-soft)}
.inside .lede{color:var(--cream-dim);max-width:36em;margin:0 auto 36px;text-align:center}
.inside .wrap{text-align:center}
.inside .kicker{justify-content:center}
.inside h2{margin-bottom:.4em}
.inside-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px 20px;
  border:0;
  text-align:left;
  align-items:stretch;
  justify-items:stretch;
}
@media(min-width:640px){
  .inside-grid{grid-template-columns:repeat(2,1fr);gap:18px 22px}
}
@media(min-width:800px){
  .inside{padding:110px 0 90px}
}
@media(min-width:1100px){
  .inside-grid{grid-template-columns:repeat(3,1fr);gap:22px 24px}
}

/* Feature sections: dark, split, airy */
.gelfeat,.runfeat,.fitfeat,.tbtfeat,.guidebox,.sec,.brand-gates{
  background:var(--ch-deep);
  padding:80px 0;
  text-align:left;
}
.gelfeat{background:linear-gradient(180deg,#2B2B2B 0%,#1C1C1C 40%);padding:72px 0 80px}
.gelfeat .wrap,.runfeat .wrap,.shopfeat .wrap,.fitfeat .wrap{
  max-width:1180px;
  background:transparent;
  border:0;
  border-radius:0;
  padding:0;
  text-align:left;
  box-shadow:none;
  margin:0 auto;
}
.feature-split{
  display:grid;
  gap:32px;
  align-items:center;
}
.feature-copy .pitch{font-size:1.15rem;font-weight:700;color:var(--rust);margin:0 0 12px}
.feature-copy .what,.feature-copy p,.gelfeat .what,.runfeat .what,.fitfeat .what{
  max-width:36em;
  margin:0 0 24px;
  color:var(--cream-dim);
}
.gelfeat h2,.runfeat h2,.shopfeat h2,.fitfeat h2,.tbtfeat h2{color:var(--cream);margin:.15em 0 .4em}
.gelfeat .kicker,.runfeat .kicker,.shopfeat .kicker,.fitfeat .kicker{color:var(--rust)}
.runfeat .kicker{color:var(--moss)}
.runfeat .kicker::before{background:var(--moss)}
.gelfeat .feat-photo,.runfeat .feat-photo,.shopfeat .feat-photo,.fitfeat .feat-photo{margin:0}
.media-frame{
  position:relative;
  margin:0;
  border-radius:0;
  overflow:visible;
  aspect-ratio:auto;
  background:transparent;
  padding:10px;
}
.media-frame img,.feat-photo.media-frame img{
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  border-radius:0;
}
.media-frame::before{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(181,72,47,.65);
  pointer-events:none;
  z-index:2;
}
.media-frame::after{
  content:"";
  position:absolute;
  inset:4px;
  pointer-events:none;
  z-index:2;
  background:
    linear-gradient(var(--rust),var(--rust)) 0 0/16px 1px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 0 0/1px 16px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 100% 0/16px 1px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 100% 0/1px 16px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 0 100%/16px 1px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 0 100%/1px 16px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 100% 100%/16px 1px no-repeat,
    linear-gradient(var(--rust),var(--rust)) 100% 100%/1px 16px no-repeat;
}
@media(min-width:860px){
  .feature-split{grid-template-columns:1.05fr 1fr;gap:48px 56px}
  .feature-split.reverse{grid-template-columns:1fr 1.05fr}
  .feature-split.reverse .media-frame{order:2}
  .gelfeat,.runfeat,.fitfeat,.tbtfeat,.guidebox,.sec,.brand-gates{padding:100px 0}
}

/* Keep the energy-gel packet CTA; it just sits on the dark field */
.gelfeat .gelwrap{max-width:480px;margin:0;filter:drop-shadow(0 0 8px rgba(255,138,30,.55)) drop-shadow(0 8px 18px rgba(0,0,0,.35))}
.runfeat .rfbtn{background:var(--moss);color:#fff;font-size:1.05rem;padding:14px 24px;min-height:48px}
.runfeat .rfbtn:hover{background:#5c8338}
.fitfeat .fgbtn{background:var(--rust);font-size:1.05rem;padding:14px 24px;min-height:48px}

/* Brand gates */
.brand-gates{padding:20px 0 80px;background:var(--ch-deep)}
.brand-gates .wrap{max-width:1180px;display:grid;grid-template-columns:1fr;gap:20px}
.brand-gate{
  background:transparent;
  border:1px solid var(--line);
  border-radius:0;
  box-shadow:none;
  color:var(--cream);
  padding:0;
  overflow:hidden;
}
.brand-gate:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(0,0,0,.35);border-color:var(--rust)}
.brand-gate .gate-photo{aspect-ratio:16/9;background:#1a1a1a;border-radius:0}
.brand-gate .gate-body{padding:22px 22px 26px;align-items:flex-start}
.brand-gate .gate-body p{color:var(--cream-dim);margin:0 0 20px}
.brand-gate .subbrand .sb-lead{color:var(--cream)}
.brand-gate .subbrand .sb-n{color:var(--rust)}
.brand-gate .subbrand .sb-rest{color:var(--moss)}
.brand-gate .gate-go{border-radius:0;background:transparent;color:var(--cream);border:1px solid var(--rust);padding:12px 18px}
.brand-gate:hover .gate-go{background:var(--rust);color:var(--cream)}
@media(min-width:700px){
  .brand-gates .wrap{grid-template-columns:1fr 1fr;gap:24px}
  .brand-gates{padding:0 0 100px}
}

/* TBT card */
.tbtfeat{padding:0 0 100px}
.tbtfeat .wrap{max-width:1180px;margin:0 auto}
.tbtcard{
  background:transparent;
  border:1px solid var(--line);
  border-radius:0;
  box-shadow:none;
  color:var(--cream);
  display:grid;
}
.tbtcard:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(0,0,0,.35)}
.tbtcard-img{border-radius:0;background:#1a1a1a;aspect-ratio:1200/630}
.tbtcard-body{padding:28px 24px 32px;text-align:left}
.tbtcard-body .kicker{color:var(--moss)}
.tbtcard-body .kicker::before{background:var(--moss)}
.tbtcard-body h2{color:var(--cream)}
.tbtcard-body p{color:var(--cream-dim);margin:0 0 20px;max-width:36em}
.tbtcard .tbtbtn{background:transparent;color:var(--cream);border:1px solid var(--rust);border-radius:0;padding:12px 20px}
.tbtcard:hover .tbtbtn{background:var(--rust);color:var(--cream)}
@media(min-width:860px){
  .tbtcard{grid-template-columns:1.1fr 1fr;align-items:center}
}

/* Fuel guide: one cream contrast band for rhythm */
.guidebox{background:var(--cream);color:var(--ch);padding:28px 0 0}
.guidebox .signup{
  background:var(--cream);
  color:var(--ch);
  border-radius:0;
  border:1px solid rgba(43,43,43,.18);
  border-top:1px solid rgba(43,43,43,.18);
  max-width:1180px;
  margin:0 auto;
  padding:36px 28px;
  text-align:left;
  box-shadow:none;
}
.guidebox .signup h2{color:var(--ch);font-size:clamp(1.5rem,3vw,2.2rem)}
.guidebox .fine{color:#6b6358;opacity:1}
#guide{background:var(--cream);color:var(--ch);padding:24px 0 100px}
#guide h2{color:var(--ch)}
#guide .kicker{color:var(--rust)}
#guide p,#guide li{color:#3a3530}
#guide .cover{max-width:320px;margin:0;border-radius:0;box-shadow:0 16px 40px rgba(0,0,0,.18)}
#guide .two{gap:40px;align-items:center}
#guide .btn{border-radius:0}

/* Videos, shop, rides, social */
#videos,#mission{background:var(--ch-deep);color:var(--cream);padding:100px 0}
#shop.sec.alt{background:var(--ch);color:var(--cream);padding:100px 0;text-align:left}
#shop.sec.alt .wrap{text-align:left}
#shop p,#videos p{color:var(--cream-dim)}
#videos h2,#shop h2,#mission h2,#social h2{color:var(--cream)}
#videos .two{gap:40px;align-items:center}
.vid{border-radius:0}
#mission{text-align:left}
#mission .count{font-family:Bungee,sans-serif;font-size:clamp(2.2rem,5vw,3.4rem);color:var(--cream);margin:.2em 0 .6em}
.grid{gap:0;border:1px solid var(--line)}
.grid li{background:transparent;border:1px solid var(--line);border-radius:0;color:var(--cream-dim);padding:10px 0}
.grid li.done{background:var(--moss);border-color:var(--moss);color:#fff}
.legend{color:var(--cream-dim)}
.sw{border-color:var(--line);background:transparent}
.ride-photo{max-width:100%;margin:28px 0 0;border-radius:0}
.latest{max-width:720px;margin:32px 0 0;text-align:left}

#social.sec.alt{background:var(--ch);padding:100px 0}
.socials{gap:0;border:1px solid var(--line);grid-template-columns:repeat(2,1fr)}
.socials a{background:transparent;color:var(--cream);border-radius:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 18px}
.socials a:nth-child(2n){border-right:0}
.socials a:nth-last-child(-n+2){border-bottom:0}
.socials a span{color:var(--cream-dim)}
.socials a:hover{background:var(--rust)}
@media(min-width:760px){
  .socials{grid-template-columns:repeat(4,1fr)}
  .socials a{border-right:1px solid var(--line);border-bottom:0}
  .socials a:nth-child(2n){border-right:1px solid var(--line)}
  .socials a:last-child{border-right:0}
}

.foot{background:#141414;border-top:1px solid var(--line-soft);padding:48px 0}
.foot .c{color:var(--cream)}

/* Scroll fade-up */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .9s ease,transform .9s ease}
.reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  body::after{animation:none}
}

/* Very light grain, like the reference, Redwood-neutral */
body::after{
  content:"";
  pointer-events:none;
  position:fixed;
  inset:0;
  z-index:80;
  opacity:.035;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.7'/></svg>");
  mix-blend-mode:overlay;
}

@media(max-width:520px){
  .wrap{padding:0 18px}
  .gelfeat .wrap,.runfeat .wrap,.shopfeat .wrap,.fitfeat .wrap,.tbtfeat .wrap{margin:0 auto;padding:0 18px}
  .brand-gates .wrap{margin:0 auto;padding:0}
  .inside{padding:64px 0 56px}
  .gelfeat,.runfeat,.fitfeat,.sec,.brand-gates,#videos,#shop.sec.alt,#mission,#social.sec.alt{padding:64px 0}
  .tbtfeat{padding:0 0 64px}
  #guide{padding:16px 0 72px}
  .hero{padding:24px 0 48px}
  .tbtcard-body{padding:22px 18px 26px}
  .brand-gate .gate-body{padding:18px 16px 20px}
}

/* Mobile hero: put the portrait clip first, keep the full 448/704 frame, displayed smaller */
@media(max-width:899px){
  .hero .hero-inner{display:flex;flex-direction:column;align-items:stretch}
  .hero-video{order:-1;margin:0 auto 18px;width:63%;max-width:288px}
  .hero{padding:16px 0 40px;text-align:left}
  .hero-h1{font-size:clamp(1.65rem,8.4vw,2.05rem);margin:0 0 8px}
  .hero .tag{font-size:1rem;line-height:1.45;margin:0 0 14px}
  .hero-copy .btn-outline{width:100%;text-align:center;box-sizing:border-box;padding:12px 20px}
}

#shop.sec.alt .wrap{text-align:left}
/* fitness gear pitch was charcoal on charcoal */
.fitfeat .pitch{color:var(--rust)}


/* TBT ad banner just above socials: sky-blue boarding pass */
.tbt-ad{background:#E8F6FD;padding:48px 0 52px}
.tbt-ad .wrap{max-width:1180px;margin:0 auto}
.tbt-banner{
  display:grid;grid-template-columns:1.15fr 1fr;align-items:stretch;
  text-decoration:none;color:#0A2436;
  background:linear-gradient(165deg,#7ED2FA 0%,#5FC5F8 45%,#2D9BDC 100%);
  border-radius:18px;overflow:hidden;
  box-shadow:0 16px 40px rgba(10,36,54,.22);
  position:relative;
  min-height:280px;
}
.tbt-banner::after{
  content:"";position:absolute;top:18px;bottom:18px;left:calc(53.5% - 1px);
  border-left:2px dashed rgba(10,36,54,.4);pointer-events:none;
}
.tbt-banner img{
  width:100%;height:100%;object-fit:cover;display:block;
  min-height:260px;background:#0A2436;
}
.tbt-banner-body{position:relative;z-index:1;padding:32px 36px 36px 44px;display:flex;flex-direction:column;justify-content:center}
.tbt-banner-body .kicker{color:#0A2436;font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.78rem;margin:0 0 8px}
.tbt-banner-body .kicker::before{background:#0A2436}
.tbt-banner-body h2{font-family:Bungee,sans-serif;font-weight:400;color:#0A2436;margin:.1em 0 .35em;font-size:clamp(1.35rem,3vw,1.9rem);line-height:1.15}
.tbt-banner-body p{color:#0A2436;margin:0 0 22px;max-width:28em;font-size:1.05rem;line-height:1.45}
.tbt-banner:hover{transform:translateY(-3px);box-shadow:0 20px 44px rgba(10,36,54,.28)}
.tbt-banner:focus-visible{outline:3px solid #0A2436;outline-offset:4px}
.tbt-banner:hover .cta, .tbt-banner:focus-visible .cta{filter:brightness(1.07) saturate(1.1)}
@media(max-width:899px){
  .tbt-ad{padding:36px 0 40px}
  .tbt-banner{grid-template-columns:1fr;min-height:0}
  .tbt-banner::after{display:none}
  .tbt-banner img{min-height:200px;max-height:240px;aspect-ratio:16/10}
  .tbt-banner-body{padding:22px 20px 26px}
}
@media(prefers-reduced-motion:reduce){
  .tbt-banner,.tbt-banner:hover{transform:none;transition:none}
}

/* v87: TBT feature sits just above the socials, so it needs top padding too */
.tbtfeat{padding:48px 0 64px}
@media(max-width:520px){
  .tbtfeat{padding:32px 0 40px}
}

/* v90: hero leads into brand gates; Start here / Free tools and gel sit lower on the page */
.hero .tag{margin-bottom:0}
@media (max-width: 899px) {
  .hero { padding-bottom: 16px; }
  .brand-gates { padding-top: 16px; }
  .inside { padding-top: 64px; }
}
@media (min-width: 800px) {
  .inside { padding-top: 88px; }
}
@media (min-width: 900px) {
  .hero {
    min-height: 0;
    align-items: flex-start;
    padding-bottom: 28px;
  }
  .hero .tag { margin-bottom: 0; }
  .brand-gates { padding-top: 16px; }
}
/* Gel feature follows the tools grid; keep them close without a tall dark gap */
.gelfeat { padding-top: 40px; }
@media (max-width: 699px) {
  .gelfeat { padding-top: 28px; padding-bottom: 36px; }
  .brand-gates { padding-bottom: 56px; }
}
@media (max-width: 520px) {
  .hero { padding: 16px 0 16px; }
  .brand-gates { padding: 12px 0 48px; }
  .inside { padding: 56px 0 40px; }
  .gelfeat { padding: 28px 0 32px; }
}
