/* =========================================================
   UNKNOWNFOOD — SYSTEM VARIABLES
========================================================= */
:root {
  --black: #050505;
  --surface: #0d0d0d;
  --text: #b8b2aa;
  --muted: #8f8a82;
  --dim: #6d6960;

  --white-01: rgba(255, 255, 255, 0.01);
  --white-02: rgba(255, 255, 255, 0.02);
  --white-03: rgba(255, 255, 255, 0.03);
  --white-04: rgba(255, 255, 255, 0.04);
  --white-05: rgba(255, 255, 255, 0.05);
  --white-06: rgba(255, 255, 255, 0.06);
  --white-08: rgba(255, 255, 255, 0.08);

  --text-soft: 0.72;
  --text-mid: 0.82;
  --text-dim: 0.32;

  --pad: clamp(1.5rem, 4vw, 3rem);
  --gap: clamp(1rem, 2vw, 2rem);

  --lock-width: 22px;
  --lock-height: 28px;
  --lock-gap: 2px;
}

/* =========================================================
   RESET & BASE STYLES
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--text);
  font-family: "Courier New", monospace;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  mix-blend-mode: soft-light;
  background-image: url("assets/noise.png");
}

img {
  width: 100%;
  display: block;
  background: var(--surface);
  filter: grayscale(1) contrast(1.08) brightness(0.78);
}

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

.meta-text {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: var(--text-soft);
}

/* =========================================================
   CINEMATIC LOADER (INTRO OVERLAY)
========================================================= */
.death-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.985);
  pointer-events: none;
  opacity: 1;
  filter: blur(0px) brightness(1);
  will-change: opacity, filter;
  transition: 
    opacity 2.4s cubic-bezier(.77, 0, .18, 1),
    filter 2.4s cubic-bezier(.77, 0, .18, 1);
}

.death-screen::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.045;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("assets/noise.png");
  animation: grainShift 0.35s steps(2) infinite;
}

.death-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.18) 58%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

.death-screen.fade-out {
  opacity: 0;
  filter: blur(18px) brightness(1.8);
}

.death-text {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2.5rem); 
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  filter: blur(4px);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
  will-change: opacity, filter;
  transition: 
    opacity 2.5s ease-out,
    filter 2.5s ease-out;
}

.death-text.show {
  opacity: 1;
  filter: blur(0);
}

.death-text.fade-fast {
  opacity: 0;
  filter: blur(8px);
  transition: 
    opacity 0.6s cubic-bezier(.25, 1, .5, 1),
    filter 0.6s cubic-bezier(.25, 1, .5, 1);
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1%, 1%); }
  50%  { transform: translate(1%, -1%); }
  75%  { transform: translate(0.5%, 1%); }
  100% { transform: translate(0, 0); }
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--white-02);
  background: #111;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.16) 35%,
        rgba(0, 0, 0, 0.42) 100%
      ),
      url("assets/hero-city.jpg") center top / cover no-repeat;
  filter: brightness(1.4);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.03) 0%,
    rgba(0, 0, 0, 0.08) 25%,
    rgba(0, 0, 0, 0.18) 55%,
    var(--black) 100%
  );
}

/* =========================================================
   HERO TEXT TYPOGRAPHY REBUILD
========================================================= */
.hero-copy {
  position: relative;
  z-index: 3;
  padding: 0;
  margin: 0;
}

.hero-title {
  margin: 0;
  padding-left: 0.5rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(8rem, 19.5vw, 19.5rem); /* Scales dynamically with the viewport width */
  font-weight: 1000;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.82;
  mix-blend-mode: screen;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.015);
  
  /* Forces tight horizontal kerning layout */
  letter-spacing: -0.14em;
  
  /* Compresses line intervals so they fit snugly over each other */
  line-height: 0.64; 
  
  /* Creates the towering, elongated look precisely like the screenshot */
  transform: scaleX(0.72) scaleY(1.75);
  transform-origin: top left;
}

/* =========================================================
   SIGNAL DIVIDERS
========================================================= */
.signal-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-top: 1px solid var(--white-04);
  border-bottom: 1px solid var(--white-02);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.008),
    rgba(0, 0, 0, 0)
  );
}

.signal-divider span {
  padding: 0 1rem;
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.22;
  background: var(--black);
}

/* =========================================================
   EDITORIAL STATEMENT
========================================================= */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  min-height: 300px;
  border-bottom: 1px solid var(--white-02);
}

.statement-image {
  margin: 0;
  overflow: hidden;
}

.statement-image img {
  height: 100%;
  object-fit: cover;
}

.statement-copy {

  display: flex;

  align-items: flex-end;

  justify-content: flex-end;

  padding:
    4rem
    4rem
    4rem
    4rem;
}

.statement-quote {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.8;
  letter-spacing: 0.04em;
  font-style: italic;
  opacity: var(--text-mid);
}

/* =========================================================
   CATALOG GRID & SIDEBAR SYSTEM
========================================================= */
.section-pad {

  padding:
    clamp(1rem, 2vw, 2rem);
}

.catalog {
  display: flex;
  gap: var(--pad);
  align-items: flex-start;
  width: 100%;
}

.product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  min-width: 0;
}

.product-card {
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.product-card:hover {
  opacity: 1;
}

.product-card img {
  aspect-ratio: 0.9 / 1;
  object-fit: cover;
  margin-bottom: 0.75rem;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: grayscale(1) contrast(1.08) brightness(0.78);
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* =========================================================
   FULFILLMENT
========================================================= */

.fulfillment {

  display: flex;

  flex-direction: column;

  justify-content: flex-start;

  gap: 2.4rem;

  width: 220px;

  flex-shrink: 0;
}


/* LINKS */

.fulfillment-links {

  display: flex;

  flex-direction: column;

  gap: 1rem;
}

.fulfillment-links hr {

  border: 0;

  border-top:
    1px solid var(--white-03);

  margin: 0.4rem 0;
}


/* LINK STYLE */

.fulfillment-links a {

  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

  width: fit-content;

  font-family:
    "Oswald",
    sans-serif;

  font-size:
    clamp(1rem, 1.2vw, 1.35rem);

  font-weight: 500;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color:
    rgba(255,255,255,0.82);

  opacity: 0.82;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease,
    text-shadow 0.25s ease;
}


/* HOVER */

.fulfillment-links a:hover {

  opacity: 1;

  color:
    rgba(255,255,255,1);

  transform:
    translateX(4px);

  text-shadow:
    0 0 0.45px rgba(255,255,255,0.95);
}

/* =========================================================
   CODE LOCK COMPONENT
========================================================= */
.code-lock {

  display: flex;

  gap: 4px;

  padding: 0;

  background: transparent;

  border: none;

  box-shadow: none;

  backdrop-filter: none;

  width: fit-content;

  overflow: visible;

  isolation: isolate;

  opacity: 0.58;
    transition:
    opacity 0.4s ease;
}

.code-lock:hover {

  opacity: 0.9;
}

.dial-window {

  position: relative;

  width: 24px;

  height: 34px;

  overflow: hidden;

  background:
    rgba(255,255,255,0.018);

  border:
    1px solid rgba(255,255,255,0.03);
}

.dial-window.is-searching {
  animation: lockFlicker 0.15s infinite alternate;
}

.read-line {

  display: none;
}

.dial-strip {

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  display: flex;

  flex-direction: column;
}

.dial-value {

  width: 100%;

  height: 34px;

  min-height: 34px;

  max-height: 34px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 0.68rem;

  line-height: 1;

  font-weight: 700;

  color:
    rgba(255,255,255,0.62);

  letter-spacing: 0.04em;

  padding: 0;

  margin: 0;
}

.dial-window.is-searching .dial-value {
  color: var(--muted);
}

/* =========================================================
   DEAD MODE
========================================================= */

.dead-value {

  color:
    rgba(255,255,255,0.92);

  text-shadow:
    0 0 10px rgba(255,255,255,0.18);
}


.code-lock.dead-flicker {

  opacity: 0.35;

  filter:
    blur(0.5px)
    brightness(1.6);
}

@keyframes lockFlicker {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}



/* =========================================================
   ADVERT ARCHIVE
========================================================= */
.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--white-02);
  padding-bottom: 0.5rem;
}

.thin-link {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: var(--text-dim);
  transition: opacity 0.25s ease;
}

.thin-link:hover {
  opacity: var(--text-soft);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}

.media-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  padding: var(--pad);
  border-top: 1px solid var(--white-02);
  display: flex;
  justify-content: center;
}

.footer-whisper {
  font-size: 0.52rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0.25;
}

/* =========================================================
   RESPONSIVE DESIGN INTERFACES
========================================================= */
@media (max-width: 860px) {
  .statement {
    min-height: 320px;
  }

  .statement-image img {
    transform: scale(1.5);
    transform-origin: center 25%;
    overflow: hidden;
  }

  .catalog {
    flex-direction: column;
    align-items: stretch;
  }
  .fulfillment {
    width: 100%;
    order: -1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.05);
    padding-top: var(--pad);
    padding-bottom: 2rem;
    margin-bottom: 1rem;
  }
  
    .fulfillment-links {
    width: 100%;
    text-align: center;
  }

  .fulfillment-links a {
    width: 100%;
    justify-content: center;
  }
  
}

/* =========================================================
   MOBILE HERO — FULL WIDTH
========================================================= */

@media (max-width: 768px) {

  .hero {

    min-height: 78vh;

    overflow: hidden;
  }

  .hero-copy {

    position: relative;

    z-index: 3;

    padding: 0;

    margin: 0;
  }

  .hero-title {

    position: relative;

    width: 100vw;

    overflow: visible;

    padding-left: 0;

    margin-left: -0.4rem;
  }


  /* UNKNOWN */

  .hero-title span:first-child {

    display: block;

    width: max-content;

    font-size:
      clamp(6rem, 28vw, 10rem);

    line-height: 0.72;

    letter-spacing: -0.16em;

    transform:
      scaleX(1.12)
      scaleY(2.1);

    transform-origin: top left;
  }


  /* FOOD */

  .hero-title span:last-child {

    display: block;

    width: max-content;

    margin-top: 4rem;

    margin-left: 0;

    font-size:
      clamp(4.5rem, 18vw, 7rem);

    line-height: 0.62;

    letter-spacing: -0.14em;

    transform:
      scaleX(1.02)
      scaleY(1.9);

    transform-origin: top left;
  }
}
