/* Afiléon Motorsport — race-team-first editorial pass.
   Deliberately uses ONLY the existing live navy, yellow and magenta palette.
   Limited to the homepage and the motorsport page. */

/* First impression: a racing programme that also serves other drivers. */
.race-first-hero {min-height:0;background:var(--navy);}
.race-first-hero .race-first-hero-inner {
  width:min(calc(100% - 42px),var(--max));
  display:grid;grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);
  gap:clamp(28px,4vw,66px);align-items:center;
  padding:clamp(70px,8vw,116px) 0 clamp(64px,7vw,104px);
}
.race-first-hero .race-first-intro{min-width:0;position:relative;z-index:1}
.race-first-hero .eyebrow{display:inline-flex;margin-bottom:18px}
.race-first-overline{font-size:.76rem!important;color:var(--cream2,#e3dcc8)!important;font-weight:900;letter-spacing:.12em;text-transform:uppercase;margin:0 0 12px}
.race-first-overline span{color:var(--yellow);padding:0 8px}
.race-first-hero .display{font-size:clamp(4.25rem,7.3vw,7.4rem);max-width:none;line-height:.84;letter-spacing:-.055em;margin:0 0 25px;overflow-wrap:normal}
.race-first-hero .display .accent{color:var(--yellow)}
.race-first-hero .lead{max-width:59ch;font-size:clamp(1.04rem,1.45vw,1.18rem);line-height:1.58;margin:0 0 20px;color:#eceaf1}
.race-first-hero .hero-promise{font-size:.78rem;line-height:1.5;margin:2px 0 0;max-width:100%}
.race-first-actions{display:flex;flex-wrap:wrap;gap:10px;margin:30px 0 0}
.race-first-actions .btn{min-height:51px;font-size:.76rem;letter-spacing:.07em;padding:13px 19px;white-space:normal;text-align:center}
.race-first-actions .race-services-btn{border-color:var(--yellow);color:var(--yellow)}
.race-first-actions .race-services-btn:hover{background:var(--yellow);color:var(--navy)}
.race-first-actions .race-book-btn{border-color:rgba(255,255,255,.75)}
.race-first-place{color:#b9b8cc!important;font-size:.79rem;line-height:1.5;letter-spacing:.025em;margin:17px 0 0}

/* The actual car, not a render, is the racing proof point. */
.race-first-car{position:relative;z-index:1;min-width:0;background:#101844;border:1px solid rgba(255,255,255,.18);border-top:6px solid var(--red);box-shadow:0 24px 60px rgba(0,0,0,.34);overflow:hidden}
.race-first-car-image{position:relative;overflow:hidden;background:#070c22}
.race-first-car-image img{width:100%;height:clamp(170px,18vw,256px);display:block;object-fit:cover;object-position:center 47%}
.race-first-image-label{position:absolute;bottom:0;left:0;background:var(--yellow);padding:9px 13px;font-size:.67rem;font-weight:950;letter-spacing:.15em;color:var(--navy);text-transform:uppercase}
.race-first-car-body{padding:24px 25px 20px;color:#fff}
.race-first-car-id{display:flex;align-items:center;gap:18px;border-bottom:1px solid rgba(255,255,255,.16);padding-bottom:16px}
.race-first-id{font-size:clamp(3.5rem,5vw,5.2rem);font-weight:950;line-height:.8;letter-spacing:-.06em;color:var(--yellow)}
.race-first-car-id>span:last-child{font-size:.71rem;font-weight:850;letter-spacing:.13em;line-height:1.5;color:#c5c4d7}
.race-first-car-id strong{font-size:1.04rem;letter-spacing:.03em;color:#fff}
.race-first-car-body>p{color:#e7e5ef!important;line-height:1.55;font-size:.96rem;margin:17px 0 6px}
.race-first-car-body .race-first-photo-note{font-size:.72rem!important;line-height:1.5;color:#b7b6cd!important;margin:8px 0 18px}
.race-first-car-link{display:inline-flex;align-items:center;gap:12px;color:var(--yellow);font-size:.79rem;font-weight:950;text-transform:uppercase;letter-spacing:.085em;text-decoration:none}
.race-first-car-link:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}
.race-first-help{border-top:1px solid rgba(255,255,255,.16);background:#080d2c;padding:17px 25px 19px;display:grid;gap:5px}
.race-first-help strong{font-size:.79rem;letter-spacing:.065em;color:#fff}
.race-first-help>span{font-size:.81rem;line-height:1.45;color:#d6d3e3}
.race-first-help a{font-size:.74rem;margin-top:6px;text-transform:uppercase;letter-spacing:.1em;font-weight:900;color:var(--yellow);text-decoration:none}
.race-first-help a:hover{text-decoration:underline;text-underline-offset:4px}

/* Useful at-a-glance facts and sponsors, no invented achievements. */
.race-first-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.race-first-stats>div{min-width:0;padding:23px clamp(12px,2vw,28px)}
.race-first-stats strong{font-size:clamp(1.3rem,2.4vw,2.12rem);line-height:1.06;overflow-wrap:break-word}
.race-first-stats span{display:block;line-height:1.35;margin-top:6px;font-size:.7rem;letter-spacing:.085em}

/* Compact team statement before the existing five services. */
.race-first-mission{position:relative;isolation:isolate;background:var(--navy);border-top:1px solid rgba(255,255,255,.12);border-bottom:1px solid rgba(255,255,255,.12);overflow:hidden}
.race-first-mission:before{content:"77";position:absolute;right:-.025em;bottom:-.32em;font-size:clamp(10rem,23vw,28rem);line-height:1;font-weight:950;font-style:italic;color:rgba(255,229,0,.035);pointer-events:none;z-index:-1}
.race-first-mission-inner{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(290px,.85fr);gap:clamp(30px,6vw,90px);align-items:center;padding:clamp(48px,6vw,75px) 0}
.race-first-mission h2{font-size:clamp(2.2rem,3.9vw,4.1rem);line-height:.96;letter-spacing:-.04em;margin:11px 0 21px;max-width:16ch}
.race-first-mission p{max-width:63ch;line-height:1.65;color:#dddbe8;font-size:1.02rem;margin:0 0 22px}
.race-first-mission-link{color:var(--yellow);font-size:.77rem;text-transform:uppercase;letter-spacing:.09em;font-weight:900;text-decoration:none}
.race-first-mission-link:hover{text-decoration:underline;text-underline-offset:5px}
.race-first-mission-facts{display:grid;gap:0;border-top:4px solid var(--red);background:#101844}
.race-first-mission-facts>div{display:grid;grid-template-columns:minmax(90px,.47fr) minmax(0,.9fr);column-gap:12px;row-gap:2px;align-items:center;padding:17px 19px;border-bottom:1px solid rgba(255,255,255,.15)}
.race-first-mission-facts>div:last-child{border:0}
.race-first-mission-facts span{font-size:.68rem;letter-spacing:.12em;color:var(--yellow);font-weight:950;grid-row:span 2}
.race-first-mission-facts strong{font-size:1.05rem;color:#fff;text-transform:uppercase;letter-spacing:.005em}
.race-first-mission-facts small{color:#c0bfd0;font-size:.78rem}

/* Services remain unmistakable and immediately follow the mission. */
.race-first-services{background:var(--navy2);padding-top:clamp(58px,7vw,90px)}
.race-first-services .section-head{margin-bottom:28px}
.race-first-services .section-head h2{max-width:17ch}
.race-first-services .section-head p{max-width:57ch}
.race-first-services .grid .card{min-height:100%}
.race-services-actions{margin-top:29px;display:flex;flex-wrap:wrap;gap:12px}
.race-services-actions .btn{font-size:.76rem;padding:13px 21px}

/* Dedicated team page photo and bridge back to income-producing services. */
.race-programme-intro{padding-top:40px;padding-bottom:45px}
.race-programme-photo{margin:0;background:#0b1236;border-top:5px solid var(--red);overflow:hidden}
.race-programme-photo img{display:block;width:100%;height:auto;max-height:530px;object-fit:contain}
.race-programme-photo figcaption{padding:14px 20px;color:#c7c4d2;font-size:.83rem;line-height:1.55}
.race-programme-bridge{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:29px 0;border-bottom:1px solid rgba(255,255,255,.18)}
.race-programme-bridge>div{max-width:720px}
.race-programme-bridge h2{font-size:clamp(1.7rem,3vw,2.7rem);margin:7px 0 12px;line-height:1}
.race-programme-bridge p{margin:0;color:#dfdce8;line-height:1.6}
.race-programme-bridge .btn{flex:none;font-size:.75rem}

@media(max-width:1100px){
 .race-first-hero .race-first-hero-inner{grid-template-columns:minmax(0,1fr) minmax(300px,.86fr);gap:24px}
 .race-first-hero .display{font-size:clamp(3.6rem,7.7vw,6rem)}
 .race-first-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
 .race-first-hero .race-first-hero-inner{grid-template-columns:minmax(0,1fr);padding:70px 0 58px}
 .race-first-hero .display{font-size:clamp(4.25rem,13.8vw,7.2rem)}
 .race-first-car{max-width:720px;width:100%}
 .race-first-car-image img{height:clamp(210px,38vw,330px)}
 .race-first-mission-inner{grid-template-columns:minmax(0,1fr);gap:25px}
 .race-first-mission h2{max-width:22ch}
 .race-first-mission-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
 .race-first-mission-facts>div{grid-template-columns:minmax(0,1fr);gap:6px;border-right:1px solid rgba(255,255,255,.15);border-bottom:0}
 .race-first-mission-facts span{grid-row:auto}
 .race-programme-bridge{align-items:flex-start;flex-direction:column}
}
@media(max-width:540px){
 .race-first-hero .race-first-hero-inner{width:min(calc(100% - 30px),var(--max));padding:52px 0 48px}
 .race-first-hero .display{font-size:clamp(3.9rem,16vw,5.8rem)}
 .race-first-overline{font-size:.69rem!important}
 .race-first-hero .lead{font-size:1.01rem;line-height:1.57}
 .race-first-hero .hero-promise{font-size:.68rem}
 .race-first-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin-top:24px}
 .race-first-actions .btn{width:100%;min-height:50px;padding:12px 13px}
 .race-first-car-image img{height:clamp(154px,48vw,230px)}
 .race-first-car-body{padding:19px 18px 17px}
 .race-first-help{padding:15px 18px}
 .race-first-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .race-first-stats>div{padding:18px 13px}
 .race-first-stats strong{font-size:clamp(1.3rem,5.6vw,1.8rem)}
 .race-first-stats span{font-size:.63rem}
 .race-first-mission-inner{padding:42px 0}
 .race-first-mission h2{font-size:clamp(2.25rem,10.3vw,3.25rem)}
 .race-first-mission p{font-size:.98rem}
 .race-first-mission-facts{grid-template-columns:minmax(0,1fr)}
 .race-first-mission-facts>div{display:grid;grid-template-columns:minmax(82px,.5fr) minmax(0,1fr);border-right:0;border-bottom:1px solid rgba(255,255,255,.15)}
 .race-first-mission-facts span{grid-row:span 2}
 .race-services-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 .race-services-actions .btn{width:100%}
 .race-programme-photo figcaption{padding:11px 14px}
}
@media(prefers-reduced-motion:reduce){.race-first-hero .btn,.race-first-car a,.race-first-mission a{transition:none!important}}

/* ---- Customer-first homepage additions (19 Oct 2026) ---- */
.race-first-hero .display.service-led{font-size:clamp(2.7rem,5.6vw,5.5rem);line-height:.92;letter-spacing:-.045em;max-width:none}
.race-first-hero .hero-promise{font-size:.9rem;color:var(--yellow)}
.trust-chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px 10px;margin:22px 0 0;padding:0}
.trust-chips li{font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#dfe6f3;border:1px solid rgba(255,255,255,.22);padding:7px 12px 7px 28px;position:relative}
.trust-chips li:before{content:"✓";position:absolute;left:10px;color:var(--yellow);font-weight:900}
.price-line{margin:12px 0 4px;color:#c0cadb;font-size:.92rem}
.card .price-line strong,.price-line strong{color:var(--yellow)}
.how-steps .card-number{display:block;margin-bottom:6px}
.why-grid .card h3{margin-top:0}
@media(max-width:640px){
 .race-first-hero .display.service-led{font-size:clamp(2.4rem,11.5vw,3.6rem)}
 .race-first-hero .hero-promise{font-size:.78rem}
 .trust-chips li{font-size:.68rem}
}
