/* ============================================================
   PRETTY LOUD, design tokens + base
   ============================================================ */

/* September Spirit Alt (All Caps), licensed brand display face */
@font-face {
  font-family: "September Spirit";
  src: url("assets/fonts/SeptemberSpirit-AllCaps.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* PP Editorial New, Ultrabold (sticker headlines) */
@font-face {
  font-family: "PP Editorial New";
  src: url("assets/fonts/PPEditorialNew-Ultrabold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("assets/fonts/PPEditorialNew-UltraboldItalic.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* palette */
  --pl-blush:        #FCE7EF;   /* page bg */
  --pl-white:        #FFFFFF;
  --pl-deep:         #0C121C;   /* deep bass */
  --pl-power:        #ED7DAF;   /* lipstick pink (soft fills, buttons, washes) */
  --pl-hot:          #DC1F71;   /* power pink (sharp accents, type, icons) */
  --pl-lipstick:     #ED7DAF;
  --pl-soft:         #F5A6AB;
  --pl-mist:         #F6E3E4;
  --pl-paper:        #FDF3F6;   /* off-blush highlight */

  /* type */
  --f-display:       "Playfair Display", "DM Serif Display", Georgia, serif;
  --f-body:          "Montserrat", "Inter", system-ui, sans-serif;
  --f-mono:          "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --f-quote:         "Bodoni Moda", "Playfair Display", Didot, serif;
  --f-sticker:       "September Spirit", "Caveat Brush", "Permanent Marker", cursive;

  /* easing */
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);

  /* layout */
  --max:             1440px;
  --pad-x:           clamp(20px, 5vw, 96px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--pl-blush);
  color: var(--pl-deep);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* paper grain, generated svg, very subtle */
.grain {
  position: relative;
  isolation: isolate;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.07  0 0 0 0 0.11  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.grain > * { position: relative; z-index: 1; }

/* ============================================================
   typography classes
   ============================================================ */
.eyebrow {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pl-hot);
  margin: 0 0 16px;
}
.eyebrow--white { color: var(--pl-white); }
.eyebrow--deep  { color: var(--pl-deep); }

.h-display {
  font-family: var(--f-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.92;
  margin: 0;
}
.h-section {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 0.95;
  font-size: clamp(48px, 8vw, 96px);
  margin: 0;
}
.h-card {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05;
  margin: 0;
}
.body-lg {
  font-family: var(--f-body);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--pl-deep);
  max-width: 52ch;
}
.pull-quote {
  font-family: var(--f-quote);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sticker {
  font-family: var(--f-sticker);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* ============================================================
   STICKER STYLE, Pretty Loud headline accent
   ------------------------------------------------------------
   Use on a word/phrase inside a heading to give it the cut-out
   pink sticker look (PP Editorial New Ultrabold Italic, pink
   fill, thick white border, super-thin black ring around the
   white, soft drop shadow).

   Usage:
     <h2 className="h-section">
       Step inside <em className="sticker-style">the portal.</em>
     </h2>

   Variants:
     .sticker-style         , default thickness
     .sticker-style--tight  , thinner white border for smaller type
   ============================================================ */
.sticker-style,
.sticker-pop /* legacy alias */ {
  font-family: "PP Editorial New", "Fraunces", "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-style: italic;
  color: var(--pl-power);
  -webkit-text-stroke: 0.16em var(--pl-white);
  paint-order: stroke fill;
  /* soft cast shadow for sticker depth */
  filter: drop-shadow(0 0.08em 0.04em rgba(12,18,28,0.14));
  display: inline-block;
  padding: 0 0.06em;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.sticker-style--tight,
.sticker-pop--tight {
  -webkit-text-stroke-width: 0.11em;
}
/* color variants */
.sticker-style--dark { color: var(--pl-deep); }
.sticker-style--pink { color: var(--pl-power); }

/* ============================================================
   buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 18px 28px;
  border: 1px solid var(--pl-deep);
  border-radius: 0;
  background: var(--pl-deep);
  color: var(--pl-white);
  cursor: pointer;
  transition: background 300ms var(--ease-out),
              border-color 300ms var(--ease-out),
              color 300ms var(--ease-out),
              transform 300ms var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--pl-power); border-color: var(--pl-power); transform: translateY(-1px); }

.btn--pink {
  background: var(--pl-power);
  border-color: var(--pl-power);
}
.btn--pink:hover { background: var(--pl-deep); border-color: var(--pl-deep); }

.btn--ghost {
  background: transparent;
  color: var(--pl-deep);
}
.btn--ghost:hover { background: var(--pl-deep); color: var(--pl-white); }

.btn--white {
  background: var(--pl-white);
  border-color: var(--pl-white);
  color: var(--pl-deep);
}
.btn--white:hover { background: var(--pl-power); border-color: var(--pl-power); color: var(--pl-white); }

.btn .arr {
  display: inline-block;
  transition: transform 250ms var(--ease-out);
}
.btn:hover .arr { transform: translateX(3px); }

/* arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pl-deep);
  padding-bottom: 4px;
  position: relative;
  transition: color 250ms var(--ease-out);
}
.arrow-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 250ms var(--ease-out);
}
.arrow-link:hover { color: var(--pl-power); }
.arrow-link:hover::after { transform: scaleX(1); }
.arrow-link .arr { transition: transform 220ms var(--ease-out); }
.arrow-link:hover .arr { transform: translateX(4px); }

/* ============================================================
   reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   layout helpers
   ============================================================ */
.section {
  padding: clamp(80px, 9vw, 140px) var(--pad-x);
  position: relative;
}
.section--dark {
  background: var(--pl-deep);
  color: var(--pl-white);
}
.section--mist { background: var(--pl-mist); }
.section--white { background: var(--pl-white); }

.container {
  max-width: var(--max);
  margin: 0 auto;
}

/* ============================================================
   image placeholder, soft pink gradient w/ noise + label
   ============================================================ */
.img-ph {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255,255,255,0.5), transparent 55%),
    linear-gradient(135deg, var(--pl-soft) 0%, var(--pl-lipstick) 50%, var(--pl-power) 100%);
  color: var(--pl-white);
}
.img-ph.var-1 {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255,255,255,0.45), transparent 55%),
    linear-gradient(165deg, var(--pl-lipstick) 0%, var(--pl-power) 60%, var(--pl-deep) 100%);
}
.img-ph.var-2 {
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(237,125,175,0.7), transparent 60%),
    linear-gradient(135deg, #2a1620 0%, #4a1d34 50%, var(--pl-power) 100%);
}
.img-ph.var-3 {
  background:
    radial-gradient(60% 40% at 30% 30%, rgba(255,255,255,0.55), transparent 60%),
    linear-gradient(200deg, var(--pl-mist) 0%, var(--pl-soft) 60%, var(--pl-lipstick) 100%);
}
.img-ph.var-4 {
  background:
    linear-gradient(135deg, var(--pl-deep) 0%, #2a1f2c 50%, var(--pl-power) 100%);
}
.img-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.img-ph .ph-label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 6px 10px;
  background: rgba(12,18,28,0.45);
  backdrop-filter: blur(4px);
  z-index: 2;
}
.img-ph .ph-id {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--f-mono);
  font-size: 56px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1;
  letter-spacing: -0.02em;
  z-index: 2;
}

/* image hover treatment: duotone -> full */
.img-hover {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.img-hover .img-ph {
  width: 100%; height: 100%;
  transition: transform 600ms var(--ease-out), filter 500ms var(--ease-out);
}
.img-hover:hover .img-ph { transform: scale(1.04); filter: saturate(1.2) contrast(1.05); }

/* When an image-slot inside has been filled (user dropped/clicked-upload an image),
   hide the placeholder gradient + labels + noise so the real photo takes over. */
.img-ph--slot:has(image-slot[data-filled]) {
  background: transparent !important;
}
.img-ph--slot:has(image-slot[data-filled])::before { display: none; }
.img-ph--slot:has(image-slot[data-filled]) .ph-label,
.img-ph--slot:has(image-slot[data-filled]) .ph-id { display: none; }

/* Make image-slot's empty-state click affordance visible on hover */
.img-ph--slot image-slot {
  cursor: pointer;
}

/* image-slot uses internal frame border-radius via its `radius` attribute ,
   our .img-ph wrapper has border-radius, so make sure the slot's internal
   frame stays seamless with it. */
.img-ph--slot image-slot::part(frame) { border-radius: inherit; }

/* ============================================================
   tape, real torn-paper photograph
   ============================================================ */
.tape {
  position: absolute;
  width: 140px;
  height: 38px;
  background-image: url("assets/tape.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 2px 4px rgba(12,18,28,0.18));
  pointer-events: none;
  z-index: 4;
  /* no border-radius, no inset borders, it's a real cutout */
}
.tape--pink {
  /* leave the same photo, the pink tones come from the polaroid behind */
}
.tape--hot {}

/* ============================================================
   marquees
   ============================================================ */
.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
  animation: marq 38s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   real-photo textures (used surgically)
   ============================================================ */

/* Grid paper, light, editorial. Soft blush tint comes through. */
.tex-grid {
  position: relative;
  isolation: isolate;
  background-color: var(--pl-blush);
}
.tex-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/tex-grid.jpg");
  background-size: 800px auto;
  background-position: center;
  background-repeat: repeat;
  opacity: 0.42;
  mix-blend-mode: multiply;
}
.tex-grid > * { position: relative; z-index: 1; }

/* same texture but on a mist background */
.tex-grid--mist { background-color: var(--pl-mist); }
.tex-grid--mist::before { opacity: 0.36; }

/* Grunge wall, dark, premium. Stone-like over Deep Bass. */
.tex-grunge {
  position: relative;
  isolation: isolate;
  background-color: var(--pl-deep);
}
.tex-grunge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/tex-grunge.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
  mix-blend-mode: lighten;  /* lifts the dark, keeps blacks black-ish */
}
.tex-grunge > * { position: relative; z-index: 1; }

/* a smaller-tile (repeating) version for footer/strip use */
.tex-grunge--tile::before {
  background-size: 1000px auto;
  background-repeat: repeat;
  opacity: 0.4;
}

/* warm tint that hits the grunge so it reads bass-pink not blue */
.tex-grunge::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(80% 60% at 50% 35%, rgba(237,125,175,0.06), transparent 65%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee__track { animation: none; }
}

/* ============================================================
   GLOBAL MOBILE RESPONSIVENESS
   Prevent horizontal scroll, tighten sizes, retain impact.
   ============================================================ */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

img, video, svg { max-width: 100%; height: auto; }

/* visually-hidden, screen-reader + SEO accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tablet: keep desktop layouts but ease the typography */
@media (max-width: 1100px) {
  :root {
    --pad-x: clamp(20px, 5vw, 64px);
  }
}

/* Mobile: <=720 — strong restructure */
@media (max-width: 720px) {
  :root {
    --pad-x: 20px;
  }

  .section {
    padding: clamp(56px, 12vw, 88px) var(--pad-x);
  }

  /* heading scale: keep impact but fit in viewport */
  .h-display { font-size: clamp(40px, 13vw, 72px); line-height: 0.98; }
  .h-section { font-size: clamp(40px, 12vw, 64px) !important; line-height: 0.95; }
  .h-card    { font-size: clamp(22px, 6vw, 28px); }
  .body-lg   { font-size: 16px; line-height: 1.55; }
  .pull-quote { font-size: clamp(22px, 6.6vw, 32px) !important; }

  /* sticker accents — keep distinct, but smaller so they don't push */
  .sticker, .sticker-style, .sticker-pop {
    font-size: clamp(48px, 14vw, 84px) !important;
    line-height: 1.0;
  }
  /* stop two-line sticker headings overlapping the line above */
  .sticker-style, .sticker-pop {
    display: inline-block;
    margin-top: 0.12em;
  }
  /* Meet Us — IRL much bigger on mobile */
  .meet-irl {
    font-size: clamp(140px, 44vw, 240px) !important;
    line-height: 0.6 !important;
  }
  /* HQ location label stays tiny (not a giant sticker) */
  .hq-loc {
    font-size: 11px !important;
    letter-spacing: 0.16em !important;
    display: block !important;
    margin: 12px 0 0 !important;
  }
  .hq-head { line-height: 1.14 !important; }

  /* buttons — full width on mobile for tappable hits */
  .btn {
    padding: 14px 22px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
  }
  /* let inline button groups still wrap nicely */
  .btn-inline, .btn-row { display: flex; flex-direction: column; gap: 12px; }

  /* eyebrows — slightly smaller letter-spacing so they don't push */
  .eyebrow { letter-spacing: 0.14em; font-size: 10px; }

  /* containers — force grids to single column except marquee */
  .container { width: 100%; }

  /* Tier folder: keep tabs side-by-side like desktop, just tighter */
  .tier-folder .tab-row { flex-direction: row !important; }
  .tier-folder .tier-tab {
    padding: 14px 14px !important; font-size: 11px !important;
  }
  .tier-folder .tier-tab span:first-child { font-size: 13px !important; }
  .tier-folder .tier-tab-status { display: none !important; }
  .tier-folder .tier-panel { padding: clamp(28px, 6vw, 40px) !important; }
  /* both tab labels wrap "Membership" to a second line → equal tab height */
  .tier-folder .tier-tab { align-items: flex-start !important; }
  .tier-tab-word { display: block; }

  /* Pricing: one inclusion per line, keep currency pill on a single line */
  .incl-grid { grid-template-columns: 1fr !important; }
  .usd-pill { flex-wrap: nowrap !important; gap: 10px !important; padding: 9px 14px !important; max-width: 100%; }
  .usd-pill .usd-date { display: none !important; }

  /* Press section: cards stack with proper padding */
  .press-grid { gap: 36px !important; }

  /* Founders: prevent fixed widths */
  .founders-layout { padding: 0 !important; }

  /* Newsletter form: stacked */
  .nl-form input, .nl-form button { width: 100%; }

  /* Polaroid: shrink and centre */
  .polaroid { max-width: 240px !important; margin: 0 auto !important; transform: rotate(-2deg) !important; }

  /* Tier polaroid sticker fits within smaller frame */
  .tier-polaroid-side .polaroid { max-width: 220px; }

  /* Proof Bar: stack the big stats so giant numerals never overflow */
  .proof-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .proof-num { font-size: clamp(72px, 24vw, 120px) !important; }

  /* What We Do 2×2 image grid: keep 2 columns but tighten gap */
  .wwd-grid { gap: 10px !important; }

  /* center the secondary CTAs (Email Us / Get In Touch) on mobile */
  .portal-cta, .partner-cta {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }
  .portal-cta .arrow-link, .partner-cta .partner-secondary { align-self: center; }

  /* Founders: center faces in the open space, cards below */
  .founders-bg img { object-position: 50% 40% !important; }
  .founder-slot--amy { margin-top: 150px !important; }
}

/* Extra small: <=420 — squeeze even more */
@media (max-width: 420px) {
  .h-display { font-size: clamp(36px, 12vw, 56px); }
  .h-section { font-size: clamp(36px, 11.5vw, 52px) !important; }
  .sticker, .sticker-style, .sticker-pop { font-size: clamp(40px, 13vw, 64px) !important; }
}
