/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Base theme */
:root {
  color-scheme: light;
  --teal: #0BA4BF;
  --orange: #FF6600;
  --black: #000000;
  --muted: #888888;
  --muted-15: #BBBBBB;
  --text: #000000;
  --bg: #FFFFFF;
  --ring: rgba(11, 164, 191, 0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
@supports (scrollbar-width: none) {
  html {
    scrollbar-width: none;
  }
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
body {
  margin: 0;
  font-family: "Instrument Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.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;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: transparent;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display:flex; align-items:center; color:var(--text); text-decoration:none; }
.brand-logo { height: 38px; width: auto; }
.nav { display:flex; gap: 12px; }
.btn { display:inline-flex; align-items:center; justify-content:center; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn-outline { color: var(--teal); border: 1px solid var(--teal); background: transparent; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: 0.01em; }
.btn-outline:hover { background: rgba(11,164,191,0.06); }
.btn-primary { color: #fff; background: var(--orange); border: 1px solid #e95f00; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-success { color: #fff; background: var(--teal); border: 1px solid var(--teal); }
.btn-success:hover { filter: brightness(1.05); }

/* Hero */
.hero { padding: 24px 0 0; }
.hero-inner { text-align: center; padding-top: 16px; }
.limited-badge { display: inline-block; height: 32px; width: auto; margin-bottom: 8px; }
.hero-title {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.05;
  margin: 18px 0 12px;
}
.hero-discover { position: relative; display: inline-block; padding-right: 8px; }
.hero-discover .discover-mouse {
  position: absolute;
  left: -26%;
  top: -34%;
  width: clamp(50px, 6vw, 84px);
  pointer-events: none;
}
.serif { font-family: "Instrument Serif", Georgia, serif; }
.cloudyo { font-family: "Modak", display; color: var(--teal); font-weight: 400; letter-spacing: 1px; }
.limited { color: var(--orange); font-family: "Jersey 25", display; font-weight: 400; letter-spacing: 1px; }

/* Waitlist form */
.waitlist { width: min(640px, 100%); margin: 12px auto 0; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.waitlist input[type="email"] {
  height: 52px; padding: 0 20px; border-radius: 50px;
  background: #f5f5f5; color: var(--black);
  border: 1px solid #e6e6e6;
  outline: none; box-shadow: 0 0 0 0 var(--ring);
}
.waitlist input[type="email"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 6px var(--ring);
}
.waitlist button {
  cursor: pointer;
  border-radius: 50px;
  width: 186px;
  height: 50px;
}
.waitlist button:disabled { opacity: .7; cursor: not-allowed; }

.consent { display:flex; align-items:flex-start; gap:10px; margin: 12px 2px 0; color: var(--muted); font-size: 14px; }
.consent a { color: var(--teal); text-underline-offset: 2px; }

.feedback { min-height: 22px; margin: 8px 2px 0; font-size: 14px; }
.feedback.ok { color: #5CE0A0; }
.feedback.err { color: #ff8b8b; }

/* Visual banner - Layered tees */
.hero-visual {
  margin-top: 48px;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  justify-content: center;
  overflow: hidden;
  --hero-width: clamp(280px, calc(100vw - 32px), 1660px);
  --hero-height: calc(var(--hero-width) * 699 / 1660);
}
.tees-stack {
  position: relative;
  width: var(--hero-width);
  height: var(--hero-height);
}
.tees-stack img { height: auto; display: block; }
.tees-stack-static {
  display: none;
  width: 100%;
  margin: 0 auto;
}
.tees-stack-static img {
  width: 100%;
  height: auto;
  display: block;
}
.tee-bg {
  position: absolute;
  top: calc(var(--hero-height) * 142 / 699);
  left: calc(var(--hero-width) * -6 / 1660);
  width: var(--hero-width);
  height: calc(var(--hero-height) * 482 / 699);
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}
.tee-center {
  position: absolute;
  top: 0;
  left: calc(var(--hero-width) * 420 / 1660);
  width: calc(var(--hero-width) * 820 / 1660);
  z-index: 3;
  pointer-events: none;
}
.tee-left {
  position: absolute;
  top: calc(var(--hero-height) * -32 / 699);
  left: calc(var(--hero-width) * -200 / 1660);
  width: calc(var(--hero-width) * 620 / 1660);
  z-index: 2;
  pointer-events: none;
}
.tee-right {
  position: absolute;
  top: calc(var(--hero-height) * -32 / 699);
  right: calc(var(--hero-width) * -200 / 1660);
  width: calc(var(--hero-width) * 620 / 1660);
  z-index: 2;
  pointer-events: none;
}

/* Carousel section */
.carousel-section { padding: 88px 0 32px; background: var(--bg); width: 100%; overflow: hidden; }
.carousel-container { width: 100%; overflow-x: auto; overflow-y: hidden; cursor: grab; scroll-behavior: smooth; -webkit-user-select: none; user-select: none; touch-action: auto; }
.carousel-container.dragging { cursor: grabbing; }
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 10px; width: max-content; }
.carousel-shot { width: 320px; height: 320px; object-fit: cover; border-radius: 25px; flex-shrink: 0; pointer-events: none; }

/* Footer */
.site-footer { background: #f7f7f7; border-top: 1px solid #eee; margin-top: 24px; }
.footer-inner {
  padding: 32px 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "brand legal"
    "brand social"
    "copy copy";
  row-gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.footer-brand { grid-area: brand; display: flex; flex-direction: column; gap: 8px; max-width: 280px; }
.footer-logo { width: 61px; height: 50px; }
.dream-quote { font-family: "Instrument Serif", Georgia, serif; font-size: 18px; margin: 4px 0; color: var(--text); }

.footer-legal { grid-area: legal; justify-self: end; text-align: right; }
.footer-legal strong { display: block; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; margin-bottom: 6px; color: var(--text); }
.footer-legal ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-family: "Instrument Sans", sans-serif; }
.footer-inner a { color: var(--black); text-decoration: none; transition: color 0.2s ease; }
.footer-inner a:hover { text-decoration: underline; }

.footer-social-links {
  grid-area: social;
  justify-self: end;
  display: flex;
  gap: 8px; /* Reduced gap */
  padding: 0; margin: 0;
  list-style: none;
  align-items: center;
}
.footer-social-links li { display: flex; }
.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.footer-social-links img {
  width: 24px;
  height: 24px;
  display: block;
  filter: grayscale(1);
  opacity: 0.6;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}
.footer-social-links a:hover img,
.footer-social-links a:focus-visible img {
  transform: scale(1.08);
  filter: none;
  opacity: 1;
}

.footer-copy { grid-area: copy; margin: 24px 0 0; color: var(--muted); font-size: 13px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero { padding: 16px 0 0; }
  .hero-inner { padding-top: 12px; }
  .hero-title { font-size: clamp(36px, 6vw, 60px); }
  .waitlist { width: min(520px, 100%); }
  .tees-stack { display: none; }
  .tees-stack-static { display: block; }
  .tee-bg {
    left: calc(var(--hero-width) * -60 / 1660);
    width: calc(var(--hero-width) * 1.08);
    height: calc(var(--hero-height) * 520 / 699);
    top: calc(var(--hero-height) * 120 / 699);
  }
  .tee-center {
    top: calc(var(--hero-height) * -12 / 699);
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--hero-width) * 860 / 1660);
  }
  .tee-left {
    left: calc(var(--hero-width) * -150 / 1660);
    width: calc(var(--hero-width) * 660 / 1660);
    top: calc(var(--hero-height) * -24 / 699);
  }
  .tee-right {
    right: calc(var(--hero-width) * -150 / 1660);
    width: calc(var(--hero-width) * 660 / 1660);
    top: calc(var(--hero-height) * -24 / 699);
  }
}

@media (max-width: 780px) {
  .pill { font-size: 12px; padding: 6px 10px; }
  .hero-title { font-size: clamp(32px, 7vw, 50px); }
  .hero-discover .discover-mouse { left: -30%; top: -40%; width: clamp(44px, 8vw, 70px); }
  .waitlist { width: min(460px, 100%); }
  .tee-bg {
    left: calc(var(--hero-width) * -80 / 1660);
    width: calc(var(--hero-width) * 1.14);
    height: calc(var(--hero-height) * 540 / 699);
    top: calc(var(--hero-height) * 118 / 699);
  }
  .tee-center {
    top: calc(var(--hero-height) * -22 / 699);
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--hero-width) * 900 / 1660);
  }
  .tee-left {
    left: calc(var(--hero-width) * -110 / 1660);
    width: calc(var(--hero-width) * 680 / 1660);
    top: calc(var(--hero-height) * -16 / 699);
  }
  .tee-right {
    right: calc(var(--hero-width) * -110 / 1660);
    width: calc(var(--hero-width) * 680 / 1660);
    top: calc(var(--hero-height) * -16 / 699);
  }
}

@media (max-width: 900px) {
  /* Removed old footer styles */
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand legal"
      "social social"
      "copy copy";
    row-gap: 24px;
  }
  .footer-social-links { justify-self: center; }
  .footer-copy { text-align: center; }

  .hero-visual {
    --hero-width: clamp(360px, calc(100vw + 160px), 1820px);
    --hero-height: calc(var(--hero-width) * 720 / 1660);
  }
  .input-row { grid-template-columns: 1fr; }
  .waitlist button { width: 100%; }
  .waitlist input[type="email"] { font-size: 16px; }
  .hero-discover { padding-right: 4px; }
  .hero-discover .discover-mouse { left: -32%; top: -42%; width: clamp(40px, 10vw, 62px); }
  .tee-bg {
    left: calc(var(--hero-width) * -200 / 1660);
    width: calc(var(--hero-width) * 1.32);
    height: calc(var(--hero-height) * 580 / 699);
    top: calc(var(--hero-height) * 112 / 699);
  }
  .tee-center {
    top: calc(var(--hero-height) * -40 / 720);
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--hero-width) * 1020 / 1660);
  }
  .tee-left {
    left: calc(var(--hero-width) * -120 / 1660);
    width: calc(var(--hero-width) * 760 / 1660);
    top: calc(var(--hero-height) * -36 / 720);
  }
  .tee-right {
    right: calc(var(--hero-width) * -120 / 1660);
    width: calc(var(--hero-width) * 760 / 1660);
    top: calc(var(--hero-height) * -36 / 720);
  }
  .carousel-shot { width: 280px; height: 280px; }
  .footer-main { flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
  .footer-brand { flex: 1 1 auto; align-items: flex-start; text-align: left; }
  .footer-links { margin-left: auto; flex-direction: column; align-items: flex-end; gap: 12px; }
  .footer-legal { text-align: right; }
  .footer-legal ul { align-items: flex-end; }
  .footer-social-links { justify-content: flex-end; }
  .footer-copy { text-align: center; }
}
