/* Lightweight motion layer: approved artwork and layouts remain unchanged. */
.neo-heading-sheen {
  background-image: linear-gradient(105deg, #ffe27a 0%, #ffe27a 43%, #fffdf0 49%, #fff4b2 51%, #ffe27a 57%, #ffe27a 100%) !important;
  background-size: 300% 100% !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.site-header .neo-logo-intro { position: relative; display: inline-flex; flex: none; line-height: 0; }
.neo-logo-intro-light, .neo-logo-intro-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.neo-logo-intro-light {
  background: linear-gradient(105deg, transparent 35%, #cffff8 48%, #6ffff0 52%, transparent 65%);
  background-size: 260% 100%;
  -webkit-mask: url('../assets/icons/neo-logo-mark.png?v=20261029-logo-192') center / contain no-repeat;
  mask: url('../assets/icons/neo-logo-mark.png?v=20261029-logo-192') center / contain no-repeat;
  opacity: 0; animation: neo-logo-sweep 1.25s ease-out both;
}
.neo-logo-intro-ring { overflow: visible; transform: rotate(-90deg); }
.neo-logo-intro-ring circle {
  fill: none; stroke: #bafff5; stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 2px #55eadb);
  animation: neo-logo-trace 1.25s cubic-bezier(.25,.7,.25,1) both;
}
@keyframes neo-logo-trace { 0% { stroke-dashoffset: 100; opacity: 0; } 12% { opacity: 1; } 75% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes neo-logo-sweep { 0%, 10% { background-position: 100% 0; opacity: 0; } 25% { opacity: .9; } 75% { opacity: .85; } 100% { background-position: 0 0; opacity: 0; } }
@keyframes neo-sheen {
  from { transform: translateX(-180%) skewX(-18deg); }
  to { transform: translateX(280%) skewX(-18deg); }
}
@keyframes neo-signal {
  0%, 100% { opacity: .6; box-shadow: 0 0 0 0 rgba(120,247,232,.2); }
  50% { opacity: 1; box-shadow: 0 0 0 5px rgba(120,247,232,0); }
}
/* One opt-out for all decorative motion. It lives in the header, the mobile menu and the footer, never over content. */
.motion-toggle { font: inherit; cursor: pointer; }
.motion-toggle:focus-visible { outline: 2px solid var(--neo-tiffany); outline-offset: 4px; }
.motion-toggle:disabled { cursor: default; }
.motion-toggle--header {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(120,247,232,.35);
  border-radius: 50%;
  background: #090b0d;
  color: var(--neo-silver);
  font-size: 0;
}
.motion-toggle--header::before { content: 'Ⅱ'; color: var(--neo-tiffany); font-size: 15px; }
.motion-toggle--header[data-motion-state="paused"]::before { content: '▶'; }
.motion-toggle--menu { display: none; }
.motion-toggle--footer {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--neo-muted);
  font-size: .85rem;
}
.motion-toggle--footer:hover { color: var(--neo-tiffany); text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 861px) {
  .motion-toggle--header { display: grid; }
}
@media (max-width: 860px) {
  .motion-toggle--menu {
    display: block;
    align-self: flex-start;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--neo-silver-bright);
    font-size: 1.1rem;
  }
}
.scroll-progress {
  position: fixed;
  z-index: 100;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--neo-tiffany), #fff1a8 72%, var(--neo-gold));
  box-shadow: 0 0 8px rgba(120,247,232,.35);
  pointer-events: none;
}
.site-footer { padding-bottom: 76px; }

@keyframes neo-orbit { to { transform: rotate(360deg); } }
@keyframes neo-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes neo-dialog {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes neo-portrait-aura {
  0%, 100% { box-shadow: 0 0 0 6px rgba(0,124,114,.05), 0 22px 54px rgba(29,61,73,.14); }
  50% { box-shadow: 0 0 0 9px rgba(0,124,114,.09), 0 26px 64px rgba(29,61,73,.19); }
}
@keyframes neo-accent-breathe {
  0%, 100% { text-shadow: 0 0 0 rgba(0,124,114,0); }
  50% { text-shadow: 0 0 18px rgba(0,124,114,.2); }
}
@keyframes neo-gold-trace {
  from { transform: scaleX(.35); opacity: .5; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-badge .dot { animation: neo-signal 3s ease-in-out infinite; }
  .hero-badge { animation: neo-enter 620ms var(--neo-motion-ease) both; }
  .hero-service-tags { animation: neo-enter 620ms var(--neo-motion-ease) 220ms both; }
  .hero-actions { animation: neo-enter 620ms var(--neo-motion-ease) 320ms both; }
  .hero-portrait { animation: neo-portrait-aura 8s ease-in-out 700ms infinite; }
  .main-nav a::after { transform-origin: left center; transition: transform 320ms ease, opacity 320ms ease; }
  .main-nav a:hover::after,
  .main-nav a:focus-visible::after { animation: neo-gold-trace 420ms ease-out both; }
  .btn { position: relative; isolation: isolate; overflow: hidden; }
  .btn::after {
    content: ''; position: absolute; inset: -20% auto -20% 0; width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.27), transparent);
    transform: translateX(-180%) skewX(-18deg); pointer-events: none;
  }
  .btn:focus-visible::after { animation: neo-sheen 650ms ease-out; }
  .hero-service-tags span { transition: border-color 200ms ease, color 200ms ease; }
  .hero-portrait::after {
    background: conic-gradient(from 0deg, transparent 0deg 220deg, rgba(255,226,122,.85) 260deg, rgba(120,247,232,.95) 285deg, transparent 330deg);
    mask-image: radial-gradient(circle, transparent 68%, black 69%);
    -webkit-mask-image: radial-gradient(circle, transparent 68%, black 69%);
    animation: neo-orbit 16s linear infinite;
    box-shadow: none;
  }
  .hero h1 { animation: neo-enter 650ms var(--neo-motion-ease) both; }
  .hero-sub { animation: neo-enter 650ms var(--neo-motion-ease) 120ms both; }
  .hero::before { opacity: .8; }
  .modal-overlay:not([hidden]) .modal { animation: neo-dialog 260ms var(--neo-motion-ease) both; }
  .faq-list details[open] p,
  .form-optional-details[open] .optional-fields-grid { animation: neo-enter 220ms ease-out both; }
  .btn { transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
  .btn:active { transform: translateY(1px) scale(.98); }
  .btn-primary:focus-visible { box-shadow: 0 0 0 4px rgba(120,247,232,.2); }
  #worksGrid .work-thumb img { transition: transform 550ms var(--neo-motion-ease); }
  #worksGrid .work-card:focus-visible .work-thumb img { transform: scale(1.025); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover::after { animation: neo-sheen 650ms ease-out; }
  .hero-service-tags span:hover { border-color: var(--neo-tiffany); color: var(--neo-tiffany); }
  .service-card:hover {
    background-image: radial-gradient(circle at var(--neo-pointer-x, 50%) var(--neo-pointer-y, 50%), rgba(120,247,232,.09), transparent 60%);
  }
  .btn:hover { transform: translateY(-2px); }
  #worksGrid .work-card:hover .work-thumb img { transform: scale(1.035); }
  .service-card { transition: border-color 250ms ease, box-shadow 250ms ease; }
  .service-card:hover { border-color: rgba(120,247,232,.55); box-shadow: inset 0 1px 0 rgba(255,226,122,.22); }
}

/* Reveal content remains readable when paused or the OS reduces motion. */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="off"] :is([data-reveal], [data-reveal-group], .reveal-heading),
html[data-motion="off"] [data-reveal-group] > *,
html[data-motion="off"] [data-reveal-group] img { opacity: 1 !important; transform: none !important; }
html[data-motion="off"] .client-track { flex-wrap: wrap; width: 100%; }
html[data-motion="off"] .client-track-dup { display: none; }
html[data-motion="off"] .client-marquee { overflow: visible; mask-image: none; -webkit-mask-image: none; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) *, html:not([data-motion="on"]) *::before, html:not([data-motion="on"]) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html:not([data-motion="on"]) :is([data-reveal], [data-reveal-group], .reveal-heading), html:not([data-motion="on"]) [data-reveal-group] > *, html:not([data-motion="on"]) [data-reveal-group] img { opacity: 1 !important; transform: none !important; }
}

/* The title-screen hero uses one deliberately slow motion language. */
@media (prefers-reduced-motion: no-preference) {
  .hero--cinematic .hero-portrait {
    animation: none;
  }

  .hero--cinematic .hero-portrait::after,
  .hero--cinematic h1 .grad {
    animation: none;
  }
}

@keyframes museum-experience-enter {
  from { opacity: .5; }
  to { opacity: 1; }
}

@keyframes museum-artwork-enter {
  from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes museum-ambient-breathe {
  0%, 100% { opacity: .1; transform: scale(1.12); }
  50% { opacity: .17; transform: scale(1.18); }
}

@media (prefers-reduced-motion: no-preference) {
  .museum-overlay:not([hidden]) .museum-experience {
    animation: museum-experience-enter .36s ease-out both;
  }

  .museum-overlay:not([hidden]) .museum-artwork-frame {
    animation: museum-artwork-enter .64s cubic-bezier(.22, 1, .36, 1) both;
  }

  .museum-overlay:not([hidden]) .museum-ambient {
    animation: museum-ambient-breathe 14s ease-in-out infinite;
  }
}

/* Idea 3 — a horizon grid under the hero, like the track floor in AURORA CIRCUIT. Moved with transform only. */
.hero.hero--cinematic > .hero-horizon {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 46%;
  overflow: hidden;
  pointer-events: none;
  perspective: 480px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(to top, #000 12%, transparent 92%);
  mask-image: linear-gradient(to top, #000 12%, transparent 92%);
}
.hero-horizon::before {
  content: '';
  position: absolute;
  left: -60%;
  right: -60%;
  bottom: -20%;
  height: 180%;
  background-image:
    linear-gradient(to right, rgba(120, 247, 232, .28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 247, 232, .24) 1px, transparent 1px);
  background-size: 72px 72px;
  transform-origin: 50% 100%;
  transform: rotateX(70deg);
  animation: horizon-flow 5.6s linear infinite;
}
@keyframes horizon-flow {
  from { transform: rotateX(70deg) translate3d(0, 0, 0); }
  to { transform: rotateX(70deg) translate3d(0, 72px, 0); }
}
@media (max-width: 600px) {
  .hero.hero--cinematic > .hero-horizon { height: 34%; opacity: .4; }
}

/* Idea 4 — the rules beside each eyebrow draw out from the centre as its label appears. Motion on only;
   without motion the rules are simply shown as before. */
html[data-motion="on"] .eyebrow::before,
html[data-motion="on"] .eyebrow::after {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1s var(--neo-motion-ease);
}
html[data-motion="on"] .eyebrow.is-drawn::before,
html[data-motion="on"] .eyebrow.is-drawn::after { transform: scaleX(1); }

/* Idea 5 — works cards tilt toward the pointer on desktop (main.js sets --tilt-x and --tilt-y). */
@media (hover: hover) and (pointer: fine) {
  html[data-motion="on"] #worksGrid .work-card {
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 480ms var(--neo-motion-ease);
    will-change: transform;
  }
}

/* Near-future layer. Every animation here is scoped to html[data-motion="on"] with !important, so it plays only while
   site motion is on — including a visitor who chose to play it under the OS reduced-motion setting — and stops with
   the motion toggle. The elements are added by main.js and removed when they finish. */
@property --boot-sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --signal-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* Boot sequence (home hero, once per session): the arch outline is traced, a scan line wipes the cover off the portrait,
   and the title locks into place. The portrait image is painted from the start, under the cover. */
.hero-boot-frame,
.hero-boot-scan,
.hero-boot-readout { position: absolute; pointer-events: none; }
.hero-boot-frame {
  inset: 0;
  z-index: 7;
  border: 1.5px solid #bafff5;
  border-radius: inherit;
  filter: drop-shadow(0 0 6px rgba(120, 247, 232, .7));
  /* Drawn from the bottom centre up both sides, meeting at the top of the arch. */
  -webkit-mask-image: conic-gradient(from 180deg, #000 var(--boot-sweep), transparent 0 calc(360deg - var(--boot-sweep)), #000 0);
  mask-image: conic-gradient(from 180deg, #000 var(--boot-sweep), transparent 0 calc(360deg - var(--boot-sweep)), #000 0);
  opacity: 0;
}
.hero-boot-scan {
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  background:
    repeating-linear-gradient(180deg, rgba(120, 247, 232, .07) 0 1px, transparent 1px 4px),
    #030506;
}
.hero-boot-scan::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #bafff5 20% 80%, transparent);
  box-shadow: 0 0 14px 2px rgba(120, 247, 232, .55);
}
.hero-boot-readout {
  left: 50%;
  top: 16%;
  z-index: 8;
  translate: -50% 0;
  padding: 4px 10px;
  border: 1px solid rgba(120, 247, 232, .4);
  background: rgba(3, 5, 6, .72);
  color: #bafff5;
  font: 600 .7rem/1.4 ui-monospace, 'SFMono-Regular', Consolas, monospace;
  letter-spacing: .18em;
  white-space: nowrap;
  opacity: 0;
}
@keyframes hero-boot-trace {
  0% { --boot-sweep: 0deg; opacity: 1; }
  70% { --boot-sweep: 180deg; opacity: 1; }
  100% { --boot-sweep: 180deg; opacity: 0; }
}
@keyframes hero-boot-wipe {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(100% 0 0 0); }
}
@keyframes hero-boot-line {
  0% { top: 0; opacity: 1; }
  92% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes hero-boot-readout {
  0%, 100% { opacity: 0; }
  8%, 82% { opacity: 1; }
}
/* The title arrives in slices and settles; colour and shadows are untouched. */
@keyframes hero-boot-lock {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateX(-10px); filter: drop-shadow(4px 0 0 rgba(120, 247, 232, .7)); }
  30% { opacity: 1; clip-path: inset(0 0 48% 0); transform: translateX(6px); }
  48% { clip-path: inset(38% 0 14% 0); transform: translateX(-3px); filter: drop-shadow(-3px 0 0 rgba(255, 226, 122, .6)); }
  66% { clip-path: inset(0 0 0 0); transform: translateX(1px); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; filter: none; }
}
html[data-motion="on"] .hero-boot-frame { animation: hero-boot-trace 1s cubic-bezier(.3, .6, .2, 1) both !important; }
html[data-motion="on"] .hero-boot-scan { animation: hero-boot-wipe 950ms cubic-bezier(.55, .05, .3, 1) 250ms both !important; }
html[data-motion="on"] .hero-boot-scan::after { animation: hero-boot-line 950ms cubic-bezier(.55, .05, .3, 1) 250ms both !important; }
html[data-motion="on"] .hero-boot-readout { animation: hero-boot-readout 1.5s linear both !important; }
html[data-motion="on"] .hero--cinematic[data-boot] h1 span { animation: hero-boot-lock 560ms ease-out 700ms both !important; }
html[data-motion="on"] .hero--cinematic[data-boot] h1 .grad { animation-delay: 840ms !important; }
html[data-motion="on"] .hero--cinematic[data-boot] .hero-lead { animation: neo-enter 620ms var(--neo-motion-ease) 1050ms both !important; }
html[data-motion="on"] .hero--cinematic[data-boot] .hero-cinematic-actions,
html[data-motion="on"] .hero--cinematic[data-boot] .hero-disciplines { animation: neo-enter 620ms var(--neo-motion-ease) 1180ms both !important; }

/* HUD lock-on: when a work enters the view, corner brackets close in and its number reads out, then they clear. */
.hud-lock {
  --hud: #bafff5;
  position: absolute;
  z-index: 4;
  inset: 10px;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(var(--hud), var(--hud)) left top / 20px 1.5px,
    linear-gradient(var(--hud), var(--hud)) left top / 1.5px 20px,
    linear-gradient(var(--hud), var(--hud)) right top / 20px 1.5px,
    linear-gradient(var(--hud), var(--hud)) right top / 1.5px 20px,
    linear-gradient(var(--hud), var(--hud)) left bottom / 20px 1.5px,
    linear-gradient(var(--hud), var(--hud)) left bottom / 1.5px 20px,
    linear-gradient(var(--hud), var(--hud)) right bottom / 20px 1.5px,
    linear-gradient(var(--hud), var(--hud)) right bottom / 1.5px 20px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 4px rgba(120, 247, 232, .6));
}
.hud-lock-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  background: rgba(3, 5, 6, .78);
  color: var(--hud);
  font: 600 .66rem/1.4 ui-monospace, 'SFMono-Regular', Consolas, monospace;
  letter-spacing: .14em;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
}
@keyframes hud-lock {
  0% { opacity: 0; transform: scale(1.12); }
  28% { opacity: 1; transform: scale(1); }
  78% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes hud-type { to { clip-path: inset(0 0 0 0); } }
html[data-motion="on"] .hud-lock { animation: hud-lock 1.6s cubic-bezier(.2, .8, .2, 1) both !important; }
html[data-motion="on"] .hud-lock-label { animation: hud-type 420ms steps(14, end) 380ms both !important; }

/* Signal: on hover or keyboard focus, a point runs once around the button's edge. Light on outline buttons; on buttons
   that are filled with the accent colour (or fill on hover) it runs dark, so it stays visible. */
.btn-primary,
.btn-outline,
.hero-cinematic-cta { position: relative; }
.btn-primary::before,
.btn-outline::before,
.hero-cinematic-cta::before {
  --signal: #bafff5;
  --signal-core: #fff;
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--signal-angle), transparent 0 290deg, var(--signal) 335deg, var(--signal-core) 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
}
.btn-primary::before,
.hero-cinematic-cta::before { --signal: rgba(3, 32, 30, .55); --signal-core: #03201e; }
@keyframes btn-signal {
  0% { --signal-angle: 0deg; opacity: 0; }
  12%, 85% { opacity: 1; }
  100% { --signal-angle: 360deg; opacity: 0; }
}
html[data-motion="on"] :is(.btn-primary, .btn-outline, .hero-cinematic-cta):is(:focus-visible, .is-signal)::before { animation: btn-signal 1.1s linear both !important; }
@media (hover: hover) and (pointer: fine) {
  html[data-motion="on"] :is(.btn-primary, .btn-outline, .hero-cinematic-cta):hover::before { animation: btn-signal 1.1s linear both !important; }
}

/* Scroll and tap cues for phones (main.js). Light that passes once, never a loop. */
.neo-scan-host { position: relative; overflow: hidden; }
.neo-scan {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
/* A band of glass light crosses the image diagonally... */
.neo-scan::before {
  content: '';
  position: absolute;
  inset: -20% auto -20% 0;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(186, 255, 245, .08) 30%, rgba(255, 248, 220, .34) 50%, rgba(255, 226, 122, .1) 66%, transparent);
  transform: translateX(-130%) skewX(-14deg);
  mix-blend-mode: screen;
}
/* ...while the edge lights up and fades. */
.neo-scan::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(186, 255, 245, .55), inset 0 0 28px rgba(120, 247, 232, .16);
  opacity: 0;
}
@keyframes neo-scan-band { to { transform: translateX(260%) skewX(-14deg); } }
@keyframes neo-scan-edge { 0%, 100% { opacity: 0; } 30% { opacity: 1; } }
html[data-motion="on"] .neo-scan { animation: neo-scan-hold 1.3s linear both !important; }
html[data-motion="on"] .neo-scan::before { animation: neo-scan-band 1.15s cubic-bezier(.45, .05, .25, 1) both !important; }
html[data-motion="on"] .neo-scan::after { animation: neo-scan-edge 1.3s ease-out both !important; }
@keyframes neo-scan-hold { from, to { opacity: 1; } }


/* Second near-future layer (main.js adds and removes each class once). Same rules as above: motion on only, nothing
   here hides content when motion is off, and only the contact beacon repeats — and only while it is on screen. */
@property --edge-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* Section titles are projected from the top down like a hologram, with a light line on the leading edge. */
.neo-holo { position: relative; }
.neo-holo::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #bafff5 18% 82%, transparent);
  box-shadow: 0 0 12px 1px rgba(120, 247, 232, .6);
  pointer-events: none;
  opacity: 0;
}
@keyframes neo-holo-print {
  0% { clip-path: inset(0 -6% 100% -6%); transform: translateX(-4px); }
  55% { transform: translateX(2px); }
  100% { clip-path: inset(-20% -6% -20% -6%); transform: none; }
}
@keyframes neo-holo-line {
  0% { top: 0; opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
html[data-motion="on"] .neo-holo { animation: neo-holo-print 760ms cubic-bezier(.5, .05, .25, 1) both !important; }
html[data-motion="on"] .neo-holo::after { animation: neo-holo-line 760ms cubic-bezier(.5, .05, .25, 1) both !important; }

/* Cards: a point of light runs once around the edge as each card arrives (service and budget cards). */
.neo-edge-host { position: relative; }
.neo-edge-run {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--edge-angle), transparent 0 280deg, rgba(120, 247, 232, .5) 320deg, #f4fffd 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 4px rgba(120, 247, 232, .7));
  pointer-events: none;
  opacity: 0;
}
@keyframes neo-edge-run {
  0% { --edge-angle: 0deg; opacity: 0; }
  10%, 80% { opacity: 1; }
  100% { --edge-angle: 360deg; opacity: 0; }
}
html[data-motion="on"] .neo-edge-run { animation: neo-edge-run 1.5s cubic-bezier(.45, .1, .3, 1) both !important; }

/* Budget figures use equal-width digits, so the line does not jitter while they count up. */
.budget-range { font-variant-numeric: tabular-nums; }

/* Process: the four steps power on in order. Each node flashes and sends out a ring, and on wide screens a pulse
   travels along the line that joins them. */
@keyframes neo-node-on {
  0% { background: var(--neo-bg); box-shadow: 0 0 0 0 rgba(120, 247, 232, .7); color: var(--neo-accent); }
  35% { background: #bafff5; box-shadow: 0 0 0 0 rgba(120, 247, 232, .7), 0 0 18px rgba(120, 247, 232, .9); color: #03201e; }
  100% { background: var(--neo-bg); box-shadow: 0 0 0 14px rgba(120, 247, 232, 0); color: var(--neo-accent); }
}
@keyframes neo-line-pulse {
  0% { left: 8%; opacity: 0; }
  10%, 85% { opacity: 1; }
  100% { left: calc(92% - 120px); opacity: 0; }
}
html[data-motion="on"] .process-grid.is-powering .process-step-number { animation: neo-node-on 900ms ease-out both !important; }
html[data-motion="on"] .process-grid.is-powering .process-step:nth-child(2) .process-step-number { animation-delay: 300ms !important; }
html[data-motion="on"] .process-grid.is-powering .process-step:nth-child(3) .process-step-number { animation-delay: 600ms !important; }
html[data-motion="on"] .process-grid.is-powering .process-step:nth-child(4) .process-step-number { animation-delay: 900ms !important; }
@media (min-width: 1025px) {
  .process-grid { position: relative; }
  .process-grid.is-powering::after {
    content: '';
    position: absolute;
    z-index: 0;
    top: 40px;
    left: 8%;
    width: 120px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #bafff5 70%, #fff);
    box-shadow: 0 0 12px rgba(120, 247, 232, .8);
    pointer-events: none;
    opacity: 0;
  }
  html[data-motion="on"] .process-grid.is-powering::after { animation: neo-line-pulse 1.3s cubic-bezier(.4, 0, .3, 1) both !important; }
}

/* Clients: the names switch on one after another, like signs flickering to life. */
@keyframes neo-flicker-on {
  0%, 12%, 22% { opacity: .15; }
  8%, 18%, 30% { opacity: .9; }
  100% { opacity: 1; }
}
html[data-motion="on"] .client-marquee.is-powering .client-logo { animation: neo-flicker-on 900ms steps(1, end) both !important; }
html[data-motion="on"] .client-marquee.is-powering .client-logo:nth-child(3n + 2) { animation-delay: 160ms !important; }
html[data-motion="on"] .client-marquee.is-powering .client-logo:nth-child(3n) { animation-delay: 320ms !important; }

/* FAQ: the answer is drawn in from the top and the +/− mark turns. */
@keyframes neo-answer-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-4px); }
  to { opacity: 1; clip-path: inset(0 0 -10% 0); transform: none; }
}
@keyframes neo-mark-turn { from { rotate: -90deg; } to { rotate: 0deg; } }
html[data-motion="on"] .faq-list details[open] p { animation: neo-answer-in 380ms cubic-bezier(.22, 1, .36, 1) both !important; }
html[data-motion="on"] .faq-list details[open] summary::after { animation: neo-mark-turn 320ms cubic-bezier(.22, 1, .36, 1) both !important; }

/* Contact: while the closing call to action is on screen, its button sends out a slow signal, two rings at a time. */
@keyframes neo-beacon {
  0% { box-shadow: 0 0 0 0 rgba(120, 247, 232, .55), 0 0 0 0 rgba(120, 247, 232, .35); }
  60% { box-shadow: 0 0 0 16px rgba(120, 247, 232, 0), 0 0 0 7px rgba(120, 247, 232, .12); }
  100% { box-shadow: 0 0 0 16px rgba(120, 247, 232, 0), 0 0 0 26px rgba(120, 247, 232, 0); }
}
html[data-motion="on"] .neo-contact-action.is-beacon:not(:hover):not(:focus-visible) { animation: neo-beacon 2.8s cubic-bezier(.2, .7, .3, 1) infinite !important; }


/* Warp (main.js): streaks of light down both edges of the screen during a fast scroll. Their bright head leads in the
   direction they travel. Below the header and every dialog; never takes a pointer. */
.neo-warp {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  contain: strict;
}
.neo-warp::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(120, 247, 232, .16), transparent 18% 82%, rgba(120, 247, 232, .16)),
    radial-gradient(ellipse at center, transparent 60%, rgba(3, 5, 6, .35));
}
.neo-warp i {
  position: absolute;
  top: 0;
  width: 1.5px;
  border-radius: 1px;
  background: linear-gradient(to top, transparent, rgba(186, 255, 245, .75) 75%, #fff);
  box-shadow: 0 0 6px rgba(120, 247, 232, .65);
  transform-origin: 50% 0;
}
.neo-warp[data-direction="up"] i {
  background: linear-gradient(to bottom, transparent, rgba(186, 255, 245, .75) 75%, #fff);
  transform-origin: 50% 100%;
}
.neo-warp i:nth-child(3n) { background-image: linear-gradient(to top, transparent, rgba(255, 226, 122, .7) 75%, #fffbe6); }
.neo-warp[data-direction="up"] i:nth-child(3n) { background-image: linear-gradient(to bottom, transparent, rgba(255, 226, 122, .7) 75%, #fffbe6); }
html[data-motion="off"] .neo-warp { display: none; }

/* Photon layer (photon.js). The arch canvas sits over the portrait and under the title; the spark canvas floats over
   everything, dialogs included. Neither takes a pointer. */
.hero.hero--cinematic > .neo-photon-arch {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.neo-spark-burst {
  position: fixed;
  z-index: 1500;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
html[data-motion="off"] :is(.neo-photon-arch, .neo-spark-burst) { display: none; }

/* Holographic foil: works catch a rainbow sheen like a hologram card. On a desktop it follows the pointer
   (--portal-x/y from gallery-interaction.js); on phones it sweeps across as the card scrolls through the screen. */
.holo-foil {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(115deg, transparent 22%, rgba(255, 110, 210, .5) 33%, rgba(120, 247, 232, .6) 42%, rgba(255, 226, 122, .55) 51%, rgba(150, 120, 255, .5) 60%, transparent 72%),
    repeating-linear-gradient(65deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 7px);
  background-size: 260% 260%, auto;
  background-position: var(--portal-x, 50%) var(--portal-y, 50%), 0 0;
  mix-blend-mode: color-dodge;
  transition: opacity 320ms ease;
}
.mobile-work-card .holo-foil { z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  html[data-motion="on"] #worksGrid .work-thumb[data-gallery-hover] .holo-foil { opacity: .42; }
}
@keyframes holo-sweep {
  0% { opacity: 0; background-position: 100% 100%, 0 0; }
  45%, 55% { opacity: .38; }
  100% { opacity: 0; background-position: 0% 0%, 0 0; }
}
@supports (animation-timeline: view()) {
  @media (hover: none), (pointer: coarse) {
    html[data-motion="on"] .holo-foil {
      animation: holo-sweep linear both !important;
      animation-timeline: view() !important;
      animation-range: cover 10% cover 90% !important;
    }
  }
}

/* Hologram portrait (hologram.js): a WebGL copy of the portrait laid exactly over the <img>, shown only while an
   effect plays. Under the arch's own light and border layers. */
.hero--cinematic .neo-hologram {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  visibility: hidden;
}
html[data-motion="on"] .hero--cinematic .neo-hologram.is-live { visibility: visible; }

/* Stained-glass shatter (shatter.js): while the scroll sequence breaks the window, the canvas of glass pieces takes
   the portrait's place. Under the title and the light that floods in through the arch. */
.hero.hero--cinematic > .neo-shatter {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  visibility: hidden;
}
.hero--cinematic[data-shatter] > .neo-shatter { visibility: visible; }
.hero--cinematic[data-shatter] .hero-portrait { visibility: hidden; }
/* The hologram layer sits inside the portrait but turns itself visible; while the glass is breaking it must go too,
   or the whole portrait shows again behind the flying pieces instead of the world beyond the window. */
html[data-motion="on"] .hero--cinematic[data-shatter] .neo-hologram.is-live { visibility: hidden; }

/* Tokyo sky (tokyo-sky.js): the hero takes the colour of the time of day in Tokyo. A glow behind the arch, a tint over
   the glass (above the hologram canvas, so the two always match) and a readout at the top of the arch. */
:root { --sky-a: 120, 247, 232; --sky-b: 255, 226, 122; --sky-angle: 200deg; --sky-tint-a: rgba(255, 250, 230, .12); --sky-tint-b: transparent; --sky-glow: .16; --sky-rim: 120, 247, 232; }
html[data-sky="dawn"] { --sky-a: 255, 186, 140; --sky-b: 255, 138, 176; --sky-angle: 220deg; --sky-tint-a: rgba(255, 176, 120, .55); --sky-tint-b: rgba(255, 128, 176, .3); --sky-glow: .24; }
html[data-sky="dusk"] {
  --sky-a: 255, 210, 135;
  --sky-b: 188, 120, 65;
  --sky-rim: 255, 215, 148;
  --sky-angle: 126deg;
  --sky-tint-a: rgba(255, 208, 128, .66);
  --sky-tint-b: rgba(192, 122, 65, .19);
  --sky-glow: .24;
}
html[data-sky="night"] {
  --sky-a: 120, 247, 232;
  --sky-b: 58, 103, 181;
  --sky-angle: 180deg;
  --sky-tint-a: rgba(52, 107, 164, .34);
  --sky-tint-b: rgba(120, 247, 232, .26);
  --sky-glow: .18;
}
html:is([data-weather="cloudy"], [data-weather="fog"]):not([data-sky="dusk"], [data-sky="night"]) {
  --sky-a: 216, 228, 240;
  --sky-b: 128, 152, 173;
  --sky-rim: 221, 233, 245;
  --sky-angle: 175deg;
  --sky-tint-a: rgba(222, 234, 246, .39);
  --sky-tint-b: rgba(162, 185, 207, .22);
  --sky-glow: .17;
}
html:is([data-weather="cloudy"], [data-weather="fog"]):is([data-sky="dusk"], [data-sky="night"]) {
  --sky-b: 158, 178, 196;
  --sky-tint-b: rgba(192, 209, 225, .29);
}
.hero.hero--cinematic .hero-portrait {
  border-color: rgba(var(--sky-rim), .7);
}
.hero.hero--cinematic .hero-portrait::after {
  border-color: rgba(var(--sky-rim), .27);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .28), inset 0 1px 14px rgba(var(--sky-rim), .2);
}
.hero.hero--cinematic > .hero-sky-glow {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 52% at 74% 42%, rgba(var(--sky-a), var(--sky-glow)), transparent 70%),
    radial-gradient(ellipse 40% 34% at 64% 84%, rgba(var(--sky-b), calc(var(--sky-glow) * .5)), transparent 70%);
}
@media (max-width: 980px) {
  .hero.hero--cinematic > .hero-sky-glow {
    background:
      radial-gradient(ellipse 70% 46% at 50% 36%, rgba(var(--sky-a), var(--sky-glow)), transparent 70%),
      radial-gradient(ellipse 60% 30% at 50% 82%, rgba(var(--sky-b), calc(var(--sky-glow) * .5)), transparent 70%);
  }
}
.hero--cinematic .hero-sky-tint {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(var(--sky-angle), var(--sky-tint-a), transparent 58%),
    linear-gradient(calc(var(--sky-angle) + 180deg), var(--sky-tint-b), transparent 62%);
  mix-blend-mode: soft-light;
}
.hero.hero--cinematic > .hero-sky-readout {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid rgba(var(--sky-a), .45);
  border-radius: 999px;
  background: rgba(3, 5, 6, .66);
  color: #f1fffd;
  font: 600 .7rem/1.4 'Chakra Petch', sans-serif;
  letter-spacing: .16em;
  white-space: nowrap;
  translate: -50% -50%;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-sky-readout time { font-variant-numeric: tabular-nums; }
.hero-sky-period { color: rgb(var(--sky-a)); }
.hero-sky-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--sky-a));
  box-shadow: 0 0 8px rgb(var(--sky-a));
}
html[data-motion="on"] .hero-sky-dot { animation: neo-signal 2.4s ease-in-out infinite !important; }
.hero-entry[data-entry="on"] .hero--cinematic > .hero-sky-readout { opacity: var(--entry-title, 1); }
.hero--cinematic[data-boot] > .hero-sky-readout { opacity: 0; }

/* NEO OS (neo-os.js): a command console in a native <dialog>. It powers on like a CRT when motion is on. */
.neo-os {
  width: min(640px, calc(100vw - 32px));
  max-height: min(560px, calc(100dvh - 48px));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e9fffb;
  overflow: visible;
}
.neo-os::backdrop { background: rgba(1, 3, 4, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.neo-os-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: inherit;
  overflow: hidden;
  border: 1px solid rgba(120, 247, 232, .55);
  border-radius: 12px;
  background:
    repeating-linear-gradient(180deg, rgba(120, 247, 232, .035) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 0%, rgba(120, 247, 232, .12), transparent 60%),
    #05090b;
  box-shadow: 0 0 0 1px rgba(3, 5, 6, .9), 0 0 40px rgba(120, 247, 232, .22), 0 30px 80px rgba(0, 0, 0, .6);
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Noto Sans JP', monospace;
}
.neo-os-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid rgba(120, 247, 232, .25);
  font-size: .72rem;
  letter-spacing: .16em;
}
.neo-os-title { color: var(--neo-tiffany); font-weight: 700; }
.neo-os-status { flex: 1; color: rgba(233, 255, 251, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.neo-os-close {
  min-width: 44px;
  min-height: 36px;
  border: 1px solid rgba(120, 247, 232, .4);
  border-radius: 6px;
  background: transparent;
  color: #e9fffb;
  font: inherit;
  cursor: pointer;
}
.neo-os-close:hover, .neo-os-close:focus-visible { border-color: var(--neo-tiffany); color: var(--neo-tiffany); outline: none; }
.neo-os-log {
  min-height: 72px;
  max-height: 34vh;
  overflow-y: auto;
  padding: 14px 16px 4px;
  font-size: .86rem;
  line-height: 1.7;
}
.neo-os-line { margin: 0; white-space: pre-wrap; color: rgba(233, 255, 251, .82); }
.neo-os-line.is-echo { color: #fff; }
.neo-os-line.is-ok { color: var(--neo-tiffany); }
.neo-os-line.is-warn { color: var(--neo-gold-light); }
.neo-os-form { display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px; border-bottom: 1px solid rgba(120, 247, 232, .18); }
.neo-os-prompt { color: var(--neo-tiffany); font-weight: 700; }
.neo-os-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  caret-color: var(--neo-tiffany);
  outline: none;
}
.neo-os-mic {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(120, 247, 232, .4);
  border-radius: 50%;
  background: transparent;
  color: var(--neo-tiffany);
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.neo-os-mic[hidden] { display: none; }
.neo-os-mic:hover { background: rgba(120, 247, 232, .1); }
.neo-os-mic:focus-visible { outline: 2px solid var(--neo-gold-light); outline-offset: 2px; }
.neo-os-mic.is-listening { background: var(--neo-tiffany); color: #03211e; box-shadow: 0 0 0 4px rgba(120, 247, 232, .2), 0 0 18px rgba(120, 247, 232, .6); }
html[data-motion="on"] .neo-os-mic.is-listening { animation: neo-os-listen 1.2s ease-in-out infinite; }
@keyframes neo-os-listen { 50% { box-shadow: 0 0 0 8px rgba(120, 247, 232, .08), 0 0 26px rgba(120, 247, 232, .8); } }
.neo-os-input::placeholder { color: rgba(233, 255, 251, .4); }
.neo-os-list { flex: 1; min-height: 0; margin: 0; padding: 6px; overflow-y: auto; list-style: none; }
.neo-os-option {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.neo-os-option[aria-selected="true"] { background: rgba(120, 247, 232, .12); box-shadow: inset 2px 0 0 var(--neo-tiffany); }
.neo-os-option:hover { background: rgba(120, 247, 232, .08); }
.neo-os-name { min-width: 6em; color: var(--neo-tiffany); font-weight: 700; }
.neo-os-label { color: rgba(233, 255, 251, .78); font-size: .88rem; }
@keyframes neo-os-power {
  0% { transform: scale(1, .006); filter: brightness(3); opacity: .6; }
  40% { transform: scale(1, .006); filter: brightness(3); opacity: 1; }
  70% { transform: scale(1, 1.02); filter: brightness(1.4); }
  100% { transform: none; filter: none; }
}
html[data-motion="on"] .neo-os[open] .neo-os-frame { animation: neo-os-power 420ms cubic-bezier(.2, .8, .3, 1) both !important; }
.neo-os-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--neo-muted);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.neo-os-open:hover, .neo-os-open:focus-visible { color: var(--neo-tiffany); }
.neo-os-open:focus-visible { outline: 2px solid var(--neo-tiffany); outline-offset: 4px; }
.neo-os-open kbd {
  padding: 1px 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font: 600 .75rem/1.5 ui-monospace, Consolas, monospace;
}
@media (hover: none) { .neo-os-open kbd { display: none; } }

/* Sector HUD (main.js): a descent readout in the left margin of wide screens. */
.neo-sector { display: none; }
@media (min-width: 1360px) {
  .neo-sector {
    position: fixed;
    z-index: 90;
    top: 50%;
    left: 28px;
    display: grid;
    gap: 4px;
    width: 92px;
    translate: -8px -50%;
    color: rgba(233, 255, 251, .7);
    font: 600 .66rem/1.4 'Chakra Petch', sans-serif;
    letter-spacing: .18em;
    pointer-events: none;
    opacity: 0;
    transition: opacity 400ms ease, translate 400ms var(--neo-motion-ease);
  }
  .neo-sector.is-on { opacity: 1; translate: 0 -50%; }
  .neo-sector-kicker { color: var(--neo-tiffany); }
  .neo-sector-count { font-size: .78rem; font-variant-numeric: tabular-nums; }
  .neo-sector-count b { color: #fff; font-size: 1.3rem; letter-spacing: .06em; }
  .neo-sector-name { min-height: 1.4em; color: var(--neo-gold-light); white-space: nowrap; }
  .neo-sector-track { display: grid; gap: 7px; margin-top: 10px; }
  .neo-sector-track i {
    display: block;
    width: 10px;
    height: 2px;
    background: rgba(233, 255, 251, .28);
    transition: width 300ms var(--neo-motion-ease), background-color 300ms ease;
  }
  .neo-sector-track i.is-current { width: 26px; background: var(--neo-tiffany); box-shadow: 0 0 8px rgba(120, 247, 232, .8); }
}

/* Targeting reticle (main.js, mouse only). Four brackets, moved by transform. */
.neo-reticle {
  position: fixed;
  z-index: 1600;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}
.neo-reticle.is-on { opacity: 1; }
.neo-reticle span {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border: 0 solid #bafff5;
  filter: drop-shadow(0 0 3px rgba(120, 247, 232, .85));
  will-change: transform;
  transition: border-color 200ms ease;
}
.neo-reticle-tl { border-top-width: 1.5px !important; border-left-width: 1.5px !important; }
.neo-reticle-tr { border-top-width: 1.5px !important; border-right-width: 1.5px !important; }
.neo-reticle-bl { border-bottom-width: 1.5px !important; border-left-width: 1.5px !important; }
.neo-reticle-br { border-bottom-width: 1.5px !important; border-right-width: 1.5px !important; }
.neo-reticle.is-locked span { border-color: #ffe27a; filter: drop-shadow(0 0 4px rgba(255, 210, 72, .9)); }
@keyframes neo-reticle-lock {
  0% { opacity: .2; }
  25% { opacity: 1; }
  45% { opacity: .35; }
  100% { opacity: 1; }
}
html[data-motion="on"] .neo-reticle.is-lock-flash span { animation: neo-reticle-lock 320ms steps(1, end) both !important; }
html[data-motion="off"] .neo-reticle { display: none; }

/* Curved screen: works and service images tilt back as they rise into view, face the visitor in the middle of the
   screen and tip forward as they leave, as if the page ran across a curved display. Scroll-driven, no script. */
@keyframes neo-curved-screen {
  0% { transform: perspective(1100px) rotateX(16deg) scale(.93); }
  38%, 62% { transform: perspective(1100px) rotateX(0deg) scale(1); }
  100% { transform: perspective(1100px) rotateX(-11deg) scale(.95); }
}
@supports (animation-timeline: view()) {
  html[data-motion="on"] :is(#worksGrid .work-thumb, .service-feature-visual) {
    animation: neo-curved-screen linear both !important;
    animation-timeline: view() !important;
    animation-range: cover 0% cover 100% !important;
  }
}

/* Scroll progress: a bright point rides the leading end of the line while the page moves. */
.scroll-progress-head {
  position: fixed;
  z-index: 101;
  top: -2px;
  left: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #fffbe6;
  box-shadow: 0 0 8px 2px rgba(255, 226, 122, .8), 0 0 18px 4px rgba(120, 247, 232, .35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
}
html[data-motion="on"] .scroll-progress-head.is-moving { opacity: 1; }

/* Gate ignition (neo-flux.js): the head script covers the first paint in black so the opening starts from darkness;
   the canvas takes over once it draws. If the script never runs, the cover clears itself. Both sit beneath the header
   (z-index 100), so its words stay readable and steady through the opening. */
html.neo-portal::before {
  content: "";
  position: fixed;
  z-index: 99;
  inset: 0;
  background: #030506;
  pointer-events: none;
  animation: neo-portal-failsafe 0s linear 3.5s forwards;
}
html.neo-portal-live::before { display: none; }
@keyframes neo-portal-failsafe { to { visibility: hidden; } }
.neo-gate {
  position: fixed;
  z-index: 99;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Plasma (neo-flux.js): lightning between the pointer and buttons, and the bolt that strikes a button on sight. */
.neo-plasma {
  position: fixed;
  z-index: 1550;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@keyframes neo-struck {
  0% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .95), 0 0 34px 8px rgba(120, 247, 232, .75); filter: brightness(1.8); }
  100% { box-shadow: 0 0 0 0 rgba(120, 247, 232, 0), 0 0 0 0 rgba(120, 247, 232, 0); filter: none; }
}
html[data-motion="on"] .is-struck { animation: neo-struck 800ms cubic-bezier(.2, .7, .3, 1) both !important; }

/* Particle signature (neo-flux.js): the NEO name in light particles that opens the footer. */
.neo-signature {
  display: block;
  width: 100%;
  height: clamp(124px, 17vw, 230px);
  margin: 0 auto clamp(24px, 4vw, 48px);
  cursor: crosshair;
  touch-action: pan-y;
}
html:not([data-motion="on"]) :is(.neo-signature, .neo-plasma, .neo-gate) { display: none; }

/* Typography in light. Headings are painted with gradients clipped to the glyphs, so the colour lives in the letters
   themselves; a glint (--neo-glint) and a flowing spectrum (--neo-flow) move through them while motion is on.
   Text shadows would paint over clipped backgrounds, so depth comes from drop-shadow filters instead. */
@property --neo-glint { syntax: '<percentage>'; inherits: true; initial-value: 100%; }
@property --neo-flow { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes neo-glint-loop { 0%, 58% { --neo-glint: 100%; } 86%, 100% { --neo-glint: 0%; } }
@keyframes neo-glint-once { from { --neo-glint: 100%; } to { --neo-glint: 0%; } }
@keyframes neo-flow { from { --neo-flow: 0%; } to { --neo-flow: 200%; } }

/* Hero, line one: polished chrome with a horizon in the metal and a prism glint that crosses it. */
.hero.hero--cinematic h1 > span:not(.grad) {
  background:
    linear-gradient(105deg, transparent 40%, rgba(150, 255, 240, .95) 46.5%, #fff 50%, rgba(255, 226, 122, .95) 53.5%, transparent 60%) var(--neo-glint) 0 / 250% 100% no-repeat,
    linear-gradient(180deg, #fff 0%, #effaf8 36%, #a9c3c4 50%, #fff 55%, #d7ece9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .75)) drop-shadow(0 0 1px rgba(0, 0, 0, .6));
}

/* Hero, line two: an aurora that flows through the letters, a glint, and now and then a faint chromatic glitch whose
   ghosts are copies of the word (data-text, set by neo-flux.js; the empty alt text keeps them out of screen readers). */
.hero.hero--cinematic h1 .grad {
  position: relative;
  background:
    linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%) var(--neo-glint) 0 / 250% 100% no-repeat,
    linear-gradient(100deg, #78f7e8 0%, #8fdcff 20%, #c7b8ff 36%, #ffe27a 54%, #a8fff1 74%, #78f7e8 100%) var(--neo-flow) 50% / 200% 100% repeat-x;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(120, 247, 232, .3)) drop-shadow(0 6px 22px rgba(0, 0, 0, .72));
}
.hero.hero--cinematic h1 .grad[data-text]::before,
.hero.hero--cinematic h1 .grad[data-text]::after {
  content: attr(data-text) / "";
  position: absolute;
  inset: 0;
  -webkit-text-fill-color: currentColor;
  pointer-events: none;
  opacity: 0;
}
.hero.hero--cinematic h1 .grad::before { color: rgba(0, 255, 234, .85); }
.hero.hero--cinematic h1 .grad::after { color: rgba(255, 70, 205, .75); }
@keyframes neo-glitch-a {
  0%, 94%, 97.5%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  94.5% { opacity: .5; transform: translateX(-3px); clip-path: inset(12% 0 58% 0); }
  96% { opacity: .4; transform: translateX(2px); clip-path: inset(56% 0 14% 0); }
}
@keyframes neo-glitch-b {
  0%, 94%, 97.5%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  95% { opacity: .45; transform: translateX(3px); clip-path: inset(46% 0 24% 0); }
  96.5% { opacity: .35; transform: translateX(-2px); clip-path: inset(8% 0 68% 0); }
}
/* Once the title has arrived it stays still. Text painted with gradients is not animated, so it cannot flicker or drop
   out on any phone; the colour is the same, only the endless motion is gone. */

/* Section titles keep their gold, with a glint that sweeps the label and the title together as the section arrives
   (neo-flux.js adds .neo-glint-run to the head and clears it when done), and again on hover. */
:is(.section-head, .cta-panel) h2 {
  background:
    linear-gradient(105deg, transparent 38%, rgba(120, 247, 232, .95) 45%, #fff 50%, rgba(255, 150, 225, .95) 55%, transparent 62%) var(--neo-glint) 0 / 250% 100% no-repeat,
    linear-gradient(105deg, #fff6c7 0%, #ffe27a 38%, #ffc83d 68%, #fff0a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
:is(.section-head, .cta-panel) .eyebrow {
  background:
    linear-gradient(105deg, transparent 40%, #fff 47%, #ffe27a 53%, transparent 60%) var(--neo-glint) 0 / 250% 100% no-repeat,
    linear-gradient(90deg, var(--neo-accent), var(--neo-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* The word picked out in a title shimmers like a hologram foil. */
.section-head h2 .accent-serif {
  background: linear-gradient(90deg, #ffe27a 0%, #ffb3dc 22%, #a9dcff 44%, #78f7e8 64%, #fff0a8 82%, #ffe27a 100%) var(--neo-flow) 50% / 200% 100% repeat-x;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-motion="on"] .section-head h2 .accent-serif { animation: neo-flow 8s linear infinite !important; }

/* Page titles on the other pages: the same aurora as the hero, with the glint. */
main h1:not(#heroTitle) {
  background:
    linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%) var(--neo-glint) 0 / 250% 100% no-repeat,
    linear-gradient(100deg, #f4fffd 0%, #78f7e8 24%, #8fdcff 42%, #ffe27a 64%, #f4fffd 82%, #f4fffd 100%) var(--neo-flow) 50% / 200% 100% repeat-x;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 16px rgba(120, 247, 232, .22));
}
html[data-motion="on"] main h1:not(#heroTitle) { animation: neo-flow 10s linear infinite, neo-glint-loop 6.5s ease-in-out 1s infinite !important; }

html[data-motion="on"] :is(.section-head, .cta-panel).neo-glint-run { animation: neo-glint-once 1.3s cubic-bezier(.45, .05, .25, 1) .35s both !important; }
@media (hover: hover) {
  html[data-motion="on"] :is(.section-head, .cta-panel):hover { animation: neo-glint-once 1.1s cubic-bezier(.45, .05, .25, 1) both !important; }
}

/* Lumen text (neo-flux.js marks plain body text with .neo-lumen): the text keeps its own colour but cools towards
   tiffany at the end of each line, and a band of light rests at the middle of the screen; each line passes through
   it as the page scrolls (a scroll-driven view() timeline, so no script runs on scroll). With a mouse, the words
   under the pointer light up too (--mx/--my). Three layers clipped to the glyphs: pointer light, reading band, colour. */
.neo-lumen {
  --mx: -999px;
  --my: -999px;
  background:
    radial-gradient(circle 86px at var(--mx) var(--my), #fff 0%, rgba(176, 255, 246, .95) 36%, transparent 72%) no-repeat,
    linear-gradient(180deg, transparent 0%, rgba(120, 247, 232, .55) 28%, #9ffbf0 42%, #fff 50%, #9ffbf0 58%, rgba(120, 247, 232, .55) 72%, transparent 100%) 0 -240px / 100% 240px no-repeat,
    linear-gradient(100deg, currentColor 0%, currentColor 40%, color-mix(in oklab, currentColor 58%, #78f7e8) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes neo-lumen-beam {
  from { background-position: 0 0, 0 -240px, 0 0; }
  to { background-position: 0 0, 0 calc(100% + 240px), 0 0; }
}
@supports (animation-timeline: view()) {
  html[data-motion="on"] .neo-lumen {
    animation: neo-lumen-beam linear both !important;
    animation-timeline: view() !important;
    animation-range: cover 10% cover 90% !important;
  }
}
/* Words with a colour of their own keep it; emphasis flows like the hero's aurora. */
.neo-lumen :is(a, code, mark, [class]):not(strong, b) { -webkit-text-fill-color: currentColor; }
.neo-lumen :is(strong, b) {
  background: linear-gradient(100deg, #ffe27a 0%, #fff6c7 26%, #78f7e8 52%, #a9dcff 74%, #ffe27a 100%) var(--neo-flow) 50% / 200% 100% repeat-x;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-motion="on"] .neo-lumen :is(strong, b) { animation: neo-flow 6s linear infinite !important; }
/* Links in running text carry a current of light along their underline. */
.neo-lumen a {
  text-decoration: none;
  background: linear-gradient(90deg, rgba(120, 247, 232, .25) 0%, #78f7e8 30%, #fff 45%, #ffe27a 60%, rgba(120, 247, 232, .25) 100%) var(--neo-flow) 100% / 200% 1.5px repeat-x;
  padding-bottom: 2px;
}
html[data-motion="on"] .neo-lumen a { animation: neo-flow 3s linear infinite !important; }
.neo-lumen::selection,
.neo-lumen *::selection { -webkit-text-fill-color: #031014; background: #78f7e8; }
@media (forced-colors: active) {
  .neo-lumen, .neo-lumen * { background: none !important; -webkit-text-fill-color: CanvasText !important; }
}

/* Tokyo weather (neo-weather.js): rain, snow, stars, clouds or mist across the hero, sun beams through the glass by
   day, and the weather on the arch's readout. Drops on the glass itself are drawn by hologram.js. */
.hero.hero--cinematic > .neo-weather {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero.hero--cinematic > .neo-weather-rays {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: repeating-conic-gradient(from 196deg at 86% -12%, rgba(255, 236, 190, 0) 0deg 4deg, rgba(255, 236, 190, .16) 5.5deg 7deg, rgba(255, 236, 190, 0) 9deg 15deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 88%);
  mix-blend-mode: screen;
  transform-origin: 86% -12%;
  transition: opacity 1.4s ease;
}
html[data-weather="clear"]:not([data-sky="night"]) .hero.hero--cinematic > .neo-weather-rays { opacity: var(--entry-title, 1); }
@keyframes neo-rays-sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
html[data-motion="on"] .hero.hero--cinematic > .neo-weather-rays { animation: neo-rays-sway 16s ease-in-out infinite !important; }
.hero-entry[data-entry="on"] .hero--cinematic > .neo-weather { opacity: var(--entry-title, 1); }
/* Wet and stormy skies dim the hero's glow; snow cools it. */
.hero.hero--cinematic > .hero-sky-glow { transition: filter 1.4s ease; }
html:is([data-weather="rain"], [data-weather="storm"]) .hero.hero--cinematic > .hero-sky-glow { filter: saturate(.55) brightness(.7) hue-rotate(-12deg); }
html[data-weather="snow"] .hero.hero--cinematic > .hero-sky-glow { filter: saturate(.5) brightness(1.15); }
/* The thunder flash warms the sky to gold rather than bleaching it white. */
@keyframes neo-thunder-glow {
  0%, 100% { filter: saturate(.55) brightness(.7); }
  8% { filter: sepia(.6) saturate(1.5) brightness(2.3); }
  16% { filter: saturate(.55) brightness(.9); }
  24% { filter: sepia(.5) saturate(1.4) brightness(1.8); }
}
html[data-motion="on"] .hero--cinematic.is-thunder > .hero-sky-glow { animation: neo-thunder-glow .8s ease-out both !important; }
.hero-weather {
  padding-left: 8px;
  border-left: 1px solid rgba(var(--sky-a), .4);
  color: #d6ecff;
  font-variant-numeric: tabular-nums;
}
.hero-weather:empty { display: none; }
.hero-weather[data-kind="clear"] { color: #ffe9b0; }
.hero-weather[data-kind="snow"] { color: #f4fbff; }
.hero-weather[data-kind="storm"] { color: #c9d8ff; }
html:not([data-motion="on"]) :is(.neo-weather, .neo-weather-rays) { display: none; }

/* Depth (hologram.js): on an iPhone, the plate under the arch asks for the motion sensor so tilting moves the view. */
.hero.hero--cinematic > .neo-depth-chip {
  position: absolute;
  z-index: 5;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(120, 247, 232, .55);
  border-radius: 999px;
  background: rgba(3, 5, 6, .74);
  color: #e9fffb;
  font: 600 .78rem/1 'Chakra Petch', 'Noto Sans JP', sans-serif;
  letter-spacing: .06em;
  box-shadow: 0 0 18px rgba(120, 247, 232, .22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.hero.hero--cinematic > .neo-depth-chip span { color: #78f7e8; }
.hero.hero--cinematic > .neo-depth-chip:focus-visible { outline: 2px solid #78f7e8; outline-offset: 3px; }
.hero.hero--cinematic > .neo-depth-chip:active { border-color: #fff; box-shadow: 0 0 26px rgba(120, 247, 232, .5); }
.hero-entry[data-entry="on"] .hero--cinematic > .neo-depth-chip { opacity: var(--entry-title, 1); }
.hero--cinematic[data-boot] > .neo-depth-chip { opacity: 0; }
html:not([data-motion="on"]) .hero.hero--cinematic > .neo-depth-chip { display: none; }

/* AR (neo-ar.js): the museum's "hang it on your wall" button, and the preview where AR is not available. */
#workModalOverlay .museum-ar-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: rgba(255, 226, 122, .55);
  color: #fff6d6;
}
#workModalOverlay .museum-ar-button[hidden] { display: none; }
#workModalOverlay .museum-ar-button:hover { border-color: #ffe27a; background: rgba(255, 226, 122, .08); }
.museum-ar-mark {
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(100deg, #78f7e8, #ffe27a);
  color: #031014;
  font: 700 .62rem/1.2 'Chakra Petch', sans-serif;
  letter-spacing: .08em;
}
.neo-ar {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eaf6f5;
  overflow: visible;
}
.neo-ar::backdrop { background: rgba(2, 4, 5, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.neo-ar-panel {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(120, 247, 232, .32);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(10, 20, 22, .98), rgba(4, 7, 8, .98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(120, 247, 232, .08);
}
.neo-ar-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start; }
.neo-ar-kicker { margin: 0; color: #78f7e8; font: 700 .7rem/1.4 'Chakra Petch', sans-serif; letter-spacing: .2em; }
.neo-ar-title { grid-column: 1; margin: 0; color: #fff6d6; font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.4; }
.neo-ar-close {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(120, 247, 232, .35);
  border-radius: 50%;
  background: transparent;
  color: #eaf6f5;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.neo-ar-close:hover { border-color: #78f7e8; }
.neo-ar-close:focus-visible { outline: 2px solid #78f7e8; outline-offset: 3px; }
/* The room, drawn to scale: the wall from the floor line (82% down) to the top is 240 cm, so 1 cm = 82cqh / 240.
   The framed piece hangs 105 cm above the floor over a 200 cm sofa, at its real size (--ar-w × --ar-h, in cm),
   turning towards the pointer with its shadow on the wall. */
.neo-ar-room {
  --ar-x: 0;
  --ar-y: 0;
  --ar-w: 97;
  --ar-h: 58;
  --cm: calc(82cqh / 240);
  position: relative;
  container-type: size;
  height: clamp(250px, 48vh, 420px);
  margin: 18px 0 14px;
  overflow: hidden;
  border-radius: 10px;
  perspective: 1100px;
}
.neo-ar-wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 60% at 50% 18%, rgba(255, 238, 205, .2), transparent 72%),
    linear-gradient(180deg, #2c2f32 0%, #1e2124 82%, #121416 82.3%, #0d0f10 100%);
}
.neo-ar-sofa {
  position: absolute;
  bottom: 18cqh;
  left: 50%;
  width: calc(200 * var(--cm));
  height: calc(82 * var(--cm));
  translate: -50% 0;
  border-radius: calc(9 * var(--cm)) calc(9 * var(--cm)) calc(3 * var(--cm)) calc(3 * var(--cm));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 22%),
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, .35) 52.5%, transparent 60%),
    #17191b;
  box-shadow: 0 calc(4 * var(--cm)) calc(10 * var(--cm)) rgba(0, 0, 0, .45);
}
.neo-ar-sofa::before,
.neo-ar-sofa::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: calc(18 * var(--cm));
  height: 74%;
  border-radius: calc(7 * var(--cm)) calc(7 * var(--cm)) calc(2 * var(--cm)) calc(2 * var(--cm));
  background: linear-gradient(180deg, #24272a, #141618);
}
.neo-ar-sofa::before { left: calc(-6 * var(--cm)); }
.neo-ar-sofa::after { right: calc(-6 * var(--cm)); }
.neo-ar-frame {
  position: absolute;
  z-index: 1;
  bottom: calc(18cqh + 105 * var(--cm));
  left: 50%;
  width: calc(var(--ar-w) * var(--cm));
  height: calc(var(--ar-h) * var(--cm));
  margin: 0;
  padding: calc(3.2 * var(--cm));
  box-sizing: border-box;
  translate: -50% 0;
  border-radius: 2px;
  background: linear-gradient(145deg, #2a2e31, #0d0f10 60%, #1c1f21);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 0 0 calc(2.2 * var(--cm)) #0e1011,
    inset 0 0 0 calc(2.8 * var(--cm)) #c9a253,
    calc(var(--ar-x) * -12px + 8px) 18px 30px rgba(0, 0, 0, .55);
  transform: rotateY(calc(var(--ar-x) * 14deg)) rotateX(calc(var(--ar-y) * -9deg));
  transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(.2, .7, .3, 1), box-shadow 260ms cubic-bezier(.2, .7, .3, 1);
}
.neo-ar-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.neo-ar-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(calc(110deg + var(--ar-x) * 20deg), transparent 35%, rgba(255, 255, 255, .12) 48%, transparent 60%);
  pointer-events: none;
}
.neo-ar-scale {
  position: absolute;
  right: 12px;
  bottom: 6cqh;
  left: 12px;
  margin: 0;
  color: rgba(234, 246, 245, .62);
  font-size: .75rem;
  line-height: 1.4;
  text-align: center;
}
/* After the QR code: the way to ask about the piece. */
.neo-ar-inquire {
  display: flex;
  min-height: 48px;
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 226, 122, .55);
  border-radius: 999px;
  color: #fff6d6;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.neo-ar-inquire:hover { border-color: #ffe27a; background: rgba(255, 226, 122, .08); }
.neo-ar-inquire:focus-visible { outline: 2px solid #ffe27a; outline-offset: 3px; }
.neo-ar-inquire span { transition: translate 200ms ease; }
.neo-ar-inquire:hover span { translate: 3px 0; }
.neo-ar-size { margin: 0; color: #ffe27a; font: 600 .9rem/1.6 'Chakra Petch', 'Noto Sans JP', sans-serif; letter-spacing: .04em; }
.neo-ar-note { margin: 6px 0 0; color: #c8d4d8; font-size: .9rem; line-height: 1.8; }
@keyframes neo-ar-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
html[data-motion="on"] .neo-ar[open] .neo-ar-panel { animation: neo-ar-in 420ms cubic-bezier(.2, .7, .3, 1) both !important; }
html:not([data-motion="on"]) .neo-ar-frame { transform: none; }
/* The QR code that leads a phone to the piece, and, on a phone, the button that places it. */
.neo-ar-phone {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}
.neo-ar-phone[hidden] { display: none; }
.neo-ar-phone .neo-ar-note { margin: 0; }
.neo-ar-qr {
  width: 112px;
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(120, 247, 232, .5), 0 0 24px rgba(120, 247, 232, .18);
}
.neo-ar-qr svg { display: block; width: 100%; height: 100%; }
.neo-ar-place {
  display: none;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, #78f7e8, #b9fff6 45%, #ffe27a);
  color: #031014;
  font: 700 1rem/1 'Noto Sans JP', sans-serif;
  letter-spacing: .04em;
  box-shadow: 0 0 28px rgba(120, 247, 232, .35);
  cursor: pointer;
}
.neo-ar.can-place .neo-ar-place { display: inline-flex; }
.neo-ar-place .museum-ar-mark { background: #031014; color: #78f7e8; }
.neo-ar-place:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.neo-ar-place:active { transform: scale(.98); }
@media (max-width: 480px) {
  .neo-ar-phone { grid-template-columns: 88px 1fr; gap: 12px; }
  .neo-ar-qr { width: 88px; }
}

/* Genesis and the living painting (neo-genesis.js). Genesis is a full-screen layer of light points over the museum
   while a work forms; the living painting lies exactly over the <img> it animates. Neither takes a pointer. */
.neo-genesis {
  position: fixed;
  inset: 0;
  z-index: 1401;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.neo-living {
  position: absolute;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
html:not([data-motion="on"]) .neo-genesis,
html:not([data-motion="on"]) .neo-living { display: none; }

/* The header stays still: its logo and its call to action keep their colour, without the breathing filter that
   flickers the words beside them. */
html[data-motion="on"] .site-header .logo-mark,
html[data-motion="on"] .site-header .btn-primary { animation: none !important; }

/* Hero title: solid colour, glow kept. Painting the letters with a gradient (background-clip: text) let some devices,
   Android Chrome among them, drop parts of the words to the picture behind them. The colour is now one tone, and the
   glow and shadow sit around the letters instead of inside them. */
.hero.hero--cinematic h1 > span:not(.grad) {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: #f4fffd;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .7), 0 0 1px rgba(0, 0, 0, .5);
  filter: none;
}
.hero.hero--cinematic h1 .grad {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: #78f7e8;
  text-shadow: 0 0 18px rgba(120, 247, 232, .4), 0 2px 22px rgba(0, 0, 0, .7);
  filter: none;
}

/* Header: one solid, opaque tone that does not animate between its two states. Translucent or fading backgrounds let the
   animated page beneath show through in patches on some phones, which reads as the bar breaking up and flickering.
   The header keeps its own layer (isolation) without a transform, so its fixed mobile menu still covers the screen. */
.site-header,
.site-header.scrolled {
  background: #080a0c;
  transition: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}

/* Navigation, English first (2026-10-31). Each link has an English word (large) and its Japanese meaning (small).
   On phones the links form a numbered control panel; on desktop only the English word shows, in the header bar. */
.main-nav .nav-en {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
}
.main-nav .nav-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .66em;
  font-weight: 600;
  letter-spacing: .06em;
  opacity: .72;
}
@media (min-width: 861px) {
  .main-nav .nav-ja { display: none; }
}
/* Phone menu, 2026-11-01: a full-screen panel with the links centred, in the brand pair of champagne gold and tiffany.
   English words are gold; numbers and the frame are tiffany; the Japanese meanings are white.
   The current page's word is tiffany and sits on a short rule that runs from gold into tiffany.
   The panel fades in rather than sliding, and covers the page, so the dimmed and blurred backdrop is not needed. */
@media (max-width: 860px) {
  .main-nav {
    --menu-gold: #e9d29a;
    counter-reset: neo-menu;
    inset: 0;
    width: auto;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: max(88px, calc(env(safe-area-inset-top) + 76px)) 24px max(32px, calc(env(safe-area-inset-bottom) + 28px));
    overflow-y: auto;
    border-left: 0;
    text-align: center;
    background:
      radial-gradient(ellipse 80% 38% at 50% 0%, rgba(120, 247, 232, .1), transparent 70%),
      radial-gradient(ellipse 70% 45% at 50% 50%, rgba(233, 210, 154, .06), transparent 70%),
      radial-gradient(ellipse 80% 38% at 50% 100%, rgba(120, 247, 232, .07), transparent 70%),
      repeating-linear-gradient(0deg, rgba(120, 247, 232, .028) 0 1px, transparent 1px 32px),
      repeating-linear-gradient(90deg, rgba(120, 247, 232, .028) 0 1px, transparent 1px 32px),
      linear-gradient(180deg, #050a0b, #020304);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    /* The menu just appears and disappears: no fade, no moving links, nothing sweeping over it (2026-11-16). */
    transition: none;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
  }
  /* Auto margins centre the list when it fits and fall back to the top when it has to scroll. */
  .main-nav > :first-child { margin-top: auto; }
  .main-nav > :last-child { margin-bottom: auto; }
  body.nav-open::before { content: none; }
  /* The panel's own heading, centred over the centred list, level with the close button. The indent matches the
     tracking that trails the last letter, so the words sit on the true centre. */
  .main-nav::after {
    content: "NAVIGATION  //  NEO";
    position: absolute;
    top: max(34px, calc(env(safe-area-inset-top) + 22px));
    left: 0;
    right: 0;
    text-align: center;
    text-indent: .32em;
    color: rgba(120, 247, 232, .78);
    font: 600 .66rem/1 'Chakra Petch', sans-serif;
    letter-spacing: .32em;
    white-space: pre;
    pointer-events: none;
  }
  .main-nav a {
    counter-increment: neo-menu;
    position: relative;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: min(100%, 320px);
    min-height: 0;
    padding: 12px 0;
    border: 0;
    color: var(--menu-gold);
    font-size: 1.62rem;
    line-height: 1;
    transition: color 180ms ease;
  }
  .main-nav a::before {
    content: counter(neo-menu, decimal-leading-zero);
    color: rgba(120, 247, 232, .62);
    font: 600 .66rem/1 'Chakra Petch', sans-serif;
    letter-spacing: .3em;
    text-indent: .3em;
  }
  /* No rule under the links: the current page is shown by its colour alone (2026-11-16). */
  .main-nav a::after { content: none !important; animation: none !important; }
  .main-nav .nav-en {
    color: inherit;
    letter-spacing: .1em;
    text-indent: .1em;
  }
  .main-nav .nav-ja {
    display: block;
    color: #fff;
    font-size: .78rem;
    letter-spacing: .14em;
    text-indent: .14em;
    opacity: 1;
  }
  .main-nav a:hover,
  .main-nav a:focus-visible { color: var(--neo-tiffany); background: none; }
  .main-nav a:hover::before,
  .main-nav a:focus-visible::before { color: var(--neo-tiffany); }
  .main-nav a.active,
  .main-nav a[aria-current="page"] {
    color: #fff3cf;
    background: none;
    box-shadow: none;
    text-shadow: none;
  }
  /* The current page's word turns tiffany as a whole, with a soft glow, against the gold of the others. */
  .main-nav a.active .nav-en,
  .main-nav a[aria-current="page"] .nav-en {
    color: var(--neo-tiffany);
    text-shadow: 0 0 14px rgba(120, 247, 232, .4);
  }
  .main-nav a.active::before,
  .main-nav a[aria-current="page"]::before { color: var(--neo-gold-light); }
  .main-nav a:focus-visible { outline: 1px solid rgba(120, 247, 232, .8); outline-offset: 2px; }
  .main-nav .motion-toggle--menu {
    align-self: center;
    margin-top: 26px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(120, 247, 232, .42);
    border-radius: 999px;
    color: rgba(214, 245, 241, .86);
    font: 600 .78rem/1 'Chakra Petch', 'Noto Sans JP', sans-serif;
    letter-spacing: .12em;
  }
}
/* Phones whose visible height is under about 760px (most, once the browser bars are counted): tighter rows so the whole list fits. */
@media (max-width: 860px) and (max-height: 760px) {
  .main-nav { padding-top: max(80px, calc(env(safe-area-inset-top) + 68px)); }
  .main-nav a { gap: 5px; padding: 7px 0; font-size: 1.5rem; }
  .main-nav .motion-toggle--menu { margin-top: 18px; }
}
@media (max-width: 860px) and (max-height: 640px) {
  .main-nav a { gap: 5px; padding: 6px 0; font-size: 1.4rem; }
  .main-nav .motion-toggle--menu { flex: none; margin-top: 16px; }
}

/* Section headings, English first (2026-10-31): the English word is large, the Japanese meaning sits beneath it. */
.h2-en {
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.05;
}
.h2-ja {
  display: block;
  margin-top: .3em;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .42em;
  font-weight: 600;
  letter-spacing: .14em;
  opacity: .78;
}

/* Header call to action, 2026-11-01: WORK WITH NEO, with its Japanese meaning beneath, in the squared shape of the
   hero buttons. It stays the solid tiffany button: the one strongest action on every page. It has no corner brackets
   of its own; with a mouse, the site's gold lock-on corners (main.js, initReticle) frame it as they do every control. */
.site-header .header-actions .btn.header-cta {
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 46px;
  padding: 7px 16px;
  border-radius: 4px;
  overflow: visible;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(120, 247, 232, .22);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}
.header-cta-en {
  font-family: 'Chakra Petch', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.header-cta-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
  opacity: .72;
}
.site-header .header-actions .btn.header-cta::after { content: none; }
.site-header .header-actions .btn.header-cta:hover,
.site-header .header-actions .btn.header-cta:focus-visible {
  background: #a6fff4;
  box-shadow: 0 0 28px rgba(120, 247, 232, .42);
}
.site-header .header-actions .btn.header-cta:active { transform: scale(.97); }
.site-header .header-actions .btn.header-cta:focus-visible { outline: 2px solid #f4fffd; outline-offset: 3px; }
@media (max-width: 600px) {
  .site-header .header-actions .btn.header-cta { min-height: 44px; padding: 6px 12px; }
  .header-cta-en { font-size: .72rem; letter-spacing: .08em; }
  .header-cta-ja { font-size: .56rem; }
}
@media (max-width: 360px) {
  .site-header .header-actions .btn.header-cta { padding-inline: 9px; }
  .header-cta-en { font-size: .66rem; letter-spacing: .04em; }
}

/* Theme music switch, 2026-11-01: a squared button beside WORK WITH NEO in the header, framed in champagne gold like
   the menu button, so the solid tiffany of WORK WITH NEO stays the one tiffany control in the bar.
   Four bars show the state: low and quiet when off, moving in tiffany and gold while the music plays.
   Where the header has no room the same switch floats in the bottom-right corner, under the header and any open viewer. */
.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: none;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(233, 210, 154, .42);
  border-radius: 4px;
  background: rgba(4, 8, 9, .7);
  color: rgba(214, 245, 241, .78);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}
/* While the music is off: a champagne-gold pair of notes that bobs gently, inviting a press. */
.sound-toggle .sound-note {
  display: block;
  width: 20px;
  height: 20px;
  color: #e9d29a;
  filter: drop-shadow(0 0 6px rgba(233, 210, 154, .45));
  transition: color 180ms ease;
}
.sound-toggle:hover .sound-note,
.sound-toggle:focus-visible .sound-note { color: #fbecc4; }
html[data-motion="on"] .sound-toggle:not(.is-playing) .sound-note { animation: neo-note-bob 2.8s ease-in-out infinite; }
@keyframes neo-note-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-2px) rotate(-6deg); }
}
.sound-toggle.is-playing .sound-note { display: none; }
.sound-toggle:not(.is-playing) .sound-bars { display: none; }
.sound-toggle .sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.sound-toggle .sound-bars i {
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: rgba(186, 214, 210, .55);
  transform: scaleY(.25);
  transform-origin: bottom;
  transition: transform 220ms ease, background-color 220ms ease;
}
.sound-toggle .sound-label {
  font: 700 .7rem/1 'Chakra Petch', sans-serif;
  letter-spacing: .16em;
}
.sound-toggle:hover,
.sound-toggle:focus-visible {
  border-color: rgba(233, 210, 154, .85);
  color: #fbecc4;
}
.sound-toggle:focus-visible { outline: 2px solid var(--neo-tiffany); outline-offset: 3px; }
.sound-toggle:active { transform: scale(.95); }
.sound-toggle.is-on {
  border-color: rgba(233, 210, 154, .75);
  color: #fbecc4;
  box-shadow: 0 0 16px rgba(233, 210, 154, .18);
}
.sound-toggle.is-on .sound-bars i:nth-child(odd) { background: var(--neo-tiffany); }
.sound-toggle.is-on .sound-bars i:nth-child(even) { background: var(--neo-gold-light); }
.sound-toggle.is-playing .sound-bars i:nth-child(1) { transform: scaleY(.6); }
.sound-toggle.is-playing .sound-bars i:nth-child(2) { transform: scaleY(1); }
.sound-toggle.is-playing .sound-bars i:nth-child(3) { transform: scaleY(.75); }
.sound-toggle.is-playing .sound-bars i:nth-child(4) { transform: scaleY(.45); }
html[data-motion="on"] .sound-toggle.is-playing .sound-bars i { animation: neo-sound-bar 900ms ease-in-out infinite alternate; }
html[data-motion="on"] .sound-toggle.is-playing .sound-bars i:nth-child(2) { animation-duration: 640ms; animation-delay: -200ms; }
html[data-motion="on"] .sound-toggle.is-playing .sound-bars i:nth-child(3) { animation-duration: 1080ms; animation-delay: -500ms; }
html[data-motion="on"] .sound-toggle.is-playing .sound-bars i:nth-child(4) { animation-duration: 760ms; animation-delay: -300ms; }
@keyframes neo-sound-bar {
  from { transform: scaleY(.2); }
  to { transform: scaleY(1); }
}
.sound-toggle--float { display: none; }
/* The header has room for the word SOUND only from 1200px, and for the bars alone from 1150px and on tablets
   (601-860px, where the links fold into the menu); in between it would push the links onto extra lines.
   Phones and narrow laptops use the floating switch. */
@media (max-width: 1199px) {
  .sound-toggle { width: 44px; padding: 0; }
  .sound-toggle .sound-label { display: none; }
}
@media (max-width: 600px), (min-width: 861px) and (max-width: 1149px) {
  .site-header .header-actions .sound-toggle--header { display: none; }
  .sound-toggle--float {
    display: inline-flex;
    position: fixed;
    z-index: 90;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(4, 8, 9, .86);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
    transition: opacity 200ms ease, visibility 0s linear 0s, border-color 180ms ease, color 180ms ease, transform 120ms ease;
  }
  .sound-toggle--float.is-tucked {
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 0s linear 200ms;
  }
  .sound-toggle--float.is-on { box-shadow: 0 6px 20px rgba(0, 0, 0, .45), 0 0 16px rgba(233, 210, 154, .2); }
  body.nav-open .sound-toggle--float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-motion="on"] .sound-toggle.is-playing .sound-bars i { animation: none; }
  html[data-motion="on"] .sound-toggle:not(.is-playing) .sound-note { animation: none; }
}

/* Header between 861px and 1149px (2026-11-01): the links still sit in the bar, but at full size the logo, six
   links and the buttons are about 150px wider than the screen, so the logo words wrapped over HOME and APPS & GAMES
   broke onto three lines. Here the logo stacks as on phones (AI Artist / NEO), the links tighten, and nothing wraps. */
@media (min-width: 861px) and (max-width: 1149px) {
  .site-header .header-inner { gap: 16px; }
  .site-header .logo { flex: none; gap: 8px; }
  .site-header .logo-mark { width: 40px; height: 40px; }
  .site-header .logo-text { white-space: nowrap; text-align: center; font-size: .92rem; }
  .site-header .logo-text .accent { display: block; margin-top: 2px; line-height: 1; }
  .site-header .main-nav { gap: 14px; }
  .site-header .main-nav a { white-space: nowrap; font-size: .76rem; }
  .site-header .main-nav .nav-en { letter-spacing: .05em; }
}

/* Menu button, 2026-11-01: framed in the same champagne gold as the sound switch. */
.site-header .nav-toggle {
  border-color: rgba(233, 210, 154, .42);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.site-header .nav-toggle:hover,
.site-header .nav-toggle:focus-visible,
.site-header .nav-toggle.open {
  border-color: rgba(233, 210, 154, .85);
  box-shadow: 0 0 14px rgba(233, 210, 154, .16);
}

/* Side-by-side hero, 2026-11-01: on desktops, and on wide-but-short windows of 601-980px (zoomed pages, split
   screens), the title block is centred in the open space to the left of the arch. Its width is that space: the
   hero's content box, plus its left padding, less the arch's right offset, the arch itself and a gap. The rule under
   the Japanese line becomes symmetrical, gold at the centre fading to tiffany at both ends. Selectors carry the
   .hero-entry wrapper because hero-entry.css loads after this file and sets the left-aligned values. */
@media (min-width: 981px), (min-width: 601px) and (max-width: 980px) and (min-aspect-ratio: 1/1) {
  .hero-entry .hero-title-lockup { text-align: center; }
  .hero-entry .hero.hero--cinematic h1 { text-align: center; }
  .hero-entry .hero.hero--cinematic h1 span { margin-inline: auto; }
  .hero-entry .hero.hero--cinematic h1 > span.hero-title-ja::after {
    width: 180px;
    margin-inline: auto;
    background: linear-gradient(90deg, rgba(120, 247, 232, 0), #78f7e8 22%, var(--neo-gold-light) 50%, #78f7e8 78%, rgba(120, 247, 232, 0));
  }
  .hero-entry .hero-lead { margin-inline: auto; }
  .hero-entry .hero-cinematic-actions { margin-inline: auto; justify-content: center; }
}
@media (min-width: 981px) {
  .hero-entry .hero-title-lockup {
    --arch-width: min(44vw, max(560px, min(82svh, 840px)) * 9 / 13);
    width: calc(100% + clamp(28px, 6vw, 104px) - clamp(28px, 6vw, 118px) - var(--arch-width) - clamp(40px, 4vw, 72px));
  }
}
@media (min-width: 981px) and (max-width: 1180px) {
  .hero-entry .hero-title-lockup { --arch-width: min(40vw, max(560px, min(82svh, 840px)) * 9 / 13); }
}
@media (min-width: 981px) and (max-height: 700px) {
  .hero-entry .hero-title-lockup { --arch-width: min(44vw, min(82svh, 840px) * 9 / 13); }
}
@media (min-width: 601px) and (max-width: 980px) and (min-aspect-ratio: 1/1) {
  .hero-entry .hero-title-lockup {
    width: calc(100% + clamp(28px, 5vw, 56px) - clamp(28px, 6vw, 72px) - min(74svh, 620px) * 9 / 13 - clamp(24px, 3vw, 40px));
  }
}

/* Two-line logo (phones, and the 861-1149px header), 2026-11-01: a small "AI Artist" over a large NEO, the classic
   label-over-name lockup. The sizes are set so both lines come out the same width with the same light tracking
   (0.75rem and 1.6rem at .1em tracking; in Chakra Petch Bold the two lines land within 2px of each other), and the
   pair stands about as tall as the buttons on the right. NEO, the name, carries the weight. */
@media (max-width: 640px), (min-width: 861px) and (max-width: 1149px) {
  .site-header .logo-text {
    font-size: .75rem;
    line-height: 1.15;
    letter-spacing: .1em;
  }
  .site-header .logo-text .accent {
    margin-top: 1px;
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: .1em;
  }
}

/* NOW PLAYING card, 2026-11-01: when the theme starts, its title appears for a few seconds under the header (on
   phones, above the floating switch). Champagne gold on a dark plate, like the switch. */
.sound-card {
  position: fixed;
  z-index: 95;
  top: 86px;
  right: clamp(16px, 3vw, 40px);
  display: grid;
  gap: 4px;
  padding: 10px 16px 11px;
  border: 1px solid rgba(233, 210, 154, .5);
  border-radius: 4px;
  background: rgba(4, 8, 9, .9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 18px rgba(233, 210, 154, .12);
  color: #f4ead0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 260ms ease, transform 260ms ease, visibility 0s linear 260ms;
}
.sound-card.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 260ms ease, transform 260ms ease, visibility 0s;
}
.sound-card-label {
  color: rgba(120, 247, 232, .85);
  font: 700 .62rem/1 'Chakra Petch', sans-serif;
  letter-spacing: .24em;
}
.sound-card-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.sound-card-title b {
  color: #e9d29a;
  font: 700 1rem/1.2 'Noto Sans JP', sans-serif;
  letter-spacing: .12em;
}
.sound-card-title span {
  font: 700 .74rem/1 'Chakra Petch', sans-serif;
  letter-spacing: .14em;
}
@media (max-width: 600px), (min-width: 861px) and (max-width: 1149px) {
  .sound-card {
    top: auto;
    right: 14px;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    transform: translateY(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sound-card, .sound-card.is-shown { transform: none; }
}

/* The page frame that keeps the theme playing across pages (neo-sound.js). Once the next page has loaded in it, the
   page underneath is hidden. */
.neo-shell-frame {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #030506;
  opacity: 0;
  pointer-events: none;
}
html.neo-shell .neo-shell-frame { opacity: 1; pointer-events: auto; }
html.neo-shell body > :not(.neo-shell-frame) { display: none !important; }
html.neo-shell,
html.neo-shell body { overflow: hidden; }

/* Video works in the museum, 2026-11-01 (gallery.js): the clip takes the place and the size limits of a still
   artwork, in its own vertical shape, with the poster showing until it plays. */
#workModalOverlay .museum-artwork-frame--clip video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 158px);
  border: 1px solid rgba(220, 232, 232, .19);
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58), 0 0 52px rgba(var(--exhibit-primary, 120, 247, 232), .12);
}
.museum-stage--portrait .museum-artwork-frame--clip video { height: 100%; }
#workModalOverlay.is-artwork-only .museum-artwork-frame--clip video { height: auto; max-height: calc(100dvh - 192px); }
#workModalOverlay.is-artwork-only .museum-artwork-frame--clip figcaption { display: none; }
@media (max-width: 900px) {
  #workModalOverlay .museum-artwork-frame--clip video,
  .museum-stage--portrait .museum-artwork-frame--clip video { height: auto; max-height: 44svh; }
}
@media (max-width: 480px) {
  #workModalOverlay .museum-artwork-frame--clip video,
  .museum-stage--portrait .museum-artwork-frame--clip video { max-height: 38svh; }
}
@media (max-width: 600px) {
  #workModalOverlay.is-artwork-only .museum-artwork-frame--clip video { max-height: calc(100dvh - 196px); }
}

/* Case cards on the works page, 2026-11-01: the picture fills the card's height instead of setting it, so a tall
   poster (the vertical video works) no longer stretches the card and its inquiry button; the button keeps its own
   height at the foot of the text. */
.work-card--case .work-thumb img {
  position: absolute;
  inset: 0;
}
.work-card--case .work-direct-inquiry { align-self: end; }

/* Exhibit caption, 2026-11-02: the words beside a work read like a museum plaque, centered on one axis.
   The tiffany category sits between two short rules, the title splits into its name in gold and its subtitle
   in silver, and a small gold diamond parts the heading from the story. Sentences start on their own line and wrap between phrases. */
#workModalOverlay .museum-panel-scroll { text-align: center; }
#workModalOverlay .museum-panel .work-tag {
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: 'Chakra Petch', 'Noto Sans JP', sans-serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .24em;
}
#workModalOverlay .museum-panel .work-tag::before,
#workModalOverlay .museum-panel .work-tag::after {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 247, 232, .75));
}
#workModalOverlay .museum-panel .work-tag::after { background: linear-gradient(90deg, rgba(120, 247, 232, .75), transparent); }
#workModalOverlay .museum-panel h2 {
  max-width: none;
  margin-inline: auto;
  font-family: 'Chakra Petch', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
}
#workModalOverlay .museum-panel h2 .museum-title-sub {
  display: block;
  margin-top: 12px;
  color: rgba(232, 240, 239, .9);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: max(1rem, .4em);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .2em;
}
#workModalOverlay .museum-panel h2 .museum-title-sub::before,
#workModalOverlay .museum-panel h2 .museum-title-sub::after {
  content: "—";
  margin: 0 .5em;
  color: rgba(233, 210, 154, .7);
  letter-spacing: 0;
}
#workModalOverlay .museum-panel .modal-artist {
  margin-top: 18px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: .7rem;
  letter-spacing: .2em;
}
#workModalOverlay .museum-description {
  position: relative;
  max-width: 30em;
  margin: 30px auto 0;
  padding-top: 30px;
  font-size: 1rem;
  line-height: 1.95;
  white-space: pre-line;
  text-wrap: pretty;
}
#workModalOverlay .museum-description::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(233, 210, 154, .8);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 10px rgba(233, 210, 154, .35);
}
#workModalOverlay .museum-details > div { padding: 20px 0 22px; }
#workModalOverlay .museum-details dt {
  margin-bottom: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .76rem;
  letter-spacing: .24em;
}
#workModalOverlay .museum-details dd {
  max-width: 28em;
  margin-inline: auto;
  font-size: .94rem;
  line-height: 1.8;
  text-wrap: pretty;
}
#workModalOverlay .museum-description,
#workModalOverlay .museum-details dd { word-break: auto-phrase; }
#workModalOverlay .museum-inquiry p { text-align: center; }

/* Work cards, 2026-11-03: a title with a subtitle sits on two lines, the subtitle quieter between gold dashes
   (as on the exhibit plaque). Summaries break at their pauses, and Japanese wraps between phrases. */
.work-title-sub {
  display: block;
  margin-top: 6px;
  color: rgba(232, 240, 239, .88);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .62em;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .18em;
}
.work-title-sub::before,
.work-title-sub::after {
  content: "—";
  margin: 0 .5em;
  color: rgba(233, 210, 154, .7);
  letter-spacing: 0;
}
.work-line { display: block; }
.featured-work-summary,
.work-case-summary { word-break: auto-phrase; }
/* 2026-11-16: the case cards read centred, like the rest of the site's cards; lines break at phrase boundaries and
   are balanced so no line ends in a lone word. */
.work-card--case .work-info { align-items: center; text-align: center; }
.work-card--case .work-info h3 { margin-inline: auto; text-wrap: balance; }
.work-card--case .work-case-summary { margin-inline: auto; text-wrap: balance; }
.work-card--case .work-case-summary .work-line + .work-line { margin-top: .35em; }
.work-card--case .work-case-meta { width: 100%; }
.work-card--case .work-case-meta dd { text-wrap: balance; word-break: auto-phrase; }
.work-card--case .work-card-action { align-self: center; }
.work-card--case .work-direct-inquiry { justify-self: center; }

/* Hero title ignition (2026-11-03, main.js initHeroTitle): the English lines are assembled from points of light on a
   short-lived canvas, hidden meanwhile (visibility, since the start-up slice holds their opacity); the rule under the
   Japanese line draws out from the centre; afterwards a glow breathes behind the neon and a spark runs along the rule
   now and then. */
#heroTitle.is-assembling > span[lang="en"] { visibility: hidden; }
.hero.hero--cinematic > canvas.hero-title-particles {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity .4s ease;
}
.hero.hero--cinematic > canvas.hero-title-particles.is-done { opacity: 0; }
html[data-motion="on"] #heroTitle.is-igniting .hero-title-ja::after {
  animation: hero-laser 620ms cubic-bezier(.2, .7, .2, 1) var(--hero-laser-delay, 1s) both;
}
@keyframes hero-laser {
  from { transform: scaleX(0); opacity: 0; }
  30% { opacity: 1; }
  to { transform: scaleX(1); opacity: 1; }
}
html[data-motion="on"] #heroTitle.is-lit .grad[data-text]::before {
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(67, 255, 236, .9), 0 0 34px rgba(67, 255, 236, .55);
  animation: hero-neon-breathe 4.8s ease-in-out infinite;
}
@keyframes hero-neon-breathe {
  0%, 100% { opacity: .12; }
  50% { opacity: .8; }
}
#heroTitle .hero-title-ja { --hero-line-w: 140px; position: relative; }
html[data-motion="on"] #heroTitle.is-lit .hero-title-ja::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 22px;
  height: 6px;
  margin-left: -11px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff, rgba(120, 247, 232, .9) 45%, rgba(120, 247, 232, 0));
  pointer-events: none;
  animation: hero-spark 5.5s ease-in-out 1.2s infinite both;
}
@keyframes hero-spark {
  0% { opacity: 0; transform: translateX(calc(var(--hero-line-w) * -.5)); }
  4% { opacity: 1; }
  24% { opacity: 1; }
  28%, 100% { opacity: 0; transform: translateX(calc(var(--hero-line-w) * .5)); }
}
@media (max-width: 600px) {
  #heroTitle .hero-title-ja { --hero-line-w: 112px; }
}
@media (min-width: 981px), (min-width: 601px) and (max-width: 980px) and (min-aspect-ratio: 1/1) {
  #heroTitle .hero-title-ja { --hero-line-w: 180px; }
}

/* Sound invitation under the arch, 2026-11-15 (neo-sound.js): phones only. A champagne-gold plate in the place of the
   Tokyo time readout, with five sound waves moving in tiffany and gold even before anything plays, the theme's name,
   and a quiet way out. A tap starts the theme. */
.sound-invite { display: none; }
@media (max-width: 600px) {
  .hero.hero--cinematic > .sound-invite {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: stretch;
    height: 44px;
    border: 1px solid rgba(233, 210, 154, .62);
    border-radius: 999px;
    background: rgba(3, 5, 6, .86);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 18px rgba(120, 247, 232, .14);
    translate: -50% -50%;
    white-space: nowrap;
    transition: opacity 320ms ease, scale 320ms ease, visibility 0s linear 0s;
  }
  .hero--cinematic[data-sound-invite] > .hero-sky-readout { visibility: hidden; }
  .hero-entry[data-entry="on"] .hero--cinematic > .sound-invite { opacity: var(--entry-title, 1); }
  .hero-entry[data-entry-active] .hero--cinematic > .sound-invite { pointer-events: none; }
  .hero--cinematic[data-boot] > .sound-invite { opacity: 0; visibility: hidden; }
  .hero.hero--cinematic > .sound-invite.is-leaving {
    opacity: 0;
    scale: .92;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 320ms ease, scale 320ms ease, visibility 0s linear 320ms;
  }
  html[data-motion="on"] .hero.hero--cinematic > .sound-invite:not(.is-leaving) {
    animation: sound-invite-call 2.6s ease-in-out infinite;
  }
}
@keyframes sound-invite-call {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 14px rgba(120, 247, 232, .1); }
  50% { box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 26px rgba(120, 247, 232, .32), 0 0 0 4px rgba(233, 210, 154, .08); }
}
.sound-invite button {
  display: inline-flex;
  align-items: center;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease, background-color 160ms ease, transform 120ms ease;
}
.sound-invite button:focus-visible { outline: 2px solid var(--neo-tiffany); outline-offset: 2px; }
.sound-invite button:active { transform: scale(.96); }
.sound-invite .sound-invite-play {
  gap: 10px;
  padding: 0 14px 0 16px;
  border-radius: 999px 0 0 999px;
}
.sound-invite .sound-invite-play:hover,
.sound-invite .sound-invite-play:focus-visible { background: rgba(233, 210, 154, .08); }
.sound-invite-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
}
.sound-invite-wave i {
  width: 2.5px;
  height: 100%;
  border-radius: 2px;
  background: var(--neo-tiffany);
  transform: scaleY(.35);
}
.sound-invite-wave i:nth-child(even) { background: var(--neo-gold-light); }
.sound-invite-wave i:nth-child(2) { transform: scaleY(.7); }
.sound-invite-wave i:nth-child(3) { transform: scaleY(1); }
.sound-invite-wave i:nth-child(4) { transform: scaleY(.6); }
html[data-motion="on"] .sound-invite-wave i { animation: neo-sound-bar 820ms ease-in-out infinite alternate; }
html[data-motion="on"] .sound-invite-wave i:nth-child(2) { animation-duration: 600ms; animation-delay: -240ms; }
html[data-motion="on"] .sound-invite-wave i:nth-child(3) { animation-duration: 980ms; animation-delay: -520ms; }
html[data-motion="on"] .sound-invite-wave i:nth-child(4) { animation-duration: 700ms; animation-delay: -120ms; }
html[data-motion="on"] .sound-invite-wave i:nth-child(5) { animation-duration: 900ms; animation-delay: -380ms; }
.sound-invite-text {
  display: grid;
  gap: 3px;
  text-align: left;
}
.sound-invite-text b {
  color: #fbecc4;
  font: 700 .84rem/1 'Noto Sans JP', sans-serif;
  letter-spacing: .08em;
}
.sound-invite-text small {
  color: rgba(120, 247, 232, .88);
  font: 600 .62rem/1 'Noto Sans JP', sans-serif;
  letter-spacing: .14em;
}
.sound-invite-text small span { font-family: 'Chakra Petch', sans-serif; letter-spacing: .2em; }
.sound-invite .sound-invite-quiet {
  padding: 0 16px 0 13px;
  border-left: 1px solid rgba(233, 210, 154, .28);
  border-radius: 0 999px 999px 0;
  color: rgba(214, 245, 241, .66);
  font: 600 .72rem/1 'Noto Sans JP', sans-serif;
  letter-spacing: .08em;
}
.sound-invite .sound-invite-quiet:hover,
.sound-invite .sound-invite-quiet:focus-visible { color: #f1fffd; }

/* After the tap the plate answers in place: NOW PLAYING over the theme's name, the waves still moving. */
.sound-invite-now {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px 0 18px;
}
html[data-motion="on"] .sound-invite-now { animation: sound-invite-now-in 360ms ease both; }
@keyframes sound-invite-now-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.sound-invite-now .sound-invite-text small {
  font: 700 .6rem/1 'Chakra Petch', sans-serif;
  letter-spacing: .26em;
}
.sound-invite-now .sound-invite-text b {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #e9d29a;
  font-size: .9rem;
  letter-spacing: .12em;
}
.sound-invite-now .sound-invite-text b span {
  color: #f4ead0;
  font: 700 .6rem/1 'Chakra Petch', sans-serif;
  letter-spacing: .16em;
}

