/* Jyro Productions — calm, dark, one type family (Inter Tight + Noto Sans JP) */
:root {
  --bg: #020305;
  --bg-2: #07090E;
  --fg: #E9ECF2;
  --fg-2: rgba(233, 236, 242, .72);
  --muted: rgba(233, 236, 242, .46);
  --faint: rgba(233, 236, 242, .26);
  --line: rgba(233, 236, 242, .09);
  --blue: #3567F0;
  --blue-2: #8EA8F2;
  --gutter: clamp(20px, 4.4vw, 72px);
  --max: 1240px;
  --font: "Inter Tight", "Zen Kaku Gothic New", "Hiragino Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-weight: 500; font-size: 15px; line-height: 1.85; letter-spacing: .01em;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; font-feature-settings: "palt" 1;
}
html[lang="en"] body { letter-spacing: 0; line-height: 1.7; font-weight: 400; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--blue); color: #fff; }

/* type scale (one family, few sizes) */
.label {
  display: flex; align-items: center; gap: 14px; margin: 0 0 24px;
  font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--muted);
}
.label::before { content: ""; width: 18px; height: 1px; background: var(--blue-2); opacity: .7; }
.label__num { color: var(--faint); letter-spacing: .08em; }
.sec-title, .studio__statement, .contact__title, .jslide__title {
  margin: 0; font-weight: 700; letter-spacing: .01em; line-height: 1.35;
}
html[lang="en"] .sec-title, html[lang="en"] .studio__statement, html[lang="en"] .contact__title, html[lang="en"] .jslide__title { font-weight: 600; }
html[lang="en"] .sec-title, html[lang="en"] .studio__statement, html[lang="en"] .contact__title, html[lang="en"] .jslide__title { letter-spacing: -.025em; line-height: 1.12; }

/* ---------- loader / curtain / finish ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; }
.loader__center { width: 160px; display: grid; justify-items: center; gap: 22px; }
.loader__mark { width: 40px; height: 30px; fill: var(--fg); opacity: 0; }
.loader__bar { width: 100%; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--fg-2); transform: scaleX(0); transform-origin: left; }
.curtain { position: fixed; inset: 0; z-index: 180; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.curtain.is-on { opacity: 1; }
.grain { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(110% 85% at 60% 45%, transparent 40%, rgba(0,0,0,.7) 100%); }

/* ---------- 3D scene ---------- */
.scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 2; }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px var(--gutter);
  transition: background .5s;
}
.header.is-scrolled { background: linear-gradient(180deg, rgba(2,3,5,.85), rgba(2,3,5,0)); }
.header__logo { display: flex; align-items: center; gap: 14px; justify-self: start; }
.logo-mark { width: 36px; height: 27px; fill: var(--fg); }
.logo-word { width: 190px; height: 25px; fill: var(--fg); }
@media (max-width: 520px) { .logo-mark { width: 30px; height: 22px; } .logo-word { width: 150px; height: 20px; } }
.pill-nav {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(12, 15, 22, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pill-nav a { padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--fg-2); transition: color .3s, background .3s; white-space: nowrap; }
.pill-nav a:hover { color: var(--fg); background: rgba(233,236,242,.06); }
.header__right { display: flex; align-items: center; gap: 10px; justify-self: end; }

.lang { position: relative; display: flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(12,15,22,.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lang button { position: relative; z-index: 1; width: 36px; height: 28px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--muted); transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--bg); }
.lang__thumb { position: absolute; top: 3px; left: 3px; width: 36px; height: 28px; border-radius: 999px; background: var(--fg); transition: transform .45s var(--ease); }
html[lang="en"] .lang__thumb { transform: translateX(36px); }

.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .3s, color .3s;
}
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--light { background: var(--fg); color: var(--bg); }
.btn--light:hover { background: #fff; }
.btn--blue { background: var(--blue); color: #fff; height: 48px; padding: 0 24px; font-size: 14px; }
.btn--blue:hover { background: #4675f5; }
.link-line { font-size: 13px; color: var(--fg-2); padding-bottom: 4px; border-bottom: 1px solid var(--faint); transition: color .3s, border-color .3s; }
.link-line:hover { color: var(--fg); border-color: var(--fg-2); }

.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--fg); transition: transform .4s var(--ease); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 110; background: var(--bg-2); padding: 100px var(--gutter) 28px; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu__item { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 500; }
.menu__item .num { font-size: 11px; color: var(--faint); letter-spacing: .1em; }

@media (max-width: 980px) {
  .header { grid-template-columns: 1fr auto; }
  .pill-nav, .header__right .btn { display: none; }
  .menu-btn { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 120px var(--gutter) 90px; display: flex; align-items: center; }
.hero__inner { max-width: 960px; }
.hero__title { margin: 0; white-space: nowrap; font-size: clamp(22px, min(6.2vw, 4.6vw + 6px), 60px); font-weight: 700; line-height: 1.3; letter-spacing: 0; }
html[lang="en"] .hero__title { font-size: clamp(30px, 7.4vw, 76px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.hero__sub, .hero__lead { max-width: 560px; }
.hero__sub { margin: 18px 0 0; font-size: 13px; color: var(--blue-2); letter-spacing: .06em; }
.hero__lead { margin: 26px 0 0; max-width: 31em; color: var(--fg-2); font-size: 15px; }
.hero__ctas { display: flex; align-items: center; gap: 26px; margin-top: 36px; }
.hud { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: flex-start; font-size: 11px; letter-spacing: .12em; color: var(--faint); }
@media (max-width: 820px) { .hero { align-items: flex-end; padding-top: 46vh; } }

/* ---------- services (sticky) ---------- */
.journey { position: relative; height: 360vh; }
.journey__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 0 var(--gutter); }
.journey__panel { width: min(460px, 42vw); }
.journey__slides { position: relative; min-height: 250px; }
.jslide { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s; }
.jslide.is-active { opacity: 1; visibility: visible; transform: none; }
.jslide__title { font-size: clamp(28px, 3.2vw, 44px); }
.jslide__meta { margin: 14px 0 18px; font-size: 12px; letter-spacing: .06em; color: var(--blue-2); }
.jslide__body { margin: 0; color: var(--fg-2); }
.journey__dots { display: flex; gap: 8px; margin-top: 28px; }
.journey__dots i { width: 22px; height: 2px; background: var(--line); transition: background .5s; }
.journey__dots i.is-on { background: var(--fg-2); }
@media (max-width: 820px) {
  .journey__sticky { align-items: flex-end; padding-bottom: 72px; }
  .journey__panel { width: 100%; }
}

/* ---------- sections ---------- */
.work, .studio, .process, .contact { position: relative; background: var(--bg); padding: clamp(110px, 12vw, 170px) var(--gutter); }
.work > *, .studio > *, .process > *, .contact > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-title { font-size: clamp(26px, 2.8vw, 38px); }

/* work list */
.wlist { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.wrow { display: grid; grid-template-columns: 40px 48px 1fr 1.3fr 140px 24px; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .4s; }
a.wrow:hover { background: rgba(233,236,242,.025); }
.wrow__num { font-size: 12px; color: var(--faint); }
.wrow__icon { width: 44px; height: 44px; border-radius: 11px; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; background: var(--bg-2); font-size: 15px; font-weight: 500; color: var(--faint); overflow: hidden; }
.wrow__icon--img img { width: 100%; height: 100%; object-fit: cover; }
.wrow__name { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.wrow--soon .wrow__name { color: var(--muted); }
.wrow__cat { font-size: 13px; color: var(--muted); }
.wrow__status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.wrow__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.wrow__status i.live { background: #B5EF28; }
.wrow__go { justify-self: end; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
a.wrow:hover .wrow__go { transform: translateX(3px); color: var(--fg); }
@media (max-width: 900px) {
  .wrow { grid-template-columns: 44px 1fr auto; row-gap: 2px; }
  .wrow__num, .wrow__status { display: none; }
  .wrow__icon { grid-row: span 2; }
  .wrow__cat { grid-column: 2 / 4; grid-row: 2; }
}

/* studio */
.studio__grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; }
.studio__statement { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.65; }
html[lang="en"] .studio__statement { line-height: 1.25; }
.studio__body { margin: 32px 0 0; max-width: 36em; color: var(--fg-2); }
@media (max-width: 820px) { .studio__grid { grid-template-columns: 1fr; gap: 0; } }

/* process */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 28px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__num { font-size: 12px; color: var(--blue-2); letter-spacing: .08em; }
.step h3 { margin: 40px 0 10px; font-size: 18px; font-weight: 500; }
.step p { margin: 0; font-size: 14px; color: var(--fg-2); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step h3 { margin-top: 18px; }
}

/* contact */
.contact__title { font-size: clamp(28px, 3.6vw, 50px); }
.contact__row { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact__lead { margin: 0; color: var(--fg-2); max-width: 30em; }
.contact__info { display: grid; grid-template-columns: auto 1fr; gap: 8px 32px; margin-top: 36px; font-size: 13px; }
.contact__info dt { color: var(--faint); }
.contact__info dd { margin: 0; color: var(--fg-2); }

/* footer */
.footer { padding: 72px var(--gutter) 28px; border-top: 1px solid var(--line); background: var(--bg); }
.footer__word { width: min(380px, 70vw); height: auto; aspect-ratio: 410 / 54; fill: var(--fg); opacity: .9; margin-bottom: 56px; }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); }
.footer__row a:hover { color: var(--fg); }

/* reveal */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
