:root {
  --ink: #111318;
  --muted: #5d6573;
  --line: rgba(17, 19, 24, 0.12);
  --paper: #f5f2ea;
  --white: #ffffff;
  --charcoal: #111318;
  --ember: #d94b2b;
  --gold: #f2b84b;
  --teal: #13a89e;
  --green: #74b72e;
  --shadow: 0 24px 70px rgba(17, 19, 24, 0.18);
  --font-serif: "Cambria Math", Cambria, Georgia, "Times New Roman", serif;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-serif);
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 10px 18px 10px 30px;
  color: var(--white);
  background: rgba(17, 19, 24, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  min-width: 350px;
  min-height: 60px;
  font-family: var(--font-ui);
  font-weight: 760;
  text-decoration: none;
}

.header-logo {
  width: 340px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 14px rgba(242, 184, 75, 0.24));
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 180ms ease;
}

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

.section-dark {
  color: var(--white);
  background: var(--charcoal);
}

.section-light {
  background: var(--paper);
}

.hero {
  position: relative;
  min-height: clamp(720px, 86svh, 900px);
  overflow: hidden;
  padding: clamp(130px, 15svh, 170px) max(24px, calc((100vw - 1120px) / 2)) clamp(42px, 6svh, 58px);
  isolation: isolate;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 19, 24, 0.9), rgba(17, 19, 24, 0.52) 48%, rgba(17, 19, 24, 0.18)),
    linear-gradient(0deg, rgba(17, 19, 24, 0.7), rgba(17, 19, 24, 0.12));
}

.hero-content {
  width: min(760px, 100%);
  animation: rise-in 800ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 4.35rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0;
}

.accent-text {
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.hero-copy {
  max-width: 610px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.58;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-weight: 760;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button.primary {
  color: var(--charcoal);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.solutions,
.work,
.contact,
.feature-band {
  padding-inline: max(24px, calc((100vw - 1120px) / 2));
}

.hero-partners {
  width: min(1120px, 100%);
  margin-top: clamp(28px, 4.5svh, 44px);
  animation: rise-in 900ms 120ms ease both;
}

.hero-partners > p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 760;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 42px;
}

.section-heading.compact {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 20px;
}

.section-heading h2,
.feature-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.feature-copy p,
.contact p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.partner-card {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.partner-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-4px);
}

.partner-card img {
  width: 116px;
  height: 42px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  object-fit: contain;
}

.partner-card h3,
.solution-card h3,
.work-main h3,
.product-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.18;
}

.partner-card h3 {
  font-family: var(--font-ui);
  font-size: 0.96rem;
  font-weight: 760;
}

.partner-card p,
.solution-card p,
.work-main p,
.product-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.partner-card p {
  color: rgba(255, 255, 255, 0.72);
}

.solutions,
.work {
  padding-top: 104px;
  padding-bottom: 104px;
}

.solutions {
  overflow: hidden;
}

.solutions-header {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 42px;
}

.solutions-header .section-heading {
  margin-bottom: 0;
}

.solution-showcase {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(26px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.solution-showcase.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.solution-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.22), transparent 70%);
  transform: translateX(-100%);
  animation: scan-sweep 5.5s ease-in-out infinite;
}

.solution-showcase img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.solution-showcase span {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: var(--white);
  background: rgba(17, 19, 24, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 780;
  backdrop-filter: blur(12px);
}

.solution-showcase span:nth-of-type(1) {
  top: 24px;
  left: 24px;
}

.solution-showcase span:nth-of-type(2) {
  top: 122px;
  right: 26px;
}

.solution-showcase span:nth-of-type(3) {
  bottom: 26px;
  left: 74px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.solution-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(17, 19, 24, 0.08);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.solution-card::after {
  content: "";
  position: absolute;
  inset: auto 28px 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms ease;
}

.solution-card:hover::after {
  transform: scaleX(1);
}

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

.solution-card > img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.solution-card:hover > img {
  transform: scale(1.05);
}

.solution-card > div {
  padding: 24px 28px 30px;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  padding-top: 94px;
  padding-bottom: 94px;
}

.feature-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 1.02;
  object-fit: cover;
  animation: slow-pan 14s ease-in-out infinite alternate;
}

.feature-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.metrics {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
}

.metrics div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.metrics dt {
  color: var(--gold);
  font-weight: 850;
}

.metrics dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.work-main,
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(17, 19, 24, 0.08);
}

.work-main {
  overflow: hidden;
}

.work-main img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.work-main div,
.product-card {
  padding: 28px;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
}

.product-list {
  display: grid;
  gap: 14px;
}

.product-card.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 500ms ease,
    transform 500ms ease,
    box-shadow 220ms ease;
}

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

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 24px;
  color: var(--ember);
  font-weight: 780;
  text-decoration: none;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
  background:
    linear-gradient(rgba(17, 19, 24, 0.86), rgba(17, 19, 24, 0.9)),
    url("https://images.unsplash.com/photo-1485827404703-89b55fcc595e?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.contact p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.contact-link {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  padding: 0 20px;
  color: var(--charcoal);
  background: var(--gold);
  border-radius: 8px;
  font-family: var(--font-ui);
  font-weight: 820;
  text-decoration: none;
}

.social-placeholders {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 12px;
}

.social-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid rgba(242, 184, 75, 0.76);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  font-family: var(--font-ui);
  font-size: 1.06rem;
  font-weight: 820;
  line-height: 1;
}

.social-icon img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(24px, calc((100vw - 1120px) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: #090a0d;
  font-size: 0.92rem;
}

.footer-logo {
  width: min(260px, 45vw);
  aspect-ratio: 1.75;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slow-pan {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.09) translateX(-2%);
  }
}

@keyframes scan-sweep {
  0%,
  42% {
    transform: translateX(-120%);
  }
  78%,
  100% {
    transform: translateX(120%);
  }
}

@media (min-width: 1440px) {
  .hero-content {
    width: min(820px, 100%);
  }

  h1 {
    font-size: clamp(3rem, 4.2vw, 4.6rem);
  }

  .hero-copy {
    font-size: 1.18rem;
  }
}

@media (max-width: 880px) {
  .site-header {
    top: 10px;
    align-items: center;
    padding-left: 22px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .brand {
    min-width: 278px;
  }

  .header-logo {
    width: 278px;
  }

  .hero {
    min-height: 90svh;
    padding-top: 148px;
  }

  .section-heading.compact,
  .feature-band,
  .work-layout,
  .contact,
  .solutions-header {
    grid-template-columns: 1fr;
  }

  .partner-strip,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .solution-card {
    min-height: 250px;
  }

  .contact-link {
    width: fit-content;
  }

  .contact-actions {
    align-items: flex-start;
  }

  .social-placeholders {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
    width: calc(100% - 20px);
    min-height: 62px;
    padding: 8px 12px 8px 18px;
  }

  .brand {
    font-size: 0.95rem;
    min-width: 260px;
    min-height: 48px;
  }

  .header-logo {
    width: 260px;
    max-height: 54px;
  }

  .nav {
    display: none;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3.55rem);
  }

  .hero {
    padding-inline: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .solutions,
  .work,
  .contact,
  .feature-band,
  .footer {
    padding-inline: 18px;
  }

  .work-main img {
    height: 280px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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