/* What's next (owner 27 Nov): a dark hero with a slow aurora and a large 2.0, a progress track that fills to the
   current step, then status cards. Content lives in whats-next.html; this file only styles it. */
.sub main.page.wn { padding-top: 0; }
.wn { --wn-ink: #0D0D12; --wn-maroon: #8A1538; --wn-blue: #2F6BFF; --wn-gold: #F1C21B; }

/* Hero */
.wn-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--wn-ink); color: #F5F5F7; padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 9vw, 120px); }
.wn-aurora { position: absolute; inset: -20%; z-index: -1; filter: blur(70px) saturate(1.2); opacity: .75; }
.wn-aurora span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; mix-blend-mode: screen; animation: wn-orbit 22s var(--ease-out) infinite alternate; }
.wn-aurora span:nth-child(1) { left: 5%; top: 10%; background: radial-gradient(circle, var(--wn-maroon), transparent 65%); }
.wn-aurora span:nth-child(2) { right: 0; top: -5%; background: radial-gradient(circle, var(--wn-blue), transparent 65%); animation-duration: 28s; animation-delay: -6s; }
.wn-aurora span:nth-child(3) { left: 35%; bottom: -15%; background: radial-gradient(circle, color-mix(in srgb, var(--wn-gold) 70%, transparent), transparent 62%); animation-duration: 34s; animation-delay: -12s; opacity: .6; }
@keyframes wn-orbit {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vmax, 4vmax) scale(1.15); }
  100% { transform: translate(-6vmax, 7vmax) scale(.9); }
}
.wn-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.wn-hero-in { max-width: 980px; }
.wn-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); backdrop-filter: blur(8px); color: rgba(255,255,255,.82); font-size: 14px; font-weight: 500; }
.wn-pulse { width: 8px; height: 8px; border-radius: 50%; background: #42BE65; box-shadow: 0 0 0 0 rgba(66,190,101,.6); animation: wn-pulse 2.2s ease-out infinite; }
@keyframes wn-pulse { 0% { box-shadow: 0 0 0 0 rgba(66,190,101,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(66,190,101,0); } }
.wn-hero h1 { display: grid; gap: 8px; margin-top: 28px; color: #fff; }
.wn-num { font-family: var(--display); font-size: clamp(120px, 22vw, 260px); line-height: .82; letter-spacing: -0.05em; background: linear-gradient(100deg, #fff 0%, #FFD7E2 22%, #9CB8FF 45%, #fff 60%, #FFE58A 80%, #fff 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wn-shine 9s linear infinite; }
@keyframes wn-shine { to { background-position: -250% 0; } }
.wn-h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; max-width: 18ch; }
.sub .page.wn .wn-hero .lead { margin-top: 22px; max-width: 60ch; color: rgba(255,255,255,.74); }
.wn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.wn-chips li { padding: 8px 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: rgba(255,255,255,.88); font-size: 14px; }
.wn-chips li::before { content: "✓"; margin-right: 8px; color: #42BE65; font-weight: 700; }

/* Hero entrance */
html.js .wn-hero-in > * { opacity: 0; transform: translateY(14px); animation: wn-rise .9s var(--ease-out) forwards; }
html.js .wn-hero-in > :nth-child(2) { animation-delay: .08s; }
html.js .wn-hero-in > :nth-child(3) { animation-delay: .2s; }
html.js .wn-hero-in > :nth-child(4) { animation-delay: .32s; }
@keyframes wn-rise { to { opacity: 1; transform: none; } }

/* Progress track */
.wn-progress { margin-top: clamp(48px, 6vw, 72px); }
.wn-kicker { color: var(--text2); font-family: var(--font); font-size: 13px !important; font-weight: 600; letter-spacing: .08em; line-height: 1.4 !important; text-transform: uppercase; }
.wn-track { --fill: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.wn-track::before, .wn-track::after { content: ""; position: absolute; left: 9px; right: calc((100% - 48px) / 5 - 9px); top: 8px; height: 3px; background: var(--line); }
.wn-track::after { right: auto; width: calc((100% - (100% - 48px) / 5) * var(--fill)); background: linear-gradient(90deg, var(--wn-maroon), var(--wn-blue)); transition: width 1.4s var(--ease-out); }
.wn-track li { position: relative; z-index: 1; display: grid; gap: 4px; padding-top: 32px; }
.wn-dot { position: absolute; left: 0; top: 0; width: 19px; height: 19px; border: 3px solid var(--line); border-radius: 50%; background: var(--win); transition: border-color .6s, background .6s; }
.wn-track li.is-done .wn-dot { border-color: var(--wn-maroon); background: var(--wn-maroon); }
.wn-track li.is-now .wn-dot { border-color: var(--wn-blue); background: #fff; box-shadow: 0 0 0 0 rgba(47,107,255,.5); animation: wn-now 2s ease-out infinite; }
@keyframes wn-now { 0% { box-shadow: 0 0 0 0 rgba(47,107,255,.45); } 80%, 100% { box-shadow: 0 0 0 12px rgba(47,107,255,0); } }
.wn-track b { font-size: 17px; font-weight: 600; }
.wn-track small { color: var(--text2); font-size: 14px; line-height: 1.4; }
.wn-track li.is-now b { color: var(--wn-blue); }
.wn-note { margin-top: 24px; max-width: 64ch; color: var(--text2); }

/* Groups and cards */
.wn-group { margin-top: clamp(72px, 10vw, 120px); }
.wn-group-head { display: grid; gap: 10px; margin-bottom: 28px; }
.wn-group-head p { color: var(--text2); font-size: 17px; }
.wn-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.wn-card { --mx: 50%; --my: 50%; position: relative; display: grid; align-content: start; gap: 10px; padding: 28px; border: 1px solid var(--line); background: var(--card-bg); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s; }
.wn-card::before { content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: 0; background: radial-gradient(320px circle at var(--mx) var(--my), color-mix(in srgb, var(--wn-blue) 16%, transparent), transparent 70%); transition: opacity .4s; }
.wn-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--wn-blue) 35%, var(--line)); box-shadow: 0 18px 40px -18px rgba(20,20,40,.28); }
.wn-card:hover::before { opacity: 1; }
.wn-card h3 { font-size: 20px; line-height: 1.25; }
.sub .page .wn-card p { color: var(--text2); line-height: 1.55; }
.wn-card-big { grid-column: span 2; grid-row: span 2; align-content: end; min-height: 320px; overflow: hidden; color: #fff; border-color: transparent; background: linear-gradient(135deg, #14141C, #24112A 55%, #0F1E44); }
.wn-card-big::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(138,21,56,.85), transparent 65%); filter: blur(30px); animation: wn-orbit 18s var(--ease-out) infinite alternate; }
.wn-card-big > * { position: relative; z-index: 1; }
.wn-card-big h3 { font-size: clamp(28px, 3.2vw, 40px); font-family: var(--display); font-weight: 400; }
.wn-card-big p { max-width: 44ch; color: rgba(255,255,255,.78); font-size: 17px; }
.wn-status { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 13px; font-weight: 600; line-height: 18px; background: var(--hover); color: var(--text2); }
.wn-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
[data-status="design"] .wn-status { background: color-mix(in srgb, var(--wn-blue) 12%, transparent); color: #1F4FD1; }
[data-status="building"] .wn-status { background: var(--mark); color: var(--on-mark); }
[data-status="testing"] .wn-status { background: color-mix(in srgb, var(--wn-maroon) 12%, transparent); color: var(--wn-maroon); }
[data-status="done"] .wn-status { background: color-mix(in srgb, #198038 14%, transparent); color: #198038; }
[data-status="building"] .wn-status::before { animation: wn-blink 1.4s ease-in-out infinite; }
@keyframes wn-blink { 50% { opacity: .25; } }
.wn-card-big .wn-status { background: rgba(255,255,255,.12); color: #fff; }
.wn-cards-later .wn-card { padding: 24px; }
.wn-cards-later .wn-card h3 { font-size: 18px; }

/* Ask */
.wn-ask { margin: clamp(72px, 10vw, 120px) 0 clamp(24px, 4vw, 48px); padding: clamp(32px, 5vw, 56px); border: 1px solid var(--line); background: var(--panel-bg); text-align: center; }
.wn-ask p { margin: 12px auto 0; max-width: 52ch; color: var(--text2); }
.wn-ask-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Scroll reveal (whats-next.js adds .wn-in) */
html.js .wn-rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
html.js .wn-rv.wn-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .wn-cards { grid-template-columns: repeat(2, 1fr); }
  .wn-card-big { grid-row: auto; min-height: 260px; }
}
@media (max-width: 640px) {
  .wn-cards { grid-template-columns: 1fr; }
  .wn-card-big { grid-column: auto; }
  .wn-track { grid-template-columns: 1fr; gap: 0; }
  .wn-track::before, .wn-track::after { left: 8px; right: auto; top: 10px; bottom: 30px; width: 3px; height: auto; }
  .wn-track::after { height: calc((100% - 40px) * var(--fill)); bottom: auto; width: 3px; transition: height 1.4s var(--ease-out); }
  .wn-track li { padding: 0 0 22px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .wn-aurora span, .wn-num, .wn-pulse, .wn-card-big::after, .wn-track li.is-now .wn-dot, [data-status="building"] .wn-status::before { animation: none; }
  html.js .wn-hero-in > * { animation: none; opacity: 1; transform: none; }
  html.js .wn-rv { opacity: 1; transform: none; }
  .wn-card:hover { transform: none; }
}

/* The sub-page rule (pages-finish.css) makes every ul a bulleted grid; these lists keep their own layout. */
.sub .page.wn ul.wn-chips:not(.plain):not(.rel-list):not(.doc-list):not(.cl-index) { display: flex; padding-left: 0; list-style: none; gap: 8px; }
.sub .page.wn ul.wn-cards:not(.plain):not(.rel-list):not(.doc-list):not(.cl-index) { display: grid; padding-left: 0; list-style: none; gap: 16px; }
.sub .page .wn-cards > li, .sub .page .wn-chips > li { max-width: none; }
.sub .page .wn-chips + p, .sub .page p + ul.wn-chips { margin-top: 28px; }
@media (max-width: 640px) { .sub .page.wn ul.wn-cards:not(.plain):not(.rel-list):not(.doc-list):not(.cl-index) { grid-template-columns: 1fr; } }
/* Site-wide section padding and h2 margins would double the spacing set above. */
.sub .page.wn section { padding-top: 0; padding-bottom: 0; }
.sub .page.wn h2 { margin-top: 0; }
.sub .page.wn .wn-group-head h2, .sub .page.wn .wn-ask h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -0.028em; }
.sub .page.wn .wn-hero { padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 9vw, 120px); }
.wn-group { margin-top: clamp(64px, 8vw, 104px); }
.sub .page.wn .wn-card > * { margin: 0; }
.sub .page.wn .wn-card-big h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; color: #fff; }
.sub .page.wn .wn-card-big p { color: rgba(255,255,255,.78); font-size: 17px; }

/* A small drawn Mac window in the big card: tiles light up one after another, like designs arriving. */
.wn-card-big { align-content: space-between; }
.wn-mac { width: min(100%, 420px); margin-bottom: 20px !important; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.05); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); overflow: hidden; backdrop-filter: blur(6px); }
.wn-mac-bar { display: flex; gap: 6px; padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.wn-mac-bar i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; }
.wn-mac-bar i:nth-child(2) { background: #FEBC2E; }
.wn-mac-bar i:nth-child(3) { background: #28C840; }
.wn-mac-body { display: grid; grid-template-columns: 26% 1fr; min-height: 132px; }
.wn-mac-side { display: grid; align-content: start; gap: 8px; padding: 12px 10px; border-right: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.wn-mac-side b { height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); }
.wn-mac-side b:first-child { background: rgba(91,140,255,.7); }
.wn-mac-side b:nth-child(3) { width: 70%; }
.wn-mac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.wn-mac-grid span { border-radius: 4px; background: rgba(255,255,255,.07); animation: wn-tile 6s ease-in-out infinite; }
.wn-mac-grid span:nth-child(2) { animation-delay: .6s; }
.wn-mac-grid span:nth-child(3) { animation-delay: 1.2s; }
.wn-mac-grid span:nth-child(4) { animation-delay: 1.8s; }
.wn-mac-grid span:nth-child(5) { animation-delay: 2.4s; }
.wn-mac-grid span:nth-child(6) { animation-delay: 3s; }
@keyframes wn-tile { 0%, 100% { background: rgba(255,255,255,.07); } 12% { background: linear-gradient(135deg, rgba(138,21,56,.9), rgba(47,107,255,.8)); box-shadow: 0 0 18px rgba(91,140,255,.45); } 30% { background: rgba(255,255,255,.14); box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .wn-mac-grid span { animation: none; } }
.sub .page.wn section.wn-ask { padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px); }
