:root {
  --black: #030303;
  --charcoal: #0a0b0b;
  --ink: #111314;
  --line: rgba(232, 232, 224, 0.14);
  --text: #f2f0ea;
  --muted: #aaa8a1;
  --dim: #6f6e68;
  --warm: #d8c6ab;
  --ember: #b87546;
  --max: 112rem;
  --side: clamp(1.25rem, 4vw, 3.75rem);
  --display: "Avenir Next", "Neue Haas Grotesk Display", "Helvetica Neue", sans-serif;
  --body: "Avenir Next", "Neue Haas Grotesk Text", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 8%, rgba(184, 117, 70, 0.12), transparent 28rem),
    linear-gradient(180deg, #050606 0%, #020202 50%, #070707 100%);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

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

::selection {
  color: var(--black);
  background: var(--text);
}

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.018;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.1rem, 2.4vw, 2.2rem) var(--side);
  color: var(--text);
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.72), transparent);
}

.brand,
.site-nav,
.section-heading h2,
.text-link,
.contact h2,
.socials,
.footer-meta {
  font-family: var(--display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand {
  font-size: 1.35rem;
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 3.1rem);
  font-size: 0.72rem;
  font-weight: 500;
}

.site-nav a,
.socials a,
.text-link {
  position: relative;
  color: rgba(242, 240, 234, 0.88);
}

.site-nav a::after,
.socials a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.42rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms cubic-bezier(.2,.7,.1,1);
}

.site-nav a:hover::after,
.socials a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: center;
  padding: 7rem var(--side) 5rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-poster,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster {
  z-index: 0;
  object-position: 57% 13%;
  filter: brightness(0.88) contrast(1.02) saturate(0.8);
}

.hero-media video {
  z-index: 1;
  object-position: 57% 13%;
  filter: brightness(0.92) contrast(1.08) saturate(0.86);
  transform: scale(1.025);
  opacity: 0;
  animation: cinema-drift 18s ease-in-out infinite alternate;
  transition: opacity 480ms ease;
}

.hero-media video.is-ready {
  opacity: 1;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 34%, rgba(0, 0, 0, 0.08) 64%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(53rem, 100%);
  padding-top: clamp(3rem, 10vh, 7rem);
}

h1 {
  margin: 0;
  width: min(47rem, 100%);
  font-family: var(--display);
  font-size: 5.15rem;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.hero-copy {
  width: min(34rem, 100%);
  margin: clamp(1.4rem, 2.8vw, 2.2rem) 0 2.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reel-button {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.reel-label {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.reel-line {
  width: clamp(2.5rem, 7vw, 6.2rem);
  height: 1px;
  background: rgba(242, 240, 234, 0.5);
  transition: background 320ms ease;
}

.reel-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.1rem;
  height: 4.1rem;
  border: 1px solid rgba(242, 240, 234, 0.42);
  border-radius: 50%;
  transition: border-color 320ms ease, transform 320ms ease;
}

.reel-disc::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border-radius: inherit;
  border: 1px solid rgba(216, 198, 171, 0.14);
  animation: reel-pulse 2.8s ease-in-out infinite;
}

.play-mark {
  width: 0;
  height: 0;
  margin-left: 0.22rem;
  border-top: 0.48rem solid transparent;
  border-bottom: 0.48rem solid transparent;
  border-left: 0.72rem solid var(--text);
}

.reel-button:hover .reel-line {
  background: rgba(242, 240, 234, 0.78);
}

.reel-button:hover .reel-disc {
  border-color: rgba(242, 240, 234, 0.88);
  transform: scale(1.04);
}

.hero-index {
  position: absolute;
  right: var(--side);
  bottom: 3.4rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-index::before {
  content: "";
  width: 1px;
  height: 4rem;
  background: rgba(242, 240, 234, 0.35);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) var(--side);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2.1rem, 4vw, 4rem);
}

.rule {
  width: clamp(2.2rem, 5vw, 4.8rem);
  height: 1px;
  background: rgba(242, 240, 234, 0.46);
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 400;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  margin-top: clamp(2.1rem, 4vw, 4rem);
  margin-left: auto;
  font-size: 0.7rem;
}

.text-link::before {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: rgba(242, 240, 234, 0.42);
  order: 2;
}

.capabilities {
  padding-top: clamp(3.8rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.8rem, 7vw, 6.5rem);
}

.capabilities .section-heading {
  margin-bottom: 1.2rem;
}

.capabilities-header h2 {
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.4rem);
}

.capability-card {
  min-height: 12rem;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border: 1px solid rgba(242, 240, 234, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(10, 11, 11, 0.72);
  transition: border-color 320ms ease, background 320ms ease, transform 320ms ease;
}

.capability-card:hover {
  border-color: rgba(242, 240, 234, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(12, 13, 13, 0.84);
  transform: translateY(-0.18rem);
}

.capability-card span {
  display: block;
  margin-bottom: 2.2rem;
  color: var(--dim);
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.capability-card h3 {
  margin: 0 0 1rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.about {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(24rem, 1.28fr);
  gap: clamp(2.5rem, 7vw, 7.5rem);
  align-items: center;
}

.about-copy p {
  width: min(29rem, 100%);
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 300;
}

.about-copy .text-link {
  margin-left: 0;
}

.about-image {
  margin: 0;
  min-height: 28rem;
  overflow: hidden;
  border: 1px solid rgba(242, 240, 234, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    #080909;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.38);
}

.about-image picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: brightness(0.86) contrast(1.08) saturate(0.88);
}

.contact {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto minmax(16rem, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--side);
}

.contact h2 {
  margin-bottom: 1.9rem;
}

.email {
  display: inline-block;
  color: var(--muted);
  font-size: 0.94rem;
  letter-spacing: 0.08em;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem 2.5rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.footer-mark {
  color: rgba(242, 240, 234, 0.82);
  font-family: var(--display);
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: 0;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.66rem;
  text-align: right;
}

.footer-meta p {
  margin: 0.7rem 0 0;
}

.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: var(--side);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.reel-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.reel-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.reel-dialog {
  position: relative;
  z-index: 1;
  width: min(78rem, 100%);
  color: var(--text);
}

.reel-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reel-dialog h2,
.reel-close {
  margin: 0;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.reel-close {
  padding: 0.75rem 0;
  color: rgba(242, 240, 234, 0.86);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.reel-close:hover {
  color: var(--text);
}

.full-reel {
  display: block;
  width: 100%;
  max-height: 78vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--black);
  border: 1px solid rgba(242, 240, 234, 0.14);
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.72);
}

body.reel-open {
  overflow: hidden;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.7,.1,1);
}

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

@keyframes cinema-drift {
  from { transform: scale(1.025) translate3d(0, 0, 0); }
  to { transform: scale(1.065) translate3d(-1.2%, 0.8%, 0); }
}

@keyframes reel-pulse {
  0%, 100% { opacity: 0.18; transform: scale(0.94); }
  50% { opacity: 0.58; transform: scale(1.18); }
}

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

  .capability-card {
    min-height: 0;
  }

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

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.64rem;
  }

  .hero {
    min-height: 86svh;
    align-items: end;
    padding-bottom: 4.5rem;
  }

  .hero-media video {
    object-position: 61% 0%;
  }

  .hero-poster {
    object-position: 61% 0%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.2) 36%, rgba(0, 0, 0, 0.86) 100%);
  }

  h1 {
    width: calc(100vw - (var(--side) * 2));
    max-width: 100%;
    font-size: 2.1rem;
  }

  .capabilities-header h2 {
    font-size: 2.65rem;
  }

  .hero-index {
    display: none;
  }

  .contact {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-meta {
    text-align: left;
  }

  .reel-dialog {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: absolute;
    flex-direction: column;
  }

  .brand {
    font-size: 1rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 2rem;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .hero-copy {
    width: min(21rem, 100%);
    font-size: 0.68rem;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .reel-disc {
    width: 3.5rem;
    height: 3.5rem;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section {
    padding-top: 3rem;
  }

  .reel-modal {
    padding: 1rem;
  }

  .reel-dialog-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .full-reel {
    max-height: 64vh;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.82rem;
  }

  .site-nav {
    gap: 1.4rem;
    font-size: 0.54rem;
  }
}

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