/* ==========================================================================
   NXT Creative — Color grading course page
   Builds on site.css tokens and components.
   ========================================================================== */

:root {
  --scope-bg: #0B0C0B;
  --scope-line: rgba(242, 240, 235, .12);
  --scope-ink: rgba(242, 240, 235, .55);
}

section[id] { scroll-margin-top: 24px; }

/* Shared section furniture ----------------------------------------------- */

.kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
  font: 500 .75rem/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker .num { color: var(--ink); }

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3.1rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.c-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter) 0;
}

.section-head { max-width: 60ch; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head > p:last-child { margin: 16px 0 0; max-width: 52ch; font-size: 1.05rem; color: var(--muted); }

.link-quiet {
  padding-bottom: 2px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1.5px;
  transition: background-size .4s var(--ease);
}
.link-quiet:hover { background-size: 0% 1.5px; background-position: 100% 100%; }

/* Hero ------------------------------------------------------------------- */

.c-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(56px, 7vw, 96px);
}

.frame-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 560px;
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font: 400 .68rem/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.c-headline {
  font-size: clamp(2.3rem, 1rem + 3.4vw, 4.1rem);
  line-height: .98;
  text-wrap: balance;
}

.c-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 36px;
}

@media (max-width: 960px) {
  .c-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .c-actions .btn-pill { width: 100%; justify-content: space-between; }
}

/* Vectorscope card */
.scope-card {
  margin: 0;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: background-color .35s ease, border-color .35s ease;
}

.scope-head,
.scope-readout {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 500 .7rem/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.scope-head { margin-bottom: 16px; }
.scope-head [data-scope-coord] { color: var(--ink); font-variant-numeric: tabular-nums; }

.scope {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle, #141714 0%, var(--scope-bg) 68%, #050605 100%);
  box-shadow: inset 0 0 0 1px var(--scope-line), inset 0 0 60px rgba(0, 0, 0, .6);
  cursor: crosshair;
  touch-action: pan-y;
}

/* Faint hue wheel, aligned with the targets (CSS conic 0deg = 12 o'clock, clockwise) */
.scope-wheel {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    hsl(341 90% 55%) 0deg, hsl(300 90% 55%) 29deg, hsl(240 90% 60%) 103deg,
    hsl(180 90% 50%) 167deg, hsl(120 80% 48%) 209deg, hsl(60 90% 52%) 283deg,
    hsl(0 90% 55%) 347deg, hsl(341 90% 55%) 360deg);
  opacity: .2;
  -webkit-mask: radial-gradient(circle, transparent 0 18%, #000 72%);
          mask: radial-gradient(circle, transparent 0 18%, #000 72%);
}

.scope-grid {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(var(--scope-line), var(--scope-line)) center / 100% 1px no-repeat,
    linear-gradient(var(--scope-line), var(--scope-line)) center / 1px 100% no-repeat,
    repeating-conic-gradient(from 0deg, rgba(242, 240, 235, .05) 0 .6deg, transparent .6deg 30deg),
    radial-gradient(circle, transparent 0 calc(25% - 1px), var(--scope-line) calc(25% - 1px) 25%, transparent 25% calc(50% - 1px), var(--scope-line) calc(50% - 1px) 50%, transparent 50%);
}

.skin-line {
  position: absolute;
  left: 50%; top: 50%;
  width: 49%; height: 1px;
  transform-origin: 0 50%;
  transform: rotate(-123deg);
  background: linear-gradient(90deg, rgba(242, 240, 235, .05), rgba(242, 240, 235, .45));
}
.skin-line span {
  position: absolute;
  right: 12%; top: -16px;
  font: 500 .58rem/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--scope-ink);
  transform: rotate(180deg);
}

.target {
  --r: 37%;
  position: absolute;
  left: calc(50% + cos(var(--a)) * var(--r));
  top: calc(50% - sin(var(--a)) * var(--r));
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 1px solid rgba(242, 240, 235, .3);
  border-radius: 4px;
  transform: translate(-50%, -50%);
  font: 500 .58rem/1 var(--font-mono);
  letter-spacing: .04em;
  color: var(--scope-ink);
}

.scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.scope-readout { margin-top: 16px; flex-wrap: wrap; }
.scope-readout b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.scope-status {
  padding: 5px 9px;
  margin: -5px 0;
  border-radius: 999px;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  transition: background-color .25s, color .25s;
}
.scope-status[data-state="hot"] { background: var(--danger-bg); color: var(--danger); box-shadow: none; }
.scope-status[data-state="skin"] { background: var(--accent); color: var(--on-accent); box-shadow: none; }

/* Film strip ------------------------------------------------------------- */

.filmstrip {
  position: relative;
  padding: 22px 0;
  background: var(--ink);
  color: var(--bg);
  transition: background-color .35s ease, color .35s ease;
}
.filmstrip::before,
.filmstrip::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--bg) 0 12px, transparent 12px) 6px 0 / 26px 6px repeat-x;
  opacity: .9;
}
.filmstrip::before { top: 6px; }
.filmstrip::after { bottom: 6px; }

.filmstrip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  list-style: none;
  font: 400 .76rem/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 62%, transparent);
}
.filmstrip li { display: flex; align-items: center; gap: 10px; }
.filmstrip li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.filmstrip b { font-weight: 500; color: var(--bg); }

/* Before / after --------------------------------------------------------- */

.compare {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #111;
  box-shadow: var(--shadow);
  user-select: none;
  isolation: isolate;
}
@media (max-width: 720px) { .compare { border-radius: 18px; } }

.compare-media { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The graded clip sits on top, showing only to the right of the line. */
.compare-media.is-graded {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #F2F0EB;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
  pointer-events: none;
}
.compare-knob {
  position: absolute;
  left: 50%; top: 50%;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
}
.compare:hover .compare-knob { transform: translate(-50%, -50%) scale(1.08); }
.compare-range:focus-visible ~ .compare-handle .compare-knob,
.compare:has(.compare-range:focus-visible) .compare-knob { outline: 2px solid #F2F0EB; outline-offset: 3px; }

.compare-tag {
  position: absolute;
  top: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(10, 10, 10, .55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: #F2F0EB;
  font: 500 .66rem/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare-tag.is-before { left: 16px; }
.compare-tag.is-after { right: 16px; }

/* Native range covers the whole frame: drag anywhere, keyboard arrows, screen readers. */
.compare-range {
  position: absolute; inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
          appearance: none;
}
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 2000px; }
.compare-range::-moz-range-thumb { width: 48px; height: 2000px; border: 0; }

.compare-play {
  position: absolute;
  right: 16px; bottom: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 10, .55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: #F2F0EB;
  cursor: pointer;
  transition: background-color .2s;
}
.compare-play:hover { background: rgba(10, 10, 10, .8); }
.compare-play:focus-visible { outline: 2px solid #F2F0EB; outline-offset: 3px; }
.compare-play .icon-play,
.compare-play[data-state="paused"] .icon-pause { display: none; }
.compare-play[data-state="paused"] .icon-play { display: block; }

/* Tiers ------------------------------------------------------------------ */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 960px) { .tiers { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

.tier {
  --tier-line: var(--line);
  --tier-muted: var(--muted);
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s, background-color .35s ease;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.tier.is-featured {
  --tier-line: color-mix(in srgb, var(--bg) 16%, transparent);
  --tier-muted: color-mix(in srgb, var(--bg) 62%, transparent);
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.tier-code {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 40px; /* fits the badge, so all three cards line up */
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--tier-line);
  font: 400 .66rem/1 var(--font-mono);
  letter-spacing: .1em;
  color: var(--tier-muted);
}
.tier-badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
  text-transform: uppercase;
}

.tier h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 750;
  font-stretch: 108%;
  letter-spacing: -.01em;
}
.tier-for { margin: 4px 0 0; font-size: .92rem; color: var(--tier-muted); }

.tier-price {
  margin: 26px 0 0;
  font-size: clamp(2.4rem, 1.6rem + 2vw, 3.2rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1;
  letter-spacing: -.03em;
}

.tier-list {
  flex: 1;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: .94rem;
}
.tier-list li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--tier-line);
}
.tier-list li::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.25 5 8.75l4.5-5' fill='none' stroke='%230E0E0E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.tier-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  padding: 15px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s;
}
.tier-cta span { transition: transform .35s var(--ease); }
.tier-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tier-cta:hover span { transform: translateX(4px); }

.tier.is-featured .tier-cta { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.tier.is-featured .tier-cta:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }

/* Process ---------------------------------------------------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .process { grid-template-columns: minmax(0, 1fr); } }

.process li {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.process li::before {
  content: "";
  position: absolute;
  left: 0; top: -2px;
  width: 28%; height: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent);
  transition: width .5s var(--ease);
}
.process li:hover::before { width: 100%; }
.process .step-num { display: block; margin-bottom: 18px; }
.process h3 { margin: 0; font-size: 1.15rem; font-weight: 700; font-stretch: 106%; }
.process p { margin: 8px 0 0; font-size: .94rem; color: var(--muted); }

/* Questions -------------------------------------------------------------- */

.c-ask { padding-top: clamp(64px, 9vw, 120px); }
.c-ask .lede { margin-top: 20px; }
.c-ask .form { gap: 24px; }
.c-ask .subgroup .chips { clear: both; }
