/* =========================================================
   HIFISTORE · DYNAUDIO PRODUCT DESCRIPTION THEME
   Scope: wrap the description in <div class="aa-dyn">
   Loaded only on Dynaudio products (see master-include)
   ========================================================= */

.aa-dyn {
  --dyn-ink: #111214;
  --dyn-black: #0a0b0c;
  --dyn-graphite: #1c1e21;
  --dyn-alu: #a9adb1;
  --dyn-alu-light: #d7d9db;
  --dyn-paper: #f5f4f1;
  --dyn-paper-2: #ebe9e4;
  --dyn-oak: #b48a5a;
  --dyn-muted: #5f6368;
  --dyn-line: #dcdad5;
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--dyn-ink);
  background: var(--dyn-paper);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow: hidden;
  overflow: clip; /* clip, not hidden: hidden makes a scroll container and breaks scroll-reveal */
  box-sizing: border-box;
}
.aa-dyn *, .aa-dyn *::before, .aa-dyn *::after { box-sizing: border-box; }
.aa-dyn h2, .aa-dyn h3, .aa-dyn h4 { font-family: inherit; margin: 0; text-wrap: balance; }
.aa-dyn p { margin: 0 0 14px; text-wrap: pretty; }
.aa-dyn p:last-child { margin-bottom: 0; }
.aa-dyn img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* Hidden short description for Haravan listing snippets */
.aa-dyn__short { display: none !important; }

/* Shared */
.aa-dyn__section { padding: 64px 6%; }
.aa-dyn__kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dyn-muted);
}
.aa-dyn__title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--dyn-ink);
}
.aa-dyn__rule { width: 48px; height: 2px; margin: 20px 0 0; background: var(--dyn-oak); border: 0; }

/* 1. Hero */
.aa-dyn__hero {
  position: relative;
  padding: 76px 6% 64px;
  color: #fff;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(255,255,255,.10), transparent 45%),
    linear-gradient(160deg, #0a0b0c 0%, #1c1e21 60%, #2a2c30 100%);
}
.aa-dyn__brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--dyn-alu-light);
}
.aa-dyn__series { margin-top: 6px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--dyn-oak); }
.aa-dyn__model {
  margin: 22px 0 14px;
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -.035em;
  color: #fff;
}
.aa-dyn__tagline { max-width: 640px; font-size: clamp(17px, 2vw, 21px); font-weight: 300; color: #d0d3d6; }
.aa-dyn__stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.aa-dyn__stat { padding: 20px 18px 0 0; }
.aa-dyn__stat + .aa-dyn__stat { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.10); }
.aa-dyn__stat b { display: block; font-size: clamp(22px, 2.6vw, 30px); font-weight: 300; color: #fff; line-height: 1.2; }
.aa-dyn__stat span { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dyn-alu); }

/* 2. Intro: heading left, text right */
.aa-dyn__intro { display: grid; grid-template-columns: 5fr 7fr; gap: 40px 7%; background: var(--dyn-paper); }

/* 3. Full-width image */
.aa-dyn__figure { margin: 0; padding: 0 6% 64px; background: var(--dyn-paper); }
.aa-dyn__figure figcaption { margin-top: 12px; font-size: 13px; color: var(--dyn-muted); text-align: center; }

/* 4. Technology cards */
.aa-dyn__tech { background: #fff; }
.aa-dyn__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.aa-dyn__card {
  padding: 28px 26px;
  background: var(--dyn-paper);
  border-top: 2px solid var(--dyn-ink);
  transition: transform .3s ease, box-shadow .3s ease;
}
.aa-dyn__card-no { display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--dyn-oak); }
.aa-dyn__card h4 { margin: 10px 0 10px; font-size: 19px; font-weight: 600; color: var(--dyn-ink); }
.aa-dyn__card p { font-size: 15px; color: #3c4044; }
.aa-dyn__card img { margin: -28px -26px 22px; max-width: calc(100% + 52px); width: calc(100% + 52px); }
@media (hover: hover) {
  .aa-dyn__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17,18,20,.10); }
}

/* 5. Split: image + text */
.aa-dyn__split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--dyn-paper-2); }
.aa-dyn__split-media img { width: 100%; }
.aa-dyn__split-body { padding: 56px 12% 56px 10%; }
.aa-dyn__split--reverse .aa-dyn__split-media { order: 2; }

/* 6. Dark statement band */
.aa-dyn__band { text-align: center; color: #fff; background: linear-gradient(160deg, #0a0b0c, #1c1e21); }
.aa-dyn__band .aa-dyn__kicker { color: var(--dyn-alu); }
.aa-dyn__quote {
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 200;
  line-height: 1.4;
  color: #fff;
}
.aa-dyn__band .aa-dyn__rule { margin: 26px auto 0; }

/* 7. Specifications */
.aa-dyn__specs { background: #fff; }
.aa-dyn__table { width: 100%; margin-top: 30px; border-collapse: collapse; border-top: 1px solid var(--dyn-ink); }
.aa-dyn__table th, .aa-dyn__table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--dyn-line); text-align: left; vertical-align: top; }
.aa-dyn__table th { width: 38%; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dyn-muted); }
.aa-dyn__table td { font-size: 16px; color: var(--dyn-ink); }

/* 8. Finishes / in the box */
.aa-dyn__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding: 0; list-style: none; }
.aa-dyn__chips li { padding: 8px 16px; border: 1px solid var(--dyn-line); border-radius: 999px; background: #fff; font-size: 14px; }

/* 5b. Highlights: text-only replacement for image blocks */
.aa-dyn__points { background: var(--dyn-paper-2); }
.aa-dyn__point-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: aa-dyn-pt; }
.aa-dyn__point-list li { position: relative; padding: 20px 0 20px 56px; border-top: 1px solid var(--dyn-line); counter-increment: aa-dyn-pt; }
.aa-dyn__point-list li::before {
  content: counter(aa-dyn-pt, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--dyn-oak);
}
.aa-dyn__point-list b { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 600; color: var(--dyn-ink); }
.aa-dyn__point-list span { display: block; font-size: 15px; color: #3c4044; }

/* Note box: when details are still being updated */
.aa-dyn__note {
  margin: 30px 0 0;
  padding: 26px 30px;
  border-left: 3px solid var(--dyn-oak);
  background: var(--dyn-paper);
  font-size: 15px;
  color: #3c4044;
}
.aa-dyn__note b { display: block; margin-bottom: 4px; color: var(--dyn-ink); }

/* 9. Footer signature */
.aa-dyn__sign {
  padding: 26px 6%;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-align: center;
  color: var(--dyn-alu);
  background: var(--dyn-black);
}

/* Tablet */
@media screen and (max-width: 991px) {
  .aa-dyn__cards { grid-template-columns: 1fr 1fr; }
  .aa-dyn__split-body { padding: 44px 6%; }
}

/* Mobile */
@media screen and (max-width: 767px) {
  .aa-dyn { font-size: 15px; }
  .aa-dyn__section { padding: 44px 20px; }
  .aa-dyn__hero { padding: 52px 20px 44px; }
  .aa-dyn__stats { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .aa-dyn__stat, .aa-dyn__stat + .aa-dyn__stat { padding: 16px 12px 16px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.10); }
  .aa-dyn__intro, .aa-dyn__split { grid-template-columns: 1fr; }
  .aa-dyn__split--reverse .aa-dyn__split-media { order: 0; }
  .aa-dyn__figure { padding: 0 20px 44px; }
  .aa-dyn__cards { grid-template-columns: 1fr; }
  .aa-dyn__point-list { grid-template-columns: 1fr; }
  .aa-dyn__note { padding: 20px; }
  .aa-dyn__table th, .aa-dyn__table td { display: block; width: 100%; padding: 4px 0; border: 0; }
  .aa-dyn__table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--dyn-line); }
}

/* =========================================================
   EFFECTS
   ========================================================= */

/* Hero: slow light sweep over the dark background */
.aa-dyn__hero { overflow: hidden; overflow: clip; isolation: isolate; }
.aa-dyn__hero::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.09), transparent 55%);
  animation: aa-dyn-sweep 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aa-dyn-sweep {
  from { transform: translateX(-30%); }
  to { transform: translateX(30%); }
}

/* Hero: model name and stats enter on load */
.aa-dyn__brand, .aa-dyn__series, .aa-dyn__model, .aa-dyn__tagline, .aa-dyn__stat {
  animation: aa-dyn-rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.aa-dyn__series { animation-delay: .08s; }
.aa-dyn__model { animation-delay: .16s; }
.aa-dyn__tagline { animation-delay: .26s; }
.aa-dyn__stat:nth-child(1) { animation-delay: .36s; }
.aa-dyn__stat:nth-child(2) { animation-delay: .44s; }
.aa-dyn__stat:nth-child(3) { animation-delay: .52s; }
.aa-dyn__stat:nth-child(4) { animation-delay: .60s; }
@keyframes aa-dyn-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Oak rule draws in */
.aa-dyn__rule { transform-origin: left center; transition: width .5s ease; }
.aa-dyn__band .aa-dyn__rule { transform-origin: center; }

/* Image zoom on hover */
.aa-dyn__figure, .aa-dyn__split-media { overflow: hidden; overflow: clip; }
.aa-dyn__figure img, .aa-dyn__split-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }

/* Card number and rule accents */
.aa-dyn__card h4 { transition: color .3s ease; }

/* Spec rows */
.aa-dyn__table tr { transition: background-color .25s ease; }
.aa-dyn__table th { transition: color .25s ease; }

/* Finish chips */
.aa-dyn__chips li { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }

@media (hover: hover) and (pointer: fine) {
  .aa-dyn__figure:hover img, .aa-dyn__split:hover .aa-dyn__split-media img { transform: scale(1.03); }
  .aa-dyn__card:hover h4 { color: var(--dyn-oak); }
  .aa-dyn__intro:hover .aa-dyn__rule, .aa-dyn__split:hover .aa-dyn__rule, .aa-dyn__band:hover .aa-dyn__rule { width: 96px; }
  .aa-dyn__table tr:hover { background: var(--dyn-paper); }
  .aa-dyn__table tr:hover th { color: var(--dyn-ink); }
  .aa-dyn__chips li:hover { background: var(--dyn-ink); border-color: var(--dyn-ink); color: #fff; }
}

/* ---------- Hero banner showpiece ---------- */
.aa-dyn__hero > * { position: relative; z-index: 1; }

/* Sound waves: concentric rings radiating from the right, like a driver cone */
.aa-dyn__hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -12%;
  width: min(760px, 70vw);
  aspect-ratio: 1;
  translate: 0 -50%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 34px, rgba(215,217,219,.16) 34px 35px, transparent 35px 70px);
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, #000 38%, transparent 70%);
  mask-image: radial-gradient(circle at center, #000 0%, #000 38%, transparent 70%);
  animation: aa-dyn-waves 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes aa-dyn-waves {
  0%, 100% { transform: scale(.94); opacity: .55; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Model name: brushed-aluminium sheen sweeping across the letters */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .aa-dyn__model {
    color: transparent;
    background: linear-gradient(110deg, #ffffff 0%, #ffffff 40%, #b48a5a 47%, #f3e3cc 50%, #b48a5a 53%, #ffffff 60%, #ffffff 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .aa-dyn .aa-dyn__hero .aa-dyn__model {
    animation-name: aa-dyn-rise, aa-dyn-sheen;
    animation-duration: .9s, 7s;
    animation-delay: .16s, 1.2s;
    animation-timing-function: cubic-bezier(.2,.7,.2,1), ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: both, none;
  }
}
@keyframes aa-dyn-sheen {
  0% { background-position: 100% 0; }
  35%, 100% { background-position: 0 0; }
}

/* Oak dash before the series name grows in */
.aa-dyn__series::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--dyn-oak);
  transform-origin: left center;
  animation: aa-dyn-draw .8s cubic-bezier(.2,.7,.2,1) .3s both;
}

/* Stats divider draws across from left to right */
.aa-dyn__stats { position: relative; border-top-color: transparent; }
.aa-dyn__stats::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--dyn-oak), rgba(255,255,255,.18) 40%);
  transform-origin: left center;
  animation: aa-dyn-draw 1.2s cubic-bezier(.2,.7,.2,1) .4s both;
}
@keyframes aa-dyn-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Stats light up on hover */
.aa-dyn__stat b { transition: color .3s ease; }
@media (hover: hover) and (pointer: fine) {
  .aa-dyn__stat:hover b { color: #f3e3cc; }
}

@media screen and (max-width: 767px) {
  .aa-dyn__hero::after { top: 0; right: -40%; width: 120vw; translate: 0 -30%; }
}

/* Scroll reveal: sections fade up as they enter the viewport.
   Pure CSS (scroll-driven animations); browsers without support simply show everything. */
@supports (animation-timeline: view()) {
  .aa-dyn__intro > div,
  .aa-dyn__figure img,
  .aa-dyn__tech .aa-dyn__title,
  .aa-dyn__card,
  .aa-dyn__split-media,
  .aa-dyn__split-body,
  .aa-dyn__quote,
  .aa-dyn__specs .aa-dyn__title,
  .aa-dyn__point-list li,
  .aa-dyn__note,
  .aa-dyn__table tr {
    animation: aa-dyn-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
  .aa-dyn__card:nth-child(2) { animation-range: entry 8% entry 78%; }
  .aa-dyn__card:nth-child(3) { animation-range: entry 16% entry 86%; }
  .aa-dyn__split-body { animation-range: entry 10% entry 80%; }
}
/* Uses `translate`, not `transform`, so hover transforms (card lift, image zoom) still work */
@keyframes aa-dyn-reveal {
  from { opacity: 0; translate: 0 32px; }
  to { opacity: 1; translate: 0 0; }
}

/* Respect users who turn off motion */
@media (prefers-reduced-motion: reduce) {
  .aa-dyn *, .aa-dyn *::before, .aa-dyn *::after {
    animation: none !important;
    transition: none !important;
  }
}
