:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #fffbf0;
  --border: rgba(0, 0, 0, 0.06);
  --text: #000000;
  --muted: #666666;
  --accent: #f2b808;
  --accent-soft: rgba(242, 184, 8, 0.1);
  --radius: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: var(--accent);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
}

.brand img {
  width: 260px;
  height: auto;
  max-height: 34px;
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 2.2rem;
  height: 1.6rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 0.2rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #000000;
  border-radius: 999px;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto auto;
  right: 0;
  top: 0;
  width: min(320px, 100%);
  padding: 5rem 1.5rem 2rem;
  background: rgba(242, 184, 8, 0.97);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-nav.open {
  transform: translateX(0);
}

.site-nav a {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(0, 0, 0, 0.08);
  color: #ffffff;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    position: static;
    transform: none;
    flex-direction: row;
    padding: 0;
    width: auto;
    background: transparent;
    gap: 1.75rem;
  }
  .site-nav a {
    background: transparent;
    padding: 0;
  }
}

.section {
  padding: 4rem 0;
}

.section-hero {
  position: relative;
  min-height: 85vh;
  max-height: 100vh;
  padding: 0;
  background: #000000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: #ffffff;
  overflow: hidden;
}

.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08));
  pointer-events: none;
  z-index: 0;
}

.section-hero--small {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3rem 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  animation: fadeInUp 1s ease-out both;
  padding: 6rem 0 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.05;
  margin: 0 0 1.4rem;
  color: #ffffff;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions .button {
  min-width: 220px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1rem 1.7rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.button-primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.button-secondary {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: #ffffff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .section-hero {
    min-height: 92vh;
    background-position: top center;
  }

  .hero-copy {
    padding: 5rem 0 4rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
  }

  .hero-copy p {
    font-size: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-grid {
    padding: 2rem 0;
  }

  .hero-copy {
    padding: 4.5rem 0 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }
}

.section-intro {
  padding: 5rem 0;
  background: #ffffff;
}

.intro-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
}

.intro-text {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  line-height: 1.8;
  color: #000000;
  margin: 0;
  text-align: center;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  padding: 0 1rem;
}

.intro-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 60%;
  background: var(--accent);
  border-radius: 3px;
  display: none;
}

@media (max-width: 900px) {
  .section-intro {
    padding: 4rem 0;
  }

  .intro-text {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
  }
}

@media (max-width: 640px) {
  .section-intro {
    padding: 3rem 0;
  }

  .intro-text {
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 1.2rem;
  }
}

.hero-card {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  padding: 0.85rem 1rem;
}

.hero-panel {
  display: grid;
  gap: 0.7rem;
}

.hero-panel div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: #666666;
  font-size: 0.92rem;
  line-height: 1.4;
}

.hero-panel strong {
  color: #000000;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0.5rem 0 0;
  color: #000000;
}

.section-page-header {
  padding: clamp(5rem, 9vw, 7rem) 0 clamp(4.5rem, 8vw, 6rem);
  background: #ffffff;
}

.page-header-content {
  max-width: 800px;
  text-align: center;
}

.section-page-header .eyebrow {
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}

.section-page-header h1 {
  margin: 0;
  color: #000000;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
}

.section-page-header h1::after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  margin: 1.35rem auto 1.4rem;
  border-radius: 999px;
  background: var(--accent);
}

.section-page-header p {
  max-width: 700px;
  margin: 0 auto;
  color: #666666;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.75;
}

.align-center {
  text-align: center;
}

/* Alternating section backgrounds */
.section-features {
  background: #fffbf0;
}

.section-marquee {
  background: #ffffff;
}

.section-team {
  background: #fffbf0;
}

.section-testimonials {
  background: #ffffff;
}

.testimonial-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 4rem;
  align-items: center;
}

.testimonial-feature-copy {
  max-width: 30rem;
}

.testimonial-feature-copy .eyebrow {
  margin-bottom: 1rem;
  color: #f2b808;
  letter-spacing: 0;
}

.testimonial-feature-copy h2 {
  margin: 0;
  color: #000000;
  font-size: 2.75rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.testimonial-feature-copy > p {
  margin: 1.4rem 0 0;
  color: #666666;
  font-size: 1rem;
  line-height: 1.75;
}

.testimonial-cta {
  margin-top: 2rem;
  background: #f2b808;
  border: 2px solid #f2b808;
  color: #000000;
  box-shadow: 0 12px 28px rgba(242, 184, 8, 0.18);
}

.testimonial-cta:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.testimonial-cta:focus-visible {
  outline: 3px solid #f2b808;
  outline-offset: 4px;
}

.testimonial-feature-media {
  width: 100%;
  max-width: 400px;
  min-width: 0;
  margin: 0;
  justify-self: center;
}

.testimonial-feature-media video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}

.testimonial-feature-media figcaption {
  display: grid;
  gap: 0.15rem;
  margin-top: 1rem;
  padding-left: 0.2rem;
}

.testimonial-feature-media figcaption strong {
  color: #000000;
  font-size: 0.95rem;
}

.testimonial-feature-media figcaption span {
  color: #777777;
  font-size: 0.84rem;
}

.section-clients {
  background: #ffffff;
}

.section-portfolio {
  background: #ffffff;
}

.section-contact {
  background: #ffffff;
}

.section-social {
  background: #ffffff;
}

.feature-grid,
.team-grid,
.portfolio-grid,
.contact-grid,
.social-cards {
  display: grid;
  gap: 1.5rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 2.6rem 2.2rem;
  min-height: 240px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.feature-icon {
  display: block;
  margin: 0 0 1.8rem 0;
  align-self: flex-start;
  padding: 0;
}

.feature-icon img {
  display: block;
  max-height: 88px;
  width: auto;
}

@media (max-width: 1024px) {
  .feature-icon img {
    max-height: 78px;
  }
}

@media (max-width: 720px) {
  .feature-icon img {
    max-height: 64px;
  }
}

.feature-card h3 {
  margin: 0 0 1rem;
  color: #000000;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.marquee {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  padding: 1.2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 28s linear infinite;
  align-items: center;
  will-change: transform;
}

.marquee-track img {
  width: auto;
  height: auto;
  max-height: 72px;
  max-width: 140px;
  flex-shrink: 0;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

/* Slightly larger logos for visual balance */
.marquee-track img.tool--large {
  max-height: 96px;
}

@media (max-width: 720px) {
  .marquee-track img.tool--large {
    max-height: 80px;
  }
}

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

.team-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.team-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
  aspect-ratio: 3 / 4;
}

.team-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #f5f5f5, #efefef);
}

.team-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* vertical: bottom */
  align-items: flex-start;   /* horizontal: left */
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.88));
  color: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(100%);
  opacity: 0;
  text-align: left;
}

.team-card:hover .team-overlay,
.team-card:focus-within .team-overlay,
.team-card:active .team-overlay {
  transform: translateY(0);
  opacity: 1;
}

.team-overlay h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #ffffff;
}

.team-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.section-clients {
  padding-bottom: 5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666666;
  margin: 1rem 0 0 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Client Logo Rows */
.clients-row {
  margin: 1.5rem 0;
  overflow: hidden;
}

.clients-row:hover .marquee-track--clients {
  animation-play-state: paused;
}

.marquee-track--clients {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 0;
  animation: marquee-ltr 50s linear infinite;
  will-change: transform;
}

.marquee-track--clients img {
  width: auto;
  height: auto;
  max-height: 120px;
  max-width: 220px;
  flex-shrink: 0;
  object-fit: contain;
  filter: none;
  opacity: 1;
  line-height: 1;
}

/* Right-to-left animation for row 2 */
.marquee-track--reverse {
  animation: marquee-rtl 50s linear infinite;
}

@keyframes marquee-ltr {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-rtl {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 1024px) {
  .marquee-track--clients {
    gap: 1.5rem;
  }

  .marquee-track--clients img {
    max-height: 100px;
    max-width: 180px;
  }
}

@media (max-width: 720px) {
  .marquee-track--clients {
    gap: 1rem;
  }

  .marquee-track--clients img {
    max-height: 80px;
    max-width: 150px;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

.section-portfolio {
  padding-bottom: 6rem;
}

.portfolio-industries {
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
}

.portfolio-industry {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  padding: clamp(2.25rem, 4vw, 3.5rem) 0 clamp(2.75rem, 5vw, 4.25rem);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.portfolio-industry:first-child {
  border-top: 0;
  padding-top: 0;
}

.portfolio-industry-header {
  max-width: 760px;
}

.portfolio-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.portfolio-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.portfolio-industry-header h3 {
  margin: 0 0 0.85rem;
  color: #000000;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.portfolio-industry-header p {
  margin: 0;
  color: #666666;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.7;
}

.portfolio-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: start;
  justify-items: center;
}

.portfolio-video-grid--featured {
  gap: clamp(1.5rem, 3vw, 2rem);
}

.portfolio-video-card {
  position: relative;
  overflow: visible;
  width: fit-content;
  max-width: 100%;
  padding: clamp(0.45rem, 1vw, 0.75rem);
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.portfolio-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(242, 184, 8, 0.1);
}

.portfolio-video-card:hover,
.portfolio-video-card:focus-within {
  transform: scale(1.02);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.16);
}

.portfolio-video-card video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  background: #000000;
  border-radius: 16px;
}

.section-social .social-grid,
.section-contact .contact-grid {
  gap: 2rem;
}

.social-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1fr;
}

.social-panel {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.social-cards {
  display: grid;
  gap: 1rem;
}

.social-card {
  padding: 1.6rem;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.social-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.social-card h3 {
  margin: 0 0 0.75rem;
  color: #000000;
}

.social-card p {
  margin: 0;
  color: #666666;
}

.contact-grid {
  grid-template-columns: 1fr 1.1fr;
}

.contact-panel {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-info p {
  margin: 1.25rem 0 0;
  color: #666666;
}

.contact-form {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  display: grid;
  gap: 0.7rem;
  color: #000000;
  font-size: 0.95rem;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background: #ffffff;
  color: #000000;
  padding: 1rem 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 184, 8, 0.1);
}

.form-grid textarea {
  min-height: 160px;
  resize: vertical;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.contact-form .button-primary {
  min-width: 170px;
}

.contact-form .button-primary:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.form-status--success {
  border-color: rgba(242, 184, 8, 0.45);
  background: rgba(242, 184, 8, 0.1);
  color: #2b250c;
}

.form-status--error {
  border-color: rgba(176, 35, 35, 0.3);
  background: rgba(176, 35, 35, 0.07);
  color: #7d1c1c;
}

.final-cta {
  padding: 5.5rem 0;
  background: #000000;
  color: #ffffff;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.final-cta-copy {
  max-width: 760px;
}

.final-cta-eyebrow {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.final-cta h2 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.final-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.final-cta-button {
  flex: 0 0 auto;
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #000000;
  box-shadow: 0 14px 34px rgba(242, 184, 8, 0.18);
}

.final-cta-button:hover {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.12);
}

.final-cta-button:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4.5rem 0 3rem;
  background: #111111;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 0.95fr;
  gap: 0;
}

.footer-brand,
.footer-column {
  min-width: 0;
  padding-right: clamp(2rem, 4vw, 4rem);
}

.footer-column {
  padding-left: clamp(2rem, 4vw, 4rem);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0;
}

.footer-logo:hover,
.footer-logo:focus-visible {
  color: var(--accent);
}

.footer-grid h3 {
  margin: 0 0 1.2rem;
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-grid p {
  max-width: 31rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

.footer-grid .footer-copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
}

.footer-contact {
  display: grid;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
}

.footer-contact a,
.footer-nav a {
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-contact a:hover,
.footer-nav a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.5rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(242, 184, 8, 0.42);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000000;
}

@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    align-items: center;
  }
  .site-nav {
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    flex-direction: row;
  }
  .site-nav a {
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .container {
    width: min(1260px, calc(100% - 3rem));
  }
  .hero-visual {
    justify-self: end;
  }
  .marquee-track {
    gap: 3rem;
  }
}

@media (max-width: 899px) {
  .site-nav {
    max-width: 320px;
  }
  .hero-copy h1 {
    font-size: clamp(2.4rem, 6vw, 3.2rem);
  }
  .social-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-overlay {
    transform: translateY(0);
    opacity: 1;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.88));
  }
  .testimonial-feature {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .testimonial-feature-copy {
    max-width: 42rem;
  }
  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 3rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
  .footer-column {
    padding-left: 0;
    padding-right: 2rem;
    border-left: 0;
  }
  .footer-column + .footer-column {
    padding-left: 2rem;
    padding-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 600px) {
  .section {
    padding: 2.5rem 0;
  }
  .site-header {
    padding: 0 0 0.5rem;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .brand img {
    width: 205px;
    max-height: 28px;
  }
  .site-nav {
    width: 100%;
    right: 0;
  }
  .feature-grid,
  .portfolio-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-feature {
    gap: 2.25rem;
  }
  .testimonial-feature-copy h2 {
    font-size: 2rem;
  }
  .testimonial-cta {
    width: 100%;
  }
  .portfolio-industries {
    gap: 2.5rem;
  }
  .portfolio-industry {
    padding-bottom: 2.5rem;
  }
  .portfolio-video-grid,
  .portfolio-video-grid--featured {
    grid-template-columns: 1fr;
  }
  .portfolio-video-card {
    border-radius: 18px;
  }
  .team-card {
    aspect-ratio: 3 / 3.5;
  }
  .hero-card,
  .hero-panel,
  .contact-panel,
  .contact-form,
  .social-panel,
  .social-card {
    border-radius: 22px;
  }
  .final-cta {
    padding: 4rem 0;
  }
  .final-cta h2 {
    font-size: 2rem;
  }
  .final-cta-button {
    width: 100%;
  }
  .site-footer {
    padding: 3.5rem 0 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .footer-brand,
  .footer-column,
  .footer-column + .footer-column {
    grid-column: auto;
    padding: 0;
    border-left: 0;
  }
  .footer-column {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .footer-column + .footer-column {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* Mobile-only refinements. Desktop styles at 769px and above remain unchanged. */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    padding: 0;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    padding: 0.75rem 0;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.35);
  }

  .nav-toggle span {
    width: 100%;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    inset: auto 0 auto auto;
    top: calc(100% + 0.45rem);
    z-index: 30;
    width: min(280px, calc(100vw - 2rem));
    max-width: none;
    padding: 0.45rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

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

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0.65rem 0.8rem;
    border-radius: 6px;
    background: transparent;
    color: #000000;
    line-height: 1.2;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(242, 184, 8, 0.14);
    color: #000000;
  }

  .section-hero {
    min-height: 78vh;
    min-height: 78svh;
    background-size: cover;
    background-position: 60% center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: end;
    padding: 1.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    width: auto;
    margin-bottom: 4.5rem;
  }

  .hero-actions .button {
    width: auto;
    min-width: 190px;
    max-width: calc(100vw - 6rem);
    padding: 0.75rem 1.1rem;
    font-size: 0.9rem;
  }

  .hero-actions .button-primary {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
  }

  .hero-actions .button-secondary {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
  }

  .footer-contact,
  .footer-nav,
  .footer-social,
  .contact-form,
  .portfolio-video-card {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* Device-specific hero artwork. The desktop image remains unchanged above 1024px. */
@media (min-width: 768px) and (max-width: 1024px) {
  .section-hero {
    background-image: url("../images/hero/hero-mobile.jpeg") !important;
    background-color: #f2b808;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }
}

@media (max-width: 767px) {
  .section-hero {
    background-image: url("../images/hero/hero-mobile.jpeg") !important;
    background-color: #f2b808;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }
}
