/* basq media — shared styles
   Brand colors from the basq branding sheet.
   Headings: Archivo (stand-in for Akzidenz-Grotesk Next). Body: Source Sans 3. */
:root{
  --beige:#F1E9D2;   /* primary */
  --ink:#4B4737;     /* text / structure */
  --orange:#F6924F;  /* accent */
  --green:#1B3D2F;   /* support dark */
  --cream:#FAF8F1;   /* background */
  --teal:#487B6F;
  --mustard:#D6A35D;
  --soft:#6b6655;    /* secondary text on light */
  --head:"Archivo",system-ui,sans-serif;
  --body:"Source Sans 3",system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--cream);color:var(--ink);font-family:var(--body);font-size:19px;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit}
img,video{display:block;max-width:100%}
:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.wrap{width:min(1200px,90vw);margin:0 auto}
h1,h2,h3{font-family:var(--head);font-stretch:115%;font-weight:800;letter-spacing:-.025em;line-height:1}
h2{font-size:clamp(2.1rem,4.6vw,3.6rem);margin-bottom:1.1rem}
h3{font-size:1.25rem;letter-spacing:-.01em;line-height:1.15}
p{max-width:60ch}
section{padding:6.5rem 0}

.btn{display:inline-block;background:var(--orange);color:var(--green);font-family:var(--head);font-stretch:110%;font-weight:700;font-size:1rem;text-decoration:none;padding:1rem 1.6rem;border-radius:999px;border:0;cursor:pointer}
.btn:hover{background:#ff9f60}
.textlink{font-weight:600;text-underline-offset:5px;text-decoration-thickness:2px;text-decoration-color:var(--orange)}

/* nav */
nav{position:sticky;top:0;z-index:30;transition:background-color .25s,box-shadow .25s}
nav .wrap{transition:padding .25s}
nav.scrolled{background:rgba(250,248,241,.95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 1px 0 #e3dcc6}
nav.scrolled .wrap{padding:.8rem 0}
[id]{scroll-margin-top:96px}
nav .wrap{display:flex;align-items:center;justify-content:space-between;padding:1.6rem 0}
nav .logo img{height:34px;width:auto}
nav ul{display:flex;gap:2rem;list-style:none;align-items:center;font-weight:600}
nav ul a{text-decoration:none}
nav ul a:hover{color:var(--teal)}
nav ul a[aria-current="page"]{text-decoration:underline;text-decoration-color:var(--orange);text-decoration-thickness:2px;text-underline-offset:6px}

/* home hero with livery stripes */
.hero{position:relative;overflow:hidden;min-height:min(69.4vw,1000px);margin-top:-88px;padding-top:120px}
.hero .copy{position:relative;z-index:3;max-width:600px;padding-bottom:4rem}
.hero h1{font-size:clamp(3rem,7.4vw,6.4rem);margin-bottom:1.6rem}
.hero p{font-size:1.2rem;margin-bottom:2rem;max-width:40ch}
.actions{display:flex;gap:1.8rem;align-items:center;flex-wrap:wrap}
.livery{position:absolute;inset:0;z-index:1;pointer-events:none}
.livery svg{position:absolute;right:0;bottom:0;width:100%;height:100%}

/* inner page header: shorter stripe band */
.page-head{padding:3rem 0 0}
.page-head h1{font-size:clamp(2.8rem,6.4vw,5.4rem);max-width:14ch}
.page-head p{font-size:1.2rem;margin-top:1.2rem;max-width:46ch}
.band{display:block;width:100%;height:auto;margin-top:3rem}

/* featured film */
.featured{background:var(--green);color:var(--cream);padding:5rem 0}
.featured .head{display:flex;justify-content:space-between;align-items:end;gap:2rem;margin-bottom:2rem;flex-wrap:wrap}
.featured h2{color:var(--beige);margin:0}
.featured .head p{color:#c9d6cf;max-width:46ch}
.featured video{width:100%;aspect-ratio:16/9;border-radius:6px;background:#14302a;object-fit:cover}

/* automotive */
.auto{display:grid;grid-template-columns:1.1fr .9fr;gap:5rem;align-items:center}
.auto dl{margin-top:2rem;display:grid;grid-template-columns:auto 1fr;gap:1rem 2rem}
.auto dt{font-family:var(--head);font-stretch:110%;font-weight:700}
.auto dd{color:var(--soft)}
.ph{background:#e4d9bb;border-radius:6px;overflow:hidden;position:relative}
.ph img{width:100%;height:100%;object-fit:cover}
.ph .empty{position:absolute;inset:0;display:grid;place-items:center;color:#9a9480}
.auto .ph{aspect-ratio:4/5}

/* work */
.work{background:var(--beige)}
.film{background:none;border:0;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.film .ph{aspect-ratio:16/9}
.film .ph img{transition:transform .6s ease}
.film:hover .ph img{transform:scale(1.03)}
.film .cap{margin-top:.9rem}
.film .cap span{color:var(--soft);display:block;font-size:1rem}

/* teaser rows linking to inner pages */
.teasers{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem}
.teaser{display:block;text-decoration:none;padding:2rem;border-radius:6px;background:var(--beige);border-left:8px solid var(--teal)}
.teaser.alt{border-left-color:var(--mustard)}
.teaser p{color:var(--soft);margin:.6rem 0 1rem}
.teaser .textlink{text-decoration:underline}

/* services page */
.services{display:grid;grid-template-columns:1fr 1fr;gap:4rem}
.offer{border-top:4px solid var(--teal);padding-top:1.4rem}
.offer.monthly{border-color:var(--mustard)}
.offer > p{color:var(--soft);margin:.6rem 0 1.4rem}
.offer ul{list-style:none}
.offer li{display:flex;justify-content:space-between;gap:1.5rem;padding:.85rem 0;border-bottom:1px solid #e3dcc6}
.offer li span:last-child{color:var(--soft);text-align:right;white-space:nowrap}
.also{margin-top:3rem;color:var(--soft)}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;margin-top:2.4rem}
.step b{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--ink);color:var(--cream);font-family:var(--head);font-weight:800;margin-bottom:1rem}
.step:nth-child(2) b{background:var(--teal)}
.step:nth-child(3) b{background:var(--mustard);color:var(--green)}
.step:nth-child(4) b{background:var(--orange);color:var(--green)}
.step p{color:var(--soft);font-size:1.02rem;margin-top:.4rem}
.tint{background:var(--beige)}

/* about page */
.about{display:grid;grid-template-columns:.8fr 1.2fr;gap:5rem;align-items:center}
.about .ph{aspect-ratio:1;border-radius:50%;max-width:420px}
.about p+p{margin-top:1rem}
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem;margin-top:2.6rem}
.facts div{border-top:3px solid var(--ink);padding-top:.8rem}
.facts span{display:block;color:var(--soft);font-size:1rem}

/* call to action band on inner pages */
.cta-band{background:var(--green);color:var(--cream);padding:4.5rem 0}
.cta-band .wrap{display:flex;justify-content:space-between;align-items:center;gap:2rem;flex-wrap:wrap}
.cta-band h2{color:var(--beige);margin:0}

/* contact */
.contact{background:var(--green);color:var(--cream)}
.contact .wrap{display:grid;grid-template-columns:1fr 1fr;gap:4.5rem}
.contact h2{color:var(--beige)}
.lines{margin-top:2rem;line-height:2.1}
.lines a{color:var(--cream);text-underline-offset:4px;text-decoration-color:var(--orange)}
.lines span{color:#a9c0b6;display:inline-block;width:6.5rem}
form{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}
form .full{grid-column:1/-1}
label{display:block;font-size:.95rem;color:#c9d6cf;margin-bottom:.35rem}
input,select,textarea{width:100%;font:inherit;font-size:1rem;color:var(--ink);background:var(--cream);border:2px solid transparent;border-radius:8px;padding:.75rem .9rem}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--orange)}
textarea{min-height:120px;resize:vertical}
.note{font-size:.92rem;color:#a9c0b6}

footer{background:var(--green);color:#a9c0b6;border-top:1px solid #2c5444}
footer .wrap{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:2rem 0;flex-wrap:wrap}
footer img{width:64px;height:64px}
footer .wrap>span:first-of-type{max-width:34em;line-height:1.45}
footer a{color:#c9d6cf}
.stripe{height:14px;background:linear-gradient(var(--green) 0 25%,var(--teal) 25% 50%,var(--mustard) 50% 75%,var(--orange) 75%)}

.lb{position:fixed;inset:0;background:rgba(27,61,47,.96);z-index:50;display:none;place-items:center}
.lb.open{display:grid}
.lb iframe,.lb video{width:min(1200px,94vw);aspect-ratio:16/9;border:0;border-radius:6px;background:#000}
.lb.vertical iframe,.lb.vertical video{width:auto;height:min(88vh,1280px);aspect-ratio:9/16;max-width:94vw}
.lb [hidden]{display:none}

/* work: editorial intro beside vertical films */
.work-layout{display:grid;grid-template-columns:1.1fr 3fr;gap:1.6rem;align-items:start}
.reels{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem;align-items:start}
.work-intro p{color:var(--soft);margin-top:.4rem}
.work-layout .film{grid-column:auto}
.film.vertical .ph{aspect-ratio:9/16}
.film .ph .play{position:absolute;left:1rem;bottom:1rem;background:var(--cream);color:var(--green);font-family:var(--head);font-stretch:110%;font-weight:700;font-size:.9rem;padding:.5rem .9rem;border-radius:999px}
.film:hover .ph .play{background:var(--orange)}
.lb button{position:absolute;top:1.2rem;right:1.6rem;background:none;border:0;color:var(--cream);font:inherit;font-weight:600;cursor:pointer}

@media (max-width:900px){
  .hero{min-height:0;margin-top:0;padding-top:1rem;display:flex;flex-direction:column}
  .hero .copy{padding-bottom:1rem}
  .livery{position:relative;height:300px;order:2}
  .auto,.services,.about,.contact .wrap,.teasers{grid-template-columns:1fr;gap:2.5rem}
  .about .ph{max-width:260px}
  .work-layout{grid-template-columns:1fr}
  .reels{grid-template-columns:1fr 1fr;gap:1.6rem 1rem}
  .work-layout .film{grid-column:auto}
  .steps{grid-template-columns:1fr 1fr}
  .facts{grid-template-columns:1fr}
  form{grid-template-columns:1fr}
  section{padding:4.5rem 0}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.film .ph img{transition:none}}

/* work page */
.jump{display:flex;flex-wrap:wrap;gap:.6rem;list-style:none;margin-top:1.8rem}
.jump a{display:inline-block;text-decoration:none;font-weight:600;font-size:1rem;padding:.5rem 1rem;border:2px solid var(--ink);border-radius:999px}
.jump a:hover{background:var(--ink);color:var(--cream)}
.cat{padding:5rem 0}
.cat-head{display:flex;justify-content:space-between;align-items:end;gap:2rem;flex-wrap:wrap;margin-bottom:2rem}
.cat-head h2{margin:0}
.cat-head p{color:var(--soft);max-width:46ch}
.reels.four{grid-template-columns:repeat(4,1fr)}
.reels .film{grid-column:auto}
.reels .film.wide{grid-column:span 2}
.film.wide .ph{aspect-ratio:16/9}
.dealer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.6rem;align-items:start}
.dealer-grid figure{margin:0;border-radius:6px;overflow:hidden;background:#e4d9bb}
.dealer-grid figure img{width:100%;height:100%;object-fit:cover}
.dealer-grid .tall{aspect-ratio:9/16}
.dealer-grid .wide{grid-column:span 2;aspect-ratio:3/2}
.dealer-grid .detail{align-self:stretch;position:relative;min-height:200px}
.dealer-grid .detail img{position:absolute;inset:0}
.note-photos{color:var(--soft);font-size:1rem;margin-top:1rem}
.credits{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:1.6rem}
.credits li{border-left:8px solid var(--orange);background:var(--beige);padding:1.6rem 1.8rem;border-radius:6px}
.credits li:nth-child(2){border-left-color:var(--teal)}
.credits span{display:block;color:var(--soft);margin-top:.4rem}
@media (max-width:900px){
  .reels.four{grid-template-columns:1fr 1fr}
  .dealer-grid{grid-template-columns:1fr 1fr;gap:1rem}
  .dealer-grid .detail{aspect-ratio:4/5}
  .credits{grid-template-columns:1fr}
}

.also-grid{margin-top:4rem;border-top:4px solid var(--orange);padding-top:1.4rem}
.also-grid ul{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem 2rem;margin:1.2rem 0}
.also-grid li strong{display:block;font-family:var(--head);font-stretch:110%}
.also-grid li span{color:var(--soft);font-size:1rem}
@media (max-width:900px){.also-grid ul{grid-template-columns:1fr}}

.dealer-grid .film{grid-column:auto}
.re-layout{display:grid;grid-template-columns:1fr 1fr 2fr;gap:1.6rem 2rem;align-items:start}
.re-info{align-self:center}
.re-info{padding-left:1.4rem}
.re-info ul{list-style:none;margin:1rem 0 2rem}
.re-info li{padding:.8rem 0;border-bottom:1px solid #e3dcc6}
@media (max-width:900px){.re-layout{grid-template-columns:minmax(0,1fr);gap:2rem}.re-layout .film{width:auto}.re-info{padding-left:0;grid-column:1/-1}.re-layout{grid-template-columns:1fr 1fr}}

.slot-cta{display:flex;flex-direction:column;justify-content:flex-end;gap:.8rem;aspect-ratio:9/16;padding:1.6rem;border-radius:6px;background:var(--green);color:var(--cream);text-decoration:none;position:relative;overflow:hidden}
.slot-cta::before{content:"";position:absolute;left:0;right:0;top:0;height:28px;background:linear-gradient(var(--teal) 0 33%,var(--mustard) 33% 66%,var(--orange) 66%)}
.slot-cta h3{font-size:1.6rem;color:var(--beige)}
.slot-cta span{color:#c9d6cf;font-size:1rem}
.slot-cta .btn{align-self:flex-start;color:var(--green);margin-top:.4rem}
@media (max-width:900px){.slot-cta .btn{white-space:nowrap;padding:.6rem .9rem;font-size:.85rem}.slot-cta{padding:1.1rem;gap:.5rem}.slot-cta::before{height:18px}.slot-cta h3{font-size:1.25rem}.slot-cta span{font-size:.9rem}}

/* mobile menu */
.nav-mobile{display:none;align-items:center;gap:.8rem}
.nav-cta{padding:.7rem 1.1rem;font-size:.92rem}
.menu-toggle{width:46px;height:46px;border-radius:50%;border:2px solid var(--ink);background:none;display:grid;place-content:center;gap:5px;cursor:pointer}
.menu-toggle span{display:block;width:20px;height:2px;background:var(--ink);transition:transform .25s,opacity .25s}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media (max-width:900px){
  .nav-mobile{display:flex}
  nav ul{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:var(--cream);border-bottom:4px solid var(--orange);box-shadow:0 18px 30px rgba(75,71,55,.15);padding:.4rem 5vw 1.4rem}
  nav ul.open{display:flex}
  nav ul li a{display:block;padding:1rem 0;font-family:var(--head);font-stretch:115%;font-weight:800;font-size:1.6rem;letter-spacing:-.02em;border-bottom:1px solid #e3dcc6}
  nav ul li a[aria-current="page"]{text-decoration:none;color:var(--teal)}
  nav ul li:last-child a{border:0}
  nav ul li a.btn{display:block;text-align:center;margin-top:1.2rem;padding:1rem;font-size:1.05rem;border:0}
}
@media (prefers-reduced-motion:reduce){.menu-toggle span{transition:none}}


/* even out line breaks so paragraphs don't end on one word */
p,h1,h2,h3{text-wrap:pretty}
h1{text-wrap:balance}
/* services header: copy left, two paths right */
.head-split{display:grid;grid-template-columns:1.3fr 1fr;gap:4rem;align-items:end}
.page-head .head-split h1{max-width:none}
.head-paths{list-style:none;display:grid;gap:1rem}
.head-paths a{display:block;text-decoration:none;background:var(--beige);border-radius:6px;padding:1.2rem 1.4rem;border-left:8px solid var(--mustard);transition:transform .2s}
.head-paths li:nth-child(2) a{border-left-color:var(--teal)}
.head-paths a:hover{transform:translateX(4px)}
.head-paths strong{display:block;font-family:var(--head);font-stretch:112%;font-size:1.2rem}
.head-paths span{color:var(--soft);font-size:1rem}
@media (max-width:900px){.head-split{grid-template-columns:1fr;gap:2rem}}

/* services: line up titles, intros and lists across both columns */
.offer h2{font-size:clamp(2rem,3.4vw,2.9rem);margin-bottom:.6rem}
@media (min-width:901px){
  .services{grid-template-rows:auto auto 1fr;row-gap:0}
  .offer{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0}
  .offer > p{margin:0 0 1.4rem}
}

/* ---------- motion ---------- */
/* stripes draw in on load */
.livery polyline,.band polyline{stroke-dasharray:1;stroke-dashoffset:1;animation:draw 1.5s cubic-bezier(.65,0,.25,1) forwards}
.livery polyline:nth-child(2),.band polyline:nth-child(2){animation-delay:.12s}
.livery polyline:nth-child(3),.band polyline:nth-child(3){animation-delay:.24s}
.livery polyline:nth-child(4),.band polyline:nth-child(4){animation-delay:.36s}
@keyframes draw{to{stroke-dashoffset:0}}
.roundel-g{opacity:0;transform-box:fill-box;transform-origin:center;animation:pop .7s cubic-bezier(.2,.9,.3,1.2) 1.25s forwards}
@keyframes pop{from{opacity:0;transform:scale(.6) rotate(-20deg)}to{opacity:1;transform:none}}
.livery svg,.band{will-change:transform}

/* client ticker */
.ticker{display:flex;align-items:center;gap:2rem;padding:1.6rem 0 1.6rem 5vw;background:var(--cream);border-top:1px solid #e3dcc6;overflow:hidden}
.ticker-label{flex:none;font-weight:600;color:var(--soft);font-size:1rem}
.ticker-track{display:flex;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.ticker ul{display:flex;flex:none;list-style:none;animation:tick 45s linear infinite}
.ticker li{font-family:var(--head);font-stretch:115%;font-weight:800;font-size:clamp(1.2rem,2vw,1.6rem);letter-spacing:-.02em;white-space:nowrap;padding:0 1.6rem;display:flex;align-items:center;gap:3.2rem}
.ticker li::after{content:"";width:28px;height:10px;flex:none;margin-left:1.6rem;background:linear-gradient(90deg,var(--green) 0 25%,var(--teal) 25% 50%,var(--mustard) 50% 75%,var(--orange) 75%);transform:skewX(-35deg);border-radius:2px}
.ticker:hover ul{animation-play-state:paused}
@keyframes tick{to{transform:translateX(-100%)}}
@media (max-width:900px){.ticker{flex-direction:column;align-items:flex-start;gap:.8rem;padding:1.4rem 0}.ticker-label{padding-left:5vw}.ticker-track{width:100%}}

/* sections ease in as you reach them (class added by script) */
.rv{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
.rv.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  .livery polyline,.band polyline{animation:none;stroke-dashoffset:0}
  .roundel-g{animation:none;opacity:1}
  .ticker ul{animation:none}
  .ticker ul[aria-hidden]{display:none}
  .ticker-track{flex-wrap:wrap;-webkit-mask-image:none;mask-image:none}
  .rv{opacity:1;transform:none;transition:none}
}
.livery svg,.band{overflow:visible}
.page-head{overflow-x:clip}
html,body{overflow-x:clip}

.auto .ph{aspect-ratio:9/16;max-width:440px;justify-self:end;width:100%}
@media (max-width:900px){.auto .ph{order:-1;justify-self:stretch;max-width:none;aspect-ratio:16/10;border-radius:6px;overflow:hidden}.auto{gap:1.8rem}}
@media (max-width:900px){.auto dl{grid-template-columns:1fr;gap:.2rem}.auto dd{margin-bottom:1rem}}
/* hover previews */
.film .ph .pv{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s ease}
.film.previewing .ph .pv{opacity:1}
.film .ph .play{z-index:2}

.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
#formStatus.ok{color:#cfe6d8;font-weight:600}
#formStatus.err{color:#ffc9a6}
#formStatus a{color:var(--cream)}
.btn:disabled{opacity:.7;cursor:default}

/* rotating hero line */
.hero h1.rot{text-wrap:wrap}
.rot-line{display:block;min-height:2em}
.rot-word{display:inline-block;color:var(--ink);transition:opacity .35s ease,transform .45s cubic-bezier(.2,.7,.2,1)}
.rot-word.out{opacity:0;transform:translateY(-.18em)}
.rot-word.pre{opacity:0;transform:translateY(.22em);transition:none}
@media (max-width:900px){.rot-line{min-height:2em}}

/* mobile: stacked two-column grid instead of side-scrolling rows */
@media (max-width:900px){
  .reels .film .cap{margin-top:.6rem}
  .reels .film .cap h3{font-size:1.05rem;line-height:1.2}
  .reels .film .cap span{font-size:.88rem}
  .film .ph .play{left:.6rem;bottom:.6rem;font-size:.8rem;padding:.4rem .75rem}
  .reels.home-reels .film:nth-child(3){display:none}
}
/* car photo: framed on the car instead of a full-height portrait */
.auto .ph{aspect-ratio:4/5;max-width:420px}
.auto .ph img{width:100%;height:100%;object-fit:cover;object-position:50% 46%}
@media (max-width:900px){.auto .ph{aspect-ratio:16/10;max-width:none}}
