﻿/* Nostratic homepage v3 — event-first, poster-inspired, compact and responsive */
body[data-page="home"] .site-shell{
  background:#050506;
}
body[data-page="home"] .site-header{
  height:76px;
  background:#050506;
  border-bottom:1px solid rgba(255,255,255,.055);
}
body[data-page="home"] .header-inner{
  height:76px;
}
body[data-page="home"] .brand{
  width:66px;
  height:66px;
  padding:5px;
}
body[data-page="home"] .nav{
  gap:36px;
  font-size:.88rem;
}
body[data-page="home"] .nav a{
  padding:25px 0 22px;
}
body[data-page="home"] .nav a.active:after{bottom:14px}
body[data-page="home"] .member-cta{
  border-radius:9px;
  padding:11px 18px;
  font-size:.86rem;
}
body[data-page="home"] .social-icon,
body[data-page="home"] .login-link{
  height:40px;
}
body[data-page="home"] .container{
  width:min(calc(100% - 64px),1540px);
}

.home-main{overflow:hidden}
.home-hero{
  position:relative;
  height:clamp(330px,38vw,440px);
  min-height:330px;
  isolation:isolate;
  overflow:hidden;
  background:#050506;
}
.home-hero-bg{
  position:absolute;
  inset:0;
  z-index:-2;
  background-image:url("assets/breakfast-crossing-hero-wide.png");
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center center;
}
.home-hero:after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(4,4,5,.92) 0%,rgba(4,4,5,.68) 26%,rgba(4,4,5,.12) 49%,rgba(4,4,5,0) 72%);
}
.home-hero-overlay{
  height:100%;
  display:flex;
  align-items:center;
}
.home-hero-copy{
  width:min(600px,44vw);
  padding-top:2px;
}
.home-kicker,.home-section-label{
  color:#a86cff;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.home-hero-title{
  margin:8px 0 0;
  font-size:clamp(3.35rem,5.45vw,6.5rem);
  line-height:.84;
  letter-spacing:-.055em;
  font-weight:800;
}
.home-hero-title span{display:block;color:transparent;-webkit-text-stroke:1.4px rgba(255,255,255,.92)}
.home-hero-title span:last-child{-webkit-text-stroke-color:#9d56ff}
.home-purple-line{width:34px;height:2px;background:#8b45ff;margin:20px 0 14px;border-radius:99px}
.home-hero-copy p{margin:0 0 20px;color:#c9c6cf;font-size:1rem}
.home-hero-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.home-btn{
  min-height:43px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding:0 20px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(5,5,7,.56);
  color:#fff;
  font-weight:700;
  font-size:.84rem;
  cursor:pointer;
  transition:transform .22s ease,border-color .22s ease,background .22s ease;
}
.home-btn:hover{transform:translateY(-2px);border-color:rgba(168,108,255,.7)}
.home-btn-primary{background:linear-gradient(135deg,#5d22c7,#7c3cff);border-color:rgba(173,124,255,.45);box-shadow:0 12px 30px rgba(92,31,201,.18)}
.home-btn-secondary{background:rgba(5,5,7,.62)}

.home-featured-wrap{padding:14px 0 0;background:#050506}
.home-featured{
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(420px,.96fr);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.15);
  border-radius:14px;
  background:#08080a;
  min-height:292px;
}
.home-featured-poster{
  min-width:0;
  border-right:1px solid rgba(255,255,255,.12);
  background:#020203;
  display:flex;
  align-items:center;
  justify-content:center;
}
.home-featured-poster img{
  width:100%;
  height:100%;
  min-height:292px;
  object-fit:cover;
  object-position:center;
}
.home-featured-details{
  min-width:0;
  padding:23px 30px 22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.home-featured-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:8px}
.home-featured-title-row h2{font-size:clamp(1.65rem,2.35vw,2.55rem);line-height:1;margin:5px 0 0;letter-spacing:-.045em}
.home-event-pill{color:#a86cff;border:1px solid rgba(168,108,255,.4);border-radius:999px;padding:6px 9px;font-size:.61rem;font-weight:800;letter-spacing:.11em;white-space:nowrap}
.home-event-details{margin:0;padding:0}
.home-event-details>div{display:grid;grid-template-columns:108px minmax(0,1fr);gap:18px;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.09)}
.home-event-details dt{color:#777381;font-size:.58rem;text-transform:uppercase;letter-spacing:.15em;font-weight:800}
.home-event-details dd{margin:0;color:#f3f0f7;font-size:.82rem;font-weight:650}
.home-featured-actions{display:flex;align-items:center;gap:18px;margin-top:15px}
.home-inline-link{color:#b993ff;font-size:.8rem;font-weight:700}
.home-inline-link:hover{color:#fff}

.home-rides{padding:38px 0 30px}
.home-section-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:18px}
.home-section-heading h2{font-size:2.15rem;line-height:1;margin:6px 0 0;letter-spacing:-.045em}
.home-section-heading>a{color:#b993ff;font-size:.78rem}
.home-ride-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home-ride-card{
  min-width:0;
  min-height:156px;
  display:grid;
  grid-template-columns:54% 46%;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  overflow:hidden;
  background:#09090b;
  cursor:pointer;
  transition:transform .24s ease,border-color .24s ease;
}
.home-ride-card:hover{transform:translateY(-3px);border-color:rgba(168,108,255,.45)}
.home-ride-media{min-width:0;overflow:hidden;background:#050506;aspect-ratio:var(--media-ratio,1.45)}
.home-ride-media img{width:100%;height:100%;object-fit:contain;object-position:center;background:#030304}
.home-ride-copy{min-width:0;padding:16px 15px;display:flex;flex-direction:column;justify-content:center}
.home-ride-copy>span{font-size:.58rem;text-transform:uppercase;color:#8e8998;letter-spacing:.1em}
.home-ride-copy h3{font-size:1.1rem;line-height:1.05;margin:5px 0 7px;letter-spacing:-.03em}
.home-ride-copy p{font-size:.7rem;line-height:1.45;color:#a9a5b0;margin:0 0 7px}
.home-ride-copy a{font-size:.68rem;color:#b993ff;margin-top:auto}

.home-story{padding:18px 0 28px}
.home-story-grid{
  border-top:1px solid rgba(255,255,255,.1);
  border-bottom:1px solid rgba(255,255,255,.1);
  padding-top:24px;
  padding-bottom:24px;
  display:grid;
  grid-template-columns:minmax(0,.86fr) minmax(640px,1.14fr);
  gap:50px;
  align-items:center;
}
.home-story-copy h2{font-size:2.25rem;line-height:1;margin:6px 0 10px;letter-spacing:-.045em}
.home-story-copy p{color:#b4b0bc;max-width:650px;margin:0 0 12px;font-size:.88rem}
.home-founder-list{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.home-founder{
  min-width:0;
  height:112px;
  display:grid;
  grid-template-columns:112px 1fr;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  overflow:hidden;
  background:#0a0a0d;
  transition:transform .2s ease,border-color .2s ease;
}
.home-founder:hover{transform:translateY(-2px);border-color:rgba(168,108,255,.5)}
.home-founder img{width:100%;height:100%;object-fit:cover}
.home-founder:first-child img{object-position:center center}
.home-founder:last-child img{object-position:center 38%}
.home-founder>div{padding:16px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.home-founder strong{font-size:1.05rem}
.home-founder span{color:#a86cff;font-size:.72rem;margin:2px 0 8px}
.home-founder small{color:#c1aecf;font-size:.65rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.home-community{padding:0 0 40px}
.home-community-bar{
  border:1px solid rgba(168,108,255,.2);
  border-radius:14px;
  padding:20px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  background:linear-gradient(90deg,rgba(52,15,100,.4),rgba(8,8,10,.8));
}
.home-community-bar h2{margin:4px 0 4px;font-size:1.35rem;letter-spacing:-.03em}
.home-community-bar p{margin:0;color:#a9a5b0;font-size:.8rem}
.home-community-actions{display:flex;gap:10px;flex-wrap:wrap}

/* Keep the approved first screen compact on normal desktop/laptop heights */
@media (min-width:1101px) and (max-height:860px){
  body[data-page="home"] .site-header,body[data-page="home"] .header-inner{height:68px}
  body[data-page="home"] .brand{width:58px;height:58px}
  body[data-page="home"] .nav a{padding:21px 0 19px}
  body[data-page="home"] .nav a.active:after{bottom:11px}
  .home-hero{height:320px;min-height:320px}
  .home-hero-copy{width:min(520px,42vw)}
  .home-hero-title{font-size:clamp(3rem,4.8vw,5.4rem)}
  .home-purple-line{margin:14px 0 10px}
  .home-hero-copy p{font-size:.88rem;margin-bottom:14px}
  .home-btn{min-height:38px;padding:0 16px;font-size:.76rem}
  .home-featured{min-height:245px}
  .home-featured-poster img{min-height:245px}
  .home-featured-details{padding:16px 24px}
  .home-featured-title-row h2{font-size:1.65rem}
  .home-event-details>div{padding:5px 0}
  .home-featured-actions{margin-top:10px}
  .home-rides{padding-top:30px}
  .home-ride-card{height:auto;min-height:142px}
}

@media (max-width:1100px){
  body[data-page="home"] .container{width:min(calc(100% - 36px),900px)}
  .home-hero{height:440px}
  .home-hero-bg{background-size:auto 100%;background-position:58% center}
  .home-hero:after{background:linear-gradient(90deg,rgba(4,4,5,.92) 0%,rgba(4,4,5,.76) 40%,rgba(4,4,5,.18) 72%,rgba(4,4,5,.08) 100%)}
  .home-hero-copy{width:min(500px,60vw)}
  .home-featured{grid-template-columns:1fr}
  .home-featured-poster{border-right:0;border-bottom:1px solid rgba(255,255,255,.12);aspect-ratio:16/9}
  .home-featured-poster img{min-height:0;height:100%;object-fit:cover}
  .home-ride-grid{grid-template-columns:1fr}
  .home-ride-card{height:auto;min-height:190px;grid-template-columns:58% 42%}
  .home-story-grid{grid-template-columns:1fr;gap:22px}
  .home-founder-list{max-width:780px}
}

@media (max-width:820px){
  body[data-page="home"] .site-header,body[data-page="home"] .header-inner{height:70px}
  .home-hero{height:480px}
  .home-hero-bg{background-size:auto 100%;background-position:64% center;opacity:.88}
  .home-hero:after{background:linear-gradient(180deg,rgba(4,4,5,.2) 0%,rgba(4,4,5,.2) 40%,rgba(4,4,5,.93) 92%),linear-gradient(90deg,rgba(4,4,5,.88),rgba(4,4,5,.06))}
  .home-hero-overlay{align-items:flex-end;padding-bottom:30px}
  .home-hero-copy{width:100%;max-width:520px}
  .home-hero-title{font-size:clamp(3rem,14.5vw,5.1rem)}
  .home-featured-details{padding:22px 18px}
  .home-event-details>div{grid-template-columns:95px 1fr;gap:12px}
  .home-section-heading{align-items:flex-start}
  .home-founder-list{grid-template-columns:1fr}
  .home-community-bar{align-items:flex-start;flex-direction:column}
}

@media (max-width:560px){
  body[data-page="home"] .container{width:calc(100% - 24px)}
  .home-hero{height:500px}
  .home-hero-bg{background-position:69% center}
  .home-kicker{font-size:.58rem;letter-spacing:.13em}
  .home-hero-title{font-size:clamp(3rem,16vw,4.2rem)}
  .home-hero-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
  .home-btn{padding:0 12px;gap:8px;font-size:.72rem}
  .home-featured-title-row{align-items:center}
  .home-event-details>div{grid-template-columns:1fr;gap:2px}
  .home-featured-actions{align-items:flex-start;flex-direction:column}
  .home-ride-card{height:auto;grid-template-columns:1fr}
  .home-ride-media{aspect-ratio:var(--media-ratio,16/9)}
  .home-ride-copy{min-height:130px}
  .home-founder{grid-template-columns:94px 1fr;height:100px}
  .home-founder-list{gap:10px}
  .home-community-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
}

/* === v4 viewport-fit + responsive corrections === */
body[data-page="home"]{overflow-x:hidden}
body[data-page="home"] .home-main{overflow-x:clip}

/* Keep the complete current-event presentation inside a normal laptop viewport. */
@media (min-width:1101px){
  body[data-page="home"] .site-header,
  body[data-page="home"] .header-inner{height:66px}
  body[data-page="home"] .brand{width:56px;height:56px}
  body[data-page="home"] .nav a{padding:20px 0 18px}
  body[data-page="home"] .nav a.active:after{bottom:10px}
  body[data-page="home"] .container{width:min(calc(100% - 56px),1540px)}

  .home-hero{
    height:clamp(286px,36svh,326px);
    min-height:286px;
  }
  .home-hero-copy{width:min(560px,40vw)}
  .home-hero-title{font-size:clamp(3rem,4.8vw,5.5rem)}
  .home-purple-line{margin:13px 0 10px}
  .home-hero-copy p{font-size:.9rem;margin-bottom:13px}
  .home-btn{min-height:38px;padding:0 16px;font-size:.76rem}

  .home-featured-wrap{padding-top:10px}
  .home-featured{
    height:clamp(222px,30svh,258px);
    min-height:222px;
    grid-template-columns:minmax(0,1.02fr) minmax(400px,.98fr);
  }
  .home-featured-poster img{
    min-height:0;
    height:100%;
    object-fit:contain;
    background:#020203;
  }
  .home-featured-details{padding:14px 24px 13px}
  .home-featured-title-row{margin-bottom:5px}
  .home-featured-title-row h2{font-size:clamp(1.45rem,1.75vw,1.8rem)}
  .home-event-details>div{padding:4px 0;grid-template-columns:100px minmax(0,1fr)}
  .home-event-details dt{font-size:.54rem}
  .home-event-details dd{font-size:.76rem}
  .home-featured-actions{margin-top:8px}
  .home-featured-actions .home-btn{min-height:35px}

  .home-rides{padding-top:34px}
}

/* Medium/tablet: avoid oversized hero and let content breathe without clipping. */
@media (min-width:821px) and (max-width:1100px){
  .home-hero{height:390px;min-height:390px}
  .home-hero-bg{background-size:auto 100%;background-position:60% center}
  .home-hero-copy{width:min(480px,56vw)}
  .home-featured{grid-template-columns:1fr 1fr;min-height:250px}
  .home-featured-poster{aspect-ratio:auto;border-bottom:0;border-right:1px solid rgba(255,255,255,.12)}
  .home-featured-poster img{height:100%;object-fit:contain}
  .home-featured-details{padding:18px}
  .home-event-details>div{grid-template-columns:92px minmax(0,1fr);padding:6px 0}
  .home-ride-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-ride-card{min-height:164px;grid-template-columns:52% 48%}
  .home-ride-card:last-child{grid-column:1/-1;max-width:calc(50% - 7px)}
}

/* Mobile: 2-column archive, compact event block, zero horizontal spill. */
@media (max-width:820px){
  body[data-page="home"] .container{width:min(calc(100% - 28px),760px)}
  .home-hero{height:430px;min-height:430px}
  .home-hero-bg{background-size:auto 100%;background-position:66% center}
  .home-hero-overlay{padding-bottom:24px}
  .home-featured-wrap{padding-top:10px}
  .home-featured{grid-template-columns:1fr;min-height:0}
  .home-featured-poster{aspect-ratio:16/9}
  .home-featured-poster img{object-fit:contain;background:#020203}
  .home-featured-details{padding:18px 16px}
  .home-rides{padding:30px 0 24px}
  .home-ride-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .home-ride-card{height:auto;display:flex;flex-direction:column;min-width:0}
  .home-ride-media{aspect-ratio:var(--media-ratio,1.18)}
  .home-ride-media img{object-fit:contain}
  .home-ride-copy{padding:11px 10px 12px;min-height:118px}
  .home-ride-copy>span{font-size:.5rem;line-height:1.35}
  .home-ride-copy h3{font-size:.9rem;margin:4px 0 5px}
  .home-ride-copy p{font-size:.6rem;line-height:1.35;margin-bottom:6px}
  .home-ride-copy a{font-size:.61rem}
  .home-story-grid{gap:18px}
}

@media (max-width:560px){
  body[data-page="home"] .container{width:calc(100% - 20px)}
  .home-hero{height:410px;min-height:410px}
  .home-hero-title{font-size:clamp(2.8rem,15vw,4rem)}
  .home-hero-actions{grid-template-columns:1fr 1fr}
  .home-featured-title-row{gap:10px}
  .home-event-pill{font-size:.53rem;padding:5px 7px}
  .home-ride-grid{gap:8px}
  .home-ride-media{aspect-ratio:var(--media-ratio,1)}
  .home-ride-copy{min-height:112px;padding:9px}
  .home-founder-list{grid-template-columns:1fr}
}

.home-ride-more{display:none}
@media (max-width:820px){
  .home-ride-more{
    display:flex;
    min-width:0;
    min-height:0;
    aspect-ratio:1/1.55;
    border:1px solid rgba(168,108,255,.28);
    border-radius:12px;
    padding:16px 13px;
    background:linear-gradient(145deg,rgba(72,25,140,.32),rgba(8,8,10,.92));
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-end;
    transition:transform .22s ease,border-color .22s ease;
  }
  .home-ride-more:hover{transform:translateY(-2px);border-color:rgba(168,108,255,.6)}
  .home-ride-more strong{font-size:1.12rem;line-height:1.05;margin:6px 0 4px}
  .home-ride-more small{color:#b993ff;font-size:.68rem}
}
@media (max-width:560px){
  .home-ride-more{aspect-ratio:1/1.55;padding:12px 10px}
  .home-ride-more strong{font-size:1rem}
}

/* === v5 hero continuity pass ===
   Use the complete 3:1 hero artwork without cropping the wheels/ground.
   The featured-event panel overlaps the lower ground so the transition
   feels intentional instead of cutting abruptly to black. */
.home-hero{
  width:100%;
  height:auto;
  min-height:0;
  aspect-ratio:3 / 1;
  overflow:visible;
  isolation:isolate;
  background:#050506;
}
.home-hero-bg{display:none !important}
.home-hero-bg-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:fill;
  object-position:center;
  z-index:-2;
  user-select:none;
  pointer-events:none;
  /* Give the tyres deliberate breathing room above the event-card transition. */
  transform:translateY(clamp(-38px,-1.8vw,-24px));
}
.home-hero:after{
  background:linear-gradient(90deg,rgba(4,4,5,.90) 0%,rgba(4,4,5,.62) 23%,rgba(4,4,5,.12) 43%,rgba(4,4,5,0) 60%);
}
.home-hero-overlay{
  height:100%;
  align-items:center;
  padding-bottom:clamp(80px,8vw,125px);
}
.home-hero-copy{
  width:min(590px,42vw);
  transform:translateY(-2%);
}
.home-featured-wrap{
  position:relative;
  z-index:4;
  margin-top:clamp(-130px,-7vw,-92px);
  padding:0;
  background:transparent;
}
.home-featured{
  box-shadow:0 28px 75px rgba(0,0,0,.42);
  backdrop-filter:blur(12px);
  background:rgba(7,7,9,.96);
}
.home-featured-poster{
  background:rgba(2,2,3,.94);
}
.home-rides{
  padding-top:44px;
}

@media (min-width:1101px){
  .home-hero{
    height:auto;
    min-height:0;
    aspect-ratio:3 / 1;
  }
  .home-hero-copy{width:min(590px,41vw)}
  .home-hero-title{font-size:clamp(3.15rem,4.9vw,5.8rem)}

  /* Match the 16:9 poster to the panel height instead of forcing a crop.
     At the review viewport this also lets the overlapping hero+event composition
     finish almost exactly at the first-screen fold. */
  .home-featured{
    height:292px;
    min-height:292px;
    grid-template-columns:520px minmax(0,1fr);
  }
  .home-featured-poster img{
    width:100%;
    height:100%;
    min-height:0;
    object-fit:cover;
    object-position:center;
  }
  .home-featured-details{
    padding:19px 28px 18px;
  }
  .home-featured-title-row h2{font-size:1.78rem}
  .home-event-details>div{padding:5px 0;grid-template-columns:106px minmax(0,1fr)}
  .home-event-details dd{font-size:.8rem}
  .home-featured-actions{margin-top:10px}
}

/* Preserve the complete wide hero artwork on tablets, then place the copy
   over the dark left side exactly as on desktop. */
@media (min-width:821px) and (max-width:1100px){
  .home-hero{
    height:auto;
    min-height:0;
    aspect-ratio:3 / 1;
  }
  .home-hero-bg-image{object-fit:fill}
  .home-hero-overlay{padding-bottom:62px}
  .home-hero-copy{width:min(470px,52vw)}
  .home-featured-wrap{margin-top:-64px}
}

/* Mobile cannot display a 3:1 scene and readable overlaid copy at once.
   Show the entire artwork first, then continue the event UI directly below it
   without cropping the car or its ground. */
@media (max-width:820px){
  .home-hero{
    aspect-ratio:auto;
    height:auto;
    min-height:0;
    overflow:visible;
    display:flex;
    flex-direction:column;
    background:#050506;
  }
  .home-hero-bg-image{
    position:relative;
    inset:auto;
    width:100%;
    height:auto;
    aspect-ratio:3 / 1;
    object-fit:fill;
    order:0;
    z-index:0;
    transform:none;
  }
  .home-hero:after{display:none}
  .home-hero-overlay{
    position:relative;
    order:1;
    height:auto;
    align-items:flex-start;
    padding-top:20px;
    padding-bottom:72px;
    background:linear-gradient(180deg,#050506 0%,#050506 70%,rgba(5,5,6,.98) 100%);
  }
  .home-hero-copy{
    width:100%;
    max-width:none;
    transform:none;
  }
  .home-featured-wrap{
    margin-top:-48px;
  }
}

@media (max-width:560px){
  .home-hero-overlay{padding-top:17px;padding-bottom:58px}
  .home-featured-wrap{margin-top:-36px}
  .home-rides{padding-top:32px}
}

