/* =========================
   Components
   ========================= */

/* Hero */

.hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

.hero > picture {
  position: absolute;
  inset: 0;
}

.hero > picture img {
  position: absolute;
  inset: -2px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-15) var(--pad-x);
}

.hero__symbol {
  position: relative;
  width: clamp(152px, 18vw, 224px);
  margin-bottom: 0;
}

.hero__intro {
  max-width: 44ch;
  margin: calc(var(--space-2) * -1) 0 0;
  font-size: var(--fs-sm);
  line-height: var(--leading-sm);
}

.hero__content > a {
  margin-top: var(--space-3);
  font-size: 0.78em;
  line-height: var(--space-2);
}

/* Statement block */

.statement {
  text-align: center;
}

.statement h2 {
  margin-bottom: var(--space-2);
  font-size: 3.5rem;
  line-height: var(--leading-xl);
  word-spacing: -0.05em;
}

.statement p {
  max-width: 44ch;
  margin: 0 auto var(--space-2);
  font-size: var(--fs-sm);
  line-height: var(--leading-sm);
}

.statement a {
  display: inline-block;
  line-height: var(--space-2);
}

/* Media */

.media {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.media__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #000;
}

.media__button {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: inline-grid;
  place-items: center;
  width: calc(var(--grid) * 4);
  height: calc(var(--grid) * 4);
  border: 0;
  border-radius: 0;
  background: transparent;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.media__button::before {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-38%, -50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid rgba(255,255,255,0.92);
}

.media__button:hover {
  transform: translate(-50%, -50%);
}

.media__button:focus-visible {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 4px;
}

.media.is-playing .media__button {
  opacity: 0;
  pointer-events: none;
}

/* Logo grid */

.logo-grid {
  text-align: center;
}

.logo-grid__eyebrow {
  max-width: var(--measure-copy-wide);
  margin: 0 auto var(--space-4);
  color: var(--muted);
  line-height: var(--leading-sm);
  letter-spacing: normal;
  text-transform: none;
}

.logo-grid__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

.logo-grid__item {
  display: grid;
  place-items: center;
}

.logo-grid__logo {
  display: block;
  width: 100%;
}

.logo-grid__logo--mono-audio {
  margin: 0 auto;
  object-fit: contain;
}

/* Portfolio */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.portfolio-intro h2 {
  font-size: 3.5rem;
  line-height: var(--leading-xl);
}

.portfolio-intro p {
  font-size: 20px;
  line-height: var(--leading-sm);
  max-width: 44ch;
  margin: 0 auto;
  text-align: center;
}

.project-card__image {
  aspect-ratio: 0.6 / 1;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__image--placeholder {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.project-card__placeholder-label {
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-xs);
  line-height: var(--space-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card__meta {
  padding-top: var(--space-3);
  display: grid;
  gap: var(--space-1);
  font-family: 'OmenSans', system-ui, sans-serif;
  font-size: var(--fs-xs);
  line-height: var(--space-2);
  letter-spacing: 0.003em;
  font-variant-numeric: lining-nums tabular-nums;
}

.project-card__title {
  margin: 0;
  font-family: 'OmenSans', system-ui, sans-serif;
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
  letter-spacing: 0.003em;
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: auto;
  text-wrap: pretty;
}

.project-card__submeta {
  margin: 0;
  max-width: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-feature-settings: inherit;
  color: rgba(255,255,255,0.55);
}

/* Service strips */

.service-strip {
  position: relative;
  width: 100%;
  height: clamp(160px, 20svh, 224px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
  --service-overlay-opacity: 0.52;
  --service-image-x: 0px;
  --service-image-y: 0px;
  --service-image-scale: 1.06;
  --service-content-y: 0px;
  --service-title-y: 0px;
  --service-deck-y: 14px;
  --service-deck-opacity: 0;
}

.service-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.26) 0%,
      rgba(0, 0, 0, 0.42) 52%,
      rgba(0, 0, 0, 0.56) 100%
    );
  opacity: var(--service-overlay-opacity);
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
}


.service-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translate3d(var(--service-image-x), var(--service-image-y), 0) scale(var(--service-image-scale));
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-strip__content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  width: min(100%, 72ch);
  padding: var(--space-4) var(--space-6);
  text-align: center;
  transform: translate3d(0, var(--service-content-y), 0);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-strip__title {
  font-family: 'OmenSerif';
  font-size: 3rem;
  line-height: 40px;
  text-shadow: none;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: geometricPrecision;
  transform: translate3d(0, var(--service-title-y), 0);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-strip__deck {
  margin: 0;
  max-width: 56ch;
  font-family: 'OmenSans', system-ui, sans-serif;
  font-size: 15px;
  line-height: calc(var(--space-2) + 2px);
  letter-spacing: 0.003em;
  opacity: var(--service-deck-opacity);
  transform: translate3d(0, var(--service-deck-y), 0);
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-strip:is(:hover, :focus-visible, .is-active) {
  --service-overlay-opacity: 0.78;
  --service-image-scale: 1.11;
  --service-content-y: -2px;
  --service-title-y: -8px;
  --service-deck-y: 0px;
  --service-deck-opacity: 1;
}

.service-strip:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .service-strip {
    height: clamp(168px, 22svh, 208px);
  }

  .service-strip__content {
    width: min(100%, 52ch);
    padding: var(--space-4);
  }

  .service-strip__title {
    font-size: clamp(2.2rem, 8vw, 2.8rem);
    line-height: 1.05;
  }

  .service-strip__deck {
    max-width: 32ch;
    font-size: 13px;
    line-height: var(--space-2);
  }
}

/* Podcast */

.podcast {
  text-align: center;
}

.podcast__title {
  font-size: 3rem;
  line-height: var(--leading-lg);
  margin-bottom: var(--space-4);
}

.podcast__deck {
  width: min(100%, 82ch);
  max-width: none;
  margin: 0 auto;
  display: grid;
  gap: 0;
  line-height: var(--leading-sm);
  text-wrap: pretty;
}

.podcast__deck span {
  display: block;
  white-space: nowrap;
}

.podcast-player {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-3);
}

.podcast-player__play {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: calc(var(--grid) * 4);
  height: calc(var(--grid) * 4);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.podcast-player__play::before {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid rgba(255,255,255,0.92);
}

.podcast-player__play:hover:not(:disabled) {
  transform: translateX(1px);
}

.podcast-player__play:focus-visible {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 4px;
}

.podcast-player.is-playing .podcast-player__play::before {
  width: 10px;
  height: 12px;
  border: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.92) 0 3px,
      transparent 3px 7px,
      rgba(255,255,255,0.92) 7px 10px
    );
  transform: translate(-50%, -50%);
}

.podcast-player--disabled .podcast-player__play,
.podcast-player__play:disabled {
  opacity: 0.45;
  cursor: default;
}

.podcast-player .podcast-icons {
  margin-bottom: 0;
}

.podcast-player__controls {
  display: grid;
  gap: var(--space-2);
}

.podcast-player__transport {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.podcast-player__track {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: var(--space-1);
  padding: 0;
  border: 0;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  overflow: hidden;
}

.podcast-player__track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(255,255,255,0.92);
  border-radius: inherit;
  transition: width 120ms linear;
}

.podcast-player__track:disabled {
  cursor: default;
}

.podcast-player__track:focus-visible {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 4px;
}

.podcast-player__audio {
  display: none;
}

.podcast-player.is-playing .podcast-icons span {
  animation: podcast-signal 900ms ease-in-out infinite;
}

.podcast-player.is-playing .podcast-icons span:nth-child(2) {
  animation-delay: 120ms;
}

.podcast-player.is-playing .podcast-icons span:nth-child(3) {
  animation-delay: 240ms;
}

.podcast-player.is-playing .podcast-icons span:nth-child(4) {
  animation-delay: 360ms;
}

@keyframes podcast-signal {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .podcast-player.is-playing .podcast-icons span {
    animation: none;
  }

  .podcast-player__track-fill {
    transition: none;
  }
}

/* Contact */

#contact,
.contact {
  text-align: center;
}

.contact {
  display: grid;
  align-content: center;
}

.contact__content {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  max-width: 78ch;
  margin: 0 auto;
}

.contact__eyebrow {
  margin: 0;
}

.contact__meta {
  width: min(100%, 84ch);
  max-width: none;
  margin: 0 auto;
  display: grid;
  gap: 0;
  line-height: var(--leading-sm);
  text-align: center;
  text-wrap: pretty;
}

.contact__meta span {
  display: block;
  white-space: nowrap;
}

.contact a {
  display: inline-block;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  font-size: 3rem;
  line-height: 40px;
  font-family: 'OmenSerif';
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: geometricPrecision;
}

@media (max-width: 767px) {
  .podcast__deck span,
  .contact__meta span {
    white-space: normal;
  }
}
