:root {
  --ink: #151818;
  --muted: #687170;
  --paper: #f4f0e7;
  --white: #ffffff;
  --line: #d9ded9;
  --deep: #071b2d;
  --moss: #123b59;
  --clay: #2d74a8;
  --steel: #3b88b6;
  --sun: #67c7f0;
  --mist: #e8eef2;
  --shadow: 0 24px 80px rgba(7, 27, 45, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

img,
iframe {
  display: block;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(244, 240, 231, 0.95);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(21, 24, 24, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--sun);
  color: #07131d;
  font-size: 0.82rem;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  font-size: 0.95rem;
  font-weight: 720;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 92vh;
  object-fit: cover;
}

.hero-overlay {
  background:
    radial-gradient(circle at 84% 18%, rgba(103, 199, 240, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(5, 19, 32, 0.94), rgba(5, 19, 32, 0.66) 45%, rgba(5, 19, 32, 0.12)),
    linear-gradient(0deg, rgba(5, 19, 32, 0.52), rgba(5, 19, 32, 0.04) 42%);
}

.hero-content {
  align-self: end;
  width: min(880px, calc(100% - 36px));
  margin: 0 0 clamp(48px, 7vw, 84px) clamp(18px, 6vw, 80px);
  padding-top: 120px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 870;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 6.7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3.3vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

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

.button,
.ghost-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  cursor: pointer;
  font-weight: 820;
  line-height: 1.1;
  transition:
    transform 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.button {
  padding: 12px 18px;
  background: transparent;
}

.button.primary {
  border-color: var(--sun);
  background: var(--sun);
  color: #07131d;
}

.button.secondary {
  color: inherit;
}

.ghost-link {
  margin-top: 12px;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  color: var(--sun);
}

.button:hover,
.ghost-link:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.ghost-link:focus-visible,
.project-tab:focus-visible,
.close-dialog:focus-visible,
.nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.section,
.timeline-section,
.contact,
.scale-section,
.project-lab,
.service-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 104px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: end;
}

.intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.service-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: clamp(64px, 9vw, 104px);
  background: var(--line);
}

.service-band article {
  min-height: 220px;
  padding: 26px;
  background: var(--white);
}

.service-band span {
  display: block;
  margin-bottom: 34px;
  color: var(--steel);
  font-weight: 850;
}

.service-band p {
  margin-bottom: 0;
  color: var(--muted);
}

.metrics {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.metrics article {
  min-height: 160px;
  padding: 26px;
  background: var(--white);
}

.metrics strong {
  display: block;
  color: var(--steel);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 650;
}

.chacao-feature {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1px;
  margin: clamp(18px, 4vw, 34px) auto 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.chacao-image {
  min-height: 560px;
  background: var(--deep);
}

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

.chacao-copy {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
  background: var(--white);
}

.chacao-copy p:not(.section-kicker) {
  color: var(--muted);
}

.chacao-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.films-section {
  overflow: hidden;
}

.film-rail {
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) repeat(2, minmax(230px, 0.72fr));
  gap: 18px;
}

.film-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--deep);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(21, 24, 24, 0.04);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.film-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(16, 35, 38, 0.14);
}

.film-card.is-large {
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.film-card.is-large img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.film-card.is-large div {
  padding: 28px;
}

.film-card p {
  color: rgba(255, 255, 255, 0.76);
}

.film-card p:last-child {
  margin-bottom: 0;
}

.tag {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-lab {
  border-top: 1px solid var(--line);
}

.lab-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.project-tabs {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
}

.project-tab {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-weight: 760;
}

.project-tab.is-active {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--white);
}

.project-panels {
  min-height: 620px;
}

.project-panel {
  display: none;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(21, 24, 24, 0.03);
}

.project-panel.is-active {
  display: block;
}

.project-panel h3 {
  max-width: 860px;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}

.project-panel p {
  max-width: 880px;
  color: var(--muted);
  font-size: 1.03rem;
}

.project-panel .button {
  margin-top: 14px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 10px;
  border: 1px solid var(--line);
  background: var(--line);
}

.insight-grid div {
  padding: 18px;
  background: var(--mist);
}

.insight-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--steel);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.insight-grid p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.94rem;
}

.scale-section {
  border-top: 1px solid var(--line);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.comparison-card {
  min-height: 430px;
  padding: 28px;
  background: var(--white);
}

.comparison-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.comparison-card strong {
  display: block;
  margin-bottom: 24px;
  color: var(--deep);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1;
}

.comparison-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-strip img {
  width: 100%;
  height: clamp(230px, 30vw, 390px);
  object-fit: cover;
}

.drive-gallery {
  border-top: 1px solid var(--line);
}

.real-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.real-photo-grid a {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: var(--mist);
}

.real-photo-grid a:first-child,
.real-photo-grid a:nth-child(4) {
  grid-column: span 2;
}

.real-photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.real-photo-grid a:hover img {
  transform: scale(1.035);
  filter: contrast(1.04) saturate(1.03);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-bottom: 44px;
  padding: clamp(34px, 5vw, 58px);
  background: var(--moss);
  color: var(--white);
}

.contact p:not(.section-kicker) {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.video-dialog {
  width: min(1120px, calc(100% - 28px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}

.video-dialog::backdrop {
  background: rgba(7, 12, 14, 0.78);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #071012;
  box-shadow: var(--shadow);
}

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.dialog-top h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.8rem);
}

.close-dialog {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-weight: 760;
}

#dialog-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.footer {
  display: flex;
  width: min(1180px, calc(100% - 36px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 26px 0 42px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a {
  color: var(--steel);
  font-weight: 750;
}

@media (max-width: 1020px) {
  .film-rail,
  .comparison-grid,
  .service-band {
    grid-template-columns: 1fr;
  }

  .film-card.is-large {
    grid-row: auto;
  }

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

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero,
  .hero-image {
    min-height: 96vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 46px;
  }

  .intro,
  .contact,
  .metrics,
  .lab-layout,
  .chacao-feature,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .chacao-image,
  .chacao-copy {
    min-height: 0;
  }

  .chacao-image img {
    aspect-ratio: 4 / 3;
  }

  .project-tabs {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .project-panels {
    min-height: 0;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .real-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .real-photo-grid a:first-child,
  .real-photo-grid a:nth-child(4) {
    grid-column: span 1;
  }

  .metrics article {
    min-height: 120px;
  }

  .contact {
    padding: 30px 22px;
  }
}

@media (max-width: 560px) {
  .button {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .project-tabs {
    grid-template-columns: 1fr;
  }

  .real-photo-grid {
    grid-template-columns: 1fr;
  }

  .film-card.is-large img {
    height: 250px;
  }

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