/* ============================================================
   Neon Guard — In Tech We Trust?  (thisishuman.services/neon-guard)
   Cream ground · Garton display · maroon #683B3A · red #DC353B
   ============================================================ */

@font-face {
  font-family: 'Garton';
  src: url('../fonts/garton/Garton-Regular.woff2') format('woff2'),
       url('../fonts/garton/Garton-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Garton';
  src: url('../fonts/garton/Garton-Italic.woff2') format('woff2'),
       url('../fonts/garton/Garton-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Garton';
  src: url('../fonts/garton/Garton-Bold.woff2') format('woff2'),
       url('../fonts/garton/Garton-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nimbus Sans L';
  src: url('../fonts/nimbus-sans-l/NimbusSanL-Reg.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nimbus Sans L';
  src: url('../fonts/nimbus-sans-l/NimbusSanL-Bol.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F9FFCC;   /* white + 20% E1FF00, as per Figma ground */
  --maroon: #683B3A;
  --red: #DC353B;
  --ink: #0C0C0C;
}

/* Cross-fade between pages (homepage ↔ project). Falls back to a
   normal jump in browsers without View Transitions. */
@view-transition { navigation: auto; }

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

html { background: var(--cream); }

body {
  background: var(--cream);
  color: var(--maroon);
  font-family: 'Garton', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  max-width: 1338px;
  margin: 0 auto;
  padding: 0 51px;
}

/* ---------- Load-in: hero drops into place, staggered ---------- */

@keyframes fade-drop {
  from { opacity: 0; transform: translateY(-25px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes img-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.eyebrow, h1, .question, .player {
  opacity: 0;
  animation: fade-drop 700ms ease forwards;
}
.cassette {
  opacity: 0;
  animation: img-fade 1600ms ease forwards;
}
.eyebrow  { animation-delay: 0ms; }
h1        { animation-delay: 120ms; }
.question { animation-delay: 240ms; }
.cassette { animation-delay: 360ms; }
.player   { animation-delay: 480ms; }

/* ---------- Scroll reveals (fade + drop, once; gated on .js-motion) ---------- */

html.js-motion .reveal {
  transition: opacity 700ms ease, transform 700ms ease;
}
html.js-motion .reveal-drop { opacity: 0; transform: translateY(-40px); }
html.js-motion .reveal.revealed { opacity: 1; transform: none; }

/* ---------- Close (back to homepage) ---------- */

.close {
  position: absolute;
  top: 81px;
  right: 109px;
  width: 50px;
  height: 50px;
  color: var(--red);
  transition: color 400ms ease;
}
.close svg { display: block; width: 100%; height: 100%; }
.close:hover { color: var(--maroon); }

/* ---------- Hero ---------- */

.eyebrow {
  font-family: 'Nimbus Sans L', Helvetica, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding-top: 200px;
  margin-left: 11px;
}

h1 {
  font-weight: 700;
  font-size: clamp(56px, 8.3vw, 120px);
  line-height: 0.94;
  margin-top: 14px;
  white-space: pre-line;
}

.question {
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.22;
  color: var(--red);
  margin-top: 60px;
  max-width: 1271px;
}

/* ---------- Cassette + player ---------- */

.cassette {
  display: block;
  width: 960px;
  max-width: 100%;
  height: auto;
  margin: 60px auto 0;
}

.player {
  width: 960px;
  max-width: 100%;
  margin: 69px auto 0;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 2px solid var(--maroon);
  padding: 14px 20px;
  background: transparent;
}

.player button.play {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 2px solid var(--maroon);
  background: var(--maroon);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.player button.play svg { display: block; }

.player button.play {
  transition: background 200ms ease, border-color 200ms ease;
}
.player button.play:hover {
  background: var(--red);
  border-color: var(--red);
}
.player .timeline::-webkit-slider-thumb:hover,
.player .vol input::-webkit-slider-thumb:hover { background: var(--red); }
.player .timeline::-moz-range-thumb:hover,
.player .vol input::-moz-range-thumb:hover { background: var(--red); }

.player .listen {
  flex: 0 0 auto;
  font-family: 'Garton', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}

.player .timeline {
  flex: 1 1 auto;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(to right, var(--red) 0%, var(--red) var(--progress, 0%), rgba(104, 59, 58, 0.25) var(--progress, 0%), rgba(104, 59, 58, 0.25) 100%);
  cursor: pointer;
}
.player .timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--maroon);
  border: none;
  border-radius: 0;
}
.player .timeline::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--maroon);
  border: none;
  border-radius: 0;
}

.player .time {
  flex: 0 0 auto;
  font-family: 'Garton', Georgia, serif;
  font-size: 15px;
  color: var(--maroon);
  min-width: 48px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.player .vol {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.player .vol svg { display: block; }
.player .vol input {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(104, 59, 58, 0.25);
  cursor: pointer;
}
.player .vol input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--maroon);
  border: none;
  border-radius: 0;
}
.player .vol input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--maroon);
  border: none;
  border-radius: 0;
}

/* ---------- Sections ---------- */

.section-head {
  font-weight: 700;
  font-size: clamp(40px, 4.8vw, 69px);
  line-height: 1.03;
  color: var(--red);
  text-transform: uppercase;
  text-align: center;
  margin-top: 92px;
}

.player + .section-head { margin-top: 69px; }

.story-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1280px;
  margin: 69px auto 0;
}

.copy p, .story-cols p, .points p {
  font-size: 18px;
  line-height: 22px;
}

.copy .label, .label {
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
}

.story-cols .label { display: inline; }
.story-cols .col > p + p { margin-top: 22px; }

.full-story {
  max-width: 846px;
  margin: 69px auto 0;
}
.full-story .label {
  font-size: 18px;
  line-height: 22px;
}
.full-story .insight + .insight { margin-top: 44px; }

.points {
  max-width: 628px;
  margin: 58px auto 0;
}

.made-by {
  max-width: 628px;
  margin: 56px auto 0;
  font-style: italic;
  font-size: 18px;
  line-height: 22px;
}

/* ---------- Contact / footer ---------- */

.contact {
  margin-top: 128px;
  padding-bottom: 75px;
  text-align: center;
}

.contact .contact-link {
  position: relative;
  display: inline-block;
}

.contact .gif-frame {
  display: block;
  width: 288px;
  height: 288px;
  border: 30px solid var(--ink);
}
.contact .gif-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact .cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 442px;
  font-family: 'Nimbus Sans L', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 69px;
  line-height: 69px;
  letter-spacing: 2.76px;
  text-align: center;
  color: var(--red);
  transition: color 400ms ease;
}
.contact .contact-link:hover .cta { color: var(--maroon); }

.footer-logo {
  display: block;
  margin: 68px auto 0;
  width: 288px;
  height: auto;
}

/* Type credit — same gap below the logo as contact-to-logo above it. */
.contact .credit {
  margin: 68px 20px 0;
  text-align: center;
  font-family: 'Nimbus Sans L', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--maroon);
}
.contact .credit a { text-decoration: underline; }
.contact .credit a:hover { color: var(--red); }

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .wrap { padding: 0 20px; }

  .close { top: 24px; right: 20px; width: 36px; height: 36px; }

  .eyebrow { padding-top: 80px; margin-left: 2px; }
  h1 { margin-top: 10px; }
  .question { margin-top: 32px; }

  .cassette { margin-top: 32px; }

  .player {
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
  }
  .player .timeline { flex: 1 1 100%; order: 4; }
  .player .vol input { width: 60px; }

  .section-head { margin-top: 56px; }
  .player + .section-head { margin-top: 40px; }

  .story-cols {
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 40px;
  }
  .full-story, .points { margin-top: 40px; }

  .contact { margin-top: 80px; padding-bottom: 60px; }
  .contact .gif-frame { width: 239px; height: 239px; }
  .contact .cta {
    position: static;
    transform: none;
    display: block;
    width: auto;
    margin-top: 14px;
    font-size: 18px;
    line-height: 29px;
    letter-spacing: 0.72px;
  }
  .footer-logo { margin-top: 56px; width: 272px; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .contact .cta, .close { transition: none; }
  .player button.play { transition: none; }
  .eyebrow, h1, .question, .cassette, .player {
    animation: none;
    opacity: 1;
  }
  html.js-motion .reveal { transition: none; }
  html.js-motion .reveal-drop { opacity: 1; transform: none; }
}

/* ---------- Cookie notice ---------- */

@keyframes notice-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 18px 51px;
  background: var(--maroon);
  color: #F9FFCC;
  animation: notice-in 400ms ease both;
}
.cookie-notice p {
  flex: 1 1 auto;
  font-family: 'Nimbus Sans L', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
}
.cookie-actions { flex: 0 0 auto; display: flex; gap: 10px; }
.cookie-actions button {
  font-family: 'Nimbus Sans L', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border: 2px solid #F9FFCC;
  background: transparent;
  color: #F9FFCC;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.cookie-actions button:hover { background: #F9FFCC; color: var(--maroon); }
@media (max-width: 767px) {
  .cookie-notice { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-notice { animation: none; }
  .cookie-actions button { transition: none; }
}

/* ---------- Next project ---------- */

.next-project {
  margin-top: 128px;
  text-align: center;
}
.next-project .next-label {
  font-family: 'Nimbus Sans L', Helvetica, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--maroon);
}
.next-project a {
  display: inline-block;
  margin-top: 10px;
  font-family: 'Garton', Georgia, serif;
  font-weight: 700;
  font-size: clamp(32px, 4.8vw, 69px);
  line-height: 1.03;
  text-transform: uppercase;
  color: var(--red);
  transition: color 400ms ease;
}
.next-project a:hover { color: var(--maroon); }
@media (max-width: 767px) {
  .next-project { margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .next-project a { transition: none; }
}
