/* PROTEPLEX — Palette: exactly 3 hex. Type: brandbook §6a scale (9 steps, ≈1.25). 1 animation (hero). */
@font-face{
  font-family:"Space Grotesk";
  src:url("assets/SpaceGrotesk.ttf") format("truetype");
  font-weight:300 700;font-display:optional;
}
:root{
  --bg:#0B0D0F; --text:#EDE6DA; --titanium:#C9B79C;
  /* Brandbook §6a type-scale — the ONLY allowed sizes (gate G5 enforces) */
  --t-13:13px; --t-16:16px; --t-20:20px; --t-25:25px; --t-31:31px;
  --t-39:39px; --t-49:49px; --t-61:61px; --t-76:76px;
}

*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  background:var(--bg);color:var(--text);
  font-family:"Space Grotesk",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
a{color:inherit;text-decoration:none}

/* ---------- HERO ---------- */
.hero{position:relative;min-height:100vh;min-height:100svh;display:grid;
  grid-template-rows:auto 1fr auto auto;padding:28px 24px 24px;overflow:hidden}
.layers{position:absolute;inset:0;z-index:0;pointer-events:none}

/* hero photo background + text-protection scrim.
   Height pinned to a STABLE viewport unit (lvh), NOT % of the hero — so the mobile
   URL-bar show/hide can't rescale the object-fit crop (was causing scroll "zoom"). */
.hero picture{position:absolute;inset:0;z-index:0}
.hero-photo{position:absolute;left:0;top:0;width:100%;height:100vh;height:100lvh;
  object-fit:cover;object-position:60% 50%;z-index:0}
.hero-scrim{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,var(--bg) 0%,rgba(11,13,15,.94) 26%,rgba(11,13,15,.62) 46%,rgba(11,13,15,.18) 72%,transparent 92%)}
.has-photo>.layers{display:none}
.layer{position:absolute;left:50%;top:52%;width:150vw;height:44vh;
  transform:translate(-50%,-50%) skewY(-7deg);border-top:1px solid rgba(201,183,156,0.10)}
.layer-1{background:rgba(201,183,156,0.030);height:52vh}
.layer-2{background:rgba(201,183,156,0.045);height:40vh;top:56%}
.layer-3{background:rgba(237,230,218,0.020);height:30vh;top:60%}
.edge{position:absolute;left:0;top:52%;width:100%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(201,183,156,0.55),transparent);
  animation:peel 7s ease-in-out infinite}
@keyframes peel{0%,100%{transform:translateY(-14px);opacity:.35}50%{transform:translateY(14px);opacity:.9}}

/* Product heroes = FULL-SCREEN, identical to the homepage hero (OWNER CANON 2026-09-09).
   They use the SAME shared car photo (hero.webp) that already sits full-bleed on the homepage,
   so the photo MUST reach the bottom of the screen here too — matching brandbook §hero.
   The earlier 58svh "banner" (photo stopping mid-screen, body copy starting under it) is
   RETIRED: it only made sense when product heroes had their own narrow landscape macros,
   which no longer exist. Gate G_hero now REQUIRES full height (forbids the banner regression). */
.product-hero{min-height:100vh;min-height:100svh}
.product-hero .hero-photo{height:100vh;height:100lvh;object-position:60% 50%}
/* Banner foot: on a fixed-height banner the grid's bottom padding + the phantom 4th grid row
   left the scroll ↓ + hairline floating ~100px INSIDE the photo (Qwen+Opus diagnosis
   2026-09-09). Anchor it flush to the banner's real bottom edge; drop the stray hairline
   (the section boundary already separates banner from body). ↓ sits bottom-right over the
   dark grille, clear of bright detail. */
/* Restored approved (prod_mob.png) banner foot: a faint hairline near the bottom with the
   PROTEPLEX wordmark CENTERED on it. NO scroll ↓ (that was a later swap Denis never approved). */
.product-hero .hero-foot{position:absolute;left:24px;right:24px;bottom:20px;z-index:3;
  justify-content:center;border-top:1px solid rgba(201,183,156,0.16);padding-top:14px}
.foot-mark{font-size:var(--t-13);font-weight:400;letter-spacing:.42em;text-transform:uppercase;
  color:var(--titanium);opacity:.55}

.topbar{position:relative;z-index:2}
.brand{font-size:var(--t-20);font-weight:600;letter-spacing:.42em;color:var(--titanium);text-transform:uppercase}
.hero-copy{position:relative;z-index:2;align-self:start;padding-top:9vh;max-width:16ch}
.eyebrow{display:inline-block;font-size:var(--t-13);font-weight:600;letter-spacing:.42em;
  text-transform:uppercase;color:var(--titanium);opacity:.9}
.tagline{font-size:var(--t-39);font-weight:500;line-height:1.04;letter-spacing:-.01em;color:var(--text)}

/* Static titanium sheen on headlines — "light on metal" (§10b atom). No motion, jank-free.
   @supports guard: browsers without background-clip:text keep the solid cream color. */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .tagline,.statement-h{
    background:linear-gradient(178deg,#F4EFE4 0%,#EDE6DA 38%,#D9CBB0 72%,#C4B294 100%);
    -webkit-background-clip:text;background-clip:text;
    -webkit-text-fill-color:transparent;color:transparent;
  }
}
.subline{margin-top:16px;font-size:var(--t-16);font-weight:300;line-height:1.4;letter-spacing:.01em;color:var(--text);opacity:.82}
.p-lead{margin-top:12px;font-size:var(--t-25);font-weight:400;line-height:1.15;color:var(--titanium)}

.lineup{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:20px 31px;
  padding:20px 0;border-top:1px solid rgba(201,183,156,0.14)}
/* mobile: hide inline hero strip (redundant with cards band below) to keep car clean */
.hero .lineup{display:none}
.product{display:flex;flex-direction:column;gap:4px}
.p-name{font-size:var(--t-16);font-weight:600;letter-spacing:.02em;color:var(--titanium)}
.p-desc{font-size:var(--t-16);font-weight:300;letter-spacing:.02em;color:var(--text);opacity:.8}

.hero-foot{position:relative;z-index:2;display:flex;justify-content:flex-end;align-items:center;
  border-top:1px solid rgba(201,183,156,0.14);padding-top:16px}
.warranty{font-size:var(--t-13);font-weight:400;letter-spacing:.16em;text-transform:uppercase;color:var(--titanium)}
.scroll{font-size:var(--t-16);font-weight:300;letter-spacing:.24em;text-transform:uppercase;color:var(--text);opacity:.7}

/* ---------- BANDS ---------- */
.band{position:relative;padding:64px 24px;overflow:hidden}
.lineup-band{border-top:1px solid rgba(201,183,156,0.14)}
.lineup-band .eyebrow{margin-bottom:28px}
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:0 24px}
.cards .product{padding:20px 0;border-top:1px solid rgba(201,183,156,0.10)}
.cards .p-name{font-size:var(--t-20)}
.cards .p-desc{font-size:var(--t-16);margin-top:4px}
.cards .product.current{cursor:default}
.cards .product.current .p-name{color:var(--text)}
.foot-links .current{color:var(--titanium);opacity:1}

.statement{min-height:auto;display:flex;flex-direction:column;justify-content:center;
  border-top:1px solid rgba(201,183,156,0.14)}
.st-layers .edge{display:none}
.statement .eyebrow{position:relative;z-index:2;margin-bottom:20px}
.statement-h{position:relative;z-index:2;font-size:var(--t-39);font-weight:500;line-height:1.05;letter-spacing:-.01em;color:var(--text);max-width:14ch}
.statement-sub{position:relative;z-index:2;margin-top:16px;font-size:var(--t-16);font-weight:300;color:var(--text);opacity:.82}

/* ---------- FOOTER ---------- */
.site-foot{display:flex;flex-direction:column;gap:24px;padding:56px 24px;
  border-top:1px solid rgba(201,183,156,0.14)}
.foot-links{display:flex;flex-wrap:wrap;gap:16px 31px}
.foot-links a{font-size:var(--t-16);font-weight:400;letter-spacing:.06em;color:var(--text);opacity:.82}

/* ---------- DEALER FORM (partner) ---------- */
.dealer-band{border-top:1px solid rgba(201,183,156,.14)}
.dealer-h{font-size:var(--t-39);font-weight:500;line-height:1.05;letter-spacing:-.01em;color:var(--text);margin:14px 0 0}
.dealer-lead{margin:14px 0 0;font-size:var(--t-20);font-weight:300;line-height:1.5;color:var(--text);opacity:.9;max-width:52ch}
.dealer-benefits{list-style:none;margin:24px 0 0;padding:0;display:grid;gap:12px;max-width:56ch}
.dealer-benefits li{position:relative;padding-left:22px;font-size:var(--t-16);font-weight:300;line-height:1.5;color:var(--text);opacity:.84}
.dealer-benefits li::before{content:"";position:absolute;left:0;top:.62em;width:8px;height:1px;background:var(--titanium);opacity:.8}
.dealer-note{margin:22px 0 0;font-size:var(--t-13);font-weight:300;line-height:1.55;color:var(--titanium);opacity:.85;max-width:56ch}
.dealer-form{margin:40px 0 0;max-width:560px;display:grid;gap:34px}
.form-group{border:0;padding:0;margin:0;display:grid;gap:16px}
.form-group>legend{margin-bottom:4px}
.field{display:grid;gap:7px}
.field>span{font-size:var(--t-13);font-weight:400;letter-spacing:.02em;color:var(--text);opacity:.82}
.field>span i{color:var(--titanium);font-style:normal;margin-left:2px}
.field>span em{font-style:normal;opacity:.5}
.field input,.field select,.field textarea{width:100%;background:rgba(255,255,255,.028);
  border:1px solid rgba(201,183,156,.20);border-radius:2px;color:var(--text);
  font-family:inherit;font-size:var(--t-16);font-weight:300;padding:13px 14px;outline:none;
  transition:border-color .18s ease,background .18s ease;-webkit-appearance:none;appearance:none}
.field textarea{resize:vertical;min-height:76px}
.field select{background-image:linear-gradient(45deg,transparent 50%,var(--titanium) 50%),linear-gradient(135deg,var(--titanium) 50%,transparent 50%);
  background-position:calc(100% - 18px) 20px,calc(100% - 12px) 20px;background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:38px}
.field input:focus,.field select:focus,.field textarea:focus{border-color:rgba(201,183,156,.62);background:rgba(255,255,255,.05)}
.field input::placeholder,.field textarea::placeholder{color:var(--text);opacity:.3}
.field-row{display:grid;gap:16px}
.checks{border:0;padding:0;margin:2px 0 0;display:grid;gap:10px}
.checks>legend{font-size:var(--t-13);color:var(--text);opacity:.82;margin-bottom:8px}
.checks>legend i,.consent i{color:var(--titanium);font-style:normal;margin-left:2px}
.chk{display:flex;align-items:flex-start;gap:10px;font-size:var(--t-16);font-weight:300;color:var(--text);opacity:.86;cursor:pointer;line-height:1.4}
.chk input{width:17px;height:17px;margin:1px 0 0;accent-color:#C9B79C;flex:0 0 auto}
.consent{margin:6px 0 0;font-size:var(--t-13);opacity:.78}
.form-submit{margin:4px 0 0;justify-self:start;background:var(--titanium);color:#0B0D0F;border:0;border-radius:2px;
  font-family:inherit;font-size:var(--t-16);font-weight:500;letter-spacing:.02em;padding:15px 34px;cursor:pointer;
  transition:opacity .18s ease}
.form-submit:hover{opacity:.86}
.form-submit:disabled{opacity:.5;cursor:default}
.form-status{margin:2px 0 0;font-size:var(--t-16);font-weight:300;line-height:1.45;min-height:1px}
.form-status.ok{color:var(--titanium)}
.form-status.err{color:#E0A08A}
.form-fineprint{margin:0;font-size:var(--t-13);color:var(--text);opacity:.5}

/* ---------- >=768 ---------- */
@media (min-width:768px){
  .hero{padding:40px 56px 40px}
  .band{padding:96px 56px}
  .site-foot{padding-left:56px;padding-right:56px}
  .brand{font-size:var(--t-25)}
  .tagline{font-size:var(--t-61)}
  .subline{font-size:var(--t-20)}
  .p-lead{font-size:var(--t-31)}
  .statement-h{font-size:var(--t-49)}
  .statement-sub{font-size:var(--t-20)}
  .statement{min-height:80vh}
  .cards{grid-template-columns:repeat(2,1fr);gap:0 61px}
  .cards .p-name{font-size:var(--t-25)}
  /* desktop: text sits left → scrim darkens the left; restore inline lineup strip */
  .hero-scrim{background:linear-gradient(90deg,var(--bg) 0%,rgba(11,13,15,.9) 34%,rgba(11,13,15,.35) 62%,rgba(11,13,15,.04) 100%)}
  .hero-photo{object-position:82% 60%}
  /* product hero inherits the homepage hero's full height + object-position at >=768 */
  .field-row{grid-template-columns:1fr 1fr}
  .dealer-h{font-size:var(--t-49)}
  .hero .lineup{display:flex}
  .hero-copy{align-self:center;padding-top:0}
}
/* ---------- >=1200 ---------- */
@media (min-width:1200px){
  .hero{padding:48px 88px 48px}
  .band,.site-foot{padding-left:88px;padding-right:88px}
  .tagline{font-size:var(--t-76)}
  .hero-copy{max-width:20ch}
  .statement-h{font-size:var(--t-61);max-width:16ch}
}

/* ---------- MOTION (enhancement — JS adds .motion to <html>; no-JS = fully visible) ---------- */
.motion .reveal{opacity:0;transform:translateY(16px);
  transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)}
.motion .reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  .edge{animation:none;transform:translateY(0);opacity:.6}
  .motion .reveal{opacity:1;transform:none;transition:none}
}

/* ===== PROSE / ARTICLE (added for full-copy pages) ===== */
.prose{max-width:66ch;margin:0 auto}
.prose>*{max-width:100%}
.prose>*:first-child{margin-top:0}
.prose .lead{font-size:var(--t-25);font-weight:400;line-height:1.36;color:var(--titanium);margin:0 0 44px}
.prose h2{font-size:var(--t-31);font-weight:500;line-height:1.1;letter-spacing:-.015em;color:var(--titanium);margin:76px 0 22px;padding-top:38px;border-top:1px solid rgba(201,183,156,0.16)}
.prose>.lead:first-child+p{font-size:var(--t-20);line-height:1.6;opacity:.92}
.prose h2+p,.prose h2+ul{margin-top:0}
.prose .prose-sub{font-size:var(--t-13);font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--titanium);margin:60px 0 14px}
.prose p{font-size:var(--t-20);font-weight:300;line-height:1.6;color:var(--text);opacity:.9;margin:0 0 22px}
.prose strong{font-weight:600;color:var(--text);opacity:1}
.prose ul{list-style:none;margin:8px 0 28px;padding:0}
.prose li{position:relative;font-size:var(--t-16);font-weight:300;line-height:1.66;color:var(--text);opacity:.84;padding-left:22px;margin:0 0 16px}
.prose li::before{content:"";position:absolute;left:0;top:.7em;width:8px;height:1px;background:var(--titanium);opacity:.8}
.prose a{color:var(--titanium);text-decoration:none;border-bottom:1px solid rgba(201,183,156,.35)}
.prose a:hover{border-bottom-color:var(--titanium)}
.prose .learn-index li{margin:0 0 26px}
.prose .learn-index a{display:inline-block;font-size:var(--t-20);font-weight:500;line-height:1.3;color:var(--titanium);border-bottom-color:rgba(201,183,156,.35)}
.prose .learn-index .li-desc{display:block;margin-top:7px;font-size:var(--t-16);font-weight:300;line-height:1.6;color:var(--text);opacity:.72}
.prose .cta-row{margin:20px 0 0;display:flex;flex-wrap:wrap;gap:14px}
.prose .cta-row+.lead{margin-top:56px}
.prose .cta-row+.lead+.cta-row{margin-top:20px}
.prose .cta{display:inline-block;font-size:var(--t-13);font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--titanium);border:1px solid rgba(201,183,156,.4);border-radius:2px;padding:12px 20px;text-decoration:none}
.prose .cta:hover{border-color:var(--titanium);background:rgba(201,183,156,.06)}
.prose hr{border:0;height:1px;background:linear-gradient(90deg,transparent,rgba(201,183,156,.28),transparent);margin:44px 0}
/* comparison table (markdown pipe tables) — brand component, see brandbook §6b */
/* narrow screens: contain the table in a h-scroll wrapper with a min-width so cells
   keep breathing room and words never chop mid-character; page itself never overflows */
.prose .table-wrap{margin:24px 0 40px;overflow-x:auto;-webkit-overflow-scrolling:touch;
  scrollbar-width:none}
.prose .table-wrap::-webkit-scrollbar{height:0;width:0}
/* Apple-style overflow cue: the cut-off column edge FADES (never a hard clip), and the
   fade side follows scroll position — right when more is ahead, left when scrolled past,
   both in the middle. Toggled by effects.js; purely local to the table, no page motion. */
.prose .table-wrap.tw-more-right{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent)}
.prose .table-wrap.tw-more-left{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 56px),transparent)}
.prose .table-wrap.tw-more-both{-webkit-mask-image:linear-gradient(to right,transparent,#000 56px,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(to right,transparent,#000 56px,#000 calc(100% - 56px),transparent)}
.prose table{width:100%;min-width:500px;border-collapse:collapse;table-layout:fixed;font-size:var(--t-16)}
.prose thead th{text-align:left;font-weight:600;color:var(--titanium);font-size:var(--t-13);
  letter-spacing:.08em;text-transform:uppercase;line-height:1.3;padding:0 16px 12px;
  border-bottom:1px solid rgba(201,183,156,.28);vertical-align:bottom;overflow-wrap:break-word}
.prose tbody td{font-weight:300;color:var(--text);opacity:.88;line-height:1.5;
  padding:16px;border-bottom:1px solid rgba(201,183,156,.10);vertical-align:top;
  overflow-wrap:break-word;hyphens:auto}
.prose thead th:first-child,.prose tbody td:first-child{padding-left:0;width:30%}
.prose tbody td:first-child{font-weight:600;opacity:1}
.prose tbody tr:last-child td{border-bottom:0}
.prose table strong{font-weight:600;opacity:1}
/* photo-less product hero: collapse like an article header (no generic photo, no full-screen void) */
.product-hero.no-photo{min-height:0;display:block;padding:40px 24px 24px}
.product-hero.no-photo .layers,.product-hero.no-photo .hero-scrim,
.product-hero.no-photo .hero-foot{display:none}
.product-hero.no-photo .hero-copy{align-self:auto;padding-top:20px;max-width:24ch}
.breadcrumb{max-width:66ch;margin:0 auto 28px;font-size:var(--t-13);letter-spacing:.06em;color:var(--text);opacity:.6}
.breadcrumb a{color:var(--titanium);text-decoration:none;opacity:.9}
.breadcrumb a:hover{opacity:1}
.article-hero{min-height:0;display:block;padding:40px 24px 24px}
.article-hero .eyebrow{margin-bottom:18px}
.article-hero h1{font-size:var(--t-39);font-weight:500;line-height:1.06;letter-spacing:-.01em;color:var(--text);max-width:20ch}
.article-hero .subline{max-width:60ch;font-size:var(--t-25);font-weight:400;line-height:1.36;letter-spacing:0;color:var(--titanium);opacity:1}
@media(min-width:768px){
  .article-hero{padding:64px 56px 40px}
  .article-hero h1{font-size:var(--t-49)}
  .article-hero .subline{font-size:var(--t-31)}
  .prose h2{font-size:var(--t-39)}
  .prose .lead{font-size:var(--t-31)}
  .prose p{font-size:var(--t-20);line-height:1.62}
  .prose thead th{padding:0 20px 14px}
  .prose tbody td{padding:20px}
  .prose thead th:first-child,.prose tbody td:first-child{padding-left:0}
}
@media(min-width:1200px){
  .article-hero{padding-left:88px;padding-right:88px}
}

/* /learn hub — auto article grid (Internal Linking Plan V1: pillar de-orphan) */
.prose ul.learn-index{list-style:none;margin:24px 0 8px;padding:0;
  display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:720px){.prose ul.learn-index{grid-template-columns:1fr 1fr;gap:16px}}
.prose ul.learn-index li{margin:0;padding:20px 22px;border:1px solid rgba(201,183,156,.16);
  border-radius:14px;background:rgba(255,255,255,.02);display:flex;flex-direction:column;gap:8px}
.prose ul.learn-index li::before{content:none}
.prose ul.learn-index li a{font-size:var(--t-20);font-weight:600;letter-spacing:.01em;
  color:var(--titanium);text-decoration:none;line-height:1.2}
.prose ul.learn-index li a:hover{text-decoration:underline}
.prose ul.learn-index .li-desc{font-size:var(--t-16);font-weight:300;line-height:1.45;
  color:var(--text);opacity:.78}
