/* Root hub only. No stylesheet or script from either project is loaded. */
:root {
  color-scheme: dark;
  --page-bg: #0b0d0f;
  --text: #edf0f2;
  --muted: #b0b7bf;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 0%, #1a1e2255, transparent 65%), url("./contours.svg?v=2") center / cover, var(--page-bg);
}
.contour-motion {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .42;
}
.contour-motion .trace { opacity: 0; }
.hub { position: relative; z-index: 1; width: min(1180px, calc(100% - 64px)); margin-inline: auto; padding: clamp(56px, 9vh, 104px) 0 32px; }
.hub-login { position: absolute; top: 26px; right: 0; color: #77818b; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-decoration: none; }
.hub-login span { width: 28px; height: 28px; border: 2px solid #77818b; border-radius: 50%; display: grid; place-items: center; }
.hub-login svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hub-login:hover, .hub-login:focus-visible { color: #b8c0c7; text-decoration: none; }
.hub-brand { text-align: center; margin-bottom: 52px; }
.hub-brand h1 { display: flex; align-items: center; justify-content: center; gap: .16em; margin: 0; padding-left: .24em; font-size: clamp(42px, 5.6vw, 72px); font-weight: 650; line-height: 1.1; }
.hub-brand h1 img { display: block; width: .88em; height: .88em; object-fit: contain; transform: translateY(.05em); }
.hub-brand h1 span { letter-spacing: .24em; }
.hub-brand p { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 20px 0 0; color: #aab0b6; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.hub-brand p span { color: #565e67; }
.brand-rule { display: block; width: 56px; height: 2px; margin: 26px auto 0; background: #526c83; }

/* New items flow into the next cell; no item-count assumptions. */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.project-grid > li { display: flex; min-width: 0; }
.project-card {
  --accent: #a3abb4;
  --card-bg: #121619;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid #ffffff19;
  border-radius: 20px;
  box-shadow: 0 12px 32px #00000026;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.project-card--yankees { --accent: #89b2d6; --card-bg: #0d1722; border-color: #253e50; }
.project-card--ravens { --accent: #b3a7ff; --card-bg: #171120; border-color: #55458a; }
.project-card--palworld { --accent: #e0bd62; --card-bg: #1c180f; border-color: #4c4025; }
.project-card--wishlist { --accent: #58cec4; --card-bg: #0d1b1a; border-color: #204643; }
.project-art { position: relative; display: grid; place-items: center; height: 220px; flex-shrink: 0; overflow: hidden; }
.project-art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, #44688870, transparent 74%), url("./contours.svg?v=2") center / cover;
  transition: transform 260ms ease;
}
.project-card--palworld .project-art::before { background: radial-gradient(ellipse at 50% 20%, #806b3280, transparent 74%), url("./contours.svg?v=2") right center / cover; }
.project-card--ravens .project-art::before { background: radial-gradient(ellipse at 50% 20%, #49358690, transparent 72%), url("./contours.svg?v=2") center / cover; }
.project-card--wishlist .project-art::before { background: radial-gradient(ellipse at 50% 20%, #287a7470, transparent 72%), url("./contours.svg?v=2") center / cover; }
.project-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0000000a 35%, var(--card-bg)); pointer-events: none; }
.project-logo { position: relative; z-index: 1; display: block; object-fit: contain; transition: transform 260ms ease; opacity: .85; }
.yankees-logo { width: 108px; height: 108px; }
.ravens-logo { width: 132px; height: 132px; }
.palworld-logo { width: 82%; height: 180px; }
.wishlist-logo { width: 112px; height: 112px; }
.project-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 4px 30px 30px; }
.project-category { color: var(--accent); font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase; }
.project-copy h2 { margin: 13px 0 10px; font-size: clamp(21px, 1.9vw, 25px); line-height: 1.25; letter-spacing: -.035em; font-weight: 600; }
.project-copy p { width: 100%; margin: 0 0 27px; min-height: 3.2em; color: var(--muted); font-size: 14px; line-height: 1.6; }
.project-arrow { display: grid; place-items: center; width: 46px; height: 36px; margin-top: auto; color: var(--accent); border: 1px solid #ffffff26; border-radius: 12px; background: #ffffff03; }
.project-arrow svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms ease; }
.project-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
@media (hover: hover) and (pointer: fine) {
  a.project-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 36px #00000040; }
  a.project-card:hover .project-art::before, a.project-card:hover .project-logo { transform: scale(1.025); }
  a.project-card:hover .project-arrow svg { transform: translateX(3px); }
}
.hub-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 54px; padding-top: 22px; border-top: 1px solid #ffffff0c; color: #7f8891; font-size: 11px; letter-spacing: .04em; }
.hub-footer > span:first-child { letter-spacing: .18em; font-weight: 600; }

@media (max-width: 999px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub { width: min(780px, calc(100% - 48px)); }
}
@media (max-width: 599px) {
  .hub { width: min(420px, calc(100% - 40px)); padding-top: 48px; }
  .hub-brand { margin-bottom: 34px; }
  .hub-brand p { font-size: 9px; gap: 9px; letter-spacing: .17em; margin-top: 16px; }
  .brand-rule { margin-top: 22px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .project-art { height: 195px; }
  .project-copy { padding: 4px 26px 26px; }
  .project-copy h2 { font-size: 24px; }
  .project-copy p { min-height: 0; }
  .hub-footer { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .contour-motion { display: none; }
  .project-card, .project-art::before, .project-logo, .project-arrow svg { transition: none; }
  a.project-card:hover, a.project-card:hover .project-art::before, a.project-card:hover .project-logo, a.project-card:hover .project-arrow svg { transform: none; }
}
