/* Acoustiblok redesign prototype — design system
   Concept: engineering datasheet meets industrial signage. */

:root {
  --ink: #101014;
  --ink-soft: #17171c;
  --ink-raise: #1e1e24;
  --paper: #f4f3ef;
  --paper-2: #ffffff;
  --accent: #ffc400;
  --accent-ink: #101014;
  --steel: #5c5c64;
  --steel-light: #a5a5ad;
  --line: rgba(16, 16, 20, 0.14);
  --line-dark: rgba(244, 243, 239, 0.16);
  --radius: 4px;
  --wrap: 1200px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- typography ---------- */

.display {
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2.display, .display-2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--steel);
  max-width: 38em;
}

.section-dark .lead, .hero .lead { color: var(--steel-light); }

.kicker {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--accent);
  flex: none;
}

.section-dark .kicker, .hero .kicker { color: var(--steel-light); }

.measure { max-width: 42em; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 16, 20, 0.92);
  backdrop-filter: blur(10px);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}

.nav-logo svg { flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--steel-light);
  transition: color 0.15s;
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }

.nav-cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 700 !important;
  padding: 10px 18px;
  border-radius: var(--radius);
}

.nav-cta:hover { filter: brightness(1.06); }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--paper);
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 28px;
  padding-bottom: 64px;
}

.hero .display { max-width: 13em; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

.hero-wave { display: block; width: 100%; height: clamp(150px, 15vw, 235px); }

.wave-note {
  text-align: center;
  color: var(--steel);
  font-size: 0.92rem;
}

/* interactive demo controls under the hero scene */
.hero-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 24px 44px;
}

.btn-small { padding: 9px 18px; font-size: 0.9rem; }

.eq { display: flex; align-items: flex-end; gap: 26px; }

.eq-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.eq-item small { color: var(--steel-light); font-size: 0.85rem; white-space: nowrap; }

.eq-bar {
  width: 7px;
  height: 56px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(255, 196, 0, 0.5);
}

.eq-block {
  width: 56px;
  height: 56px;
  border-radius: 2px;
  background: repeating-linear-gradient(45deg, #2e2e35 0 6px, #35353d 6px 12px);
  border: 1px solid var(--line-dark);
}

.eq-vs { color: var(--steel-light); font-size: 0.92rem; padding-bottom: 24px; }

/* lift-the-Blok demo states */
.blok-group, .quiet-group, .noise-ext {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.noise-ext { opacity: 0; }

.hero-wave.demo-off .blok-group { transform: translateY(-170px); opacity: 0; }
.hero-wave.demo-off .quiet-group { opacity: 0; }
.hero-wave.demo-off .noise-ext { opacity: 1; }

@media (max-width: 620px) {
  .eq { gap: 16px; }
  .eq-vs { font-size: 0.82rem; }
}

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--steel-light);
  font-size: 0.95rem;
  font-weight: 500;
}

/* product page hero variant */
.hero-product {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0;
}

.hero-product .hero-cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  transition: filter 0.15s, background 0.15s, color 0.15s;
}

.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { filter: brightness(1.06); }

.btn-ghost { border-color: var(--line-dark); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }

.section .btn-ghost, .section-paper .btn-ghost { border-color: var(--line); color: var(--ink); }
.section .btn-ghost:hover { border-color: var(--ink); }

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-head { margin-bottom: 48px; }

.section-head .lead { margin-top: 16px; }

/* ---------- logo bar ---------- */

.logo-bar {
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--paper);
  padding: 34px 0;
}

.logo-bar-title {
  font-size: 0.9rem;
  color: var(--steel);
  font-weight: 500;
  display: block;
  max-width: var(--wrap);
  margin: 0 auto 18px;
  padding: 0 24px;
}

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 42s linear infinite;
}

.logo-track:hover { animation-play-state: paused; }

.logo-set {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
}

@keyframes logo-scroll {
  to { transform: translateX(-50%); }
}

.logo-chip {
  background: #fff;
  border-radius: var(--radius);
  padding: 8px 14px;
  display: flex;
  align-items: center;
}

.logo-chip img {
  height: 24px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(1);
}

.logo-chip-dark { background: #26262c; }

/* ---------- stat tiles ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.stat-tile {
  border-top: 3px solid var(--accent);
  padding-top: 16px;
}

.stat-num {
  font-weight: 800;
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--steel);
  font-size: 0.98rem;
  margin-top: 6px;
}

.section-dark .stat-label { color: var(--steel-light); }

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.card.card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.card.card-featured .img-frame {
  aspect-ratio: auto;
  min-height: 280px;
  height: 100%;
  border-radius: 0;
}

.card.card-featured .card-body {
  padding: 34px 38px;
  justify-content: center;
}

.card.card-featured .card-body h3 { font-size: 1.6rem; }

.card.card-featured .card-body p { font-size: 1.05rem; flex: 0 0 auto; margin: 6px 0 14px; }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
  color: var(--ink);
}

.section-dark .card:hover { border-color: var(--accent); }

.card:hover { border-color: var(--ink); }

.card .img-frame { aspect-ratio: 16 / 10; }

.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-body h3 { font-size: 1.2rem; }

.card-body p { color: var(--steel); font-size: 0.98rem; flex: 1; }

.card-stat {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 6px;
}

.card-stat b { color: var(--accent-ink); background: var(--accent); padding: 1px 7px; border-radius: 3px; margin-right: 8px; font-variant-numeric: tabular-nums; }

/* ---------- image frames ---------- */

.img-frame {
  background: var(--ink-raise);
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  min-height: 120px;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.card .img-frame img { transition: transform 0.35s ease; }
.card:hover .img-frame img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .card .img-frame img { transition: none; }
  .card:hover .img-frame img { transform: none; }
}

.img-frame figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(16, 16, 20, 0.82);
  color: var(--paper);
  font-size: 0.85rem;
  padding: 6px 12px;
  border-top-right-radius: var(--radius);
}

/* ---------- product rows (products.html) ---------- */

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.product-row:first-of-type { border-top: 0; }

.product-row .img-frame { aspect-ratio: 4 / 3; }

.product-row:nth-child(even) .img-frame { order: 2; }

.product-facts {
  display: flex;
  gap: 32px;
  margin: 20px 0 26px;
}

.product-facts div strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.product-facts div span { color: var(--steel); font-size: 0.92rem; }

/* ---------- spec tables ---------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.spec-table caption {
  text-align: left;
  font-weight: 700;
  font-size: 1.15rem;
  padding-bottom: 14px;
}

.spec-table th, .spec-table td {
  text-align: left;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th { font-weight: 600; color: var(--steel); width: 38%; }

.spec-table td { font-variant-numeric: tabular-nums; }

.section-dark .spec-table th { color: var(--steel-light); }
.section-dark .spec-table th, .section-dark .spec-table td { border-color: var(--line-dark); }

/* ---------- prose blocks ---------- */

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.prose h3 { margin-bottom: 10px; }
.prose p { color: var(--steel); }
.prose p + p { margin-top: 12px; }
.section-dark .prose p { color: var(--steel-light); }

/* ---------- badges / chips ---------- */

.badge-row { display: flex; gap: 12px; flex-wrap: wrap; }

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s;
}

.badge:hover { border-color: var(--ink); }

.section-dark .badge { border-color: var(--line-dark); }
.section-dark .badge:hover { border-color: var(--paper); }

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery .img-frame { aspect-ratio: 3 / 2; }

/* ---------- industry sections ---------- */

.noise-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px 32px;
}

.noise-list li {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--steel);
}

.noise-list li b { color: var(--ink); font-weight: 600; }

.section-dark .noise-list li b { color: var(--paper); }
.section-dark .noise-list li { border-color: var(--line-dark); color: var(--steel-light); }

/* ---------- footer ---------- */

.footer-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 52px 0 0;
}

.footer-cta .display-2 { max-width: 14em; }

.footer-contact {
  display: flex;
  gap: 20px 40px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 32px;
}

.footer-contact a.plain {
  color: var(--paper);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.footer-contact a.plain:hover { color: var(--accent); }

.footer-base {
  border-top: 1px solid var(--line-dark);
  margin-top: 72px;
  padding: 28px 0 40px;
  font-size: 0.9rem;
  color: var(--steel);
}

.footer-base .wrap {
  display: flex;
  gap: 12px 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-base nav { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-base a { color: var(--steel-light); text-decoration: none; }
.footer-base a:hover { color: var(--paper); }

.footer-note { width: 100%; font-size: 0.82rem; line-height: 1.5; }

/* ---------- accessibility & motion ---------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wave-travel {
  stroke-dasharray: 10 14;
  animation: wave-travel 2.8s linear infinite;
}

.wave-travel-slow {
  stroke-dasharray: 4 12;
  animation: wave-travel 4.6s linear infinite reverse;
}

@keyframes wave-travel {
  to { stroke-dashoffset: -96; }
}

.bar-glow {
  animation: bar-glow 3.4s ease-in-out infinite alternate;
}

@keyframes bar-glow {
  from { opacity: 0.22; }
  to { opacity: 0.42; }
}

/* heat shimmer rising off the bar — the sound-to-heat conversion */
.heat-rise {
  opacity: 0;
  animation: heat-rise 2.7s ease-out infinite;
}

@keyframes heat-rise {
  0% { opacity: 0; transform: translateY(12px); }
  25% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-16px); }
}

/* the calm line keeps breathing */
.quiet-line {
  animation: quiet-drift 7s ease-in-out infinite;
}

@keyframes quiet-drift {
  0%, 100% { d: path("M1010,104 C1022,95 1034,112 1048,101 C1062,92 1076,113 1092,103 C1150,99 1230,106 1330,102 C1440,98 1560,106 1690,102 C1800,99 1910,104 2000,101"); }
  50% { d: path("M1010,104 C1022,99 1034,107 1048,103 C1062,96 1076,109 1092,101 C1150,102 1230,103 1330,100 C1440,97 1560,104 1690,104 C1800,101 1910,102 2000,100"); }
}

/* city windows flicker at different rhythms */
.win-a { animation: win-flicker 4.3s ease-in-out infinite; }
.win-b { animation: win-flicker 6.1s ease-in-out -2s infinite; }
.win-c { animation: win-flicker 5.2s ease-in-out -3.4s infinite; }

@keyframes win-flicker {
  0%, 100% { opacity: 0.55; }
  12% { opacity: 0.5; }
  18% { opacity: 0.2; }
  24% { opacity: 0.52; }
  55% { opacity: 0.45; }
  61% { opacity: 0.18; }
  66% { opacity: 0.5; }
  82% { opacity: 0.55; }
}

/* fireflies drift and glow on the quiet side */
.firefly {
  animation: firefly 4.4s ease-in-out infinite alternate;
}

@keyframes firefly {
  0% { opacity: 0.1; transform: translate(0, 0); }
  45% { opacity: 0.75; }
  100% { opacity: 0.15; transform: translate(9px, -8px); }
}

/* chimney smoke crawls upward */
.smoke {
  stroke-dasharray: 3 6;
  animation: wave-travel 7s linear infinite;
}

/* dB / STC comparison bars */
.db-compare { display: grid; gap: 20px; margin-top: 34px; }

.db-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--steel);
  margin-bottom: 8px;
}

.db-label b {
  font-size: 1.05rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.db-track {
  height: 12px;
  background: rgba(16, 16, 20, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.db-fill {
  display: block;
  height: 100%;
  background: #3a3a42;
  border-radius: 2px;
}

.db-fill-accent { background: var(--accent); }

.db-note { font-size: 0.85rem; color: var(--steel); margin-top: 2px; }

.section-dark .db-label { color: var(--steel-light); }
.section-dark .db-note { color: var(--steel-light); }
.section-dark .db-track { background: rgba(244, 243, 238, 0.12); }
.section-dark .db-fill { background: #6a6a74; }
.section-dark .db-fill-accent { background: var(--accent); }
.section-dark .db-label b { color: var(--paper); }

/* quiet-scene bookend at the top of the footer */
.footer-wave {
  display: block;
  width: 100%;
  height: 40px;
  margin-bottom: 30px;
}

/* compact wave motif on product pages */
.product-wave {
  display: block;
  width: min(380px, 100%);
  height: 40px;
  margin-top: 30px;
}

/* mechanism strip (flagship page) */
.mechanism {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.mechanism .step {
  border-top: 3px solid var(--accent);
  padding-top: 18px;
}

.mechanism svg { display: block; height: 44px; margin-bottom: 14px; }

.mechanism p { color: var(--steel); font-size: 0.98rem; margin-top: 6px; }

.section-dark .mechanism p { color: var(--steel-light); }

@media (max-width: 900px) {
  .mechanism { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave-travel, .wave-travel-slow, .bar-glow, .heat-rise,
  .quiet-line, .win-a, .win-b, .win-c, .firefly, .smoke,
  .logo-track { animation: none; }
  .heat-rise { opacity: 0.5; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card.card-featured { grid-template-columns: 1fr; }
  .card.card-featured .img-frame { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
}

@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-burger { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav.nav-open .nav-links { display: flex; }

  .hero { padding-top: 64px; }
  .hero-product .hero-cols { grid-template-columns: 1fr; gap: 32px; }
  .product-row { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .product-row:nth-child(even) .img-frame { order: 0; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .spec-table th { width: 46%; }
  .product-facts { flex-wrap: wrap; gap: 20px 28px; }
}
