/* Made in Heaven
   Layout: left-aligned pages on true black with sharp edges and thin rules.
   Team colors from the artwork: pink (left half of the mark), cyan (right half), lime (the frame).
   Type: heavy wide sans for headlines like the team graphics, plain sans for reading,
   one brush word as a nod to the "HEAVEN" brush lettering. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0c0c0d;
  --line: #262628;
  --line-strong: #3d3d40;
  --text: #f5f5f2;
  --muted: #b3b3ad;
  --pink: #ff3d77;
  --cyan: #12dcfa;
  --lime: #e8fb3c;
  --spark: var(--cyan);

  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --brush: "Permanent Marker", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--lime); color: #000; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* Small uppercase label used across the site */
.label, .eyebrow { font-family: var(--body); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ===== Nav ===== */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: rgba(0,0,0,.88); backdrop-filter: blur(8px); }
nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, var(--pink) 0 33.34%, var(--cyan) 33.34% 66.67%, var(--lime) 66.67%); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; height: 72px; }
.nav-logo video { height: 66px; width: auto; display: block; mix-blend-mode: screen; cursor: pointer; }
.links { display: flex; gap: 34px; }
.links a { font-weight: 600; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.links a:hover { color: var(--text); }
.links a.active { color: var(--text); }
.links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); padding: 7px 12px; cursor: pointer; font: inherit; font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; font-family: var(--body); font-weight: 800; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--lime); transition: background .2s, color .2s; cursor: pointer; }
.btn-primary { background: var(--lime); color: #000; }
.btn-primary:hover { background: transparent; color: var(--lime); }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.arrow-link { font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--cyan); padding-bottom: 4px; transition: border-color .2s; }
.arrow-link:hover { color: var(--cyan); }

/* Sparkle star (from the logo) */
.spark { display: inline-block; width: .62em; height: .62em; color: var(--spark); vertical-align: .08em; }
.spark svg { width: 100%; height: 100%; display: block; fill: currentColor; }

/* ===== Home: hero ===== */
.hero { position: relative; padding-top: 72px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { /* the logo's orbit ring, oversized */
  content: ""; position: absolute; width: 1500px; height: 520px; left: 50%; top: 52%; translate: -40% -50%; rotate: -12deg;
  border: 1px solid rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: clamp(70px, 10vw, 130px) clamp(60px, 8vw, 110px); }
.hero .label { display: flex; gap: 14px; align-items: center; margin-bottom: 30px; }
.hero .label::before { content: ""; width: 34px; height: 2px; background: var(--pink); }
.statement { font-family: var(--display); font-weight: 900; font-stretch: 125%; line-height: .92; letter-spacing: -.02em; text-transform: uppercase; }
.statement .pre { display: block; font-family: var(--body); font-stretch: 100%; font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.3rem); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.hero-grid > div:first-child { container-type: inline-size; min-width: 0; }
.statement .big { display: block; font-size: min(9cqi, 5rem); white-space: nowrap; }
.statement .big em { font-style: normal; color: var(--pink); }
.statement .indent .word { color: var(--cyan); }
.statement .indent { padding-left: 0; }
.statement .plus { color: var(--lime); font-style: normal; margin-right: .1em; }
.statement .post { display: block; font-family: var(--brush); font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: 0; font-size: clamp(1.8rem, 3.6vw, 3rem); color: var(--text); margin-top: 18px; rotate: -3deg; transform-origin: left; }
.lede { max-width: 46ch; color: var(--muted); font-size: 1.08rem; margin-top: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-top: 38px; }
.hero-mark { justify-self: end; width: 100%; max-width: 520px; }
.hero-mark img { width: 100%; filter: drop-shadow(0 0 40px rgba(255,255,255,.10)); }
.hero-mark figcaption { margin-top: 18px; text-align: right; }

.jp { font-family: var(--jp); font-weight: 700; color: var(--pink); letter-spacing: .08em; font-size: .95rem; display: block; margin-bottom: 14px; }
/* Three-color team bar (pink / cyan / lime) */
.team-bar { display: flex; height: 6px; }
.team-bar i { flex: 1; }
.team-bar i:nth-child(1) { background: var(--pink); }
.team-bar i:nth-child(2) { background: var(--cyan); }
.team-bar i:nth-child(3) { background: var(--lime); }

/* ===== Home: discipline counts strip ===== */
.counts { border-bottom: 1px solid var(--line); }
.counts ul { list-style: none; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.counts a { display: block; transition: opacity .2s; }
.counts a:hover { opacity: .75; }
.counts .live-extra { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.18); }
.counts li { padding: 26px 0 26px 22px; border-left: 1px solid var(--line); }
.counts li:first-child { border-left: 0; padding-left: 0; }
.counts b { display: block; font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.counts span { display: block; margin-top: 8px; }

/* ===== Sections ===== */
section { padding-block: clamp(70px, 9vw, 120px); }
h2 { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
h2 em { font-style: normal; color: var(--cyan); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: end; margin-bottom: 60px; }
.section-head p { color: var(--muted); max-width: 52ch; }

/* Disciplines */
.disciplines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.discipline { padding: 40px 40px 10px 0; min-width: 0; }
.discipline + .discipline { padding-left: 40px; border-left: 1px solid var(--line); }
.discipline h3 { font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 1.9rem; line-height: 1.05; margin: 14px 0 16px; }
.discipline:first-child h3 { color: var(--cyan); }
.discipline + .discipline h3 { color: var(--pink); }
.discipline p { color: var(--muted); max-width: 48ch; }
.terms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; list-style: none; }
.terms li { font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 6px 12px; color: var(--text); }

/* Story */
.story { background: var(--surface); border-block: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 60px; }
.story-text p { color: var(--muted); max-width: 54ch; }
.story-text p + p { margin-top: 18px; }
.story-text h2 { margin-bottom: 28px; }
.log { list-style: none; border-top: 1px solid var(--line); align-self: start; }
.log li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.log h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; }
.log p { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* Join block */
.join { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.join h2 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.join p { color: var(--muted); max-width: 40ch; margin-bottom: 30px; }

/* ===== Inner pages ===== */
.page-head { padding-top: 72px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; width: 1100px; height: 360px; right: -380px; top: 30px; rotate: -12deg; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; pointer-events: none; }
.page-head .wrap { position: relative; padding-block: clamp(60px, 9vw, 110px) clamp(40px, 6vw, 70px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.page-head h1 { font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2.4rem, 6.6vw, 5.2rem); line-height: .95; letter-spacing: -.02em; margin-top: 18px; text-wrap: balance; }
.page-head p { color: var(--muted); max-width: 44ch; }

/* News */
.news-list { border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 40px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.post .date { grid-row: span 2; font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); padding-top: 10px; }
.post h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin-bottom: 12px; }
.post p { color: var(--muted); max-width: 62ch; }

/* Roster */
.rsection + .rsection { margin-top: 80px; }
.rsection > h2 { margin-bottom: 30px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 32px; row-gap: 44px; align-items: start; }
.rgroup { min-width: 0; border-top: 2px solid var(--line-strong); padding-top: 14px; }
.rgroup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.rgroup h3 { font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.rgroup .count { font-weight: 700; font-size: .9rem; color: var(--cyan); font-variant-numeric: tabular-nums; }
.plist { list-style: none; }
.plist li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #141415; }
.plist li:last-child { border-bottom: 0; }
.flag { width: 20px; height: auto; flex-shrink: 0; }
.pname { font-weight: 500; overflow-wrap: anywhere; }
.mlinks { display: inline-flex; gap: 2px; margin-left: -4px; }
.mlink { display: grid; place-items: center; width: 24px; height: 24px; opacity: .45; transition: opacity .15s, color .15s; color: var(--text); }
.mlink svg { width: 13px; height: 13px; fill: currentColor; }
.mlink:hover, .mlink:focus-visible { opacity: 1; color: var(--lime); }
.lead-tag { margin-left: auto; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #000; background: var(--pink); padding: 2px 7px; }
.boost-note { color: var(--muted); margin: -16px 0 18px; }
.boosters { display: flex; flex-wrap: wrap; gap: 10px; }
.boosters span { border: 1px solid var(--line-strong); padding: 7px 16px; font-size: .92rem; }
.roster-note { color: var(--muted); font-size: .9rem; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Apply */
.apply-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 60px; align-items: start; }
.apply-aside p { color: var(--muted); max-width: 36ch; }
.apply-aside p + p { margin-top: 16px; }
.apply-aside h2 { font-size: 2rem; margin-bottom: 18px; }
form.apply { border-top: 1px solid var(--line-strong); padding-top: 30px; }
.field { margin-bottom: 22px; min-width: 0; }
.field label { display: block; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 9px; }
.field label small { color: var(--muted); font-weight: 400; letter-spacing: .04em; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0; color: var(--text); padding: 13px 14px; font: inherit; font-size: .98rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); }
.field textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
form.apply .btn { width: 100%; justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; color: var(--muted); font-size: .92rem; min-height: 1.4em; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--line); padding-block: 60px 30px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-logo { width: 170px; }
.footer-line { font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin-top: 18px; max-width: 30ch; line-height: 1.3; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--lime); border-color: var(--lime); }
.socials a:hover svg { fill: var(--bg); }
.socials svg { width: 18px; height: 18px; fill: var(--text); transition: fill .2s; }
.copy { color: var(--muted); font-size: .82rem; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Preview bar (admin preview only) */
.preview-bar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 90; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--lime); color: #000; padding: 10px 16px; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; max-width: calc(100% - 32px); }
.preview-bar a { text-decoration: underline; }
.preview-bar button { background: var(--bg); color: var(--text); border: 0; padding: 6px 10px; font: inherit; cursor: pointer; }

/* Logo images */
.logo-img { display: block; height: auto; }

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .links { display: none; position: absolute; top: calc(72px + env(safe-area-inset-top, 0px)); left: 0; right: 0; background: #000; flex-direction: column; padding: 24px var(--gutter); gap: 18px; border-bottom: 1px solid var(--line); }
  .links.open { display: flex; }
  .links a.active::after { right: auto; width: 30px; }
  .menu-btn { display: block; }
  .hero-grid, .section-head, .story-grid, .join, .page-head .wrap, .apply-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { justify-self: start; max-width: 380px; }
  .hero-mark figcaption { text-align: left; }
  .disciplines { grid-template-columns: minmax(0, 1fr); }
  .discipline { padding-right: 0; }
  .discipline + .discipline { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 30px; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post .date { grid-row: auto; padding: 0 0 10px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .counts li { padding-left: 12px; }
  .counts li:first-child { padding-left: 0; }
  .counts .label { font-size: .68rem; letter-spacing: .06em; }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
