/* ==========================================================================
   A440 Sound — Design tokens
   ========================================================================== */

:root {
  /* Color */
  --stage: #121214;
  --stage-2: #1b1b1e;
  --stage-line: rgba(255, 255, 255, 0.14);
  --paper: #f3efe5;
  --paper-2: #eae3d3;
  --paper-line: rgba(23, 24, 27, 0.13);
  --ink: #17181b;
  --smoke: #86827b;
  --smoke-on-stage: #9b9a97;
  --cream: #f3efe5;
  --amber: #e8a33a;
  --amber-strong: #f0b158;
  --amber-dim: #b97c22;

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ==========================================================================
   Typography helpers
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: "";
  width: 0.9em;
  height: 1px;
  background: currentColor;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 0.6em;
}

.section-head p {
  margin-top: 1rem;
  color: var(--smoke);
  font-size: 1.05rem;
  max-width: 52ch;
}

section[data-theme="stage"] .section-head p {
  color: var(--smoke-on-stage);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
    border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--amber);
  color: var(--stage);
}

.btn-primary:hover {
  background: var(--amber-strong);
}

.btn-ghost-dark {
  border-color: var(--stage-line);
  color: var(--paper);
}

.btn-ghost-dark:hover {
  border-color: var(--amber);
  color: var(--amber-strong);
}

.btn-ghost-light {
  border-color: var(--paper-line);
  color: var(--ink);
}

.btn-ghost-light:hover {
  border-color: var(--amber-dim);
  color: var(--amber-dim);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 1.35rem;
  transition: padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(243, 239, 229, 0.92);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.site-header.is-scrolled {
  padding-block: 0.85rem;
  border-color: var(--paper-line);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 35px;
  width: auto;
}

.brand-logo-dark {
  display: none;
}

.site-header.is-scrolled .brand-logo-light {
  display: none;
}

.site-header.is-scrolled .brand-logo-dark {
  display: block;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.1rem);
}

.nav-links a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.85;
  position: relative;
  padding-block: 0.3rem;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.site-header.is-scrolled .nav-links a:not(.btn) {
  color: var(--ink);
  opacity: 0.78;
}

.nav-links a:not(.btn):hover {
  opacity: 1;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--amber);
  transition: right 0.3s var(--ease);
}

.nav-links a:not(.btn):hover::after {
  right: 0;
}

.nav-group {
  position: relative;
}

.nav-group-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-caret {
  width: 9px;
  height: 6px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.nav-dropdown a:not(.btn)[aria-current="page"] {
  color: var(--amber);
  opacity: 1;
}

@media (min-width: 901px) {
  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.9rem;
    padding: 0.5rem;
    background: var(--paper);
    border: 1px solid var(--paper-line);
    border-radius: var(--radius);
    box-shadow: 0 22px 44px -18px rgba(18, 18, 20, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    z-index: 80;
  }

  .nav-dropdown::before {
    content: "";
    position: absolute;
    top: -0.9rem;
    left: 0;
    right: 0;
    height: 0.9rem;
  }

  .nav-group:hover .nav-dropdown,
  .nav-group:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .nav-group:hover .nav-caret,
  .nav-group:focus-within .nav-caret {
    transform: rotate(180deg);
  }

  .nav-dropdown a:not(.btn) {
    color: var(--ink);
    opacity: 0.82;
    padding: 0.55rem 0.75rem;
    white-space: nowrap;
    border-radius: var(--radius);
  }

  .nav-dropdown a:not(.btn)::after {
    display: none;
  }

  .nav-dropdown a:not(.btn):hover {
    opacity: 1;
    background: var(--paper-2);
  }
}

@media (max-width: 900px) {
  .nav-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-caret {
    width: 12px;
    height: 8px;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding-left: 1rem;
    border-left: 1px solid var(--paper-line);
  }

  .nav-links.is-open .nav-dropdown a:not(.btn) {
    font-size: 1.05rem;
    color: var(--ink);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  margin-right: -0.4rem;
  position: relative;
  z-index: 95;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--ink);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem var(--gutter);
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease);
    z-index: 90;
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-links.is-open a:not(.btn) {
    font-size: 1.4rem;
    color: var(--ink);
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav-toggle span {
    background: var(--ink);
  }
}

@media (min-width: 901px) {
  .nav-primary {
    display: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 2vw, 2.1rem);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--stage);
  color: var(--paper);
  padding-top: clamp(8.5rem, 16vw, 11.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/large-event-production-crew.jpg");
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 82% 0%, rgba(232, 163, 58, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(15, 15, 16, 0.78) 0%, rgba(15, 15, 16, 0.72) 45%, rgba(15, 15, 16, 0.92) 100%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.hero-freq {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(243, 239, 229, 0.65);
  text-transform: uppercase;
}

.hero-freq strong {
  color: var(--amber-strong);
}

.hero-body {
  position: relative;
  max-width: 880px;
  margin-top: 1.75rem;
}

.hero-body h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 45pt;
  line-height: 1.03;
  letter-spacing: -0.015em;
}

.hero-body h1 em {
  font-style: normal;
  color: var(--amber-strong);
}

.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(243, 239, 229, 0.78);
  max-width: 56ch;
}

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Waveform signature */

.waveform {
  margin-top: clamp(2.75rem, 6vw, 4rem);
  position: relative;
  width: 100%;
  max-width: 720px;
}

.waveform svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.waveform path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-wave 2.2s var(--ease) 0.4s forwards;
}

@keyframes draw-wave {
  to {
    stroke-dashoffset: 0;
  }
}

.waveform-bars rect {
  fill: var(--amber);
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleY(0);
  animation: grow-bar 0.5s var(--ease) forwards;
}

@keyframes grow-bar {
  to {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .waveform path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .waveform-bars rect {
    animation: none;
    transform: scaleY(1);
  }
}

/* Hero production tag */

.hero-frame-tag {
  display: inline-block;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: rgba(18, 18, 20, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid var(--stage-line);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}

.hero-frame-tag span {
  color: var(--amber-strong);
}

/* ==========================================================================
   Section shells
   ========================================================================== */

section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

section[data-theme="stage"] {
  background: var(--stage);
  color: var(--paper);
}

section[data-theme="paper"] {
  background: var(--paper);
  color: var(--ink);
}

section[data-theme="paper-2"] {
  background: var(--paper-2);
  color: var(--ink);
}

section[data-theme="paper"] .eyebrow,
section[data-theme="paper-2"] .eyebrow {
  color: var(--amber-dim);
}

section[data-theme="amber"] {
  background: var(--amber);
  color: var(--stage);
}

/* ==========================================================================
   About
   ========================================================================== */

#about {
  position: relative;
  overflow: hidden;
}

#about > .container {
  position: relative;
  z-index: 1;
}

.bg-dots-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .bg-dots-canvas {
    display: none;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-copy p {
  font-size: 1.08rem;
  color: var(--ink);
  max-width: 54ch;
}

.about-copy p + p {
  margin-top: 1.1rem;
}

.about-copy .section-head {
  margin-bottom: 1.5rem;
}

.about-cta {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.about-media {
  position: relative;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--amber-dim);
  border-radius: var(--radius);
  z-index: -1;
}

.about-media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(18, 18, 20, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.about-media:hover .about-media-frame {
  transform: translateY(-4px);
  box-shadow: 0 40px 70px -20px rgba(18, 18, 20, 0.4);
}

.about-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}

.service-card {
  background: var(--paper-2);
  padding: clamp(1.75rem, 3vw, 2.4rem) clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background-color 0.35s var(--ease);
}

.service-card:hover {
  background: var(--paper);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--amber);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.service-card p {
  color: var(--smoke);
  font-size: 0.96rem;
  flex-grow: 1;
}

.service-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  opacity: 0.85;
}

.service-card:hover .service-link {
  color: var(--amber-dim);
  opacity: 1;
}

.service-link svg {
  width: 0.95em;
  height: 0.95em;
  transition: transform 0.3s var(--ease);
}

.service-card:hover .service-link svg {
  transform: translateX(3px);
}

.services-foot {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Partners
   ========================================================================== */

.partners {
  padding-block: clamp(3rem, 5vw, 4rem);
}

.partners-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.partners-inner .section-head {
  margin-bottom: 0;
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.partner-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
}

.partner-list li img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}


/* ==========================================================================
   Who we serve
   ========================================================================== */

.serve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}

.serve-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink);
}

.serve-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.serve-card:hover img {
  transform: scale(1.06);
}

.serve-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 18, 20, 0.88) 0%, rgba(18, 18, 20, 0.15) 55%, rgba(18, 18, 20, 0) 75%);
}

.serve-card::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  width: 22px;
  height: 2px;
  background: var(--amber);
  z-index: 2;
  transition: width 0.3s var(--ease);
}

.serve-card:hover::before {
  width: 38px;
}

.serve-card h3 {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 2.2rem;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--paper);
}

.serve-card-more h3 {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--amber-strong);
}

.serve-card-more h3 svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.serve-card-more:hover h3 svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Gallery preview
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 18, 20, 0.82) 0%, rgba(18, 18, 20, 0) 45%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.gallery-item span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover::after,
.gallery-item:hover span {
  opacity: 1;
  transform: translateY(0);
}

.gallery-foot {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 11, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0s;
}

.lightbox-figure {
  position: relative;
  width: min(88vw, 1100px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  transform: scale(0.97);
  transition: transform 0.3s var(--ease);
}

.lightbox.is-open .lightbox-figure {
  transform: scale(1);
}

.lightbox-figure img {
  display: block;
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-caption {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stage-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  top: -3rem;
  right: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 18px;
  height: 18px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.lightbox-prev {
  left: clamp(-3.5rem, -4vw, -1rem);
}

.lightbox-next {
  right: clamp(-3.5rem, -4vw, -1rem);
}

@media (max-width: 720px) {
  .lightbox-figure {
    width: 92vw;
  }

  .lightbox-close {
    top: -2.8rem;
  }

  .lightbox-prev {
    left: 0.25rem;
  }

  .lightbox-next {
    right: 0.25rem;
  }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta-band {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 50% 100%, rgba(23, 24, 27, 0.1), transparent 65%);
  pointer-events: none;
}

.cta-band .eyebrow {
  color: var(--stage);
}

.cta-inner {
  position: relative;
  max-width: 620px;
  margin-inline: auto;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin-top: 0.8em;
  color: var(--stage);
}

.cta-band p {
  margin-top: 1.1rem;
  color: rgba(23, 24, 27, 0.72);
  font-size: 1.05rem;
}

.cta-band .btn {
  margin-top: 2.2rem;
}

.cta-band .btn-primary {
  background: var(--stage);
  color: var(--paper);
}

.cta-band .btn-primary:hover {
  background: var(--stage-2);
}

.cta-band .waveform {
  margin-inline: auto;
  margin-top: 3rem;
}

.cta-band .waveform-bars rect {
  fill: var(--stage);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--paper-2);
  color: var(--ink);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  border-top: 1px solid var(--paper-line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-brand img {
  height: 28px;
  width: auto;
  filter: invert(1);
}

.footer-brand p {
  margin-top: 1.1rem;
  color: var(--smoke);
  font-size: 0.95rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.82;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.footer-col a:hover {
  opacity: 1;
  color: var(--amber-dim);
}

.footer-bottom {
  border-top: 1px solid var(--paper-line);
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--smoke);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero {
  background: var(--stage);
  color: var(--paper);
  padding-top: clamp(8.5rem, 16vw, 11rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 85% 0%, rgba(232, 163, 58, 0.16), transparent 60%);
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-top: 0.5em;
  max-width: 20ch;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--amber-strong);
}

.page-hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(243, 239, 229, 0.78);
  max-width: 58ch;
}

.name-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  color: var(--amber-dim);
}

/* ==========================================================================
   Team
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.team-card {
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stage);
  color: var(--amber-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

img.team-avatar {
  object-fit: cover;
  object-position: top;
}

.team-lead .team-avatar {
  background: var(--amber);
  color: var(--stage);
}

.team-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-dim);
}

.team-card p {
  color: var(--smoke);
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Service detail pages
   ========================================================================== */

.about-grid.is-reverse .about-copy {
  order: 2;
}

.about-grid.is-reverse .about-media::before {
  inset: 18px 18px -18px -18px;
}

.about-grid + .about-grid {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin: 1.75rem 0 0.85rem;
}

.spec-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.spec-list li {
  position: relative;
  padding-left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 0.6rem;
  height: 0.6rem;
  border: 1.5px solid var(--amber-dim);
  border-radius: 50%;
}

.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.service-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.service-nav a:hover {
  border-color: var(--amber-dim);
  color: var(--amber-dim);
}

.service-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

@media (max-width: 860px) {
  .about-grid.is-reverse .about-copy {
    order: 0;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-top {
    grid-template-columns: 1.2fr repeat(2, 1fr);
  }

  .footer-col:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 480px;
    margin-inline: auto;
  }

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

  .partner-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

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

  .partner-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1.4rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-dim);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber-dim);
  box-shadow: 0 0 0 3px rgba(185, 124, 34, 0.15);
}

.contact-form .btn {
  justify-self: start;
}

.contact-form .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--amber-dim);
  background: rgba(185, 124, 34, 0.08);
  border-radius: var(--radius);
}

.form-status.is-error {
  border-left-color: #b3402e;
  background: rgba(179, 64, 46, 0.08);
}

.contact-aside {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.5rem;
}

.contact-aside .contact-block h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 0.5rem;
}

.contact-aside a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.contact-aside a:hover {
  color: var(--amber-dim);
}

.contact-aside p {
  color: var(--smoke);
  font-size: 0.98rem;
}

/* FAQ */

.faq-list {
  max-width: 780px;
  margin-inline: auto;
  border-top: 1px solid var(--paper-line);
}

.faq-item {
  border-bottom: 1px solid var(--paper-line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 2.5rem 1.4rem 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 1.7rem;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--amber-dim);
  border-bottom: 2px solid var(--amber-dim);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item .faq-answer {
  padding: 0 2.5rem 1.6rem 0;
  color: var(--smoke);
  font-size: 1.02rem;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
