/* GM Moto. Layout: light Crystal-grey pages, white cards for media and detail, Sangria only on actions and labels; home is one full-bleed dark video hero. */
:root {
  --bg: #EFEFEF;          /* Crystal */
  --surface: #FFFFFF;     /* Pure white */
  --ink: #19040D;         /* Dark Arm */
  --ink-2: #4A3A40;
  --muted: #74656B;
  --line: rgba(25, 4, 13, 0.12);
  --accent: #6D0730;      /* GM Sangria */
  --accent-ink: #FFFFFF;
  --neo: #A7FCCA;         /* used very sparingly */
  --hero: #2A2A2A;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  --radius: 20px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 300; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 300; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }
.eyebrow { font-family: var(--mono); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; color: var(--accent); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 400 15px/1 var(--font); text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #57051f; color: var(--accent-ink); }
.btn-ghost { border-color: rgba(25, 4, 13, 0.35); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* header */
.site-header { position: relative; z-index: 30; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 400; }
.nav-links > a, .dd-btn { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.dd-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.dd-btn:hover { color: var(--accent); }
.dd-btn svg { transition: transform .2s; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-btn.is-current { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta { display: flex; gap: 8px; }
.nav-cta .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.dd { position: relative; }
.dd-menu { position: absolute; top: 100%; left: -18px; padding-top: 6px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; }
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-box { background: var(--surface); border-radius: 16px; padding: 10px; width: 520px; box-shadow: 0 16px 40px rgba(25, 4, 13, 0.12); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.dd-box a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; color: var(--ink); }
.dd-box a:hover { background: var(--bg); color: var(--accent); }
.dd-box small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dd-box .dd-all { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; padding-top: 12px; }
.menu-btn { display: none; background: none; border: 1px solid rgba(25, 4, 13, 0.3); color: var(--ink); border-radius: 999px; min-height: 40px; padding: 0 16px; font: 400 14px var(--font); cursor: pointer; }

/* dark header variant over the home video */
.on-dark .nav-links > a, .on-dark .dd-btn { color: #FFFFFF; }
.on-dark .nav-links > a:hover, .on-dark .dd-btn:hover { color: #EFEFEF; }
.on-dark .btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #FFFFFF; }
.on-dark .btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }
.on-dark .menu-btn { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); }

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { flex-wrap: wrap; }
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; background: var(--surface); border-radius: 18px; padding: 8px 16px; order: 3; }
  .nav.open .nav-cta { display: flex; width: 100%; order: 4; }
  .nav.open .nav-cta .btn { flex: 1; }
  .nav.open .nav-links > a, .nav.open .dd-btn { color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav.open .dd { display: block; }
  .nav.open .dd-btn { display: flex; width: 100%; }
  .on-dark .nav.open .nav-cta .btn-ghost { background: rgba(0, 0, 0, 0.35); }
  .dd-menu { position: static; display: none; transform: none; padding: 0 0 8px; }
  .dd.open .dd-menu { display: block; }
  .dd-box { width: auto; box-shadow: none; padding: 0; grid-template-columns: 1fr; }
  .dd-box a { padding: 10px 4px; }
}

/* HOME hero */
.home { background: var(--hero); }
.hero { position: relative; min-height: 640px; height: 100svh; max-height: 980px; overflow: hidden; background: var(--hero); color: #FFFFFF; display: flex; flex-direction: column; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 75% 85% at 100% 100%, rgba(109, 7, 48, 0.2) 0%, rgba(109, 7, 48, 0.1) 45%, rgba(109, 7, 48, 0) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(26, 26, 26, 0.35) 0%, rgba(26, 26, 26, 0) 20%, rgba(26, 26, 26, 0) 42%, rgba(26, 26, 26, 0.4) 66%, rgba(26, 26, 26, 0.68) 86%, rgba(26, 26, 26, 0.75) 100%); }
.hero .site-header { z-index: 30; }
.hero .brand img { height: 52px; }
.hero-body { position: relative; z-index: 3; margin-top: auto; padding-block: 0 64px; }
.hero-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 40px; }
.hero-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.82); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neo); flex: none; }
.hero h1 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.1; letter-spacing: -0.025em; color: #FFFFFF; }
.typed { color: var(--accent); font-weight: 300; }
.caret { display: inline-block; width: 2px; height: 0.9em; background: var(--accent); margin-left: 4px; vertical-align: -0.08em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-side { flex: 0 1 380px; display: flex; flex-direction: column; gap: 20px; }
.hero-side p { color: rgba(255, 255, 255, 0.85); }
.hero .btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #FFFFFF; }

/* page sections */
.page-head { padding-block: 48px 36px; }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 40px; }
.split > :first-child { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split > :last-child { flex: 0 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page-head h1 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -0.025em; }
.lede { font-size: 16px; color: var(--ink-2); max-width: 60ch; }
.section { padding-block: 64px; }
.section h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 32px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }

.media { position: relative; border-radius: 24px; overflow: hidden; background: var(--hero); aspect-ratio: 16 / 9; max-height: 640px; width: 100%; }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.card { background: var(--surface); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 20px; font-weight: 400; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--ink-2); }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
ol.steps { list-style: none; margin: 0; padding: 0; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.rows li span:last-child { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.two-col { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.two-col > :first-child { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.two-col > :last-child { flex: 1 1 520px; min-width: 0; }

.robot-card { background: var(--surface); border-radius: 24px; padding: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; }
.robot-card .spec { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; }
.robot-card > div { display: flex; flex-direction: column; gap: 8px; flex: 1 1 380px; min-width: 0; }

.app-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.app-card { background: var(--surface); border-radius: 20px; padding: 12px; text-decoration: none; display: flex; flex-direction: column; gap: 14px; transition: transform .25s; }
.app-card:hover { transform: translateY(-3px); color: var(--ink); }
.app-card .thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--hero); }
.app-card .thumb img, .app-card .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-card .thumb video { opacity: 0; transition: opacity .3s; }
.app-card.playing .thumb video { opacity: 1; }
.app-card .meta { padding: 2px 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.app-card h3 { font-size: 21px; font-weight: 400; }
.app-card p { font-size: 15px; color: var(--ink-2); }
.app-card .go { font-size: 14px; font-weight: 400; color: var(--accent); }

.cta-band { background: var(--surface); border-radius: 24px; padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 32px; }
.cta-band h2 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.15; max-width: 640px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); max-width: 70ch; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--hero); aspect-ratio: 16 / 10; position: relative; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, 0.92); border-radius: 999px; padding: 5px 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }

/* about */
.bold-titles h3 { font-weight: 600; }
.about-tag { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; color: var(--accent); letter-spacing: -0.015em; }
.pmv .card h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; }
.pmv-main h2 { color: #FFFFFF; }
ul.steps { list-style: none; margin: 0; padding: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.stack .lede.story { margin-top: 4px; }
.lede.story { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; color: var(--ink); max-width: 62ch; }
.pmv { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.pmv .card p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.pmv-main { background: var(--accent); }
.pmv-main .eyebrow { color: rgba(255, 255, 255, 0.75); }
.pmv .pmv-main .pmv-text { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; color: #FFFFFF; letter-spacing: -0.015em; }
.value-letter { font-size: 56px; line-height: 1; font-weight: 300; color: var(--accent); letter-spacing: -0.03em; }
.value h3 { margin-top: 6px; }

/* contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.contact-grid > :first-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-grid > :last-child { flex: 1 1 520px; min-width: 0; }
.details { background: var(--surface); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 18px; font-size: 15px; }
.details .row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.details .row a, .details .row span.v { font-weight: 400; text-decoration: none; }
.details .addr { display: flex; flex-direction: column; gap: 6px; }
.details .addr span.v { color: var(--ink-2); line-height: 1.55; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
form.enquiry { background: var(--surface); border-radius: 24px; padding: clamp(22px, 3vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: 300 15px var(--font); color: var(--ink); background: var(--bg); border: 1px solid transparent; border-radius: 10px; padding: 12px 14px; min-height: 46px; width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-status { font-size: 14px; color: var(--ink-2); }
.form-status.ok { color: #1f6a43; }
.form-status.err { color: var(--accent); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 560px) { form.enquiry { grid-template-columns: 1fr; } }

/* NEO accents: used sparingly */
.page-head .eyebrow::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--neo); margin-right: 10px; vertical-align: 2px; box-shadow: 0 0 0 3px rgba(25, 4, 13, 0.05); }
.app-card:hover { box-shadow: inset 0 0 0 1.5px var(--neo); }
.dd-box a:hover small { color: var(--ink-2); }
.form-status.ok { background: rgba(167, 252, 202, 0.45); color: var(--ink); padding: 8px 14px; border-radius: 999px; }
.about-tag::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; background: var(--neo); margin-top: 14px; }

/* privacy policy */
.policy { max-width: 760px; display: flex; flex-direction: column; gap: 32px; }
.policy-sec { display: flex; flex-direction: column; gap: 10px; }
.policy-sec h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.policy-sec p { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.foot-base a { color: var(--muted); }
.foot-base a:hover { color: var(--accent); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; margin-top: 40px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot-brand { flex: 1 1 240px; max-width: 320px; display: flex; flex-direction: column; gap: 14px; }
.foot-brand img { height: 42px; width: auto; align-self: flex-start; }
.foot-brand p { font-size: 14px; color: var(--ink-2); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px 56px; font-size: 14px; font-weight: 400; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; }
.foot-cols a { text-decoration: none; }
.foot-cols .label { font-size: 10px; }
.foot-cols address { font-style: normal; font-weight: 300; color: var(--ink-2); max-width: 240px; line-height: 1.55; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .app-card, .dd-menu { transition: none; }
}
