/* Noteoriety Studios "n3": an interactive 3D look. Near-black, electric blue and cream.
   Loaded after refresh.css, so it overrides the n2 palette and replaces the hero, services and work layouts. */

:root {
  --ink: #04050c;
  --ink2: #0a0d1c;
  --paper: #f1f0ec;
  --paper2: #e3e1d9;
  --cream: #ece7da;
  --mid: #8b91a8;
  --acc: #2a44ff;
  --acc2: #8ea2ff;
  --line-d: rgba(255, 255, 255, 0.14);
  --line-l: rgba(4, 5, 12, 0.18);
  --c-void: #04050c; --c-navy: #0a0d1c; --c-gold: #8ea2ff; --c-gold2: #c9d3ff; --c-ember: #2a44ff; --c-ice: #cfd6ff;
}
html { background: var(--ink); }
body.n2 { background: transparent; }
.n2 ::selection { background: var(--acc); color: #fff; }

/* the living background sits behind every dark section */
.w-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: #04050c; }
main, .n2-foot { position: relative; z-index: 1; }
.n2 section[data-theme="dark"], .n2 footer, .n2-sw { background: transparent; }
.n2 section[data-theme="light"] { background: var(--paper); color: var(--ink); }
.n2-menupanel { background: rgba(4, 5, 12, 0.96); }
.n2-menunav a:hover, .n2-menunav .navlink:hover, .n2-foot__links a:hover, .n2-foot__links .navlink:hover { color: var(--acc2); }
.n2 .n2-btn:hover, .n2 .n2-btn--ink:hover { background: var(--acc); color: #fff; }
.n2-live, .n2-hero__hint i { background: var(--acc2); }
.n2-direct a:hover { color: var(--acc); }
.n2 :focus-visible { outline-color: var(--acc2); }
.n2 section[data-theme="light"] :focus-visible { outline-color: var(--acc); }

/* ---------- hero: a 3D cloud you fly through ---------- */
.w-hero { position: relative; height: 330vh; height: 330svh; }
.w-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.w-stage { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 44%; }
.w-world { position: absolute; inset: 0; transform-style: preserve-3d; transform: translate3d(0, 0, var(--cam, 0px)) rotateX(var(--wrx, 0deg)) rotateY(var(--wry, 0deg)); will-change: transform; }
.w-c {
  --w: clamp(220px, 24vw, 400px);
  position: absolute; left: 50%; top: 50%; width: var(--w);
  transform: translate3d(calc(-50% + var(--x) * 1vw), calc(-50% + var(--y) * 1vh), calc(var(--z) * 1px)) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(var(--s, 1));
  opacity: var(--o, 1); will-change: transform, opacity; backface-visibility: hidden;
}
.js .w-c { opacity: var(--o, 0); }
.js .w-world { --cam: -1700px; }
.w-c.w-o { --w: clamp(150px, 18vw, 310px); }
.w-c__f { font-size: calc(var(--w) / 24); animation: wbob 8s ease-in-out infinite; animation-delay: calc(var(--i) * -1.7s); }
@keyframes wbob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -1.1em, 0) rotateZ(0.6deg); } }
.w-obj { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(20, 40, 255, 0.35)); }

.w-win, .w-ui {
  display: block; border-radius: 0.9em; overflow: hidden;
  background: #f4f2ec; color: var(--ink); font: 500 1em/1.35 var(--sans);
  box-shadow: 0 40px 90px -25px rgba(30, 55, 255, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.w-win__bar { display: flex; align-items: center; gap: 0.4em; padding: 0.65em 0.9em; background: #12162a; color: #c5cbe6; font: 500 0.78em/1 var(--mono); }
.w-win__bar i { width: 0.7em; height: 0.7em; border-radius: 50%; background: rgba(255, 255, 255, 0.28); display: block; }
.w-win__bar b { font-weight: 500; margin-left: 0.6em; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-win img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.w-ui { padding: 1.2em 1.3em 1.3em; }
.w-ui__t { margin: 0 0 0.9em; font: 600 1.05em/1.1 var(--sans); letter-spacing: -0.02em; }
.w-ui__btn { margin: 1em 0 0; padding: 0.8em 1em; border-radius: 99em; background: var(--acc); color: #fff; font: 600 0.9em/1 var(--sans); text-align: center; }
.w-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35em; }
.w-cal span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font: 500 0.78em/1 var(--mono); background: #e7e5de; }
.w-cal span.dim { opacity: 0.4; }
.w-cal span.on { background: var(--acc); color: #fff; }
.w-lines { list-style: none; margin: 0; padding: 0; }
.w-lines li { display: flex; justify-content: space-between; gap: 1em; padding: 0.7em 0; border-top: 1px solid rgba(4, 5, 12, 0.15); font-size: 0.92em; }
.w-lines b { font-family: var(--mono); font-weight: 500; }
.w-ui__tot { display: flex; justify-content: space-between; align-items: baseline; margin: 0.6em 0 0; padding-top: 0.8em; border-top: 2px solid var(--ink); font-weight: 600; }
.w-ui__tot b { font: 700 1.9em/1 var(--sans); letter-spacing: -0.04em; color: var(--acc); }
.w-ui--dk { background: #0b1030; color: #fff; }
.w-big { margin: 0; font: 800 3.6em/0.9 var(--sans); letter-spacing: -0.05em; color: #fff; }
.w-bars { display: flex; align-items: flex-end; gap: 0.5em; height: 6.5em; margin-top: 1em; }
.w-bars i { flex: 1; height: var(--h); border-radius: 0.3em 0.3em 0 0; background: linear-gradient(180deg, #8ea2ff, #2a44ff); display: block; }
.w-ui--img { padding: 0; }
.w-ui--img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.w-ui--img .w-ui__row, .w-ui--img .w-ui__btn { margin-inline: 1.2em; }
.w-ui--img .w-ui__row { display: flex; justify-content: space-between; padding-top: 1em; font-weight: 600; }
.w-ui--img .w-ui__btn { margin-bottom: 1.2em; }
.w-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em; }
.w-cols div { display: flex; flex-direction: column; gap: 0.45em; }
.w-cols em { font: 500 0.7em/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-style: normal; opacity: 0.6; }
.w-cols i { display: block; height: 2.1em; border-radius: 0.4em; background: #e2dfd7; }
.w-cols i.hot { background: #cdd5ff; } .w-cols i.win { background: var(--acc); }
.w-ui--note { display: flex; align-items: center; gap: 0.9em; padding: 1em 1.3em; border-radius: 99em; background: rgba(240, 242, 255, 0.92); }
.w-ui--note b, .w-ui--note span { display: block; }
.w-ui--note span { font-size: 0.85em; opacity: 0.65; }
.w-dot { width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0.35em rgba(42, 68, 255, 0.25); }

.w-hero__shade { position: absolute; inset: auto 0 0; height: 70%; pointer-events: none; z-index: 2; background: linear-gradient(0deg, rgba(4, 5, 12, 0.94) 0%, rgba(4, 5, 12, 0.7) 40%, rgba(4, 5, 12, 0) 100%); }
.w-hero__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding-bottom: clamp(78px, 6.2vw, 96px); pointer-events: none; will-change: transform, opacity; }
.w-hero__txt a, .w-hero__txt button { pointer-events: auto; }
.w-h1 { margin: 0; font: 800 clamp(2.6rem, 6.7vw, 8rem)/0.88 var(--sans); letter-spacing: -0.055em; text-transform: uppercase; }
.w-h1 em { font-style: normal; color: var(--acc2); }
.w-hint { position: absolute; z-index: 3; right: var(--gut); bottom: clamp(24px, 4vw, 56px); margin: 0; display: flex; align-items: center; gap: 12px; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.w-hint i { width: 1px; height: 38px; background: linear-gradient(var(--acc2), transparent); display: block; animation: wdrip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes wdrip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.js .w-hint { opacity: 0; } .js.n2-ready .w-hint { opacity: 1; transition: opacity 1s ease 1.6s; }

/* ---------- services: statement ---------- */
.w-svc { position: relative; padding-block: clamp(90px, 11vw, 170px) clamp(50px, 7vw, 100px); overflow: hidden; overflow: clip; }
.w-statement { margin: clamp(18px, 2vw, 30px) auto 0; max-width: 21ch; text-align: center; font: 600 clamp(1.9rem, 4.4vw, 4.4rem)/1.06 var(--sans); letter-spacing: -0.04em; text-wrap: balance; }
.w-statement .wd { color: rgba(255, 255, 255, 0.24); transition: color 0.6s var(--ease); }
.w-statement .wd.on { color: #fff; }
.w-statement .wd.hl.on { color: var(--acc2); }
.w-wk { position: relative; padding-block: clamp(60px, 8vw, 120px) clamp(60px, 8vw, 120px); }
.w-wk__head { max-width: 1680px; }
.w-wk .n2-sub { max-width: 40rem; font-size: clamp(1.05rem, 1.3vw, 1.3rem); }
.w-wk .n2-case { margin-top: clamp(40px, 6vw, 90px); padding-top: 0; }
.w-wk .n2-case .frame { box-shadow: 0 50px 110px -30px rgba(10, 14, 60, 0.45), 0 0 0 1px rgba(10, 12, 24, 0.12); }
.w-wk .n2-case__screen { width: min(1240px, 82vw); }
.w-wk .n2-case__cap { padding-block: clamp(36px, 4vw, 64px) 0; }
.w-wk .n2-case__cap .n2-h3 { font-size: clamp(1.7rem, 2.6vw, 2.7rem); }
.w-wk .n2-case__cap > p:not(.n2-label) { font-size: clamp(1.05rem, 1.25vw, 1.25rem); opacity: 0.8; }
.w-wk .n2-more { margin-top: clamp(50px, 6vw, 90px); }
.w-bighead--s { font-size: clamp(2.8rem, 6.4vw, 7.4rem); }
.w-work--svc .w-bighead { font-size: clamp(2.8rem, 6.4vw, 7.4rem); }
.w-work--svc .n2-sub { font-size: clamp(1.1rem, 1.35vw, 1.35rem); max-width: 34rem; }
.w-work--svc .w-now { max-width: 36rem; min-height: 20rem; }
.w-work--svc .w-now__k { font-size: 0.85rem; }
.w-work--svc .w-now__t { font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0.35em 0 0.35em; }
.w-work--svc .w-now__d { font-size: clamp(1.1rem, 1.35vw, 1.35rem); line-height: 1.45; opacity: 0.82; }
.w-work--svc .w-now .n2-link { font-size: clamp(1.05rem, 1.25vw, 1.25rem); }
.w-svc { padding-bottom: clamp(60px, 8vw, 120px); }

/* ---------- work: a column that bends as you scroll ---------- */
.w-work { position: relative; padding-block: clamp(90px, 10vw, 150px) clamp(40px, 6vw, 90px); }
.w-work__gl { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; visibility: hidden; }
.w-work.is-live .w-work__gl { visibility: visible; }
.w-work__grid { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, min(34vw, 520px)) minmax(0, 0.75fr); gap: var(--gut); padding-inline: var(--gut); max-width: 1680px; margin: 0 auto; align-items: start; }
.w-work__l, .w-work__idx { position: sticky; top: 13vh; align-self: start; }
.w-bighead { margin: 0.18em 0 0.3em; font: 800 clamp(3.4rem, 9.2vw, 11rem)/0.84 var(--sans); letter-spacing: -0.065em; text-transform: uppercase; }
.w-work .n2-sub { max-width: 26rem; font-size: clamp(1rem, 1.2vw, 1.15rem); }
.w-now { margin-top: clamp(24px, 4vw, 60px); padding-top: 18px; border-top: 1px solid var(--line-l); max-width: 26rem; min-height: 15rem; }
.w-now__t { margin: 0.4em 0 0.3em; }
.w-now__d { margin: 0 0 0.9em; opacity: 0.8; }
.w-now > * { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.w-now.is-swap > * { opacity: 0; transform: translateY(8px); }
.w-work__col { list-style: none; margin: 0; padding: 0; }
.w-tile { position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 12vh; overflow: hidden; background: #cfcdc5; color: #fff; text-decoration: none; }
.w-work__col li:last-child .w-tile { margin-bottom: 4vh; }
.w-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--p, 50%) 50%; filter: grayscale(1) contrast(1.15); }
.is-gl .w-tile img { opacity: 0; }
.w-tile__n { position: absolute; left: 12px; top: 12px; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.1em; mix-blend-mode: difference; color: #fff; z-index: 2; }
.w-tile__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 38px 14px 14px; background: linear-gradient(0deg, rgba(4, 5, 12, 0.7), transparent); display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; pointer-events: none; }
.w-tile__cap b { font: 600 1rem/1.1 var(--sans); letter-spacing: -0.02em; }
.w-tile__cap em { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-style: normal; opacity: 0.85; white-space: nowrap; }
.w-work__idx { list-style: none; margin: 0; padding: 0; justify-self: end; width: min(100%, 17rem); }
.w-work__idx li { border-top: 1px solid var(--line-l); }
.w-work__idx li:last-child { border-bottom: 1px solid var(--line-l); }
.w-work__idx a { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; text-decoration: none; font: 500 0.9rem/1.25 var(--sans); opacity: 0.38; transition: opacity 0.4s var(--ease), color 0.4s var(--ease); }
.w-work__idx a span { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.1em; }
.w-work__idx li.is-on a { opacity: 1; color: var(--acc); }

.w-live-old { position: relative; padding-block: clamp(80px, 10vw, 150px) clamp(60px, 8vw, 120px); }
.w-live .n2-case { margin-top: clamp(50px, 7vw, 110px); padding-top: 0; }
.w-live .n2-case .frame { box-shadow: 0 60px 140px -20px rgba(20, 40, 255, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.14); }

/* ---------- the other sections take the new palette ---------- */
.n2-sw .c-console { background: rgba(10, 13, 28, 0.82); border-color: rgba(142, 162, 255, 0.28); backdrop-filter: blur(8px); }
.n2-sw .c-console .sw__tab[aria-selected="true"] { background: #fff; }
.n2-plan--ink { background: radial-gradient(120% 90% at 100% 0%, #16205f 0%, #070a22 60%); border-color: #2a44ff; }
.n2-plan--ink .n2-fig__n { background: linear-gradient(180deg, #fff 20%, #8ea2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.n2-plan { border-color: var(--ink); }
.n2-extra { background: var(--paper2); }
.n2-about__img::after { background: linear-gradient(90deg, rgba(4, 5, 12, 0) 55%, rgba(4, 5, 12, 0.96)); }
.n2-keys, .n2-foot { border-top-color: rgba(142, 162, 255, 0.2); }
.pb__card, .as-panel { background: #0a0d1c !important; }
.n2-sticky { background: linear-gradient(0deg, rgba(4, 5, 12, 0.95), rgba(4, 5, 12, 0)); }
.cine .music-btn { background: rgba(4, 5, 12, 0.8); }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .w-work__grid { grid-template-columns: minmax(0, 1fr); }
  .w-work__l, .w-work__idx { position: static; }
  .w-work__idx { display: none; }
  .w-now { display: none; }
  .w-tile { margin-bottom: 7vh; }
}
@media (max-width: 760px) {
  .w-hero { height: 300vh; height: 300svh; }
  .w-c { --w: 56vw; }
  .w-c.w-o { --w: 42vw; }
  .w-h1 { font-size: clamp(2.3rem, 11.6vw, 4.4rem); }
  .w-hint { display: none; }
  .w-stage { top: -13vh; }
}
@media (prefers-reduced-motion: reduce) {
  .w-hero { height: auto; }
  .w-pin { position: relative; height: 100vh; height: 100svh; }
  .w-c__f, .w-hint i { animation: none; }
  .w-statement .wd { color: #fff; transition: none; }
  .w-statement .wd.hl { color: var(--acc2); }
}
.is-gl .w-tile { background: transparent; }
body.n2, main { overflow-x: clip; }

/* tidy pass: one clean cluster on the right, text on the left, no overlap */
.w-stage { perspective-origin: 62% 44%; }
.w-c { --w: clamp(200px, 19.5vw, 330px); }
.w-hero__txt .n2-meta { display: block; max-width: 30rem; }
.w-hero__txt .n2-meta p + p { margin-top: 6px; opacity: 0.7; }
@media (max-width: 760px) { .w-c { --w: 60vw; } .w-stage { perspective-origin: 50% 40%; } }
.n2 .w-tile, .n2 .w-tile .w-tile__cap b, .n2 .w-tile .w-tile__cap em { color: #fff; }

.n2 .w-wk .n2-more a, .w-wk p.n2-more a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
