/* Mayne Designs UI layer (2026-10-18, revised to stand apart from EBMC).
   Identity: gold on black, a coachbuilder's shop. Display voice follows the logo (heavy condensed italic);
   accents borrow the logo's carbon stripes in gold, never EBMC's red slants.
   Motion thesis: the shop door rolls up. Build photos lift into view from the floor up, the
   featured build most of all; everything else is quiet feedback. EBMC uses diagonal wipes and a red sweep.
   Rules: transform/opacity/clip-path only, content visible by default, reduced-motion honoured. */

@font-face{font-family:'Mayne Display';src:url('/fonts/barlow-condensed-latin-800-italic.woff2') format('woff2');font-weight:800;font-style:italic;font-display:swap;}
@font-face{font-family:'Mayne Display';src:url('/fonts/barlow-condensed-latin-700-italic.woff2') format('woff2');font-weight:700;font-style:italic;font-display:swap;}
@font-face{font-family:'Mayne Display';src:url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap;}

:root{
  --display:'Mayne Display','Arial Narrow',sans-serif;
  --mayne-red:#d6293a;
  --slant:-14deg;
  --out:cubic-bezier(.16,1,.3,1);
}

/* ---------- Display type: the logo's voice ---------- */
h1:not(.hero-wordmark),h2,.display,.featured-name,.b-name,.build-card-name,.loc-build-name,.hero-ig-title,.tier-name,.tf-name{
  font-family:var(--display)!important;font-style:italic;font-weight:800;
  text-transform:uppercase;letter-spacing:-.005em;line-height:.92;text-wrap:balance;
}
.display{font-size:clamp(2.6rem,6.2vw,5.6rem)!important;}
.featured-name,.b-name{letter-spacing:0;}
.tier-price,.fs-num,.m-num,.calc-total-num,.calc-row-val,.pillar-num{
  font-family:var(--display)!important;font-style:italic;font-weight:800;font-variant-numeric:tabular-nums lining-nums;
}

/* Section headings carry the logo's carbon stripes, in gold: three thin bars that fill in once. */
h2.display{position:relative;display:inline-block;padding-bottom:.32em;}
h2.display::after{
  content:'';position:absolute;left:.08em;bottom:0;width:46px;height:12px;
  background:repeating-linear-gradient(110deg,var(--gold,#c9a517) 0 4px,transparent 4px 11px);
  clip-path:inset(0 0 0 0);
}
.ui-motion h2.display.ui-pending::after{clip-path:inset(0 100% 0 0);}
.ui-motion h2.display::after{transition:clip-path .6s var(--out) .15s;}

/* ---------- Hero: the logo paints at once (it is the LCP) and stays still ---------- */
.hero-wordmark{opacity:1!important;animation:none!important;}

/* ---------- The shop door: build photos lift into view from the floor up ---------- */
.ui-motion .ui-wipe{transition:clip-path 1s var(--out),transform 1s var(--out);}
.ui-motion .ui-wipe.ui-pending{clip-path:inset(100% 0 0 0);transform:translateY(18px);}
.ui-wipe:not(.ui-pending){clip-path:inset(0 0 0 0);}
/* The featured build gets the slow, full-height lift: the page's one authored moment. */
.ui-motion .featured-img .ui-wipe{transition-duration:1.4s;}

/* Card names get a straight gold rule that grows on hover/focus, so the whole card reads as one target. */
.b-card .b-name,.build-card-name,.loc-build-name{position:relative;display:inline-block;}
.b-card .b-name::after,.build-card .build-card-name::after,.loc-build-card .loc-build-name::after{
  content:'';position:absolute;left:0;bottom:-.14em;height:2px;width:100%;
  background:var(--gold,#c9a517);transform:scaleX(0);transform-origin:left;
  transition:transform .35s var(--out);
}
.b-card:hover .b-name::after,.b-card:focus-visible .b-name::after,
.build-card:hover .build-card-name::after,.build-card:focus-visible .build-card-name::after,
.loc-build-card:hover .loc-build-name::after,.loc-build-card:focus-visible .loc-build-name::after{transform:scaleX(1);}

/* ---------- Controls answer the hand ---------- */
.btn-gold,.btn-ghost,.btn-ghost-gold{transition:transform .15s var(--out),background-color .2s,border-color .2s,color .2s;}
.btn-gold:active,.btn-ghost:active,.btn-ghost-gold:active{transform:scale(.97)!important;transition-duration:.08s;}
.btn-gold{position:relative;overflow:hidden;isolation:isolate;}
.btn-gold::before{
  content:'';position:absolute;inset:0;z-index:-1;background:#e4bf2a;
  transform:scaleY(0);transform-origin:bottom;transition:transform .35s var(--out);
}
.btn-gold:hover::before,.btn-gold:focus-visible::before{transform:scaleY(1);}

/* ---------- Browser surfaces carry the brand ---------- */
::selection{background:var(--gold,#c9a517);color:#0a0a0a;}
html{caret-color:var(--gold,#c9a517);scrollbar-color:#3a3a3a #0a0a0a;}
::-webkit-scrollbar{width:11px;height:11px;}
::-webkit-scrollbar-track{background:#0a0a0a;}
::-webkit-scrollbar-thumb{background:#333;border:3px solid #0a0a0a;border-radius:8px;}
::-webkit-scrollbar-thumb:hover{background:var(--gold,#c9a517);}
:focus-visible{outline:2px solid var(--gold,#c9a517);outline-offset:3px;}
a{text-underline-offset:.22em;}

/* ---------- Reduced motion: keep states, drop movement ---------- */
@media (prefers-reduced-motion:reduce){
  .ui-motion .ui-wipe,.ui-motion .ui-wipe.ui-pending{clip-path:none!important;transform:none!important;transition:none!important;}
  .ui-motion h2.display.ui-pending::after{clip-path:inset(0 0 0 0)!important;}
  .btn-gold::before{transition:none;}
  .b-card .b-name::after,.build-card-name::after,.loc-build-name::after{transition:none;}
}

/* Brand marks: the real logo replaces the typed "Mayne Designs" wordmarks in nav and footer. */
.nav-logo-small .ui-logo-sm{display:block;height:42px;width:auto;}
.footer-brand .ui-logo-ft{display:block;height:54px;width:auto;}
@media(max-width:600px){.nav-logo-small{display:none;}}
.hero-ig-eyebrow{letter-spacing:.02em!important;}
.t-pill-icon:empty{display:none;}
.loc-links-label{text-transform:none!important;letter-spacing:.03em!important;}

/* Process page: one build shown start to finish (Cornfed, the most-documented build). */
.process-car{padding:5rem 0 6rem;border-top:1px solid rgba(201,165,23,.12);}
.process-car .pc-lede{max-width:62ch;margin:1.25rem 0 2.25rem;color:rgba(248,248,248,.72);}
.pc-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:clamp(150px,17vw,250px);gap:.6rem;}
.pc-grid a{position:relative;overflow:hidden;display:block;background:#111;}
.pc-grid a.pc-wide{grid-column:span 2;grid-row:span 2;}
.pc-grid a.pc-long{grid-column:span 2;}
.pc-grid{grid-auto-flow:dense;}
.pc-grid img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s var(--out);}
.pc-grid a:hover img,.pc-grid a:focus-visible img{transform:scale(1.05);}
.pc-more{margin-top:2rem;display:inline-flex;}
@media(max-width:768px){.pc-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:42vw;}.pc-grid a.pc-wide{grid-column:span 2;grid-row:span 1;}}
@media(prefers-reduced-motion:reduce){.pc-grid img{transition:none;}}

/* Sold ribbon on build pages: sit below the fixed nav so the whole ribbon reads (it was hidden behind the nav). */
.build-hero .sold-ribbon{top:124px;}
@media(max-width:640px){.build-hero .sold-ribbon{top:104px;}}

/* Build page video embed (16:9). */
.build-video{margin-top:3rem;}
.build-video .bv-title{font-family:var(--display);font-style:italic;font-weight:800;text-transform:uppercase;font-size:1.6rem;margin-bottom:1rem;color:#f8f8f8;}
.bv-frame{position:relative;aspect-ratio:16/9;background:#000;border:1px solid rgba(201,165,23,.18);}
.bv-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}

/* Featured rail: more builds featured under the lead card. */
.featured-rail{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:1rem;}
.fr-card{position:relative;display:block;background:#0f0f0f;border:1px solid rgba(201,165,23,.14);overflow:hidden;transition:border-color .25s;}
.fr-card:hover,.fr-card:focus-visible{border-color:rgba(201,165,23,.55);}
.fr-img{aspect-ratio:4/3;overflow:hidden;background:#111;}
.fr-img img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--out);}
.fr-card:hover .fr-img img{transform:scale(1.05);}
.fr-body{display:flex;flex-direction:column;gap:.2rem;padding:.9rem 1rem 1.1rem;}
.fr-kicker{font-size:.75rem;font-weight:700;letter-spacing:.06em;color:var(--gold,#c9a517);}
.fr-name{font-family:var(--display);font-style:italic;font-weight:800;text-transform:uppercase;font-size:1.45rem;line-height:1;color:#f8f8f8;}
.fr-spec{font-size:.85rem;color:rgba(248,248,248,.62);}
@media(max-width:900px){.featured-rail{grid-template-columns:repeat(2,1fr);}}

/* YouTube strip. */
.yt-strip{padding:5rem 0;border-top:1px solid rgba(201,165,23,.12);}
.yt-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1.25rem;margin-bottom:2rem;}
.yt-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;}
.yt-card{display:block;color:#f8f8f8;}
.yt-thumb{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#000;border:1px solid rgba(201,165,23,.14);}
.yt-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--out);}
.yt-card:hover .yt-thumb img{transform:scale(1.04);}
.yt-play{position:absolute;left:50%;top:50%;width:64px;height:44px;margin:-22px 0 0 -32px;border-radius:12px;background:rgba(10,10,10,.78);border:1px solid rgba(201,165,23,.6);}
.yt-play::after{content:'';position:absolute;left:25px;top:13px;width:16px;height:18px;background:var(--gold,#c9a517);clip-path:polygon(0 0,100% 50%,0 100%);}
.yt-card:hover .yt-play{background:var(--gold,#c9a517);}
.yt-card:hover .yt-play::after{background:#0a0a0a;}
.yt-title{display:block;margin-top:.7rem;font-size:.95rem;line-height:1.4;color:rgba(248,248,248,.85);}
@media(max-width:900px){.yt-grid{grid-template-columns:1fr;}}

/* Terms + scam protection on the main page. */
.terms-guard{padding:5rem 0;border-top:1px solid rgba(201,165,23,.12);background:#0b0b0b;}
.tg-grid{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;margin-top:2rem;}
.tg-col h3{font-family:var(--display);font-style:italic;font-weight:800;text-transform:uppercase;font-size:1.5rem;margin-bottom:1rem;color:#f8f8f8;}
.tg-col ul{list-style:none;display:flex;flex-direction:column;gap:.8rem;}
.tg-col li{position:relative;padding-left:1.4rem;color:rgba(248,248,248,.78);line-height:1.6;max-width:62ch;}
.tg-col li::before{content:'';position:absolute;left:0;top:.62em;width:8px;height:8px;background:var(--gold,#c9a517);}
.tg-fraud{border:1px solid rgba(201,165,23,.28);padding:1.75rem;background:#0f0d07;}
.tg-col a{color:var(--gold,#c9a517);text-decoration:underline;}
@media(max-width:900px){.tg-grid{grid-template-columns:1fr;}}
.form-consent{display:flex;gap:.7rem;align-items:flex-start;margin:1rem 0 1.25rem;font-size:.9rem;line-height:1.5;color:rgba(248,248,248,.75);cursor:pointer;}
.form-consent input{margin-top:.2rem;width:20px;height:20px;flex-shrink:0;accent-color:var(--gold,#c9a517);}
.form-consent a{color:var(--gold,#c9a517);text-decoration:underline;}
.hdr-home{margin-left:auto;font-size:.95rem;color:var(--gold,#c9a517);text-decoration:none;display:inline-flex;align-items:center;min-height:44px;}
.nav-logo-small a{display:block;}
.build-video{max-width:960px;}

/* Hero rotation layers (added by mayne-live.js after load). */
.hero-bg .hero-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.6s ease;}
.hero-bg picture.hero-slide{display:block;}
.hero-bg picture.hero-slide img{width:100%;height:100%;object-fit:cover;}
.hero-bg .hero-slide.is-on{opacity:.52;}
.hero-bg picture.hero-slide{opacity:0;}
.hero-bg picture.hero-slide.is-on{opacity:1;}

/* Shop reel videos. */
.shop-reel{padding:5rem 0;border-top:1px solid rgba(201,165,23,.12);}
.sr-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;margin-top:2rem;}
.sr-item{margin:0;}
.sr-item video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000;border:1px solid rgba(201,165,23,.18);}
.sr-item figcaption{display:flex;flex-direction:column;gap:.2rem;margin-top:.75rem;}
.sr-name{font-family:var(--display);font-style:italic;font-weight:800;text-transform:uppercase;font-size:1.4rem;color:#f8f8f8;}
.sr-desc{font-size:.92rem;color:rgba(248,248,248,.7);}
@media(max-width:900px){.sr-grid{grid-template-columns:1fr;}}

/* Build pages: watch + more builds. */
.more-builds{padding:4.5rem 0;border-top:1px solid rgba(201,165,23,.12);}
.more-builds .mb-video{display:block;max-width:760px;margin:1.5rem 0 3.5rem;}
.mb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.75rem;}
.mb-card{display:flex;flex-direction:column;gap:.25rem;color:#f8f8f8;}
.mb-img{display:block;aspect-ratio:4/3;overflow:hidden;background:#111;border:1px solid rgba(201,165,23,.14);margin-bottom:.6rem;}
.mb-img img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--out);}
.mb-card:hover .mb-img img,.mb-card:focus-visible .mb-img img{transform:scale(1.05);}
.mb-name{font-family:var(--display);font-style:italic;font-weight:800;text-transform:uppercase;font-size:1.35rem;line-height:1;}
.mb-spec{font-size:.88rem;color:rgba(248,248,248,.65);}
@media(max-width:768px){.mb-grid{grid-template-columns:1fr 1fr;}.mb-grid .mb-card:nth-child(3){display:none;}}
