@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-dark: #0A1628;
  --text-on-dark: #F5F0EB;
  --bg-light: #F5F0EB;
  --text-on-light: #0A1628;
  --bg-accent: #F5A623;
  --text-on-accent: #0A1628;
  --bg-steel: #5C6B7A;
  --text-on-steel: #F5F0EB;
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --max-w: 1180px;
  --divider: 3px solid var(--bg-accent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); line-height: 1.65; font-size: 1.0625rem; background: var(--bg-light); color: var(--text-on-light); }
img { max-width: 100%; height: auto; display: block; }
a { color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 400; }

.surface-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.surface-light { background: var(--bg-light); color: var(--text-on-light); }
.surface-accent { background: var(--bg-accent); color: var(--text-on-accent); }
.surface-steel { background: var(--bg-steel); color: var(--text-on-steel); }
.surface-dark a, .surface-light a, .surface-steel a, .surface-accent a { color: currentColor; text-decoration: underline; }
.surface-dark *:not([class*="surface-"]):not([class*="gear-card--"]) { color: inherit; }
.surface-light *:not([class*="surface-"]):not([class*="gear-card--"]) { color: inherit; }
.surface-steel *:not([class*="surface-"]):not([class*="gear-card--"]) { color: inherit; }
.surface-accent *:not([class*="surface-"]):not([class*="gear-card--"]) { color: inherit; }
.surface-dark .gear-card--light,
.surface-dark .gear-card--light * { color: var(--text-on-light); }

.container { width: min(100% - 2rem, var(--max-w)); margin-inline: auto; }
.section-pad { padding: 4.5rem 0; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Torque strip & gear badges */
.torque-strip {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-left: 4px solid var(--bg-accent);
  background: rgba(245, 166, 35, 0.18);
  color: var(--text-on-light);
}
.surface-dark .torque-strip {
  color: var(--text-on-dark);
  background: rgba(245, 166, 35, 0.22);
}
.gear-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border: 1px solid currentColor;
}
.diagonal-divider {
  position: relative;
  padding-bottom: 3rem;
}
.diagonal-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-accent) 48%, transparent 48%, transparent 52%, var(--bg-dark) 52%);
}

/* Header — sticky, underline nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(245, 240, 235, 0.1);
  background: var(--bg-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.9rem 0;
  gap: 1rem;
  position: relative;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.site-header .logo,
.site-header .nav-toggle {
  color: var(--text-on-dark);
}
.nav-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-list a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  border-bottom-color: var(--bg-accent);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid currentColor;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Buttons — angular rectangular CTA */
.btn {
  display: inline-block;
  padding: 0.9rem 1.65rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--bg-accent);
  color: var(--text-on-accent);
  box-shadow: 4px 4px 0 var(--bg-dark);
}
.btn-primary:hover {
  box-shadow: 2px 2px 0 var(--bg-dark);
  transform: translate(2px, 2px);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: inherit;
  border: 2px solid currentColor;
  box-shadow: none;
}
.btn-secondary:hover {
  background: rgba(245, 166, 35, 0.15);
  text-decoration: none;
}

/* Hero Pattern C — Asymmetric Magazine */
.hero-magazine {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 52px 1fr minmax(280px, 44%);
  align-items: stretch;
  position: relative;
}
.hero-vertical-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  border-right: 1px solid rgba(245, 240, 235, 0.15);
  opacity: 0.85;
}
.hero-magazine-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem 3rem 2rem;
  margin-top: 5rem;
}
.hero-serial {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero-magazine h1 {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  margin-bottom: 1.1rem;
  max-width: 16ch;
}
.hero-sub {
  font-size: 1.12rem;
  max-width: 44ch;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.trust-strip {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.hero-magazine-visual {
  position: relative;
  border-left: var(--divider);
  display: flex;
  flex-direction: column;
}
.hero-magazine-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  min-height: 100%;
}
.hero-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  font-size: 0.78rem;
  background: rgba(10, 22, 40, 0.82);
  padding: 0.55rem 0.8rem;
  color: var(--text-on-dark);
}

/* RPM stats */
.rpm-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(245, 240, 235, 0.12);
  border-bottom: 1px solid rgba(245, 240, 235, 0.12);
}
.rpm-cell {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(245, 240, 235, 0.1);
}
.rpm-cell:last-child { border-right: none; }
.rpm-cell .rpm-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.75;
}
.rpm-cell .rpm-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.rpm-cell .rpm-desc { font-size: 0.88rem; opacity: 0.85; }

/* Gear module cards — diagonal accent */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.gear-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(10, 22, 40, 0.1);
}
.gear-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 4px;
  background: var(--bg-accent);
  transform: skewX(-35deg);
  transform-origin: top right;
}
.gear-card h3 { font-size: 1.4rem; margin-bottom: 0.65rem; }
.gear-card .gear-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

/* Timeline */
.engine-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
}
.engine-timeline::before {
  content: '';
  position: absolute;
  top: 1.1rem;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--bg-accent);
  z-index: 0;
}
.timeline-step {
  position: relative;
  z-index: 1;
  padding-top: 2.5rem;
}
.timeline-step::before {
  content: '';
  position: absolute;
  top: 0.65rem;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--bg-accent);
  border: 2px solid var(--bg-dark);
}
.surface-light .timeline-step::before {
  border-color: var(--bg-light);
}
.surface-light .engine-timeline::before {
  background: var(--bg-accent);
}
.surface-light .timeline-step h4,
.surface-light .timeline-step p {
  color: var(--text-on-light);
}
.timeline-step h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.45rem; }
.timeline-step p { font-size: 0.9rem; opacity: 0.88; }

/* Programme mosaic */
.programme-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.mosaic-tile {
  padding: 1.5rem;
  border: 1px solid rgba(245, 240, 235, 0.18);
  background: rgba(10, 22, 40, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.surface-light .mosaic-tile {
  border: 1px solid rgba(10, 22, 40, 0.12);
  background: var(--bg-light);
}
.surface-steel .mosaic-tile h3,
.surface-steel .mosaic-tile p,
.surface-steel .mosaic-tile .price {
  color: var(--text-on-steel);
}
.gear-card--light {
  background: var(--bg-light);
  color: var(--text-on-light);
}
.gear-card--light h3,
.gear-card--light p,
.gear-card--light .gear-num {
  color: var(--text-on-light);
}
.faq-grid--cards .faq-item {
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(10, 22, 40, 0.1);
  background: #fff;
}
.surface-steel .torque-strip,
.surface-steel .section-label.torque-strip {
  color: var(--text-on-steel);
  background: rgba(245, 166, 35, 0.25);
}
.mosaic-tile h3 { font-size: 1.15rem; }
.mosaic-tile .price {
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.mosaic-tile img {
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

/* FAQ two-column grid */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
}
.faq-item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.faq-item p { font-size: 0.95rem; }

/* Page layouts */
.page-hero { padding: 3.5rem 0 2rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.85rem); margin-bottom: 0.75rem; }
.page-hero .lead { font-size: 1.1rem; max-width: 62ch; }
.content-block { max-width: 78ch; }
.content-block h2 { margin: 2rem 0 0.85rem; font-size: 1.55rem; }
.content-block h3 { margin: 1.5rem 0 0.65rem; font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; }
.content-block p, .content-block li { margin-bottom: 1rem; }
.content-block ul, .content-block ol { padding-left: 1.5rem; margin-bottom: 1rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.split-editorial {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.photo-rail { display: flex; flex-direction: column; gap: 1.25rem; }
.photo-rail img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.photo-rail figcaption { font-size: 0.82rem; opacity: 0.75; margin-top: 0.4rem; }

.program-list { display: grid; gap: 2.25rem; }
.program-item {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 1.75rem;
  padding: 1.75rem;
  border: 1px solid rgba(10, 22, 40, 0.1);
}
.program-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.program-item h2 { font-size: 1.4rem; margin-bottom: 0.65rem; }
.program-item .price-tag {
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 0.75rem;
  color: var(--bg-dark);
}

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service-card {
  padding: 1.75rem;
  border: 1px solid rgba(10, 22, 40, 0.1);
}
.service-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; margin-bottom: 1rem; }
.service-card h3 { margin-bottom: 0.65rem; font-size: 1.25rem; }

.disclaimer-box {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--bg-accent);
  margin: 2rem 0;
  font-size: 0.94rem;
  background: rgba(245, 166, 35, 0.08);
}

/* Forms */
.form-surface { padding: 2rem; border: 1px solid rgba(10, 22, 40, 0.12); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.92rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(10, 22, 40, 0.22);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--text-on-light);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-alert { padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.form-alert.success { background: #e8f4ea; color: #1a4d2e; border: 1px solid #8bc49a; }
.form-alert.error { background: #fce8e8; color: #7a1a1a; border: 1px solid #e8a0a0; }
.hp-field { position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden; }
.checkbox-group { display: flex; gap: 0.6rem; align-items: flex-start; }
.checkbox-group input { width: auto; margin-top: 0.25rem; flex-shrink: 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-photo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* Footer */
.site-footer { padding: 3.5rem 0 2rem; font-size: 0.9rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: var(--text-on-dark);
}
.site-footer p, .site-footer a, .site-footer span, .site-footer li { color: var(--text-on-dark); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(245, 240, 235, 0.12);
  padding-top: 1.5rem;
  font-size: 0.84rem;
  opacity: 0.88;
}
.footer-disclaimer { margin-top: 1rem; font-size: 0.8rem; line-height: 1.55; opacity: 0.82; }

/* CTA band */
.cta-band { text-align: center; padding: 4rem 2rem; position: relative; }
.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: var(--bg-accent);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 0.85rem; }
.surface-steel .btn-primary {
  background: var(--bg-accent);
  color: var(--text-on-accent);
}
.cta-band p { max-width: 52ch; margin: 0 auto 1.5rem; }

/* Legal prose */
.legal-prose { max-width: 72ch; }
.legal-prose h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.legal-prose p, .legal-prose li { margin-bottom: 0.85rem; font-size: 0.98rem; }
.legal-meta { font-size: 0.9rem; margin-bottom: 2rem; opacity: 0.85; }

/* 404 */
.error-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-page h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin-bottom: 1rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1.25rem;
  box-shadow: 0 -6px 28px rgba(10, 22, 40, 0.2);
}
.cookie-banner.is-hidden { display: none; }
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.cookie-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-custom {
  display: none;
  padding: 1rem 0 0;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(10, 22, 40, 0.12);
}
.cookie-custom label { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.9rem; align-items: center; }
.cookie-note { font-size: 0.82rem; opacity: 0.85; margin-top: 0.5rem; }

/* Reveal — content always visible (no hidden-on-load) */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-magazine { grid-template-columns: 40px 1fr minmax(220px, 42%); }
  .hero-magazine-text { margin-top: 3rem; padding: 2rem 1.5rem; }
  .engine-timeline { grid-template-columns: repeat(2, 1fr); }
  .engine-timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    background: var(--bg-dark);
    border-top: 1px solid rgba(245, 240, 235, 0.12);
    margin: 0 -1rem;
    padding: 0 1rem;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 0.5rem 0 1rem; }
  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(245, 240, 235, 0.08);
    border-bottom-color: transparent;
    border-left: 3px solid transparent;
    padding-left: 0.5rem;
  }
  .nav-list a:hover,
  .nav-list a[aria-current="page"] {
    border-bottom-color: transparent;
    border-left-color: var(--bg-accent);
    background: rgba(245, 166, 35, 0.08);
  }
  .hero-magazine {
    grid-template-columns: 1fr;
    min-height: 72vh;
  }
  .hero-vertical-label { display: none; }
  .hero-magazine-text { margin-top: 0; padding: 2rem 0 1.5rem; }
  .hero-magazine-visual { border-left: none; border-top: var(--divider); min-height: 220px; }
  .rpm-strip { grid-template-columns: 1fr; }
  .rpm-cell { border-right: none; border-bottom: 1px solid rgba(245, 240, 235, 0.1); }
  .gear-grid, .programme-mosaic, .service-grid, .two-col, .faq-grid,
  .split-editorial, .contact-layout, .program-item {
    grid-template-columns: 1fr;
  }
  .program-item { grid-template-columns: 1fr; }
  .engine-timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
