/* =============================================================
   COBALT TAPES
   One typeface (Archivo, variable width + weight), five colours.
   Wide = the brand. Condensed = the voice. Regular = the reading.
   ============================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2-variations"),
       url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* colour */
  --void: #09090B;
  --charcoal: #141418;
  --graphite: #26262C;
  --cobalt: #0047AB;
  --cobalt-lift: #0A58CC;
  --silver: #C6CAD2;
  --muted: #8B8C96;
  --white: #F2F3F5;

  /* type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: "wdth" 125;
  --narrow: "wdth" 62;

  /* rhythm */
  --gutter: clamp(1.25rem, 3.2vw, 3rem);
  --section: clamp(6rem, 14vw, 13rem);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--void);
}

body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--font);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.15rem);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

::selection { background: var(--cobalt); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--white);
  color: var(--void);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem var(--gutter);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.topbar__mark {
  font-variation-settings: var(--wide);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.is-scrolled .topbar__mark { opacity: 1; transform: none; }

.topbar__nav { display: flex; gap: 1.75rem; }
.topbar__nav a {
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--silver);
  position: relative;
  transition: color .3s;
}
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.topbar__nav a:hover { color: var(--white); }
.topbar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* backdrop once scrolled, so the bar stays legible over imagery */
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--void), rgba(9, 9, 11, 0));
  opacity: 0;
  transition: opacity .5s;
}
.is-scrolled .topbar::before { opacity: .9; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.15em 1.9em;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  letter-spacing: .005em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), transform .4s var(--ease-out);
}
.btn:active { transform: scale(.98); }

/* text roll: label slides up, its copy slides in from below */
.btn__label {
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
}
.btn__label > span {
  display: block;
  text-shadow: 0 1.5em currentColor;
  transition: transform .55s var(--ease);
}
.btn:hover .btn__label > span,
.btn:focus-visible .btn__label > span { transform: translateY(-1.5em); }

.btn--cobalt { background: var(--cobalt); color: var(--white); }
.btn--cobalt:hover { background: var(--cobalt-lift); }

.btn--ink { background: var(--void); color: var(--white); }
.btn--ink:hover { background: var(--white); color: var(--void); }

/* =============================================================
   1. HERO
   ============================================================= */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(4.5rem, 9vh, 6.5rem) var(--gutter) clamp(2rem, 5vh, 3.5rem);
  gap: clamp(2rem, 5vh, 4rem);
}

.wordmark {
  margin: 0;
  font-size: 18.5vw; /* JS refines this so COBALT fills the width exactly */
  font-weight: 820;
  font-variation-settings: var(--wide);
  line-height: .8;
  letter-spacing: -.035em;
  position: relative;
}

.wordmark__line {
  display: block;
  overflow: hidden;
  position: relative;
  z-index: 2;
  padding-top: .04em; /* room for the cap tops inside the mask */
}
.wordmark__inner { display: inline-block; white-space: nowrap; }
.wordmark__line--2 { text-align: right; margin-top: -.42em; }

/* the O and its cobalt echo: two rings, like the reels of a tape */
.oo { display: inline-block; position: relative; }
.oo__front { position: relative; z-index: 2; }
.oo__echo {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  color: var(--cobalt);
  transform: translate(.2em, .05em);
}

.hero__band {
  display: block;
  position: relative;
  z-index: 1;
  height: clamp(170px, 34vh, 440px);
  margin: -.14em calc(var(--gutter) * -1) 0;
  overflow: hidden;
}
.hero__band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 40%;
  transform: scale(1.06);
}

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem var(--gutter);
}

.hero__tagline {
  font-size: clamp(1.35rem, 1rem + 1.3vw, 2.1rem);
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  line-height: 1.05;
  letter-spacing: -.01em;
}

.hero__intro {
  color: var(--silver);
  max-width: 34ch;
}

/* load sequence (only when JS is running, so nothing hides without it) */
.js .wordmark__inner { transform: translateY(105%); }
.js .oo__echo { transform: translate(0, 0); opacity: 0; }
.js .hero__band { clip-path: inset(0 100% 0 0); }
.js .hero__band img { transform: scale(1.18); }
.js .hero__foot > * { opacity: 0; transform: translateY(14px); }

.is-loaded .wordmark__inner {
  transform: none;
  transition: transform 1.2s var(--ease-out);
}
.is-loaded .wordmark__line--2 .wordmark__inner { transition-delay: .12s; }
.is-loaded .hero__band {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.5s var(--ease) .25s;
}
.is-loaded .hero__band img {
  transform: scale(1.06);
  transition: transform 2.4s var(--ease-out) .25s;
}
.is-loaded .oo__echo {
  transform: translate(.2em, .05em);
  opacity: 1;
  transition: transform 1.1s var(--ease-out) 1.1s, opacity .6s 1.1s;
}
.is-loaded .hero__foot > * {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.is-loaded .hero__foot > :nth-child(1) { transition-delay: 1.2s; }
.is-loaded .hero__foot > :nth-child(2) { transition-delay: 1.3s; }
.is-loaded .hero__foot > :nth-child(3) { transition-delay: 1.4s; }

/* =============================================================
   2. ABOUT
   ============================================================= */
.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--gutter);
  padding: var(--section) var(--gutter) calc(var(--section) * .8);
  align-items: start;
}

.about__text { grid-column: 1 / span 7; }

.about__title {
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  font-size: clamp(3.2rem, 1.5rem + 7vw, 9rem);
  font-weight: 800;
  font-variation-settings: var(--narrow);
  line-height: .88;
  letter-spacing: -.015em;
  max-width: 9ch;
}

.about__body {
  display: grid;
  gap: 1.1em;
  max-width: 48ch;
  margin-left: clamp(0rem, 8vw, 9rem);
  color: var(--silver);
}
.about__body p:first-child { color: var(--white); }

.about__image {
  grid-column: 9 / span 4;
  margin-top: clamp(6rem, 18vw, 18rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about__image img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}

/* full-bleed tape strip */
.strip {
  height: clamp(110px, 20vw, 300px);
  overflow: hidden;
  border-block: 1px solid var(--graphite);
}
.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================================
   3. STATEMENT / VISUAL
   ============================================================= */
.statement {
  padding: var(--section) var(--gutter);
  overflow: hidden;
}

.statement__title {
  margin: 0;
  font-size: clamp(4.2rem, 1rem + 15vw, 17rem);
  font-weight: 860;
  font-variation-settings: var(--narrow);
  line-height: .84;
  letter-spacing: -.02em;
}
.statement__line {
  display: block;
  white-space: nowrap;
  will-change: transform;
}
.statement__line:nth-child(2) { padding-left: 22vw; color: var(--silver); }
.statement__line:nth-child(3) { text-align: right; }

.collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--gutter);
  margin-top: clamp(4rem, 9vw, 9rem);
  align-items: start;
}

.collage__a {
  grid-column: 2 / span 4;
  grid-row: 1 / span 2;
  position: relative;
  aspect-ratio: 4 / 5;
}
/* the one solid cobalt block on the page */
.collage__a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cobalt);
  transform: translate(-1.6rem, 1.6rem);
}
.collage__a img,
.collage__b img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage__b {
  grid-column: 6 / span 7;
  grid-row: 1;
  margin-top: clamp(6rem, 16vw, 15rem);
  margin-left: -4vw;
  aspect-ratio: 16 / 10;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.collage__note {
  grid-column: 8 / span 4;
  grid-row: 2;
  margin-top: 2.5rem;
  max-width: 30ch;
  color: var(--muted);
  font-size: 1rem;
}

[data-parallax] { will-change: transform; }

/* =============================================================
   4. LISTEN (Spotify)
   ============================================================= */
.listen {
  background: var(--cobalt);
  color: var(--white);
  padding: clamp(5rem, 11vw, 10rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3rem var(--gutter);
  min-height: 80vh;
  min-height: 80svh;
}

.listen__title {
  margin: 0;
  font-size: clamp(5rem, 1rem + 19vw, 21rem);
  font-weight: 860;
  font-variation-settings: var(--narrow);
  line-height: .8;
  letter-spacing: -.025em;
  align-self: start;
  grid-column: 1 / -1;
}

.listen__side {
  grid-column: 2;
  display: grid;
  gap: 1.75rem;
  justify-items: start;
  max-width: 30rem;
}
.listen__side p {
  font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem);
  line-height: 1.35;
}

/* =============================================================
   5. FOOTER
   ============================================================= */
.footer {
  background: var(--void);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 0;
  overflow: hidden;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  align-items: baseline;
  font-size: .95rem;
}
.footer__link {
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.footer__link:hover { background-size: 100% 1px; }
.footer__copy { margin-left: auto; color: var(--muted); }

.footer__mark {
  margin: clamp(3rem, 7vw, 6rem) 0 0;
  font-size: 9vw;
  font-weight: 820;
  font-variation-settings: var(--wide);
  letter-spacing: -.035em;
  line-height: .74;
  white-space: nowrap;
  color: var(--charcoal);
  -webkit-text-stroke: 1px #3A3A42;
  transform: translateY(.06em);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .hero__foot { grid-template-columns: 1fr 1fr; }
  .hero__foot .btn { grid-column: 1 / -1; justify-self: start; }

  .about__text { grid-column: 1 / -1; }
  .about__body { margin-left: 0; }
  .about__image {
    grid-column: 5 / -1;
    margin-top: 4rem;
  }

  .collage__a { grid-column: 1 / span 7; }
  .collage__b { grid-column: 4 / -1; grid-row: 2; margin: -4rem 0 0; }
  .collage__note { grid-column: 1 / span 10; grid-row: 3; }
}

@media (max-width: 600px) {
  .topbar__nav { gap: 1.25rem; }
  .topbar__mark { font-size: .8rem; }

  .hero { justify-content: flex-start; }
  .hero__band { height: 30vh; height: 30svh; }
  .hero__foot { grid-template-columns: 1fr; gap: 1.25rem; margin-top: auto; }
  .hero__foot .btn { margin-top: .75rem; }

  .about__image { grid-column: 3 / -1; }

  .statement__line:nth-child(2) { padding-left: 12vw; }

  .collage__a { grid-column: 2 / span 9; }
  .collage__a::before { transform: translate(-.9rem, .9rem); }
  .collage__b { grid-column: 1 / -1; margin-top: -3rem; }

  .listen { grid-template-columns: 1fr; min-height: 70svh; }
  .listen__side { grid-column: 1; }
  .listen .btn { white-space: normal; text-align: left; }
  .listen .btn__label { height: auto; }
  .listen .btn__label > span { text-shadow: none; }
  .listen .btn:hover .btn__label > span { transform: none; }

  .footer__copy { margin-left: 0; width: 100%; }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  .js .wordmark__inner,
  .js .oo__echo,
  .js .hero__foot > * { transform: none; opacity: 1; }
  .js .hero__band { clip-path: none; }
  .js .oo__echo { transform: translate(.2em, .05em); }
  .btn__label > span { text-shadow: none; }
  .btn:hover .btn__label > span { transform: none; }
}

/* room for the parallax travel inside the cropped frame */
.collage__b img { height: 124%; top: -12%; }
