*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 64px;
  padding: 64px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.brand p {
  margin: 0;
}

.brand-name {
  font-weight: 500;
  font-stretch: 112%;
  font-size: clamp(36px, 11vw, 150px);
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: #fff;
  text-rendering: geometricPrecision;
}

.brand-sub {
  font-weight: 600;
  font-size: clamp(12px, 1.6vw, 20px);
  letter-spacing: 0.6em;
  margin-right: -0.6em;
  text-transform: uppercase;
  color: #e0e0e0;
  opacity: 0.8;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: 24px 0 16px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 7.5vw, 112px);
  font-weight: 500;
  font-stretch: 112%;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-cta {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 32px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: #fff;
  color: #000;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero h1 .line > span {
  display: inline-block;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

.hero h1 .line:nth-child(2) > span {
  animation-delay: 0.08s;
}

.hero h1 .line:nth-child(3) > span {
  animation-delay: 0.16s;
}

.hero h1 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  font-size: 1.18em;
  letter-spacing: -0.01em;
}

.hero h1 .muted {
  color: #6f6f6f;
}

@keyframes rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .line > span {
    animation: none;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.work h2 {
  margin: 0 0 32px;
  color: #6f6f6f;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.case-video,
.case-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #0d0d0d;
}

.case-video {
  position: relative;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.case-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.case-video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-40%, -50%);
  opacity: 0.9;
}

.case-video:hover img,
.case-video:focus-visible img {
  opacity: 1;
  transform: scale(1.02);
}

.case-video:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

.case h3 {
  margin: 20px 0 6px;
  font-size: 20px;
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}

.case h3 span {
  margin-left: 8px;
  color: #6f6f6f;
  font-size: 14px;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: 0;
}

.case p {
  margin: 0;
  color: #8a8a8a;
  font-size: 15px;
  line-height: 1.5;
}

.cta {
  width: min(480px, 100%);
  margin: 0 auto -32px;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cta h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  font-size: 1.12em;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cta p {
  margin: 0;
  color: #8a8a8a;
  font-size: 15px;
  line-height: 1.5;
}

.contact {
  width: min(480px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #333;
  border-radius: 0;
  color: #fff;
  font: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.2s;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #666;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-bottom-color: #fff;
}

.contact button {
  align-self: flex-start;
  padding: 10px 28px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.contact button:hover,
.contact button:focus-visible {
  background: #fff;
  color: #000;
}

.contact button:disabled {
  opacity: 0.5;
  cursor: default;
}

.form-status {
  margin: -8px 0 0;
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: #ff6b6b;
}

.contact.is-sent input,
.contact.is-sent textarea,
.contact.is-sent button {
  display: none;
}

/* The reCAPTCHA badge is hidden; the required notice sits under the form. */
.grecaptcha-badge {
  visibility: hidden;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #0d0d0d;
  border: 1px solid #262626;
  color: #bdbdbd;
  font-size: 13px;
  line-height: 1.5;
}

.consent p {
  margin: 0;
  flex: 1;
}

.consent a {
  color: inherit;
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  gap: 8px;
}

.consent button {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #444;
  color: #fff;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.consent button.primary {
  background: #fff;
  border-color: #fff;
  color: #000;
}

@media (max-width: 480px) {
  .consent {
    flex-direction: column;
    align-items: stretch;
  }
}

.form-note {
  margin: -8px 0 0;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

.form-note a,
.legal a {
  color: inherit;
  text-underline-offset: 3px;
}

.form-note a:hover,
.legal a:hover {
  color: #fff;
}

.legal {
  width: min(680px, 100% - 32px);
  margin: 0 auto;
  padding: 64px 0 96px;
  color: #bdbdbd;
  font-size: 16px;
  line-height: 1.65;
}

.legal .back {
  display: inline-block;
  margin-bottom: 48px;
  color: #8a8a8a;
  font-size: 14px;
  text-decoration: none;
}

.legal h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.legal h2 {
  margin: 40px 0 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}

.legal .updated {
  margin: 0 0 32px;
  color: #666;
  font-size: 14px;
}

.legal ul {
  padding-left: 20px;
}

.legal li + li {
  margin-top: 8px;
}

.legal strong {
  color: #e0e0e0;
  font-weight: 600;
}

.book-call {
  width: min(640px, 100% - 32px);
  max-width: none;
  max-height: min(760px, 100dvh - 32px);
  padding: 0;
  border: 1px solid #333;
  background: #000;
  color: #fff;
  flex-direction: column;
}

.book-call[open] {
  display: flex;
}

/* .contact sets display:flex, which would otherwise override [hidden]. */
.book-call [hidden] {
  display: none;
}

.book-call-close:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

.book-call::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.book-call-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #222;
}

.book-call-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-call-close {
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.book-call-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 24px 32px;
}

.book-lede {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.book-tz {
  margin: 8px 0 24px;
  color: #8a8a8a;
  font-size: 14px;
}

.book-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.book-days::-webkit-scrollbar {
  height: 4px;
}

.book-days::-webkit-scrollbar-track {
  background: transparent;
}

.book-days::-webkit-scrollbar-thumb {
  background: #333;
}

.book-day {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 76px;
  padding: 10px 12px;
  border: 1px solid #333;
  background: transparent;
  color: #bdbdbd;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.book-day span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-day strong {
  font-size: 15px;
  font-weight: 500;
}

.book-day:hover,
.book-day:focus-visible,
.book-day[aria-pressed="true"] {
  border-color: #fff;
  color: #fff;
}

.book-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.book-slot {
  padding: 10px 0;
  border: 1px solid #333;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.book-slot:hover,
.book-slot:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.book-status {
  margin: 20px 0 0;
  color: #bdbdbd;
  font-size: 14px;
}

.book-status:empty {
  display: none;
}

.book-status.is-error {
  color: #ff6b6b;
}

.book-form {
  width: 100%;
}

.book-chosen {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}

.contact .book-change {
  margin-left: 8px;
  padding: 0;
  border: 0;
  color: #8a8a8a;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
}

.contact .book-change:hover,
.contact .book-change:focus-visible {
  background: transparent;
  color: #fff;
}

.book-done-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -0.03em;
}

.book-done-text {
  margin: 0;
  color: #bdbdbd;
  font-size: 15px;
  line-height: 1.5;
}

.book-call-alt {
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid #222;
  color: #8a8a8a;
  font-size: 14px;
}

.book-call-alt a {
  color: #fff;
}

@media (max-width: 480px) {
  .book-call {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border: 0;
  }

  .book-call-body {
    padding: 24px 16px 28px;
  }
}

/* Inner pages: services and case studies. Built from the homepage patterns. */

.page {
  justify-content: flex-start;
  gap: 72px;
}

.page .back {
  align-self: flex-start;
  color: #8a8a8a;
  font-size: 14px;
  text-decoration: none;
}

.page .back:hover,
.page .back:focus-visible {
  color: #fff;
}

.page-head {
  max-width: 880px;
}

.page-label {
  margin: 0 0 20px;
  color: #6f6f6f;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 500;
  font-stretch: 112%;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.page-head h1 span {
  display: block;
  margin-top: 12px;
  color: #6f6f6f;
  font-size: 0.42em;
  letter-spacing: -0.02em;
}

.page-head h1 em,
.page-cta h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  letter-spacing: -0.01em;
}

.page-head h1 em {
  font-size: 1.12em;
}

.page-lede {
  margin: 24px 0 0;
  max-width: 640px;
  color: #bdbdbd;
  font-size: 19px;
  line-height: 1.5;
}

.page-video .case-video,
.page-video .case-frame {
  max-width: 100%;
}

.page-section {
  max-width: 880px;
}

.page-section:has(.work-grid) {
  max-width: none;
}

.page-section > h2:not(.page-label) {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}

.page-section > p,
.page-section li {
  color: #bdbdbd;
  font-size: 17px;
  line-height: 1.6;
}

.page-section > p {
  margin: 0;
}

.page-section ul {
  margin: 0;
  padding-left: 20px;
}

.page-section li + li {
  margin-top: 8px;
}

.page-sources {
  margin-top: 16px !important;
  color: #666 !important;
  font-size: 13px !important;
}

.page-sources a,
.site-footer a,
.case h3 a {
  color: inherit;
  text-underline-offset: 3px;
}

.case h3 a {
  text-decoration: none;
}

.case h3 a:hover,
.case h3 a:focus-visible {
  text-decoration: underline;
}

.case-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0d0d;
}

.case-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.case-thumb:hover img,
.case-thumb:focus-visible img {
  opacity: 1;
  transform: scale(1.02);
}

.case-thumb:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

.case-more {
  display: inline-block;
  margin-top: 12px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.case-more:hover,
.case-more:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-item {
  padding-top: 20px;
  border-top: 1px solid #333;
}

.service-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}

.service-item h3 a {
  color: inherit;
  text-decoration: none;
}

.service-item h3 a:hover,
.service-item h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.service-item p {
  margin: 0;
  color: #8a8a8a;
  font-size: 15px;
  line-height: 1.5;
}

.faq {
  border-top: 1px solid #333;
}

.faq-item {
  border-bottom: 1px solid #333;
}

.faq-item summary {
  padding: 20px 32px 20px 0;
  position: relative;
  font-size: 18px;
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  color: #8a8a8a;
  font-size: 22px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

.faq-item p {
  margin: 0 0 20px;
  max-width: 720px;
  color: #bdbdbd;
  font-size: 16px;
  line-height: 1.6;
}

.page-cta {
  text-align: center;
}

.page-cta h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page-cta h2 em {
  font-size: 1.12em;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid #222;
  color: #666;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer nav a {
  color: #8a8a8a;
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: #fff;
}

.site-footer p {
  margin: 0;
}

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

  .page {
    gap: 56px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
