@font-face {
  font-family: "Helvetica Tiger";
  src: url("../fonts/Helvetica.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Tiger";
  src: url("../fonts/Helvetica-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Tiger";
  src: url("../fonts/Helvetica-Oblique.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

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

html {
  font-size: 19px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: #000;
  font-family: "Helvetica Tiger", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

img {
  display: block;
  max-width: 100%;
}

.site {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.375rem;
}

.site--scroll {
  align-items: flex-start;
  padding: 2.375rem 2.375rem 4rem;
}

.inner {
  width: min(77rem, 100%);
  padding: 4.75rem 3rem;
}

.logo {
  width: 5rem;
  margin-bottom: 3.875rem;
}

.page-header {
  margin: 0;
  padding: 0;
}

.page-header .page-title {
  margin: 0 0 2rem;
}

.back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: #0000ee;
  font-size: 1rem;
  line-height: 1.5;
}

.back:hover,
.back:active,
.back:focus-visible {
  text-decoration: underline;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li + li {
  margin-top: 0.75rem;
}

.nav a {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
}

.nav a:hover,
.nav a:active,
.nav a:focus-visible {
  color: #0000ee;
  text-decoration: underline;
}

.substack--inline {
  display: block;
  margin-top: 1.75rem;
  width: 1.25rem;
  height: 1.25rem;
  color: #000;
  opacity: 0.55;
}

.substack--inline svg {
  display: block;
  width: 100%;
  height: 100%;
}

.substack--inline:hover,
.substack--inline:focus-visible {
  opacity: 1;
  animation: substack-blink 0.8s step-start infinite;
}

@keyframes substack-blink {
  0%,
  49% {
    color: #0000ee;
  }

  50%,
  100% {
    color: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .substack--inline:hover,
  .substack--inline:focus-visible {
    animation: none;
    color: #0000ee;
  }
}

.page-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
  text-transform: lowercase;
}

.coming-soon {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.services {
  list-style: none;
  margin: 0 0 3.5rem;
  padding: 0;
  max-width: 40rem;
}

.services-item {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.services-item + .services-item {
  margin-top: 0.85rem;
}

.services-num {
  flex-shrink: 0;
  width: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: #000;
}

.services-name {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
}

.cal-wrap {
  min-height: 600px;
  width: 100%;
  max-width: 52rem;
  font-family: "Helvetica Tiger", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.cal-wrap iframe {
  color-scheme: light;
}

/* Testimony */

.testimony-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.testimony-case-studies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  align-items: start;
  width: 100%;
  /* match portfolio: page-title gap + "film" section-title block */
  margin-top: calc(clamp(2rem, 5vw, 3.5rem) * 0.95 + 2rem);
}

.testimony-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  margin-top: 2.5rem;
}

.testimony-row--triple {
  display: grid;
  grid-template-columns: repeat(3, 14rem);
  gap: 3.5rem;
  align-items: start;
  justify-content: center;
  width: 100%;
}

.testimony-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-align: center;
}

.testimony-case-studies .testimony-item {
  align-items: stretch;
  text-align: left;
}

.testimony-caption,
.testimony-byline {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.testimony-byline strong {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.video-btn {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.video-btn--case {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.video-btn--portrait {
  width: 14rem;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 0;
}

.video-btn img,
.video-btn video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-btn::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.video-btn.is-playing::after {
  display: none;
}

/* Screenshot testimonials — matches Carrd container10 */

.screenshot-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 44rem;
  width: 100%;
  margin-top: 3rem;
  align-items: start;
}

.screenshot-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

.screenshot-col img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.screenshot-caption {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.shot-w-2,
.shot-w-17 {
  max-width: 16.875rem;
}

.shot-w-5 {
  max-width: 16.75rem;
}

.shot-w-12 {
  max-width: 10.625rem;
}

.shot-w-16 {
  max-width: 12.375rem;
}

.shot-w-19 {
  max-width: 37.875rem;
}

.shot-w-18 {
  max-width: 22.5rem;
}

.shot-w-15 {
  max-width: 26.375rem;
}

.shot-w-4 {
  max-width: 15.25rem;
}

.shot-w-14 {
  max-width: 12.25rem;
}

.shot-w-6,
.shot-w-7 {
  max-width: 12.875rem;
}

.shot-w-8,
.shot-w-9 {
  max-width: 16rem;
}

/* Portfolio */

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 4rem 0 2rem;
  text-transform: lowercase;
}

.section-title:first-of-type {
  margin-top: 0;
}

.campaign-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 3rem 0 0.5rem;
  text-transform: lowercase;
}

.campaign-desc {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  max-width: 36rem;
}

.ai-video-unit {
  flex: 0 0 calc((100% - 3rem) / 3);
  width: calc((100% - 3rem) / 3);
  min-width: 0;
}

.ai-video-unit > .portfolio-preview,
.ai-video-unit > .embed-frame {
  width: 100%;
}

.ai-video-unit > .embed-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 1.5rem;
}

.portfolio-cell {
  display: grid;
  gap: 0.75rem;
}

.portfolio-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.portfolio-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
  pointer-events: none;
}

.portfolio-preview:hover .portfolio-overlay,
.portfolio-preview:focus-visible .portfolio-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.portfolio-play {
  font-size: 1.75rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.portfolio-preview:hover .portfolio-play,
.portfolio-preview:focus-visible .portfolio-play {
  opacity: 1;
}

.portfolio-preview video,
.portfolio-preview img,
.portfolio-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.portfolio-thumb.is-ready {
  opacity: 1;
}

.portfolio-poster--empty {
  display: block;
  width: 100%;
  height: 100%;
  background: #111;
}

@keyframes asset-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.asset-reveal {
  opacity: 0;
  animation: asset-fade-in 0.55s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .asset-reveal {
    animation: none;
    opacity: 1;
  }

  .portfolio-thumb {
    opacity: 1;
    transition: none;
  }

  .portfolio-play {
    opacity: 1;
    transition: none;
  }

  .portfolio-overlay {
    transition: none;
  }
}

.embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(56rem, 92vw);
}

.lightbox-close {
  position: absolute;
  top: -2.25rem;
  right: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.lightbox-content .embed-frame,
.lightbox-content video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}

.lightbox-content video {
  object-fit: contain;
}

body.lightbox-open {
  overflow: hidden;
}

.carousel {
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.carousel-viewport {
  overflow: hidden;
  min-width: 0;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.25s ease;
  will-change: transform;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: #0000ee;
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.carousel-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.carousel-btn:not(:disabled):hover,
.carousel-btn:not(:disabled):active,
.carousel-btn:not(:disabled):focus-visible {
  text-decoration: underline;
}

@media (max-width: 736px) {
  html {
    font-size: 17px;
  }

  .inner {
    padding: 3.5rem 2rem;
  }

  .logo {
    margin-bottom: 2.625rem;
  }

  .testimony-case-studies,
  .testimony-row--triple,
  .portfolio-grid,
  .screenshot-wall {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .testimony-row--triple {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .video-btn--portrait {
    width: min(14rem, 100%);
  }

  .ai-video-unit,
  .campaign-standalone .ai-video-unit {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    width: calc((100% - 1.5rem) / 2);
  }

  .carousel {
    grid-template-columns: 2.5rem 1fr 2.5rem;
  }

  .carousel-btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
    font-size: 2rem;
  }
}
