/* =====================================================================
   FONTS — Fieldwork Geo for Latin text, Prompt for Thai.
   unicode-range limits Fieldwork to Latin/digits, so Thai automatically
   falls back to Prompt (Fieldwork has no Thai glyphs).
   ===================================================================== */
@font-face {
  font-family: "Fieldwork";
  src: url("../font/fonnts.com-Fieldwork-Geo-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2070-209F, U+20A0-20BF, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: "Fieldwork";
  src: url("../font/fonnts.com-Fieldwork-Geo-Demibold.otf") format("opentype");
  font-weight: 500 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2070-209F, U+20A0-20BF, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: "Fieldwork";
  src: url("../font/Fieldwork%20%20Geo%20Bold_zitidao.com.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2070-209F, U+20A0-20BF, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: "Fieldwork";
  src: url("../font/Fieldwork%20%20Geo%20Light_zitidao.com.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2070-209F, U+20A0-20BF, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: "Fieldwork";
  src: url("../font/fonnts.com-Fieldwork_Italic_Regular.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2070-209F, U+20A0-20BF, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: "Fieldwork";
  src: url("../font/fonnts.com-Fieldwork_Italic_Bold.otf") format("opentype");
  font-weight: 700; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2070-209F, U+20A0-20BF, U+2122, U+2212, U+FEFF;
}

/* =====================================================================
   Castrol Auto Film TH — Dealer recruitment landing page
   Design tokens from castrol-auto-film-design-system.md (castrolautofilm.com)
   Deliberate deviations from the source site:
   - Thai typeface "Prompt" (Fieldwork has no Thai glyphs; Brief recommends Prompt/Kanit)
   - rem/clamp scale instead of pure vw (respects user font size)
   - Darker green for text-bearing fills so white labels pass WCAG AA
   - Content visible without JS (reveal only hides when html.js)
   ===================================================================== */

:root {
  /* Brand */
  --green: #009343;          /* brand green — large type, graphics, accents */
  --green-btn: #007f3a;      /* AA-safe fill for white text (5.1:1) */
  --green-deep: #006b31;     /* hover / pressed */
  --green-ink: #007a38;      /* AA-safe green text on white */
  --green-glow: #00c25a;     /* green on dark grounds */
  --green-tint: #e8f5ee;
  --red: #f00023;            /* logo roundel — tiny accents only */
  --slate: #3c5569;
  --purple: #7b3fb8;

  /* Surfaces */
  --white: #ffffff;
  --surface-100: #f5f5f7;
  --surface-200: #f6f6f6;
  --dark: #010101;
  --dark-alt: #262629;

  /* Text */
  --text: #000000;
  --text-2: #333333;
  --text-3: #5f6368;         /* replaces #B2B2B2 (fails AA) */
  --on-dark: rgba(255,255,255,.86);
  --on-dark-dim: rgba(255,255,255,.62);

  /* Line */
  --border: #ccccce;
  --hair: #e6e6e8;

  /* Type */
  --font: "Fieldwork", "Prompt", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius */
  --r-4: 4px; --r-7: 7px; --r-13: 13px; --r-card: 15px; --r-pill: 999px;

  /* Layout */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --header-h: 116px;
  --utility-h: 65px;
  --section-y: clamp(56px, 8vw, 110px);

  --shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-2: 0 10px 40px rgba(0,0,0,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;              /* Thai needs taller leading than the 1.5 on the source site */
  color: var(--text-2);
  background: var(--white);
  padding-bottom: var(--utility-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--text); margin: 0 0 .5em; line-height: 1.35; font-weight: 600; }
strong { color: var(--text); font-weight: 600; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green-glow); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--line { color: #06c755; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--green-btn); color: #fff; padding: 8px 16px; border-radius: var(--r-pill); }
.skip:focus { left: 8px; }

.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Type scale ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 500; letter-spacing: .02em;
  color: var(--green-ink); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--green); }
.eyebrow--light { color: var(--green-glow); }
.eyebrow--light::before { background: var(--green-glow); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-glow); box-shadow: 0 0 0 0 rgba(0,194,90,.6); animation: pulse 2s infinite; }
.eyebrow:has(.dot)::before { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0,194,90,0); } 100% { box-shadow: 0 0 0 0 rgba(0,194,90,0); } }

.h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem); line-height: 1.3; letter-spacing: -.005em; }
.h2--sm { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); }
.h2--light { color: #fff; }
.h3 { font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); margin-bottom: 1em; }
.h4 { font-size: 1.125rem; margin-top: 1.5em; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--text-2); }
.fine { font-size: .8125rem; }
.hl { color: var(--green-ink); }
.on-dark { color: var(--on-dark); }
.on-dark-dim { color: var(--on-dark-dim); }

/* ---------- Buttons (pill, as on source) ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: var(--r-pill);
  font-size: 1rem; font-weight: 500; line-height: 1; white-space: nowrap;
  border: 1.5px solid transparent; text-decoration: none !important;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { --h: 36px; padding: 0 16px; font-size: .9375rem; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green-btn); color: #fff; }
.btn--primary:hover { background: var(--green-deep); box-shadow: 0 8px 24px rgba(0,147,67,.35); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-ink); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--light:hover { background: #fff; color: var(--text); }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn:hover .ic:not(.ic--line) { transform: translateX(2px); }
.btn .ic { transition: transform .2s var(--ease); }

/* =====================================================================
   HEADER — white brand band + green nav bar (source pattern)
   ===================================================================== */
.site-header {
  position: sticky; top: 80px; z-index: 50;
  background: var(--white);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.brandbar {
  display: flex; align-items: center; gap: 24px;
  height: 72px; padding: 0 var(--gutter);
  transition: height .3s var(--ease);
}
.is-scrolled .brandbar { height: 60px; }
.brandbar__logo img { height: 46px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .brandbar__logo img { height: 38px; }
.brandbar__by { margin: 0; padding-left: 20px; border-left: 1px solid var(--hair); font-size: .75rem; line-height: 1.45; color: var(--text-3); }
.brandbar__by strong { color: var(--slate); font-size: .8125rem; }
.brandbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: var(--surface-100); border-radius: 50%; align-items: center; justify-content: center; }
.menu-btn .ic { width: 22px; height: 22px; }

.navbar { background: var(--green); }
.navbar ul { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; justify-content: center; gap: clamp(8px, 2vw, 36px); height: 44px; align-items: center; }
.navbar a {
  position: relative; display: block; padding: 10px 2px;
  color: #fff; font-size: .9375rem; font-weight: 500; white-space: nowrap; text-decoration: none;
}
.navbar a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: #fff; transform: scaleX(0); transition: transform .3s var(--ease); }
.navbar a:hover::after, .navbar a.is-active::after { transform: scaleX(1); }

/* =====================================================================
   IMAGE SLOTS (.shot) — placeholder art + real image fade-in
   ===================================================================== */
.shot { position: relative; margin: 0; overflow: hidden; background: var(--ph, #2a2d31); isolation: isolate; }
.shot--cover, .shot--bg { position: absolute; inset: 0; }
.shot--169 { aspect-ratio: 16 / 9; }
.shot--219 { aspect-ratio: 21 / 9; }
.shot--43 { aspect-ratio: 4 / 3; }
.shot--r45 { aspect-ratio: 4 / 5; }
.shot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease), transform 1.2s var(--ease); z-index: 1; }
.shot picture { position: absolute; inset: 0; }
.shot.is-loaded .shot__img { opacity: 1; }
.shot.is-missing .shot__img { display: none; }

/* placeholder tones — each suggests its intended scene */
.shot[data-tone="night"]    { --ph: radial-gradient(60% 70% at 72% 62%, #1d3a2c 0%, transparent 60%), radial-gradient(40% 40% at 90% 20%, #22324a 0%, transparent 70%), linear-gradient(180deg, #0a1018 0%, #06080b 60%, #0f1417 100%); }
.shot[data-tone="studio"]   { --ph: radial-gradient(80% 40% at 50% 100%, rgba(0,147,67,.25), transparent 70%), linear-gradient(180deg, #f2f4f5 0%, #dfe3e6 55%, #b9c0c5 100%); }
.shot[data-tone="race"]     { --ph: radial-gradient(70% 90% at 70% 110%, rgba(0,147,67,.55), transparent 60%), radial-gradient(35% 50% at 30% 30%, rgba(240,0,35,.12), transparent 70%), linear-gradient(135deg, #0c0d0f, #1b1f22); }
.shot[data-tone="beads"]    { --ph: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55) 0 1.5px, transparent 2.5px) 0 0/26px 26px, radial-gradient(circle at 60% 60%, rgba(255,255,255,.35) 0 3px, transparent 4px) 0 0/44px 44px, linear-gradient(100deg, #030405 0%, #0d1114 45%, #262c31 100%); }
.shot[data-tone="material"] { --ph: radial-gradient(60% 60% at 50% 50%, rgba(0,194,90,.28), transparent 70%), linear-gradient(135deg, #16191c, #2b3136); }
.shot[data-tone="install"]  { --ph: radial-gradient(60% 60% at 60% 50%, #d7e84a 0%, #9fb52a 35%, transparent 70%), linear-gradient(135deg, #e9ecef, #bfc6cc); }
.shot[data-tone="heal"]     { --ph: linear-gradient(100deg, #0d3b22 0%, #13613a 35%, #1f8d52 60%, #6fd49a 72%, #1c7a47 85%, #0d3b22 100%); }
.shot[data-tone="purple"]   { --ph: radial-gradient(40% 30% at 45% 42%, rgba(160,90,230,.9), transparent 70%), linear-gradient(180deg, #dfe6ea 0%, #c6ced3 55%, #1a1b1e 56%, #0b0c0e 100%); }
.shot[data-tone="cabin"]    { --ph: radial-gradient(60% 50% at 70% 25%, #ffffff, transparent 70%), linear-gradient(180deg, #d9eef2 0%, #eaf4f3 50%, #3b4247 51%, #23272b 100%); }
.shot[data-tone="road"]     { --ph: radial-gradient(120% 60% at 50% 100%, #1d2126 0 38%, transparent 38.5%), linear-gradient(180deg, #6fb7e8 0%, #bfe3f5 38%, #e3efe6 50%, #8fae7f 55%, #5d6a60 58%, #3a3f44 62%, #111316 62.5%, #0a0b0d 100%); }
.shot[data-tone="wrap"]     { --ph: radial-gradient(40% 50% at 75% 60%, rgba(255,140,0,.6), transparent 70%), radial-gradient(40% 50% at 55% 35%, rgba(90,60,255,.6), transparent 70%), linear-gradient(120deg, #3a0d3f, #0c2f4a 60%, #063a3a); }
.shot[data-tone="store"]    { --ph: linear-gradient(180deg, transparent 38%, var(--green) 38% 44%, transparent 44%), radial-gradient(60% 40% at 50% 70%, rgba(255,214,150,.6), transparent 70%), linear-gradient(180deg, #2b3a55 0%, #6e6a80 45%, #2a2c30 100%); }
.shot[data-tone="warehouse"]{ --ph: repeating-linear-gradient(90deg, transparent 0 58px, rgba(0,0,0,.08) 58px 62px), repeating-linear-gradient(180deg, #e9ecee 0 40px, #dde6e0 40px 44px), #eef0f1; }
.shot[data-tone="cta"]      { --ph: radial-gradient(70% 18% at 60% 58%, rgba(0,194,90,.45), transparent 70%), radial-gradient(10% 6% at 85% 52%, rgba(240,0,35,.5), transparent 70%), #030405; }

/* placeholder label + prompt button (review mode only) */
.shot__ph {
  position: absolute; z-index: 2; left: 12px; bottom: 12px; right: 12px;
  display: none; align-items: center; gap: 10px; flex-wrap: wrap;
  pointer-events: none;
}
.show-prompts .shot__ph { display: flex; }
.shot__tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(0,0,0,.62); color: #fff; font-size: .75rem; font-weight: 500; letter-spacing: .02em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.shot__tag .ic { width: 14px; height: 14px; }
.shot__btn {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill); border: 0;
  background: #fff; color: var(--text); font-size: .75rem; font-weight: 600;
  box-shadow: var(--shadow-1);
}
.shot__btn:hover { background: var(--green-btn); color: #fff; }
.shot--cover .shot__ph, .shot--bg .shot__ph { left: auto; right: 16px; bottom: auto; top: 16px; justify-content: flex-end; }
.shot--bg .shot__ph { top: 16px; }

/* =====================================================================
   S1 HERO
   ===================================================================== */
.hero { padding: 15px 15px 0; }
.hero__card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-card);
  min-height: clamp(560px, calc(100svh - var(--header-h) - var(--utility-h) - 30px), 860px);
  display: flex; align-items: center;
  background: #06080b;
}
.hero__card .shot--cover { z-index: 0; }
.hero__card .shot--cover .shot__img { transform: scale(1.06); }
.hero__card .shot--cover.is-loaded .shot__img { transform: scale(1); }
.hero__swoosh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; mix-blend-mode: screen; pointer-events: none; transition: transform .6s var(--ease); }
.sw { fill: none; stroke-linecap: round; stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 2.4s var(--ease) forwards; }
.sw--g1 { stroke-width: 34; opacity: .85; }
.sw--r  { stroke-width: 9;  opacity: .95; animation-delay: .25s; }
.sw--g2 { stroke-width: 16; opacity: .55; animation-delay: .45s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.has-hero-img .hero__swoosh { opacity: .55; }
.hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,0) 70%),
    linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%);
}
.hero__content { position: relative; z-index: 3; padding: clamp(40px, 6vw, 96px) clamp(24px, 6vw, 96px) clamp(96px, 9vw, 130px); max-width: 760px; color: #fff; }
.hero__title { color: #fff; font-size: clamp(2.125rem, 1.2rem + 3.6vw, 4rem); line-height: 1.2; font-weight: 600; margin-bottom: 20px; }
.hero__title .nowrap { color: #fff; background: linear-gradient(90deg, #fff 0%, #fff 55%, var(--green-glow) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__tagline { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.hero__tagline > span:first-child { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 300; font-style: italic; color: var(--green-glow); }
.hero__tagline-th { font-size: 1rem; color: var(--on-dark); }
.hero__lead { color: var(--on-dark); max-width: 600px; font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 88px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.trust {
  position: relative; z-index: 4;
  list-style: none; margin: -64px auto 0; padding: 0;
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-2);
}
.trust__item { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; }
.trust__item + .trust__item { border-left: 1px solid var(--hair); }
.trust__item .ic { width: 30px; height: 30px; color: var(--green); margin-top: 2px; }
.trust__item p { margin: 0; font-size: .9375rem; line-height: 1.55; }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { position: relative; padding: var(--section-y) 0; }
.section--white { background: var(--white); }
.section--grey { background: var(--surface-200); }
.section--dark { background: var(--dark); color: var(--on-dark); overflow: hidden; }
.section-head { max-width: 820px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; }

/* split layout */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev { grid-template-columns: .95fr 1.05fr; }
.split__media { position: relative; }
.split__media .shot { border-radius: var(--r-card); }
.float-card {
  position: absolute; z-index: 3; left: -24px; top: 32px; max-width: 290px;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-2);
}
.float-card--right { left: auto; right: -24px; }
.float-card .ic { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--green-tint); color: var(--green-ink); }
.float-card p { margin: 0; font-size: .875rem; line-height: 1.5; }

/* S2 talk toggle */
.q-price { font-weight: 600; color: var(--text); quotes: "“" "”"; }
.talk { margin-top: 28px; padding: 20px; border-radius: var(--r-card); background: var(--surface-100); }
.talk__switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--hair); margin-bottom: 16px; }
.talk__switch button { position: relative; z-index: 1; border: 0; background: none; height: 38px; border-radius: var(--r-pill); font-size: .9375rem; font-weight: 500; color: var(--text-3); transition: color .3s; }
.talk__switch button[aria-selected="true"] { color: #fff; }
.talk__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-pill); background: var(--text-2); transition: transform .4s var(--ease), background .4s; }
.talk[data-state="castrol"] .talk__thumb { transform: translateX(100%); background: var(--green-btn); }
.talk__panel { 
	display: grid; 
    gap: 8px; 
    animation: fadeUp .4s var(--ease); 
}
.talk__panel[hidden] { display: none; }

.bubble { margin: 0; max-width: 85%; padding: 10px 14px; border-radius: 16px; font-family: var(--font); font-size: .9375rem; line-height: 1.5; }
.bubble--cust { background: #fff; border: 1px solid var(--hair); border-bottom-left-radius: 4px; }
.bubble--shop { justify-self: end; background: var(--text-2); color: #fff; border-bottom-right-radius: 4px; }
.talk[data-state="castrol"] .bubble--shop { background: var(--green-btn); }
.talk__result { margin: 6px 0 0; font-family: var(--font); font-size: .875rem; font-weight: 600; }
.talk__result--bad { color: #b3261e; }
.talk__result--good { color: var(--green-ink); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* S2 drivers */
.drivers { list-style: none; padding: 0; margin: clamp(56px, 7vw, 96px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.h3.center + .drivers { margin-top: 0; }
.wrap > .h3.center { margin-top: clamp(56px, 7vw, 96px); }
.driver { position: relative; overflow: hidden; padding: 32px 28px; border-radius: var(--r-card); background: var(--surface-200); transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.driver:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); background: #fff; }
.driver__num { position: absolute; right: 20px; top: 8px; font-size: 4.5rem; font-weight: 700; line-height: 1; color: var(--green); opacity: .1; }
.driver .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--green-btn); color: #fff; margin-bottom: 18px; }
.driver h4 { font-size: 1.25rem; }
.driver p { margin: 0; }

/* S3 brand */
.banner { position: relative; border-radius: var(--r-card); overflow: hidden; }
.banner__logo { position: absolute; z-index: 3; left: 20px; bottom: 20px; padding: 10px 16px; background: #fff; border-radius: var(--r-13); box-shadow: var(--shadow-1); }
.banner__logo img { height: 40px; width: auto; }
.banner--wide .shot { min-height: 280px; }
.banner__text { pointer-events: none; position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 5vw, 64px); background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 45%, transparent 70%); }
.banner__text .h2 { margin: 0; }
.banner__text a, .banner__text button { pointer-events: auto; }
.banner .shot__ph { left: auto; right: 12px; justify-content: flex-end; }
.brand-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: clamp(32px, 5vw, 64px); align-items: start; }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--hair); font-size: .875rem; font-weight: 500; color: var(--text); }
.chips li:first-child { border-color: var(--green); color: var(--green-ink); }
.callout { position: relative; overflow: hidden; padding: 32px; border-radius: var(--r-card); background: var(--green-btn); color: rgba(255,255,255,.92); }
.callout::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255,255,255,.08); }
.callout__title { color: #fff; font-size: 1.25rem; }
.callout p { margin: 0; }
.principles { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--border); padding-top: 24px; }
.principles__label { font-size: .875rem; color: var(--text-3); margin-bottom: 8px; }
.principles ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.principles li {
  position: relative; padding: 8px 0 14px; font-size: clamp(1.375rem, 1rem + 2vw, 2.75rem); font-weight: 300; color: var(--text); cursor: default; transition: color .3s;
}
.principles li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.principles li:hover, .principles li.is-on { color: var(--green-ink); }
.principles li:hover::after, .principles li.is-on::after { transform: scaleX(1); }

/* S4 PPF */
#ppf .lead.center { margin-top: clamp(32px, 4vw, 56px); margin-bottom: clamp(40px, 5vw, 72px); }
.tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.card { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card:hover .shot.is-loaded .shot__img { transform: scale(1.04); }
.card__body { position: relative; padding: 24px 24px 28px; }
.card__body h4 { font-size: 1.125rem; }
.card__body p:last-child { margin-bottom: 0; }
.card__num { position: absolute; top: -22px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--green-btn); color: #fff; font-weight: 600; border: 4px solid #fff; }

/* S5 Tint */
/* =====================================================================
   SEGMENTED CATEGORY TABS (tint series chips)
   ===================================================================== */
.seg {
  display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; min-width: 0;
  padding: 0; background: none; border: 0;
}
.seg button {
  height: 40px; padding: 0 18px;
  border: 1.5px solid var(--border); border-radius: var(--r-pill);
  background: #fff; color: var(--text-2);
  font-size: .9375rem; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background .22s var(--ease), color .22s, border-color .22s, box-shadow .22s, transform .22s var(--ease);
}
.seg button:hover { border-color: var(--green); color: var(--green-ink); transform: translateY(-1px); }
.seg button[aria-selected="true"] {
  background: var(--green-btn); border-color: var(--green-btn); color: #fff;
  box-shadow: 0 6px 18px rgba(0,147,67,.28);
}
.seg--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.seg--scroll::-webkit-scrollbar { display: none; }

/* Tint intro: section copy left, flagship model card right */
.tint-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; margin-bottom: clamp(40px, 5vw, 72px); }
.tint-intro__col { height: 100%; }
.tint-intro .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.tint-lead .h3 { margin-bottom: .6em; }
.tint-lead .lead-card { max-width: 560px; }
@media (max-width: 991px) {
  .tint-intro { grid-template-columns: 1fr; }
  .tint-intro .section-head { position: static; }
}

.leads { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.badge { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: var(--r-pill); font-size: .8125rem; font-weight: 600; background: var(--green-tint); color: var(--green-ink); }
.badge--purple { background: #f1e8fb; color: #5b2a91; }
.lead-card h4 { font-size: 1.375rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 0; }
.stats div { padding: 12px; border-radius: var(--r-7); background: var(--surface-200); text-align: center; }
.stats dt { font-size: .75rem; color: var(--text-3); }
.stats dd { margin: 0; font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); font-weight: 600; color: var(--green-ink); }
.lead-card--purple .stats dd { color: #5b2a91; }

.sim { margin-top: clamp(48px, 6vw, 88px); padding: clamp(20px, 3vw, 40px); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-1); }
.sim__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sim__head .h3 { margin: 0; }
.sim__body { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.sim__view { position: relative; border-radius: var(--r-card); overflow: hidden; }
.sim__glass {
  --vlt: .8; --hue: 20, 26, 30;
  position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 62%;
  background: rgba(var(--hue), calc((1 - var(--vlt)) * .92));
  transition: background .6s var(--ease);
  -webkit-mask: linear-gradient(180deg, #000 0 92%, transparent);
          mask: linear-gradient(180deg, #000 0 92%, transparent);
}
.sim__glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 55%); }
.sim__rays { position: absolute; z-index: 3; top: 6%; right: 8%; width: 30%; height: 40%; pointer-events: none; }
.sim__rays i { position: absolute; right: 0; width: 100%; height: 3px; border-radius: 2px; background: linear-gradient(270deg, #ffb74d, rgba(255,120,0,0)); transform-origin: right center; transform: rotate(-28deg); opacity: var(--ray, .3); animation: ray 2.4s infinite var(--ease); }
.sim__rays i:nth-child(1) { top: 10%; }
.sim__rays i:nth-child(2) { top: 40%; animation-delay: .4s; }
.sim__rays i:nth-child(3) { top: 70%; animation-delay: .8s; }
@keyframes ray { 0% { clip-path: inset(0 0 0 100%); } 50% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
.sim__label { position: absolute; z-index: 4; left: 14px; top: 14px; margin: 0; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(0,0,0,.6); color: #fff; font-size: .8125rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sim__label b { color: var(--green-glow); }
.sim__view .shot__ph { top: auto; }
.sim__models { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip-btn { height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--border); background: #fff; font-weight: 600; font-size: .9375rem; transition: all .2s; }
.chip-btn:hover { border-color: var(--green); color: var(--green-ink); }
.chip-btn[aria-checked="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.meters { display: grid; gap: 14px; }
.meter__row { display: flex; justify-content: space-between; align-items: baseline; font-size: .875rem; margin-bottom: 6px; }
.meter__row b { font-size: 1.125rem; color: var(--text); }
.meter__row span small { color: var(--text-3); }
.meter__bar { height: 8px; border-radius: 4px; background: var(--surface-100); overflow: hidden; }
.meter__bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--green); transition: width .8s var(--ease); }
.meter--vlt .meter__bar i { background: linear-gradient(90deg, #8fb4c9, #d6ecf7); }
.meter--uv .meter__bar i { background: #6a4bc4; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.meta-chips span { padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface-200); font-size: .8125rem; }
.meta-chips span b { color: var(--text); }
.meter-note { font-size: .8125rem; color: var(--text-3); margin: 0; }

.spec-table { margin-top: 28px; border-top: 1px solid var(--hair); }
.spec-table summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 6px; font-weight: 600; color: var(--text); cursor: pointer; list-style: none; }
.spec-table summary::-webkit-details-marker { display: none; }
.spec-table summary .ic { transition: transform .3s; color: var(--green-ink); }
.spec-table[open] summary .ic { transform: rotate(45deg); }
.table-scroll { overflow-x: auto; margin-top: 12px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 720px; }
th { text-align: left; background: var(--green); color: #fff; font-weight: 500; }
th button { width: 100%; padding: 10px 12px; border: 0; background: none; color: inherit; text-align: left; font-weight: 500; white-space: nowrap; }
th button::after { content: " ↕"; opacity: .5; }
th button[data-dir="asc"]::after { content: " ↑"; opacity: 1; }
th button[data-dir="desc"]::after { content: " ↓"; opacity: 1; }
td { padding: 10px 12px; border-bottom: 1px solid var(--hair); }
tbody tr:nth-child(even) td { background: var(--surface-200); }
tbody tr.is-sel td { background: var(--green-tint); font-weight: 600; color: var(--text); }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: #eef7f1; }

/* S6 wrap */
.shot--bg { z-index: 1; }
.shot--bg::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--bg-shade, none); }
.section--dark .shot--bg { --bg-shade: linear-gradient(90deg, rgba(1,1,1,.92) 0%, rgba(1,1,1,.6) 50%, rgba(1,1,1,.3) 100%); }
.wrap-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.big-num { display: flex; align-items: baseline; gap: 4px; margin: 8px 0 16px; font-size: clamp(4rem, 3rem + 5vw, 7.5rem); font-weight: 700; line-height: 1; color: #fff; }
.big-num sup { font-size: .45em; color: var(--green-glow); }
.big-num small { font-size: 1.25rem; font-weight: 400; color: var(--on-dark); margin-left: 8px; }
.wrapper { text-align: center; }
.car { --wrap-a: #00c25a; --wrap-b: #0aa3a3; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.car__body { transition: fill .6s; }
.car stop { transition: stop-color .6s; }
.car__wheel { transform-box: fill-box; transform-origin: center; }
/* Photo mode — added by JS once img/06-wrap-base.jpg + img/06-wrap-mask.png load; SVG .car is the fallback */
@property --wrap-a { syntax: "<color>"; inherits: true; initial-value: #00c25a; }
@property --wrap-b { syntax: "<color>"; inherits: true; initial-value: #0aa3a3; }
.has-wrap-photo { transition: --wrap-a .6s ease, --wrap-b .6s ease; }
.has-wrap-photo .car { display: none; }
.wrap-photo { position: relative; width: 100%; isolation: isolate; }
.wrap-photo > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.wrap-photo__base { object-fit: contain; }
.wrap-photo__paint,
.wrap-photo__gloss {
  -webkit-mask: var(--wrap-mask) center / 100% 100% no-repeat;
          mask: var(--wrap-mask) center / 100% 100% no-repeat;
  pointer-events: none;
}
/* colour soaks into the photo's own light & shadow */
.wrap-photo__paint { background: linear-gradient(120deg, var(--wrap-a), var(--wrap-b)); mix-blend-mode: multiply; }
/* pulls specular highlights back over the paint so dark wraps still look glossy */
.wrap-photo__gloss { object-fit: contain; mix-blend-mode: screen; filter: grayscale(1) brightness(.54) contrast(12); opacity: .6; /* only tones above ~85% survive */ }

/* =====================================================================
   COLOUR-WRAP CAR — real photo + colour layer clipped by a body mask.
   The photo supplies the lighting; the colour layer multiplies into it,
   and a soft highlight layer puts the gloss back on top.
   ===================================================================== */
.wrap-car { position: relative; width: 100%; isolation: isolate; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.wrap-car__base { display: block; width: 100%; height: auto; }
.wrap-car__paint,
.wrap-car__gloss {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: url("../img/06-wrap-mask.png");
          mask-image: url("../img/06-wrap-mask.png");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.wrap-car__paint {
  background: linear-gradient(115deg, var(--wrap-a) 0%, var(--wrap-b) 100%);
  mix-blend-mode: multiply;
  transition: background .55s var(--ease);
}
/* brings the specular sheen back after multiply darkens the panel */
.wrap-car__gloss {
  background: linear-gradient(170deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 72%, rgba(255,255,255,.18) 100%);
  mix-blend-mode: screen; opacity: .5;
}
.car--fallback[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .wrap-car__paint { transition: none; } }


.swatch-name { min-height: 1.7em; margin: 8px 0 12px; color: #fff; font-weight: 500; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 14px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); background: linear-gradient(135deg, var(--a), var(--b)); transition: transform .2s, border-color .2s, box-shadow .2s; }
.swatch:hover { transform: scale(1.1); }
.swatch[aria-checked="true"] { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); transform: scale(1.12); }
#wrap .btn { margin-top: 8px; }

/* S7 why */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.why__media { position: sticky; top: calc(var(--header-h) + 24px); }
.why__media .shot { border-radius: var(--r-card); aspect-ratio: 4 / 5; }
.reasons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; counter-reset: r; }
.reason { counter-increment: r; position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px; border-radius: var(--r-card); background: var(--surface-200); transition: background .3s, transform .3s var(--ease), box-shadow .3s; }
.reason::before { content: counter(r, decimal-leading-zero); position: absolute; top: 20px; right: 22px; font-size: .875rem; font-weight: 600; color: var(--text-3); }
.reason:hover { background: #fff; transform: translateY(-4px); box-shadow: var(--shadow-2); }
.reason__ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--green-tint); color: var(--green-ink); transition: background .3s, color .3s; }
.reason:hover .reason__ic { background: var(--green-btn); color: #fff; }
.reason__ic .ic { width: 24px; height: 24px; }
.reason h4 { font-size: 1.125rem; margin-bottom: 6px; }
.reason p { margin: 0; font-size: .9375rem; }

/* S8 RMA */
.benefits { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.benefits li { display: flex; gap: 14px; padding: 14px 16px; background: #fff; border-radius: var(--r-13); border: 1px solid var(--hair); }
.benefits .ic { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--green-tint); color: var(--green-ink); }
.benefits strong { display: block; }
.benefits span { font-size: .9375rem; }
.chips--net li { background: var(--white); }

/* S9 FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 1.0625rem; font-weight: 500; color: var(--text); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--surface-100); color: var(--green-ink); transition: transform .35s var(--ease), background .3s, color .3s; }
.faq details[open] summary .ic { transform: rotate(45deg); background: var(--green-btn); color: #fff; }
.faq summary:hover { color: var(--green-ink); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 48px 20px 0; margin: 0; }

/* S10 apply */
.section--cta { background: #030405; overflow: hidden; }
.section--cta .shot--bg { --bg-shade: linear-gradient(90deg, rgba(3,4,5,.9), rgba(3,4,5,.55)); }
.apply { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--green-glow); }
.contact-list .ic--line { color: #06c755; }
.contact-list a { color: #fff; font-weight: 500; word-break: break-all; }
.qr { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--r-card); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); width: fit-content; }
.qr img { width: 96px; height: 96px; border-radius: 8px; background: #fff; padding: 4px; }
.qr p { margin: 0; color: #fff; font-weight: 500; line-height: 1.5; }
.qr span { font-size: .8125rem; font-weight: 400; color: var(--on-dark-dim); }

.form { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-2); }
.form__title { font-family: var(--font); font-size: 1.25rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > span, .field legend { font-size: .875rem; font-weight: 500; color: var(--text); padding: 0; margin-bottom: 6px; }
.field em, .consent em { color: #c4001c; font-style: normal; }
.field input, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-7);
  border: 1.5px solid var(--border); background: #fff; font: inherit; font-size: 1rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,147,67,.15); }
.field.is-invalid input { border-color: #c4001c; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { position: relative; cursor: pointer; }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--border); font-size: .9375rem; transition: all .2s; }
.checks input:checked + span { background: var(--green-tint); border-color: var(--green); color: var(--green-ink); font-weight: 500; }
.checks input:checked + span::before { content: "✓"; margin-right: 6px; }
.checks input:focus-visible + span { outline: 3px solid var(--green-glow); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; line-height: 1.55; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green-btn); flex: none; }
.consent.is-invalid span { color: #c4001c; }
.form__msg { margin: 14px 0 0; font-size: .9375rem; font-weight: 500; }
.form__msg.is-ok { color: var(--green-ink); }
.form__msg.is-err { color: #c4001c; }

/* Footer */
.footer { background: var(--dark); color: var(--on-dark-dim); padding: clamp(40px, 5vw, 64px) 0 32px; font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; }
.footer__logo { height: 52px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__tag { color: var(--on-dark); }
.footer h4 { color: #fff; font-size: 1rem; font-weight: 500; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; line-height: 2.1; }
.footer a { color: var(--on-dark-dim); }
.footer a:hover { color: var(--green-glow); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; }
.footer__legal p { margin: 0; }

/* Utility bar (fixed bottom, as on castrolautofilm.com) */
.utility {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  height: var(--utility-h); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface-100); border-top: 1px solid var(--hair);
}
.utility a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text); font-size: .8125rem; text-decoration: none; transition: color .2s, background .2s; }
.utility a + a { border-left: 1px solid var(--border); }
.utility a:first-child { color: var(--green-ink); font-weight: 600; }
.utility a:hover { color: var(--green-ink); background: #fff; }
.utility .ic { width: 22px; height: 22px; }
.utility > a > span { font-family: var(--font); }

/* =====================================================================
   REVIEW TOOL — image prompts
   ===================================================================== */
.prompt-toggle {
  position: fixed; z-index: 46; right: 16px; bottom: calc(var(--utility-h) + 16px);
  display: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 0; border-radius: var(--r-pill); background: #111; color: #fff; font-size: .875rem; font-weight: 500;
  box-shadow: var(--shadow-2);
}
.review-mode .prompt-toggle { display: inline-flex; }
.prompt-toggle[aria-pressed="true"] { background: var(--green-btn); }
.prompt-dlg { width: min(880px, calc(100% - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: var(--r-card); box-shadow: 0 30px 80px rgba(0,0,0,.35); color: var(--text-2); }
.prompt-dlg::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.prompt-dlg__inner { padding: 24px; }
.prompt-dlg header { position: relative; padding-right: 44px; }
.prompt-dlg__sec { margin: 0; font-size: .8125rem; color: var(--green-ink); font-weight: 600; }
.prompt-dlg h3 { font-size: 1.25rem; margin: 2px 0 14px; }
.prompt-dlg__x { position: absolute; right: -6px; top: -6px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-100); display: grid; place-items: center; }
.prompt-dlg__meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 14px; font-size: .875rem; }
.prompt-dlg__meta div { display: contents; }
.prompt-dlg__meta dt { color: var(--text-3); }
.prompt-dlg__meta dd { margin: 0; color: var(--text); font-weight: 500; word-break: break-word; }
.prompt-dlg__ux { padding: 12px 14px; border-radius: var(--r-7); background: var(--green-tint); color: var(--text); font-size: .875rem; }
.prompt-dlg__h { margin: 16px 0 8px; font-size: .875rem; font-weight: 600; color: var(--text); }
.prompt-dlg__h span { font-weight: 400; color: var(--text-3); }
.compare { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.compare__item { margin: 0; border: 1px solid var(--hair); border-radius: var(--r-7); overflow: hidden; background: var(--surface-200); }
.compare__item img, .compare__empty { width: 100%; height: 150px; object-fit: cover; object-position: center; background: #111; }
.compare__item a:hover img { opacity: .85; }
.compare__item figcaption { padding: 8px 10px; font-size: .75rem; line-height: 1.45; color: var(--text-2); }
.compare__item figcaption b { color: var(--text); }
.compare__item figcaption span { color: var(--text-3); }
.compare__item--gen { border: 2px solid var(--green); }
.compare__item--gen.is-empty { border-style: dashed; }
.compare__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #fff; color: var(--text-3); font-size: .8125rem; text-align: center; }
.compare__empty .ic { width: 28px; height: 28px; color: var(--green); }
.prompt-dlg__prompt { white-space: pre-wrap; margin: 0 0 16px; padding: 16px; border-radius: var(--r-7); background: #111; color: #e8e8e8; font: 400 .875rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 40vh; overflow: auto; }
.prompt-dlg footer { display: flex; gap: 10px; justify-content: flex-end; }

/* =====================================================================
   REVEAL (only when JS is on; content never hidden otherwise)
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease-out, transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .sw { stroke-dashoffset: 0; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1199px) {
  .navbar a { font-size: .875rem; }
  .brandbar__by { display: none; }
}

@media (max-width: 991px) {
  :root { --header-h: 64px; }
  .brandbar { height: 64px; }
  .is-scrolled .brandbar { height: 60px; }
  .brandbar__logo img { height: 38px; }
  .brandbar__actions .btn--ghost { display: none; }
  .menu-btn { display: inline-flex; }
  .navbar { position: absolute; left: 0; right: 0; top: 100%; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); box-shadow: 0 16px 24px rgba(0,0,0,.12); }
  .navbar.is-open { max-height: 80vh; }
  .navbar ul { flex-direction: column; align-items: stretch; height: auto; padding: 8px var(--gutter) 16px; gap: 0; }
  .navbar li + li { border-top: 1px solid rgba(255,255,255,.15); }
  .navbar a { padding: 14px 0; font-size: 1rem; }
  .navbar a::after { display: none; }

  .trust { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--hair); }

  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 2; }
  .split__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .float-card { left: 16px; top: 16px; }
  .float-card--right { right: 16px; left: auto; }

  .drivers, .tech { grid-template-columns: 1fr; }
  .tech { gap: 28px; }
  .brand-grid { grid-template-columns: 1fr; }
  .principles ul { grid-template-columns: 1fr 1fr; }
  .leads { grid-template-columns: 1fr; gap: 24px; }
  .sim__body { grid-template-columns: 1fr; }
  .wrap-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .why__media { position: static; }
  .why__media .shot { aspect-ratio: 16 / 9; }
  .faq-wrap { grid-template-columns: 1fr; }
  .apply { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --utility-h: 60px; }
  html, body { padding-top: 25px !important; }
  .brandbar__actions .btn--primary { display: none; }
  .hero { padding: 0; }
  .hero__title { margin-bottom: 0; }
  .hero__card { border-radius: 0; min-height: calc(100svh - var(--header-h) - var(--utility-h) + 40px); align-items: flex-start; }
  .hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.2) 80%, rgba(0,0,0,.6) 100%); }
  .hero__content { padding: 16px 20px 120px; }
  .hero__ctas .btn { width: 100%; }
  .hero__scroll { display: none; }
  .sw--g1 { stroke-width: 44; }
  .trust { margin-top: -72px; }
  .trust__item { flex-direction: column; gap: 8px; padding: 16px; }
  .trust__item .ic { width: 26px; height: 26px; }
  .trust__item p { font-size: .8125rem; }
  .banner--wide .shot { aspect-ratio: 4 / 3; }
  .banner__text { background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 60%, transparent 100%); justify-content: flex-end; }
  .banner--wide .shot__ph { top: 12px; bottom: auto; }
  .seg { gap: 6px; }
  .seg button { height: 36px; padding: 0 14px; font-size: .875rem; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div { padding: 10px 6px; }
  .reasons { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .faq__a p { padding-right: 0; }
  .utility a { font-size: .6875rem; }
  .utility .ic { width: 20px; height: 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
  .prompt-toggle span { display: none; }
  .prompt-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; }
}

@media (max-width: 350px) {
  .hero__title { font-size: 1.875rem; }
  .utility span { display: none; }
}

/* =====================================================================
   HERO — LIGHT variant (matches the Castrol "Precision in every reflection" banner:
   white left, black/green headline, red PRECISION tag, colour on the right)
   ===================================================================== */
.shot[data-tone="day"] { --ph:
    radial-gradient(55% 70% at 88% 18%, rgba(0,147,67,.9) 0 30%, transparent 30.5%),
    radial-gradient(45% 60% at 84% 30%, #fff 0 30%, transparent 30.5%),
    radial-gradient(40% 55% at 82% 40%, rgba(240,0,35,.85) 0 30%, transparent 30.5%),
    linear-gradient(180deg, transparent 70%, #3b4046 70%, #22262a 100%),
    linear-gradient(90deg, #ffffff 0%, #f6f7f8 40%, #cfe3d6 70%, #9cc5a8 100%); }
.hero--light .hero__card { background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.hero--light .hero__swoosh { mix-blend-mode: normal; }
.hero--light.has-hero-img .hero__swoosh { opacity: 0; }
.hero--light .hero__shade {
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.82) 34%, rgba(255,255,255,0) 58%);
}
.hero--light .hero__content { color: var(--text-2); }
.hero--light .hero__title { color: var(--text); }
.hero--light .hero__title .nowrap { background: none; -webkit-text-fill-color: var(--green); color: var(--green); }
.hero--light .hero__tagline > .hero__tagline-en { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 700; font-style: normal; text-transform: uppercase; letter-spacing: .01em; color: var(--green-ink); display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero__tagline .tag-red { font: inherit; color: #fff; display: inline-block; padding: 2px 12px 2px 10px; background: var(--red); color: #fff; clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); }
.hero--light .hero__tagline-th, .hero--light .hero__lead { color: var(--text-2); }
.hero--light .btn--glass { background: rgba(255,255,255,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero--light .hero__scroll { border-color: rgba(0,0,0,.25); }
.hero--light .hero__scroll span { background: var(--text); }
@media (max-width: 767px) {
  .hero--light .hero__shade { background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 72%); }
  .shot[data-tone="day"] { --ph:
    radial-gradient(70% 30% at 85% 72%, rgba(0,147,67,.9) 0 40%, transparent 40.5%),
    radial-gradient(60% 26% at 80% 78%, rgba(240,0,35,.85) 0 40%, transparent 40.5%),
    linear-gradient(180deg, #fff 0%, #f4f6f5 50%, #9cc5a8 80%, #2a2e32 88%, #1b1e21 100%); }
}

/* --- PPF technology cards: dark, to match the dark banner and studio imagery --- */
.tech__card { background: #101214; border-color: #23262a; }
.tech__card .card__body h4 { color: #fff; }
.tech__card .card__body p { color: var(--on-dark); }
.tech__card .card__num { border-color: #101214; background: var(--green); }
.tech__card:hover { box-shadow: 0 14px 44px rgba(0,0,0,.35); }

/* =====================================================================
   STICKY FIX — overflow-x:hidden on html/body (ours and the WordPress
   theme's) turns every descendant position:sticky into static.
   overflow:clip still prevents sideways scrolling but keeps sticky alive.
   ===================================================================== */
@supports (overflow: clip) {
  html, body { overflow-x: clip !important;padding-top: 40px !important; }
}

/* =====================================================================
   SECTION MENU — core/navigation in overlay mode, floated bottom-right.
   Mobile only; on desktop the theme's own header menu is used instead.
   ===================================================================== */
.secnav-float { display: none; }
@media (max-width: 991px) {
  .secnav-float {
    display: block; position: fixed; z-index: 46;
    right: 16px; bottom: calc(var(--utility-h) + 16px);
    width: auto; margin: 0; padding: 0;
  }
  /* the hamburger itself */
  .secnav-float .wp-block-navigation__responsive-container-open {
    width: 52px; height: 52px; display: grid; place-items: center;
    border-radius: 50%; background: var(--green-btn); color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
  }
  .secnav-float .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; fill: currentColor; }
  /* the opened overlay */
  .secnav-float .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
  .secnav-float .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; }
  .secnav-float .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--hair); }
  .secnav-float .wp-block-navigation-item__content { display: block; width: 100%; padding: 14px 4px; font-size: 1.0625rem; text-decoration: none; }
  .secnav-float .wp-block-navigation-item__content:hover { color: var(--green-ink); }
  .secnav-float .wp-block-navigation__responsive-container-close { color: var(--text); }
}