/* ============================================================
   WOO — "We are independent" landing page
   Design tokens taken straight from the Figma variables.
   ============================================================ */

:root {
  --white: #ffffff;
  --neutral-darkest: #1d1f21;
  --neutral-darker: #0d242b;
  --black: #000000;
  --stage: #20002d;
  --primary: #00a8c4;   /* WOO brand teal — woosports.com --color-primary */

  --container: 1280px;
  --page-padding: 64px;
  --radius-full: 9999px;

  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
}

/* Signature font for "— The WOO Team" (NOTE: demo license — buy before go-live) */
@font-face {
  font-family: "Henus";
  src: url("assets/henus.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--neutral-darkest);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

h1, h2 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--page-padding) * 2);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

/* ---------- WOO logo (single SVG used as a recolourable mask) ---------- */
.woo-logo {
  display: inline-block;
  height: 32px;
  aspect-ratio: 94 / 31.882;
  background-color: currentColor;
  -webkit-mask: url("assets/woo-logo.svg") no-repeat center / contain;
          mask: url("assets/woo-logo.svg") no-repeat center / contain;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--neutral-darkest);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.btn--outline { background: transparent; color: var(--neutral-darkest); }
.btn--outline:hover { background: var(--neutral-darkest); color: var(--white); }
.btn--solid { background: var(--neutral-darkest); color: var(--white); }
.btn--solid:hover { background: #000; }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  background-color: #e4e4e7;
  background-image: linear-gradient(135deg, #ececef 0%, #d9d9de 100%);
  overflow: hidden;
}
.ph[data-ph]::after {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: pre-line;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: #9a9aa2;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120; /* keep the header (logo + morphing toggle) above the menu overlay */
  background: var(--white);
  color: var(--neutral-darkest);
  transition: transform .3s ease;
}
/* Hidden while scrolling down; slides back in as soon as you scroll up */
.site-header.is-hidden { transform: translateY(-100%); }
.header-logobar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-logo-link { display: inline-flex; }
.header-logobar .woo-logo { height: 39px; }

.header-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}
.nav-list a {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--neutral-darker);
  transition: color .2s ease;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--primary);
}

/* Mobile header bar + full-screen menu overlay */
.mobile-bar {
  display: none;
  position: relative;
  height: 64px;
  align-items: center;
  padding-inline: 20px;
  color: var(--neutral-darkest);
}
.mobile-logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
}
.mobile-bar .woo-logo { height: 24px; }

/* Hamburger button that morphs into an X (driven by aria-expanded) */
.menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: -8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--neutral-darkest);
  cursor: pointer;
}
.menu-toggle__box { position: relative; width: 24px; height: 16px; }
.menu-toggle__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: top .3s ease, transform .3s ease, opacity .2s ease;
}
.menu-toggle__line:nth-child(1) { top: 0; }
.menu-toggle__line:nth-child(2) { top: 7px; }
.menu-toggle__line:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Full-screen menu overlay that fades in below the header bar */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--white);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease;
}
.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 88px 20px 40px;
  display: flex;
  flex-direction: column;
  transform: translateY(-6px);
  transition: transform .3s ease;
}
.mobile-menu.is-open .mobile-menu__list { transform: translateY(0); }
.mobile-menu__list a {
  display: block;
  padding: 8px 0;
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--neutral-darkest);
  transition: color .15s ease;
}
.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible { color: var(--primary); }

/* ============================================================
   VISION HERO — editorial opening statement (on white)
   ============================================================ */
/* Sits inside the dark gradient band, between the statement and the team */
.vision {
  padding-block: clamp(40px, 7vw, 80px) clamp(48px, 8vw, 96px);
}
.vision__inner {
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}
.vision__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.08;
  color: var(--white);
  text-wrap: balance;
}
.vision__body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
  max-width: 680px;
}
/* Founder polaroid — small portrait accent below the vision copy */
.polaroid {
  align-self: flex-start;
  margin: clamp(8px, 2vw, 20px) 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.polaroid__frame {
  width: clamp(192px, 22vw, 220px);
  background: var(--white);
  padding: 6px 6px 18px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(13, 36, 43, .12);
}
.polaroid__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.polaroid__caption {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .55);
}

/* Scroll reveal — content blocks rise and fade in as they enter the viewport.
   data-reveal (optional number = stagger step of 200ms within the section).
   Hidden states apply only with JS and only when motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); }
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

/* ============================================================
   STATEMENT — framed announcement with filing date
   ============================================================ */
/* Dark gradient band shared by the statement and "Nothing changes" */
.dark-band {
  background: linear-gradient(to bottom, #20002d 0%, var(--neutral-darker) 100%);
  color: var(--white);
}
.statement {
  padding-block: clamp(72px, 11vw, 128px) clamp(40px, 7vw, 72px);
}
.statement__card {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 2px;
  padding: clamp(48px, 7vw, 68px) clamp(28px, 5vw, 56px) clamp(36px, 5vw, 52px);
}
/* Filing date — small technical annotation in the top corner */
.statement__date {
  position: absolute;
  top: clamp(18px, 3vw, 26px);
  right: clamp(24px, 4vw, 40px);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.statement__body {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
}
.statement__body p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
}
.statement__signature {
  margin-top: clamp(24px, 3vw, 36px);
  font-family: "Henus", var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: var(--white);
}

/* ============================================================
   HERO — WOO IS INDEPENDENT (purple striped stage)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--stage);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(120px, 22vw, 240px) clamp(100px, 20vw, 210px);
}
/* soft purple wash over the top, blending the fade band into the stripes */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 55%;
  background: linear-gradient(to bottom, var(--stage) 0%, rgba(32, 0, 45, 0) 100%);
  z-index: 1;
}
/* Scroll curtain — with JS and motion allowed the hero gets a tall runway and
   pins while the stripes (the curtain, above the text) slide away on scroll. */
.hero__sticky { display: contents; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero {
    display: block;
    height: 240vh;
    padding-block: 0;
    overflow: clip;
  }
  .js .hero::before { content: none; }
  .js .hero__sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
  /* the wash moves onto the pinned viewport; invisible once the curtain is gone */
  .js .hero__sticky::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 55%;
    background: linear-gradient(to bottom, var(--stage) 0%, rgba(32, 0, 45, 0) 100%);
    z-index: 4;
    pointer-events: none;
  }
  /* stripes become the curtain: above the content, backdrop stays on .hero */
  .js .hero__stage {
    background: transparent;
    z-index: 3;
    pointer-events: none;
  }
  /* overlap the stripes 1px so no sub-pixel seams reveal the text behind */
  .js .stripe { will-change: transform; margin-right: -1px; }
  /* subtle scroll cue at the bottom of the closed curtain */
  .js .hero__scroll-hint {
    display: block;
    position: absolute;
    bottom: 110px;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-right: 2px solid rgba(255, 255, 255, .55);
    border-bottom: 2px solid rgba(255, 255, 255, .55);
    z-index: 5;
    pointer-events: none;
    animation: scroll-hint-bob 2.2s ease-in-out infinite;
    transition: opacity .4s ease;
  }
  .js .hero__scroll-hint.is-hidden { opacity: 0; }
}
.hero__scroll-hint { display: none; }
@keyframes scroll-hint-bob {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: .8; }
  50%      { transform: translateY(9px) rotate(45deg); opacity: .35; }
}
.hero__stage {
  position: absolute;
  inset: 0;
  display: flex;
  background: var(--stage);
}
.stripe { flex: 1 0 0; }
.stripe:nth-child(1), .stripe:nth-child(9) { background: linear-gradient(to bottom, #2b013b 0%, #2b013b 55%, #20002d 100%); }
.stripe:nth-child(2), .stripe:nth-child(8) { background: linear-gradient(to bottom, #44015e 0%, #3d0154 55%, #20002d 100%); }
.stripe:nth-child(3), .stripe:nth-child(7) { background: linear-gradient(to bottom, #5f0183 0%, #4f016c 55%, #20002d 100%); }
.stripe:nth-child(4), .stripe:nth-child(6) { background: linear-gradient(to bottom, #7c00ab 0%, #600084 55%, #20002d 100%); }
.stripe:nth-child(5)                       { background: linear-gradient(to bottom, #a000dd 0%, #72009d 55%, #20002d 100%); }

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-inline: 24px;
  text-align: center;
}
.hero__heading {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero__logo { height: clamp(52px, 10vw, 80px); color: var(--white); }
.hero__tagline {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.2;
}
.hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.5vw, 1.375rem);
  letter-spacing: .01em;
}

/* ============================================================
   PERSONS — team members
   ============================================================ */
.persons {
  color: var(--white);
  padding-block: clamp(48px, 8vw, 80px) clamp(120px, 20vw, 220px);
}
.persons__head {
  max-width: 600px;
  margin: 0 auto clamp(48px, 7vw, 80px);
  padding-inline: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.persons__head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.persons__head p { font-size: 18px; color: rgba(255, 255, 255, .8); }
.persons__head a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.persons__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
/* Card: photo on top, text below */
.person {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.person__photo { width: 100%; max-width: 180px; height: auto; aspect-ratio: 210 / 280; object-fit: cover; }
/* Wide screens: the three team members side by side */
@media (min-width: 900px) {
  .persons__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(32px, 4vw, 56px);
  }
  .person { max-width: none; }
  .person__photo { max-width: 200px; }
}
.person__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.person__meta {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--white);
  padding-left: 12px;
  font-size: 18px;
  line-height: 1.5;
  font-style: normal;
}
.person-name { font-weight: 500; }
.person-role { font-weight: 400; color: rgba(255, 255, 255, .6); }
.person__desc { font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, .75); }

/* ============================================================
   PARTNER — Independent doesn't mean alone
   ============================================================ */
.partner {
  background: var(--white);
  padding-block: clamp(72px, 12vw, 112px);
}
.partner__inner {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.partner__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  color: var(--black);
}
.partner__content h2 { font-size: clamp(2rem, 5vw, 3rem); }
.partner__content p { font-size: 18px; line-height: 1.5; }
.partner__photo { flex: 1 1 0; min-width: 0; aspect-ratio: 600 / 640; object-fit: cover; display: block; }

/* ============================================================
   GALLERY — infinite auto-scrolling carousel
   ============================================================ */
.gallery {
  background: var(--white);
  padding-block: clamp(24px, 4vw, 40px);
  overflow: hidden;
}
.gallery__strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: max-content;
  animation: gallery-scroll 40s linear infinite;
}
.gallery__item {
  flex: 0 0 auto;
  width: 280px;
  height: 317px;
  margin-right: 18px;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__strip { animation: none; }
}

/* ============================================================
   COMING — Something's coming
   ============================================================ */
.coming {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding-block: clamp(80px, 12vw, 120px);
}
.coming__photo {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: min(520px, 44vw);
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.coming__inner { position: relative; z-index: 1; }
.coming__content {
  max-width: 768px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.coming__content > p { font-size: 18px; color: var(--black); }
.coming__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(3rem, 12vw, 6.125rem);
  line-height: .9;
  color: var(--black);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--neutral-darker);
  color: var(--white);
  padding-block: clamp(56px, 8vw, 80px);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
}
.footer__links {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.footer__brand { flex: 1 1 0; padding-block: 8px; }
.footer__logo { height: 36px; color: var(--white); }

.footer__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.footer__col a {
  font-size: 14px;
  padding-block: 8px;
  color: var(--white);
  transition: opacity .15s ease;
}
.footer__col a:hover { opacity: .6; }
.footer__col--primary a { font-size: 16px; font-weight: 600; }
.footer__heading {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 8px;
}

.footer__credits {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.copyright { margin: 0; font-size: 14px; }
.copyright .muted { color: rgba(255, 255, 255, .4); }

/* ============================================================
   PARTNER / CONTACT POPUP
   ============================================================ */
.partner-modal {
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  width: min(440px, calc(100% - 40px));
  background: var(--white);
  color: var(--neutral-darker);
  box-shadow: 0 24px 60px rgba(13, 36, 43, .3);
}
.partner-modal::backdrop { background: rgba(13, 36, 43, .55); }
.partner-modal[open] { animation: modal-in .22s ease-out; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.partner-modal__card {
  position: relative;
  padding: 44px 32px 32px;
  text-align: center;
}
.partner-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--neutral-darker);
  cursor: pointer;
  transition: background-color .15s ease;
}
.partner-modal__close:hover { background: rgba(13, 36, 43, .07); }
.partner-modal__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 12px;
}
.partner-modal__text {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.partner-modal__email {
  white-space: normal;
  max-width: 100%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --page-padding: 32px; }
  .partner__inner { flex-direction: column; align-items: stretch; }
  .partner__photo { width: 100%; aspect-ratio: 3 / 2; }
}

@media (max-width: 820px) {
  .footer__links { flex-wrap: wrap; }
  .footer__brand { flex-basis: 100%; }
  .footer__col { flex-basis: calc(33.333% - 27px); }
}

@media (max-width: 768px) {
  .header-logobar,
  .header-nav { display: none; }
  .mobile-bar { display: flex; }
}

@media (max-width: 640px) {
  :root { --page-padding: 20px; }
  .nav-list { gap: 16px 20px; flex-wrap: wrap; justify-content: center; }
  .coming__photo { display: none; }
  .footer__col { flex-basis: calc(50% - 20px); }
  .footer__credits { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .footer__col { flex-basis: 100%; }
}
