:root {
  --ink: #151818;
  --muted: #687170;
  --paper: #f4f0e7;
  --white: #ffffff;
  --line: #d9ded9;
  --deep: #071b2d;
  --moss: #123b59;
  --clay: #194f78;
  --steel: #27698f;
  --sun: #1e6f9f;
  --sky: #56c7f2;
  --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: #07324d;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(244, 240, 231, 0.95);
  color: #07324d;
  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(--steel);
}

.site-header .brand,
.site-header .nav a {
  color: #07324d;
}

.hero {
  position: relative;
  display: grid;
  height: 92vh;
  min-height: 92vh;
  overflow: hidden;
  color: #07324d;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 92vh;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(1.28) contrast(1.14) brightness(1.08);
}

.hero-overlay {
  background:
    linear-gradient(135deg, rgba(5, 19, 32, 0.86), rgba(5, 19, 32, 0.18) 36%, rgba(5, 19, 32, 0.05) 60%),
    radial-gradient(circle at 100% 100%, rgba(5, 19, 32, 0.88), rgba(5, 19, 32, 0.44) 25%, transparent 48%),
    linear-gradient(0deg, rgba(5, 19, 32, 0.46), rgba(5, 19, 32, 0.02) 46%);
}

.hero-content {
  position: relative;
  display: grid;
  height: 92vh;
  min-height: 92vh;
  padding: clamp(76px, 6vw, 92px) clamp(24px, 5vw, 76px) clamp(34px, 4vw, 54px);
}

.hero-title-block {
  align-self: start;
  width: min(930px, 70vw);
}

.hero-aside {
  align-self: end;
  justify-self: end;
  width: min(560px, 42vw);
  margin-bottom: -42px;
  padding: 20px 26px 22px;
  background: rgba(5, 19, 32, 0.56);
  border-left: 3px solid var(--sky);
  backdrop-filter: blur(2px);
}

.hero-aside .hero-actions {
  margin: 0 0 16px;
}

.hero-caption {
  position: absolute;
  left: clamp(24px, 5vw, 76px);
  bottom: clamp(6px, 1vh, 12px);
  z-index: 2;
  width: min(560px, 100%);
  margin: 0;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(5, 19, 32, 0.38);
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.55;
  backdrop-filter: blur(2px);
  text-shadow: 0 1px 14px rgba(5, 19, 32, 0.52);
}

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

.hero .eyebrow {
  color: #155a84;
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.28);
}

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

h1 {
  max-width: 930px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 3.8vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 {
  color: #07324d;
  text-shadow: 0 1px 20px rgba(255, 255, 255, 0.42);
}

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: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.86rem, 1.04vw, 0.94rem);
  line-height: 1.58;
}

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

.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: #ffffff;
}

.button.secondary {
  color: inherit;
}

.hero-aside .button.secondary {
  color: #ffffff;
}

.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;
}

.consulting-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  gap: 1px;
  margin-top: clamp(24px, 4vw, 54px);
  border-top: clamp(10px, 1.4vw, 18px) solid var(--paper);
  height: clamp(220px, 28vw, 360px);
  overflow: hidden;
  background: var(--deep);
}

.consulting-visual-single {
  grid-template-columns: 1fr;
  height: clamp(250px, 36vw, 500px);
}

.consulting-visual figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--deep);
}

.consulting-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(1.06) contrast(1.05);
}

.consulting-visual .process-panel img {
  object-position: center;
}

.consulting-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 9px 12px;
  background: rgba(5, 19, 32, 0.72);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.service-band {
  display: grid;
  grid-template-columns: repeat(3, 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);
}

.review-sheet {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(38px, 6vw, 82px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px);
  overflow: hidden;
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(86, 199, 242, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 199, 242, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid rgba(86, 199, 242, 0.35);
  border-top: 8px solid var(--sky);
  box-shadow: var(--shadow);
}

.review-sheet-header {
  align-self: start;
}

.review-sheet .section-kicker {
  color: var(--sky);
}

.review-sheet h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  line-height: 1.02;
}

.review-sheet-header > p:last-child {
  max-width: 440px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.review-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.review-checklist li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.review-checklist span {
  color: var(--sky);
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.review-checklist h3 {
  margin: 0 0 3px;
  color: var(--white);
  font-size: 1.05rem;
}

.review-checklist p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.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 h2 + p {
  margin-top: clamp(24px, 2.5vw, 36px);
}

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

.chacao-gallery {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.chacao-gallery figure {
  position: relative;
  min-height: 340px;
  margin: 0;
  overflow: hidden;
  background: var(--deep);
}

.chacao-gallery img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.chacao-gallery figure:hover img {
  transform: scale(1.025);
}

.chacao-gallery figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 9px 11px;
  background: rgba(5, 19, 32, 0.74);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.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),
.real-photo-grid a:nth-child(7),
.real-photo-grid a:nth-child(8) {
  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);
}

.gallery-note {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
}

.photo-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 3px;
  padding: 42px 18px 16px;
  background: linear-gradient(transparent, rgba(5, 19, 32, 0.88));
  color: var(--white);
  pointer-events: none;
}

.photo-meta strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.photo-meta small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.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 {
    height: 96vh;
    min-height: 96vh;
  }

  .hero-content {
    min-height: 96vh;
    padding: 92px 16px 34px;
    gap: 22px;
  }

  .hero-title-block,
  .hero-aside,
  .hero-caption {
    width: min(100%, 680px);
    justify-self: start;
  }

  .hero-title-block {
    align-self: start;
  }

  .hero-aside {
    align-self: end;
    padding: 20px;
  }

  .hero-caption {
    align-self: end;
    order: 3;
  }

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

  .consulting-visual {
    grid-template-columns: 1fr;
    height: auto;
  }

  .consulting-visual figure {
    height: clamp(220px, 58vw, 340px);
  }

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

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

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

  .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),
  .real-photo-grid a:nth-child(7),
  .real-photo-grid a:nth-child(8) {
    grid-column: span 1;
  }

  .review-sheet {
    padding: 30px 22px;
  }

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

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .hero-aside {
    background: rgba(5, 19, 32, 0.66);
  }

  .button {
    width: 100%;
  }

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

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

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

  .chacao-gallery {
    grid-template-columns: 1fr;
  }

  .chacao-gallery figure,
  .chacao-gallery img {
    min-height: 380px;
  }

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

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