/* Dastin Porazinski - landing page
   Replicates the original Elementor page: #030105 field, centred signature,
   PT Mono tagline, social row, fine grey footer, and the original VHS-glitch.mp4
   playing behind it. */

/* -------------------------------------------------- Fonts (self-hosted) */
@font-face {
  font-family: 'PT Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ptmono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'PT Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ptmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------- Tokens */
:root {
  --bg: #030105;            /* original Elementor section background-color */
  --ink: #ffffff;
  --ink-dim: #898989;       /* footer grey, from the original */
  --ink-link: #999999;      /* "Website Design" credit link */
  --ink-hover: #cbcbcb;     /* social icon hover, from the original */
  --mono: 'PT Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --pad: clamp(20px, 5vw, 48px);
}

/* -------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* -------------------------------------------------- Background video */
/* The original site's VHS-glitch.mp4, same as Elementor served. Sits behind
   everything; if it fails to load or decode, the flat --bg shows through. */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* -------------------------------------------------- Stage */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vh, 56px);
  padding: calc(var(--pad) + 24px) var(--pad) var(--pad);
  text-align: center;
}

/* Flex items size to their content by default, so a long line (the tagline, the
   credit) can grow past the viewport and shove the centred column sideways.
   Cap every child at the container width instead of hiding the overflow. */
.stage > * { max-width: 100%; }

.hero { width: min(100%, 1140px); }

/* -------------------------------------------------- Signature */
/* The logo is a single left-to-right handwritten stroke, so a soft-edged mask
   sliding across it reads as the pen writing it. mask-position is animatable
   everywhere, unlike an interpolated custom property. */
.sig {
  width: 50%;                    /* original: img { width: 50% } */
  margin: 0 auto 15px;           /* original: 0 0 15px */

  -webkit-mask-image: linear-gradient(90deg,
    #000 0%, #000 49%, rgba(0, 0, 0, 0) 51.5%, rgba(0, 0, 0, 0) 100%);
          mask-image: linear-gradient(90deg,
    #000 0%, #000 49%, rgba(0, 0, 0, 0) 51.5%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-size: 220% 100%;
          mask-size: 220% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;  /* fully masked out */
          mask-position: 100% 0;

  animation: write 2.7s cubic-bezier(.62, .04, .32, 1) .3s forwards;
}

@keyframes write {
  to {
    -webkit-mask-position: 0% 0;  /* fully revealed */
            mask-position: 0% 0;
  }
}

/* -------------------------------------------------- Tagline */
/* .hero-sub is the class Orbit's bodyText typography slider targets. */
.hero-sub {
  font-size: 14px;
  line-height: 24px;
  color: var(--ink);
  padding-bottom: 20px;          /* original widget padding */
  max-width: min(46ch, 100%);
  margin-inline: auto;
  opacity: 0;
  animation: fade-up .9s ease 2.4s forwards;
}

/* -------------------------------------------------- Social row */
.social {
  display: flex;
  justify-content: center;
  gap: 22px;
  opacity: 0;
  animation: fade-up .9s ease 2.7s forwards;
}

.social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  transition: color .3s, transform .3s;
}
.social a:hover,
.social a:focus-visible { color: var(--ink-hover); transform: translateY(-4px); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* -------------------------------------------------- Footer */
.credit {
  font-size: 10px;
  line-height: 15px;
  color: var(--ink-dim);
  max-width: 100%;
  opacity: 0;
  animation: fade-up .9s ease 3s forwards;
}
.credit a { color: var(--ink-link); text-decoration: none; }
.credit a:hover, .credit a:focus-visible { text-decoration: underline; }

@media (max-width: 767px) {
  .credit { font-size: 8px; }    /* original mobile override */
  .sig { width: 76%; }
}

/* -------------------------------------------------- Motion */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* Autoplaying video is exactly what this setting asks us not to do. */
  #bg { display: none; }

  .sig {
    animation: none;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero-sub, .social, .credit { animation: none; opacity: 1; }
}

/* -------------------------------------------------- 404 */
.nf { gap: 18px; }
.nf h1 { font-size: clamp(56px, 14vw, 140px); line-height: 1; font-weight: 400; }
.nf p { color: var(--ink-dim); }
.nf a.back {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: 3px;
  transition: border-color .3s, color .3s;
}
.nf a.back:hover { color: var(--ink-hover); border-color: var(--ink-hover); }
