/* LX engine base stylesheet — one fluid design for every screen (no device switching).
   Sites override the tokens in :root from their own site.css.                        */

@view-transition { navigation: auto; }

:root {
  --bg: #07070a; --bg2: #0e0e13; --bg3: #16161d;
  --ink: #ece8e1; --ink2: #a7a39c; --ink3: #6f6c68;
  --line: rgb(255 255 255 / .12); --line2: rgb(255 255 255 / .22);
  --accent: #c9b98f; --accent2: #f3ead4; --glow: rgb(201 185 143 / .35);
  --font-display: "Cormorant Garamond", "Shippori Mincho", serif;
  --font-body: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --font-jp: "Shippori Mincho", "Noto Serif JP", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* fluid scale: 360px → 1600px viewport */
  --s-2: clamp(.72rem, .69rem + .12vw, .8rem);
  --s-1: clamp(.82rem, .79rem + .15vw, .92rem);
  --s0:  clamp(.95rem, .9rem + .22vw, 1.08rem);
  --s1:  clamp(1.12rem, 1.02rem + .45vw, 1.45rem);
  --s2:  clamp(1.35rem, 1.15rem + .9vw, 2.1rem);
  --s3:  clamp(1.7rem, 1.3rem + 1.8vw, 3.2rem);
  --s4:  clamp(2.2rem, 1.5rem + 3.2vw, 5rem);
  --s5:  clamp(2.8rem, 1.6rem + 5.5vw, 8rem);

  --gutter: clamp(16px, 4.5vw, 64px);
  --wrap: 1320px;
  --space: clamp(64px, 9vw, 160px);
  --radius: 14px;
  --head-h: clamp(60px, 5vw + 36px, 88px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 300 var(--s0)/1.8 var(--font-body); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; min-height: 100dvh;
}
:lang(ja) body, body:lang(ja) { line-height: 1.95; letter-spacing: .04em; font-feature-settings: "palt" 0; }
img, svg, video, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; text-wrap: balance; }
.lx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lx-skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.lx-skip:focus { top: 12px; }

/* ───────── layout primitives ───────── */
.lx-wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.lx-narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.lx-section { padding-block: var(--space); position: relative; }
.lx-section + .lx-section { padding-top: 0; }
.lx-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line2), transparent); border: 0; margin: 0; }
.lx-stack > * + * { margin-top: var(--gap, 1.2rem); }
.lx-cols { display: grid; gap: clamp(28px, 4vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.lx-grid { display: grid; gap: clamp(14px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr)); }

/* ───────── type ───────── */
.lx-eyebrow { font: 400 var(--s-2)/1.4 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--ink2); margin: 0 0 1.4em; display: flex; align-items: center; gap: .9em; }
.lx-eyebrow::before { content: ""; width: 2.2em; height: 1px; background: var(--accent); opacity: .8; }
.lx-h1 { font: 300 var(--s5)/1.02 var(--font-display); letter-spacing: -.01em; }
.lx-h2 { font: 300 var(--s4)/1.08 var(--font-display); }
.lx-h3 { font: 400 var(--s2)/1.25 var(--font-display); }
:lang(ja) .lx-h1, :lang(ja) .lx-h2, :lang(ja) .lx-h3 { font-family: var(--font-jp); letter-spacing: .06em; line-height: 1.35; }
:lang(ja) .lx-h1 { font-size: calc(var(--s5) * .72); }
:lang(ja) .lx-h2 { font-size: calc(var(--s4) * .72); }
.lx-lead { font: 300 var(--s1)/1.7 var(--font-body); color: var(--ink); max-width: 46ch; }
:lang(ja) .lx-lead { max-width: 34em; }
.lx-muted { color: var(--ink2); }
.lx-accent { color: var(--accent); }
.lx-italic { font-family: var(--font-display); font-style: italic; }
.lx-mono { font-family: var(--font-mono); font-size: .86em; letter-spacing: 0; }
.lx-prose { max-width: 68ch; }
:lang(ja) .lx-prose { max-width: 38em; }
.lx-prose a { color: var(--accent2); border-bottom: 1px solid var(--line2); }
.lx-prose a:hover { border-color: var(--accent); }

/* ───────── header ───────── */
.lx-head {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h);
  container-type: inline-size; transition: background .5s var(--ease), backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.lx-head.is-scrolled, .lx-head.is-solid { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.lx-head-in { height: 100%; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 40px); padding-inline: var(--gutter); }
.lx-brand { display: flex; align-items: center; gap: .75em; margin-right: auto; min-width: 0; }
.lx-brand img, .lx-brand svg { height: calc(var(--head-h) * .5); width: auto; }
.lx-brand-name { font: 400 clamp(15px, 1.2vw + 10px, 21px)/1 var(--font-display); letter-spacing: .32em; white-space: nowrap; }
.lx-brand-sub { display: block; font: 400 9px/1 var(--font-body); letter-spacing: .3em; color: var(--ink2); margin-top: 6px; text-transform: uppercase; }
.lx-nav { display: flex; gap: clamp(14px, 2vw, 34px); font: 400 var(--s-2)/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
:lang(ja) .lx-nav { letter-spacing: .14em; text-transform: none; }
.lx-nav a { position: relative; padding-block: 10px; color: var(--ink2); transition: color .3s; white-space: nowrap; }
.lx-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.lx-nav a:hover, .lx-nav a[aria-current] { color: var(--ink); }
.lx-nav a:hover::after, .lx-nav a[aria-current]::after { transform: scaleX(1); }
.lx-lang { display: inline-flex; gap: .45em; align-items: center; font: 400 11px/1 var(--font-body); letter-spacing: .14em; border: 1px solid var(--line2); border-radius: 99px; padding: 8px 13px; white-space: nowrap; transition: border-color .3s, background .3s; }
.lx-lang:hover { border-color: var(--accent); background: rgb(255 255 255 / .04); }
.lx-lang-cur { color: var(--accent); font-weight: 500; }
.lx-lang-sep { opacity: .4; }
.lx-menu-btn { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.lx-menu-btn span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.lx-menu-btn span:nth-child(1) { top: 17px; } .lx-menu-btn span:nth-child(2) { top: 26px; }
[data-menu="open"] .lx-menu-btn span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
[data-menu="open"] .lx-menu-btn span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@container (width < 980px) {
  .lx-head-in > .lx-nav { display: none; }
  .lx-menu-btn { display: block; }
}
.lx-menu {
  position: fixed; inset: 0; z-index: 45; background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
}
[data-menu="open"] .lx-menu { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.lx-menu nav { display: grid; gap: 4px; text-align: center; }
.lx-menu nav a { font: 300 var(--s3)/1.3 var(--font-display); padding: 6px 20px; color: var(--ink2); transform: translateY(12px); opacity: 0; transition: transform .6s var(--ease), opacity .6s, color .3s; }
:lang(ja) .lx-menu nav a { font-family: var(--font-jp); font-size: var(--s2); letter-spacing: .12em; }
[data-menu="open"] .lx-menu nav a { transform: none; opacity: 1; }
.lx-menu nav a:nth-child(2) { transition-delay: .04s; } .lx-menu nav a:nth-child(3) { transition-delay: .08s; }
.lx-menu nav a:nth-child(4) { transition-delay: .12s; } .lx-menu nav a:nth-child(5) { transition-delay: .16s; }
.lx-menu nav a:nth-child(6) { transition-delay: .2s; } .lx-menu nav a:nth-child(7) { transition-delay: .24s; }
.lx-menu nav a:hover, .lx-menu nav a[aria-current] { color: var(--ink); }
[data-menu="open"] body { overflow: hidden; }

/* ───────── hero (big background photo + optional GL light layer) ───────── */
.lx-hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.lx-hero-bg { position: absolute; inset: 0; z-index: -3; }
.lx-hero-bg .lx-pic, .lx-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.lx-hero-bg img { animation: lx-kenburns 26s var(--ease) both; transform-origin: var(--focus, 50% 40%); }
@keyframes lx-kenburns { from { transform: scale(1.12); filter: blur(6px) brightness(.4); } 12% { filter: none; } to { transform: scale(1); } }
.lx-hero canvas.lx-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; mix-blend-mode: screen; }
.lx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / .45) 0%, transparent 22%, transparent 48%, color-mix(in srgb, var(--bg) 70%, transparent) 78%, var(--bg) 100%); }
.lx-hero-in { padding-block: calc(var(--head-h) + 8vh) clamp(56px, 10vh, 120px); }
.lx-hero .lx-h1 { text-shadow: 0 2px 40px rgb(0 0 0 / .5); }
.lx-scrollcue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 1px; height: 56px; background: linear-gradient(var(--ink2), transparent); overflow: hidden; }
.lx-scrollcue::after { content: ""; position: absolute; inset: 0; background: var(--accent2); animation: lx-cue 2.4s var(--ease) infinite; }
@keyframes lx-cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ───────── link orbs (big round logo icons) ───────── */
.lx-orbs { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 3.2vw, 48px); padding: 0; margin: 0; list-style: none; }
.lx-orb { --c: var(--accent); display: grid; justify-items: center; gap: 14px; text-align: center; width: clamp(92px, 12vw, 148px); }
.lx-orb-disc {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, rgb(255 255 255 / .09), rgb(255 255 255 / .015) 60%), var(--bg2);
  border: 1px solid var(--line2); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .02), 0 10px 40px -18px rgb(0 0 0 / .9);
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
}
.lx-orb-disc::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 60%, var(--c) 78%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s; animation: lx-orbit 3.2s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes lx-orbit { to { --a: 360deg; } }
.lx-orb .lx-ico { width: 38%; height: 38%; color: var(--ink); transition: color .4s, transform .6s var(--ease); }
.lx-orb-label { font: 400 var(--s-2)/1.4 var(--font-body); letter-spacing: .18em; color: var(--ink2); text-transform: uppercase; transition: color .3s; }
.lx-orb-handle { display: block; font-size: 10px; letter-spacing: .06em; text-transform: none; color: var(--ink3); margin-top: 2px; overflow-wrap: anywhere; }
.lx-orb:hover .lx-orb-disc, .lx-orb:focus-visible .lx-orb-disc { transform: translateY(-6px) scale(1.04); border-color: transparent; box-shadow: 0 0 0 1px var(--c), 0 18px 60px -12px color-mix(in srgb, var(--c) 55%, transparent); }
.lx-orb:hover .lx-orb-disc::before, .lx-orb:focus-visible .lx-orb-disc::before { opacity: 1; }
.lx-orb:hover .lx-ico { color: var(--c); transform: scale(1.08); }
.lx-orb:hover .lx-orb-label { color: var(--ink); }
.lx-orb[data-brand="x"] { --c: #e7e9ea; } .lx-orb[data-brand="instagram"] { --c: #ff4f8b; }
.lx-orb[data-brand="facebook"] { --c: #3b8bff; } .lx-orb[data-brand="youtube"] { --c: #ff3b3b; }
.lx-orb[data-brand="line"] { --c: #06c755; } .lx-orb[data-brand="github"] { --c: #c9d1d9; }
.lx-orb[data-brand="mail"] { --c: var(--accent); } .lx-orb[data-brand="map"] { --c: #4dd0e1; } .lx-orb[data-brand="web"] { --c: var(--accent2); }

/* ───────── buttons, cards, lists ───────── */
.lx-btn { display: inline-flex; align-items: center; gap: .8em; padding: .95em 1.7em; border-radius: 99px; border: 1px solid var(--accent);
  color: var(--accent2); font: 400 var(--s-2)/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; position: relative; overflow: hidden; isolation: isolate; transition: color .4s, border-color .4s; }
:lang(ja) .lx-btn { letter-spacing: .14em; }
.lx-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); transition: transform .5s var(--ease); }
.lx-btn:hover { color: var(--bg); }
.lx-btn:hover::before { transform: none; }
.lx-btn::after { content: "→"; font-family: var(--font-body); letter-spacing: 0; transition: transform .4s var(--ease); }
.lx-btn:hover::after { transform: translateX(4px); }
.lx-btn.is-ghost { border-color: var(--line2); color: var(--ink); }
.lx-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.lx-card { position: relative; display: flex; flex-direction: column; gap: .7rem; padding: clamp(22px, 2.4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgb(255 255 255 / .035), rgb(255 255 255 / .005)); transition: border-color .4s, transform .6s var(--ease), background .4s; container-type: inline-size; }
a.lx-card:hover { border-color: var(--line2); transform: translateY(-3px); background: linear-gradient(160deg, rgb(255 255 255 / .06), rgb(255 255 255 / .01)); }
.lx-card .lx-num { font: 400 var(--s-1)/1 var(--font-display); color: var(--accent); letter-spacing: .2em; }
.lx-card h3 { font: 400 var(--s2)/1.2 var(--font-display); }
:lang(ja) .lx-card h3 { font-family: var(--font-jp); font-size: var(--s1); letter-spacing: .08em; }
.lx-card p { color: var(--ink2); margin: 0; font-size: var(--s-1); }
.lx-card .lx-meta { margin-top: auto; padding-top: .8rem; font-size: var(--s-2); letter-spacing: .12em; color: var(--ink3); display: flex; gap: 1em; flex-wrap: wrap; }
.lx-card .lx-pic { border-radius: calc(var(--radius) - 6px); overflow: hidden; margin: calc(-1 * clamp(10px, 1vw, 16px)) calc(-1 * clamp(10px, 1vw, 16px)) .4rem; }
.lx-card .lx-pic img { aspect-ratio: var(--ar, 4/3); object-fit: cover; width: 100%; }

.lx-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lx-list > li { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.lx-list .k { font-size: var(--s-2); letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); }
.lx-list .v { font: 400 var(--s1)/1.4 var(--font-display); }
:lang(ja) .lx-list .v { font-family: var(--font-jp); font-size: var(--s0); }
.lx-list .x { color: var(--ink3); font-size: var(--s-2); }
.lx-list a.v:hover { color: var(--accent2); }
@container (width < 560px) { .lx-list > li { grid-template-columns: 1fr; } }
.lx-listwrap { container-type: inline-size; }

.lx-figure { margin: 0; position: relative; }
.lx-figure figcaption { margin-top: .8rem; font-size: var(--s-2); letter-spacing: .1em; color: var(--ink3); }
.lx-frame { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -40px rgb(0 0 0 / .9); }

.lx-quote { font: 300 var(--s3)/1.35 var(--font-display); margin: 0; }
.lx-quote span { display: block; }
.lx-quote .is-last { margin-top: .6em; font-style: italic; color: var(--accent); }

/* ───────── reveal ───────── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ───────── gallery (CSS-only justified rows) ───────── */
.lx-gallery { container-type: inline-size; }
.lx-gal { --rh: clamp(150px, 26cqi, 360px); --gap: clamp(6px, 1cqi, 14px); display: flex; flex-wrap: wrap; gap: var(--gap); }
.lx-gal::after { content: ""; flex: 1e4 1 0; }
.lx-tile { position: relative; flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--rh)); aspect-ratio: var(--ar); max-height: calc(var(--rh) * 1.7);
  border-radius: 6px; overflow: hidden; background: var(--c, var(--bg2)); content-visibility: auto; contain-intrinsic-size: auto calc(var(--rh)); cursor: zoom-in; }
.lx-tile .lx-pic, .lx-tile img { width: 100%; height: 100%; object-fit: cover; }
.lx-tile img { transition: transform 1.2s var(--ease), filter .6s; }
.lx-tile:hover img { transform: scale(1.04); }
.lx-tile-cap { position: absolute; inset: auto 0 0 0; padding: 36px 14px 12px; background: linear-gradient(transparent, rgb(0 0 0 / .75)); font-size: var(--s-2); letter-spacing: .06em; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.lx-tile-cap b { display: block; font: 400 var(--s0)/1.3 var(--font-display); font-style: italic; letter-spacing: 0; }
.lx-tile:hover .lx-tile-cap, .lx-tile:focus-visible .lx-tile-cap { opacity: 1; transform: none; }
@media (hover: none) { .lx-tile-cap { opacity: 1; transform: none; } }
.lx-tile.is-new { animation: lx-in .8s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes lx-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@container (width < 520px) { .lx-gal { --rh: 42cqi; } }
.lx-gal-more { height: 1px; }
.lx-gal-status { text-align: center; color: var(--ink3); font-size: var(--s-2); letter-spacing: .2em; padding-top: 2rem; }

/* ───────── deep-zoom viewer ───────── */
.lx-viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.lx-viewer::backdrop { background: rgb(4 4 6 / .96); backdrop-filter: blur(10px); }
.lx-viewer[open] { display: block; animation: lx-fade .35s var(--ease); }
@keyframes lx-fade { from { opacity: 0; } }
.lx-viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.lx-viewer canvas.is-drag { cursor: grabbing; }
.lx-vbar { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 12px max(14px, env(safe-area-inset-left)); pointer-events: none; transition: opacity .4s; }
.lx-vbar.top { top: 0; background: linear-gradient(rgb(0 0 0 / .55), transparent); }
.lx-vbar.bottom { bottom: 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgb(0 0 0 / .6)); align-items: flex-end; }
.lx-vbar > * { pointer-events: auto; }
.lx-vbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(20 20 26 / .6); border: 1px solid var(--line2); backdrop-filter: blur(8px); transition: background .3s, border-color .3s; }
.lx-vbtn:hover { background: rgb(40 40 50 / .8); border-color: var(--accent); }
.lx-vbtn svg { width: 18px; height: 18px; }
.lx-vcount { font: 400 12px/1 var(--font-mono); color: var(--ink2); margin-right: auto; padding-left: 6px; }
.lx-vzoom { font: 400 12px/1 var(--font-mono); color: var(--ink2); min-width: 4.5em; text-align: right; }
.lx-vnav { position: absolute; top: 50%; translate: 0 -50%; }
.lx-vnav.prev { left: max(12px, env(safe-area-inset-left)); } .lx-vnav.next { right: max(12px, env(safe-area-inset-right)); }
.lx-vinfo { max-width: min(720px, 100%); margin-right: auto; }
.lx-vinfo h2 { font: 400 var(--s2)/1.2 var(--font-display); font-style: italic; }
:lang(ja) .lx-vinfo h2 { font-family: var(--font-jp); font-style: normal; font-size: var(--s1); }
.lx-vinfo p { margin: .3em 0 0; color: var(--ink2); font-size: var(--s-1); }
.lx-viewer.is-idle .lx-vbar, .lx-viewer.is-idle .lx-vnav { opacity: 0; }
.lx-vfly { position: fixed; z-index: 1; object-fit: cover; pointer-events: none; border-radius: 6px; }
.lx-vload { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%; border: 1px solid var(--line2); border-top-color: var(--accent); animation: lx-spin 1s linear infinite; opacity: 0; transition: opacity .3s; pointer-events: none; }
.lx-viewer.is-loading .lx-vload { opacity: 1; }
@keyframes lx-spin { to { transform: rotate(360deg); } }

/* ───────── video player ───────── */
lx-player, lx-youtube { display: block; position: relative; aspect-ratio: var(--ar, 16/9); background: #000; border-radius: var(--radius); overflow: hidden; container-type: inline-size; }
.lxp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lxp-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.lxp-big { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: clamp(64px, 12cqi, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgb(10 10 14 / .55); border: 1px solid rgb(255 255 255 / .5); backdrop-filter: blur(8px); transition: transform .5s var(--ease), background .3s, opacity .3s; }
.lxp-big:hover { transform: scale(1.08); background: var(--accent); }
.lxp-big svg { width: 34%; margin-left: 6%; }
.lxp-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 8px; background: linear-gradient(transparent, rgb(0 0 0 / .75)); display: grid; gap: 4px; transition: opacity .35s; }
.lxp-row { display: flex; align-items: center; gap: 2px; }
.lxp-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; flex: none; }
.lxp-btn:hover { background: rgb(255 255 255 / .12); }
.lxp-btn svg { width: 20px; height: 20px; }
.lxp-time { font: 400 12px/1 var(--font-mono); color: #ddd; padding: 0 8px; white-space: nowrap; }
.lxp-spacer { flex: 1; }
.lxp-seek { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.lxp-seek-track { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .2); overflow: hidden; transition: transform .2s; }
.lxp-seek:hover .lxp-seek-track { transform: scaleY(1.5); }
.lxp-buf, .lxp-prog { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.lxp-buf { background: rgb(255 255 255 / .3); } .lxp-prog { background: var(--accent); }
.lxp-tip { position: absolute; bottom: 22px; translate: -50% 0; padding: 4px 8px; border-radius: 6px; background: rgb(0 0 0 / .8); font: 400 11px/1 var(--font-mono); opacity: 0; pointer-events: none; transition: opacity .2s; }
.lxp-seek:hover .lxp-tip { opacity: 1; }
.lxp-vol { width: 0; overflow: hidden; transition: width .35s var(--ease); display: flex; align-items: center; }
.lxp-volwrap:hover .lxp-vol, .lxp-volwrap:focus-within .lxp-vol { width: 84px; }
.lxp-vol input { width: 76px; accent-color: var(--accent); }
.lxp-volwrap { display: flex; align-items: center; }
.lxp-menu { position: absolute; right: 10px; bottom: 64px; min-width: 200px; background: rgb(16 16 20 / .94); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; font-size: 13px; backdrop-filter: blur(10px); display: none; }
.lxp-menu.is-open { display: block; }
.lxp-menu h4 { font: 400 10px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); padding: 10px 10px 6px; }
.lxp-menu button { display: flex; width: 100%; justify-content: space-between; padding: 9px 10px; border-radius: 8px; text-align: left; }
.lxp-menu button:hover { background: rgb(255 255 255 / .08); }
.lxp-menu button[aria-checked="true"] { color: var(--accent); }
.lxp-menu button[aria-checked="true"]::after { content: "✓"; }
.lxp-badge { font: 500 9px/1 var(--font-body); background: var(--accent); color: var(--bg); padding: 2px 4px; border-radius: 3px; margin-left: 4px; vertical-align: 2px; }
.lxp-spin { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .2); border-top-color: #fff; animation: lx-spin .9s linear infinite; display: none; }
lx-player.is-waiting .lxp-spin { display: block; }
lx-player.is-playing .lxp-big, lx-player.is-started .lxp-poster { opacity: 0; pointer-events: none; }
lx-player.is-idle.is-playing .lxp-bar { opacity: 0; }
lx-player.is-idle.is-playing { cursor: none; }
lx-player:not(.is-started) .lxp-bar { opacity: 0; pointer-events: none; }
lx-player:fullscreen { border-radius: 0; }
lx-player .lxp-flash { position: absolute; top: 50%; translate: 0 -50%; width: 30%; height: 60%; display: grid; place-items: center; font: 400 13px/1 var(--font-mono); opacity: 0; pointer-events: none; }
lx-player .lxp-flash.l { left: 0; } lx-player .lxp-flash.r { right: 0; }
lx-player .lxp-flash.is-on { animation: lx-flash .6s; }
@keyframes lx-flash { 30% { opacity: 1; } }
@container (width < 480px) { .lxp-time .dur, .lxp-volwrap { display: none; } }
lx-youtube { cursor: pointer; }
lx-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
lx-youtube .lxy-title { position: absolute; left: 0; right: 0; top: 0; padding: 16px 18px 40px; background: linear-gradient(rgb(0 0 0 / .7), transparent); font: 400 var(--s0)/1.4 var(--font-display); }
lx-youtube .lxy-note { position: absolute; right: 12px; bottom: 10px; font-size: 10px; letter-spacing: .12em; color: rgb(255 255 255 / .6); }

/* ───────── map facade ───────── */
.lx-map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg2); border: 1px solid var(--line); }
.lx-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.6) brightness(.9); }
.lx-map button { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; width: 100%;
  background: radial-gradient(circle at 50% 50%, rgb(255 255 255 / .06), transparent 60%), repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px); }
.lx-map button .lx-ico { width: 44px; height: 44px; color: var(--accent); filter: drop-shadow(0 0 16px var(--glow)); }
.lx-map button span { font-size: var(--s-2); letter-spacing: .2em; color: var(--ink2); }

/* ───────── forms ───────── */
.lx-form { display: grid; gap: 18px; container-type: inline-size; }
.lx-form .row2 { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@container (width < 540px) { .lx-form .row2 { grid-template-columns: 1fr; } }
.lx-field { display: grid; gap: 8px; }
.lx-field label { font-size: var(--s-2); letter-spacing: .2em; color: var(--ink2); text-transform: uppercase; }
:lang(ja) .lx-field label { text-transform: none; letter-spacing: .12em; }
.lx-field input, .lx-field textarea, .lx-field select { width: 100%; font: inherit; color: var(--ink); background: rgb(255 255 255 / .03); border: 1px solid var(--line2); border-radius: 10px; padding: 14px 16px; transition: border-color .3s, background .3s; }
.lx-field textarea { min-height: 200px; resize: vertical; }
.lx-field input:focus, .lx-field textarea:focus { outline: none; border-color: var(--accent); background: rgb(255 255 255 / .05); }
.lx-field.is-bad input, .lx-field.is-bad textarea { border-color: #ff6b6b; }
.lx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lx-form-msg { min-height: 1.5em; font-size: var(--s-1); }
.lx-form-msg.ok { color: #7ee2a8; } .lx-form-msg.err { color: #ff8b8b; }
.lx-form button[type="submit"] { justify-self: start; }
.lx-form button[disabled] { opacity: .5; pointer-events: none; }

/* ───────── footer ───────── */
.lx-foot { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: var(--s-1); color: var(--ink2); container-type: inline-size; }
.lx-foot-grid { display: grid; gap: 36px; grid-template-columns: 2fr repeat(auto-fit, minmax(150px, 1fr)); }
@container (width < 760px) { .lx-foot-grid { grid-template-columns: 1fr 1fr; } .lx-foot-grid > :first-child { grid-column: 1 / -1; } }
.lx-foot h4 { font: 400 var(--s-2)/1 var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.lx-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lx-foot a:hover { color: var(--ink); }
.lx-foot-base { margin-top: clamp(40px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: var(--s-2); letter-spacing: .1em; color: var(--ink3); }

/* ───────── 404 ───────── */
.lx-404 { min-height: 80vh; display: grid; align-content: center; gap: 24px; padding-top: var(--head-h); }

/* ───────── motion & accessibility ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
@media (forced-colors: active) { .lx-orb-disc, .lx-card, .lx-btn { border: 1px solid CanvasText; } }
@media print { .lx-head, .lx-menu, .lx-hero canvas, .lx-scrollcue { display: none !important; } body { background: #fff; color: #000; } }

/* ───────── inner page heading ───────── */
.lx-pagehead { padding-top: calc(var(--head-h) + clamp(48px, 10vw, 140px)); padding-bottom: clamp(32px, 5vw, 72px); }
.lx-pagehead .lx-lead { margin-top: 1.4rem; }
.lx-notes { padding-left: 1.4em; color: var(--ink2); font-size: var(--s-1); }
.lx-notes li { margin-bottom: .6em; }
.lx-notes a { color: var(--accent2); }
.lx-fn a { color: var(--accent); font-size: .72em; padding: 0 .15em; }
.lx-list > li[hidden] { display: none; }
.lx-orbs-head { text-align: center; margin-bottom: clamp(28px, 4vw, 56px); }
.lx-orbs-head .lx-eyebrow { justify-content: center; }
.lx-orbs-head .lx-eyebrow::after { content: ""; width: 2.2em; height: 1px; background: var(--accent); opacity: .8; }
.lx-links { padding-top: clamp(56px, 7vw, 110px); }

/* ───────── timeline (press, events, history, career) ───────── */
.lx-tl { --x: clamp(18px, 3vw, 40px); list-style: none; margin: 0; padding: 0 0 0 calc(var(--x) + 22px); position: relative; container-type: inline-size; }
.lx-tl::before { content: ""; position: absolute; left: var(--x); top: 0; bottom: 0; width: 1px;
  background: linear-gradient(transparent, var(--accent) 6%, var(--line2) 50%, var(--accent) 94%, transparent); box-shadow: 0 0 12px var(--glow); }
.lx-tl-year { position: relative; margin: clamp(40px, 6vw, 88px) 0 clamp(18px, 2vw, 28px); }
.lx-tl-year:first-child { margin-top: 0; }
.lx-tl-year span { font: 300 var(--s4)/1 var(--font-display); letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1px var(--line2); }
.lx-tl-year::before { content: ""; position: absolute; left: calc(-22px - 7px); top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--glow); }
.lx-tl-item { position: relative; margin-bottom: clamp(26px, 3.4vw, 48px); }
.lx-tl-item::before { content: ""; position: absolute; left: calc(-22px - 3px); top: 1.1em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.lx-tl-when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.lx-tl-when time { font: 500 var(--s-1)/1 var(--font-mono); letter-spacing: .06em; color: var(--accent2); }
.lx-tl-type { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line2); color: var(--ink2); }
:lang(ja) .lx-tl-type { letter-spacing: .14em; }
.lx-tl-card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(18px, 2.6vw, 40px); align-items: start;
  padding: clamp(16px, 2vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgb(255 255 255 / .03), transparent 60%); }
@container (width < 620px) { .lx-tl-card { grid-template-columns: 1fr; } .lx-tl-fig { max-width: 420px; } }
.lx-tl-fig { margin: 0; position: relative; border-radius: 8px; overflow: hidden; background: var(--bg2); }
.lx-tl-fig img { width: 100%; height: auto; max-height: 420px; object-fit: contain; object-position: top center; transition: transform .8s var(--ease), filter .4s; }
.lx-tl-zoom { display: block; cursor: zoom-in; }
.lx-tl-zoom:hover img { transform: scale(1.03); }
.lx-tl-zoomhint { position: absolute; right: 8px; bottom: 8px; font-size: 10px; letter-spacing: .14em; padding: 5px 9px; border-radius: 99px; background: rgb(0 0 0 / .65); color: var(--ink); opacity: .85; }
.lx-tl-noimg { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1px dashed var(--line2); background: radial-gradient(circle, rgb(255 255 255 / .05), transparent 70%); }
.lx-tl-noimg .lx-ico { width: 30%; height: 30%; color: var(--ink3); }
.lx-tl-outlet { font-size: var(--s-2); letter-spacing: .18em; color: var(--ink3); margin: 0 0 .5em; text-transform: uppercase; }
:lang(ja) .lx-tl-outlet { letter-spacing: .1em; text-transform: none; }
.lx-tl-title { font: 400 var(--s2)/1.3 var(--font-display); margin-bottom: .7em; }
:lang(ja) .lx-tl-title { font-family: var(--font-jp); font-size: var(--s1); line-height: 1.55; letter-spacing: .04em; }
.lx-tl-sum { color: var(--ink2); font-size: var(--s-1); margin: 0; }
.lx-tl-note { color: var(--ink3); font-size: var(--s-2); margin: .8em 0 0; }
.lx-tl-links { list-style: none; margin: 1.1em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lx-tl-link { display: inline-block; font-size: var(--s-2); letter-spacing: .08em; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line2); transition: border-color .3s, background .3s, color .3s; }
.lx-tl-link:hover { border-color: var(--accent); color: var(--accent2); background: rgb(255 255 255 / .04); }
.lx-tl-link.is-buy { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.lx-tl-teaser-outlet { display: block; font: 300 var(--s-2)/1.5 var(--font-body); color: var(--ink3); margin-top: .3em; letter-spacing: .06em; }
.lx-tl.is-compact .lx-tl-card { grid-template-columns: 1fr; }
.lx-tl.is-text .lx-tl-card { display: block; }

/* career / history: text-only timeline rows */
.lx-cv { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line2); container-type: inline-size; }
.lx-cv li { position: relative; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 22px; padding: 14px 0 14px 26px; }
.lx-cv li::before { content: ""; position: absolute; left: -4px; top: 1.45em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.lx-cv .y { font: 500 var(--s-1)/1.6 var(--font-mono); color: var(--accent2); }
.lx-cv .t { color: var(--ink); }
.lx-cv .t small { display: block; color: var(--ink3); font-size: var(--s-2); margin-top: .2em; }
@container (width < 480px) { .lx-cv li { grid-template-columns: 1fr; } }

/* ───────── publications ───────── */
.lx-cv-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); position: sticky; top: calc(var(--head-h) + 8px); z-index: 5;
  padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); }
.lx-cv-toc a { font-size: var(--s-2); letter-spacing: .06em; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line2); display: inline-flex; gap: .6em; align-items: center; }
.lx-cv-toc a span { font-family: var(--font-mono); color: var(--accent); }
.lx-cv-toc a:hover { border-color: var(--accent); }
.lx-pubsec { margin-bottom: clamp(44px, 6vw, 88px); scroll-margin-top: calc(var(--head-h) + 80px); }
.lx-pubsec > .lx-h3 { margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.lx-pubsub { font: 500 var(--s-1)/1.4 var(--font-body); letter-spacing: .14em; color: var(--accent2); margin: 1.8rem 0 .6rem; text-transform: uppercase; }
:lang(ja) .lx-pubsub { text-transform: none; letter-spacing: .08em; }
.lx-pubs { list-style: none; margin: 0; padding: 0; container-type: inline-size; }
.lx-pubs li { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 4px 18px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: var(--s-1); line-height: 1.7; color: var(--ink2); }
.lx-pubs .y { font: 500 var(--s-2)/1.9 var(--font-mono); color: var(--ink3); }
.lx-pubs b { color: var(--ink); font-weight: 500; }
.lx-pubs a { color: var(--accent2); border-bottom: 1px solid var(--line2); word-break: break-all; }
.lx-pubs a:hover { border-color: var(--accent); }
@container (width < 460px) { .lx-pubs li { grid-template-columns: 1fr; } }
.lx-stats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.lx-stats > div { background: var(--bg); padding: clamp(18px, 2vw, 28px); }
.lx-stats b { display: block; font: 300 var(--s4)/1 var(--font-display); color: var(--ink); }
.lx-stats span { font-size: var(--s-2); letter-spacing: .14em; color: var(--ink3); text-transform: uppercase; }
:lang(ja) .lx-stats span { text-transform: none; }
.lx-brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:lang(ja) .lx-brand-sub { text-transform: none; letter-spacing: .16em; }

/* ───────── language offer (deep links in the other language) ───────── */
.lx-langoffer { position: fixed; z-index: 60; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 16px; border-radius: 99px; border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font: 400 13px/1 var(--font-body); letter-spacing: .06em; box-shadow: 0 12px 40px -16px rgb(0 0 0 / .8);
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.lx-langoffer.is-in { opacity: 1; transform: none; }
.lx-langoffer a { color: var(--accent2); padding: 8px 6px; }
.lx-langoffer button { width: 32px; height: 32px; border-radius: 50%; color: var(--ink2); font-size: 18px; }
.lx-langoffer button:hover { background: rgb(255 255 255 / .08); color: var(--ink); }
@media print { .lx-langoffer { display: none; } }
