/* ============================================================
   Hope Can Win  (thisishuman.services/hope-can-win)
   Mint ground (#00FF87 @ 20% over white) · Garton display
   teal #01676C / #015872 body · red #DC353B headers
   ============================================================ */

@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: 'Garton';
  src: url('../fonts/garton/Garton-BoldItalic.woff2') format('woff2'),
       url('../fonts/garton/Garton-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  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 {
  --mint: #CCFFE7;    /* white + 20% #00FF87 — the resting ground */
  --green: #00FF87;   /* full-strength green, page-load flash */
  --teal: #01676C;
  --teal-deep: #015872;
  --red: #DC353B;
  --ink: #0C0C0C;
}

/* Cross-fade between pages. */
@view-transition { navigation: auto; }

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

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

/* Load transition: the ground opens at full #00FF87 and settles to 20%. */
@keyframes ground-settle {
  from { background-color: var(--green); }
  to   { background-color: var(--mint); }
}

body {
  background: var(--mint);
  animation: ground-settle 1400ms ease forwards;
  color: var(--teal);
  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 ---------- */

@keyframes fade-rise {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes img-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.eyebrow, .intro { opacity: 0; animation: fade-rise 700ms ease forwards; }
.video-frame, .vplayer { opacity: 0; animation: img-fade 1600ms ease forwards 700ms; }
h1 { opacity: 0; animation: slide-in-left 700ms ease forwards; }
.eyebrow { animation-delay: 200ms; }
h1       { animation-delay: 350ms; }
.intro   { animation-delay: 550ms; }

/* ---------- Scroll reveals: rise up into place ---------- */

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

/* ---------- Close ---------- */

.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(--teal); }

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

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

h1 {
  font-weight: 700;
  font-size: clamp(52px, 11.4vw, 164px);
  line-height: 0.94;
  color: var(--red);
  margin-top: 14px;
  white-space: nowrap;
}

.intro {
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.33;
  color: var(--teal-deep);
  margin-top: 46px;
  max-width: 1280px;
}
.intro em { font-style: italic; }

/* ---------- Video + slim player ---------- */

.video-frame {
  width: 1108px;
  max-width: 100%;
  margin: 100px auto 0;
  background: var(--ink);
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.vplayer {
  width: 1108px;
  max-width: 100%;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 2px solid var(--teal);
  padding: 14px 20px;
}

.vplayer .play {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: var(--mint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 200ms ease, border-color 200ms ease;
}
.vplayer .play:hover {
  background: var(--red);
  border-color: var(--red);
}
.vplayer .play svg { display: block; }

.vplayer .watch {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}

.vplayer .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(1, 103, 108, 0.25) var(--progress, 0%), rgba(1, 103, 108, 0.25) 100%);
  cursor: pointer;
}
.vplayer .timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--teal);
  border: none;
  border-radius: 0;
}
.vplayer .timeline::-webkit-slider-thumb:hover { background: var(--red); }
.vplayer .timeline::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--teal);
  border: none;
  border-radius: 0;
}
.vplayer .timeline::-moz-range-thumb:hover { background: var(--red); }

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

/* ---------- 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;
}

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

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

.label {
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
}
.story-cols .label { display: inline; }
.story-cols .col > p + p { margin-top: 22px; }

.pull {
  font-weight: 700;
  font-style: italic;
  color: var(--red);
}

.single-col {
  max-width: 846px;
  margin: 56px auto 0;
}

.full-story {
  max-width: 846px;
  margin: 69px auto 0;
}
.full-story .label {
  font-size: 18px;
  line-height: 22px;
}
.full-story p { font-size: 18px; line-height: 22px; }
.full-story .insight p + p { margin-top: 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;
  color: var(--red);
}

/* ---------- 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(--teal); }

.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(--teal);
}
.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; }
  h1 { margin-top: 10px; white-space: normal; }
  .intro { margin-top: 28px; }

  .video-frame { margin-top: 48px; }
  .vplayer { flex-wrap: wrap; gap: 12px; padding: 12px 14px; }
  .vplayer .timeline { flex: 1 1 100%; order: 4; }

  .section-head { margin-top: 56px; }
  .story-cols {
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 40px;
  }
  .single-col, .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; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  body { animation: none; background: var(--mint); }
  .eyebrow, h1, .intro, .video-frame, .vplayer { animation: none; opacity: 1; }
  .contact .cta, .close { transition: none; }
  html.js-motion .reveal { transition: none; }
  html.js-motion .reveal-rise { 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(--teal);
  color: var(--mint);
  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 var(--mint);
  background: transparent;
  color: var(--mint);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.cookie-actions button:hover { background: var(--mint); color: var(--teal); }
@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(--teal);
}
.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(--teal); }
@media (max-width: 767px) {
  .next-project { margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .next-project a { transition: none; }
}
