/* ============================================================
   XY Owl Labs — xyowl.com
   Futuristic, math-inspired static site
   ============================================================ */

:root {
  --bg:            #141a17;
  --bg-soft:       #1a211d;
  --panel:         rgba(255, 255, 255, 0.028);
  --panel-strong:  rgba(255, 255, 255, 0.05);
  --line:          rgba(255, 255, 255, 0.09);
  --line-soft:     rgba(255, 255, 255, 0.055);

  --ink:           #f1f2ea;
  --ink-dim:       #aab4a4;
  --ink-faint:     #75816f;

  --sage:          #a3cfa0;
  --sky:          #8fb7d6;
  --amber:        #e9c07d;

  --grad:          linear-gradient(115deg, var(--sage), var(--sky) 55%, var(--amber));
  --glow-sage:     0 0 40px rgba(163, 207, 160, 0.22);

  --shell:         min(1180px, 88vw);
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Menlo", "Consolas", monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient aurora behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw;
  z-index: -3;
  background:
    radial-gradient(48vw 48vw at 12% 8%,  rgba(163, 207, 160, 0.10), transparent 62%),
    radial-gradient(52vw 52vw at 88% 32%, rgba(143, 183, 214, 0.11),  transparent 64%),
    radial-gradient(46vw 46vw at 40% 92%, rgba(233, 192, 125, 0.09), transparent 62%);
  filter: blur(28px);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.02); }
}

/* Fine grid overlay — the coordinate plane */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120vw 100vh at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120vw 100vh at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}

canvas#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

.mono {
  font-family: var(--mono);
  font-variant-ligatures: none;
  letter-spacing: 0.06em;
}

::selection { background: rgba(163, 207, 160, 0.28); color: #fff; }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.05);
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(163, 207, 160, 0.65);
  transition: width 0.08s linear;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px max(28px, 6vw);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease),
              border-color 0.5s var(--ease), padding 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(20, 26, 23, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line-soft);
  padding-top: 13px;
  padding-bottom: 13px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}
.nav__mark {
  width: 30px; height: 30px;
  color: var(--amber);
  filter: drop-shadow(0 0 9px rgba(233, 192, 125, 0.4));
  transition: transform 0.6s var(--ease);
}
.nav__logo:hover .nav__mark { transform: rotate(-8deg) scale(1.08); }
.nav__word {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.nav__word em {
  font-style: normal;
  color: var(--ink-faint);
  margin-left: 4px;
  letter-spacing: 0.1em;
}

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  position: relative;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.35s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- shared layout ---------- */
.section { position: relative; padding: clamp(110px, 15vh, 190px) 0; }
.section__inner { width: var(--shell); margin: 0 auto; }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  margin: 0 0 22px;
}
.kicker__num {
  color: var(--sage);
  padding: 3px 9px;
  border: 1px solid rgba(163, 207, 160, 0.3);
  border-radius: 5px;
  background: rgba(163, 207, 160, 0.06);
}

.section__title {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 clamp(48px, 7vh, 82px);
  background: linear-gradient(180deg, #ffffff 30%, #b7c1ab);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  --btn-pad: 15px 30px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--btn-pad);
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn--primary {
  color: #16211a;
  background: var(--grad);
  background-size: 200% 200%;
  box-shadow: 0 8px 32px rgba(143, 183, 214, 0.26);
  animation: shiftGrad 9s ease infinite;
}
@keyframes shiftGrad {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(163, 207, 160, 0.4);
}
.btn--ghost {
  color: var(--ink-dim);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: rgba(163, 207, 160, 0.45);
  transform: translateY(-3px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px max(28px, 6vw) 90px;
}
.hero__inner { width: 100%; max-width: 940px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  margin: 0 0 34px;
}
.tick {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 10px var(--sage);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.8); }
}

.hero__title {
  margin: 0;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.hero__title .line { display: block; }
.hero__title .line:first-child { font-size: clamp(3.2rem, 13vw, 9.5rem); }

/* per-letter entrance */
.hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.65em) rotate(9deg) scale(0.92);
  filter: blur(8px);
  transition:
    opacity   0.85s var(--ease),
    transform 0.95s var(--ease),
    filter    0.85s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms + 0.25s);
}
body.is-live .hero__title .char {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.char--sp { width: 0.22em; }
.hero__title .line--sub {
  font-size: clamp(2.2rem, 8.6vw, 6.4rem);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.glyph {
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shiftGrad 7s ease infinite;
  filter: drop-shadow(0 0 26px rgba(163, 207, 160, 0.35));
}
.glyph--y { animation-delay: -3.5s; }

.hero__formula {
  font-size: clamp(13px, 1.6vw, 16px);
  color: var(--ink-faint);
  margin: 26px 0 0;
  letter-spacing: 0.1em;
}
.hero__formula var {
  font-style: italic;
  color: var(--sage);
}

.hero__tag {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--ink-dim);
  font-size: clamp(16px, 1.9vw, 19px);
}
.hero__tag strong { color: var(--ink); font-weight: 600; }

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 46px;
}

.hero__scrollcue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: color 0.4s var(--ease);
}
.hero__scrollcue:hover { color: var(--sage); }
.hero__scrollline {
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, var(--sage), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scrollline::after {
  content: "";
  position: absolute;
  top: -60%;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to bottom, transparent, var(--sage));
  animation: trickle 2.2s ease-in-out infinite;
}
@keyframes trickle {
  0%   { top: -60%; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ============================================================
   EQUATION RAILS — scroll-linked marquee dividers
   ============================================================ */
.rail {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.012);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.rail__track {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(14px, 1.8vw, 19px);
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  will-change: transform;
}
.rail__track .hi { color: var(--sage); opacity: 0.75; }
.rail__track .sep { color: rgba(255, 255, 255, 0.14); margin: 0 26px; }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.phil {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.phil__text p {
  color: var(--ink-dim);
  font-size: clamp(15.5px, 1.7vw, 17.5px);
  margin: 0 0 24px;
}
.phil__text strong {
  color: var(--ink);
  font-weight: 600;
}

.phil__figure { margin: 0; }
.axes {
  width: 100%;
  height: auto;
  overflow: visible;
}
.axes__grid  { stroke: rgba(255, 255, 255, 0.05); }
.axes__main  { stroke: rgba(255, 255, 255, 0.22); }
.axes__arrow { fill: rgba(255, 255, 255, 0.22); stroke: none; }
.axes__label { fill: var(--ink-faint); font-size: 13px; }
.axes__curve {
  stroke: url(#none);
  stroke: var(--sage);
  filter: drop-shadow(0 0 8px rgba(163, 207, 160, 0.55));
  stroke-linecap: round;
}
.axes__dot {
  fill: #fff;
  filter: drop-shadow(0 0 9px var(--sage));
  opacity: 0;
}
.phil__figure figcaption {
  text-align: center;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 18px;
}

/* values */
.values {
  list-style: none;
  margin: clamp(70px, 10vh, 120px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.values__item {
  position: relative;
  padding: 34px 30px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.55s var(--ease), border-color 0.55s var(--ease),
              background 0.55s var(--ease);
}
.values__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(163, 207, 160, 0.09), transparent 55%);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}
.values__item:hover {
  transform: translateY(-6px);
  border-color: rgba(163, 207, 160, 0.32);
  background: var(--panel-strong);
}
.values__item:hover::before { opacity: 1; }
.values__sym {
  display: block;
  font-size: 30px;
  color: var(--sage);
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(163, 207, 160, 0.5);
}
.values__item h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.values__item p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 14.8px;
  line-height: 1.68;
}

/* ============================================================
   APPS
   ============================================================ */
.section--apps { padding-bottom: clamp(120px, 16vh, 200px); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 26px;
}

.card {
  position: relative;
  padding: 38px 34px 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.card::after {
  /* sweeping sheen */
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 70%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.07), transparent);
  transition: left 0.9s var(--ease);
  pointer-events: none;
}
.card:hover::after { left: 130%; }
.card:hover {
  border-color: rgba(163, 207, 160, 0.34);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(163, 207, 160, 0.08);
}
.card__glow {
  position: absolute;
  top: -45%; right: -25%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(143, 183, 214, 0.2), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.card__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  position: relative;
}
.card__icon {
  flex: 0 0 auto;
  width: 62px; height: 62px;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), var(--glow-sage);
  transition: transform 0.6s var(--ease);
}
.card__icon svg { width: 100%; height: 100%; display: block; }
.card:hover .card__icon { transform: translateY(-3px) rotate(-4deg); }

.card__icon--soon {
  display: grid;
  place-items: center;
  font-size: 19px;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed var(--line);
  box-shadow: none;
}

.card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.015em;
}
.card__jp {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.card__desc {
  margin: 0 0 26px;
  color: var(--ink-dim);
  font-size: 15.4px;
  line-height: 1.72;
  position: relative;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12.5px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
.chip__ic { width: 15px; height: 15px; }
.chip--live {
  color: var(--sage);
  border-color: rgba(163, 207, 160, 0.32);
  background: rgba(163, 207, 160, 0.08);
}
.chip__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 9px var(--sage);
  animation: blink 2s ease-in-out infinite;
}
.chip--soon {
  color: var(--ink-faint);
  border-style: dashed;
}

.card--soon {
  background: linear-gradient(165deg, rgba(255,255,255,0.022), rgba(255,255,255,0.006));
  border-style: dashed;
}
.card__pulse {
  margin-top: 26px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-faint);
  font-size: 14px;
  opacity: 0.7;
}
.card__cursor { animation: caret 1.05s steps(1) infinite; color: var(--sage); }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  padding: clamp(100px, 13vh, 160px) 0 60px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(to bottom, transparent, rgba(163, 207, 160, 0.035));
  overflow: hidden;
}

/* self-drawing intersection mark */
.xdraw {
  position: absolute;
  top: 50%;
  right: max(2vw, calc((100vw - var(--shell)) / 2 - 60px));
  width: clamp(260px, 30vw, 480px);
  height: auto;
  transform: translateY(-58%);
  pointer-events: none;
  opacity: 0.85;
}
.xdraw__line {
  fill: none;
  stroke: rgba(163, 207, 160, 0.55);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 580;
  stroke-dashoffset: 580;
  transition: stroke-dashoffset 1.5s var(--ease) 0.25s;
  filter: drop-shadow(0 0 7px rgba(163, 207, 160, 0.4));
}
.xdraw__line--2 {
  stroke: rgba(143, 183, 214, 0.55);
  transition-delay: 0.55s;
  filter: drop-shadow(0 0 7px rgba(143, 183, 214, 0.4));
}
.xdraw.is-in .xdraw__line { stroke-dashoffset: 0; }
.xdraw__pt {
  fill: #fff;
  opacity: 0;
  filter: drop-shadow(0 0 10px var(--sage));
  transition: opacity 0.6s var(--ease) 1.7s;
}
.xdraw.is-in .xdraw__pt { opacity: 1; animation: blink 2.6s ease-in-out 2.4s infinite; }
.xdraw__label {
  fill: var(--ink-faint);
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.8s var(--ease) 1.9s;
}
.xdraw.is-in .xdraw__label { opacity: 0.8; }

/* the reveal system must not disturb xdraw's own transform/opacity */
.xdraw.reveal, .xdraw.reveal.is-in {
  transform: translateY(-58%);
  filter: none;
}
.xdraw.reveal { opacity: 0; }
.xdraw.reveal.is-in { opacity: 0.85; }

@media (max-width: 900px) {
  .xdraw { opacity: 0.3 !important; right: -8vw; }
}
.footer__title {
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
  background: linear-gradient(180deg, #ffffff 30%, #b7c1ab);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer__text {
  color: var(--ink-dim);
  max-width: 480px;
  margin: 0 0 34px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(70px, 10vh, 110px);
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(6px);
  transition:
    opacity   0.95s var(--ease),
    transform 0.95s var(--ease),
    filter    0.95s var(--ease);
  transition-delay: calc(var(--d, 0) * 105ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.reveal--left  { transform: translateX(-64px) translateY(18px) rotate(-1.2deg); }
.reveal--right { transform: translateX(64px)  translateY(18px) rotate(1.2deg); }

/* ============================================================
   BILINGUAL — Japanese companions to the English copy
   ============================================================ */
/* small inline JP tag after an English label (nav, buttons, chips, headings) */
.ja-inline {
  font-size: 0.8em;
  font-weight: 500;
  opacity: 0.75;
  margin-left: 0.55em;
  letter-spacing: 0.05em;
}
.nav__links .ja-inline { font-size: 11px; margin-left: 6px; opacity: 0.65; }
.btn .ja-inline { font-size: 0.86em; opacity: 0.85; }
.chip .ja-inline { margin-left: 0.35em; font-size: 0.92em; }

/* JP subtitle line inside big gradient titles */
.title-ja {
  display: block;
  margin-top: 16px;
  font-size: clamp(1rem, 2.3vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.65;
  color: var(--ink-dim);
  -webkit-text-stroke: 0;
}

/* JP paragraph shadowing an English one */
.ja-block {
  color: var(--ink-dim);
  opacity: 0.88;
  line-height: 1.95;
}
.hero__tag .ja-block {
  display: block;
  margin-top: 12px;
  font-size: 0.88em;
}
.phil__text p.ja-block { margin: -12px 0 30px; font-size: 15px; }
.values__item p.ja-block { margin-top: 9px; font-size: 13.6px; }
.card__desc.ja-block { margin: -16px 0 26px; font-size: 14.2px; }
.footer__text .ja-block { display: block; margin-top: 8px; font-size: 0.94em; }
.phil__figure figcaption .ja-inline { text-transform: none; letter-spacing: 0.1em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .phil { grid-template-columns: 1fr; }
  .phil__figure { max-width: 380px; margin: 10px auto 0; }
  .values { grid-template-columns: 1fr; }
  .nav__links { gap: 20px; }
  .nav__links a { font-size: 13px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  :root { --shell: 88vw; }
  .hero__scrollcue { display: none; }
  .nav { padding: 16px 22px; }
  .nav__word { font-size: 13px; }
  .nav__links a:first-child { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 30px 24px 28px; }
  .footer__bottom { flex-direction: column; }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  canvas#field { display: none; }
}
