/* Together Group: shared shell styles (site A). Mobile first. */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --paper: #d7dcdf;
  --ink: #313131;
  --muted: #8a8f93;
  --line: rgba(255, 255, 255, 0.14);
  --vault: #f02d2e; /* accent only inside Vault tile/strip */
  --merge: #003cfe;
  --merge-navy: #29228b;
  --merge-ink: #0f0f10;
  --merge-paper: #e3e6ee;
  --embrace-black: #020202;
  --embrace-off: #e1e5dd;
  --embrace-lime: #c9ec01;
  --embrace-grey: #5b604b;
  --font-head: "Inter Tight", Inter, Helvetica, Arial, sans-serif;
  --font-body: Inter, Helvetica, Arial, sans-serif;
  --font-wide: Archivo, Inter, sans-serif;
  --font-cond: Anton, Impact, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --header-h: 64px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
p {
  margin: 0 0 1em;
}
a {
  color: inherit;
  text-underline-offset: 0.18em;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
.section-paper :focus-visible {
  outline-color: var(--ink);
}

/* Accessibility helpers */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip:focus {
  top: 8px;
}

/* Header + nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 102;
}
.brand img {
  width: 230px;
  height: auto;
}
.nav-toggle {
  position: relative;
  z-index: 102;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}
.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.nav {
  display: none;
}
.nav-open {
  overflow: hidden;
}
.nav-open .nav {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
  background: var(--bg);
  overflow-y: auto;
}
.nav-open .nav a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-open .nav .btn {
  margin-top: 24px;
}

@media (min-width: 900px) {
  .brand img {
    width: 300px;
  }
  .nav-toggle {
    display: none;
  }
  .nav,
  .nav-open .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    overflow: visible;
  }
  .nav-open {
    overflow: auto;
  }
  .nav a:not(.btn),
  .nav-open .nav a:not(.btn) {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
  }
  .nav a:not(.btn):hover,
  .nav a[aria-current="page"] {
    text-decoration: underline;
  }
  .nav-open .nav .btn {
    margin-top: 0;
  }
}

/* Buttons */
.btn,
.btn-ghost,
.btn-vault {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid var(--fg);
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  background: transparent;
  color: var(--fg);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
}
.btn-ghost:hover {
  background: var(--fg);
  color: var(--bg);
}
.btn.btn-vault,
.btn-vault {
  background: var(--vault);
  border-color: var(--vault);
  color: #ffffff;
  font-weight: 700;
}
.btn.btn-vault:hover,
.btn-vault:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--vault);
}
.section-paper .btn {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.section-paper .btn:hover {
  background: transparent;
  color: var(--ink);
}
.section-paper .btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.section-paper .btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.section-paper .btn.btn-vault,
.section-paper .btn-vault {
  background: var(--vault);
  border-color: var(--vault);
  color: #ffffff;
}

/* Layout */
.section {
  padding: clamp(56px, 8vw, 120px) 0;
}
.section-paper {
  background: var(--paper);
  color: var(--ink);
}
.section-paper a {
  color: var(--ink);
}
.section-dark {
  background: var(--bg);
  color: var(--fg);
}
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-paper .eyebrow {
  color: var(--ink);
  opacity: 0.75;
}
.h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  max-width: 46ch;
}
.grid-2,
.grid-3 {
  display: grid;
  gap: clamp(16px, 3vw, 32px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}
.section-paper .card {
  border-color: rgba(49, 49, 49, 0.2);
  background: rgba(255, 255, 255, 0.35);
}
.card > :last-child {
  margin-bottom: 0;
}
.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: calc(-1 * clamp(20px, 3vw, 32px)) calc(-1 * clamp(20px, 3vw, 32px))
    4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #111;
}
.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tags + pill */
.tag-vault,
.tag-merge,
.tag-embrace,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-vault {
  background: var(--vault);
  color: #ffffff;
}
.tag-merge {
  background: var(--merge);
  color: #ffffff;
}
.tag-embrace {
  background: var(--embrace-lime);
  color: var(--embrace-black);
}
.pill {
  border: 1px solid currentColor;
}

/* Events */
.event-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.section-paper .event-list,
.section-paper .event-row {
  border-color: rgba(49, 49, 49, 0.2);
}
.event-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.event-date {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.event-tag {
  display: inline-flex;
}
.event-act {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.event-act sup,
.event-act small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.45em;
  letter-spacing: 0.08em;
  vertical-align: super;
}
.event-cta {
  font-size: 0.85rem;
  color: var(--muted);
}
.event-cta .btn,
.event-cta .btn-ghost,
.event-cta .btn-vault {
  min-height: 40px;
  padding: 10px 18px;
}
@media (min-width: 900px) {
  .event-row {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: clamp(20px, 3vw, 40px);
  }
  .event-date {
    min-width: 9em;
  }
  .event-cta {
    text-align: right;
  }
}
.is-past {
  opacity: 0.45;
}
.is-past::after {
  content: "Done";
  position: absolute;
  top: 20px;
  right: 0;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.is-past .event-cta {
  visibility: hidden;
}

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee-track > * {
  flex-shrink: 0;
  padding: 0 0.6em;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track > *::after {
  content: "\00B7";
  padding-left: 1.2em;
  color: var(--muted);
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Video + poster */
.video-wrap {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}
.video-wrap .poster,
.video-wrap .poster img,
.video-wrap > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-wrap video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reels */
.reel-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.reel {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius);
  scroll-snap-align: start;
  background: #0a0a0a;
}
.reel.video-wrap,
.reel .video-wrap {
  height: 100%;
}
@media (min-width: 720px) {
  .reel-row {
    grid-auto-columns: 32%;
  }
}
@media (min-width: 1024px) {
  .reel-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }
}

/* Brand panels */
.brand-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 78vh;
  min-height: 78svh;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0a0a0a;
  isolation: isolate;
}
.brand-panel > .video-wrap,
.brand-panel > .card-media,
.brand-panel > img,
.brand-panel > picture {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
}
.brand-panel > img,
.brand-panel > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
}
.brand-panel-body,
.brand-panel > div:not(.video-wrap):not(.card-media) {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(20px, 3vw, 32px);
}
.brand-panel p {
  margin: 0;
  max-width: 36ch;
}
.brand-panel-vault {
  border-top: 4px solid var(--vault);
}
.brand-panel-merge {
  border-top: 4px solid var(--merge);
}
.brand-panel-embrace {
  border-top: 4px solid var(--embrace-lime);
}
.brand-panel-merge .brand-panel-name,
.brand-panel-merge h3 {
  font-family: var(--font-wide);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.brand-panel-embrace .brand-panel-name,
.brand-panel-embrace h3 {
  display: inline-block;
  padding: 4px 12px;
  background: #ffffff;
  color: var(--embrace-black);
  border: 4px solid var(--embrace-black);
  outline: 2px solid #ffffff;
  font-family: var(--font-cond);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
@media (min-width: 900px) {
  .brand-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .brand-panel {
    min-height: 0;
    aspect-ratio: 9 / 16;
  }
}

/* Press */
.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 32px);
}
.press-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s ease;
  min-width: 0;
}
.press-card:hover {
  border-color: var(--fg);
}
.section-paper .press-card {
  border-color: rgba(49, 49, 49, 0.25);
}
.section-paper .press-card:hover {
  border-color: var(--ink);
}
.press-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.press-grid {
  margin-top: clamp(32px, 4vw, 48px);
}
.press-card .card-media,
.press-band {
  aspect-ratio: 16 / 9;
  margin: calc(-1 * clamp(20px, 3vw, 32px)) calc(-1 * clamp(20px, 3vw, 32px))
    4px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.press-band {
  display: flex;
  align-items: flex-end;
  padding: clamp(16px, 2.5vw, 24px);
  background: var(--paper);
  border-bottom: 1px solid rgba(49, 49, 49, 0.25);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.press-card h3 {
  margin: 0;
}
.press-line {
  margin: 0;
  color: inherit;
  opacity: 0.8;
}
.press-read {
  margin-top: auto;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.press-read::after {
  content: " \2192";
}
@media (min-width: 900px) {
  .press-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .press-card {
    min-height: 26rem;
  }
}

/* Quote */
.quote {
  margin: clamp(40px, 6vw, 80px) 0 0;
  padding: 0;
  max-width: 22ch;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.quote p {
  margin: 0 0 0.4em;
}
.quote cite,
.quote footer,
.quote figcaption {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* TBC marker */
.tbc {
  display: inline-block;
  padding: 0 6px;
  border: 1px dashed var(--vault);
  color: var(--vault);
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* CTA band */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Footer */
.site-footer {
  padding: clamp(48px, 7vw, 96px) var(--gutter) 32px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto 40px;
}
.footer-brand img {
  width: 300px;
  height: auto;
  margin-bottom: 16px;
}
.footer-brand p {
  margin: 0 0 6px;
}
.footer-loc {
  color: var(--muted);
}
.footer-nav,
.footer-social,
.footer-tickets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a,
.footer-social a,
.footer-tickets a {
  width: fit-content;
  text-decoration: none;
}
.footer-nav a:hover,
.footer-social a:hover,
.footer-tickets a:hover {
  text-decoration: underline;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.ack,
.legal {
  max-width: var(--max);
  margin: 0 auto 8px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

/* 404 */
.page-404 {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Reduced motion: posters only, no marquee */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  video {
    display: none !important;
  }
  .marquee-track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    width: auto;
  }
}

/* Print */
@media print {
  .site-header,
  .nav-toggle,
  .skip,
  video,
  .marquee {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}
