/* ============================================================
 * FCG integration layer — additions to tokens.css + main.css
 * (subpage shell, gnav overlay, page cover, tweaks panel,
 *  hamburger animation, etc — all dark-themed)
 * ============================================================ */

:root {
  /* Map FCG-style token names onto our dark theme */
  --bg:      var(--color-bg);
  --fg:      var(--color-fg);
  --dim:     rgba(255, 255, 255, 0.55);
  --dimmer:  rgba(255, 255, 255, 0.22);
  --hair:    rgba(255, 255, 255, 0.12);

  --ease-hover: var(--ease-out-circ);
  --ease-big:   var(--ease-inout-circ);
  --ease-cover: var(--ease-inout-cubic);

  --hdr-h: 72px;
  --ftr-h: 64px;

  --font-sans: var(--font-jp);
  --font-display-sans: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Sub-page body switch: vertical scroll allowed + normal type */
html.is-sub, html.is-sub body {
  overflow-x: hidden;
  overflow-y: auto;
}
html.is-sub body {
  background: var(--bg);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
}

.is-jp { font-family: var(--font-jp); letter-spacing: 0; }

/* ============================================================
 * Header logo + nav (FCG textmark)
 * ============================================================ */
.c-header__logo {
  display: inline-flex; align-items: baseline; gap: 8px;
  color: var(--color-fg);
}
.c-header__logo .mark-text {
  font-family: var(--font-display-sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .08em;
}
.c-header__logo small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--dim);
  text-transform: uppercase;
}
.c-header__nav {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--dim);
  text-transform: uppercase;
}
.c-header__nav a { transition: color .3s var(--ease-hover); }
.c-header__nav a:hover { color: var(--fg); }

/* ============================================================
 * Top mega-nav — 9 menu items as text (italic, bold)
 * Default: solid white. Hover: outlined → WebGL shows through.
 * ============================================================ */
.top_nav {
  /* override main.css defaults — we lay out with custom gaps */
  padding-left: 64px !important;
  margin-top: calc(50vh - 80px) !important;
}
.top_nav ul {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.menu-item {
  flex: 0 0 auto;
  position: relative;
  height: 160px !important;        /* override main.css's 112px */
  margin-right: 64px;
  display: flex;
  align-items: flex-end;
}
.menu-item:last-child { margin-right: 64px; }

.menu-item {
  /* Hidden by default — only the item closest to the lens center fades in,
     others fade out as they drift out of the viewport "lens window". */
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease-out-circ);
}
.menu-item.is-in-lens {
  opacity: 1;
  pointer-events: auto;
}

.menu-item__link {
  position: relative;
  display: inline-flex !important;
  align-items: flex-start;
  gap: 14px;
  height: auto !important;
  text-decoration: none;
  isolation: isolate;
  font-family: var(--font-display-sans);  /* Space Grotesk */
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-fg);
}
.menu-item__num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--dim);
  line-height: 1;
  margin-top: 12px;            /* align with capital height of label */
  font-variant-numeric: tabular-nums;
}
.menu-item__word {
  position: relative;
  display: inline-block;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.95;
  color: var(--color-fg);
  transition:
    color .35s var(--ease-out-circ),
    -webkit-text-stroke-width .35s var(--ease-out-circ);
}
.menu-item__jp {
  display: block;
  font-family: var(--font-jp);
  font-weight: 400;
  font-style: normal;
  /* relative to .menu-item__word so it stays proportional */
  font-size: 0.18em;
  letter-spacing: .08em;
  color: var(--dim);
  margin-top: 14px;
  text-transform: none;
}
.menu-item__link:hover .menu-item__word,
.menu-item__link.is-hover .menu-item__word,
.menu-item__link:focus-visible .menu-item__word {
  color: transparent;
  -webkit-text-stroke: 1px var(--color-fg);
  paint-order: stroke fill;
}
.menu-item__link:hover .menu-item__jp,
.menu-item__link.is-hover .menu-item__jp,
.menu-item__link:focus-visible .menu-item__jp {
  color: var(--fg);
}

/* ============================================================
 * Menu description panel — fixed left, content syncs with scroll
 * (Hidden until the user scrolls past the hero and a menu item
 * approaches the lens center.)
 * ============================================================ */
.menu-desc-panel {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: clamp(320px, 36vw, 540px);
  padding: 0 24px 0 95px;
  z-index: 11;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s var(--ease-hover);
  color: var(--fg);
}
.menu-desc-panel.is-visible { opacity: 1; }
.menu-desc-panel__crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.menu-desc-panel__crumb i {
  font-style: normal;
  color: var(--dimmer);
  font-size: 14px;
  line-height: 1;
}
.menu-desc-panel__label {
  font-family: var(--font-display-sans);
  font-weight: 700;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--fg);
}
.menu-desc-panel__body {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.75;
  letter-spacing: .02em;
  color: var(--fg);
  margin: 0 0 22px;
  max-width: 22em;
}
.menu-desc-panel__hint {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--dim);
}
@media (max-width: 900px) {
  .menu-desc-panel {
    top: auto;
    bottom: 96px;
    transform: none;
    width: 100%;
    padding: 0 24px;
  }
  .menu-desc-panel__label { font-size: 32px; }
  .menu-desc-panel__body  { font-size: 14px; }
}

/* When NOT hovering the nav at all, all items solid (default).
   When hovering ONE item, others stay solid — that's the default behavior. */

/* SP (vertical stack on phones) */
@media (max-width: 900px) {
  .top_nav {
    padding-left: 20px !important;
    /* Pushed down so the menu list starts well below the hero
       (and the lens). Bumped from 28.6vh to give the SCROLL hint
       and hero meta clear breathing room above. */
    margin-top: 70vh !important;
  }
  .top_nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 6vh;
  }
  .menu-item {
    height: auto !important;
    margin-right: 0;
  }
  .menu-item__word {
    font-size: 13vw;
    line-height: 1;
  }
}

/* ============================================================
 * Light theme — body.is-light flips the two-tone palette
 * ============================================================ */
body.is-light {
  --color-bg:         #ffffff;
  --color-fg:         #000000;
  --color-muted:      #555555;
  --color-divider:    #cccccc;
  --color-fg-40:      rgba(0, 0, 0, 0.4);
  --color-mark-faint: rgba(0, 0, 0, 0.06);

  --bg:     #ffffff;
  --fg:     #000000;
  --dim:    rgba(0, 0, 0, 0.55);
  --dimmer: rgba(0, 0, 0, 0.22);
  --hair:   rgba(0, 0, 0, 0.14);
}
body.is-light .c-loading { background: #fff; }
body.is-light .c-cover   { background: #fff; }
body.is-light .c-gnav    { background: #fff; }

/* ============================================================
 * GNAV back / close button (top-left, inside the overlay)
 * ============================================================ */
.c-gnav__back {
  position: absolute;
  top: 18px;
  left: 110px;            /* clear the 90px SNS column + its divider line */
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition:
    opacity .35s var(--ease-hover) .15s,
    transform .35s var(--ease-hover) .15s,
    background .25s var(--ease-hover),
    color .25s var(--ease-hover),
    border-color .25s var(--ease-hover);
}
body.is-gnav .c-gnav__back {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.c-gnav__back .arrow {
  font-size: 14px;
  line-height: 1;
  transition: transform .3s var(--ease-hover);
}
.c-gnav__back:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.c-gnav__back:hover .arrow { transform: translateX(-3px); }

/* ============================================================
 * Theme toggle button (fixed top-left)
 * ============================================================ */
/* Tab-style two-position switch in the bottom-right corner.
   Knob slides between DARK ↔ LIGHT; active label inverts color. */
.theme-toggle {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 1100;
  width: 132px;
  height: 38px;
  padding: 3px;
  border-radius: 22px;
  background: var(--bg);
  border: 1px solid var(--hair);
  display: inline-flex;
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
body.is-light .theme-toggle {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}
.theme-toggle__knob {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: var(--fg);
  border-radius: 20px;
  transition: transform .35s var(--ease-out-circ);
  z-index: 0;
}
body.is-light .theme-toggle__knob { transform: translateX(100%); }

.theme-toggle__opt {
  flex: 1;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--dim);
  transition: color .25s var(--ease-hover);
  user-select: none;
}
/* Active = dark when knob is on left, light when on right */
.theme-toggle__opt[data-mode="dark"]   { color: var(--bg); }
body.is-light .theme-toggle__opt[data-mode="dark"]   { color: var(--dim); }
.theme-toggle__opt[data-mode="light"]  { color: var(--dim); }
body.is-light .theme-toggle__opt[data-mode="light"]  { color: var(--bg); }

/* ============================================================
 * Loading overlay — FCG text logo (replaces PICS image)
 * ============================================================ */
.c-loading .loading-logo {
  font-family: "PICSConduit", "Saira Condensed", "Bebas Neue", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--fg);
  white-space: nowrap;
}

/* ============================================================
 * Header — align CONTACT / lang picks / Menu on a single line.
 * The whole cluster is shifted 3vw left of the viewport edge.
 * ============================================================ */
.c-header {
  /* Reserve room on the right for the hamburger pill + 3vw shift */
  padding-right: calc(3vw + 56px) !important;
  align-items: center !important;
}
.c-header__nav {
  align-items: center !important;
}
.c-header__nav a[data-i18n="header.contact"] {
  display: inline-flex;
  align-items: center;
  height: 28px;
  line-height: 1;
}

/* ============================================================
 * Hamburger pill — height = lang-pick height so they sit flush
 * ============================================================ */
.c-gnav__trigger {
  width: 44px; height: 28px;
  position: fixed;
  top: 14px;            /* matches lang-pick vertical centre */
  right: 3vw;           /* the whole right cluster nudged 3% left */
  z-index: 1100;
  border: 1px solid var(--hair);
  background: transparent;
  border-radius: 6px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.c-gnav__trigger .line {
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: var(--fg);
  transition: top 0.5s var(--ease-big),
              transform 0.5s var(--ease-big),
              opacity 0.25s var(--ease-hover);
}
.c-gnav__trigger .line:nth-child(1) { top: 10px; }
.c-gnav__trigger .line:nth-child(2) { top: 14px; }
.c-gnav__trigger .line:nth-child(3) { top: 18px; }
body.is-gnav .c-gnav__trigger .line:nth-child(1) { top: 14px; transform: rotate(45deg); }
body.is-gnav .c-gnav__trigger .line:nth-child(2) { opacity: 0; }
body.is-gnav .c-gnav__trigger .line:nth-child(3) { top: 14px; transform: rotate(-45deg); }

/* ============================================================
 * GNAV — full clip-path overlay
 * ============================================================ */
.c-gnav {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: grid;
  grid-template-columns: 90px 1fr;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-cover);
  /* Override previous opacity-based hide */
  visibility: visible;
  opacity: 1;
  width: 100%;
  height: 100%;
}
body.is-gnav .c-gnav {
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
}

.c-gnav__sns {
  border-right: 1px solid var(--hair);
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center;
  padding: 32px 0; gap: 18px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.c-gnav__sns a { transition: color 0.3s var(--ease-hover); }
.c-gnav__sns a:hover { color: var(--fg); }

.c-gnav__body {
  position: relative;
  padding: 120px 48px 48px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-content: start;
}

.c-gnav__col h6 {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 8px;
}
.c-gnav__col h6::before {
  content: ""; width: 14px; height: 1px;
  background: var(--dim);
}
.c-gnav__col ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
  margin: 0; padding: 0;
}
.c-gnav__col a {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: var(--font-display-sans);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  color: var(--fg);
}
.c-gnav__col a .num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em;
  color: var(--dim);
  font-weight: 400;
  text-transform: uppercase;
}
.c-gnav__col a .lbl { position: relative; display: inline-block; }
.c-gnav__col a .lbl .jp {
  font-family: var(--font-jp);
  font-weight: 400; font-size: .42em;
  display: block;
  letter-spacing: .05em;
  color: var(--dim);
  margin-top: 6px;
  text-transform: none;
}
.c-gnav__col a .lbl::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-hover);
}
.c-gnav__col a:hover .lbl::after { transform: scaleX(1); }

.c-gnav__addr {
  position: absolute;
  left: 48px; right: 48px; bottom: 48px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  color: var(--dim);
  text-transform: uppercase;
}
.c-gnav__addr b { color: var(--fg); font-weight: 500; display: block; margin-bottom: 6px; }
.c-gnav__addr .blk { max-width: 280px; }
.c-gnav__addr .blk + .blk { text-align: right; }
.c-gnav__addr .jp {
  font-family: var(--font-jp);
  letter-spacing: .02em;
  text-transform: none;
  display: block;
  margin-top: 4px;
}

/* ============================================================
 * Page cover — slide-up on leave, slide-out on entry
 * ============================================================ */
.c-cover {
  position: fixed; inset: 0;
  z-index: 9500;
  background: var(--bg);
  border-top: 1px solid var(--hair);
  transform: translateY(100%);
  pointer-events: none;
}
.c-cover.is-in  { transform: translateY(0%);    transition: transform .55s var(--ease-cover); }
.c-cover.is-out { transform: translateY(-100%); transition: transform .55s var(--ease-cover); }

/* ============================================================
 * Subpage shell (vertical scroll pages)
 * ============================================================ */
.p-sub {
  min-height: 100vh;
  padding-top: calc(var(--hdr-h) + 24px);
  padding-bottom: calc(var(--ftr-h) + 80px);
  position: relative;
  z-index: 5;
  background: var(--bg);
  color: var(--fg);
}
.p-sub__hero {
  padding: 80px 48px;
  border-bottom: 1px solid var(--hair);
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: end;
}
.p-sub__crumb {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.p-sub__crumb::before { content: ""; width: 24px; height: 1px; background: var(--dim); }
.p-sub__h {
  font-family: var(--font-display-sans);
  font-weight: 600;
  font-size: clamp(64px, 9vw, 140px);
  letter-spacing: -0.04em;
  line-height: .88;
  text-transform: uppercase;
}
.p-sub__h .jp {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: .02em;
  display: block;
  margin-top: 18px;
  color: var(--dim);
  text-transform: none;
}
.p-sub__count {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
  text-align: right;
  line-height: 1.4;
}
.p-sub__count b {
  color: var(--fg);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -.02em;
  display: block;
  font-family: var(--font-display-sans);
}

.p-sub__section {
  padding: 80px 48px;
  border-bottom: 1px solid var(--hair);
}
.p-sub__sectionHead {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 40px;
  display: flex; align-items: center; gap: 10px;
}
.p-sub__sectionHead::before { content: ""; width: 24px; height: 1px; background: var(--dim); }

/* About */
.p-about__lead {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: -0.005em;
  line-height: 1.6;
  max-width: 28ch;
  margin-bottom: 60px;
  color: var(--fg);
}
.p-about__lead em {
  font-style: normal;
  border-bottom: 1px solid var(--fg);
  padding-bottom: .05em;
}
.p-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 80px;
}
.p-about__grid p {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 2;
  color: var(--dim);
  max-width: 48ch;
}
.p-about__grid p strong { color: var(--fg); font-weight: 500; }

/* Company info table */
.p-company__info {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border-top: 1px solid var(--hair);
}
.p-company__info dt,
.p-company__info dd {
  padding: 24px 0;
  border-bottom: 1px solid var(--hair);
}
.p-company__info dt {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em;
  color: var(--dim);
  text-transform: uppercase;
  padding-right: 24px;
}
.p-company__info dd {
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--fg);
  line-height: 1.7;
}
.p-company__info dd small {
  color: var(--dim);
  font-size: 11px; letter-spacing: .14em;
  font-family: var(--font-mono);
  display: block;
  margin-top: 4px;
  text-transform: uppercase;
}

/* News list */
.p-news__filter {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.p-news__filter button {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .18em;
  color: var(--dim);
  text-transform: uppercase;
  border: 1px solid var(--hair);
  padding: 8px 14px;
  transition: color .3s var(--ease-hover),
              border-color .3s var(--ease-hover),
              background .3s var(--ease-hover);
}
.p-news__filter button:hover { color: var(--fg); border-color: var(--fg); }
.p-news__filter button.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.p-news__list { display: flex; flex-direction: column; }
.p-news__item {
  display: grid;
  grid-template-columns: 140px 160px 1fr 40px;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
  cursor: pointer;
  transition: background .3s var(--ease-hover),
              padding .3s var(--ease-hover);
}
.p-news__item:hover {
  background: rgba(255, 255, 255, 0.04);
  padding-left: 16px;
  padding-right: 16px;
}
.p-news__date {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .1em;
  color: var(--dim);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.p-news__cat {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .18em;
  color: var(--fg);
  text-transform: uppercase;
  border: 1px solid var(--hair);
  padding: 6px 10px;
  display: inline-block;
  justify-self: start;
}
.p-news__title {
  font-family: var(--font-jp);
  font-size: 18px; font-weight: 500;
  color: var(--fg);
  line-height: 1.5;
}
.p-news__arrow {
  display: flex; align-items: center; justify-content: flex-end;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 18px;
  transition: transform .3s var(--ease-hover),
              color .3s var(--ease-hover);
}
.p-news__item:hover .p-news__arrow { transform: translateX(8px); color: var(--fg); }

/* Member */
.p-member__feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: start;
}
.p-member__portrait {
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px),
    rgba(255,255,255,0.02);
  border: 1px solid var(--hair);
  position: relative;
  display: grid;
  place-items: center;
}
.p-member__portrait::after {
  content: "PORTRAIT · TBD";
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em;
  color: var(--dim);
}
.p-member__portrait--has-image::after { content: none; }
.p-member__portrait--has-image {
  background: none;
  padding: 0;
  overflow: hidden;
}
.p-member__portrait--has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-member__bio h3 {
  font-family: var(--font-display-sans);
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 8px;
  text-transform: none;       /* allow CJK glyphs to display normally */
}
.p-member__bio h3 small {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--dim);
  margin-top: 6px;
  text-transform: uppercase;
}
.p-member__bio .role {
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--dim);
  margin-bottom: 32px;
  letter-spacing: .04em;
}
.p-member__bio p {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 2;
  color: var(--dim);
  max-width: 48ch;
}
.p-member__bio p + p { margin-top: 18px; }
.p-member__bio strong { color: var(--fg); font-weight: 500; }
.p-member__roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
}
.p-member__card {
  border-top: 1px solid var(--hair);
  padding-top: 20px;
}
.p-member__card h4 {
  font-family: var(--font-display-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.p-member__card .role {
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 14px;
}
.p-member__card .tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em;
  color: var(--dim);
  text-transform: uppercase;
}
.p-member__card .tags span { border: 1px solid var(--hair); padding: 4px 8px; }

/* Recruit */
.p-recruit__lead {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.7;
  letter-spacing: -0.005em;
  max-width: 32ch;
  margin-bottom: 60px;
  color: var(--fg);
}
.p-recruit__list { display: flex; flex-direction: column; }
.p-recruit__item {
  padding: 36px 0;
  border-top: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: start;
  cursor: pointer;
  transition: padding .3s var(--ease-hover),
              background .3s var(--ease-hover);
}
.p-recruit__item:last-child { border-bottom: 1px solid var(--hair); }
.p-recruit__item:hover {
  background: rgba(255,255,255,0.04);
  padding-left: 16px;
  padding-right: 16px;
}
.p-recruit__num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
}
.p-recruit__role h3 {
  font-family: var(--font-display-sans);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.p-recruit__role .role-jp {
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--dim);
  margin-bottom: 18px;
  display: block;
}
.p-recruit__role p {
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.9;
  color: var(--dim);
  max-width: 54ch;
}
.p-recruit__role .tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em;
  color: var(--dim);
  text-transform: uppercase;
}
.p-recruit__role .tags span { border: 1px solid var(--hair); padding: 4px 8px; }
.p-recruit__apply {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em;
  color: var(--fg);
  text-transform: uppercase;
  border: 1px solid var(--hair);
  padding: 14px 22px;
  transition: background .3s var(--ease-hover),
              color .3s var(--ease-hover);
  white-space: nowrap;
}
.p-recruit__item:hover .p-recruit__apply {
  background: var(--fg);
  color: var(--bg);
}

/* Contact */
.p-contact__wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}
.p-contact__form { display: flex; flex-direction: column; gap: 32px; }
.p-contact__field { display: flex; flex-direction: column; gap: 8px; }
.p-contact__field label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em;
  color: var(--dim);
  text-transform: uppercase;
}
.p-contact__field label .req { color: var(--fg); margin-left: 6px; }
.p-contact__field input,
.p-contact__field textarea,
.p-contact__field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
  color: var(--fg);
  font-family: var(--font-jp);
  font-size: 16px;
  padding: 12px 0;
  outline: none;
  transition: border-color .3s var(--ease-hover);
}
.p-contact__field input:focus,
.p-contact__field textarea:focus,
.p-contact__field select:focus { border-color: var(--fg); }
.p-contact__field textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.p-contact__radio { display: flex; gap: 8px; flex-wrap: wrap; }
.p-contact__radio input { display: none; }
.p-contact__radio label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em;
  color: var(--dim);
  text-transform: uppercase;
  border: 1px solid var(--hair);
  padding: 10px 14px;
  cursor: pointer;
  transition: color .3s var(--ease-hover),
              background .3s var(--ease-hover),
              border-color .3s var(--ease-hover);
}
.p-contact__radio input:checked + label {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.p-contact__submit {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .22em;
  color: var(--fg);
  text-transform: uppercase;
  border: 1px solid var(--fg);
  padding: 18px 28px;
  align-self: flex-start;
  margin-top: 12px;
  background: transparent;
  transition: background .3s var(--ease-hover),
              color .3s var(--ease-hover);
}
.p-contact__submit:hover { background: var(--fg); color: var(--bg); }
.p-contact__submit::after { content: "→"; }
.p-contact__submit[disabled] {
  opacity: 0.55;
  cursor: progress;
}
.p-contact__status {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--dim);
  min-height: 1.5em;
}
.p-contact__status[data-kind="ok"]   { color: #7ad19f; }
.p-contact__status[data-kind="err"]  { color: #ff8b8b; }
.p-contact__status[data-kind="warn"] { color: #f3c46a; }
.p-contact__info {
  padding: 32px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.025);
  display: flex; flex-direction: column; gap: 28px;
}
.p-contact__info h4 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.p-contact__info .line {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
}
.p-contact__info .line small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================================
 * Tweaks panel (designer/developer tool — press T to toggle)
 * ============================================================ */
#tweaks {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 12000;
  width: 280px;
  background: #111;
  border: 1px solid var(--hair);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  padding: 14px;
  display: none;
}
#tweaks.is-open { display: block; }
#tweaks h3 {
  font-family: var(--font-display-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#tweaks h3 button {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  background: transparent;
  border: 0;
  cursor: pointer;
}
#tweaks section { margin-bottom: 16px; }
#tweaks section + section {
  border-top: 1px solid var(--hair);
  padding-top: 14px;
}
#tweaks label {
  display: block;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: .18em;
}
#tweaks .row { display: flex; gap: 6px; flex-wrap: wrap; }
#tweaks .chip {
  padding: 6px 10px;
  border: 1px solid var(--hair);
  color: var(--dim);
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .14em;
  transition: color .2s var(--ease-hover),
              border-color .2s var(--ease-hover);
}
#tweaks .chip:hover { color: var(--fg); }
#tweaks .chip.is-on {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}
#tweaks .slider { width: 100%; }

/* ============================================================
 * Mobile (SP) — @media (max-width: 900px)
 * ============================================================ */
@media (max-width: 900px) {
  :root { --hdr-h: 60px; --ftr-h: 56px; }

  /* Slightly bigger touch target on phones, but keep the flat pill shape */
  .c-gnav__trigger { width: 48px; height: 32px; top: 12px; right: 16px; }
  .c-gnav__trigger .line { left: 11px; right: 11px; }
  .c-gnav__trigger .line:nth-child(1) { top: 11px; }
  .c-gnav__trigger .line:nth-child(2) { top: 16px; }
  .c-gnav__trigger .line:nth-child(3) { top: 21px; }
  body.is-gnav .c-gnav__trigger .line:nth-child(1) { top: 16px; }
  body.is-gnav .c-gnav__trigger .line:nth-child(3) { top: 16px; }

  /* Mobile c-gnav: SNS as a horizontal row at the bottom (rotated vertical
     text in a 64px column collides with the menu labels on narrow phones). */
  .c-gnav {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .c-gnav__body {
    grid-row: 1;
    grid-template-columns: 1fr;
    padding: 88px 24px 24px 24px;
    gap: 28px;
  }
  .c-gnav__sns {
    grid-row: 2;
    border-right: 0;
    border-top: 1px solid var(--hair);
    flex-direction: row;
    writing-mode: horizontal-tb;
    justify-content: center;
    align-items: center;
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
    gap: 22px;
    font-size: 10px;
  }
  .c-gnav__addr {
    position: relative;
    left: auto; right: auto; bottom: auto;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--hair);
  }
  .c-gnav__addr .blk + .blk { text-align: left; }

  /* Back-pill sits at top-left of the gnav now that there's no SNS column */
  .c-gnav__back { left: 20px; top: 20px; }

  .p-sub__hero      { grid-template-columns: 1fr; padding: 48px 20px; }
  .p-sub__count     { text-align: left; }
  .p-sub__section   { padding: 48px 20px; }
  .p-about__grid    { grid-template-columns: 1fr; gap: 32px; }
  .p-company__info  { grid-template-columns: 1fr; }
  .p-company__info dt { padding-bottom: 4px; border-bottom: 0; }
  .p-news__item     { grid-template-columns: auto 1fr auto; gap: 14px; }
  .p-news__date     { grid-column: 1 / 2; font-size: 11px; }
  .p-news__cat      { grid-column: 2 / 3; justify-self: end; }
  .p-news__title    { grid-column: 1 / -1; font-size: 16px; }
  .p-news__arrow    { grid-column: 1 / -1; justify-self: end; font-size: 16px; }
  .p-member__feature { grid-template-columns: 1fr; gap: 32px; }
  .p-recruit__item  { grid-template-columns: 1fr; gap: 14px; }
  .p-recruit__apply { justify-self: start; }
  .p-contact__wrap  { grid-template-columns: 1fr; gap: 48px; }

  #tweaks { right: 12px; bottom: 70px; width: 240px; }
}

/* ============================================================
 * Lens background stage — opening intro (large → small)
 *
 *   1. .lens-stage fills the viewport, behind everything.
 *   2. .lens-stage__img is a square layer that paints lens.jpg
 *      (the aperture is centered in the source image).
 *      It starts at scale 3 — only the dark aperture fills the
 *      screen — then eases down to scale 1 to reveal the full lens.
 *   3. The WebGL canvas is clipped to a circle (.has-lens body class)
 *      so the procedural blob / future VideoTexture only shows
 *      *inside* the aperture, like looking through the glass.
 * ============================================================ */
.lens-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* No solid bg — let the page bg show around the round lens */
  background: transparent;
}
/* Lens geometry vars — overridden per breakpoint below.
   --lens-shift = horizontal offset from viewport center
   --lens-size  = side of the square lens-stage layer
   --canvas-px  = diameter of the circular video viewport         */
html.is-home {
  --lens-shift: 250px;
  --lens-size: 135vmin;
  --canvas-px: 72vmin;
}
.lens-stage__img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--lens-size);
  height: var(--lens-size);
  /* Default lens face = image A (AI Film Production / AI Workflow Consulting /
     Cross-border Production / Zoom Lens / 50-120mm). Hovering the
     Zoom-Lens / 50-120mm zones flips to image C (lens-services) via ::after. */
  background: url("../img/bg/lens-a.jpg") center / cover no-repeat;
  /* Crop the surrounding dark photo backdrop — keep the full lens
     visible (outer ring with text + inner aperture). Radius 36% clears
     image A's top "AI Film Production" text (peaks at r=0.342) while
     staying inside the metal body (no bg corners revealed). */
  clip-path: circle(36% at 50% 50%);
  transform: translate(calc(-50% + var(--lens-shift)), -50%) scale(3.2);
  opacity: 0;
}
/* Services-lens layer stacked on top via ::after — cross-fades in/out so
   the engraved-text swap is smooth rather than abrupt. Inherits clip-path
   and transform from the parent.
   1.5s easing matches the canvas-dim cycle so image + video transition
   visually together. */
.lens-stage__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../img/bg/lens-services.jpg") center / cover no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s var(--ease-out-circ);
}
body.is-lens-services .lens-stage__img::after { opacity: 1; }
body.is-loaded .lens-stage__img {
  animation: lensIntro 2.8s cubic-bezier(0.77, 0, 0.355, 1) 0.15s forwards;
}
@keyframes lensIntro {
  0%   { transform: translate(calc(-50% + var(--lens-shift)), -50%) scale(3.2); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--lens-shift)), -50%) scale(1.0); opacity: 1; }
}

/* Hide the legacy PICS chevron watermark in the corner */
.bg-mark { display: none !important; }

/* News list loading / empty states */
.p-news__loading,
.p-news__empty,
.p-article__loading {
  padding: 32px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--dim);
  text-align: center;
}

/* ============================================================
 * News article detail page
 * ============================================================ */
.p-article {
  padding: 96px 8vw 120px;
  max-width: 1280px;
  margin: 0 auto;
}
.p-article__title {
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 920px;
}
.p-article__cover-wrap { padding: 0; margin: 32px 0; }
.p-article__cover {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.02);
}
.p-article__body {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.95;
  color: var(--fg);
  max-width: 720px;
  letter-spacing: .02em;
}
.p-article__body p { margin-bottom: 16px; }
.p-article__back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 2px;
  transition: color .25s var(--ease-hover), border-color .25s var(--ease-hover);
}
.p-article__back:hover { color: var(--fg); border-color: var(--fg); }

@media (max-width: 900px) {
  .p-article { padding: 80px 24px 80px; }
  .p-article__title { font-size: 26px; }
  .p-article__body { font-size: 15px; line-height: 1.85; }
}

/* ============================================================
 * Language switcher pills (in c-header__nav)
 * ============================================================ */
.lang-pick {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  height: 28px;
  padding: 0 12px;
  cursor: pointer;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color .25s var(--ease-hover),
              border-color .25s var(--ease-hover),
              background .25s var(--ease-hover);
}
.lang-pick:hover { color: var(--fg); }
.lang-pick.is-active {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

/* ============================================================
 * Sound toggle — bottom-left pill with animated EQ bars + halo
 * ============================================================ */
.sound-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  height: 40px;
  border-radius: 22px;
  border: 1px solid var(--hair);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .25s var(--ease-hover), transform .25s var(--ease-hover);
}
.sound-toggle:hover { transform: translateY(-1px); border-color: var(--fg); }

/* Iridescent halo behind the icon — pings when sound is on */
.sound-toggle__halo {
  position: absolute;
  left: -8px; top: -8px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,160,210,.55), transparent 55%),
    radial-gradient(circle at 75% 60%, rgba(140,200,255,.55), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(180,255,180,.45), transparent 60%);
  filter: blur(6px);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .35s var(--ease-hover), transform .6s var(--ease-out-circ);
  z-index: -1;
  pointer-events: none;
}
.sound-toggle.is-on .sound-toggle__halo {
  opacity: 1;
  transform: scale(1);
  animation: soundHaloPulse 3.4s ease-in-out infinite;
}
@keyframes soundHaloPulse {
  0%, 100% { transform: scale(1);    filter: blur(6px) hue-rotate(0deg); }
  50%      { transform: scale(1.12); filter: blur(9px) hue-rotate(40deg); }
}

/* EQ bar icon (4 bars). Static when off, animated when on. */
.sound-toggle__icon,
.sound-prompt__icon {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: 26px;
  height: 26px;
  justify-content: center;
}
.sound-toggle__icon .bar,
.sound-prompt__icon .bar {
  width: 3px;
  height: 12px;
  background: var(--fg);
  border-radius: 2px;
  transform-origin: center;
}
.sound-toggle.is-on .sound-toggle__icon .bar {
  animation: soundEq .9s ease-in-out infinite;
}
.sound-toggle.is-on .sound-toggle__icon .bar:nth-child(2) { animation-delay: .15s; }
.sound-toggle.is-on .sound-toggle__icon .bar:nth-child(3) { animation-delay: .30s; }
.sound-toggle.is-on .sound-toggle__icon .bar:nth-child(4) { animation-delay: .45s; }
@keyframes soundEq {
  0%, 100% { transform: scaleY(.35); }
  50%      { transform: scaleY(1.0); }
}

.sound-toggle__label { white-space: nowrap; }

/* ============================================================
 * First-visit sound prompt
 * ============================================================ */
.sound-prompt {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: soundPromptIn .4s var(--ease-out-circ);
}
.sound-prompt[hidden] { display: none; }
body.is-light .sound-prompt { background: rgba(255,255,255,.82); }
@keyframes soundPromptIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.sound-prompt__card {
  width: min(440px, 92vw);
  padding: 38px 32px 30px;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.sound-prompt__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}
.sound-prompt__icon .bar { width: 4px; height: 22px; }
.sound-prompt__title {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 22px;
}
.sound-prompt__title span {
  display: inline-block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 13px;
}
.sound-prompt__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sound-prompt__btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 22px;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  cursor: pointer;
  transition: background .25s var(--ease-hover), color .25s var(--ease-hover), border-color .25s var(--ease-hover);
}
.sound-prompt__btn:hover {
  background: var(--fg); color: var(--bg); border-color: var(--fg);
}
.sound-prompt__btn.is-primary {
  background: var(--fg); color: var(--bg); border-color: var(--fg);
}
.sound-prompt__btn.is-primary:hover {
  background: transparent; color: var(--fg);
}

/* ============================================================
 * Lens click-area — circular hit zone on the inner viewport.
 * Sits over the canvas; on click opens the fullscreen player.
 * ============================================================ */
.lens-clickarea {
  position: fixed;
  top: 50%;
  left: 50%;
  width: var(--canvas-px);
  height: var(--canvas-px);
  transform: translate(calc(-50% + var(--lens-shift)), -50%);
  border-radius: 50%;
  background: transparent;
  border: 0;
  padding: 0;
  /* Must beat the hero panel (z-index 10) but stay below the hot-layer
     buttons (11) so the text-band hover zones still take priority. */
  z-index: 11;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s var(--ease-hover) 2.6s;
}
body.lens-ready .lens-clickarea { opacity: 1; pointer-events: auto; }
.lens-clickarea:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

/* ============================================================
 * Fullscreen video player overlay
 * ============================================================ */
.lens-player {
  position: fixed;
  inset: 0;
  z-index: 13000;        /* above everything (loading is 10000, gnav 9000) */
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lensPlayerIn .35s var(--ease-out-circ);
}
.lens-player[hidden] { display: none; }
@keyframes lensPlayerIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lens-player__video {
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}
.lens-player__close {
  position: absolute;
  top: 20px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--ease-hover), border-color .25s var(--ease-hover);
}
.lens-player__close:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ============================================================
 * Lens hotzones — invisible buttons over the engraved text.
 * Hovering one swaps the lens video to that service's clip.
 *   Geometry mirrors .lens-stage__img: 135vmin square layer,
 *   centered + shifted right (matches lens position).
 * ============================================================ */
.lens-hot-layer {
  position: fixed;
  top: 50%;
  left: 50%;
  width: var(--lens-size);
  height: var(--lens-size);
  transform: translate(calc(-50% + var(--lens-shift)), -50%);
  z-index: 11;
  pointer-events: none;          /* only the buttons inside catch events */
  opacity: 0;
  transition: opacity .9s var(--ease-hover) 2.6s;
}
body.lens-ready .lens-hot-layer { opacity: 1; }

.lens-hot {
  position: absolute;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  /* No visible hover background — we don't want a rectangular outline
     bleeding through the lens. Focus ring stays for keyboard a11y. */
}
.lens-hot:focus-visible { outline: 1px dashed var(--fg); outline-offset: 2px; }

/* Approximate positions over the engraved text on hiob315-lens.jpg
   (% are relative to the 135vmin lens-stage layer) */
.lens-hot--top   { top: 13%;  left: 33%; width: 34%; height: 9%;  }   /* "50-120 mm" / AI Film Production    */
.lens-hot--left  { top: 30%;  left: 13%; width: 9%;  height: 26%; }   /* "Zoom Lens" / AI Workflow Consulting */
.lens-hot--right { top: 28%;  left: 76%; width: 10%; height: 14%; }   /* "1:2.8"     / Commercial & Brand Films */
.lens-hot--rb    { top: 47%;  left: 76%; width: 9%;  height: 25%; }   /* "ø 64 mm"   / Vertical Short Drama   */
.lens-hot--bot   { top: 72%;  left: 28%; width: 44%; height: 9%;  }   /* "Made in Germany" / Cross-border (JP/CN) */

/* Hover service-name chip is suppressed — the engraved text on the
   services-lens already says the service name, so a floating pill is
   redundant and visually noisy. (DOM kept for backwards compat.) */
.lens-service { display: none !important; }

/* ============================================================
 * WebGL canvas as the lens "glass" — circular viewport
 *   Scoped to the homepage (html.is-home) so subpages keep
 *   their original fullscreen canvas.
 * ============================================================ */
html.is-home #canvasContainer {
  inset: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  /* Sit inside the lens's inner concentric circle (aperture area) —
     keeps the outer ring with "Zoom Lens / 50-120 mm / Made in Germany"
     text visible. Diameter follows --canvas-px (driven by breakpoints). */
  width: var(--canvas-px);
  height: var(--canvas-px);
  transform: translate(calc(-50% + var(--lens-shift)), -50%);
  border-radius: 50%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s var(--ease-hover) 2.5s; /* fade in after intro */
}
html.is-home #canvasContainer canvas {
  width: 100% !important;
  height: 100% !important;
}
html.is-home body.lens-ready #canvasContainer { opacity: 1; }

/* Light theme — softer lens (dim down so it pairs with white page bg) */
body.is-light .lens-stage__img { filter: brightness(0.78) contrast(0.95); }

/* ============================================================
 * Top hero (homepage first panel, inline with horizontal scroll)
 * ============================================================ */
.p-top__wrap { display: flex; align-items: stretch; }
.top_hero {
  position: relative;
  z-index: 10;
  flex: 0 0 100vw;
  height: 100%;
  padding: 0 8vw 0 95px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  color: var(--fg);
}
.top_hero__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--dim);
  text-transform: uppercase;
}
.top_hero__crumb i {
  font-style: normal;
  color: var(--dimmer);
  font-size: 14px;
  line-height: 1;
}

.top_hero__title {
  font-family: var(--font-display-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.05vw, 16px);
  letter-spacing: .08em;
  line-height: 1.3;
  margin: 0;
  color: var(--dim);
  max-width: 56ch;
  text-transform: none;
}

.top_hero__lead {
  font-family: var(--font-jp);
  font-weight: 500;
  /* Sized so two-line Japanese fits beside the lens at every viewport
     between 1500 and 1920. The lens at 1920×1080 sits ~717px from left,
     hero padding-left is 95px → safe text width ≤ 590px. */
  font-size: clamp(17px, 1.4vw, 24px);
  line-height: 1.65;
  letter-spacing: .02em;
  max-width: clamp(360px, 28vw, 540px);
  margin: 0;
  color: var(--fg);
  /* Prefer breaking at 、/・ (keep-all), but allow any-character break
     as a fallback so a single long Japanese clause can never bleed
     past the column and overlap the lens. */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.top_hero__lead .u {
  border-bottom: 1px solid var(--fg);
  padding-bottom: 1px;
}
.top_hero__lead .nb {
  /* Inline only — nowrap was forcing overflow into the lens at
     mid-size viewports. Japanese now wraps naturally at 、 thanks
     to `word-break: keep-all` on the parent. */
  display: inline;
}

.top_hero__rule {
  border: 0;
  border-top: 1px solid var(--hair);
  width: 120px;
  margin: 8px 0 4px;
}

.top_hero__meta {
  display: grid;
  grid-template-columns: 70px 1fr;
  row-gap: 6px;
  column-gap: 18px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  align-items: baseline;
}
.top_hero__meta dt {
  color: var(--dim);
  text-transform: uppercase;
}
.top_hero__meta dd {
  margin: 0;
  color: var(--fg);
  font-weight: 600;
}

.top_hero__hint {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--dim);
}
.top_hero__hint .jp {
  font-family: var(--font-jp);
  letter-spacing: .04em;
  font-size: 11px;
}

/* Keep the existing nav centered in the same flow */
.top_nav {
  flex: 0 0 auto;
}

/* ================================================================
 * Homepage responsive — single keyframes, geometry via CSS vars.
 *
 *   Math (per breakpoint): the lens visible diameter is
 *     lens-size × 0.676 (clip-path 33.8% × 2)
 *   Its left edge sits at (viewport.w/2 + --lens-shift − radius).
 *   The hero copy is anchored at padding-left 80–95px with
 *   text max-width capped per breakpoint so its right edge stays
 *   to the LEFT of the lens at every viewport between 900–1920px.
 * ================================================================ */

/* ---- 1180 < w ≤ 1440 ---- */
@media (max-width: 1440px) {
  html.is-home { --lens-shift: 180px; --lens-size: 115vmin; --canvas-px: 60vmin; }
  .top_hero        { padding: 0 6vw 0 80px; }
  .top_hero__lead  { font-size: clamp(15px, 1.4vw, 19px); max-width: 28vw; }
  .top_hero__title { font-size: 13px; }
}

/* ---- 1024 < w ≤ 1180 ---- */
@media (max-width: 1180px) {
  html.is-home { --lens-shift: 150px; --lens-size: 95vmin; --canvas-px: 50vmin; }
  .top_hero__lead {
    font-size: 15px;
    line-height: 1.65;
    max-width: 30vw;
  }
  .top_hero__lead .nb { white-space: normal; display: inline; }
  .top_hero__title { font-size: 11px; }
  .top_hero__meta  { font-size: 10px; }
}

/* ---- 900 < w ≤ 1024 ---- */
@media (max-width: 1024px) {
  html.is-home { --lens-shift: 130px; --lens-size: 75vmin; --canvas-px: 40vmin; }
  .top_hero        { padding: 0 4vw 0 64px; }
  .top_hero__lead  { font-size: 13px; line-height: 1.65; max-width: 34vw; }
  .top_hero__title { font-size: 10px; }
}

/* ---- Mobile ≤ 900 — stack vertically ---- */
@media (max-width: 900px) {
  /* === Lens: pushed hard right so only the LEFT half is visible.
     Bigger size so the cropped portion still feels substantial. === */
  html.is-home {
    --lens-shift: 50vw;
    --lens-size: 120vmin;
    --canvas-px: 56vmin;
  }

  /* === Switch to vertical scrolling on mobile: hero on the first
     screen, menu list below. Lens stays fixed in the viewport. === */
  .p-top {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
    width: 100vw;
  }
  .p-top__wrap {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: auto;
    min-height: 100vh;
  }

  /* === Hero: text strictly on the left half of viewport === */
  .top_hero {
    flex: none;
    width: 100%;
    height: 100vh;
    padding: 92px 20px 24px;
    justify-content: center;
    gap: 12px;
    /* Lift the centred content ~5vh + 33px so the title sits higher in
       the viewport and leaves breathing room above the menu. */
    transform: translateY(calc(-5vh - 33px));
  }
  .top_hero__crumb  { font-size: 9px; letter-spacing: .14em; }
  .top_hero__title  { font-size: 11px; line-height: 1.4; }
  .top_hero__lead {
    font-size: 15px;
    line-height: 1.6;
    max-width: 52vw;
    /* Force JP/CN to break at every character if needed — keep-all left
       the long opening clause on one line, bleeding into the lens. */
    word-break: break-all;
    overflow-wrap: anywhere;
    line-break: anywhere;
  }
  .top_hero__lead .nb { white-space: normal; display: inline; }
  .top_hero__rule   { width: 80px; }
  .top_hero__meta   {
    grid-template-columns: 56px 1fr;
    font-size: 9.5px;
    max-width: 52vw;
  }
  /* "Scroll right to view menu" hint is meaningless on the
     mobile vertical layout — hide it entirely on phone. */
  .top_hero__hint   { display: none; }

  /* === Vertical menu list below the hero ===
     70vh breathing room so the menu starts well below the SCROLL
     hint at the bottom of the hero. */
  .top_nav {
    margin-top: 70vh !important;
    padding: 40px 24px 120px;
    flex: none;
  }
  .top_nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 60vw;   /* left side only — lens stays on the right half */
  }
  .menu-item {
    /* Desktop "only one in lens" gating doesn't apply on mobile; show all */
    opacity: 1 !important;
    pointer-events: auto !important;
    height: auto;
    flex: none;
  }
  .menu-item__link {
    display: flex !important;
    align-items: baseline;
    gap: 10px;
    font-size: 38px;
    line-height: 1;
    padding: 10px 0;
  }
  .menu-item__num  { font-size: 10px; opacity: .6; }
  .menu-item__word { font-size: 38px; }
  .menu-item__jp   { font-size: 10px; margin-left: 8px; opacity: .55; }

  /* Hide the horizontal-scroll progress bar — not meaningful in
     vertical layout. The c-gnav hamburger is the canonical nav. */
  .scroll_ui      { display: none; }
  /* Description panel is irrelevant on mobile — !important so the
     older mobile override at line ~235 (which only sets position) can't
     accidentally bring it back. */
  .menu-desc-panel { display: none !important; }

  /* When the user scrolls past the hero, fade the fixed lens out so
     it doesn't sit on top of the menu list. */
  .lens-stage,
  html.is-home #canvasContainer,
  .lens-hot-layer,
  .lens-clickarea {
    transition: opacity .35s var(--ease-hover);
  }
  body.is-past-hero .lens-stage      { opacity: .18; pointer-events: none; }
  body.is-past-hero #canvasContainer { opacity: 0 !important; pointer-events: none !important; }
  body.is-past-hero .lens-hot-layer  { opacity: 0; pointer-events: none; }
  body.is-past-hero .lens-clickarea  { opacity: 0; pointer-events: none; }

  /* === Header: collapse the tagline, drop CONTACT (still reachable via
     hamburger). Smaller language pills so they fit beside the burger. === */
  .c-header__logo small { display: none; }
  .c-header__nav a[data-i18n="header.contact"] { display: none; }
  .c-header__nav        { gap: 4px; }
  .lang-pick            { font-size: 9px; padding: 0 8px; height: 26px; letter-spacing: .16em; }
  .c-header             { padding-right: calc(3vw + 64px) !important; }

  /* === Sound + Theme toggles: smaller so they don't crowd the lens.
         Positions mirror the desktop swap (sound = right, theme = left). === */
  .sound-toggle {
    bottom: 14px;
    right: 14px;
    left: auto;
    height: 32px;
    padding: 5px 12px 5px 8px;
    font-size: 9px;
    gap: 8px;
  }
  .sound-toggle__icon { width: 22px; height: 22px; }
  .sound-toggle__icon .bar { height: 10px; }
  .sound-toggle__halo { width: 48px; height: 48px; }

  .theme-toggle {
    bottom: 14px;
    left: 14px;
    right: auto;
    width: 110px;
    height: 34px;
  }
  .theme-toggle__opt { font-size: 9px; letter-spacing: .18em; }

  .lens-service { display: none !important; }
}
