/* Nevica v3: built on v2. The bold moment is Christmas Eve: the page itself turns from dusk to night while the Mac fills up with snow, a tree, the Krampus and Santa. macOS pieces (notifications, Settings, the menu bar) carry the features. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
:root { --mac: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Figtree", system-ui, sans-serif; --blue: #0a84ff; }

/* top bar */
.topnav { display: flex; gap: 4px; margin-right: 10px; }
.topnav a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink-2); padding: 10px 12px; border-radius: 10px; }
.topnav a:hover { color: var(--ink); background: rgba(20, 37, 74, .06); }

/* ---------- hero: centred copy, a big Mac that straightens up as you scroll ---------- */
.hero3 { display: block; max-width: none; padding: 54px 20px 0; text-align: center; }
.hero3 .hero-copy { max-width: 1240px; margin: 0 auto; }
.hero3 h1 { font-size: clamp(46px, 7.1vw, 108px); line-height: .96; letter-spacing: -.025em; }
.hero3 .lede { margin: 26px auto 0; max-width: 31em; font-size: 20px; }
.hero3 .ctas { justify-content: center; margin-top: 32px; }
.hero3 .assure { margin-top: 18px; }
.hero3 .hero-mac { width: min(1180px, 94vw); margin: 64px auto 0; perspective: 1800px; }
.hero3 .hero-mac .stage { transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); will-change: transform; }
.hero3 .psst { margin: 30px auto 0; padding-bottom: 110px; max-width: 30em; }

/* ---------- Christmas Eve: a pinned scene, dusk to midnight ---------- */
.eve { --dusk: 0; position: relative; height: 560vh; background: color-mix(in oklab, var(--ice), #0b1530 calc(var(--dusk) * 100%)); color: var(--ink); transition: color .6s; }
.eve.dark { color: #eef3fb; }
.eve-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 74px 20px 26px; overflow: hidden; }
.eve-head, .eve-rail { width: min(1040px, 92vw, calc((100svh - 250px) * 1.42)); margin: 0 auto; }
.eve-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.eve-head h2 { font-size: clamp(28px, 3.2vw, 48px); line-height: 1.04; font-weight: 800; letter-spacing: -.015em; }
.eve-clock { margin: 0; font: 800 clamp(38px, 4.6vw, 70px)/.9 var(--serif); font-variant-numeric: tabular-nums; color: var(--holly); transition: color .6s; letter-spacing: -.02em; }
.eve.dark .eve-clock { color: var(--candle); }
.eve-stage { position: relative; width: min(1040px, 92vw, calc((100svh - 250px) * 1.42)); margin: 22px auto 0; }
.macbook.eve-mac .lid { margin: 0 4%; }
.eve .base { filter: brightness(var(--base, 1)); }

/* macOS notifications */
.notes { list-style: none; margin: 0; padding: 0; position: absolute; top: 7%; right: -7%; width: min(370px, 42%); z-index: 4; }
.note { position: absolute; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 13px 15px 14px 13px; border-radius: 20px;
  background: rgba(246, 247, 250, .84); backdrop-filter: blur(26px) saturate(1.8); -webkit-backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(0, 0, 0, .14), inset 0 0 0 .5px rgba(255, 255, 255, .7);
  font: 13.5px/1.34 var(--mac); color: #1d1d1f; opacity: 0; transform: translateX(46px) scale(.98); transition: opacity .45s, transform .55s cubic-bezier(.2, .9, .2, 1); }
.note img { border-radius: 10px; }
.note .app { margin: 0 0 2px; display: flex; justify-content: space-between; font-size: 12.5px; color: #6e6e73; }
.note .app b { color: #1d1d1f; font-weight: 600; }
.note h3 { font: 600 14.5px/1.3 var(--mac); margin: 0 0 2px; letter-spacing: 0; }
.note p { margin: 0; }
.note.on { opacity: 1; transform: none; z-index: 2; }
.note.prev { opacity: .75; transform: translateY(13px) scale(.94); z-index: 1; }
.note.prev > * { visibility: hidden; }
.note-act { grid-column: 1 / -1; display: block; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--berry); color: #fff; text-align: center; text-decoration: none; font: 600 14px/1.2 var(--mac); }
.note-act:hover { background: var(--berry-dk); }
.note:not(.on) .note-act { pointer-events: none; }
body.in-eve .dock-cta { transform: translate(-50%, 160%); }

/* the timeline under the Mac */
.eve-rail { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 24px; padding-top: 12px; font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; }
.eve-rail::before, .eve-rail i { content: ""; position: absolute; left: 0; top: 0; height: 2px; border-radius: 2px; }
.eve-rail::before { right: 0; background: currentColor; opacity: .15; }
.eve-rail i { width: calc(var(--p, 0) * 100%); background: var(--berry); }
.eve.dark .eve-rail i { background: var(--candle); }
.eve-rail span { opacity: .45; transition: opacity .3s; }
.eve-rail span.on { opacity: 1; }

/* ---------- photos on real desks: a tilted, drifting wall ---------- */
.desks { padding: 130px 0 70px; overflow: hidden; }
.desks h2 { max-width: 1240px; margin: 0 auto; padding: 0 20px; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -.015em; }
.m3 { margin: 10px 0 0; padding: 70px 0 90px; transform: perspective(1600px) rotateX(14deg) rotateZ(-5deg); transform-origin: 50% 50%; }
.m3-row { display: flex; gap: 22px; width: max-content; animation: slide 80s linear infinite; }
.m3:hover .m3-row { animation-play-state: paused; }
.m3 figure { margin: 0; width: clamp(200px, 19vw, 290px); flex: none; }
.m3 figure:nth-child(odd) { margin-top: 46px; }
.m3 img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; background: #cfd9e8; box-shadow: 0 30px 50px -26px rgba(20, 37, 74, .6); }

/* ---------- Make it yours: a real Settings window ---------- */
.make { max-width: 1240px; margin: 0 auto; padding: 30px 20px 130px; }
.make-copy { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.make h2 { font-size: clamp(38px, 5vw, 72px); line-height: 1; font-weight: 900; letter-spacing: -.02em; }
.make-copy p { margin: 0; max-width: 27em; color: var(--ink-2); font-size: 18px; }
.prefs { margin-top: 40px; border-radius: 16px; background: #f5f5f7; overflow: hidden; font: 13px/1.35 var(--mac); color: #1d1d1f;
  box-shadow: 0 50px 90px -40px rgba(20, 37, 74, .55), 0 0 0 .5px rgba(0, 0, 0, .2); }
.prefs-bar { height: 46px; display: flex; align-items: center; gap: 18px; padding: 0 16px; background: #ececef; border-bottom: .5px solid rgba(0, 0, 0, .12); }
.prefs-bar b { font-weight: 600; font-size: 13.5px; }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.prefs-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.prefs-side { list-style: none; margin: 0; padding: 12px 10px; background: #e8e9ed; border-right: .5px solid rgba(0, 0, 0, .1); }
.prefs-side li { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; margin-bottom: 2px; }
.prefs-side li.on { background: var(--blue); color: #fff; }
.prefs-side svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prefs-pane { padding: 22px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pv { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1400 / 781; background: #1a2440; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 14px 30px -16px rgba(0, 0, 0, .5); }
.pv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.pv-snow { --snow: #fff; position: absolute; inset: 0; overflow: hidden; pointer-events: none; transition: opacity .4s; }
.pv-snow::before, .pv-snow::after { content: ""; position: absolute; left: 0; right: 0; top: -220px; height: calc(100% + 220px); will-change: transform;
  background-image: radial-gradient(2.4px 2.4px at 20px 30px, var(--snow) 60%, transparent), radial-gradient(1.6px 1.6px at 90px 120px, var(--snow) 60%, transparent), radial-gradient(3px 3px at 160px 70px, var(--snow) 60%, transparent), radial-gradient(1.8px 1.8px at 200px 170px, var(--snow) 60%, transparent), radial-gradient(2.2px 2.2px at 120px 200px, var(--snow) 60%, transparent);
  background-size: 220px 220px; animation: pvfall 8s linear infinite; filter: drop-shadow(0 0 3px var(--glow, transparent)); }
.pv-snow::after { background-size: 150px 150px; top: -150px; height: calc(100% + 150px); opacity: .7; animation: pvfall2 12s linear infinite; }
@keyframes pvfall { to { transform: translateY(220px); } }
@keyframes pvfall2 { to { transform: translateY(150px); } }
.pv-snow.off { opacity: 0; }
.pv-name { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 8px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; font-weight: 500; }
.prefs-ctl .lbl { margin: 0 0 8px 2px; font-size: 12px; font-weight: 600; color: #6e6e73; }
.walls3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 16px; }
.walls3.small { grid-template-columns: repeat(5, 1fr); margin-bottom: 0; }
.walls3 button { padding: 0; border: 0; border-radius: 7px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; background: #cfd5e0; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .22); transition: box-shadow .15s, transform .15s; }
.walls3 button:hover { transform: translateY(-1px); }
.walls3 button img { width: 100%; height: 100%; object-fit: cover; }
.walls3 button[aria-pressed="true"] { box-shadow: 0 0 0 2px #f5f5f7, 0 0 0 4.5px var(--blue); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; background: #fff; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1); }
.row .lbl { margin: 0; color: #1d1d1f; font-weight: 500; font-size: 13px; }
.seg { display: flex; background: #e4e4e9; border-radius: 8px; padding: 2px; }
.seg button { border: 0; background: transparent; font: 500 12.5px var(--mac); color: #1d1d1f; padding: 5px 16px; border-radius: 6px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 0 0 .5px rgba(0, 0, 0, .06); }
.seg[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.swatches3 { display: flex; gap: 8px; }
.swatches3 button { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.swatches3 button[aria-pressed="true"] { box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25), 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.swatches3[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- music from the menu bar ---------- */
.tune { max-width: 1240px; margin: 0 auto; padding: 0 20px 130px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.tune h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -.015em; }
.tune-copy p { color: var(--ink-2); margin: 18px 0 0; max-width: 30em; }
.mbar-demo { position: relative; border-radius: 24px; overflow: hidden; min-height: 540px; background: #1b2747 center / cover; box-shadow: 0 40px 70px -40px rgba(20, 37, 74, .7); }
.mbar-demo.near { background-image: url(/assets/wp/xmas-station.webp); }
.mbar { height: 30px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; background: rgba(10, 16, 36, .42); color: #fff; font: 500 13px var(--mac); }
.mb-l b { font-weight: 700; margin-right: 16px; } .mb-l span { margin-right: 16px; }
.mb-r { display: flex; align-items: center; gap: 12px; }
.mb-nev { width: 16px; height: 16px; padding: 3px; box-sizing: content-box; border-radius: 5px; background: rgba(255, 255, 255, .28); fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.menu { position: absolute; top: 36px; right: 92px; width: 300px; padding: 5px; border-radius: 12px; background: rgba(246, 246, 248, .86); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 26px 54px -12px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(0, 0, 0, .3); font: 13px/1.3 var(--mac); color: #1d1d1f; }
.mh { margin: 6px 10px 3px; font-size: 11.5px; font-weight: 600; color: #8a8a8e; }
.menu button { display: grid; grid-template-columns: 22px 1fr; column-gap: 4px; width: 100%; text-align: left; border: 0; background: transparent; padding: 6px 10px 6px 6px; border-radius: 7px; font: inherit; color: inherit; cursor: pointer; }
.menu button span { grid-column: 2; font-weight: 500; }
.menu button small { grid-column: 2; font-size: 11.5px; color: #86868b; }
.menu button:hover, .menu button:focus-visible { background: var(--blue); color: #fff; outline: none; }
.menu button:hover small, .menu button:focus-visible small { color: rgba(255, 255, 255, .82); }
.eq { grid-row: span 2; align-self: center; justify-self: center; display: flex; gap: 2px; align-items: flex-end; height: 12px; opacity: 0; }
.eq b { width: 3px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq b:nth-child(2) { animation-delay: -.3s; } .eq b:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.menu button[aria-pressed="true"] .eq { opacity: 1; }
.menu hr { border: 0; height: .5px; background: rgba(0, 0, 0, .14); margin: 5px 10px; }
.mi { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 6px 10px 6px 32px; }
.sl { position: relative; width: 140px; height: 4px; border-radius: 2px; background: rgba(0, 0, 0, .13); }
.sl b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--blue); }
.sl b::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 0 0 .5px rgba(0, 0, 0, .1); }
.menu .now { margin: 4px 10px 6px 32px; font-size: 12px; color: #6e6e73; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .topnav { display: none; }
  .hero3 { display: flex; flex-direction: column; padding-top: 26px; }
  .hero3 .hero-mac { width: 100%; margin: 0; }
  .hero3 .psst { padding-bottom: 70px; }
  .tune { grid-template-columns: 1fr; gap: 30px; }
  .prefs-body { grid-template-columns: 1fr; }
  .prefs-side { display: none; }
  .prefs-pane { grid-template-columns: 1fr; }
  .notes { right: -2%; width: min(340px, 52%); }
}
@media (max-width: 760px) {
  .eve { height: 520vh; }
  .eve-pin { justify-content: flex-start; padding: 76px 16px 18px; }
  .eve-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .eve-head, .eve-stage, .eve-rail { width: 100%; }
  .eve-clock { font-size: 40px; }
  .eve-stage { margin-top: 16px; }
  .notes { position: relative; top: auto; right: auto; width: 100%; height: 138px; margin-top: 16px; }
  body.in-eve .dock-cta { transform: translateY(160%); }
  .notes { height: 190px; }
  .note { backdrop-filter: none; -webkit-backdrop-filter: none; background: #f6f7fa; }
  .eve-rail { font-size: 12px; margin-top: 4px; }
  .m3 { transform: none; padding: 34px 0 40px; }
  .m3 figure { width: 56vw; }
  .m3 figure:nth-child(odd) { margin-top: 26px; }
  .desks { padding: 80px 0 40px; }
  .make { padding-bottom: 80px; }
  .prefs { border-radius: 14px; margin-top: 28px; }
  .prefs-pane { padding: 14px; gap: 16px; }
  .walls3 { gap: 7px; }
  .seg button { padding: 9px 16px; }
  .row:has(.swatches3) { flex-wrap: wrap; }
  .swatches3 { gap: 12px; }
  .swatches3 button { width: 30px; height: 30px; }
  .tune { padding-bottom: 80px; }
  .mbar-demo { min-height: 0; padding-bottom: 16px; }
  .mbar .mb-l span { display: none; }
  .menu { position: relative; top: auto; right: auto; width: auto; margin: 12px 12px 0; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(246, 246, 248, .97); }
  .menu button { padding-top: 9px; padding-bottom: 9px; }
  .hero3 .lede { font-size: 17px; }
}
@media (max-height: 640px) and (min-width: 761px) { .notes { top: 2%; } }
@media (prefers-reduced-motion: reduce) {
  .m3-row, .pv-snow::before, .pv-snow::after, .eq b { animation: none; }
  .m3 { overflow-x: auto; transform: none; }
}

/* a Santa hat on the M of "Mac" in the hero headline */
.hero3 h1 .w.hat { position: relative; }
.hero3 h1 .w.hat::before {
  content: ""; position: absolute; left: -.14em; top: -.36em; width: 1.04em; aspect-ratio: 400 / 320;
  background: url(/assets/art/deco-santaHat.webp) center / contain no-repeat;
  transform: rotate(-10deg); transform-origin: 30% 80%; pointer-events: none;
  filter: drop-shadow(0 .04em .05em rgba(20, 30, 60, .18));
}
@media (prefers-reduced-motion: no-preference) {
  .hero3 h1 .w.hat::before { animation: hatOn .9s cubic-bezier(.3, 1.5, .5, 1) .5s both; }
  @keyframes hatOn { from { opacity: 0; transform: translateY(-.5em) rotate(-30deg); } to { opacity: 1; transform: rotate(-10deg); } }
}

/* language links in the footer */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; padding: 4px 16px 18px; }
.langs a { color: inherit; opacity: .75; text-decoration: none; }
.langs a:hover { opacity: 1; text-decoration: underline; }
.langs a[aria-current] { opacity: 1; font-weight: 700; }
