/* =============================================================
   Accent Overseas Pvt. Ltd. - site styles
   Layered on top of Bootstrap 5.3. Colours and type follow the
   Accent Overseas brochure: deep red, ink and warm paper, with
   Archivo for text and Archivo Black for headings.
   ============================================================= */


/* ---------- 1. Brand tokens and Bootstrap overrides ---------- */

:root {
  --ao-red: #8a0304;
  --ao-red-hover: #b3151a;
  --ao-red-pressed: #6c0203;
  --ao-ink: #1c1a19;
  --ao-ink-soft: #3a3734;
  --ao-muted: #595755;
  --ao-label: #5f5c59;
  --ao-paper: #f7f5f2;
  --ao-white: #ffffff;
  --ao-line: #e5e0d8;
  --ao-field-border: #8c8781;
  --ao-footer-text: rgba(255, 255, 255, 0.82);
  --ao-footer-label: #ee8183;
  --ao-red-bright: #d0262c;
  --ao-ink-deep: #121110;
  --ao-navora: #322ea2;

  --ao-font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ao-font-display: "Archivo Black", "Archivo", "Arial Black", sans-serif;

  /* Height of the sticky header, used to offset in-page links */
  --ao-header-height: 80px;

  --bs-body-font-family: var(--ao-font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--ao-ink);
  --bs-body-color-rgb: 28, 26, 25;
  --bs-body-bg: var(--ao-paper);
  --bs-border-color: var(--ao-line);
  --bs-link-color: var(--ao-ink);
  --bs-link-color-rgb: 28, 26, 25;
  --bs-link-hover-color: var(--ao-red);
  --bs-link-hover-color-rgb: 138, 3, 4;
  --bs-form-invalid-color: #a3141a;
  --bs-form-invalid-border-color: #a3141a;
}


/* ---------- 2. Base ---------- */

html {
  scroll-padding-top: calc(var(--ao-header-height) + 0.5rem);
}

a {
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 3px solid var(--ao-ink);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--ao-red);
  color: var(--ao-white);
}

/* 20px side padding on phones, a slightly narrower page on very wide screens */
.container {
  --bs-gutter-x: 2.5rem;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1240px;
  }
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1100;
  padding: 0.625rem 1rem;
  background: var(--ao-ink);
  color: var(--ao-white);
  font-weight: 700;
  text-decoration: none;
}

.muted {
  color: var(--ao-muted);
}


/* ---------- 3. Typography ---------- */

.display-title,
.section-title,
.sub-title,
.label-block,
.product-title,
.navora-banner,
.division h3,
.aim-list li,
.footer-name {
  font-family: var(--ao-font-display);
  font-weight: 400;
}

.display-title {
  margin: 0;
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.sub-title {
  margin: 0 0 1.125rem;
  font-size: 1.375rem;
  line-height: 1.2;
}


/* ---------- 4. Buttons ---------- */

.btn {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.2s ease-in-out, transform 0.2s ease;
  --bs-btn-padding-x: 1.125rem;
  --bs-btn-padding-y: 0.625rem;
  --bs-btn-font-size: 0.9375rem;
  --bs-btn-font-weight: 700;
  --bs-btn-border-width: 2px;
  --bs-btn-border-radius: 4px;
}

.btn-lg {
  --bs-btn-padding-x: 1.625rem;
  --bs-btn-padding-y: 0.75rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-border-radius: 4px;
}

.btn-accent {
  --bs-btn-color: var(--ao-white);
  --bs-btn-bg: var(--ao-red);
  --bs-btn-border-color: var(--ao-red);
  --bs-btn-hover-color: var(--ao-white);
  --bs-btn-hover-bg: var(--ao-red-hover);
  --bs-btn-hover-border-color: var(--ao-red-hover);
  --bs-btn-focus-shadow-rgb: 138, 3, 4;
  --bs-btn-active-color: var(--ao-white);
  --bs-btn-active-bg: var(--ao-red-pressed);
  --bs-btn-active-border-color: var(--ao-red-pressed);
  --bs-btn-disabled-color: var(--ao-white);
  --bs-btn-disabled-bg: var(--ao-red);
  --bs-btn-disabled-border-color: var(--ao-red);
}

.btn-outline-ink {
  --bs-btn-color: var(--ao-ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--ao-ink);
  --bs-btn-hover-color: var(--ao-white);
  --bs-btn-hover-bg: var(--ao-ink);
  --bs-btn-hover-border-color: var(--ao-ink);
  --bs-btn-focus-shadow-rgb: 28, 26, 25;
  --bs-btn-active-color: var(--ao-white);
  --bs-btn-active-bg: var(--ao-ink);
  --bs-btn-active-border-color: var(--ao-ink);
}


/* ---------- 5. Header and navigation ---------- */

.site-header {
  background: rgba(247, 245, 242, 0.92);
  border-top: 4px solid var(--ao-red);
  border-bottom: 2px solid var(--ao-ink);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  transition: box-shadow 0.25s ease;
}

/* Added by main.js once the page scrolls */
.site-header.is-scrolled {
  box-shadow: 0 12px 30px -20px rgba(28, 26, 25, 0.55);
}

.site-header .navbar {
  --bs-navbar-padding-y: 0.5rem;
  --bs-navbar-color: var(--ao-ink);
  --bs-navbar-hover-color: var(--ao-red);
  --bs-navbar-active-color: var(--ao-red);
  --bs-navbar-brand-padding-y: 0.3125rem;
  --bs-navbar-nav-link-padding-x: 0;
  --bs-navbar-toggler-border-color: var(--ao-ink);
  --bs-navbar-toggler-border-radius: 4px;
  --bs-navbar-toggler-focus-width: 0.2rem;
}

.brand-logo {
  display: block;
  width: auto;
  height: 46px;
}

.site-header .nav-link {
  padding-block: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Section currently in view (set by Bootstrap scrollspy) */
.site-header .nav-link.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-block: 0.25rem 1rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    height: 40px;
  }
}


/* ---------- 6. Sections ---------- */

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-white {
  background: var(--ao-white);
}

.section-paper {
  background: var(--ao-paper);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  max-width: 34em;
  margin: 0;
  color: var(--ao-muted);
  text-wrap: pretty;
}


/* ---------- 7. Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5.5rem);
  background: var(--ao-paper);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-copy > * {
  margin: 0;
}

.accent-rule {
  width: 96px;
  height: 10px;
  background: var(--ao-red);
  transform-origin: left center;
}

.hero-tagline {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ao-ink-soft);
}

.hero-lead {
  max-width: 32em;
  font-size: 1.125rem;
  color: var(--ao-muted);
  text-wrap: pretty;
}

/* Tyre cutaway, tyre stack and a faint tread mark, layered as on the brochure cover */
.hero-visual {
  position: relative;
  isolation: isolate;
  max-width: 580px;
  margin-inline: auto;
  aspect-ratio: 560 / 500;
}

/* The red triangle from the Accent logo mark, scaled up behind the tyre */
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -12%;
  right: -12%;
  bottom: 0;
  left: -12%;
  background: linear-gradient(165deg, var(--ao-red-hover) 0%, var(--ao-red) 50%, #4a0202 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero-visual img {
  position: absolute;
  z-index: 1;
  height: auto;
}

.hero-tread {
  z-index: 0;
  left: -22%;
  bottom: -16%;
  width: 92%;
  opacity: 0.07;
}

.hero-cutaway {
  top: 0;
  right: 0;
  width: 90%;
}

.hero-stack {
  left: 0;
  bottom: 0;
  width: 34%;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.18));
}


/* ---------- 8. About and customers ---------- */

.lead-text {
  max-width: 38em;
  margin: 1.125rem 0 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ao-muted);
  text-wrap: pretty;
}

.aim-list {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aim-list li {
  display: flex;
  gap: 0.875rem;
  font-size: 1.375rem;
  line-height: 1.3;
}

.aim-list li::before {
  content: "";
  flex: none;
  width: 12px;
  background: var(--ao-red);
}

.customers {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.label-block {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.625rem 1.125rem;
  background: var(--ao-red);
  color: var(--ao-white);
  font-size: 1.25rem;
  line-height: 1.2;
}

.client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 136px;
  padding: 0.875rem 1.25rem 0.75rem;
  background: var(--ao-paper);
  border: 1px solid var(--ao-line);
  border-radius: 6px;
}

.client-logo {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.client-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.client-name {
  flex: none;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ao-muted);
  text-align: center;
}


/* ---------- 9. Cards and raw materials ---------- */

.card-brand {
  --bs-card-border-color: var(--ao-line);
  --bs-card-border-radius: 6px;
  --bs-card-inner-border-radius: 5px;
  --bs-card-bg: var(--ao-white);
  --bs-card-spacer-x: 1.25rem;
  --bs-card-spacer-y: 1.25rem;
}

.card-paper {
  --bs-card-bg: var(--ao-paper);
}

.product-card .card-img-top,
.product-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-photo {
  display: block;
  border-radius: 4px;
}

.product-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ao-red);
}

.product-wide .product-title {
  font-size: 1.5rem;
}

.product-note {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--ao-muted);
}

.spec-list {
  margin: 0;
  padding-left: 1.125rem;
  list-style: square;
  font-size: 0.9375rem;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

.spec-list li::marker {
  color: var(--ao-red);
}

.spec-columns {
  columns: 3 190px;
  column-gap: 2.5rem;
}

.spec-columns li {
  break-inside: avoid;
}

.spec-groups {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.spec-groups dt {
  font-weight: 700;
  color: var(--ao-ink-soft);
}

.spec-groups dd {
  margin: 0;
}

/* Grade codes wrap between items, never inside a code like N-220 */
.grade-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grade-list li {
  white-space: nowrap;
}

.grade-list li:not(:last-child)::after {
  content: ",";
}

.trade-notes {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.75rem;
  border-top: 2px solid var(--ao-ink);
}

.trade-notes h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.trade-notes p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ao-muted);
  text-wrap: pretty;
}


/* ---------- 10. Other divisions ---------- */

.navora {
  border-top: 4px solid var(--ao-navora);
}

.navora .card-body {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.navora-logo {
  display: block;
  width: auto;
  height: 40px;
}

.navora-strap {
  margin: 1.125rem 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ao-muted);
}

.navora-banner {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.625rem 1rem;
  background: var(--ao-ink);
  color: var(--ao-white);
  font-size: 1rem;
  line-height: 1.3;
}

.navora p:not([class]) {
  color: var(--ao-ink-soft);
  text-wrap: pretty;
}

.modules-title {
  margin: 0 0 0.875rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.check-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%238a0304' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.division {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: 1.75rem 1.75rem 1.25rem;
  background: var(--ao-paper);
  border: 1px solid var(--ao-line);
  border-top: 4px solid var(--ao-ink);
  border-radius: 6px;
}

.division h3 {
  margin: 0;
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.15;
}

.division p {
  margin: 0;
}

.division .text-link {
  margin-top: auto;
}

.division-kicker {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ao-red);
}

.text-link {
  display: inline-block;
  align-self: flex-start;
  padding-block: 0.625rem;
  font-weight: 700;
  color: var(--ao-ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--ao-red);
  text-decoration-thickness: 2px;
}


/* ---------- 11. Contact ---------- */

.contact-list {
  display: grid;
  gap: 1.375rem;
  margin: 1.75rem 0 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ao-red);
  color: var(--ao-white);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-label {
  margin: 0 0 0.125rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ao-label);
}

.contact-list p,
.contact-list address {
  margin: 0;
}

.enquiry-form .card-body {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.enquiry-form .form-label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.enquiry-form .form-control,
.enquiry-form .form-select {
  min-height: 48px;
  background-color: var(--ao-white);
  border-color: var(--ao-field-border);
  border-radius: 4px;
}

.enquiry-form .form-control:focus,
.enquiry-form .form-select:focus {
  border-color: var(--ao-ink);
  box-shadow: 0 0 0 0.2rem rgba(138, 3, 4, 0.22);
}


/* ---------- 12. Footer ---------- */

.site-footer {
  padding-block: 3rem 1.75rem;
  background: var(--ao-ink-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ao-footer-text);
  font-size: 0.9375rem;
}

.footer-name {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--ao-white);
}

.footer-label {
  margin: 0 0 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--ao-footer-label);
}

.site-footer address {
  margin: 0;
  line-height: 1.6;
}

/* Contact details with icons: address, phone and email */
.footer-contact {
  display: grid;
  gap: 0.875rem;
  margin: 1.25rem 0 0;
  padding: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.footer-contact .icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.3125rem;
  color: var(--ao-footer-text);
}

.footer-contact p {
  margin: 0;
  line-height: 1.6;
}

.footer-contact a {
  color: var(--ao-footer-text);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--ao-white);
  text-decoration: underline;
}

.footer-links {
  margin: 0;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.625rem;
  color: var(--ao-footer-text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ao-white);
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline-color: var(--ao-white);
}

.footer-copy {
  margin: 2.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.62);
}


/* ---------- 13. At-a-glance band ---------- */

.stats-band {
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  background: var(--ao-ink);
  color: var(--ao-white);
}

.stat::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 1rem;
  background: var(--ao-red-bright);
}

.stat-value {
  margin: 0;
  font-family: var(--ao-font-display);
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat-plus {
  color: var(--ao-footer-label);
}

.stat-label {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
}


/* ---------- 14. Dark contact section ---------- */

.section-ink {
  background: var(--ao-ink);
  color: rgba(255, 255, 255, 0.86);
}

.section-ink .section-title {
  color: var(--ao-white);
}

.section-ink .muted {
  color: rgba(255, 255, 255, 0.72);
}

.section-ink .contact-label {
  color: var(--ao-footer-label);
}

.section-ink .contact-list a {
  color: var(--ao-white);
}

.section-ink .contact-list a:hover {
  color: var(--ao-footer-label);
}

.section-ink .contact-icon {
  background: var(--ao-red-bright);
}

.section-ink a:focus-visible {
  outline-color: var(--ao-white);
}

.enquiry-form {
  color: var(--ao-ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65);
}


/* ---------- 15. Hover and interaction ---------- */

.client-card,
.product-card,
.division {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Frame that keeps the product photo zoom inside the card */
.card-media {
  overflow: hidden;
  border-top-left-radius: var(--bs-card-inner-border-radius);
  border-top-right-radius: var(--bs-card-inner-border-radius);
}

.card-media img,
.client-card img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) {
  .client-card:hover {
    transform: translateY(-3px);
    border-color: #d6cec2;
    box-shadow: 0 16px 30px -22px rgba(28, 26, 25, 0.55);
  }

  .client-card:hover img {
    transform: scale(1.04);
  }

  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -26px rgba(28, 26, 25, 0.5);
  }

  .product-card:hover .card-media img {
    transform: scale(1.05);
  }

  .division:hover {
    transform: translateY(-3px);
    border-top-color: var(--ao-red);
    box-shadow: 0 20px 36px -26px rgba(28, 26, 25, 0.5);
  }

  .btn-accent:hover:not(:focus-visible) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -14px rgba(138, 3, 4, 0.75);
  }

  .btn-outline-ink:hover:not(:focus-visible) {
    transform: translateY(-1px);
  }
}


/* ---------- 16. Back-to-top button ---------- */

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ao-red);
  color: var(--ao-white);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
}

/* Added by main.js after scrolling down */
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--ao-red-hover);
  color: var(--ao-white);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top:focus-visible {
  outline: 3px solid var(--ao-ink);
  outline-offset: 3px;
}


/* ---------- 17. Motion ---------- */

/* Hero plays once on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: ao-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-copy > :nth-child(2) {
    animation: ao-grow 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.2s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.28s;
  }

  .hero-copy > :nth-child(5) {
    animation-delay: 0.36s;
  }

  .hero-visual {
    animation: ao-slide-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
  }
}

@keyframes ao-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes ao-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes ao-slide-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

/* Sections fade up as they scroll into view.
   main.js only switches this on when the visitor has not asked for reduced motion. */
.reveal-on [data-reveal],
.reveal-on [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-on [data-reveal].is-visible,
.reveal-on [data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal-on [data-reveal-stagger] > :nth-child(4n + 2) {
  transition-delay: 0.08s;
}

.reveal-on [data-reveal-stagger] > :nth-child(4n + 3) {
  transition-delay: 0.16s;
}

.reveal-on [data-reveal-stagger] > :nth-child(4n + 4) {
  transition-delay: 0.24s;
}


/* =============================================================
   Multi-page components
   ============================================================= */

/* ---------- 18. Navigation dropdowns ---------- */

.site-header .dropdown-menu {
  --bs-dropdown-min-width: 17rem;
  --bs-dropdown-padding-y: 0.5rem;
  --bs-dropdown-border-color: var(--ao-line);
  --bs-dropdown-border-radius: 6px;
  --bs-dropdown-font-size: 0.9375rem;
  --bs-dropdown-link-color: var(--ao-ink);
  --bs-dropdown-link-hover-color: var(--ao-red);
  --bs-dropdown-link-hover-bg: var(--ao-paper);
  --bs-dropdown-link-active-color: var(--ao-red);
  --bs-dropdown-link-active-bg: var(--ao-paper);
  --bs-dropdown-item-padding-x: 1rem;
  --bs-dropdown-item-padding-y: 0.55rem;
  --bs-dropdown-divider-bg: var(--ao-line);
  box-shadow: 0 22px 44px -24px rgba(28, 26, 25, 0.45);
}

.site-header .dropdown-item {
  font-weight: 600;
  white-space: normal;
}

.site-header .dropdown-item.active {
  box-shadow: inset 3px 0 0 var(--ao-red);
}

.item-note {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ao-muted);
}

.site-header .dropdown-toggle::after {
  vertical-align: 0.15em;
}

@media (max-width: 991.98px) {
  .site-header .dropdown-menu {
    margin-bottom: 0.5rem;
    box-shadow: none;
  }
}


/* ---------- 19. Inner page header ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.25rem, 5vw, 4.5rem);
  background: var(--ao-paper);
  border-bottom: 1px solid var(--ao-line);
}

/* Faint logo triangle in the corner */
.page-hero::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -45%;
  width: min(52vw, 720px);
  aspect-ratio: 1.15;
  background: var(--ao-red);
  opacity: 0.05;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.breadcrumb {
  --bs-breadcrumb-margin-bottom: 1.25rem;
  --bs-breadcrumb-font-size: 0.875rem;
  --bs-breadcrumb-divider-color: var(--ao-muted);
  --bs-breadcrumb-item-active-color: var(--ao-muted);
  --bs-breadcrumb-item-padding-x: 0.5rem;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--ao-ink);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ao-red);
  text-decoration: underline;
}

.page-title {
  margin: 0;
  font-family: var(--ao-font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.page-lead {
  max-width: 38em;
  margin: 1.25rem 0 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ao-muted);
  text-wrap: pretty;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Product photo framed against the logo's red triangle */
.hero-figure {
  position: relative;
  isolation: isolate;
  max-width: 380px;
  margin-inline: auto;
  padding: 20% 7% 0;
}

.hero-figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 -8% 0;
  background: linear-gradient(165deg, var(--ao-red-hover) 0%, var(--ao-red) 50%, #4a0202 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero-figure > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 6px solid var(--ao-white);
  border-radius: 6px;
  background: var(--ao-white);
  box-shadow: 0 28px 50px -26px rgba(28, 26, 25, 0.6);
}

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  background: var(--ao-white);
  border-radius: 6px;
  box-shadow: 0 28px 50px -26px rgba(28, 26, 25, 0.6);
}

.mosaic img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
}

.facts-card,
.brand-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--ao-white);
  border: 1px solid var(--ao-line);
  border-top: 4px solid var(--ao-red);
  border-radius: 6px;
  box-shadow: 0 28px 50px -34px rgba(28, 26, 25, 0.45);
}

.brand-card {
  border-top-color: var(--ao-navora);
}

.brand-card-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 40px;
  margin-bottom: 1.25rem;
}

.brand-card .navora-banner {
  margin-bottom: 1.5rem;
}

.facts-label {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ao-red);
}

.fact-list {
  display: grid;
  gap: 0.875rem;
  margin: 0;
}

.fact-list > div {
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--ao-line);
}

.fact-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fact-list dt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ao-label);
}

.fact-list dd {
  margin: 0.125rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ao-ink);
}

.audience-list {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-list li {
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--ao-line);
  font-size: 0.9375rem;
  color: var(--ao-muted);
}

.audience-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.audience-list strong {
  display: block;
  font-size: 1.0625rem;
  color: var(--ao-ink);
}


/* ---------- 20. Call-to-action band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 5vw, 4rem);
  background: linear-gradient(120deg, #6c0203 0%, var(--ao-red) 55%, #9e0a0e 100%);
  color: var(--ao-white);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -70%;
  width: min(44vw, 560px);
  aspect-ratio: 1.15;
  background: rgba(255, 255, 255, 0.07);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  margin: 0;
  font-family: var(--ao-font-display);
  font-size: clamp(1.625rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  color: var(--ao-white);
  text-wrap: balance;
}

.cta-text {
  max-width: 40em;
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.cta-band a:focus-visible,
.division-feature a:focus-visible,
.side-help a:focus-visible {
  outline-color: var(--ao-white);
}

.btn-light-brand {
  --bs-btn-color: var(--ao-red);
  --bs-btn-bg: var(--ao-white);
  --bs-btn-border-color: var(--ao-white);
  --bs-btn-hover-color: var(--ao-red-pressed);
  --bs-btn-hover-bg: var(--ao-paper);
  --bs-btn-hover-border-color: var(--ao-paper);
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
  --bs-btn-active-color: var(--ao-red-pressed);
  --bs-btn-active-bg: var(--ao-line);
  --bs-btn-active-border-color: var(--ao-line);
}

.btn-outline-light-brand {
  --bs-btn-color: var(--ao-white);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, 0.6);
  --bs-btn-hover-color: var(--ao-red);
  --bs-btn-hover-bg: var(--ao-white);
  --bs-btn-hover-border-color: var(--ao-white);
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
  --bs-btn-active-color: var(--ao-red);
  --bs-btn-active-bg: var(--ao-white);
  --bs-btn-active-border-color: var(--ao-white);
}


/* ---------- 21. Division tiles ---------- */

/* The tile column beside the Trading card. The row's negative top margin pulls it up by one gutter,
   so a plain height of 100% left the tile 24px short; add the gutter back so both cards are equally tall. */
.division-stack {
  height: calc(100% + var(--bs-gutter-y));
}

.division-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--ao-paper);
  border: 1px solid var(--ao-line);
  border-top: 4px solid var(--ao-ink);
  border-radius: 6px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.division-tile h3 {
  margin: 0;
  font-family: var(--ao-font-display);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.15;
}

.division-tile p {
  margin: 0;
}

.division-tile p:not([class]) {
  font-size: 0.9375rem;
  color: var(--ao-muted);
}

.tile-logo {
  display: block;
  align-self: flex-start;
  width: auto;
  height: 32px;
  margin-bottom: 0.125rem;
}

/* Navora HR tile beside the Trading card: a soft indigo triangle echoes the red one and fills the space under the modules */
.division-tile-brand {
  overflow: hidden;
  isolation: isolate;
}

.division-tile-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: -12%;
  width: 52%;
  aspect-ratio: 1.15;
  background: linear-gradient(165deg, rgba(50, 46, 162, 0.2) 0%, rgba(50, 46, 162, 0.05) 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.tile-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 700;
  color: var(--ao-ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.tile-link:hover {
  color: var(--ao-red);
}

/* Trading, the flagship division, as a dark feature card */
.division-feature {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  height: 100%;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--ao-ink);
  color: rgba(255, 255, 255, 0.86);
  border-radius: 6px;
}

.division-feature::before {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -8%;
  width: 70%;
  aspect-ratio: 1.15;
  background: linear-gradient(165deg, var(--ao-red-hover) 0%, var(--ao-red) 50%, #4a0202 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.division-feature > * {
  position: relative;
  margin: 0;
}

.division-feature h3 {
  font-family: var(--ao-font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 3.4vw, 2.5rem);
  line-height: 1.05;
  color: var(--ao-white);
}

.division-feature .division-kicker {
  color: var(--ao-footer-label);
}

.feature-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

.feature-stack {
  width: 38%;
  max-width: 190px;
  height: auto;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.45));
}

@media (hover: hover) {
  .division-tile:hover {
    transform: translateY(-3px);
    border-top-color: var(--ao-red);
    box-shadow: 0 20px 36px -26px rgba(28, 26, 25, 0.5);
  }
}


/* ---------- 22. Chips ---------- */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-list > li {
  padding: 0.4rem 0.8rem;
  background: var(--ao-white);
  border: 1px solid var(--ao-line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ao-ink);
}

.chip-list > li:has(> a) {
  padding: 0;
}

.chip-list > li > a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}

.chip-list > li > a:hover {
  color: var(--ao-red);
}

.section-white .chip-list > li {
  background: var(--ao-paper);
}

.chip-list-dark > li,
.section-white .chip-list-dark > li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ao-white);
}

.chip-list-dark > li > a:hover {
  color: var(--ao-white);
  background: rgba(255, 255, 255, 0.14);
}


/* ---------- 23. Product tiles ---------- */

.product-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--ao-white);
  border: 1px solid var(--ao-line);
  border-radius: 6px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}

.section-white .product-tile {
  background: var(--ao-paper);
}

.product-tile .card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-tile-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 1.125rem 1.125rem;
}

.tile-title {
  margin: 0;
  font-family: var(--ao-font-display);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--ao-red);
}

.product-tile p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ao-muted);
}

.product-tile .tile-grades {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ao-ink-soft);
}

.product-tile .tile-link {
  font-size: 0.9375rem;
}

@media (hover: hover) {
  .product-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -26px rgba(28, 26, 25, 0.5);
  }

  .product-tile:hover .card-media img {
    transform: scale(1.05);
  }
}


/* ---------- 24. Detail page content ---------- */

.section-tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.content-block + .content-block {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--ao-line);
}

.block-title {
  margin: 0 0 1rem;
  font-family: var(--ao-font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
}

.block-sub {
  margin: 1.75rem 0 0.875rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.block-intro,
.block-note {
  font-size: 0.9375rem;
  color: var(--ao-muted);
}

.block-intro {
  margin: -0.25rem 0 1.25rem;
}

.block-note {
  margin: 1.25rem 0 0;
}

.prose p {
  max-width: 44em;
  color: var(--ao-ink-soft);
}

.prose .lead-text {
  color: var(--ao-muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.inline-link {
  font-weight: 700;
  color: var(--ao-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--ao-red-hover);
}

.lead-on-dark {
  color: rgba(255, 255, 255, 0.8);
}

.info-card {
  height: 100%;
  padding: 1.375rem 1.5rem;
  background: var(--ao-paper);
  border: 1px solid var(--ao-line);
  border-radius: 6px;
}

.section-paper .info-card {
  background: var(--ao-white);
}

.info-card h3 {
  margin: 0 0 0.875rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.info-card p {
  font-size: 0.9375rem;
  color: var(--ao-muted);
}

.term-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.term-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--ao-line);
}

.term-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.code {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ao-red);
}

.mini-feature {
  height: 100%;
  padding: 1rem 1.125rem;
  background: var(--ao-paper);
  border: 1px solid var(--ao-line);
  border-radius: 6px;
}

.mini-feature h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.mini-feature p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ao-muted);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-grid li {
  padding: 0.625rem 0.875rem;
  background: var(--ao-paper);
  border: 1px solid var(--ao-line);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.spec-note {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--ao-muted);
}

.spec-tabs {
  --bs-nav-tabs-border-color: var(--ao-line);
  --bs-nav-tabs-border-radius: 6px;
  --bs-nav-tabs-link-hover-border-color: var(--ao-line) var(--ao-line) var(--ao-line);
  --bs-nav-tabs-link-active-color: var(--ao-red);
  --bs-nav-tabs-link-active-bg: var(--ao-white);
  --bs-nav-tabs-link-active-border-color: var(--ao-line) var(--ao-line) var(--ao-white);
  --bs-nav-link-color: var(--ao-ink);
  --bs-nav-link-hover-color: var(--ao-red);
  --bs-nav-link-font-weight: 700;
  --bs-nav-link-font-size: 0.9375rem;
}

.tab-count {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--ao-paper);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ao-muted);
}

.spec-tabs .nav-link.active .tab-count {
  background: var(--ao-red);
  color: var(--ao-white);
}

.spec-panes {
  padding: 1.25rem;
  background: var(--ao-white);
  border: 1px solid var(--ao-line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.table-brand {
  --bs-table-bg: var(--ao-white);
  --bs-table-color: var(--ao-ink);
  --bs-table-striped-bg: var(--ao-paper);
  --bs-table-striped-color: var(--ao-ink);
  --bs-table-border-color: var(--ao-line);
  border: 1px solid var(--ao-line);
  font-size: 0.9375rem;
}

.table-brand > :not(caption) > * > * {
  padding: 0.75rem 1rem;
}

.table-brand thead th {
  --bs-table-bg: var(--ao-ink);
  --bs-table-color: var(--ao-white);
  border-bottom-color: var(--ao-ink);
  font-weight: 700;
}

.table-brand tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.grade-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.grade-hard {
  background: rgba(138, 3, 4, 0.1);
  color: var(--ao-red);
}

.grade-soft {
  background: rgba(28, 26, 25, 0.08);
  color: var(--ao-ink-soft);
}

.grade-special {
  background: var(--ao-ink);
  color: var(--ao-white);
}

.glossary {
  margin: 0;
  border-top: 1px solid var(--ao-line);
}

.glossary > div {
  display: grid;
  grid-template-columns: minmax(0, 12rem) 1fr;
  gap: 0.25rem 1.5rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--ao-line);
}

.glossary dt {
  font-weight: 700;
}

.glossary dd {
  margin: 0;
  color: var(--ao-muted);
}

@media (max-width: 575.98px) {
  .glossary > div {
    grid-template-columns: 1fr;
  }
}

.related-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  padding: 1.25rem;
  background: var(--ao-paper);
  border: 1px solid var(--ao-line);
  border-radius: 6px;
}

.related-card img {
  flex: 0 0 auto;
  width: 160px;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
}

.related-card > div {
  flex: 1 1 260px;
}

.related-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--ao-font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ao-red);
}

.related-card p {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  color: var(--ao-muted);
}

/* Sidebar on product pages */
.side-stack {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .side-sticky {
    position: sticky;
    top: calc(var(--ao-header-height) + 1.5rem);
  }
}

.side-card {
  padding: 1.5rem;
  background: var(--ao-white);
  border: 1px solid var(--ao-line);
  border-radius: 6px;
}

.side-card h2 {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.side-facts {
  background: var(--ao-paper);
}

.product-nav {
  --bs-list-group-color: var(--ao-ink);
  --bs-list-group-border-color: var(--ao-line);
  --bs-list-group-border-radius: 6px;
  --bs-list-group-item-padding-y: 0.625rem;
  --bs-list-group-action-color: var(--ao-ink);
  --bs-list-group-action-hover-color: var(--ao-red);
  --bs-list-group-action-hover-bg: var(--ao-paper);
  --bs-list-group-active-color: var(--ao-white);
  --bs-list-group-active-bg: var(--ao-red);
  --bs-list-group-active-border-color: var(--ao-red);
  font-size: 0.9375rem;
  font-weight: 600;
}

.side-help {
  background: var(--ao-ink);
  border-color: var(--ao-ink);
  color: rgba(255, 255, 255, 0.82);
}

.side-help h2 {
  color: var(--ao-white);
}

.side-help p {
  font-size: 0.9375rem;
}

.side-contact {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.side-contact li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.side-contact .icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ao-footer-label);
}

.side-contact a {
  font-weight: 600;
  color: var(--ao-white);
}


/* ---------- 25. Feature tiles, modules and quotes ---------- */

.feature-tile {
  height: 100%;
  padding: 1.5rem;
  background: var(--ao-white);
  border: 1px solid var(--ao-line);
  border-radius: 6px;
}

.section-white .feature-tile {
  background: var(--ao-paper);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(138, 3, 4, 0.08);
  color: var(--ao-red);
}

.feature-icon .icon {
  width: 22px;
  height: 22px;
}

.feature-tile h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.feature-tile p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ao-muted);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-grid li {
  display: flex;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  background: var(--ao-paper);
  border: 1px solid var(--ao-line);
  border-radius: 6px;
}

.module-grid li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%238a0304' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.module-grid h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.module-grid p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ao-muted);
}

.quote-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
  margin: 0;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--ao-ink);
  color: var(--ao-white);
  border-radius: 6px;
}

.quote-card::before {
  content: "\201C";
  position: absolute;
  top: -1.75rem;
  right: 1rem;
  font-family: var(--ao-font-display);
  font-size: 10rem;
  line-height: 1;
  color: var(--ao-red-bright);
  opacity: 0.55;
}

.quote-card blockquote {
  position: relative;
  margin: 0;
}

.quote-card blockquote p {
  margin: 0;
  font-family: var(--ao-font-display);
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1.2;
}

.quote-card figcaption {
  position: relative;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
}

.quote-card figcaption strong {
  display: block;
  color: var(--ao-white);
}

.tagline-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  height: 100%;
  min-height: 320px;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--ao-ink);
  color: var(--ao-white);
  border-radius: 6px;
}

.tagline-card::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -18%;
  width: 78%;
  aspect-ratio: 1.15;
  background: linear-gradient(165deg, var(--ao-red-hover) 0%, var(--ao-red) 50%, #4a0202 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.tagline-card > * {
  position: relative;
  margin: 0;
}

.tagline {
  font-family: var(--ao-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.tagline-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}

.tagline-card-sm {
  min-height: 260px;
}

.tagline-card-sm .tagline {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.aim-tile {
  height: 100%;
  padding: 1.5rem;
  background: var(--ao-white);
  border: 1px solid var(--ao-line);
  border-radius: 6px;
}

.aim-tile::before {
  content: "";
  display: block;
  width: 40px;
  height: 6px;
  margin-bottom: 1.5rem;
  background: var(--ao-red);
}

.aim-tile h3 {
  margin: 0;
  font-family: var(--ao-font-display);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.2;
}

.name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  column-gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.name-grid li {
  padding: 0.875rem 0;
  border-top: 1px solid var(--ao-line);
  font-weight: 600;
}

.name-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
}


/* ---------- 26. Inside a tyre ---------- */

.hero-visual-sm {
  max-width: 520px;
}

.tyre-map {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tyre-map li {
  display: grid;
  gap: 0.25rem;
  padding: 1.125rem 0;
  border-top: 1px solid var(--ao-line);
}

.tyre-map li:last-child {
  border-bottom: 1px solid var(--ao-line);
}

.tyre-part {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ao-label);
}

.tyre-map p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ao-muted);
}

.tyre-map .tyre-material {
  font-family: var(--ao-font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ao-ink);
}

.tyre-material a {
  color: var(--ao-red);
  text-decoration: none;
}

.tyre-material a:hover {
  text-decoration: underline;
}


/* ---------- 27. Contact page ---------- */

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  height: 100%;
  padding: 1.5rem;
  background: var(--ao-white);
  border: 1px solid var(--ao-line);
  border-radius: 6px;
}

.section-white .contact-card {
  background: var(--ao-paper);
}

.contact-card .contact-icon {
  margin-bottom: 0.5rem;
}

.contact-card h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

.contact-card p,
.contact-card address {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ao-muted);
}

.contact-card a:not(.text-link) {
  font-weight: 600;
  color: var(--ao-ink);
}

.contact-card .text-link {
  margin-top: auto;
}

.map-wrap {
  overflow: hidden;
  background: var(--ao-line);
  border: 1px solid var(--ao-line);
  border-radius: 6px;
}

.map-frame {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.contact-split .map-wrap {
  margin-top: 1.5rem;
}

/* Contact page, wide screens: the enquiry form and the map share three rows (title, intro, content),
   so the map starts on the same line as the form card. Browsers without subgrid keep the plain Bootstrap columns. */
@media (min-width: 992px) {
  @supports (grid-template-rows: subgrid) {
    .row.contact-split {
      display: grid;
      grid-template-columns: calc((100% + var(--bs-gutter-x)) * 7 / 12 - var(--bs-gutter-x)) minmax(0, 1fr);
      grid-template-rows: auto auto 1fr;
      column-gap: var(--bs-gutter-x);
      margin: 0;
    }

    .row.contact-split > * {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: 1 / span 3;
      width: auto;
      margin: 0;
      padding: 0;
    }

    .contact-split .map-wrap {
      grid-row: 3;
      align-self: start;
      margin-top: 0;
    }
  }
}

.optional {
  font-weight: 400;
  color: var(--ao-muted);
}

.footer-tagline {
  margin: 0 0 1rem;
}


/* ---------- 28. Refinements ---------- */

.prose .lead-text {
  margin-bottom: 1rem;
}

.prose + .chip-list {
  margin-top: 1rem;
}

/* Spec chips: two per row on phones */
.spec-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
}

/* Spec tabs become pills on small screens so they wrap cleanly */
@media (max-width: 575.98px) {
  .spec-tabs {
    gap: 0.5rem;
    border-bottom: 0;
  }

  .spec-tabs .nav-link {
    margin-bottom: 0;
    border: 1px solid var(--ao-line);
    border-radius: 999px;
  }

  .spec-tabs .nav-link.active {
    background: var(--ao-red);
    border-color: var(--ao-red);
    color: var(--ao-white);
  }

  .spec-tabs .nav-link.active .tab-count {
    background: var(--ao-white);
    color: var(--ao-red);
  }

  .spec-panes {
    margin-top: 0.75rem;
    padding: 0.875rem;
    border-top: 1px solid var(--ao-line);
    border-radius: 6px;
  }

  .spec-grid li {
    font-size: 0.875rem;
  }
}

/* Closing tile in the product grid */
.ask-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  height: 100%;
  padding: 1.75rem;
  background: var(--ao-ink);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 6px;
}

.ask-tile::before {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -14%;
  width: 70%;
  aspect-ratio: 1.15;
  background: linear-gradient(165deg, var(--ao-red-hover) 0%, var(--ao-red) 50%, #4a0202 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.85;
}

.ask-tile > * {
  position: relative;
  margin: 0;
}

.ask-tile h3 {
  font-family: var(--ao-font-display);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.15;
  color: var(--ao-white);
}

.ask-tile p {
  font-size: 0.9375rem;
}

.ask-tile a:focus-visible {
  outline-color: var(--ao-white);
}


/* ---------- 29. Enquiry form messages ---------- */

.form-alert {
  display: none;
  margin-bottom: 1.25rem;
  border-radius: 6px;
  scroll-margin-top: calc(var(--ao-header-height) + 1rem);
}

/* Shown by main.js, or by the page address (#sent / #failed) after a plain form post */
.form-alert.is-shown,
.form-alert:target {
  display: block;
}

/* A message that main.js has switched off stays off, even if the page address still points at it */
.form-alert.is-hidden {
  display: none;
}

.form-alert:focus-visible {
  outline: 3px solid var(--ao-ink);
  outline-offset: 2px;
}


/* ---------- 30. Security code (captcha) ---------- */

.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
}

.captcha-image {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 200 / 64;
  background: var(--ao-paper);
  border: 1px solid var(--ao-field-border);
  border-radius: 4px;
}

.captcha-refresh {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ao-field-border);
  border-radius: 4px;
  background: var(--ao-white);
  color: var(--ao-ink);
  cursor: pointer;
}

.captcha-refresh:hover {
  border-color: var(--ao-red);
  color: var(--ao-red);
}

.captcha-refresh:focus-visible {
  outline: 3px solid var(--ao-ink);
  outline-offset: 2px;
}

.captcha-refresh .icon {
  width: 20px;
  height: 20px;
}

.captcha-field {
  flex: 1 1 180px;
  min-width: 0;
}

.enquiry-form .captcha-input {
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.enquiry-form .form-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ao-muted);
}


/* ---------- 31. Banner slides (home page) ---------- */

.hero-slider {
  position: relative;
}

/* Every slide sits in the same grid cell, so the banner is as tall as its tallest
   slide and the page below never jumps when the slides change. A slide that is off
   stage is hidden from sight, from the keyboard and from screen readers. */
.hero-slider .carousel-inner {
  display: grid;
}

.hero-slider .carousel-inner::after {
  display: none;
}

.hero-slider .carousel-item {
  grid-area: 1 / 1;
  display: block;
  float: none;
  margin: 0;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(5rem, 7vw, 6.5rem);
  visibility: hidden;
}

.hero-slider .carousel-item.active,
.hero-slider .carousel-item-next,
.hero-slider .carousel-item-prev {
  visibility: visible;
}

/* Slide backgrounds. The first slide is the original paper-coloured banner. */
.slide-paper {
  background: var(--ao-paper);
}

.slide-white {
  background: var(--ao-white);
}

.slide-ink {
  background: var(--ao-ink);
}

.slide-navora {
  background: linear-gradient(135deg, #1b1858 0%, #2b2790 55%, #3f3ab8 100%);
}

.slide-dark {
  color: var(--ao-white);
}

.slide-dark .slide-title,
.slide-dark .hero-tagline {
  color: var(--ao-white);
}

.slide-dark .hero-lead {
  color: rgba(255, 255, 255, 0.84);
}

.slide-dark a:focus-visible,
.slide-dark button:focus-visible {
  outline-color: var(--ao-white);
}

.slide-ink .accent-rule {
  background: var(--ao-red-bright);
}

.slide-navora .accent-rule {
  background: var(--ao-white);
}

.hero-slider .hero-tagline {
  text-wrap: balance;
}

.slide-title {
  margin: 0;
  font-family: var(--ao-font-display);
  font-weight: 400;
  font-size: clamp(2.125rem, 4.8vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}


/* Picture side of a slide */

.slide-visual {
  position: relative;
  isolation: isolate;
  max-width: 560px;
  margin-inline: auto;
}

/* The red triangle from the Accent logo, behind the picture */
.slide-visual.has-triangle::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14% -8% -9%;
  background: var(--tri-bg, rgba(138, 3, 4, 0.08));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.slide-ink .slide-visual {
  --tri-bg: linear-gradient(165deg, var(--ao-red-hover) 0%, var(--ao-red) 50%, #4a0202 100%);
}

.slide-white .slide-visual {
  --tri-bg: rgba(138, 3, 4, 0.08);
}

.slide-navora .slide-visual {
  --tri-bg: rgba(255, 255, 255, 0.1);
}

/* Raw materials: photo collage */
.collage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collage li {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  background: var(--ao-white);
  border: 5px solid var(--ao-white);
  border-radius: 4px;
  box-shadow: 0 26px 44px -26px rgba(0, 0, 0, 0.7);
}

.collage li:nth-child(-n + 2) {
  grid-column: span 3;
}

.collage img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.collage li:nth-child(n + 3) img {
  aspect-ratio: 1;
}

.collage span {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.25rem 0.625rem;
  background: var(--ao-ink);
  color: var(--ao-white);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Customers: logo wall */
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* a last row with fewer logos sits in the middle */
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-wall li {
  flex: 0 0 calc((100% - 3 * 0.625rem) / 4);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  padding: 0.75rem 0.875rem;
  background: var(--ao-paper);
  border: 1px solid var(--ao-line);
  border-radius: 6px;
  box-shadow: 0 14px 24px -20px rgba(28, 26, 25, 0.5);
}

.logo-wall img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

/* Phones: three logos across, so each one stays readable */
@media (max-width: 575.98px) {
  .logo-wall li {
    flex-basis: calc((100% - 2 * 0.625rem) / 3);
    height: 72px;
    padding: 0.5rem 0.625rem;
  }

  .logo-wall img {
    max-height: 42px;
  }
}

/* Navora HR: app card */
.app-card {
  padding: 1.5rem;
  background: var(--ao-white);
  color: var(--ao-ink);
  border-radius: 8px;
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.65);
}

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ao-line);
}

.app-card-logo {
  display: block;
  width: auto;
  max-width: 60%;
  height: 30px;
}

.app-card-badge {
  flex: none;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(50, 46, 162, 0.1);
  color: var(--ao-navora);
  font-size: 0.8125rem;
  font-weight: 700;
}

.app-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem 1rem;
  margin: 1.125rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.app-card-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-card-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23322ea2' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.app-card-list .more {
  color: var(--ao-muted);
}

.app-card-list .more::before {
  visibility: hidden;
}

.app-card-foot {
  margin: 1.125rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ao-line);
  font-size: 0.875rem;
  color: var(--ao-muted);
}

/* Slideshow controls: arrows, dots and a pause button, in one white pill so they
   read clearly on every slide colour. Hidden until JavaScript is running. */

.slider-controls-wrap {
  position: absolute;
  right: 0;
  bottom: 1.25rem;
  left: 0;
  z-index: 5;
  pointer-events: none;
}

.slider-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.25rem 0.375rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 999px;
  box-shadow: 0 12px 30px -12px rgba(28, 26, 25, 0.6);
  pointer-events: auto;
}

.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ao-ink);
  cursor: pointer;
}

.slider-btn:hover {
  background: var(--ao-paper);
  color: var(--ao-red);
}

.slider-btn:focus-visible {
  outline: 3px solid var(--ao-ink);
  outline-offset: 0;
}

.slider-btn .icon {
  width: 18px;
  height: 18px;
}

.slider-toggle .icon-play,
.slider-toggle.is-paused .icon-pause {
  display: none;
}

.slider-toggle.is-paused .icon-play {
  display: inline-flex;
}

.slider-toggle .icon-pause,
.slider-toggle .icon-play {
  align-items: center;
  justify-content: center;
}

.slider-controls .carousel-indicators {
  position: static;
  margin: 0 0.25rem;
  padding: 0;
}

.slider-controls .carousel-indicators [data-bs-target] {
  width: 26px;
  height: 4px;
  margin: 0 2px;
  background-color: rgba(28, 26, 25, 0.55);
  opacity: 1;
  transition: background-color 0.3s ease;
}

.slider-controls .carousel-indicators .active {
  background-color: var(--ao-red);
}

.slider-controls .carousel-indicators [data-bs-target]:focus-visible {
  outline: 3px solid var(--ao-ink);
  outline-offset: 0;
}


/* Each slide's text and picture rise in again when the slide comes round: they are
   held still (no animation) while the slide is off stage. */
@media (prefers-reduced-motion: no-preference) {
  .slide-visual {
    animation: ao-slide-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
  }

  /* The slide that is leaving clears its text quickly while the backgrounds cross-fade,
     so old and new headlines are never on screen on top of each other. */
  .hero-slider .carousel-item.active.carousel-item-start > .container,
  .hero-slider .carousel-item.active.carousel-item-end > .container {
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .hero-slider .carousel-item:not(.active):not(.carousel-item-next):not(.carousel-item-prev) .hero-copy > *,
  .hero-slider .carousel-item:not(.active):not(.carousel-item-next):not(.carousel-item-prev) .hero-visual,
  .hero-slider .carousel-item:not(.active):not(.carousel-item-next):not(.carousel-item-prev) .slide-visual {
    animation: none;
  }
}


/* Phone numbers are typed with ordinary spaces and hyphens; this keeps each one on a single line */
a[href^="tel:"] {
  white-space: nowrap;
}
