:root {
  --primary: oklch(37% 0.055 162);
  --primary-deep: oklch(23% 0.04 162);
  --primary-mid: oklch(46% 0.055 155);
  --accent: oklch(72% 0.07 74);
  --accent-deep: oklch(42% 0.07 70);
  --paper: oklch(95% 0.018 84);
  --surface: oklch(98% 0.016 84);
  --ink: oklch(24% 0.03 156);
  --muted: oklch(43% 0.025 156);
  --line: oklch(88% 0.02 84);
  --header-bg: oklch(95% 0.018 84 / 0.96);
  --primary-wash: oklch(37% 0.055 162 / 0.08);
  --primary-rule: oklch(37% 0.055 162 / 0.16);
  --surface-wash: oklch(98% 0.016 84 / 0.72);
  --shadow: oklch(23% 0.04 162 / 0.18);
  --shadow-soft: oklch(23% 0.04 162 / 0.08);
  --media-overlay: oklch(23% 0.04 162 / 0.84);
  --focus: oklch(72% 0.07 74);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(108deg, var(--primary-wash) 0 18rem, transparent 18rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

main,
section[id] {
  scroll-margin-top: 96px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--primary);
  color: var(--surface);
  font-weight: 700;
  text-decoration: none;
  transition: top 200ms ease;
}

.skip-link:focus-visible {
  top: 12px;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--primary);
  background: var(--header-bg);
  border-bottom: 1px solid var(--primary-rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 46px;
  height: 42px;
  object-fit: contain;
}

.nav {
  justify-self: center;
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  font-size: 0.92rem;
}

.nav a,
.nav-cta {
  text-decoration: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary);
}

.brand:focus-visible,
.nav a:focus-visible,
.nav-cta:focus-visible,
.button:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.nav-cta,
.button.primary {
  color: var(--surface);
  background: var(--primary);
}

.button.secondary {
  color: var(--primary);
  background: transparent;
}

.nav-cta:hover,
.button.primary:hover {
  background: var(--primary-mid);
}

.button.secondary:hover {
  background: var(--primary-wash);
}

.section-band {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(76px, 10vw, 132px) 0;
}

.hero {
  min-height: calc(100dvh - 78px);
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  position: relative;
}

.hero::after,
.intro::after,
.scale::before {
  content: "";
  position: absolute;
  width: 6px;
  background: var(--accent);
}

.hero::after {
  top: 13%;
  bottom: 13%;
  left: 47%;
}

.eyebrow,
.tag {
  margin: 0 0 16px;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--primary);
  font-family: Comfortaa, Avenir Next, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 28px;
  font-size: clamp(3rem, 6vw + 1rem, 5.9rem);
  line-height: 0.96;
  font-weight: 800;
}

h1 span,
h2 span {
  display: block;
  font-weight: 400;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5vw + 1rem, 5rem);
  line-height: 0.98;
}

h3 {
  color: var(--primary-deep);
  font-size: 1.8rem;
  line-height: 1.08;
}

p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-lead {
  max-width: 54ch;
  font-size: 1.28rem;
}

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

.hero-proof {
  max-width: 620px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-proof li {
  display: block;
  padding: 14px 0 14px 18px;
  color: var(--primary);
  border-block: 1px solid var(--primary-rule);
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hero-visual {
  min-width: 0;
}

.hero-copy,
.intro-copy,
.scale-copy,
.closing-copy {
  min-width: 0;
}

.logo-stage {
  min-height: min(72vh, 700px);
  display: grid;
  place-items: center;
  position: relative;
  perspective: 1100px;
}

.logo-orbit {
  width: min(48vw, 580px);
  aspect-ratio: 1;
  position: absolute;
  border: 1px solid var(--primary-rule);
  transform: rotateX(64deg) rotateZ(-24deg) scale(0.12);
  animation: aperture-pulse 1200ms cubic-bezier(0.18, 0.86, 0.18, 1) both;
}

.logo-orbit::before,
.logo-orbit::after {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid oklch(72% 0.07 74 / 0.34);
}

.logo-orbit::after {
  inset: 27%;
  background: var(--surface-wash);
}

.logo-rig {
  width: min(44vw, 520px);
  aspect-ratio: 990 / 909;
  position: relative;
  transform-style: preserve-3d;
  filter: drop-shadow(0 38px 36px var(--shadow));
  animation: rig-arrive 1200ms cubic-bezier(0.18, 0.86, 0.18, 1) both;
}

.logo-main,
.logo-glow,
.logo-piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.logo-main {
  z-index: 6;
  opacity: 0;
  animation: final-lock 1200ms cubic-bezier(0.18, 0.86, 0.18, 1) both;
}

.logo-glow {
  z-index: 1;
  opacity: 0.24;
  filter: blur(22px) saturate(0.84);
  transform: translate3d(4%, 4%, -80px) scale(0.94);
}

.logo-pieces {
  position: absolute;
  z-index: 4;
  inset: 0;
  transform-style: preserve-3d;
}

.logo-piece {
  opacity: 1;
  transform-origin: 54% 66%;
  will-change: transform, opacity, clip-path;
}

.piece-back {
  clip-path: polygon(0 0, 45% 0, 45% 100%, 0 100%);
  animation: assemble-back 1200ms cubic-bezier(0.18, 0.86, 0.18, 1) both;
}

.piece-word {
  clip-path: polygon(13% 4%, 91% 5%, 91% 21%, 13% 21%);
  animation: assemble-word 1200ms cubic-bezier(0.18, 0.86, 0.18, 1) 90ms both;
}

.piece-core {
  clip-path: polygon(19% 22%, 61% 22%, 61% 78%, 18% 78%);
  animation: assemble-core 1200ms cubic-bezier(0.18, 0.86, 0.18, 1) 160ms both;
}

.piece-right {
  clip-path: polygon(42% 22%, 91% 22%, 91% 100%, 42% 100%);
  animation: assemble-right 1200ms cubic-bezier(0.18, 0.86, 0.18, 1) 220ms both;
}

.piece-script {
  clip-path: polygon(8% 76%, 96% 76%, 96% 91%, 8% 91%);
  animation: assemble-script 1200ms cubic-bezier(0.18, 0.86, 0.18, 1) 320ms both;
}

.logo-scan {
  position: absolute;
  z-index: 7;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 42%, oklch(98% 0.016 84 / 0.7) 49%, transparent 56% 100%);
  mix-blend-mode: screen;
  transform: translateX(-128%);
  animation: scan 1600ms cubic-bezier(0.32, 0.7, 0.21, 1) 820ms both;
  pointer-events: none;
}

.intro,
.scale,
.closing {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.intro::after {
  top: 20%;
  bottom: 20%;
  left: 44%;
}

.intro-media {
  display: grid;
  gap: 22px;
}

.intro-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 42% center;
  box-shadow: 0 22px 60px var(--shadow-soft);
}

.intro-quote {
  color: var(--primary);
  font-family: Comfortaa, Avenir Next, sans-serif;
  font-size: 2.35rem;
  line-height: 1.12;
}

.intro-copy {
  padding-left: 42px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.project-card {
  min-height: 420px;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  color: var(--surface);
  isolation: isolate;
}

.project-card.large {
  grid-row: span 2;
}

.project-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, var(--media-overlay));
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card h3,
.project-card p {
  color: var(--surface);
}

.project-card .tag {
  color: var(--accent);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .wide {
  grid-column: span 2;
}

.gallery .tall {
  grid-row: span 2;
}

.scale {
  align-items: start;
}

.scale::before {
  top: 18%;
  bottom: 18%;
  left: 43%;
}

.scale-copy {
  position: sticky;
  top: 116px;
}

.keys {
  display: grid;
  gap: 16px;
}

.key {
  display: grid;
  gap: 10px;
  padding: 30px;
  background: var(--surface);
  border-top: 5px solid var(--primary);
  box-shadow: 0 22px 60px var(--shadow-soft);
}

.key span {
  color: var(--accent-deep);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.key h3 {
  margin: 8px 0 6px;
}

.key p {
  margin-bottom: 0;
  max-width: 60ch;
}

.video-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: stretch;
}

.video-card {
  margin: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.video-card video {
  width: 100%;
  flex: 1;
  min-height: 0;
  height: 460px;
  background: var(--primary-deep);
  object-fit: cover;
  display: block;
}

figcaption {
  margin-top: 12px;
  color: var(--primary);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.contact-copy h2 {
  max-width: 14ch;
}

.contact-direct {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.contact-direct a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-direct a:hover,
.contact-direct a:focus-visible {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border-top: 5px solid var(--primary);
  box-shadow: 0 22px 60px var(--shadow-soft);
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
}

.field label span {
  color: var(--accent-deep);
  margin-left: 2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--primary-rule);
  border-radius: 2px;
  font: inherit;
  font-size: 1rem;
}

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

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--primary);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--accent-deep);
}

.contact-helper {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-actions {
  grid-column: 1 / -1;
}

.contact-feedback {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  background: var(--primary-wash);
  color: var(--primary);
  border-left: 4px solid var(--primary);
  font-weight: 600;
}

.contact-feedback[data-state="error"] {
  background: oklch(72% 0.07 74 / 0.18);
  color: var(--accent-deep);
  border-left-color: var(--accent-deep);
}

.closing {
  min-height: 72dvh;
  padding-bottom: clamp(56px, 8vw, 96px);
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
}

.closing-copy {
  order: 2;
}

.closing-copy h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 3vw + 0.8rem, 3.2rem);
  line-height: 1.08;
}

.closing-logo {
  order: 1;
  width: 100%;
  max-width: 620px;
  justify-self: start;
  border-radius: 4px;
  box-shadow: 0 30px 80px var(--shadow);
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 54px;
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr;
  gap: clamp(28px, 5vw, 70px);
  border-top: 1px solid var(--primary-rule);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 54px;
  height: 50px;
  object-fit: contain;
}

.footer-brand p {
  margin-bottom: 0;
  color: var(--primary);
  font-weight: 800;
}

.footer-contact {
  display: grid;
  gap: 10px;
  font-style: normal;
}

.footer-contact a {
  color: var(--muted);
  line-height: 1.45;
}

.footer-contact a {
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-services li {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.45;
}

.reveal {
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(32px);
}

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

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

.fact-card {
  display: grid;
  gap: 10px;
  padding: 30px;
  background: var(--surface);
  border-top: 5px solid var(--primary);
  box-shadow: 0 22px 60px var(--shadow-soft);
  text-align: center;
}

.fact-number {
  color: var(--accent-deep);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}

.fact-card h3 {
  margin: 8px 0 6px;
  font-size: 1.2rem;
}

.fact-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  padding: 22px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
}

.faq-item summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.4;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  margin-left: 16px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-deep);
  transition: transform 200ms ease;
}

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

.faq-item p {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

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

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

  .faq-item {
    padding: 18px 20px;
  }
}

@keyframes rig-arrive {
  0% {
    transform: scale(2.7) translate3d(-4%, 7%, 240px) rotateX(10deg);
  }
  42% {
    transform: scale(1.64) translate3d(-1%, 3%, 120px) rotateX(5deg);
  }
  100% {
    transform: scale(1) translate3d(0, 0, 0) rotateX(0);
  }
}

@keyframes final-lock {
  0%,
  78% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes assemble-back {
  0% {
    opacity: 1;
    transform: translate3d(48%, 42%, 220px) scale(0.08) rotateZ(-12deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateZ(0);
  }
}

@keyframes assemble-word {
  0% {
    opacity: 1;
    transform: translate3d(35%, 68%, 230px) scale(0.07) rotateZ(8deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateZ(0);
  }
}

@keyframes assemble-core {
  0% {
    opacity: 1;
    transform: translate3d(18%, 28%, 260px) scale(0.1) rotateZ(10deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateZ(0);
  }
}

@keyframes assemble-right {
  0% {
    opacity: 1;
    transform: translate3d(-26%, 24%, 240px) scale(0.09) rotateZ(-8deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateZ(0);
  }
}

@keyframes assemble-script {
  0% {
    opacity: 1;
    transform: translate3d(2%, -34%, 210px) scale(0.08);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes aperture-pulse {
  0% {
    opacity: 1;
    transform: rotateX(64deg) rotateZ(-24deg) scale(0.12);
  }
  42% {
    opacity: 1;
    transform: rotateX(64deg) rotateZ(-24deg) scale(0.58);
  }
  100% {
    opacity: 1;
    transform: rotateX(64deg) rotateZ(-24deg) scale(1);
  }
}

@keyframes scan {
  0% {
    transform: translateX(-128%);
  }
  44%,
  100% {
    transform: translateX(128%);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-self: start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .intro,
  .scale,
  .closing,
  .contact,
  .contact-form,
  .site-footer,
  .project-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero::after,
  .intro::after,
  .scale::before {
    display: none;
  }

  .logo-stage {
    min-height: 52vh;
  }

  .logo-rig {
    width: min(82vw, 420px);
  }

  .logo-orbit {
    width: min(88vw, 460px);
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 4rem;
  }

  h3 {
    font-size: 1.5rem;
  }

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

  .intro-quote {
    font-size: 2.25rem;
  }

  .intro-copy {
    padding-left: 0;
  }

  .scale-copy {
    position: static;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 190px;
  }

  .closing-logo {
    width: min(78vw, 420px);
  }

  .site-footer {
    gap: 22px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
    gap: 10px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.85rem;
  }

  .nav {
    gap: 18px;
    font-size: 0.88rem;
  }

  .section-band {
    width: min(100% - 28px, var(--max));
    padding: 62px 0;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .intro-quote {
    font-size: 2.35rem;
  }

  .hero-proof,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery .wide,
  .gallery .tall {
    grid-column: auto;
    grid-row: auto;
  }

  .project-card {
    min-height: 360px;
  }
}

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

  .reveal,
  .reveal.reveal-armed {
    opacity: 1;
    transform: none;
  }
}
