/* Whetū Labs – motion layer styles (pairs with fx.js). Reveal uses the `translate` property and tilt uses `transform`, so they never fight. */

/* ---------- page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .45s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- sky + cursor light (behind content) ---------- */
.fx-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.fx-glow { position: fixed; left: 0; top: 0; width: 600px; height: 600px; border-radius: 50%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(closest-side, rgba(233,185,73,.10), rgba(233,185,73,.035) 45%, transparent 75%); }
main, .foot { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav { transition: background .3s, box-shadow .3s; }
.nav .wrap { transition: min-height .3s; }
.nav.scrolled { background: rgba(3,6,13,.88); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.nav.scrolled .wrap { min-height: 60px; }
.nav .brand img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; }
.nav .brand:hover img { transform: rotate(72deg) scale(1.08); filter: drop-shadow(0 0 10px rgba(255,214,120,.7)); }
.fx-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(233,185,73,0), var(--gold) 30%, var(--gold-hi)); box-shadow: 0 0 12px rgba(255,214,120,.6); pointer-events: none; }
.nav ul a { position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- hero ---------- */
@media (min-width: 761px) { .hero .art, .app-hero .art { will-change: transform; transform: scale(1.08); } }
h1.rise .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
h1.rise .w > span { display: inline-block; animation: word-up .9s cubic-bezier(.2,.75,.15,1) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes word-up { from { transform: translateY(105%); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
.hero .eyebrow, .hero .lede, .hero .row { animation: fade-up .9s cubic-bezier(.2,.75,.15,1) both; }
.hero .eyebrow { animation-delay: .05s; } .hero .lede { animation-delay: .55s; } .hero .row { animation-delay: .85s; }
@keyframes fade-up { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.tagline { background: linear-gradient(100deg, var(--gold) 40%, #fff6d8 50%, var(--gold) 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fade-up .9s .7s both, gleam 6s 1.6s ease-in-out infinite; }
.tagline i { background: rgba(233,185,73,.5); }
@keyframes gleam { 0%, 60% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.scrollcue { position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(233,185,73,.55); border-radius: 14px; }
.scrollcue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-hi); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 760px) { .scrollcue { display: none; } }

/* ---------- buttons: magnetic + shine ---------- */
.btn { position: relative; overflow: hidden; transform: translate(var(--bx, 0px), var(--by, 0px)); transition: transform .25s cubic-bezier(.2,.7,.2,1), filter .2s, background .2s, box-shadow .3s; }
.btn:hover { transform: translate(var(--bx, 0px), calc(var(--by, 0px) - 2px)); }
.btn-gold:hover { box-shadow: 0 10px 34px rgba(233,185,73,.45), 0 0 0 4px rgba(233,185,73,.12); }
.btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); transition: left .7s; pointer-events: none; }
.btn-gold:hover::after { left: 130%; }
.fx-spark { position: fixed; z-index: 100; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #ffe7a8; box-shadow: 0 0 8px #ffcf5e; pointer-events: none; animation: spark .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; translate: 0 34px; transition: opacity .9s cubic-bezier(.2,.7,.2,1), translate .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0ms); }
.rv.in { opacity: 1; translate: 0 0; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.section-head .eyebrow::after { content: ""; height: 1px; width: 46px; background: linear-gradient(90deg, var(--gold), transparent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s .35s; }
.section-head.in .eyebrow::after { transform: scaleX(1); }
.section-head.in h2 { background: linear-gradient(100deg, var(--cream) 42%, var(--gold-hi) 50%, var(--cream) 58%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: h2sweep 1.8s .25s ease-out both; }
@keyframes h2sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- tilt + spotlight ---------- */
.mcard, .mteaser > a, .fcard, .acard, .ctile, .stat, .bchip, .shot-f button { --rx: 0deg; --ry: 0deg; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s, background .25s, box-shadow .35s; }
.fcard:hover, .ctile:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 40px color-mix(in srgb, var(--c) 18%, transparent); }
.acard { position: relative; }
.acard:hover { box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; mix-blend-mode: screen;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, var(--gold)) 22%, transparent), transparent 70%); }
.features > div { position: relative; transition: background .3s; }
.features > div:hover { background: var(--navy-2); }
.fcard .shot img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.fcard:hover .shot img { transform: scale(1.06); }
.fcard .shot.noshot { display: grid; place-items: center; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), #060b18); }
.fcard .shot.noshot img { width: 42%; height: auto; border-radius: 22%; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.acard img, .ctile .icons img { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.acard:hover img { transform: scale(1.08) rotate(-3deg); }
.ctile:hover .icons img { transform: translateY(-4px); }
.ctile:hover .icons img:nth-child(2) { transition-delay: 40ms; } .ctile:hover .icons img:nth-child(3) { transition-delay: 80ms; } .ctile:hover .icons img:nth-child(4) { transition-delay: 120ms; } .ctile:hover .icons img:nth-child(5) { transition-delay: 160ms; } .ctile:hover .icons img:nth-child(6) { transition-delay: 200ms; }
.ctile .count { text-shadow: 0 0 24px color-mix(in srgb, var(--c) 55%, transparent); }

/* ---------- icon belt ---------- */
.belt { position: relative; z-index: 1; display: grid; gap: 12px; padding-block: 26px; overflow: hidden; border-bottom: 1px solid rgba(233,185,73,.1); background: linear-gradient(180deg, rgba(4,7,15,.4), rgba(4,7,15,0));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.belt-row { overflow: hidden; }
.belt-track { display: flex; gap: 12px; width: max-content; animation: belt 60s linear infinite; }
.belt-row.rev .belt-track { animation-direction: reverse; animation-duration: 70s; }
.belt:hover .belt-track { animation-play-state: paused; }
@keyframes belt { to { transform: translateX(-50%); } }
.bchip { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11,22,48,.7); text-decoration: none; color: var(--ink); font: 500 13.5px/1 var(--display); letter-spacing: .04em; white-space: nowrap; }
.bchip img { width: 34px; height: 34px; border-radius: 10px; }
.bchip:hover { border-color: color-mix(in srgb, var(--c) 65%, var(--line)); color: var(--cream); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 25%, transparent); }

/* ---------- stats ---------- */
.stats-sec { padding-block: clamp(40px, 6vw, 70px) clamp(16px, 3vw, 30px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { position: relative; display: grid; gap: 6px; padding: 22px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(17,31,63,.8), rgba(8,17,42,.8)); --c: var(--gold); }
.stat b { font: 200 clamp(40px, 5vw, 60px)/1 var(--display); color: var(--gold-hi); font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(233,185,73,.35); }
.stat span { font: 600 11px/1.3 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ---------- constellation map ---------- */
.skymap { position: relative; width: 100%; max-height: 120vh; border-radius: 26px; border: 1px solid rgba(233,185,73,.18); overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, rgba(30,52,110,.45), transparent 70%), radial-gradient(40% 40% at 85% 90%, rgba(233,185,73,.08), transparent 70%), #030611; }
.skymap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.skymap .dust circle { fill: #dfe6ff; opacity: .25; animation: tw 4s var(--t) ease-in-out infinite; }
@keyframes tw { 50% { opacity: .7; } }
.skymap line { stroke-width: 1.2; opacity: .55; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); vector-effect: non-scaling-stroke; transition: opacity .4s, stroke-width .3s; }
.skymap.lit line { animation: draw 1.8s cubic-bezier(.4,.1,.2,1) forwards; }
.skymap.lit line:nth-of-type(3n) { animation-delay: .3s; } .skymap.lit line:nth-of-type(3n+1) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.skymap .clabel { font: 600 13px var(--display); letter-spacing: .32em; text-anchor: middle; opacity: 0; transition: opacity .6s; }
.skymap.lit .clabel { opacity: .8; transition-delay: 1.2s; }
.skymap .node { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink); outline-offset: 6px; opacity: 0; scale: .2; transition: opacity .6s var(--d), scale .8s cubic-bezier(.3,1.6,.5,1) var(--d); }
.skymap.lit .node { opacity: 1; scale: 1; }
.skymap.settled .node, .skymap.settled .clabel { transition-delay: 0s; transition-duration: .35s; }
.skymap.settled line { animation: none; stroke-dashoffset: 0; }
.skymap .node i { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent), 0 0 18px 4px var(--c), 0 0 46px 10px color-mix(in srgb, var(--c) 35%, transparent); transition: transform .35s cubic-bezier(.3,1.6,.5,1), box-shadow .35s; animation: pulse 3.4s ease-in-out infinite; animation-delay: var(--d); }
.skymap .node.big i { width: 17px; height: 17px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 25%, transparent), 0 0 26px 7px var(--c), 0 0 60px 16px color-mix(in srgb, var(--c) 30%, transparent); } }
.skymap .node span { font: 500 12px/1.1 var(--display); letter-spacing: .06em; white-space: nowrap; opacity: .62; transition: opacity .3s, color .3s; text-shadow: 0 1px 8px #000; }
.skymap .node:hover i, .skymap .node:focus-visible i, .skymap .node.hot i { transform: scale(1.7); }
.skymap .node:hover span, .skymap .node.hot span { opacity: 1; color: var(--cream); }
.skymap[data-focus="work"] :is(.node, line, .clabel):not([data-k="work"]), .skymap[data-hot="work"] line:not([data-k="work"]),
.skymap[data-focus="music"] :is(.node, line, .clabel):not([data-k="music"]), .skymap[data-hot="music"] line:not([data-k="music"]),
.skymap[data-focus="play"] :is(.node, line, .clabel):not([data-k="play"]), .skymap[data-hot="play"] line:not([data-k="play"]),
.skymap[data-focus="life"] :is(.node, line, .clabel):not([data-k="life"]), .skymap[data-hot="life"] line:not([data-k="life"]) { opacity: .12; }
.skymap[data-focus] line[data-k], .skymap[data-hot] line[data-k] { stroke-width: 2; }
.skymap[data-focus="work"] line[data-k="work"], .skymap[data-focus="music"] line[data-k="music"], .skymap[data-focus="play"] line[data-k="play"], .skymap[data-focus="life"] line[data-k="life"] { opacity: 1; }
.skymap[data-focus="work"] .node[data-k="work"] span, .skymap[data-focus="music"] .node[data-k="music"] span, .skymap[data-focus="play"] .node[data-k="play"] span, .skymap[data-focus="life"] .node[data-k="life"] span { opacity: 1; }
@media (max-width: 700px) { .skymap .node span { font-size: 11px; opacity: 0; position: absolute; top: 100%; margin-top: 4px; } .skymap .node.hot span, .skymap[data-focus] .node span { opacity: 1; } .skymap[data-focus] .node:not(.hot) span { font-size: 10px; } }
.skycard { position: absolute; z-index: 5; width: 280px; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; pointer-events: none;
  background: rgba(8,15,34,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--c, var(--gold)) 50%, transparent);
  box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 30px color-mix(in srgb, var(--c, var(--gold)) 20%, transparent); opacity: 0; translate: 0 8px; transition: opacity .2s, translate .25s; }
.skycard.on { opacity: 1; translate: 0 0; }
@media (pointer: coarse) { .skycard.on { pointer-events: auto; } }
.skycard img { width: 52px; height: 52px; border-radius: 13px; }
.skycard b { font: 600 15px/1.2 var(--display); color: var(--cream); }
.skycard p { font-size: 13.5px; line-height: 1.35; color: var(--muted); margin-top: 3px; }
.skycard .go { display: inline-block; margin-top: 6px; font: 600 10.5px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--c, var(--gold)); }
.skylegend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.skylegend button { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11,22,48,.6); color: var(--ink); font: 600 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.skylegend button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.skylegend button small { color: var(--muted); font-size: 11px; }
.skylegend button:hover { border-color: color-mix(in srgb, var(--c) 60%, var(--line)); }
.skylegend button[aria-pressed="true"] { border-color: var(--c); color: var(--cream); background: color-mix(in srgb, var(--c) 16%, rgba(11,22,48,.8)); }

/* ---------- dream / build / deliver ---------- */
.dbd .word span { display: inline-block; color: rgba(255,227,154,.18); transition: color .5s, text-shadow .5s; transition-delay: calc(var(--i) * 70ms + 200ms); }
.dbd > div.in .word span { color: var(--gold-hi); text-shadow: 0 0 18px rgba(255,214,120,.45); }
.dbd > div:nth-child(2).in .word span { transition-delay: calc(var(--i) * 70ms + 500ms); }
.dbd > div:nth-child(3).in .word span { transition-delay: calc(var(--i) * 70ms + 800ms); }

/* ---------- app page device + screens ---------- */
#appVisual { perspective: 1400px; --vx: -8deg; --vy: 4deg; }
#appVisual > * { transform: rotateY(var(--vx)) rotateX(var(--vy)); transition: transform .6s cubic-bezier(.2,.7,.2,1); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }
#appVisual .laptop, #appVisual .phone { position: relative; }
#appVisual .laptop::before, #appVisual .phone::before { content: ""; position: absolute; inset: 8px; border-radius: inherit; pointer-events: none; z-index: 2; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 35%); }
.app-id img { animation: icon-in 1s cubic-bezier(.3,1.5,.5,1) both .1s; }
@keyframes icon-in { from { opacity: 0; transform: scale(.6) rotate(-12deg); } }
.desk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 22px; }
.desk-grid.odd > :first-child { grid-column: 1 / -1; }
.phone-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin-top: 26px; }
.desk-grid + .phone-row { margin-top: 34px; }
.shot-f { margin: 0; display: grid; gap: 10px; align-content: start; }
.shot-f button { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #060b18; cursor: zoom-in; }
.shot-f button img { width: 100%; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.shot-f.is-desk button img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.shot-f.is-phone { width: 230px; }
.shot-f.is-phone button { border-radius: 32px; padding: 8px; background: linear-gradient(145deg, #2a344d, #0b1020); border-color: rgba(233,185,73,.25); }
.shot-f.is-phone button img { aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 25px; }
.shot-f button:hover { border-color: rgba(233,185,73,.6); box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 36px rgba(233,185,73,.15); }
.shot-f button:hover img { transform: scale(1.03); }
.shot-f figcaption { font-size: 14px; color: var(--muted); }
.shots-soon { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 22px; align-items: end; }
@media (max-width: 700px) { .shots-soon { grid-template-columns: 1fr 1fr; } .shots-soon .laptop-f { grid-column: 1 / -1; } }
.soon-frame { position: relative; display: grid; place-items: center; overflow: hidden; border: 1px dashed rgba(233,185,73,.3); background: rgba(11,22,48,.55); }
.soon-frame.laptop-f { aspect-ratio: 16 / 10; border-radius: 16px; }
.soon-frame.phone-f { aspect-ratio: 390 / 844; border-radius: 30px; }
.soon-frame img { position: relative; width: 26%; max-width: 90px; border-radius: 22%; opacity: .85; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.soon-frame .sk { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(233,185,73,.08) 50%, transparent 70%) 0 0 / 250% 100%; animation: sk 2.4s linear infinite; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.soon-note { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 15px; }

/* ---------- lightbox ---------- */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 8px max(16px, env(safe-area-inset-bottom, 0px));
  background: rgba(2,4,10,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: lb-in .25s ease both; }
.lb.out { animation: lb-out .25s ease forwards; }
@keyframes lb-in { from { opacity: 0; } } @keyframes lb-out { to { opacity: 0; } }
.lb figure { margin: 0; display: grid; gap: 12px; justify-items: center; min-width: 0; }
.lb img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.7); opacity: 0; scale: .97; transition: opacity .3s, scale .4s cubic-bezier(.2,.7,.2,1); }
.lb.ready img { opacity: 1; scale: 1; }
.lb figcaption { color: var(--ink); font-size: 15px; text-align: center; }
.lb button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(233,185,73,.4); background: rgba(11,22,48,.8); color: var(--gold-hi); font: 300 28px/1 var(--display); cursor: pointer; justify-self: center; }
.lb button:hover { background: rgba(233,185,73,.15); }
.lb .lb-x { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: 14px; }
.lb .lb-c { position: absolute; top: max(26px, env(safe-area-inset-top, 0px)); left: 22px; font: 600 12px var(--display); letter-spacing: .2em; color: var(--muted); }
.lb.single .lb-p, .lb.single .lb-n, .lb.single .lb-c { visibility: hidden; }
@media (max-width: 600px) { .lb { grid-template-columns: 1fr; } .lb .lb-p, .lb .lb-n { position: absolute; bottom: max(16px, env(safe-area-inset-bottom, 0px)); } .lb .lb-p { left: 22%; } .lb .lb-n { right: 22%; } .lb img { max-height: calc(100vh - 170px); } }

/* ---------- about emblem ---------- */
.band .emblem img { animation: spin-slow 60s linear infinite; filter: drop-shadow(0 0 30px rgba(233,185,73,.35)); }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.band .emblem { position: relative; }
.band .emblem::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px solid rgba(233,185,73,.18); animation: ring 4s ease-out infinite; }
@keyframes ring { from { transform: scale(.85); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }

/* ---------- contact box glow border ---------- */
.contact { position: relative; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(255,214,120,.85) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit 6s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orbit { to { --ang: 360deg; } }

/* ---------- footer horizon breathes ---------- */
.foot::after { animation: sunrise 5s ease-in-out infinite; }
@keyframes sunrise { 50% { filter: blur(3px) brightness(1.35); width: 240px; } }

/* ---------- reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; translate: none !important; }
  .skymap .node { opacity: 1; scale: 1; }
  .skymap line { stroke-dashoffset: 0; }
  .skymap .clabel { opacity: .8; }
  .dbd .word span { color: var(--gold-hi); }
  .fx-glow, .scrollcue { display: none; }
}

/* v3.0 – interactive screens: cycling hero device, phone carousel, lightbox thumbnails */
.hero-dev { display: grid; border: 0; cursor: zoom-in; font: inherit; color: inherit; }
.hero-dev.phone { padding: 10px; }
.hero-dev img { grid-area: 1 / 1; opacity: 0; transition: opacity .8s ease, transform 6s ease; transform: scale(1.02); }
.hero-dev img.on { opacity: 1; transform: scale(1); }
.hero-dev.laptop img { grid-area: 1 / 1; }
.hero-dev:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 6px; }
.hero-dots { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.hero-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(233,185,73,.25); transition: background .3s, width .3s; }
.hero-dots i.on { width: 22px; border-radius: 4px; background: var(--gold-hi); }
.phone-car { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 26px; }
.desk-grid + .phone-car { margin-top: 34px; }
.phone-row.is-car { flex-wrap: nowrap; justify-content: flex-start; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 6px 4px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.phone-row.is-car::-webkit-scrollbar { display: none; }
.phone-row.is-car.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.phone-row.is-car.drag img { pointer-events: none; }
.phone-row.is-car > .shot-f { flex: 0 0 auto; scroll-snap-align: start; }
.phone-row.is-car:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; border-radius: 16px; }
.pc-b { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(233,185,73,.4); background: rgba(11,22,48,.8); color: var(--gold-hi); font: 300 28px/1 var(--display); cursor: pointer; transition: opacity .2s, background .2s; }
.pc-b:hover:not(:disabled) { background: rgba(233,185,73,.15); }
.pc-b:disabled { opacity: .25; cursor: default; }
.pc-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 7px; }
.pc-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(233,185,73,.25); transition: background .3s, width .3s; }
.pc-dots i.on { width: 22px; border-radius: 4px; background: var(--gold-hi); }
@media (max-width: 600px) { .phone-car { grid-template-columns: minmax(0, 1fr); } .pc-b { display: none; } .phone-row.is-car > .shot-f.is-phone { width: 62vw; max-width: 230px; } }
.lb { grid-template-rows: 1fr auto; }
.lb > figure, .lb > .lb-p, .lb > .lb-n { grid-row: 1; }
.lb img { max-height: calc(100vh - 210px); }
.lb-t { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 8px; overflow-x: auto; justify-content: safe center; padding: 12px 8px 4px; scrollbar-width: thin; }
.lb .lb-t button { flex: 0 0 auto; width: auto; height: 64px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #060b18; opacity: .55; transition: opacity .2s, border-color .2s; }
.lb .lb-t button.on, .lb .lb-t button:hover { opacity: 1; border-color: var(--gold-hi); }
.lb-t img { height: 100%; width: auto; max-height: none; border-radius: 0; box-shadow: none; opacity: 1; scale: 1; }
.lb-t .tp img { aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.lb-t .td img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
@media (max-width: 600px) { .lb-t { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-dev img { transition: none; } }
