/* =========================================================================
   EWXROOM — site styles
   Depends on: tokens.css (Miro design tokens)
   ========================================================================= */

:root {
  /* EWXROOM brand palette — 5 only */
  --ewx-navy: #242834;
  --ewx-navy-soft: #2e3340;
  --ewx-lime: #B6FF00;
  --ewx-violet: #7D53FF;
  --ewx-cream: #F4F1EA;       /* warm off-white surface */
  --ewx-ink-soft: #6c6f7a;    /* muted text on light */
  --ewx-line: #e5e2da;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ewx-navy); background: var(--ewx-cream); }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--space-32); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,241,234,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ewx-line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.18em; font-size: 14px;
}
.brand img { height: 38px; width: 38px; border-radius: 8px; display: block; }
.brand span.wm { line-height: 1; }
.nav-links { display: flex; gap: var(--space-32); font-size: 15px; color: var(--fg-1); font-weight: 500; }
.nav-links a:hover { color: var(--ewx-violet); }
.nav-cta {
  background: var(--ewx-navy); color: var(--ewx-lime);
  border-radius: var(--radius-pill); padding: 10px 18px;
  font-size: 14px; font-weight: 600; border: 0; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard);
}
.nav-cta:hover { background: var(--ewx-navy-soft); }

/* ---------- HERO ---------- */
.hero { padding: 96px 0 64px; position: relative; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ewx-ink-soft); margin-bottom: 28px;
}
.eyebrow span { color: var(--ewx-navy); }
.eyebrow .by { color: var(--ewx-violet); font-weight: 700; }
h1.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02;
  letter-spacing: -0.035em; margin: 0 0 28px; max-width: 14ch;
}
.hero-lede {
  max-width: 56ch; font-size: 19px; line-height: 1.55;
  color: var(--ewx-ink-soft); margin-bottom: var(--space-12);
}
.hero-lede strong { color: var(--ewx-navy); font-weight: 500; }
.hero-actions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

.btn-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; cursor: pointer; border: 0;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  font-family: var(--font-display);
}
.btn-dark { background: var(--ewx-navy); color: var(--ewx-lime); }
.btn-dark:hover { background: var(--ewx-navy-soft); }
.btn-ghost { background: transparent; color: var(--ewx-navy); border: 1px solid var(--ewx-navy); }
.btn-ghost:hover { background: var(--ewx-navy); color: var(--ewx-lime); }
.btn-pill .arr { transition: transform var(--dur-base) var(--ease-out-soft); }
.btn-pill:hover .arr { transform: translateX(4px); }

.hero-motif { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 80px; }
.motif {
  border-radius: var(--radius-container);
  aspect-ratio: 5 / 4; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; position: relative;
}
.motif .tag { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.motif h4 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -0.5px; line-height: 1.1; }
.motif p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; opacity: 0.78; }
.m-east { background: var(--ewx-lime); color: var(--ewx-navy); }
.m-by { background: var(--ewx-navy); color: var(--color-white); }
.m-by .tag { color: var(--ewx-lime); }
.m-by p { opacity: 0.72; }
.m-west { background: var(--ewx-violet); color: var(--color-white); }
.m-west .tag { color: var(--ewx-lime); }
.m-west p { opacity: 0.78; }

/* ---------- SECTION CHROME ---------- */
section { padding: 96px 0; }
.sec-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 56px; gap: 32px; flex-wrap: wrap;
}
.sec-head h2 {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 4vw, 56px); line-height: 1.05;
  letter-spacing: -0.03em; max-width: 18ch;
}
.sec-head .sec-meta { font-size: 14px; color: var(--ewx-ink-soft); max-width: 38ch; }
.sec-eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ewx-ink-soft); font-weight: 600; margin-bottom: 14px;
}

/* ---------- ROOMS GRID ---------- */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.room {
  border-radius: var(--radius-card-lg); padding: 28px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform var(--dur-base) var(--ease-out-soft);
  cursor: pointer; position: relative; overflow: hidden;
}
.room:hover { transform: translateY(-4px); }
.room .num { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; opacity: 0.7; }
.room h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.6px; line-height: 1.15; margin: 14px 0 10px; }
.room p { font-size: 14.5px; line-height: 1.55; margin: 0; opacity: 0.78; }
.room .by { margin-top: 24px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; }
.r1 { background: var(--ewx-lime); color: var(--ewx-navy); }
.r2 { background: var(--color-white); color: var(--ewx-navy); border: 1px solid var(--ewx-line); }
.r3 { background: var(--ewx-violet); color: var(--color-white); }
.r3 .by { color: var(--ewx-lime); }
.r4 { background: var(--ewx-navy); color: var(--color-white); }
.r4 .by { color: var(--ewx-lime); }
.r5 { background: var(--color-white); color: var(--ewx-navy); border: 1px solid var(--ewx-line); }
.r6 { background: var(--ewx-lime); color: var(--ewx-navy); }

/* ---------- MANIFESTO ---------- */
.manifesto {
  background: var(--ewx-navy); color: var(--color-white);
  border-radius: var(--radius-container-lg);
  padding: 96px 80px; margin: 0 var(--space-32);
}
.manifesto-inner { max-width: 1240px; margin: 0 auto; }
.manifesto .strike {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px); line-height: 1.2;
  letter-spacing: -0.02em; color: rgba(255,255,255,0.4); margin: 0;
}
.manifesto .strike s { text-decoration-color: rgba(255,255,255,0.25); }
.manifesto h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 4.4vw, 64px); line-height: 1.1;
  letter-spacing: -0.03em; margin: 32px 0 32px; max-width: 22ch;
}
.manifesto p { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 56ch; margin: 0 0 14px; }
.manifesto .accent { color: var(--ewx-lime); font-weight: 500; }
.manifesto-cta {
  margin-top: 40px; background: var(--ewx-lime); color: var(--ewx-navy);
  border: 0; padding: 14px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
}

/* ---------- EVENTS LIST ---------- */
.events { border-top: 1px solid var(--ewx-line); }
.event-row {
  display: grid; grid-template-columns: 80px 2.2fr 1.4fr 1fr 140px;
  gap: 24px; align-items: center; padding: 28px 8px;
  border-bottom: 1px solid var(--ewx-line);
  transition: background var(--dur-base) var(--ease-standard);
  cursor: pointer;
}
.event-row:hover { background: rgba(36,40,52,0.04); }
.event-row .idx { font-size: 13px; color: var(--ewx-ink-soft); font-weight: 600; letter-spacing: 0.1em; }
.event-row .ev-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.4px; }
.event-row .ev-meta { font-size: 14px; color: var(--ewx-ink-soft); }
.event-row .ev-loc { font-size: 14px; color: var(--ewx-ink-soft); }
.ev-status {
  justify-self: end; font-size: 11.5px; font-weight: 600;
  padding: 7px 12px; border-radius: var(--radius-pill);
  letter-spacing: 0.06em; white-space: nowrap;
}
.st-invite { background: var(--ewx-navy); color: var(--ewx-lime); }
.st-open { background: var(--ewx-violet); color: var(--color-white); }
.st-soon { background: transparent; color: var(--ewx-ink-soft); border: 1px solid var(--ewx-line); }

/* ---------- COLLAB PREVIEW ---------- */
.collab-bg {
  background:
    linear-gradient(rgba(36,40,52,0.78), rgba(36,40,52,0.92)),
    url("/assets/images/collab-room.png") center / cover;
  border-radius: var(--radius-container-lg);
  padding: 80px; margin: 0 var(--space-32); color: var(--color-white);
}

.collab-inner { max-width: 1240px; margin: 0 auto; }
.collab h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 4.4vw, 64px); line-height: 1.05;
  letter-spacing: -0.03em; margin: 0 0 24px; max-width: 18ch;
}
.collab .lede { font-size: 18px; line-height: 1.55; max-width: 52ch; opacity: 0.85; margin: 0 0 56px; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pkg {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-card-lg); padding: 28px; min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  backdrop-filter: blur(6px);
}
.pkg .ptag { color: var(--ewx-lime); font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.pkg h4 { font-size: 24px; font-weight: 500; letter-spacing: -0.5px; line-height: 1.2; margin: 12px 0 8px; }
.pkg .pdesc { font-size: 14px; line-height: 1.5; opacity: 0.78; margin: 0; }
.pkg .arrow { margin-top: 24px; font-size: 22px; }
.collab-cta {
  margin-top: 48px; background: var(--ewx-lime); color: var(--ewx-navy);
  border: 0; padding: 14px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
}

/* ---------- FIELD NOTES ---------- */
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note {
  background: var(--color-white); border-radius: var(--radius-card-lg);
  border: 1px solid var(--ewx-line); overflow: hidden; cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out-soft);
}
.note:hover { transform: translateY(-4px); }
.note .thumb { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.note .label {
  position: absolute; top: 18px; left: 18px;
  background: var(--ewx-navy); color: var(--ewx-lime);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
}
.note-body { padding: 24px 26px 28px; }
.note h4 { font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.3px; margin: 0 0 12px; }
.note .by { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ewx-ink-soft); font-weight: 600; }
.thumb.t1 {
  background:
    linear-gradient(rgba(36,40,52,0.12), rgba(36,40,52,0.62)),
    url("/assets/images/field-sound.png") center / cover;
}

.thumb.t2 {
  background:
    linear-gradient(rgba(36,40,52,0.12), rgba(36,40,52,0.62)),
    url("/assets/images/field-art.png") center / cover;
}

.thumb.t3 {
  background:
    linear-gradient(rgba(36,40,52,0.12), rgba(36,40,52,0.62)),
    url("/assets/images/field-taste.png") center / cover;
}

.thumb-glyph {
  font-family: var(--font-display);
  font-size: 110px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.t1 .thumb-glyph,
.t2 .thumb-glyph,
.t3 .thumb-glyph {
  color: var(--ewx-lime);
  opacity: 0.22;
}
.thumb-glyph { font-family: var(--font-display); font-size: 110px; font-weight: 500; letter-spacing: -0.04em; }
.t1 .thumb-glyph { color: var(--ewx-navy); }
.t2 .thumb-glyph { color: var(--ewx-lime); }
.t3 .thumb-glyph { color: var(--ewx-lime); }

/* ---------- FINAL CTA ---------- */
.final {
  text-align: center; padding: 140px 0;
  background: var(--ewx-navy); color: var(--color-white);
  position: relative; overflow: hidden;
}
.final::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 18% 30%, rgba(182,255,0,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 82% 70%, rgba(125,83,255,0.28) 0%, transparent 45%);
  pointer-events: none;
}
.final > * { position: relative; }
.final .eyebrow { color: rgba(255,255,255,0.55); margin-bottom: 32px; }
.final .eyebrow span { color: var(--color-white); }
.final .eyebrow .by { color: var(--ewx-lime); }
.final h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(56px, 8vw, 120px); line-height: 0.98;
  letter-spacing: -0.04em; margin: 0 0 32px;
}
.final p { max-width: 48ch; margin: 0 auto 40px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.7); }
.final .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.final .btn-ghost { color: var(--color-white); border-color: rgba(255,255,255,0.3); }
.final .btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ---------- FOOTER ---------- */
footer { background: var(--ewx-navy); color: var(--color-white); padding: 80px 0 40px; }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.foot-brand { font-size: 14px; font-weight: 700; letter-spacing: 0.18em; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.foot-brand img { height: 42px; width: 42px; border-radius: 8px; }
.foot-tag { font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.foot-tag .acc { color: var(--ewx-lime); }
.foot-slogan { font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 12px; max-width: 32ch; }
.foot-ig { display: inline-block; margin-top: 24px; color: rgba(255,255,255,0.85); font-size: 14px; }
.foot-col h5 { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 600; margin: 0 0 18px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: rgba(255,255,255,0.85); font-size: 14px; }
.foot-col a:hover { color: var(--ewx-lime); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 12px; font-size: 12px; color: rgba(255,255,255,0.5); }

/* ---------- MOBILE MENU ---------- */
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; color: var(--ewx-navy); }
.nav-toggle svg { width: 24px; height: 24px; }
.mobile-menu {
  display: none; position: fixed; inset: 72px 0 0 0; z-index: 49;
  background: var(--ewx-cream); padding: 32px 24px 40px;
  flex-direction: column; gap: 4px;
  border-top: 1px solid var(--ewx-line); overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ewx-navy);
  padding: 16px 4px; border-bottom: 1px solid var(--ewx-line);
}
.mobile-menu .mm-cta {
  margin-top: 24px; background: var(--ewx-navy); color: var(--ewx-lime);
  padding: 16px 22px; border-radius: var(--radius-pill);
  text-align: center; font-weight: 600; font-size: 16px; border-bottom: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .rooms, .pkg-grid, .notes-grid, .hero-motif { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .event-row { grid-template-columns: 50px 1fr auto; }
  .event-row .ev-meta, .event-row .ev-loc { display: none; }
  .manifesto, .collab-bg { padding: 56px 32px; margin: 0 16px; border-radius: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sec-head { margin-bottom: 40px; }
  .hero { padding: 56px 0 40px; }
  .hero-motif { margin-top: 56px; }
  section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .rooms, .pkg-grid, .notes-grid, .hero-motif { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .nav-inner { height: 64px; }
  .mobile-menu { inset-block-start: 64px; }
  h1.hero-title { font-size: clamp(40px, 11vw, 56px); }
  .sec-head h2 { font-size: clamp(32px, 8vw, 44px); }
  .manifesto, .collab-bg { padding: 48px 24px; margin: 0 12px; border-radius: 28px; }
  .manifesto h2 { font-size: clamp(30px, 7.5vw, 40px); }
  .collab h2 { font-size: clamp(32px, 8vw, 44px); }
  .final { padding: 96px 0; }
  .final h2 { font-size: clamp(48px, 14vw, 80px); }
  .event-row { padding: 20px 4px; gap: 12px; }
  .event-row .ev-title { font-size: 18px; }
  .ev-status { font-size: 10.5px; padding: 6px 10px; }
  .room { min-height: 240px; padding: 24px; }
  .room h3 { font-size: 22px; }
  .motif { padding: 22px; }
  .motif h4 { font-size: 22px; }
  .btn-pill { padding: 12px 18px; font-size: 14px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn-pill { flex: 1 1 auto; justify-content: center; }
  .final .actions .btn-pill { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 380px) {
  .brand span.wm { display: none; }
  .wrap { padding: 0 16px; }
}
/* ---------- IMAGE OVERRIDES ---------- */

.collab-bg {
  background:
    linear-gradient(rgba(36,40,52,0.62), rgba(36,40,52,0.86)),
    url("/assets/images/collab-room.png") center / cover !important;
}

.thumb.t1 {
  background:
    linear-gradient(rgba(36,40,52,0.12), rgba(36,40,52,0.62)),
    url("/assets/images/field-sound.png") center / cover !important;
}

.thumb.t2 {
  background:
    linear-gradient(rgba(36,40,52,0.12), rgba(36,40,52,0.62)),
    url("/assets/images/field-art.png") center / cover !important;
}

.thumb.t3 {
  background:
    linear-gradient(rgba(36,40,52,0.12), rgba(36,40,52,0.62)),
    url("/assets/images/field-taste.png") center / cover !important;
}

.t1 .thumb-glyph,
.t2 .thumb-glyph,
.t3 .thumb-glyph {
  color: var(--ewx-lime) !important;
  opacity: 0.22;
}
