@import url("./base.css");

@media (min-width: 1121px) {
  .header-shell {
    grid-template-columns: 220px 1fr auto;
  }

  .brand {
    width: 220px;
  }
}

.hero-v4 .hero-content {
  padding-bottom: 220px;
}

.hero-v4 .hero-belief {
  max-width: 30em;
  line-height: 1.55;
}

.hero-proof {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 132px;
  padding-inline: max(32px, calc((100vw - var(--content)) / 2));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #fff;
  background: rgba(9, 24, 39, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.hero-proof > span {
  padding: 24px 28px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  align-items: end;
  column-gap: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-proof > span:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-proof small {
  grid-column: 1 / -1;
  align-self: start;
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-proof strong {
  color: var(--accent);
  font-size: clamp(2.1rem, 3.4vw, 3.15rem);
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 1;
}

.hero-proof strong em {
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.32em;
  font-style: normal;
  letter-spacing: 0;
}

.hero-proof b {
  padding-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.strength {
  background: var(--paper);
}

.strength-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.strength-intro .chapter {
  grid-column: 1 / 4;
  margin-top: 12px;
}

.strength-intro h2 {
  grid-column: 4 / 12;
  max-width: 10em;
  font-size: clamp(3.5rem, 6vw, 5.8rem);
  font-weight: 720;
  letter-spacing: -0.07em;
}

.mobile-phrase {
  display: inline;
}

.strength-ledger {
  margin-top: clamp(78px, 9vw, 128px);
  border-top: 1px solid var(--line);
}

.strength-ledger article {
  min-height: 168px;
  padding: 30px 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.52fr) minmax(220px, 0.78fr) minmax(0, 1.7fr);
  align-items: center;
  column-gap: clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.strength-ledger article > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.strength-ledger h3 {
  font-size: clamp(1.75rem, 2.5vw, 2.65rem);
  font-weight: 680;
  letter-spacing: -0.055em;
}

.strength-ledger p {
  max-width: 38em;
  color: var(--muted);
  font-size: 16px;
}

.product-heading h2 > span {
  display: block;
}

.product-support {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.product-support span {
  min-height: 150px;
  padding: 34px 30px;
  display: grid;
  align-content: center;
  gap: 12px;
  border-right: 1px solid var(--line);
}

.product-support span:last-child {
  border-right: 0;
}

.product-support i {
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.product-support strong {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.045em;
}

.production {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(56px, 7vw, 100px);
  background: #e6e9e7;
}

.production-copy h2 {
  max-width: 9em;
  margin-top: 30px;
  font-size: clamp(3.4rem, 5.5vw, 5.4rem);
  font-weight: 720;
  letter-spacing: -0.07em;
}

.production-copy h2 span {
  white-space: nowrap;
}

.production-copy > p:not(.chapter) {
  max-width: 31em;
  margin-top: 30px;
  color: var(--muted);
  font-size: 16px;
}

.production-steps {
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.production-steps span {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 650;
}

.production-steps i {
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.production-media {
  position: relative;
  --reveal-cover: #e6e9e7;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: #fff;
  background: var(--navy-deep);
}

.production-still,
.production-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.56) contrast(1.04) brightness(0.92);
  transform: scale(1.06);
}

.production-media video {
  opacity: 0;
  transition: opacity 240ms ease;
}

.production-media.is-playing video {
  opacity: 1;
}

.production-media::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 56%, rgba(9, 24, 39, 0.7));
  content: "";
}

.production-media figcaption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.video-toggle {
  display: none;
}

.js .video-toggle {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(9, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.js .video-toggle:hover,
.js .video-toggle:focus-visible {
  color: var(--navy-deep);
  background: #fff;
}

.digital-v4 .digital-copy {
  padding-bottom: 250px;
}

.digital-v4 .digital-rail {
  grid-template-columns: repeat(3, 1fr);
}

.service-v4 {
  padding-bottom: 0;
}

.service-v4__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.service-v4__intro .chapter {
  grid-column: 1 / 4;
  margin-top: 12px;
}

.service-v4__intro h2 {
  grid-column: 4 / 11;
  max-width: 10em;
  font-size: clamp(3.4rem, 5.7vw, 5.6rem);
  font-weight: 720;
  letter-spacing: -0.07em;
}

.service-v4__intro h2 span {
  display: block;
}

.service-v4__intro > p:last-child {
  grid-column: 8 / 13;
  margin-top: 48px;
  padding-left: 24px;
  color: var(--muted);
  border-left: 1px solid var(--accent);
  font-size: 17px;
}

.service-v4__body {
  margin-top: clamp(80px, 9vw, 132px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(64px, 10vw, 150px);
  align-items: start;
}

.service-metric {
  position: sticky;
  top: calc(var(--header-height) + 44px);
  padding: 42px 0 48px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.service-metric small {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.service-metric strong {
  display: block;
  margin-top: 28px;
  color: var(--navy);
  font-size: clamp(5.2rem, 9vw, 8.6rem);
  font-weight: 730;
  letter-spacing: -0.09em;
  line-height: 0.86;
}

.service-metric > span {
  display: block;
  margin-top: 24px;
  font-size: 21px;
  font-weight: 650;
}

.service-metric p {
  max-width: 30em;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}

.service-v4 .service-list {
  margin-top: 0;
}

.service-v4 .service-list li {
  padding-block: 40px 44px;
}

.service-v4 .service-list h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.service-v4 .service-list p {
  font-size: 15px;
}

body.dialog-open {
  overflow: hidden;
}

.consult-dialog {
  width: min(780px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  border: 0;
  background: transparent;
}

.consult-dialog::backdrop {
  background: rgba(5, 15, 25, 0.76);
  backdrop-filter: blur(10px);
}

.consult-dialog__panel {
  position: relative;
  padding: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 48px;
  background: var(--paper-white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 32px 90px rgba(5, 15, 25, 0.34);
}

.consult-dialog[open] .consult-dialog__panel {
  animation: consult-dialog-in 220ms ease-out both;
}

.consult-dialog__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.consult-dialog__close span {
  margin-top: -2px;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.consult-dialog__eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.consult-dialog__copy h2 {
  max-width: 7em;
  margin-top: 20px;
  color: var(--navy-deep);
  font-size: clamp(2.35rem, 4.4vw, 3.65rem);
  font-weight: 720;
  letter-spacing: -0.065em;
}

.consult-dialog__copy > p:not(.consult-dialog__eyebrow) {
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}

.consult-dialog__copy .consult-dialog__hint {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.consult-dialog__qr {
  padding: 20px 20px 16px;
  display: grid;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.consult-dialog__qr span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-align: center;
}

@keyframes consult-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-proof {
    padding-inline: 24px;
  }

  .hero-proof > span {
    padding-inline: 18px;
  }

  .strength-intro .chapter,
  .service-v4__intro .chapter {
    grid-column: 1 / 5;
  }

  .strength-intro h2,
  .service-v4__intro h2 {
    grid-column: 4 / 13;
  }

  .service-v4__intro > p:last-child {
    grid-column: 6 / 13;
  }

  .production {
    gap: 56px;
  }

  .production-media {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 640px) {
  .hero-v4 {
    min-height: 900px;
  }

  .hero-v4 .hero-content {
    min-height: 770px;
    padding-bottom: 188px;
  }

  .hero-v4 .hero-belief {
    max-width: 18em;
  }

  .hero-proof {
    min-height: 130px;
    padding-inline: 20px;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-proof > span,
  .hero-proof > span:first-child {
    min-height: 65px;
    padding: 10px 12px;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-proof > span:nth-child(2n) {
    border-right: 0;
  }

  .hero-proof > span:nth-child(3),
  .hero-proof > span:nth-child(4) {
    border-bottom: 0;
  }

  .hero-proof small {
    display: none;
  }

  .hero-proof strong {
    font-size: 27px;
  }

  .hero-proof b {
    font-size: 11px;
  }

  .strength-intro,
  .service-v4__intro {
    display: block;
  }

  .strength-intro h2,
  .service-v4__intro h2 {
    margin-top: 28px;
    font-size: clamp(3rem, 14vw, 4rem);
  }

  .service-v4__intro > p:last-child {
    margin-top: 38px;
    padding-left: 18px;
  }

  .mobile-phrase {
    display: block;
  }

  .strength-ledger article {
    min-height: 0;
    padding-block: 28px 32px;
    grid-template-columns: 44px 1fr;
    align-items: start;
    gap: 10px 14px;
  }

  .strength-ledger article > span {
    grid-row: 1 / 3;
    padding-top: 7px;
  }

  .strength-ledger h3 {
    font-size: 25px;
  }

  .strength-ledger p {
    font-size: 14px;
  }

  .product-heading h2 {
    font-size: clamp(2.5rem, 10.6vw, 3rem);
    letter-spacing: -0.055em;
  }

  .product-support {
    display: block;
  }

  .product-support span {
    min-height: 126px;
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .production {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 68px;
  }

  .production-copy h2 {
    font-size: clamp(2.85rem, 12.2vw, 3.8rem);
  }

  .production-media {
    width: calc(100% + 48px);
    margin-left: -24px;
    aspect-ratio: 4 / 3;
  }

  .production-media figcaption {
    padding-inline: 18px;
  }

  .js .video-toggle {
    top: 12px;
    right: 12px;
    min-height: 38px;
    padding-inline: 13px;
    font-size: 11px;
  }

  .digital-v4 {
    min-height: 850px;
  }

  .digital-v4 .digital-copy {
    padding-bottom: 360px;
  }

  .digital-v4 .digital-rail {
    grid-template-columns: 1fr;
  }

  .digital-v4 .digital-rail span {
    min-height: 108px;
    padding-block: 18px;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .digital-v4 .digital-rail span:last-child {
    border-bottom: 0;
  }

  .digital-v4 .digital-rail i {
    grid-row: 1 / 3;
  }

  .digital-v4 .digital-rail strong {
    font-size: 22px;
  }

  .service-v4__body {
    margin-top: 72px;
    display: block;
  }

  .service-metric {
    position: static;
  }

  .service-v4 .service-list {
    margin-top: 58px;
  }

  .service-v4__intro h2,
  .closing h2 {
    font-size: clamp(2.7rem, 11.5vw, 3.2rem);
    letter-spacing: -0.055em;
  }

  .consult-dialog {
    width: calc(100vw - 28px);
    max-height: calc(100dvh - 28px);
  }

  .consult-dialog__panel {
    max-height: calc(100dvh - 28px);
    padding: 34px 24px 24px;
    grid-template-columns: 1fr;
    gap: 24px;
    overflow-y: auto;
  }

  .consult-dialog__copy {
    padding-right: 38px;
  }

  .consult-dialog__copy h2 {
    margin-top: 12px;
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .consult-dialog__copy > p:not(.consult-dialog__eyebrow) {
    margin-top: 15px;
    font-size: 14px;
  }

  .consult-dialog__copy .consult-dialog__hint {
    padding-top: 14px;
    font-size: 12px;
  }

  .consult-dialog__qr {
    width: min(68vw, 280px);
    justify-self: center;
    padding: 14px 14px 12px;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .production-still,
  .production-media video {
    transform: none;
  }

  .consult-dialog[open] .consult-dialog__panel {
    animation: none;
  }
}
