/* ═══════════════════════════════════════════════════════════════════
   AVK — Audio Von Kirchner
   Design System — Editorial / Elegant / Mobile-first
   ═══════════════════════════════════════════════════════════════════ */


/* ─── 0. CUSTOM PROPERTIES ─── */
:root {
  --gold:        #00FF00;
  --gold-light:  #80FF80;
  --gold-dark:   #00AA00;
  --black:       #001A00;
  --black-soft:  #002200;
  --black-card:  #002800;
  --gray-dark:   #003300;
  --gray-mid:    #004400;
  --gray-text:   #7ABF7A;
  --white:       #E8FFE8;
  --white-pure:  #FFFFFF;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Outfit', sans-serif;

  /* Spacing & layout */
  --page-px: clamp(1.25rem, 4vw, 5rem);
  --nav-h: 68px;

  /* Readable text measures */
  --measure: 68ch;
  --measure-wide: 90ch;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}


/* ─── 1. RESET ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) #001100;
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
table { border-collapse: collapse; width: 100%; }
ul, ol { list-style: none; }

::selection {
  background: rgba(0, 255, 0, 0.15);
  color: var(--white-pure);
}


/* ─── 2. NOISE TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}


/* ─── 3. CANVAS (Sound wave — fixed behind everything) ─── */
#wavesCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* All page sections sit above the canvas */
nav,
.hero,
.philosophy,
.marquee-section,
.products,
.engineering,
.craftsmanship,
.contact,
footer,
.product-hero,
.ps,
.back,
.footer {
  position: relative;
  z-index: 1;
}


/* ─── 4. BASE TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--white);
  line-height: 1.1;
  font-weight: 300;
}

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--white-pure); font-weight: 400; }


/* ─── 5. NAVIGATION ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem var(--page-px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 26, 0, 0.95), rgba(0, 26, 0, 0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.5s ease;
}

nav.scrolled {
  background: rgba(0, 10, 0, 0.97);
  padding: 0.8rem var(--page-px);
  border-bottom: 1px solid rgba(0, 255, 0, 0.15);
}

/* Brand identity in nav */
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.nav-brand-avk {
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.nav-brand-sub {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gray-text);
}

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-text);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Right side of nav (lang + hamburger) */
.nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
}


/* ─── 6. LANGUAGE SELECTOR ─── */
.lang {
  display: none;
  align-items: center;
  gap: 0.125rem;
}

.lang__btn {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--gray-text);
  padding: 0.375rem 0.5rem;
  border-radius: 2px;
  transition: color 0.25s ease, background 0.25s ease;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lang__btn:hover {
  color: var(--white);
}

.lang__btn.active {
  color: var(--gold);
  background: rgba(0, 255, 0, 0.06);
}


/* ─── 7. HAMBURGER ─── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  z-index: 1001;
  cursor: pointer;
  background: none;
  border: none;
}

/* Support both .hamburger span and .hamburger__line */
.hamburger span,
.hamburger__line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  margin: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1),
.hamburger.active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.hamburger.active span:nth-child(2),
.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3),
.hamburger.active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}


/* ─── 8. MOBILE MENU ─── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 8, 0, 0.97);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

/* Support both .mobile-menu ul and .mobile-menu__links */
.mobile-menu ul,
.mobile-menu__links {
  list-style: none;
  text-align: center;
  padding: 0;
  margin-bottom: 1rem;
}

.mobile-menu li,
.mobile-menu__links li {
  margin: 1.75rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-menu.open li,
.mobile-menu.open .mobile-menu__links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open li:nth-child(1),
.mobile-menu.open .mobile-menu__links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open li:nth-child(2),
.mobile-menu.open .mobile-menu__links li:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu.open li:nth-child(3),
.mobile-menu.open .mobile-menu__links li:nth-child(3) { transition-delay: 0.26s; }
.mobile-menu.open li:nth-child(4),
.mobile-menu.open .mobile-menu__links li:nth-child(4) { transition-delay: 0.34s; }
.mobile-menu.open li:nth-child(5),
.mobile-menu.open .mobile-menu__links li:nth-child(5) { transition-delay: 0.42s; }

.mobile-menu a,
.mobile-menu__links a {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 2rem;
}

.mobile-menu a:hover,
.mobile-menu__links a:hover,
.mobile-menu a.active,
.mobile-menu__links a.active {
  color: var(--gold);
}

/* Language row inside mobile menu */
.mobile-menu__lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.48s, transform 0.4s ease 0.48s;
}

.mobile-menu.open .mobile-menu__lang {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__lang .lang__btn {
  font-size: 0.75rem;
  min-width: 44px;
  min-height: 44px;
}


/* ─── 9. HERO (HOME) ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 255, 0, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0, 255, 0, 0.02) 0%, transparent 70%);
}

.hero-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-lines::before,
.hero-lines::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 255, 0, 0.06), transparent);
}

.hero-lines::before { left: 15%; }
.hero-lines::after  { right: 15%; }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--page-px);
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.95;
  margin-bottom: 0.5rem;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 1.2s ease 0.5s forwards;
  position: relative;
}

/* AVK animated letters */
.avk-letter {
  display: inline-block;
  position: relative;
  color: transparent;
  background: linear-gradient(
    180deg,
    rgba(200, 255, 200, 0.95) 0%,
    var(--gold) 40%,
    rgba(0, 200, 0, 0.7) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  animation: letterBreathe 8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.6s);
  filter: drop-shadow(0 0 20px rgba(0, 255, 0, 0.15))
          drop-shadow(0 0 60px rgba(0, 255, 0, 0.05));
}

.avk-letter:nth-child(1) { --i: 0; }
.avk-letter:nth-child(2) { --i: 1; }
.avk-letter:nth-child(3) { --i: 2; }

@keyframes letterBreathe {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.12))
            drop-shadow(0 0 50px rgba(0, 255, 0, 0.04));
    opacity: 0.88;
  }
  25% {
    filter: drop-shadow(0 0 30px rgba(0, 255, 0, 0.22))
            drop-shadow(0 0 80px rgba(0, 255, 0, 0.08));
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(0, 255, 0, 0.10))
            drop-shadow(0 0 40px rgba(0, 255, 0, 0.03));
    opacity: 0.85;
  }
  75% {
    filter: drop-shadow(0 0 25px rgba(0, 255, 0, 0.18))
            drop-shadow(0 0 70px rgba(0, 255, 0, 0.06));
    opacity: 0.95;
  }
}

/* Shimmer sweep overlay on each letter */
.avk-letter::after {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(200, 255, 200, 0.25) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(200, 255, 200, 0.25) 55%,
    transparent 80%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 250% 100%;
  animation: shimmerSweep 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 1.8s);
  pointer-events: none;
}

@keyframes shimmerSweep {
  0%, 100% { background-position: 200% center; }
  50%       { background-position: -50% center; }
}

/* Sub-line beneath AVK letters */
.avk-sub {
  display: block;
  font-size: 0.22em;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--white);
  margin-top: 0.8rem;
  opacity: 0.9;
  animation: subBreathe 10s ease-in-out infinite;
}

@keyframes subBreathe {
  0%, 100% { opacity: 0.75; }
  50%       { opacity: 0.95; }
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 2.5rem auto;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.95rem, 5.2vw, 3.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gray-text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
  letter-spacing: 0.05em;
  min-height: 1.4em;
}

/* Typewriter reveal helper classes */
.hero-tagline .tl {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-tagline .tl.vis {
  opacity: 1;
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.5s forwards;
}

.hero-scroll span {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-text);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}


/* ─── 10. PHILOSOPHY SECTION ─── */
.philosophy {
  position: relative;
  padding: 8rem var(--page-px);
  text-align: center;
}

.philosophy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--gold-dark), transparent);
}

.section-num {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 2.5rem;
}

.philosophy-text {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--gray-text);
}

.philosophy-text em {
  color: var(--gold-light);
  font-style: italic;
}

.philosophy-quote {
  max-width: 600px;
  margin: 3rem auto 0;
  padding: 2rem 0;
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gold-light);
}

.philosophy-quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-style: normal;
  font-family: var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-text);
}


/* ─── 11. MARQUEE BAND ─── */
.marquee-section {
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--gray-mid);
  padding: 0 2rem;
  flex-shrink: 0;
}

.marquee-item .dot {
  color: var(--gold-dark);
  margin: 0 1.5rem;
}


/* ─── 12. PRODUCTS (HOME) ─── */
.products {
  padding: 6rem var(--page-px) 8rem;
  position: relative;
}

.products-header {
  text-align: center;
  margin-bottom: 5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  position: relative;
  background: var(--black-card);
  border: 1px solid var(--gray-mid);
  padding: 3rem 2.5rem;
  transition: all 0.5s ease;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover {
  border-color: rgba(0, 255, 0, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(0, 255, 0, 0.04);
}

.product-card:hover::before {
  opacity: 1;
}

.product-img {
  width: 100%;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-mid);
  padding-bottom: 1.5rem;
}

.product-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.6s ease;
}

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

.product-label {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.product-name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.product-description {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-text);
  margin-bottom: 2rem;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-mid);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-label {
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.spec-value {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--white);
}


/* ─── 13. ENGINEERING SECTION ─── */
.engineering {
  padding: 6rem var(--page-px) 8rem;
  background: linear-gradient(180deg, var(--black) 0%, var(--black-soft) 50%, var(--black) 100%);
  position: relative;
}

.engineering-header {
  text-align: center;
  margin-bottom: 4rem;
}

.eng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--gray-mid);
}

.eng-cell {
  background: var(--black-card);
  padding: 2.5rem 2rem;
  transition: background 0.4s ease;
}

.eng-cell:hover {
  background: var(--gray-dark);
}

.eng-cell-icon {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1;
}

.eng-cell-title {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.eng-cell-text {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray-text);
}


/* ─── 14. CRAFTSMANSHIP ─── */
.craftsmanship {
  padding: 8rem var(--page-px);
  max-width: 900px;
  margin: 0 auto;
}

.craft-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.craft-sidebar {
  position: sticky;
  top: 6rem;
}

.craft-sidebar .section-num {
  margin-bottom: 0.5rem;
}

.craft-sidebar-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1.3;
}

.craft-body p {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}

.craft-body strong {
  color: var(--white);
  font-weight: 400;
}

.craft-highlight {
  padding: 2rem;
  border-left: 2px solid var(--gold);
  background: rgba(0, 255, 0, 0.03);
  margin: 2rem 0;
}

.craft-highlight p {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 0 !important;
  line-height: 1.7;
}


/* ─── 15. CONTACT (HOME) ─── */
.contact {
  padding: 8rem var(--page-px);
  text-align: center;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--gold-dark), transparent);
}

.contact-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-text {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--gray-text);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 3rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s ease;
  min-height: 48px;
}

.contact-cta:hover {
  background: var(--gold);
  color: var(--black);
}

.contact-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.contact-cta:hover svg {
  transform: translateX(4px);
}

.contact-location {
  margin-top: 3rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
}


/* ─── 16. FOOTER ─── */
footer,
.footer {
  padding: 3rem var(--page-px);
  border-top: 1px solid var(--gray-mid);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand,
.footer__brand {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.footer-text,
.footer__tagline {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-text);
}

.footer__copy {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-text);
  opacity: 0.6;
}


/* ─── 17. PRODUCT PAGE HERO ─── */
.product-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) var(--page-px) 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-hero .hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 255, 0, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0, 255, 0, 0.02) 0%, transparent 70%);
}

/* Canvas behind product hero */
.product-hero .hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.product-hero .hero__canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.product-hero__intro {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.product-hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.product-hero__name {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.35s forwards;
}

.product-hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gray-text);
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.product-hero__image {
  width: auto;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.7s forwards;
}

.product-hero__image img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}


/* ─── 18. PRODUCT CONTENT SECTIONS (ps) ─── */
.ps {
  padding: 5rem var(--page-px);
  border-top: 1px solid var(--gray-mid);
}

.ps__label {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

/* Two-column grid: image + content side by side */
.ps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.ps__content {}

.ps__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  max-inline-size: var(--measure);
}

.ps__text {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--gray-text);
  margin-bottom: 1.25rem;
  max-inline-size: var(--measure);
}

.ps__text:last-child { margin-bottom: 0; }

.ps__text strong {
  color: var(--white);
  font-weight: 400;
}

/* Image with rounded corners */
.ps__image {
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 0, 0.1);
  width: fit-content;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 255, 0, 0.03);
}

.ps__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 26, 0, 0.3));
  pointer-events: none;
}

.ps__image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.8s var(--ease-out);
}

.ps__image:hover img {
  transform: scale(1.03);
}

/* Reverse layout: image on right */
.ps--reverse .ps__grid {
  direction: rtl;
}
.ps--reverse .ps__grid > * {
  direction: ltr;
}

/* Gallery section: horizontal grid */
.ps--gallery .ps__gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ps--gallery .ps__gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
}

.ps--gallery .ps__image {
  margin: 0;
}

.ps--gallery .ps__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ─── 19. FEATURES GRID ─── */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 2.5rem;
}

.feature {
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-mid);
  transition: border-color 0.25s ease;
}

.feature:hover {
  border-top-color: var(--gold-dark);
}

.feature__title {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.feature__text {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-text);
  max-inline-size: 50ch;
}


/* ─── 20. SPECS TABLE ─── */
.specs {
  margin-top: 2rem;
}

.specs tr {
  border-bottom: 1px solid var(--gray-mid);
  transition: background 0.25s ease;
}

.specs tr:hover {
  background: rgba(0, 255, 0, 0.03);
}

.specs td {
  padding: 1rem 0;
  vertical-align: top;
}

.specs td:first-child {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  width: 45%;
  padding-right: 1.5rem;
}

.specs td:last-child {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--white);
}


/* ─── 21. SVG ANIMATIONS ─── */
/* Frequency response graph */
.freq-response {
  margin: 3rem 0;
  padding: 2rem 0;
  border: 1px solid var(--gray-mid);
  background: var(--black-soft);
  overflow: hidden;
}

.freq-response svg {
  width: 100%;
  height: auto;
  display: block;
}

.freq-response__path {
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s var(--ease-in-out);
}

.freq-response__path.drawn {
  stroke-dashoffset: 0;
}

.freq-response__glow {
  stroke: var(--gold);
  stroke-width: 6;
  fill: none;
  opacity: 0.12;
  filter: blur(4px);
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s var(--ease-in-out);
}

.freq-response__glow.drawn {
  stroke-dashoffset: 0;
}

.freq-response__grid {
  stroke: var(--gray-mid);
  stroke-width: 0.5;
}

.freq-response__label {
  font-family: var(--sans);
  font-size: 8px;
  fill: var(--gray-text);
  letter-spacing: 0.05em;
}

/* Circuit trace animation */
.circuit-trace {
  margin: 2rem 0;
  opacity: 0.6;
}

.circuit-trace svg {
  width: 100%;
  height: auto;
}

.circuit-trace__path {
  stroke: var(--gold-dark);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset 1.5s var(--ease-in-out);
}

.circuit-trace__path.drawn {
  stroke-dashoffset: 0;
}

.circuit-trace__node {
  fill: var(--gold);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.circuit-trace__node.visible {
  opacity: 1;
}

.circuit-trace__label {
  font-family: var(--sans);
  font-size: 9px;
  fill: var(--gray-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.6s ease 0.8s;
}

.circuit-trace__label.visible {
  opacity: 1;
}


/* ─── 22. BACK LINK & TEXT LINK ─── */
.back {
  padding: 3rem var(--page-px) 5rem;
  text-align: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--gold-dark);
  transition: all 0.3s ease;
  min-height: 48px;
}

.text-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
  gap: 1rem;
}


/* ─── 23. SCROLL REVEAL ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Named delay utilities (used in prototype) */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Group-based stagger (used in product pages) */
.reveal-group > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-group > .reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal-group > .reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal-group > .reveal:nth-child(8) { transition-delay: 0.56s; }


/* ─── 24. ACCESSIBILITY ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--black);
  padding: 0.75rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}


/* ─── 25. RESPONSIVE: TABLET (768px+) ─── */
@media (min-width: 768px) {
  /* Nav: show links, hide hamburger */
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; pointer-events: none !important; }
  .lang { display: flex; }

  /* Product grid: two columns */
  .product-grid { grid-template-columns: 1fr 1fr; }

  /* Footer inline */
  footer,
  .footer {
    flex-direction: row;
    text-align: left;
  }

  /* Product sections: two-column grid */
  .ps__grid {
    grid-template-columns: auto 1fr;
    gap: 3.5rem;
    align-items: start;
  }

  /* Features: two columns */
  .features { grid-template-columns: 1fr 1fr; }

  /* Specs: tighten label column */
  .specs td:first-child { width: 40%; }

  /* Craftsmanship: restore two-col with sticky sidebar */
  .craft-content {
    grid-template-columns: 200px 1fr;
    gap: 3rem;
  }
  .craft-sidebar { position: sticky; }
}


/* ─── 26. RESPONSIVE: 900px (product grid switch) ─── */
@media (max-width: 900px) {
  .eng-grid { grid-template-columns: 1fr 1fr; }
  .craft-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .craft-sidebar { position: static; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .philosophy { padding: 6rem var(--page-px); }
  .products { padding: 4rem var(--page-px) 6rem; }
  .engineering { padding: 4rem var(--page-px) 6rem; }
  .craftsmanship { padding: 5rem var(--page-px); }
  .contact { padding: 5rem var(--page-px); }
}


/* ─── 27. RESPONSIVE: DESKTOP (1024px+) ─── */
@media (min-width: 1024px) {
  .nav-links { gap: 3rem; }

  .ps { padding: 6rem var(--page-px); }

  .features { grid-template-columns: 1fr 1fr; }
}


/* ─── 28. RESPONSIVE: LARGE DESKTOP (1400px+) ─── */
@media (min-width: 1400px) {
  .features { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

  .product-hero__name {
    font-size: clamp(6rem, 10vw, 10rem);
  }
}


/* ─── 29. RESPONSIVE: MOBILE (<600px) ─── */
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }

  nav { padding: 1rem 1.2rem; }
  nav.scrolled { padding: 0.7rem 1.2rem; }
  .nav-brand-avk { font-size: 1.5rem; }

  .hero { min-height: 100svh; }
  .hero-content { padding: 0 1.2rem; }
  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
  }
  .hero-title {
    font-size: clamp(3rem, 18vw, 5rem);
    letter-spacing: 0.05em;
  }
  .avk-sub {
    font-size: 0.2em;
    letter-spacing: 0.2em;
    margin-top: 0.6rem;
  }
  .hero-divider { margin: 1.5rem auto; width: 50px; }
  .hero-tagline {
    font-size: clamp(1.56rem, 6.5vw, 2.08rem);
    max-width: 90%;
  }
  .hero-scroll { bottom: 2rem; }
  .hero-scroll span { font-size: 0.65rem; }
  .scroll-line { height: 30px; }

  .section-num { font-size: 0.7rem; }
  .section-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    margin-bottom: 1.5rem;
  }

  .philosophy { padding: 4rem 1.2rem; }
  .philosophy-text { font-size: 1.05rem; line-height: 1.7; }
  .philosophy-quote {
    font-size: 1rem;
    padding: 1.5rem 0;
    margin: 2rem auto 0;
  }
  .philosophy-quote cite { font-size: 0.8rem; }

  .marquee-section { padding: 2rem 0; }
  .marquee-item {
    font-size: clamp(1.5rem, 6vw, 2rem);
    padding: 0 1rem;
  }

  .products { padding: 3rem 1.2rem 4rem; }
  .products-header { margin-bottom: 3rem; }
  .product-card { padding: 1.2rem; }
  .product-img { margin-bottom: 1.2rem; padding-bottom: 1.2rem; }
  .product-label { font-size: 0.7rem; }
  .product-name { font-size: 1.8rem; margin-bottom: 1rem; }
  .product-description { font-size: 1rem; line-height: 1.6; margin-bottom: 1.2rem; }
  .product-specs { grid-template-columns: 1fr 1fr; gap: 0.8rem; padding-top: 1.2rem; }
  .spec-label { font-size: 0.65rem; }
  .spec-value { font-size: 0.95rem; }

  .engineering { padding: 3rem 1.2rem 4rem; }
  .engineering-header { margin-bottom: 2.5rem; }
  .eng-grid { grid-template-columns: 1fr; }
  .eng-cell { padding: 1.5rem 1.2rem; }
  .eng-cell-icon { font-size: 2rem; margin-bottom: 0.6rem; }
  .eng-cell-title { font-size: 0.75rem; }
  .eng-cell-text { font-size: 1rem; line-height: 1.5; }

  .craftsmanship { padding: 3.5rem 1.2rem; }
  .craft-sidebar-title { font-size: 1.4rem; }
  .craft-body p { font-size: 1rem; line-height: 1.7; margin-bottom: 1.2rem; }
  .craft-highlight { padding: 1.2rem; margin: 1.5rem 0; }
  .craft-highlight p { font-size: 1rem; }

  .contact { padding: 4rem 1.2rem; }
  .contact-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .contact-text { font-size: 1rem; margin-bottom: 2rem; }
  .contact-cta { padding: 0.9rem 2.2rem; font-size: 0.8rem; }
  .contact-location { margin-top: 2rem; font-size: 0.75rem; }

  footer,
  .footer {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    padding: 2rem 1.2rem;
  }

  .footer-brand,
  .footer__brand { font-size: 1.1rem; }

  .footer-text,
  .footer__tagline { font-size: 0.7rem; }

  /* Product page mobile adjustments */
  .product-hero__name {
    font-size: clamp(3rem, 18vw, 5rem);
  }
  .ps { padding: 3rem 1.2rem; }
  .ps__title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .ps__text { font-size: 1rem; }
  .feature__text { font-size: 1rem; }
  .specs td { padding: 0.75rem 0; }
  .specs td:first-child {
    font-size: 0.65rem;
    width: 50%;
    padding-right: 1rem;
  }
  .specs td:last-child { font-size: 0.9rem; }
  .back { padding: 2rem 1.2rem 3.5rem; }
}


/* ─── 30. RESPONSIVE: SMALL MOBILE (<380px) ─── */
@media (max-width: 380px) {
  .hero-title { font-size: 3rem; }
  .hero-tagline { font-size: 1.43rem; }
  .section-title { font-size: 1.6rem; }
  .product-specs { grid-template-columns: 1fr; }
}


/* ─── 31. REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #wavesCanvas { display: none; }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html { scroll-behavior: auto; }
}
