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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--clr-text-primary);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

video,
svg {
  display: block;
  max-inline-size: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

p {
  overflow-wrap: break-word;
}

.break {
  display: block;
}

.sur-nowrap {
  white-space: nowrap;
}

:root {
  --ff-heading: "Univers LT 73", "Univers LT 73 Black Extended", Arial Black, Impact, sans-serif;
  --ff-body: "Replica Mono", "Courier New", Courier, monospace;
  --fs-xs: clamp(0.625rem, 1.2vw, 0.75rem);
  --fs-sm: clamp(0.75rem, 1.5vw, 0.875rem);
  --fs-base: clamp(0.875rem, 2vw, 1rem);
  --fs-md: clamp(1rem, 2.5vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 3vw, 1.75rem);
  --fs-xl: clamp(1.5rem, 4vw, 2.5rem);
  --ls-tighter: -0.1em;
  --ls-wide: 0.08em;
  --lh-tighter: 0.82;
  --lh-snug: 1.3;
  --clr-bg: #E5E5E5;
  --clr-text-primary: #f0ede8;
  --clr-text-muted: #191919;
  --video-radius: 28px;
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
}

@font-face {
  font-family: "Univers LT 73";
  src: url("fonts/Univers LT 73 Black Extended.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Univers LT 73";
  src: url("fonts/Univers LT 73 Black Extended Oblique.woff2") format("woff2");
  font-weight: 900;
  font-style: oblique;
  font-display: swap;
}

@font-face {
  font-family: "Replica Mono";
  src: url("fonts/RepMo___.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.sur-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sp-sm);
  inline-size: 100%;
  block-size: 100dvh;
  padding: var(--sp-sm);
  overflow: hidden;
}

.sur-video-section,
.sur-video-container,
.sur-video-wrapper {
  flex: 1 1 0;
  min-block-size: 0;
}

.sur-video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  inline-size: 100%;
}

.sur-video-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-xs);
  inline-size: 90vw;
}

.sur-video-wrapper {
  position: relative;
  inline-size: 100%;
  border-radius: var(--video-radius);
  overflow: hidden;
  background: #000;
}

.sur-video {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  border-radius: var(--video-radius);
}

.sur-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  padding: var(--sp-md);
  text-align: center;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.sur-overlay-text {
  font-family: var(--ff-heading);
  font-weight: 900;
  font-size: var(--fs-xl);
  letter-spacing: var(--ls-tighter);
  line-height: var(--lh-tighter);
  max-inline-size: 42ch;
  color: var(--clr-text-primary);
}

.sur-video-overlay.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.sur-play-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.sur-play-btn .sur-icon--play,
.sur-play-btn .sur-icon--pause {
  position: absolute;
  bottom: var(--sp-sm);
  left: var(--sp-sm);
  inline-size: 64px;
  block-size: 64px;
  color: var(--clr-text-primary);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.7));
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.sur-play-btn[data-state="paused"] .sur-icon--play {
  opacity: 1;
  transform: scale(1);
}

.sur-play-btn[data-state="paused"] .sur-icon--pause,
.sur-play-btn[data-state="playing"] .sur-icon--play,
.sur-play-btn[data-state="playing"] .sur-icon--pause {
  opacity: 0;
  transform: scale(0.85);
}

@media (hover: hover) {
  .sur-play-btn[data-state="paused"]:hover .sur-icon--play {
    opacity: 1;
    transform: scale(1.05);
  }

  .sur-play-btn[data-state="playing"]:hover .sur-icon--pause {
    opacity: 1;
    transform: scale(1);
  }

  .sur-play-btn[data-state="playing"]:hover .sur-icon--play {
    opacity: 0 !important;
    transform: scale(0.85);
  }
}

.sur-sound-btn {
  font-family: var(--ff-heading);
  font-weight: 900;
  font-size: var(--fs-md);
  letter-spacing: var(--ls-tighter);
  color: #000;
  flex-shrink: 0;
}

.sur-sound-btn:hover {
  opacity: 0.6;
}

.sur-sound-label--on,
.sur-sound-btn[aria-pressed="false"] .sur-sound-label--off {
  display: none;
}

.sur-sound-label--off,
.sur-sound-btn[aria-pressed="false"] .sur-sound-label--on {
  display: inline;
}

.sur-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  gap: var(--sp-xs);
}

.sur-copyright {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-snug);
  color: var(--clr-text-muted);
  max-inline-size: 50vw;
  text-wrap: pretty;
}

.sur-footer-logo {
  display: none;
  inline-size: 32px;
  block-size: auto;
  margin-block-start: var(--sp-md);
  color: var(--clr-text-muted);
}

.sur-rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--clr-bg);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-md);
  text-align: center;
  padding: var(--sp-md);
}

.sur-rotate-overlay.is-visible {
  display: flex;
}

.sur-rotate-msg {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  letter-spacing: var(--ls-tighter);
  line-height: var(--lh-tighter);
  color: var(--clr-text-muted);
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
  .sur-video-container {
    inline-size: 90dvw;
  }

  .sur-overlay-text {
    font-size: var(--fs-lg);
  }
}

@media screen and (max-width: 1199px) and (orientation: portrait) {
  .sur-main {
    justify-content: space-between;
    padding: var(--sp-md);
  }

  .sur-main .sur-video-section {
    flex: 1 1 auto;
    justify-content: center;
  }

  .sur-main .sur-video-container {
    flex: none;
    inline-size: 90dvw;
    max-inline-size: 680px;
    block-size: auto;
  }

  .sur-video-container .sur-video-wrapper {
    flex: none;
    block-size: auto;
    aspect-ratio: 16 / 9;
  }

  .sur-play-btn .sur-icon--play,
  .sur-play-btn .sur-icon--pause {
    inline-size: 40px;
    block-size: 40px;
    bottom: var(--sp-xs);
    left: var(--sp-xs);
  }

  .sur-video-overlay .sur-nowrap {
    white-space: normal;
  }

  .sur-overlay-text {
    font-size: var(--fs-md);
    text-wrap: pretty;
    line-height: 1.3;
  }

  .sur-video-container .sur-sound-btn {
    font-size: var(--fs-sm);
    color: var(--clr-text-muted);
  }

  .sur-rotate-overlay,
  .sur-rotate-overlay.is-visible {
    background: transparent;
    pointer-events: none;
    position: fixed;
    display: block;
  }

  .sur-rotate-overlay .sur-rotate-inner {
    position: fixed;
    bottom: 34dvh;
    left: 50%;
    transform: translateX(-50%);
    inline-size: 90vw;
    max-inline-size: 340px;
    text-align: center;
    z-index: 101;
  }

  .sur-rotate-msg {
    font-size: var(--fs-sm);
  }

  .sur-footer .sur-copyright {
    max-inline-size: 100%;
  }

  .sur-footer .sur-footer-logo {
    display: block;
    margin-block-start: var(--sp-xs);
  }
}

@media screen and (max-width: 1199px) and (orientation: landscape) {
  .sur-main .sur-footer {
    display: none !important;
  }
}

@media screen and (max-height: 480px) and (orientation: landscape) {
  .sur-main {
    padding: var(--sp-xs);
  }

  .sur-video-section {
    block-size: 90dvh;
  }

  .sur-video-container {
    flex-direction: row;
    align-items: center;
    inline-size: 100%;
    max-inline-size: 100%;
    block-size: 90dvh;
  }

  .sur-video-wrapper {
    flex: 1 1 auto;
    block-size: 90dvh;
  }

  .sur-play-btn .sur-icon--play,
  .sur-play-btn .sur-icon--pause {
    inline-size: 40px;
    block-size: 40px;
  }

  .sur-overlay-text {
    font-size: var(--fs-lg);
    letter-spacing: var(--ls-tighter);
    line-height: var(--lh-snug);
  }

  .sur-sound-btn {
    order: -1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--clr-text-muted);
  }
}

@media (prefers-reduced-motion: reduce) {

  .sur-play-btn .sur-icon--play,
  .sur-play-btn .sur-icon--pause,
  .sur-video-overlay {
    transition: opacity 0.1s;
  }
}