/* ============================================================
   Backstage Audio Tech — design system
   Dark stage aesthetic · Hebrew RTL · accent taken from logo
   ============================================================ */

:root {
  --red: #e01030;
  --red-hot: #ff2447;
  --red-deep: #9c0a20;
  --bg: #0b0b10;
  --bg-raised: #12121a;
  --bg-card: #16161f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f7;
  --text-soft: #b9b9c6;
  --text-dim: #83838f;
  --glow: rgba(224, 16, 48, 0.35);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 74px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  font-family: 'Heebo', -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--red); color: #fff; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:is(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 11, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled {
  background: rgba(11, 11, 16, 0.92);
  border-bottom-color: var(--line);
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { height: 46px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 2px;
  border-radius: 2px;
  background: var(--red);
}

/* dropdown */
.has-sub { position: relative; }
.has-sub > a::after { content: ' ▾'; font-size: 0.7em; color: var(--text-dim); }
.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 210px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s var(--ease);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a { padding: 8px 12px; font-size: 0.95rem; }

/* mobile */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  /* starts at --red (not --red-hot): white text needs >=4.5:1 across the gradient */
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 8px 26px var(--glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px var(--glow);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red-hot); }
.btn-sm { padding: 9px 20px; font-size: 0.92rem; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red-hot);
  font-weight: 600;
  font-size: 0.95rem;
}
.link-more::after { content: '←'; transition: transform 0.2s; }
.link-more:hover::after { transform: translateX(-4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 90% at 85% 20%, rgba(224, 16, 48, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(11, 11, 16, 0.82) 0%, rgba(11, 11, 16, 0.55) 45%, var(--bg) 100%);
}
.hero-content { max-width: 720px; padding-block: 90px 140px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--red-hot);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.hero-kicker::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(120deg, var(--red-hot), #ff7a8d);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* equalizer strip at hero bottom */
.eq {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 90px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding-inline: 4vw;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.eq i {
  flex: 1;
  background: linear-gradient(180deg, var(--red-hot), var(--red-deep));
  border-radius: 3px 3px 0 0;
  height: 12%;
  animation: eq-bounce 1.1s ease-in-out infinite alternate;
}
@keyframes eq-bounce {
  from { height: 8%; opacity: 0.55; }
  to { height: var(--h, 70%); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .eq i { animation: none; height: var(--h, 40%); }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section-alt { background: var(--bg-raised); }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-hot);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.section-head.center .kicker::after {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

/* ---------- Feature boxes ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--red-hot), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(224, 16, 48, 0.12);
  color: var(--red-hot);
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.feature p { color: var(--text-soft); font-size: 0.98rem; }
.feature .link-more { margin-top: 16px; }

/* ---------- Brand logos ---------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.brand-tile {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  transition: 0.3s var(--ease);
  border: 1px solid transparent;
}
.brand-tile img {
  max-height: 74px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
  transition: 0.3s;
}
.brand-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.brand-tile:hover img { filter: none; opacity: 1; }
.brand-tile figcaption {
  font-size: 0.85rem;
  color: #333;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

/* marquee variant (homepage) */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .brand-tile { width: 200px; flex: none; }
@keyframes marquee {
  to { transform: translateX(50%); } /* RTL: track moves right */
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- Cards (categories / products / projects / posts) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}
.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}
.card-media.dark { background: var(--bg-raised); }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card-media.contain img { object-fit: contain; padding: 18px; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-body h3 { font-size: 1.18rem; font-weight: 700; line-height: 1.3; }
.card-body p {
  color: var(--text-soft);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body .link-more { margin-top: auto; padding-top: 8px; }
.card-tag {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red-hot);
  background: rgba(224, 16, 48, 0.12);
  padding: 3px 12px;
  border-radius: 999px;
}

/* ---------- Venue / client chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-soft);
  font-weight: 500;
  transition: 0.25s;
}
.chip:hover { border-color: var(--red); color: #fff; }

/* ---------- Quote band ---------- */
.quote-band {
  position: relative;
  padding-block: 110px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-raised);
}
.quote-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 100% at 50% 100%, rgba(224, 16, 48, 0.14), transparent 70%);
}
.quote-band blockquote {
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  color: #fff;
  direction: ltr;
}
.quote-band blockquote strong { font-weight: 700; color: var(--red-hot); font-style: normal; }

/* ---------- Gallery (projects) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.gallery figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  color: #fff; /* explicit: sits on a fixed dark gradient in every color mode */
  font-weight: 600;
  font-size: 1.02rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(224, 16, 48, 0.22), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.cta-band p { color: var(--text-soft); margin-top: 12px; font-size: 1.1rem; }
.cta-band .btn { margin-top: 28px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 70px) 0 56px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 80% at 80% 0%, rgba(224, 16, 48, 0.12), transparent 65%),
    linear-gradient(180deg, var(--bg-raised), var(--bg));
}
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; }
.page-hero .lead {
  margin-top: 14px;
  max-width: 640px;
  color: var(--text-soft);
  font-size: 1.12rem;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.breadcrumbs a:hover { color: var(--red-hot); }
.breadcrumbs .sep { opacity: 0.5; }

/* ---------- Prose (long text) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; font-weight: 700; margin: 40px 0 14px; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 30px 0 10px; }
.prose p { margin-bottom: 16px; color: var(--text-soft); font-size: 1.05rem; }
.prose ul { margin: 0 0 16px; padding-inline-start: 4px; }
.prose li {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 8px;
  color: var(--text-soft);
}
.prose li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* ---------- Product detail ---------- */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: start;
}
.product-media {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.product-media img { margin-inline: auto; max-height: 460px; object-fit: contain; }
.product-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.product-thumbs button {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  padding: 4px;
}
.product-thumbs button.active { border-color: var(--red); }
.product-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
.product-info .subtitle { color: var(--text-soft); font-size: 1.1rem; margin-top: 8px; }
.spec-list { margin-top: 26px; }
.spec-list h2 { font-size: 1.3rem; margin-bottom: 12px; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item { display: flex; align-items: center; gap: 14px; }
.contact-item .feature-icon { margin: 0; width: 46px; height: 46px; flex: none; }
.contact-item a:hover { color: var(--red-hot); }
.contact-item .label { font-size: 0.85rem; color: var(--text-dim); }
.contact-item .value { font-weight: 600; direction: ltr; text-align: end; unicode-bidi: embed; }

form.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.95rem; }
.form-field :is(input, textarea, select) {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-field :is(input, textarea):focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 16, 48, 0.18);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { grid-column: 1 / -1; color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08080c;
  padding: 64px 0 0;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img { height: 56px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 0.95rem; max-width: 300px; }
.site-footer h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.site-footer li { margin-bottom: 9px; }
.site-footer li a { color: var(--text-dim); font-size: 0.95rem; transition: color 0.2s; }
.site-footer li a:hover { color: var(--red-hot); }
.footer-contact li { display: flex; gap: 10px; align-items: baseline; color: var(--text-dim); font-size: 0.95rem; }
.footer-contact .ltr { direction: ltr; unicode-bidi: embed; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.1); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal on scroll (only when JS is available) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Accessibility widget ---------- */
.acc-toggle {
  position: fixed;
  top: calc(var(--header-h) + 18px);
  left: 14px;                    /* physical left on purpose — matches the statement */
  z-index: 130;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0b57b8;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.acc-toggle svg { width: 26px; height: 26px; fill: currentColor; }
.acc-toggle:hover { background: #0d69dc; }

/* don't fight the mobile nav overlay for the same screen corner */
html:has(.main-nav.open) .acc-toggle,
html:has(.main-nav.open) .acc-panel { display: none; }

.acc-panel {
  position: fixed;
  top: calc(var(--header-h) + 74px);
  left: 14px;
  z-index: 130;
  width: 260px;
  max-height: min(60vh, 520px);
  overflow-y: auto;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  display: none;
}
.acc-panel.open { display: block; }
.acc-panel .acc-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.acc-panel button {
  display: block;
  width: 100%;
  text-align: start;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.acc-panel button:hover { border-color: var(--line-strong); }
.acc-panel button[aria-pressed="true"] {
  border-color: var(--red);
  background: rgba(224, 16, 48, 0.16);
  font-weight: 600;
}
.acc-panel .acc-link {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--red-hot);
  text-decoration: underline;
}

/* --- accessibility modes (classes set on <html>) --- */
html.acc-grayscale { filter: grayscale(1); }
html.acc-contrast { filter: contrast(1.3); }
html.acc-invert { filter: invert(1) hue-rotate(180deg); }
html.acc-invert :is(img, video, iframe, .hero-bg) { filter: invert(1) hue-rotate(180deg); }
/* logos must follow the inverted chrome, not fight it: site logo (white-on-transparent)
   inverts to dark on the now-light header/footer; brand logos (dark) invert to light
   on the now-dark tiles */
html.acc-invert :is(.logo, .footer-brand) img { filter: none; }
html.acc-invert .brand-tile img { filter: none; }

html.acc-light {
  --bg: #f7f7f9;
  --bg-raised: #ececf1;
  --bg-card: #ffffff;
  --line: rgba(0, 0, 0, 0.14);
  --line-strong: rgba(0, 0, 0, 0.28);
  --text: #141419;
  --text-soft: #3a3a45;
  --text-dim: #56565f;
  --red-hot: #b00d26;            /* darker accent: #ff2447 fails AA on white */
  --glow: rgba(224, 16, 48, 0.18);
}
html.acc-light .quote-band blockquote { color: var(--text); }
/* keep the hero photo-dark in light mode so its forced-white text stays readable */
html.acc-light .hero::before {
  background:
    radial-gradient(70% 90% at 85% 20%, rgba(224, 16, 48, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(11, 11, 16, 0.85) 0%, rgba(11, 11, 16, 0.6) 60%, rgba(11, 11, 16, 0.8) 100%);
}
html.acc-light .chip:hover { color: var(--text); }
html.acc-light .site-header { background: rgba(255, 255, 255, 0.9); }
html.acc-light .site-header.scrolled { background: rgba(255, 255, 255, 0.97); }
html.acc-light .main-nav a:hover { color: #000; background: rgba(0, 0, 0, 0.06); }
html.acc-light .main-nav a, html.acc-light .main-nav a[aria-current="page"] { color: var(--text-soft); }
html.acc-light .nav-toggle span { background: #141419; }
html.acc-light .site-footer { background: #ececf1; }
/* the logo PNG is white-text-on-transparent — invert it so it stays legible on light chrome */
html.acc-light :is(.logo, .footer-brand) img { filter: invert(1) hue-rotate(180deg); }
html.acc-light .hero-content,
html.acc-light .hero-content .hero-sub { color: #fff; }
html.acc-light .btn-ghost { color: var(--text); border-color: var(--line-strong); }
html.acc-light .hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 768px) {
  html.acc-light .main-nav { background: rgba(255, 255, 255, 0.98); }
}

html.acc-links a { text-decoration: underline !important; text-underline-offset: 3px; }

html.acc-font body,
html.acc-font button,
html.acc-font input,
html.acc-font textarea {
  font-family: Arial, 'Helvetica Neue', sans-serif !important;
  letter-spacing: 0.02em;
}

html.acc-noanim *,
html.acc-noanim *::before,
html.acc-noanim *::after {
  animation: none !important;
  transition: none !important;
}
html.acc-noanim { scroll-behavior: auto; }
html.acc-noanim .reveal { opacity: 1 !important; transform: none !important; }

@media (max-width: 768px) {
  .acc-toggle {
    width: 40px;
    height: 40px;
    top: calc(var(--header-h) + 10px);
    left: 10px;
  }
  .acc-toggle svg { width: 22px; height: 22px; }
  .acc-panel {
    top: calc(var(--header-h) + 58px);
    left: 10px;
    width: min(260px, calc(100vw - 20px));
    max-height: min(55vh, 440px);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-layout, .contact-layout { grid-template-columns: 1fr; }
  .product-media { position: static; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .logo img { height: 38px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    bottom: 0;
    background: rgba(11, 11, 16, 0.98);
    backdrop-filter: blur(10px);
    padding: 28px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s var(--ease);
    overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 14px 16px; font-size: 1.15rem; }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 16px;
  }
  .sub-menu a { font-size: 1rem; color: var(--text-dim); }
  .header-cta { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .hero { min-height: min(86vh, 760px); }
  .hero-content { padding-block: 60px 120px; }
  form.contact-form { grid-template-columns: 1fr; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
