/* ==========================================================================
   Tip-Top Studio — "Sticker Punk" (brand mark 1b)
   --------------------------------------------------------------------------
   The visual language comes straight from the logo: ink paper-stock ground,
   vertical stripes, brand-colour type offsets that are *real layers* rather
   than blurred shadows, and thick ink borders. Nothing here blurs — every
   shadow is a hard offset, which is what makes it read as printed vinyl.
   ========================================================================== */

/* --- Fonts (self-hosted; no third-party requests) ----------------------- */
@font-face {
  font-family: 'Archivo Black';
  src: url('/fonts/archivo-black-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
  --ink:        #16130F;
  --ink-deep:   #0C0B09;
  --ink-soft:   #211C16;
  --paper:      #F4EFE2;
  --paper-dim:  #A9A297;
  --red:        #FF3B1F;
  --teal:       #22B5A0;

  /* The mark's offset ratio: 18px at 210px type. */
  --off: 0.086em;

  --display: 'Archivo Black', 'Arial Black', system-ui, sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 4px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  /* Anchored sections clear the sticky top bar. */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink-deep);
  color: var(--paper);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 100;
  transform: translateY(-200%);
  background: var(--teal); color: var(--ink);
  padding: .625rem 1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Brand stripe ground ------------------------------------------------ */
/* Vertical stripes with a red bleed left and teal bleed right, exactly as the
   cover art is built. Sits behind content; never intercepts pointer events. */
.stripes {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg,  rgba(255, 59, 31, .20), rgba(255, 59, 31, 0) 26%),
    linear-gradient(270deg, rgba(34, 181, 160, .17), rgba(34, 181, 160, 0) 26%),
    repeating-linear-gradient(90deg,
      var(--ink-deep) 0 30px, #131110 30px 60px);
}
.stripes--quiet { opacity: .55; }

/* ==========================================================================
   Layered wordmark type
   ========================================================================== */
.word {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  color: var(--paper);
  letter-spacing: -.01em;
}
.word::before {
  content: attr(data-t);
  position: absolute;
  left: var(--off);
  top: var(--off);
  z-index: -1;                 /* behind the element's own text, above ground */
  color: var(--word-offset);
}
.word--red  { --word-offset: var(--red); }
.word--teal { --word-offset: var(--teal); }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .75rem var(--gutter);
  background: color-mix(in srgb, var(--ink-deep) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #211c16;
  transition: box-shadow .25s var(--ease);
}
.topbar[data-scrolled] { box-shadow: 0 1px 0 var(--red), 0 2px 24px rgb(0 0 0 / .5); }

.brand {
  display: inline-flex; align-items: center; gap: .625rem;
  text-decoration: none;
}
.brand__mark { width: 40px; height: 40px; }
.brand__text { display: flex; align-items: baseline; gap: .4rem; }
.brand__name {
  font-family: var(--display);
  font-size: 1.0625rem;
  letter-spacing: .01em;
}
.brand__tag {
  font-size: .625rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--teal); color: var(--ink);
  padding: .15rem .4rem;
}

.topbar__nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.topbar__nav > a:not(.btn) {
  font-size: .9375rem; font-weight: 600;
  text-decoration: none; color: var(--paper-dim);
  transition: color .18s var(--ease);
}
.topbar__nav > a:not(.btn):hover { color: var(--paper); }
@media (max-width: 640px) {
  .topbar__nav > a:not(.btn) { display: none; }
  .brand__tag { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --shadow-color: var(--ink);
  --shadow-size: 5px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  padding: .875rem 1.5rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-size) var(--shadow-size) 0 var(--shadow-color);
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background-color .16s var(--ease);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--shadow-size) + 3px) calc(var(--shadow-size) + 3px) 0 var(--shadow-color);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--shadow-color);
}
.btn__icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

.btn--red {
  background: var(--red);
  color: var(--paper);
  --shadow-color: var(--teal);
}
.btn--red:hover { background: #ff5238; }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
  --shadow-color: #45403a;
}
.btn--ghost:hover { background: rgb(244 239 226 / .08); }

.btn--sm  { padding: .5rem .875rem; font-size: .8125rem; --shadow-size: 3px; border-width: 2px; }
.btn--lg  { padding: 1rem 1.75rem;  font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); }
.btn--xl  { padding: 1.125rem 2.25rem; font-size: clamp(1.0625rem, 1rem + .6vw, 1.5rem); --shadow-size: 7px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid; place-items: center;
  min-height: min(92svh, 900px);
  padding: clamp(3.5rem, 10vh, 7rem) var(--gutter) clamp(5rem, 12vh, 8rem);
  overflow: hidden;
  text-align: center;
}
/* Fades the stripe ground into the section below so there's no hard seam. */
.hero::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--ink-deep));
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; max-width: 46rem; }

.eyebrow {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: clamp(1.25rem, 4vh, 2rem);
}

.lockup {
  isolation: isolate;              /* contains the offset layers' -1 z-index */
  display: flex; align-items: center; justify-content: center;
  gap: clamp(.4rem, 2vw, 1.25rem);
  font-size: clamp(3.25rem, 13vw, 8.5rem);
  line-height: .92;
  font-weight: 400;
}
.lockup__words { display: flex; gap: .18em; }
.lockup__hand {
  font-size: .42em;
  line-height: 1;
  transform: translateY(-.18em);
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / .6));
}
@media (max-width: 420px) { .lockup__hand { display: none; } }

.lockup__studio {
  margin-top: clamp(.75rem, 2.5vh, 1.25rem);
}
.lockup__studio span {
  display: inline-block;
  background: var(--teal); color: var(--ink);
  font-family: var(--display);
  font-size: clamp(.8125rem, .5rem + 1.6vw, 1.375rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  padding: .3em .5em .3em .84em;   /* extra left pad balances the tracking */
}

.hero__tagline {
  margin-top: clamp(1.75rem, 5vh, 2.75rem);
  font-family: var(--display);
  font-size: clamp(1.375rem, 1rem + 2.4vw, 2.25rem);
  line-height: 1.15;
  color: var(--paper);
}
.hero__lede {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: var(--paper-dim);
}

.hero__actions {
  margin-top: clamp(2rem, 5vh, 2.75rem);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}

.scroll-cue {
  position: absolute; z-index: 1;
  bottom: clamp(1.25rem, 4vh, 2.5rem); left: 50%;
  translate: -50% 0;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  color: var(--paper-dim);
  animation: cue 2.4s var(--ease) infinite;
}
.scroll-cue svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2.5; }
.scroll-cue:hover { color: var(--paper); }
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* ==========================================================================
   Section furniture
   ========================================================================== */
.section-kicker {
  display: flex; align-items: center; gap: .75rem;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.section-kicker .rule { display: block; width: 2.25rem; height: 3px; background: var(--red); }

.section-title {
  font-family: var(--display);
  font-size: clamp(1.875rem, 1.2rem + 3vw, 3.125rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Featured project banner
   ========================================================================== */
.project { position: relative; padding-block: clamp(1rem, 4vh, 3rem) clamp(2rem, 5vh, 3rem); }

.banner {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink-soft);
  box-shadow: 10px 10px 0 var(--red);
  overflow: hidden;
}

.banner__art {
  position: relative;
  display: grid; place-items: center;
  /* Width comes from the card, height from this ratio. Do NOT add a min-height:
     with an aspect-ratio set, a min-height that exceeds the ratio's computed
     height makes the box derive its *width* from that height instead, which
     overflows the card on narrow viewports. */
  aspect-ratio: 920 / 430;
  background: #2A1B3D;         /* matches the key art's purple, so no flash */
  overflow: hidden;
}
/* 2.14:1 is a letterbox on a phone; give the art more vertical room instead. */
@media (max-width: 640px) {
  .banner__art { aspect-ratio: 3 / 2; }
}
.banner__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* The backdrop is a bright daytime scene and the wordmark is gold, so it needs
   real separation: a centre vignette for the logo plus edge darkening that ties
   the art into the card's ink border. */
.banner__art::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(52% 62% at 50% 44%, rgb(12 11 9 / .72), rgb(12 11 9 / .12) 72%),
    linear-gradient(to bottom, rgb(12 11 9 / .35), transparent 30%, rgb(12 11 9 / .45));
}
.banner__logo {
  position: relative; z-index: 1;
  width: min(78%, 460px); height: auto;
  transform: translateY(-4%);
  filter: drop-shadow(0 6px 18px rgb(0 0 0 / .55));
}
.banner__badge {
  position: absolute; z-index: 2; top: 1rem; right: 1rem;
  background: var(--teal); color: var(--ink);
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .625rem;
  border: 2px solid var(--ink);
}

.banner__body { padding: clamp(1.5rem, 4vw, 2.75rem); }

.banner__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.375rem);
  line-height: 1.1;
}
.banner__title span {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-style: italic;
  font-size: .52em;
  color: var(--paper-dim);
  margin-top: .35rem;
}

.chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; padding: 0;
  margin-top: 1.25rem;
}
.chips li {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--paper-dim);
  border: 1px solid #3a342c;
  border-radius: 999px;
  padding: .3rem .75rem;
}

.banner__lede {
  margin-top: 1.25rem;
  max-width: 46rem;
  color: #d8d2c6;
}

.banner__actions {
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem;
}
.banner__note { font-size: .875rem; color: var(--paper-dim); }

/* --- Store links -------------------------------------------------------- */
.stores { margin-top: clamp(2.5rem, 6vh, 4rem); }
.stores__title {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 1rem;
}
.stores__list {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  list-style: none; padding: 0;
}
.store {
  position: relative;
  display: flex; flex-direction: column; gap: .2rem;
  height: 100%;
  padding: 1.125rem 1.25rem;
  border: 2px solid #2f2922;
  border-radius: var(--radius);
  background: #14110E;
  text-decoration: none;
  transition: transform .16s var(--ease), border-color .16s var(--ease),
              box-shadow .16s var(--ease);
}
a.store:hover {
  transform: translate(-2px, -2px);
  border-color: var(--teal);
  box-shadow: 5px 5px 0 var(--ink);
}
.store__name { font-family: var(--display); font-size: 1.0625rem; }
.store__meta { font-size: .8125rem; color: var(--paper-dim); }
.store__arrow {
  position: absolute; top: 1.125rem; right: 1.125rem;
  width: 1.125rem; height: 1.125rem;
  fill: none; stroke: var(--teal); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.store--soon { opacity: .5; border-style: dashed; }
.store--soon .store__name { color: var(--paper-dim); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { padding-block: clamp(2rem, 5vh, 3.5rem) clamp(3rem, 8vh, 5rem); }
.shots {
  display: grid; gap: clamp(.75rem, 2vw, 1.25rem);
  grid-template-columns: repeat(2, 1fr);
  list-style: none; padding: 0;
}
.shot--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }

.shot__btn {
  position: relative; display: block;
  width: 100%; padding: 0;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink-soft);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              border-color .2s var(--ease);
}
.shot__btn img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.shot--wide .shot__btn img { aspect-ratio: 3 / 1; }
.shot__btn:hover {
  transform: translate(-3px, -3px);
  border-color: var(--teal);
  box-shadow: 8px 8px 0 var(--ink);
}
.shot__zoom {
  position: absolute; bottom: .75rem; right: .75rem;
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  background: color-mix(in srgb, var(--ink-deep) 78%, transparent);
  border: 2px solid var(--paper);
  border-radius: 999px;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.shot__zoom svg {
  width: 1.125rem; height: 1.125rem;
  fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round;
}
.shot__btn:hover .shot__zoom, .shot__btn:focus-visible .shot__zoom { opacity: 1; }

/* --- Lightbox ----------------------------------------------------------- */
.lightbox {
  width: min(94vw, 1400px);
  max-width: none;
  padding: 0;
  border: 3px solid var(--paper);
  border-radius: var(--radius);
  background: var(--ink-deep);
  color: var(--paper);
}
.lightbox::backdrop { background: rgb(6 5 4 / .88); backdrop-filter: blur(3px); }
.lightbox__img { width: 100%; height: auto; }
.lightbox__close {
  position: absolute; top: .625rem; right: .625rem; z-index: 1;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  background: var(--ink-deep);
  border: 2px solid var(--paper);
  border-radius: 999px;
  color: var(--paper);
  cursor: pointer;
}
.lightbox__close svg {
  width: 1.125rem; height: 1.125rem;
  fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round;
}
.lightbox__close:hover { background: var(--red); border-color: var(--red); }

/* ==========================================================================
   Studio
   ========================================================================== */
.studio {
  position: relative;
  padding-block: clamp(4rem, 10vh, 7rem);
  border-block: 1px solid #211c16;
  overflow: hidden;
}
.studio__inner {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 760px) {
  .studio__inner { grid-template-columns: 1fr; justify-items: start; }
  .studio__mark { width: 8rem; }
}
.studio__mark {
  width: 100%; height: auto;
  filter: drop-shadow(0 10px 30px rgb(0 0 0 / .6));
}
.studio__lede { color: var(--paper-dim); max-width: 38rem; }
.studio__lede + .studio__lede { margin-top: .875rem; }
.studio__links { margin-top: 1.5rem; }
.studio__links a {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.studio__links svg {
  width: 1rem; height: 1rem;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding-block: clamp(2.5rem, 6vh, 4rem); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
}
.footer__brand { isolation: isolate; display: flex; align-items: center; gap: .3rem; }
.word--tiny { font-size: 1.375rem; --off: 0.07em; }
.footer__studio {
  background: var(--teal); color: var(--ink);
  font-family: var(--display);
  font-size: .625rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .2rem .4rem .2rem .55rem;
  margin-left: .4rem;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__nav a {
  font-size: .9375rem; font-weight: 600;
  color: var(--paper-dim); text-decoration: none;
}
.footer__nav a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { font-size: .8125rem; color: #6f6a62; margin-left: auto; }
@media (max-width: 760px) { .footer__legal { margin-left: 0; flex-basis: 100%; } }

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, a.store:hover, .shot__btn:hover { transform: none; }
}
