
/*
  GHASTLY PANIC
  -------------
  Put your licensed Ghastly Panic font file here:
      assets/Ghastly Panic.ttf

  If your file has another name, change the src URL below.
*/
@font-face{
  font-family:"Ghastly Panic";
  src:url("assets/Ghastly Panic.ttf") format("truetype");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}

:root{
  --bg:#05080b;
  --white:#d8dde0;
  --dim:#81898d;
  --line:rgba(203,214,220,.28);
  --blue:#8ca2ae;
}

*{
  box-sizing:border-box;
}

html,
body{
  width:100%;
  height:100%;
  margin:0;
  overflow:hidden;
  background:var(--bg);
}

body{
  color:var(--white);
  font-family:"Courier New", monospace;
}

a{
  color:inherit;
  text-decoration:none;
}

.screen{
  position:relative;
  width:100vw;
  height:100vh;
  height:100dvh;
  min-height:520px;
  overflow:hidden;
  isolation:isolate;
  background:#05080b;
}

/* CINEMATIC BACKGROUND */

.portrait{
  position:absolute;
  inset:0;
  z-index:-8;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:42% center;
  filter:
    grayscale(.12)
    saturate(.62)
    contrast(1.17)
    brightness(.50)
    sepia(.05);
  transform:scale(1.07);
}

.black-fade{
  position:absolute;
  inset:0;
  z-index:-7;
  background:
    linear-gradient(
      to bottom,
      rgba(3,6,9,.28) 0%,
      rgba(3,6,9,.05) 34%,
      rgba(3,6,9,.18) 54%,
      rgba(3,6,9,.83) 75%,
      rgba(3,6,9,.98) 100%
    ),
    linear-gradient(
      90deg,
      rgba(2,4,6,.32) 0%,
      rgba(2,4,6,.02) 54%,
      rgba(2,4,6,.60) 100%
    );
}

.vignette{
  position:absolute;
  inset:-8%;
  z-index:20;
  pointer-events:none;
  box-shadow:inset 0 0 22vw 12vw rgba(0,0,0,.77);
}

.scanlines{
  position:absolute;
  inset:0;
  z-index:21;
  pointer-events:none;
  opacity:.17;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.025) 0,
      rgba(255,255,255,.025) 1px,
      rgba(0,0,0,.05) 2px,
      rgba(0,0,0,.05) 4px
    );
  mix-blend-mode:overlay;
}

.noise{
  position:absolute;
  inset:0;
  z-index:22;
  pointer-events:none;
  opacity:.10;
  mix-blend-mode:screen;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* CORNER MARKS */

.corner{
  position:absolute;
  width:18px;
  height:18px;
  z-index:10;
  opacity:.76;
}

.corner::before,
.corner::after{
  content:"";
  position:absolute;
  background:var(--white);
}

.corner::before{
  width:18px;
  height:1px;
}

.corner::after{
  width:1px;
  height:18px;
}

.corner-tl{top:18px;left:18px}
.corner-tr{top:18px;right:18px;transform:rotate(90deg)}
.corner-br{bottom:18px;right:18px;transform:rotate(180deg)}
.corner-bl{bottom:18px;left:18px;transform:rotate(270deg)}

/* TOP */

.top-meta{
  position:absolute;
  z-index:5;
  left:6.2vw;
  right:6.2vw;
  top:3.3vh;
  display:flex;
  justify-content:space-between;
  font-size:clamp(7px,1.7vw,10px);
  letter-spacing:.27em;
  color:#a8b0b4;
  opacity:.76;
}

.sigil{
  position:absolute;
  top:3.1vh;
  left:50%;
  width:25px;
  height:25px;
  transform:translateX(-50%);
  opacity:.6;
}

.sigil::before{
  content:"";
  position:absolute;
  inset:3px;
  border:1px solid #c6ced1;
  border-radius:50%;
}

.sigil span{
  position:absolute;
  left:50%;
  top:-3px;
  width:1px;
  height:31px;
  background:#c6ced1;
}

.sigil i{
  position:absolute;
  top:50%;
  left:-3px;
  width:31px;
  height:1px;
  background:#c6ced1;
}

.title{
  position:absolute;
  z-index:6;
  top:8.8vh;
  left:5.3vw;
  right:5.3vw;
  text-align:center;
  text-transform:uppercase;
  pointer-events:none;
}

.title-small{
  display:block;
  margin-bottom:-.01em;
  font-family:"Ghastly Panic","Times New Roman",serif;
  font-size:clamp(26px,7.5vw,48px);
  letter-spacing:.12em;
  opacity:.92;
}

.title h1{
  margin:0;
  font-family:"Ghastly Panic","Times New Roman",serif;
  font-weight:400;
  font-size:clamp(46px,13.4vw,92px);
  line-height:.76;
  letter-spacing:.025em;
  color:#dfe2e2;
  text-shadow:
    -1px 0 rgba(155,183,197,.35),
    1px 0 rgba(255,255,255,.10);
}

/* TERMINAL */

.terminal{
  position:absolute;
  z-index:5;
  top:40.5vh;
  right:7vw;
  display:flex;
  flex-direction:column;
  font-size:clamp(7px,1.8vw,10px);
  line-height:1.6;
  color:#8d979c;
  letter-spacing:.06em;
  opacity:.72;
}

.terminal-gap{
  margin-top:1.5vh;
}

.cross{
  font-size:22px;
  line-height:1;
  margin-top:.4vh;
  opacity:.7;
}

/* RELEASE */

.release{
  position:absolute;
  z-index:7;
  left:5.5vw;
  right:5.5vw;
  bottom:18.5vh;
  height:24.5vh;
  display:grid;
  grid-template-columns:46% 1fr;
  gap:4.7vw;
  align-items:center;
}

.cover-frame{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  max-height:24vh;
  overflow:hidden;
  border:1px solid rgba(205,215,219,.37);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.5),
    inset 0 0 25px rgba(0,0,0,.55);
}

.cover-frame::before,
.cover-frame::after{
  content:"";
  position:absolute;
  z-index:4;
  pointer-events:none;
}

.cover-frame::before{
  inset:4px;
  border:1px solid rgba(201,214,220,.13);
}

.cover-frame::after{
  inset:0;
  background:
    linear-gradient(110deg,transparent 0 49%,rgba(255,255,255,.06) 50%,transparent 51%),
    radial-gradient(circle at 90% 5%,rgba(255,255,255,.08),transparent 24%);
  mix-blend-mode:screen;
}

.cover-frame img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  filter:saturate(.70) contrast(1.07) brightness(.75);
}

.frame-noise{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 8px,
      rgba(255,255,255,.025) 9px
    );
}

.release-copy{
  min-width:0;
  align-self:center;
}

.label{
  display:block;
  width:max-content;
  max-width:100%;
  padding-bottom:.55vh;
  margin-bottom:1.15vh;
  border-bottom:1px solid rgba(205,214,219,.45);
  color:#abb4b8;
  font-size:clamp(7px,1.7vw,10px);
  letter-spacing:.19em;
}

.release-copy h2{
  margin:0;
  font-family:"Ghastly Panic","Times New Roman",serif;
  font-size:clamp(45px,13vw,83px);
  line-height:.8;
  font-weight:400;
  letter-spacing:.09em;
  color:#e0e1df;
}

.release-copy p{
  margin:1.8vh 0 0;
  max-width:34ch;
  font-size:clamp(6px,1.55vw,9px);
  line-height:1.65;
  letter-spacing:.15em;
  color:#9ba4a8;
}

/* MAIN ACTION LINKS */

.actions{
  position:absolute;
  z-index:8;
  left:5.5vw;
  right:5.5vw;
  bottom:8.2vh;
  height:6.7vh;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid rgba(195,205,210,.23);
  border-bottom:1px solid rgba(195,205,210,.18);
}

.actions a{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:"Ghastly Panic","Times New Roman",serif;
  font-size:clamp(21px,6.5vw,42px);
  letter-spacing:.04em;
  opacity:.88;
  transition:
    color .16s ease,
    text-shadow .16s ease,
    transform .16s ease;
}

.actions a + a{
  border-left:1px solid rgba(195,205,210,.18);
}

.actions a:hover,
.actions a:focus-visible{
  color:#fff;
  text-shadow:
    -2px 0 rgba(70,115,140,.6),
    2px 0 rgba(110,20,30,.5);
  transform:translateY(-1px);
  outline:none;
}

/* FOOTER */

footer{
  position:absolute;
  z-index:8;
  left:5.5vw;
  right:5.5vw;
  bottom:2.25vh;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  font-size:clamp(6px,1.35vw,8px);
  letter-spacing:.16em;
  color:#707b80;
}

.socials{
  display:flex;
  gap:5px;
  align-items:center;
}

.socials a:hover{
  color:#cbd2d5;
}

.footer-mark{
  font-family:"Ghastly Panic","Times New Roman",serif;
  font-size:20px;
  color:#969fa3;
}

.copyright{
  justify-self:end;
  white-space:nowrap;
}

/* GLITCH STATES */

.glitch-title{
  transform:translateX(1px) skewX(-.3deg);
  text-shadow:
    -2px 0 rgba(70,130,155,.65),
    2px 0 rgba(120,20,30,.45) !important;
}

.glitch-cover{
  transform:translateX(-1px);
  filter:hue-rotate(-8deg) contrast(1.15);
}

/* DESKTOP / WIDE SCREENS */

@media (min-aspect-ratio: 4/3){
  .portrait{
    object-position:center 43%;
  }

  .title{
    top:9vh;
  }

  .title h1{
    font-size:min(11vw,110px);
  }

  .release{
    left:7vw;
    right:7vw;
    grid-template-columns:min(32vw,440px) 1fr;
    gap:5vw;
    max-width:1050px;
    margin-inline:auto;
  }

  .cover-frame{
    max-height:27vh;
  }

  .terminal{
    right:12vw;
  }

  .actions{
    left:12vw;
    right:12vw;
  }
}

/* SMALL PHONES */


/* =========================================================
   MOBILE — composition based on concept mockup #3
   ========================================================= */
@media (max-width: 700px){

  .screen{
    background:#030609;
  }

  /*
    The source still is extremely wide.
    Instead of "cover", it is intentionally allowed to be
    wider than the phone. This reproduces the concept image:
    the head occupies roughly the left half, while the dark
    room remains visible to the right.
  */
  .portrait{
    inset:auto;
    top: 5dvh;
    left: -45vw;
    width:230vw;
    height:auto;
    max-width:none;
    object-fit:initial;
    object-position:initial;
    transform:none;
    filter:none;
  }

  /*
    The concept does not show a rectangular photo edge.
    These gradients extend the still visually upward/downward
    and dissolve it into black.
  */
  .black-fade{
    z-index:-6;
    background:
      linear-gradient(
        to bottom,
        #030609 0%,
        rgba(3,6,9,.80) 3%,
        rgba(3,6,9,.16) 10%,
        rgba(3,6,9,.00) 25%,
        rgba(3,6,9,.02) 37%,
        rgba(3,6,9,.30) 48%,
        rgba(3,6,9,.78) 57%,
        #030609 65%,
        #030609 100%
      ),
      linear-gradient(
        to right,
        rgba(0,0,0,.20) 0%,
        rgba(0,0,0,.00) 52%,
        rgba(0,0,0,.34) 82%,
        rgba(0,0,0,.70) 100%
      );
  }

  .vignette{
    inset:-5%;
    box-shadow:
      inset 0 0 18vw 8vw rgba(0,0,0,.68),
      inset 0 0 5vw 1vw rgba(0,0,0,.30);
  }

  /* Header/title sits over the scalp just like concept 3. */
  .top-meta{
    top:2.5dvh;
    left:5.6vw;
    right:5.6vw;
  }

  .sigil{
    top:2.3dvh;
  }

  .title{
    top:7.2dvh;
    left:3vw;
    right:3vw;
  }

  .title-small{
    font-size:clamp(25px,7vw,38px);
  }

  .title h1{
    font-size:clamp(45px,13vw,69px);
    line-height:.78;
    letter-spacing:.018em;
  }

  /*
    Technical block lives in the dark room on the right,
    around the lower edge of the portrait.
  */
  .terminal{
    top:39dvh;
    right:5.8vw;
    font-size:clamp(6px,1.65vw,9px);
    opacity:.64;
  }

  /*
    Release block is separated from the portrait rather than
    floating over the face. This mirrors the mockup.
  */
  .release{
    left:5.5vw;
    right:5.5vw;
    bottom:18.1dvh;
    height:25.5dvh;
    grid-template-columns:46% 1fr;
    gap:4.6vw;
    align-items:center;
  }

  .cover-frame{
    width:100%;
    max-height:none;
    aspect-ratio:1;
  }

  .release-copy{
    align-self:center;
  }

  .label{
    margin-bottom:1.2dvh;
    font-size:clamp(6px,1.6vw,9px);
  }

  .release-copy h2{
    font-size:clamp(42px,12.5vw,67px);
  }

  .release-copy p{
    margin-top:1.5dvh;
    font-size:clamp(6px,1.5vw,8px);
    line-height:1.55;
  }

  .actions{
    left:5.5vw;
    right:5.5vw;
    bottom:8.1dvh;
    height:6.6dvh;
  }

  .actions a{
    font-size:clamp(20px,6.1vw,32px);
  }

  footer{
    left:5.5vw;
    right:5.5vw;
    bottom:2.1dvh;
  }
}


@media (max-height: 650px){
  .top-meta{top:2.3vh}
  .sigil{top:2.1vh}
  .title{top:7vh}
  .release{bottom:18vh;height:23vh}
  .actions{bottom:7.8vh}
  footer{bottom:1.5vh}
}

@media (max-width: 360px){
  .terminal{
    right:5vw;
    opacity:.52;
  }

  .release{
    grid-template-columns:44% 1fr;
    gap:4vw;
  }

  .release-copy p{
    letter-spacing:.08em;
  }

  .actions a{
    font-size:20px;
  }
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
  }
}
