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

@font-face {
  font-family: "Lost Trial";
  src: url("fonts/LostTrialVAR.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GT Era Trial VF";
  src: url("fonts/GT-Era-Trial-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Irregardless Demo";
  src: url("fonts/IrregardlessDemo-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Irregardless Demo";
  src: url("fonts/IrregardlessDemo-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Irregardless Demo";
  src: url("fonts/IrregardlessDemo-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Irregardless Demo";
  src: url("fonts/IrregardlessDemo-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gimlet Sans Variable";
  src: url("fonts/GimletSansVariable-wght.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  font-family: "Exposure Trial", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.input-video {
  display: none;
}

.output-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: #000;
  z-index: 0;
  pointer-events: none;
}

.ui-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.type-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 5vw;
  pointer-events: none;
}

/* SVG displacement acts on the whole rendered hero (sine / wave / kin still run on #hero-text). */
.hero-text-wrap {
  pointer-events: none;
  display: inline-block;
  max-width: min(90vw, 100%);
  transform-origin: center center;
}

.hero-text-wrap.is-ripple-on {
  filter: url("#hero-ripple-filter");
  will-change: filter;
}

.hero-text .char {
  display: inline;
}

/* Per-glyph transform (wave + kinetic workshop-style motion on same Exposure text) */
.hero-text.glyph-motion .char {
  display: inline-block;
  transition: none;
  transform-origin: center center;
}


.metrics {
  position: fixed;
  left: 16px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 13px;
  letter-spacing: 0.04em;
  pointer-events: none;
  font-family: "Lost Trial", Inter, system-ui, sans-serif;
}

.hero-text {
  pointer-events: none;
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 5vw, 74px);
  line-height: 1.08;
  letter-spacing: 0;
  font-family: "Exposure Trial", Inter, system-ui, sans-serif;
  font-variation-settings: "EXPO" 0;
  transform-origin: center;
  will-change: transform, font-variation-settings, letter-spacing;
  transition: transform 80ms linear, letter-spacing 80ms linear;
  white-space: normal;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  max-width: 90vw;
}

.glass-button {
  cursor: pointer;
  pointer-events: auto;
}

.glass-button svg {
  display: block;
}

.type-tab {
  position: fixed;
  right: 24px;
  top: 92px;
  width: min(360px, calc(100vw - 48px));
  min-height: 110px;
  border-radius: 24px;
  background: rgba(235, 237, 239, 0.96);
  color: #111;
  padding: 16px 18px;
  display: none;
  z-index: 9998;
  pointer-events: auto;
}

.type-tab-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-family: "Lost Trial", Inter, system-ui, sans-serif;
  opacity: 0.7;
}

.type-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0;
  font-family: "Exposure Trial", Inter, system-ui, sans-serif;
}

.type-tab.is-open {
  display: block;
}

@media (max-width: 820px) {
  .metrics {
    font-size: 10px;
  }

  .type-tab {
    right: 12px;
    top: 82px;
    width: calc(100vw - 24px);
    min-height: 92px;
    border-radius: 18px;
    padding: 12px 14px;
  }

  .type-input {
    font-size: 30px;
  }
}
