:root {
  --bg: #f7f5f0;
  --paper: #ffffff;
  --ink: #121212;
  --muted: #6f6f6f;
  --line: #dfd9ce;
  --accent: #9a6a2f;
  --accent-dark: #5d3c18;
  --dark: #111111;
  --shadow: 0 24px 80px rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

h1 {
  max-width: 820px;
  font-size: clamp(4rem, 11vw, 9.8rem);
}

h2 {
  max-width: 860px;
  font-size: clamp(3rem, 8vw, 7rem);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 880px;
}

.section {
  padding: clamp(76px, 9vw, 130px) 0;
}

.section-muted {
  background: #ebe6dc;
}

.section-dark {
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(154, 106, 47, 0.45), transparent 32rem),
    linear-gradient(135deg, #111, #24201b);
}

.section-heading {
  margin-bottom: 38px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: #e9c995;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 4vw, 52px);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  color: var(--ink);
  background: rgba(247, 245, 240, 0.94);
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(16px);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  color: currentColor;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.72;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  color: var(--accent);
}

.site-nav a.is-active {
  opacity: 1;
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 999px;
  color: currentColor;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding-top: 150px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.26)),
    url("assets/amplifier-1.jpg") center / cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: end;
}

.hero-copy p:not(.eyebrow) {
  max-width: 670px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.hero-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card strong {
  font-size: 1.45rem;
}

.hero-card span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.content-card {
  max-width: 980px;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.image-grid,
.patent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.image-grid a,
.patent-grid a {
  overflow: hidden;
  border-radius: 28px;
  background: #ddd;
  box-shadow: var(--shadow);
}

.image-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.patent-grid {
  max-width: 820px;
}

.patent-grid img {
  height: min(64vw, 620px);
  object-fit: contain;
  padding: 16px;
  background: #fff;
}

.image-grid a:hover img {
  transform: scale(1.04);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.stat {
  min-height: 220px;
  padding: 26px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(17, 17, 17, 0.08);
}

.stat span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
}

.stat p {
  margin: 0;
  font-weight: 700;
}

.section-dark p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.section-dark h2 {
  margin-bottom: 34px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  font-weight: 700;
}

.contact-links a {
  color: var(--accent-dark);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--ink);
  background: #fbfaf7;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(154, 106, 47, 0.28);
  border-color: var(--accent);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  padding: 42px 0;
  color: #fff;
  background: #111;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.footer-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 84px 20px auto;
    display: grid;
    gap: 4px;
    padding: 20px;
    border-radius: 24px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px;
  }

  .hero-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 360px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid p {
    text-align: left;
  }

  .footer-grid nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 16px 14px;
  }

  .hero {
    min-height: 760px;
  }

  .image-grid,
  .patent-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 170px;
  }

  .patent-grid img {
    height: auto;
  }
}
