:root {
  --nc-black: #0D0D0D;
  --nc-surface: #1A1A1A;
  --nc-surface-mid: #242424;
  --nc-white: #FFFFFF;
  --nc-white-60: rgba(255,255,255,0.60);
  --nc-white-30: rgba(255,255,255,0.30);
  /* Matched to the rest of the site's mint (css/styles.css --nc-mint) -
     this file previously defined its own, visibly different shade
     (#A8DED4, a greener mint) instead of reusing the shared brand color. */
  --nc-mint: #A8DADC;
  --nc-mint-fill: #A8DADC;
  --nc-mint-glow: rgba(168,218,220,0.12);
  --nc-border: rgba(255,255,255,0.08);
  --nc-border-mint: rgba(168,218,220,0.35);
  --nc-risk: #F5A3C7;
  --nc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nc-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nc-base: 300ms;
  --nc-slow: 600ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--nc-black);
  color: var(--nc-white);
  font-family: "Poppins", system-ui, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  /* Just normal breathing room below the header, NOT header clearance -
     site-chrome.js's compensateLayout() already pushes the whole body
     down by the header's real height via body.style.paddingTop. An
     earlier version of this rule duplicated that clearance with another
     ~104px on top of it, which is why removing the local nav (which used
     to provide this same padding as a side effect of its margin-bottom)
     didn't actually shrink the visible gap. */
  padding: 24px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: center;
  padding: 0 0 80px;
}

.section-kicker,
.card-number {
  margin: 0 0 16px;
  color: var(--nc-mint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
}

/* Title scale matched to the case-study hero h1 (.case-hero h1 in
   portfolio/css/styles.css) instead of Home's much bigger splash size -
   the previous bump read as too dominant and inconsistent with how every
   other page in the site titles itself. Subtitle/paragraph below still
   follow Home's "Where I create the most value" scale (.hero-lead =
   .card h3, .hero-copy = .card p). */
h1 {
  max-width: 920px;
  margin: 0 0 28px;
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 500;
  letter-spacing: clamp(-3px, -0.24vw, -1.2px);
  line-height: 1.04;
}

.hero-lead {
  max-width: 760px;
  margin: 0;
  color: var(--nc-white);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.05;
}

.hero-lead em {
  color: var(--nc-mint);
  font-style: normal;
}

.hero-copy {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--nc-white-60);
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.primary-link,
.secondary-link,
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--nc-base) var(--nc-ease-out), border-color var(--nc-base) var(--nc-ease-out);
}

.primary-link {
  background: var(--nc-mint-fill);
  color: var(--nc-black);
}

.secondary-link,
.card-cta {
  border: 1px solid var(--nc-border-mint);
  color: var(--nc-mint);
}

.primary-link:hover,
.secondary-link:hover,
.card-cta:hover {
  transform: translateY(-4px);
}

.tag-playground {
  min-height: 420px;
  position: relative;
  border: 1px dashed var(--nc-border-mint);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 25%, rgba(168,218,220,0.08), transparent 220px),
    var(--nc-surface);
  overflow: hidden;
}

.tag-instruction {
  position: absolute;
  left: 24px;
  bottom: 22px;
  margin: 0;
  color: var(--nc-white-30);
  font-size: 13px;
  font-weight: 500;
}

.skill-tag,
.status-tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(13,13,13,0.72);
  user-select: none;
}

.skill-tag {
  border: 1px solid var(--nc-border-mint);
  color: var(--nc-mint);
}

/* Deliberately NOT the mint accent used everywhere else for actionable
   things (skill-tag, card-cta, links) - "Coming soon" isn't clickable,
   so giving it the same color as things that are was misleading. Plain
   neutral border/text instead. */
.status-tag {
  border: 1px solid var(--nc-border);
  color: var(--nc-white-30);
}

.tag-playground .skill-tag {
  position: absolute;
  cursor: grab;
  touch-action: none;
  transform: rotate(var(--r));
  transition: box-shadow var(--nc-base) var(--nc-ease-out), border-color var(--nc-base) var(--nc-ease-out);
}

.tag-playground .skill-tag:nth-of-type(1) { left: 11%; top: 18%; }
.tag-playground .skill-tag:nth-of-type(2) { right: 12%; top: 28%; }
.tag-playground .skill-tag:nth-of-type(3) { left: 20%; bottom: 36%; }
.tag-playground .skill-tag:nth-of-type(4) { right: 10%; bottom: 22%; }

.tag-playground .skill-tag.dragging {
  cursor: grabbing;
  z-index: 10;
  border-color: var(--nc-mint);
  box-shadow: 0 24px 80px var(--nc-mint-glow);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.lab-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--nc-surface);
  border: 1px solid var(--nc-border);
  /* Matched to the rest of the site's card radius (css/styles.css .card
     uses 24px) - this was 16px, a visibly tighter corner than every
     other card on the platform. */
  border-radius: 24px;
  padding: 28px;
  transition: transform var(--nc-base) var(--nc-ease-out), box-shadow var(--nc-base) var(--nc-ease-out), border-color var(--nc-base) var(--nc-ease-out);
}

.lab-card:hover {
  transform: translateY(-6px);
  border-color: var(--nc-border-mint);
  box-shadow: 0 24px 80px var(--nc-mint-glow);
}

/* Resources/Templates aren't clickable yet - the same hover lift/glow
   "Games" gets (which IS a link) would invite a click that goes
   nowhere. Muting the title too so the card reads as "not here yet"
   at a glance, not just from the small status-tag label. */
.lab-card.is-coming-soon {
  cursor: default;
}

.lab-card.is-coming-soon:hover {
  transform: none;
  border-color: var(--nc-border);
  box-shadow: none;
}

.lab-card.is-coming-soon h2 {
  color: var(--nc-white-60);
}

/* Matched to the equivalent card-title role elsewhere on the site
   (css/styles.css .card h3: clamp(24px,2.8vw,34px)) - this was a flat
   36-48px for a single short word ("Resources", "Templates", "Games"),
   noticeably heavier than analogous cards anywhere else. */
.lab-card h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 600;
}

.lab-card p:not(.card-number) {
  color: var(--nc-white-60);
  font-size: 16px;
  line-height: 1.7;
}

.status-tag,
.card-cta { margin-top: auto; }

.featured-card {
  background: linear-gradient(180deg, var(--nc-surface-mid), var(--nc-surface));
}

.game-highlight {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--nc-border);
  background: var(--nc-surface);
}

.game-highlight h2 {
  margin: 0;
  font-size: clamp(48px, 8vw, 80px);
  line-height: 0.95;
  letter-spacing: -4px;
  font-weight: 600;
}

.game-highlight p {
  margin: 0;
  color: var(--nc-white-60);
  font-size: 18px;
  line-height: 1.7;
}

.round-cta {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--nc-mint-fill);
  color: var(--nc-black);
  font-size: 26px;
  font-weight: 600;
  transition: transform var(--nc-base) var(--nc-ease-spring);
}

.round-cta:hover { transform: scale(1.1); }

@media (max-width: 920px) {
  .hero,
  .lab-grid,
  .game-highlight {
    grid-template-columns: 1fr;
  }

  .tag-playground {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 20px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 64px;
  }

  .lab-card,
  .game-highlight {
    padding: 22px;
  }
}
