/* ==========================================================================
   PARTEMS — site styles: nav, Home split, About, Offer, footer
   ========================================================================== */

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .55rem; }
/* The mark: two arms reaching in from either side and hooking into each other.
   Red is the creator, the light one the brand; .m-gap cuts the crossing so they weave. */
.mark { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.mark .m-a { stroke: var(--accent-2, #E63946); }
.mark .m-b { stroke: var(--fg, #F4F1F0); }
.mark .m-gap { stroke: var(--bg, #090909); stroke-width: 5.8; }
.mark .m-cut { stroke-linecap: butt; }

.logo__mark { width: 36px; height: 36px; filter: drop-shadow(0 0 6px var(--glow, rgba(230, 57, 70, .55))); }
.logo__word {
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-shadow: 0 0 10px var(--glow, rgba(230, 57, 70, .55)), 0 0 26px var(--glow, rgba(230, 57, 70, .55));
}
html[data-audience="brand"] .logo__word {
  text-shadow: 0 0 10px rgba(197, 31, 56, .35), 0 0 24px rgba(197, 31, 56, .25);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line-2); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }

.icon-chat {
  width: 1.05em; height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
}
.nav__end { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }

.tabs { position: relative; display: flex; gap: .25rem; }
.tabs a {
  padding: .6rem 1rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s;
}
.tabs a:hover, .tabs a[aria-current="page"] { color: var(--fg); }
.tabs__bar {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--accent-2);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}

/* Creator / Brand switch */
.switch {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.switch button {
  position: relative;
  z-index: 1;
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .3s;
}
.switch button:hover { color: var(--fg); }
.switch button[aria-pressed="true"] { color: var(--accent-ink); }
.switch__thumb {
  position: absolute;
  top: 3px; bottom: 3px; left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s;
}
.switch.is-set .switch__thumb { opacity: 1; }
.switch--lg button { padding: .65rem 1.3rem; font-size: .95rem; }

/* ---------- Views ---------- */
.view { min-height: calc(100svh - var(--nav-h)); }

[data-rise] {
  animation: rise 1s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms + 60ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
}

::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ==========================================================================
   HOME — two halves, pick one
   ========================================================================== */
.view--home { display: flex; flex-direction: column; }

.home__title {
  padding: .9rem var(--gutter);
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  font-weight: 500;
  text-align: center;
  color: var(--fg);
}
.home__title span { color: var(--muted); }

.split {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 560px;
}

.half {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  transition: flex-grow 1s var(--ease);
}

/* Each half keeps its own colors, whatever the page theme */
.half--creator {
  --bg: #090909; --fg: #F4F1F0;
  --muted: rgba(244, 241, 240, .66);
  --line-2: rgba(244, 241, 240, .3);
  --accent: #C51F38; --accent-2: #E63946; --accent-ink: #F4F1F0;
}
.half--brand {
  --bg: #F4F1F0; --fg: #090909;
  --muted: rgba(9, 9, 9, .64);
  --line-2: rgba(9, 9, 9, .28);
  --accent: #710F20; --accent-2: #C51F38; --accent-ink: #F4F1F0;
}

.half__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.half__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(9, 9, 9, .88), rgba(9, 9, 9, .55) 70%, rgba(9, 9, 9, .35)),
    linear-gradient(rgba(9, 9, 9, .2), rgba(9, 9, 9, .2));
  pointer-events: none;
  transition: opacity .8s;
}

/* Camera viewfinder framing the creator half */
.viewfinder {
  --c: rgba(244, 241, 240, .7);
  position: absolute;
  inset: clamp(1rem, 2.5vw, 2rem);
  z-index: 1;
  pointer-events: none;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: var(--c);
  background:
    linear-gradient(var(--c), var(--c)) top left / 26px 1.5px,
    linear-gradient(var(--c), var(--c)) top left / 1.5px 26px,
    linear-gradient(var(--c), var(--c)) top right / 26px 1.5px,
    linear-gradient(var(--c), var(--c)) top right / 1.5px 26px,
    linear-gradient(var(--c), var(--c)) bottom left / 26px 1.5px,
    linear-gradient(var(--c), var(--c)) bottom left / 1.5px 26px,
    linear-gradient(var(--c), var(--c)) bottom right / 26px 1.5px,
    linear-gradient(var(--c), var(--c)) bottom right / 1.5px 26px;
  background-repeat: no-repeat;
  transition: opacity .6s;
}
.viewfinder__rec, .viewfinder__time { position: absolute; top: .9rem; }
.viewfinder__rec { left: 1rem; display: inline-flex; align-items: center; gap: .45rem; }
.viewfinder__rec::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #E63946;
  box-shadow: 0 0 10px #E63946;
  animation: rec 1.2s steps(2, jump-none) infinite;
}
@keyframes rec { 50% { opacity: .15; } }
.viewfinder__time { right: 1rem; }
html[data-audience="brand"] .viewfinder { opacity: 0; }

.half__pick, .half__chosen, .half__collapsed {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), visibility 0s linear .6s;
}

/* Pick state */
.half__pick { text-align: center; padding: 2rem; }
.half__kicker { font-size: clamp(1.3rem, 1rem + 1vw, 2rem); color: var(--muted); }
.half__word {
  margin-block: .1em .25em;
  font-size: clamp(3.6rem, 1rem + 8.4vw, 10.5rem);
  font-weight: 850;
  font-stretch: 62%;
  line-height: .85;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.half__line { font-size: var(--fs-lead); color: var(--muted); max-width: 30ch; margin-inline: auto; }
.half__choose {
  margin-top: 2rem;
  padding: .85rem 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-weight: 600;
  transition: background-color .3s, color .3s, border-color .3s;
}
/* The whole half is the click target */
.half__choose::after { content: ""; position: absolute; inset: 0; }
.half:hover .half__choose,
.half__choose:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.half__pick > * { position: relative; z-index: 1; }
.half__pick .half__choose { position: static; }

html:not([data-audience]) .half:hover { flex-grow: 1.25; }

/* Chosen state */
.half__chosen { width: min(40rem, 100%); padding: 2rem var(--gutter); }
.half__headline {
  font-size: clamp(3.4rem, 1rem + 7vw, 9rem);
  font-weight: 850;
  font-stretch: 62%;
  line-height: .86;
  text-transform: uppercase;
}
.half__chosen .half__line { margin: 1.5rem 0 0; max-width: 34ch; }
.half__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* Collapsed state: the other half becomes a slim tab you can still pick */
.half__collapsed {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(1.6rem, 1rem + 2vw, 3rem);
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--fg);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.half__collapsed:hover { color: var(--accent-2); }

/* Visibility per state */
.half__chosen, .half__collapsed { opacity: 0; visibility: hidden; }
.half__chosen { transform: translateY(28px); }

html[data-audience] .half__pick { opacity: 0; visibility: hidden; transform: scale(.96); }

html[data-audience="creator"] .half--creator,
html[data-audience="brand"] .half--brand { flex-grow: 3.2; }

html[data-audience="creator"] .half--creator .half__chosen,
html[data-audience="brand"] .half--brand .half__chosen,
html[data-audience="creator"] .half--brand .half__collapsed,
html[data-audience="brand"] .half--creator .half__collapsed {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: .25s, .25s, 0s;
}
html[data-audience="creator"] .half--brand .half__collapsed,
html[data-audience="brand"] .half--creator .half__collapsed { transform: rotate(180deg); }
html[data-audience="creator"] .half--brand .half__shade,
html[data-audience="brand"] .half--creator .half__shade { opacity: 0; }

.radar { transition: opacity .8s; }
html[data-audience="brand"] .half--brand .radar { opacity: .45; }

/* Seam knot between the halves */
.seam { position: relative; z-index: 4; width: 0; }
.seam__knot {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border: 1px solid rgba(244, 241, 240, .2);
  border-radius: 50%;
  background: #090909;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(197, 31, 56, .12);
  transition: transform 1s var(--ease);
}
.seam__knot { --bg: #090909; --fg: #F4F1F0; --accent-2: #E63946; }
.seam__knot svg { width: 40px; height: 40px; }
html[data-audience] .seam__knot { transform: translate(-50%, -50%) rotate(360deg); }

/* ---------- Brand radar ---------- */
.radar {
  display: grid;
  place-items: center;
  pointer-events: none;
}
.radar::before {
  content: "";
  position: absolute;
  width: min(88%, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 calc(12.5% - 1px), rgba(113, 15, 32, .16) calc(12.5% - 1px) 12.5%),
    linear-gradient(rgba(113, 15, 32, .12), rgba(113, 15, 32, .12)) center / 1px 100% no-repeat,
    linear-gradient(rgba(113, 15, 32, .12), rgba(113, 15, 32, .12)) center / 100% 1px no-repeat;
  -webkit-mask: radial-gradient(circle, #000 69%, transparent 71%);
  mask: radial-gradient(circle, #000 69%, transparent 71%);
}
.radar__sweep, .radar i { position: absolute; }
.radar__sweep {
  width: min(88%, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 290deg, rgba(113, 15, 32, .05) 300deg, rgba(197, 31, 56, .3) 360deg);
  -webkit-mask: radial-gradient(circle, #000 69%, transparent 70%);
  mask: radial-gradient(circle, #000 69%, transparent 70%);
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.radar { container-type: size; }
.radar i {
  top: 50%; left: 50%;
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: #710F20;
  opacity: .15;
  transform: rotate(var(--a)) translateY(calc(var(--r) * min(44cqw, 340px, 44cqh) * -.7)) ;
  animation: blip 6s linear infinite;
  animation-delay: var(--t);
}
.radar i::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid #C51F38;
  border-radius: 50%;
  opacity: 0;
  animation: inherit;
  animation-name: ping;
}
@keyframes blip {
  0% { opacity: 1; background: #C51F38; }
  40% { opacity: .6; }
  100% { opacity: .15; }
}
@keyframes ping {
  0% { opacity: 1; transform: scale(.4); }
  30% { opacity: 0; transform: scale(1.8); }
  100% { opacity: 0; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  min-height: calc(100svh - var(--nav-h));
  padding-block: clamp(3rem, 6vw, 5rem);
}
.about__lead {
  margin-top: 1.75rem;
  max-width: 30ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-2);
}
.facts li { padding: 1.1rem 1rem 0 0; }
.facts li + li { padding-left: 1rem; border-left: 1px solid var(--line); }
.facts strong {
  display: block;
  font-size: clamp(1.4rem, 1rem + 1vw, 2rem);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent-2);
}
.facts span { font-family: var(--f-serif); font-style: italic; color: var(--muted); }

.about__art { position: relative; width: 100%; max-width: 640px; justify-self: center; }
.about__art canvas { width: 100%; aspect-ratio: 1; }
.legend {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: .5rem; }
.legend__dot, .legend__square { display: inline-block; width: 10px; height: 10px; }
.legend__dot { border-radius: 50%; background: var(--accent-2); }
.legend__square { border-radius: 2px; border: 2px solid var(--fg); }

/* ==========================================================================
   OFFER
   ========================================================================== */
.view--offer > .container { padding-block: clamp(3rem, 6vw, 5rem); }

.offer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.offers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-2);
}
.offer {
  position: relative;
  padding: 2rem 1.5rem 2.5rem;
  animation: rise .9s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms + 80ms);
}
.offer + .offer { border-left: 1px solid var(--line); }
.offer:first-child { padding-left: 0; }

.offer__icon {
  width: 64px; height: 64px;
  margin-bottom: 1.75rem;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.offer__icon * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 300ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.offer__icon .pulse { animation: draw 1.4s var(--ease) forwards, pulse 2.4s ease-in-out 2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.offer h3 {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
  text-transform: uppercase;
}
.offer p { margin-top: .75rem; max-width: 30ch; color: var(--muted); }

.offer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.offer__cta p { font-size: var(--fs-lead); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
}
.footer ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer a:hover { color: var(--fg); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer:nth-child(3) { border-left: 0; padding-left: 0; }
  .offer:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  :root { --nav-h: 112px; }
  .nav__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: 60px 52px;
    gap: 0 1rem;
  }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; margin-inline: -1rem; }
  .tabs a { padding-inline: 1rem; }
  .nav__discord span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav__discord { padding: .55rem .7rem; }

  .about { grid-template-columns: 1fr; min-height: 0; }
  .about__art { max-width: 460px; }

  /* Halves stack vertically */
  .split { flex-direction: column; min-height: calc(100svh - var(--nav-h) - 3.5rem); }
  .half { min-height: 250px; }
  .seam { width: 100%; height: 0; }
  .seam__knot { top: 0; left: 50%; width: 52px; height: 52px; }
  .seam__knot svg { width: 32px; height: 32px; }
  .half__collapsed { writing-mode: horizontal-tb; transform: none; }
  html[data-audience="creator"] .half--brand .half__collapsed,
  html[data-audience="brand"] .half--creator .half__collapsed { transform: none; }
  html[data-audience="creator"] .half--brand,
  html[data-audience="brand"] .half--creator { min-height: 96px; flex-grow: 0; flex-basis: 96px; }
  html[data-audience="creator"] .half--brand .half__pick,
  html[data-audience="brand"] .half--creator .half__pick { display: none; }
  html[data-audience="creator"] .half--brand .half__chosen,
  html[data-audience="brand"] .half--creator .half__chosen { display: none; }
  .half__chosen { padding-block: 3rem; }
}

@media (max-width: 560px) {
  .switch button { padding: .35rem .6rem; font-size: .78rem; }
  .logo__word { font-size: .95rem; letter-spacing: .1em; }
  .offers { grid-template-columns: 1fr; }
  .offer, .offer:first-child, .offer:nth-child(3) { padding: 1.75rem 0 2rem; border-left: 0; }
  .offer + .offer { border-top: 1px solid var(--line); }
  .facts li + li { padding-left: .75rem; }
  .half__actions .btn { flex: 1 1 auto; }
}
