/* =========================================================
   NightCore Store (nightcore-store.php) and its homepage sections.
   Everything is scoped under .ncs; nothing else on the site changes.
   NightCore's own system ("After Hours Civic"): wet asphalt, bone signage, sodium for money,
   NCID paper for documents. Big Shoulders Display (OFL, fonts/) for signage; Inter for reading.
   ========================================================= */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

.ncs {
  --ncs-asphalt: #0A0C16;
  --ncs-under: #141A2C;
  --ncs-over: #252B42;
  --ncs-line: #2E3550;
  --ncs-bone: #ECE7DA;
  --ncs-fog: #A7AEC4;
  --ncs-paper: #EDE6D6;
  --ncs-paper-2: #E1D9C6;
  --ncs-ink: #1B1F2E;
  --ncs-ink-2: #575B6D;
  --ncs-link-paper: #B3261E;
  --ncs-sodium: #F2B23C;
  --ncs-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --ncs-mono-f: "JetBrains Mono", ui-monospace, monospace;
  --tone: var(--ncs-sodium);
  color: var(--ncs-bone);
}
.ncs-tone-cyan { --tone: #2EE6FF; }
.ncs-tone-sodium { --tone: #F2B23C; }
.ncs-tone-magenta { --tone: #FF2E88; }
.ncs-tone-teal { --tone: #4FD1C5; }
.ncs-tone-off { --tone: #4A5168; }

.ap-page-apg-nightcore-store #main-body { padding: 0; }
.ap-page-apg-nightcore-store .master-breadcrumb { position: relative; z-index: 2; }
html.ncs-locked { overflow: hidden; }

.ncs *, .ncs *::before, .ncs *::after { box-sizing: border-box; }
.ncs h1, .ncs h2, .ncs h3, .ncs h4 { font-family: var(--ncs-display); color: var(--ncs-bone); letter-spacing: .01em; }
.ncs h2 { font-weight: 800; font-size: clamp(34px, 4vw, 48px); line-height: 1; text-transform: uppercase; margin: 0; }
.ncs a { color: var(--ncs-bone); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: rgba(236, 231, 218, .45); }
.ncs a:hover { color: #fff; text-decoration-color: var(--ncs-sodium); }
.ncs a.btn { text-decoration: none; }
.ncs :focus-visible { outline: 3px solid var(--ncs-sodium); outline-offset: 3px; }
.ncs-mono { font-family: var(--ncs-mono-f); font-size: .86em; letter-spacing: 0; white-space: nowrap; }

/* ---------- Hero: the painted city ---------- */
.ncs-hero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 8px; }
.ncs-hero-art { position: absolute; inset: 0; z-index: -1; }
.ncs-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 40%; display: block; }
.ncs-hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 22, .92) 0%, rgba(10, 12, 22, .74) 34%, rgba(10, 12, 22, .1) 64%, rgba(10, 12, 22, 0) 100%),
    linear-gradient(180deg, rgba(10, 12, 22, 0) 52%, rgba(10, 12, 22, .9) 84%, var(--ap-bg, #0A0C11) 100%);
}
.ncs-hero-copy { padding-top: clamp(64px, 9vw, 120px); padding-bottom: 72px; }
.ncs-hero-copy > * { max-width: 580px; }
.ncs-wordmark { display: block; width: 150px; height: auto; margin-bottom: 26px; opacity: .92; }
.ncs-title { font-weight: 900; font-size: clamp(56px, 8.4vw, 116px); line-height: .86; text-transform: uppercase; margin: 0 0 24px; max-width: 8.5ch !important; text-shadow: 0 2px 30px rgba(10, 12, 22, .6); }
.ncs-lede { font-size: 19px; line-height: 1.6; color: #D9D6E3; margin: 0 0 30px; max-width: 34em !important; }
.ncs-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.ncs-owned { font-weight: 600; font-size: 15px; }

.ncs-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid rgba(236, 231, 218, .22); }
.ncs-terms > div { padding: 18px 24px 22px 0; }
.ncs-terms > div + div { padding-left: 24px; border-left: 1px solid rgba(236, 231, 218, .12); }
.ncs-terms dt { font-family: var(--ncs-display); font-weight: 700; font-size: 23px; line-height: 1.1; color: var(--ncs-bone); }
.ncs-terms dd { margin: 4px 0 0; font-size: 14px; color: var(--ncs-fog); }

/* ---------- Shelf ---------- */
.ncs-shelf { padding-top: 88px; }
.ncs-shelf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 32px; margin-bottom: 28px; }
.ncs-shelf-head p { margin: 0; color: var(--ncs-fog); font-size: 15px; max-width: 46ch; }
.ncs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.ncs-item { position: relative; display: flex; flex-direction: column; background: var(--ncs-under); border: 1px solid var(--ncs-over); border-radius: 6px; overflow: hidden; transition: border-color .2s; }
.ncs-item:hover, .ncs-item:focus-within { border-color: color-mix(in srgb, var(--tone) 55%, var(--ncs-over)); }
.ncs-art { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: #070810; }
.ncs-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ncs-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 22, 0) 30%, rgba(20, 26, 44, .92) 100%), linear-gradient(90deg, rgba(10, 12, 22, .55), rgba(10, 12, 22, 0) 55%); }
.ncs-glyph { position: absolute; z-index: 1; left: 22px; bottom: 14px; width: 76px; height: 76px; overflow: visible; filter: drop-shadow(0 0 2px var(--tone)) drop-shadow(0 0 10px var(--tone)); }
.ncs-glyph use { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ncs-glyph .tube { stroke: var(--tone); stroke-width: 3.4; }
.ncs-glyph .core { stroke: #FFF8EC; stroke-width: 1.1; opacity: .9; }
.ncs-tone-off .ncs-glyph { filter: none; }

.ncs-item-body { display: flex; flex-direction: column; flex: 1; padding: 6px 26px 24px; }
.ncs-item h3 { font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; margin: 0 0 10px; }
.ncs-item-link { text-decoration: none !important; color: var(--ncs-bone) !important; }
.ncs-item-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ncs-item-link:focus-visible { outline: none; }
.ncs-item-link:focus-visible::after { outline: 3px solid var(--ncs-sodium); outline-offset: -3px; border-radius: 6px; }
.ncs-pitch { font-size: 16px; line-height: 1.5; color: #D9D6E3; margin: 0 0 14px; max-width: 52ch; }
.ncs-points { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 7px; }
.ncs-points li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.45; color: var(--ncs-fog); }
.ncs-points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 2px; background: var(--tone); box-shadow: 0 0 6px var(--tone); }
.ncs-item-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 18px; border-top: 1px solid var(--ncs-over); }
.ncs-price { display: flex; flex-direction: column; gap: 2px; }
.ncs-price strong { font-family: var(--ncs-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--ncs-sodium); }
.ncs-price span { font-size: 13px; color: var(--ncs-fog); }
.ncs-item-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; }
.ncs-details { font-weight: 600; font-size: 15px; }
.ncs-buy { white-space: nowrap; }
.ncs-soldout { font-size: 14px; font-weight: 600; color: var(--ncs-fog); border: 1px dashed var(--ncs-line); border-radius: 6px; padding: 9px 14px; }

.ncs-empty { border: 1px dashed var(--ncs-line); border-radius: 6px; padding: 32px; max-width: 760px; }
.ncs-empty h3 { font-size: 30px; text-transform: uppercase; margin: 0 0 8px; }
.ncs-empty p { color: var(--ncs-fog); margin: 0; }

/* Coming soon: the same signs, lights off */
.ncs-soon { margin-top: 48px; }
.ncs-soon-t { font-weight: 700; font-size: 24px; text-transform: uppercase; margin: 0 0 14px; color: var(--ncs-fog) !important; }
.ncs-soon-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ncs-soon-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; border: 1px dashed var(--ncs-line); border-radius: 6px; padding: 12px 20px 12px 12px; --tone: #4A5168; }
.ncs-art-sm { aspect-ratio: 16 / 9; border-radius: 4px; }
.ncs-art-sm::after { background: linear-gradient(90deg, rgba(10, 12, 22, .45), rgba(10, 12, 22, 0) 70%); }
.ncs-art-sm .ncs-glyph { width: 46px; height: 46px; left: 12px; bottom: 8px; filter: none; }
.ncs-soon-item h4 { font-weight: 700; font-size: 26px; text-transform: uppercase; margin: 0 0 4px; color: #C9CCD8; }
.ncs-soon-item p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ncs-fog); }

/* ---------- From checkout to your server ---------- */
.ncs-how { padding-top: 96px; }
.ncs-steps { list-style: none; counter-reset: ncs-step; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ncs-over); }
.ncs-steps li { counter-increment: ncs-step; padding: 22px 24px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ncs-fog); }
.ncs-steps li + li { padding-left: 24px; border-left: 1px solid var(--ncs-over); }
.ncs-steps li::before { content: counter(ncs-step); font-family: var(--ncs-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--ncs-sodium); }
.ncs-steps strong { font-size: 17px; color: var(--ncs-bone); }

/* ---------- FAQ ---------- */
.ncs-faq { padding-top: 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; align-items: start; }
.ncs-faq-list { border-top: 1px solid var(--ncs-over); }
.ncs-faq details { border-bottom: 1px solid var(--ncs-over); }
.ncs-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 600; font-size: 17px; color: var(--ncs-bone); }
.ncs-faq summary::-webkit-details-marker { display: none; }
.ncs-faq summary::after { content: "+"; font-family: var(--ncs-display); font-weight: 700; font-size: 26px; line-height: .8; color: var(--ncs-sodium); }
.ncs-faq details[open] summary::after { content: "\2212"; }
.ncs-faq details p { margin: 0 0 20px; max-width: 64ch; font-size: 15px; line-height: 1.65; color: var(--ncs-fog); }
.ncs-fine { padding-top: 64px; padding-bottom: 88px; margin-top: 0; margin-bottom: 0; font-size: 13px; line-height: 1.6; color: #7E8499; }
.ncs-fine a { color: var(--ncs-fog); }

/* ---------- Detail sheet: an NCID paper docket ---------- */
.ncs-sheet { display: none; position: fixed; inset: 0; z-index: 2000; overflow-y: auto; overscroll-behavior: contain; background: rgba(5, 6, 12, .82); padding: 5vh 20px; }
.ncs:not(.ncs-js) .ncs-sheet:target, .ncs-sheet.is-open { display: block; }
.ncs-scrim { position: fixed; inset: 0; }
.ncs-doc { position: relative; max-width: 1040px; margin: 0 auto; background: var(--ncs-paper); color: var(--ncs-ink); border-radius: 6px; box-shadow: 0 40px 120px rgba(0, 0, 0, .65); padding: 36px 40px 40px; }
.ncs-sheet.is-open .ncs-doc { animation: ncs-rise .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes ncs-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.ncs-doc::before, .ncs-doc::after { content: ""; position: absolute; top: -12px; width: 110px; height: 26px; background: rgba(242, 178, 60, .82); }
.ncs-doc::before { left: 36px; transform: rotate(-3deg); }
.ncs-doc::after { right: 120px; transform: rotate(2.5deg); }
.ncs-doc h2, .ncs-doc h3 { color: var(--ncs-ink); }
.ncs-doc a { color: var(--ncs-link-paper); text-decoration-color: rgba(179, 38, 30, .45); }
.ncs-doc a:hover { color: #7F1712; }
.ncs-doc a.btn { color: #fff; }
.ncs-doc :focus-visible { outline: 3px solid var(--ncs-ink); outline-offset: 2px; }
.ncs-doc .ncs-mono { background: rgba(27, 31, 46, .07); padding: 1px 5px; border-radius: 3px; white-space: normal; }
.ncs-close { position: absolute; z-index: 1; top: 18px; right: 20px; font-weight: 700; font-size: 14px; color: var(--ncs-ink) !important; text-decoration: none !important; border: 1.5px solid var(--ncs-ink); border-radius: 4px; padding: 6px 12px; background: var(--ncs-paper); }
.ncs-close:hover { background: var(--ncs-ink); color: var(--ncs-paper) !important; }

.ncs-doc-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; padding-bottom: 28px; border-bottom: 2px solid var(--ncs-ink); }
.ncs-doc-art { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #070810; }
.ncs-doc-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ncs-doc-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 22, 0) 40%, rgba(10, 12, 22, .85) 100%); }
.ncs-doc-art .ncs-glyph { width: 92px; height: 92px; left: 22px; bottom: 18px; }
.ncs-doc-kind { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ncs-ink-2); }
.ncs-doc-title h2 { font-weight: 900; font-size: clamp(40px, 5vw, 62px); line-height: .92; margin: 0 0 14px; padding-right: 70px; }
.ncs-doc-pitch { font-size: 17px; line-height: 1.55; margin: 0 0 22px; max-width: 46ch; }
.ncs-doc-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.ncs-doc-price { display: flex; flex-direction: column; }
.ncs-doc-price strong { font-family: var(--ncs-display); font-weight: 800; font-size: 48px; line-height: 1; }
.ncs-doc-price span { font-size: 13px; color: var(--ncs-ink-2); }
.ncs-doc .ncs-soldout { color: var(--ncs-ink-2); border-color: var(--ncs-ink-2); }

.ncs-doc-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; padding-top: 28px; }
.ncs-doc-body h3 { font-weight: 800; font-size: 24px; text-transform: uppercase; margin: 0 0 10px; }
.ncs-doc-body h3:not(:first-child) { margin-top: 26px; }
.ncs-doc-body ul, .ncs-doc-body ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.55; }
.ncs-doc-body li::marker { color: var(--ncs-ink-2); }
.ncs-doc-steps li::marker { font-family: var(--ncs-display); font-weight: 800; color: var(--ncs-ink); }
.ncs-doc-note { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid #6E5BD6; background: rgba(110, 91, 214, .08); font-size: 14.5px; line-height: 1.55; }
.ncs-doc-side { background: var(--ncs-paper-2); border-radius: 4px; padding: 22px 24px 24px; align-self: start; }
.ncs-doc-side ul { font-size: 14px; }

/* ---------- Homepage: OPEN//77 hosting + store teaser ---------- */
.ncs-home { padding-top: 96px; }
.ncs-o77 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.ncs-o77-copy p { font-size: 17px; line-height: 1.6; color: #C9CDDA; margin: 16px 0 0; max-width: 48ch; }
.ncs-o77-list { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ncs-fog); }
.ncs-o77-list li { padding-left: 20px; position: relative; }
.ncs-o77-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 2px; background: #2EE6FF; box-shadow: 0 0 6px #2EE6FF; }
.ncs-o77-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.ncs-o77-actions small { font-size: 13px; color: var(--ncs-fog); }
.ncs-o77-art { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--ncs-over); }
.ncs-o77-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; display: block; }
.ncs-o77-art figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 16px; background: linear-gradient(180deg, rgba(10, 12, 22, 0), rgba(10, 12, 22, .88)); font-size: 12.5px; color: var(--ncs-fog); }
.ncs-teaser { margin-top: 120px; }
.ncs-teaser-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 28px; }
.ncs-teaser-head p { margin: 12px 0 0; color: #C9CDDA; font-size: 17px; max-width: 54ch; line-height: 1.55; }
.ncs-teaser-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ncs-tile { position: relative; display: flex; flex-direction: column; background: var(--ncs-under); border: 1px solid var(--ncs-over); border-radius: 6px; overflow: hidden; text-decoration: none !important; color: var(--ncs-bone) !important; transition: border-color .2s; }
.ncs-tile:hover, .ncs-tile:focus-visible { border-color: color-mix(in srgb, var(--tone) 60%, var(--ncs-over)); }
.ncs-tile .ncs-art { aspect-ratio: 16 / 9; }
.ncs-tile .ncs-glyph { width: 54px; height: 54px; left: 16px; bottom: 10px; }
.ncs-tile-body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ncs-tile h3 { font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; margin: 0; }
.ncs-tile p { font-size: 14px; line-height: 1.5; color: var(--ncs-fog); margin: 0; }
.ncs-tile .ncs-price { margin-top: auto; padding-top: 10px; flex-direction: row; align-items: baseline; gap: 8px; }
.ncs-tile .ncs-price strong { font-size: 30px; }
.ncs-home-end { padding-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .ncs-teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .ncs-grid, .ncs-soon-row { grid-template-columns: minmax(0, 1fr); }
  .ncs-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ncs-terms > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ncs-terms > div:nth-child(n+3) { border-top: 1px solid rgba(236, 231, 218, .12); }
  .ncs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ncs-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ncs-steps li:nth-child(n+3) { margin-top: 22px; }
  .ncs-faq { grid-template-columns: minmax(0, 1fr); }
  .ncs-o77 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ncs-doc-head, .ncs-doc-body { grid-template-columns: minmax(0, 1fr); }
  .ncs-doc-art { aspect-ratio: 16 / 7; }
}
@media (max-width: 575.98px) {
  .ncs-hero-copy { padding-top: 48px; padding-bottom: 48px; }
  .ncs-hero-art::after { background: linear-gradient(180deg, rgba(10, 12, 22, .55) 0%, rgba(10, 12, 22, .78) 45%, rgba(10, 12, 22, .95) 80%, var(--ap-bg, #0A0C11) 100%); }
  .ncs-lede { font-size: 17px; }
  .ncs-terms dt { font-size: 20px; }
  .ncs-terms > div { padding-right: 12px; }
  .ncs-terms > div + div { padding-left: 12px; }
  .ncs-terms > div:nth-child(3) { padding-left: 0; }
  .ncs-shelf, .ncs-home { padding-top: 64px; }
  .ncs-how, .ncs-faq { padding-top: 72px; }
  .ncs-item-body { padding: 4px 18px 20px; }
  .ncs-item h3 { font-size: 30px; }
  .ncs-item-foot { flex-direction: column; align-items: stretch; }
  .ncs-item-actions { justify-content: space-between; }
  .ncs-soon-item { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .ncs-soon-item h4 { font-size: 22px; }
  .ncs-steps { grid-template-columns: minmax(0, 1fr); }
  .ncs-steps li, .ncs-steps li + li { padding-left: 0; border-left: 0; }
  .ncs-steps li + li { margin-top: 22px; }
  .ncs-sheet { padding: 0; }
  .ncs-doc { border-radius: 0; padding: 64px 18px 28px; min-height: 100%; }
  .ncs-doc::before, .ncs-doc::after { display: none; }
  .ncs-doc-title h2 { padding-right: 0; }
  .ncs-teaser-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ncs-sheet.is-open .ncs-doc { animation: none; }
  .ncs-item, .ncs-tile { transition: none; }
}
