:root {
  --bg: #fbfbf8;
  --paper: #ffffff;
  --soft: #f3f3ef;
  --ink: #20201d;
  --muted: #73736d;
  --line: rgba(32, 32, 29, .15);
  --line-strong: rgba(32, 32, 29, .34);
  --pad: clamp(20px, 4vw, 72px);
  --header-h: 94px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  font-weight: 500;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  isolation: isolate;
}
body::before { content: ""; position: fixed; z-index: -3; inset: -25%; pointer-events: none; background:
  radial-gradient(ellipse at 8% 12%, rgba(105, 230, 232, .72) 0 12%, transparent 36%),
  radial-gradient(ellipse at 82% 18%, rgba(245, 170, 199, .68) 0 11%, transparent 38%),
  radial-gradient(ellipse at 36% 56%, rgba(157, 190, 247, .62) 0 15%, transparent 42%),
  radial-gradient(ellipse at 82% 72%, rgba(192, 151, 234, .56) 0 13%, transparent 40%),
  radial-gradient(ellipse at 25% 92%, rgba(255, 218, 177, .65) 0 12%, transparent 38%),
  linear-gradient(135deg, #eaf9f8 0%, #e8e9f6 38%, #f7e7ef 70%, #edf7f5 100%);
  filter: blur(52px) saturate(1.12); transform: translate3d(0, var(--flow-y, 0), 0) scale(1.05); animation: pageAurora 24s ease-in-out infinite alternate; }
body::after { content: ""; position: fixed; z-index: 0; left: var(--cursor-x, 50vw); top: var(--cursor-y, 50vh); width: 36vw; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,.34), rgba(112,229,234,.12) 32%, transparent 68%); translate: -50% -50%; filter: blur(18px); transition: left .22s var(--ease), top .22s var(--ease); mix-blend-mode: screen; }
main, .site-footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
::selection { background: var(--ink); color: var(--bg); }
.page-intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--ink); color: var(--bg); pointer-events: none; animation: introCurtain 1.15s 1.15s var(--ease) forwards; }
.page-intro > div { display: flex; align-items: baseline; gap: 18px; overflow: hidden; }
.page-intro span { font-size: clamp(72px, 13vw, 190px); font-weight: 800; line-height: .8; letter-spacing: -.08em; animation: introMark .9s .12s var(--ease) both; }
.page-intro sup { font-size: .38em; vertical-align: super; }
.page-intro p { margin: 0; font-size: clamp(12px, 1.5vw, 22px); font-weight: 700; letter-spacing: .24em; animation: introText .9s .28s var(--ease) both; }
.text-lines > span { display: block; }
.hero-lead, .statement-foot p, .principle p, .works-head > p, .case-note,
.services-head p, .service-row p, .process-steps p, .contact-details > p {
  word-break: auto-phrase;
}

.page-progress { position: fixed; inset: 0 0 auto; z-index: 300; height: 2px; pointer-events: none; }
.page-progress span { display: block; width: 100%; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left center; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 200; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); background: rgba(251, 251, 248, .88);
  border-bottom: 1px solid transparent; backdrop-filter: blur(18px);
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 251, 248, .97); }
.site-brand { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 700; letter-spacing: .14em; white-space: nowrap; }
.site-brand img { width: 46px; height: 46px; object-fit: contain; }
.site-brand sup { font-size: .55em; vertical-align: super; }
.desktop-nav { display: flex; align-items: center; gap: clamp(32px, 4vw, 66px); }
.desktop-nav a { display: flex; gap: 8px; align-items: baseline; font-size: 12px; letter-spacing: .14em; position: relative; }
.desktop-nav a span { font-size: 10px; color: var(--muted); }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; width: 38px; border: 0; background: none; padding: 8px 3px; color: var(--ink); cursor: pointer; }
.menu-toggle i { display: block; width: 32px; height: 2px; background: currentColor; margin: 0 0 6px auto; transition: transform .3s, opacity .3s; transform-origin: center; }
.menu-toggle i:last-child { margin-bottom: 0; }
.menu-toggle[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 190; background: var(--bg);
  padding: 45px var(--pad); opacity: 0; visibility: hidden; transform: translateY(-16px);
  transition: opacity .35s, transform .35s, visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { display: grid; grid-template-columns: 45px 1fr; align-items: baseline; border-bottom: 1px solid var(--line); padding: 22px 0; font-size: clamp(34px, 10vw, 70px); letter-spacing: -.035em; }
.mobile-menu nav span { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.mobile-menu > p { margin: 40px 0 0; font-size: 10px; letter-spacing: .16em; }

.section { padding: clamp(82px, 8.8vw, 136px) var(--pad); position: relative; }
.section-soft { background: rgba(243, 243, 239, .46); backdrop-filter: blur(14px); }
.section-label { display: flex; align-items: center; gap: 14px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.section-label span { min-width: 30px; padding-right: 12px; border-right: 1px solid var(--line-strong); }
.section-label p { margin: 0; }

.hero {
  min-height: 100svh; padding: calc(var(--header-h) + 30px) var(--pad) 34px;
  display: flex; flex-direction: column; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; overflow: hidden;
}
.hero::before { content: ""; position: absolute; z-index: -2; inset: -22%; background:
  radial-gradient(ellipse at 12% 18%, rgba(55, 225, 241, .82) 0 11%, rgba(55, 225, 241, 0) 38%),
  radial-gradient(ellipse at 42% 42%, rgba(39, 111, 222, .72) 0 15%, rgba(39, 111, 222, 0) 45%),
  radial-gradient(ellipse at 68% 70%, rgba(207, 62, 217, .58) 0 12%, rgba(207, 62, 217, 0) 42%),
  radial-gradient(ellipse at 92% 22%, rgba(255, 225, 185, .74) 0 12%, rgba(255, 225, 185, 0) 38%),
  linear-gradient(135deg, #edfdfc 0%, #dcecfb 38%, #eee4f3 68%, #fff6e9 100%);
  filter: blur(34px) saturate(1.16); transform: scale(1.08); animation: auroraDrift 15s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background:
  linear-gradient(110deg, rgba(251,251,248,.82) 0%, rgba(251,251,248,.2) 40%, rgba(251,251,248,.5) 100%),
  radial-gradient(circle at 50% 25%, rgba(255,255,255,.72), transparent 42%); mix-blend-mode: screen; }
.hero > * { z-index: 1; }
.hero-meta { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .15em; }
.hero-meta p { margin: 0; }
.hero-content { flex: 1; display: grid; grid-template-columns: 1fr; align-items: center; }
.hero-copy { position: relative; z-index: 1; max-width: 64vw; padding-top: 4vh; }
.hero-kicker { margin: 0 0 28px; font-size: 10px; letter-spacing: .17em; }
.hero h1 { margin: 0; max-width: 1240px; padding-bottom: .1em; font-size: clamp(64px, 8.8vw, 138px); line-height: 1.08; letter-spacing: -.065em; font-weight: 800; text-wrap: balance; }
.hero h1.text-lines > span { overflow: visible; transform-origin: left bottom; }
.hero h1.reveal:not(.is-visible) > span { transform: translateY(115%) rotate(2deg); }
.hero h1.reveal.is-visible > span { transform: none; transition: transform 1.05s var(--ease); }
.hero h1.reveal.is-visible > span:nth-child(2) { transition-delay: .1s; }
.hero h1.reveal.is-visible > span:nth-child(3) { transition-delay: .2s; }
.hero-lead { margin: 30px 0 0; max-width: 690px; font-size: clamp(13px, 1.15vw, 17px); line-height: 2.05; text-wrap: pretty; }
.hero-identity { position: absolute; left: 73%; top: 53%; width: min(30vw, 440px); translate: -50% -50%; transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) rotate(var(--hero-r, 0deg)); transition: transform .18s linear; }
.hero-identity img { width: 100%; }
.hero-identity.is-visible img { animation: logoFloat 4.8s 1.5s ease-in-out infinite; }
.hero-brand-name { margin-top: 22px; font-size: clamp(24px, 2.25vw, 36px); font-weight: 800; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.hero-brand-name sup { font-size: .48em; vertical-align: super; }
.hero-identity p { margin: 17px 0 0; border-top: 1px solid var(--line); padding-top: 12px; font-size: 8px; letter-spacing: .12em; }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; }
.hero-bottom > p { margin: 0; font-size: 9px; letter-spacing: .16em; }
.hero-bottom > p { animation: scrollPulse 1.8s ease-in-out infinite; }
.line-link { display: inline-flex; align-items: center; gap: 36px; border-bottom: 1px solid var(--ink); padding: 0 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.line-link span { font-size: 18px; transition: transform .3s var(--ease); }
.line-link:hover span { transform: translate(3px, 3px); }

.statement { min-height: 92vh; display: grid; grid-template-columns: .68fr 2.32fr; gap: 4vw; align-content: start; }
.statement { background: rgba(251,251,248,.38); backdrop-filter: blur(10px); }
.statement-main { grid-column: 2; margin-top: clamp(52px, 6.5vw, 92px); }
.statement-jp { margin: 0; max-width: 1220px; font-size: clamp(54px, 7.4vw, 118px); line-height: 1.14; letter-spacing: -.055em; font-weight: 800; text-wrap: balance; }
.statement-en { margin: 42px 0 0; font-size: clamp(24px, 2.8vw, 44px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; color: var(--muted); background: linear-gradient(100deg, #177e91, #616bc1 46%, #b24194); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.statement-foot { grid-column: 2; margin-top: 62px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6vw; border-top: 1px solid var(--line); padding-top: 24px; }
.statement-foot p { margin: 0; font-size: 13px; line-height: 2.05; text-wrap: pretty; }

.motion-marquee { overflow: hidden; border-block: 1px solid rgba(32,32,29,.24); background: rgba(255,255,255,.9); color: transparent; padding: 17px 0 20px; backdrop-filter: blur(14px); }
.motion-marquee > div { display: flex; align-items: center; width: max-content; animation: marqueeFlow 18s linear infinite; will-change: transform; }
.motion-marquee span, .motion-marquee i { background: linear-gradient(100deg, #079aaa 0%, #526dcc 43%, #bd3b99 76%, #e88254 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.motion-marquee span { padding: 0 2.6vw; font-size: clamp(34px, 5.6vw, 86px); font-weight: 800; line-height: .9; letter-spacing: -.055em; }
.motion-marquee i { font-style: normal; font-size: clamp(22px, 3vw, 50px); }
.motion-marquee--reverse { background: #171716; color: transparent; border-block-color: rgba(255,255,255,.3); }
.motion-marquee--reverse span, .motion-marquee--reverse i { background-image: linear-gradient(100deg, #55e1df 0%, #95a8ff 42%, #f36bbd 74%, #ffc078 100%); }
.motion-marquee--reverse > div { animation-direction: reverse; animation-duration: 22s; }

.principles-heading { display: grid; grid-template-columns: .9fr 1.3fr; gap: 5vw; margin: clamp(52px, 6vw, 82px) 0 62px; align-items: end; }
.principles-heading > p { margin: 0; font-size: clamp(42px, 5.8vw, 92px); line-height: .94; letter-spacing: -.05em; color: var(--muted); }
.principles-heading h2 { margin: 0; font-size: clamp(48px, 6.15vw, 98px); line-height: 1.14; letter-spacing: -.055em; font-weight: 800; text-wrap: balance; }
.principles-heading h2 > span { white-space: nowrap; }
.principles-list { border-bottom: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 64px .9fr 1.1fr 70px; align-items: center; min-height: 146px; border-top: 1px solid var(--line); transition: background .45s, color .45s, padding .5s var(--ease); }
.principle:hover { padding-inline: 22px; background: var(--ink); color: var(--bg); }
.principle--enrich { background: linear-gradient(100deg, rgba(94,213,219,.16), rgba(218,113,181,.18)); }
.principle > span { font-size: 10px; }
.principle h3 { margin: 0; font-size: clamp(44px, 5.2vw, 82px); line-height: 1; letter-spacing: -.045em; font-weight: 700; }
.principle p { margin: 0; max-width: 630px; font-size: 13px; line-height: 2; text-wrap: pretty; }
.principle i { justify-self: end; font-style: normal; color: var(--muted); font-size: 11px; letter-spacing: .08em; }

.works-head { display: grid; grid-template-columns: .85fr 1.45fr .7fr; align-items: end; gap: 4vw; margin-bottom: 86px; }
.works-head h2 { margin: 0; padding: .06em 0 .14em; font-size: clamp(94px, 14vw, 220px); line-height: .9; letter-spacing: -.085em; font-weight: 800; }
.works-head h2 { background: linear-gradient(100deg, #137b91 0%, #536bc3 46%, #af3b8e 80%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: saturate(.9); }
.works-head > p { margin: 0 0 2px; font-size: 12px; line-height: 2; text-wrap: pretty; }
.work-chapter { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; padding-top: 18px; border-top: 1px solid var(--ink); font-size: 9px; letter-spacing: .15em; }
.work-chapter span { color: var(--muted); }
.work-chapter p { margin: 0; }
.work-chapter--design { margin-top: 132px; border-top-color: var(--line-strong); }
.film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 88px 28px; }
.film-card--hero { grid-column: 1 / -1; width: 84%; }
.media-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #111; transform: perspective(1200px) translateY(var(--media-y, 0)) rotateX(var(--media-rx, 0deg)); transform-origin: center; transition: transform .2s linear, box-shadow .5s var(--ease); }
.media-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-card:hover .media-frame { box-shadow: 0 32px 70px rgba(0,0,0,.16); }
.video-controls { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 1px; }
.video-toggle, .sound-toggle { height: 42px; border: 0; background: rgba(251,251,248,.94); color: var(--ink); font-size: 9px; letter-spacing: .12em; cursor: pointer; }
.video-toggle { width: 70px; }
.sound-toggle { width: 92px; }
.video-toggle:focus-visible, .sound-toggle:focus-visible, .design-open:focus-visible, .lightbox button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.keystone-cover { display: flex; align-items: flex-end; justify-content: space-between; padding: clamp(20px, 4vw, 54px); background: #171716; color: #f7f7f2; }
.keystone-cover span { font-size: clamp(34px, 6vw, 90px); line-height: .9; letter-spacing: -.055em; }
.keystone-cover b { align-self: flex-start; font-size: 10px; font-weight: 400; letter-spacing: .14em; }
.design-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.design-card { transform-origin: center; transition: transform .75s var(--ease); }
.design-card:nth-child(1).is-visible { transform: rotate(-1.5deg) translateY(12px); }
.design-card:nth-child(2).is-visible { transform: rotate(1.3deg) translateY(-8px); }
.design-card:nth-child(3).is-visible { transform: rotate(-.8deg) translateY(18px); }
.design-card:hover { transform: rotate(0) translateY(-12px) scale(1.025) !important; z-index: 2; }
.design-card figure { margin: 0; overflow: hidden; background: rgba(236,236,230,.5); aspect-ratio: 4 / 5; border-radius: 22px; box-shadow: 0 24px 60px rgba(62,74,100,.12); }
.design-open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; text-align: left; }
.design-card figure { position: relative; }
.design-card figure span { position: absolute; right: 14px; bottom: 14px; padding: 11px 14px; background: rgba(251,251,248,.94); font-size: 9px; letter-spacing: .12em; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.design-open:hover figure span, .design-open:focus-visible figure span { opacity: 1; transform: none; }
.design-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.86); transition: transform .7s var(--ease), filter .4s; }
.design-card:hover img { transform: scale(1.065) rotate(.35deg); filter: saturate(1); }
.work-info { display: grid; grid-template-columns: 46px 1fr auto; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); margin-top: 15px; padding-top: 13px; }
.work-info span, .work-info p { font-size: 9px; letter-spacing: .1em; }
.work-info h3 { margin: 0; font-size: clamp(21px, 2vw, 31px); font-weight: 500; letter-spacing: -.025em; }
.work-info p { margin: 0; text-align: right; }
.case-note { max-width: 650px; margin: 13px 0 0 58px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.case-note p { margin: 0; }
.case-note p + p { margin-top: .75em; }

.services-head { display: grid; grid-template-columns: 1.52fr .48fr; gap: 5vw; align-items: end; margin: clamp(52px, 6vw, 82px) 0 58px; }
.services-head h2 { margin: 0; font-size: clamp(56px, 7.1vw, 112px); line-height: 1.08; letter-spacing: -.06em; font-weight: 800; text-wrap: balance; }
.services-head h2 { text-shadow: 0 16px 38px rgba(97,107,193,.13); }
.services-head p { margin: 0 0 7px; font-size: 13px; line-height: 2.05; text-wrap: pretty; }
.service-list { border-bottom: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 64px 1.15fr .85fr 36px; align-items: center; min-height: 134px; border-top: 1px solid var(--line); transition: background .35s, padding .35s var(--ease); }
.service-row:hover { background: var(--ink); color: var(--bg); padding: 0 22px; }
.service-row span { font-size: 10px; }
.service-row h3 { margin: 0; font-size: clamp(27px, 3.2vw, 50px); line-height: 1.1; letter-spacing: -.045em; font-weight: 700; }
.service-row div b { display: block; margin-top: 10px; font-size: 10px; line-height: 1.7; font-weight: 500; letter-spacing: .02em; }
.service-row p { margin: 0; font-size: 12px; line-height: 1.8; text-wrap: pretty; }
.service-row i { justify-self: end; font-style: normal; font-size: 22px; }

.process { min-height: 90vh; }
.process-content { display: grid; grid-template-columns: 1.22fr .78fr; gap: 6vw; margin-top: 62px; }
.process-en { margin: 0 0 34px; padding-bottom: .14em; font-size: clamp(66px, 8.8vw, 138px); line-height: .9; letter-spacing: -.065em; font-weight: 800; color: var(--muted); background: linear-gradient(120deg, #168a99, #6570ca 52%, #bb4d9c); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.process-copy h2 { margin: 0; font-size: clamp(42px, 4.9vw, 76px); line-height: 1.12; letter-spacing: -.055em; font-weight: 800; text-wrap: balance; }
.process-steps { list-style: none; margin: 0; padding: 0; border-bottom: 0; }
.process-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 9px 18px; border-top: 1px solid var(--line); padding: 26px 0; }
.process-steps li:last-child { border-bottom: 1px solid var(--line); }
.process-steps span { font-size: 9px; }
.process-steps strong { font-size: clamp(21px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.025em; }
.process-steps p { grid-column: 2; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.contact { background: linear-gradient(120deg, rgba(132,224,226,.46), rgba(214,177,231,.46) 54%, rgba(255,217,185,.52)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.contact-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 6vw; align-items: end; min-height: 50vh; }
.contact .eyebrow { margin: 0 0 30px; font-size: 10px; letter-spacing: .16em; }
.contact h2 { margin: 0; font-size: clamp(56px, 6.8vw, 108px); line-height: 1; letter-spacing: -.065em; font-weight: 800; text-wrap: balance; }
.contact-details { border-top: 1px solid var(--line); padding-top: 22px; }
.contact-details > p { margin: 0; font-size: 13px; line-height: 2.05; text-wrap: pretty; }
.contact-details > a { display: flex; justify-content: space-between; align-items: center; margin-top: 42px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; font-size: clamp(15px, 1.5vw, 22px); font-weight: 500; }
.contact-details > a span { font-size: 22px; }

.site-footer { min-height: 170px; padding: 34px var(--pad); display: flex; align-items: flex-end; justify-content: space-between; }
.site-footer > div { display: flex; gap: 42px; }
.site-footer p { margin: 0; font-size: 9px; letter-spacing: .12em; }

.enrich-note { max-width: 800px; margin: 52px 0 0 auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; line-height: 2; }
.enrich-note p { margin: 0; }
.enrich-note p + p { margin-top: 1em; }

.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(20,20,18,.78); backdrop-filter: blur(8px); }
.lightbox-dialog { position: relative; display: flex; flex-direction: column; width: min(1180px, 96vw); height: min(900px, 92vh); background: var(--bg); box-shadow: 0 20px 70px rgba(0,0,0,.2); }
.lightbox-dialog header { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.lightbox-dialog header p { margin: 0 0 5px; font-size: 8px; letter-spacing: .15em; }
.lightbox-dialog h2 { margin: 0; font-size: clamp(18px, 2vw, 28px); font-weight: 500; }
.lightbox-close { border: 0; background: none; padding: 10px; font-size: 10px; letter-spacing: .13em; cursor: pointer; }
.lightbox-close span { margin-left: 8px; font-size: 20px; vertical-align: -2px; }
.lightbox-body { flex: 1; min-height: 0; overflow: auto; padding: 24px; text-align: center; overscroll-behavior: contain; }
.lightbox-image { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(92vh - 150px); margin: 0 auto; object-fit: contain; }
.lightbox.is-long .lightbox-image { width: min(720px, 100%); max-height: none; }
.lightbox-nav { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 18px; }
.lightbox-nav button { border: 0; background: none; padding: 10px; font-size: 10px; letter-spacing: .12em; cursor: pointer; }
.lightbox-nav button:disabled { opacity: .25; cursor: default; }
.lightbox-nav span { min-width: 42px; font-size: 10px; letter-spacing: .12em; }

.reveal { opacity: 0; transform: translateY(58px) scale(.985); filter: blur(7px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.motion-title { opacity: 0; transform: translate3d(0, 82px, 0) scale(1.22) rotate(1.6deg); transform-origin: left 70%; filter: blur(15px); transition: opacity 1.15s var(--ease), transform 1.25s var(--ease), filter 1.1s var(--ease); will-change: opacity, transform, filter; }
.motion-title.is-visible { opacity: 1; transform: none; filter: none; }
.motion-title.text-lines > span { clip-path: inset(0 0 105% 0); transition: clip-path 1.05s var(--ease); }
.motion-title.text-lines.is-visible > span { clip-path: inset(-8% 0 -12% 0); }
.motion-title.text-lines.is-visible > span:nth-child(2) { transition-delay: .1s; }
.motion-title.text-lines.is-visible > span:nth-child(3) { transition-delay: .2s; }
.hero .motion-title { transition-delay: 1.05s; }
.hero .motion-title.text-lines.is-visible > span:nth-child(1) { transition-delay: 1.05s; }
.hero .motion-title.text-lines.is-visible > span:nth-child(2) { transition-delay: 1.17s; }
.hero .motion-title.text-lines.is-visible > span:nth-child(3) { transition-delay: 1.29s; }
.principles-list .reveal:nth-child(2), .service-list .reveal:nth-child(2), .process-steps .reveal:nth-child(2) { --reveal-delay: 90ms; }
.principles-list .reveal:nth-child(3), .service-list .reveal:nth-child(3), .process-steps .reveal:nth-child(3) { --reveal-delay: 180ms; }
.principles-list .reveal:nth-child(4), .service-list .reveal:nth-child(4), .process-steps .reveal:nth-child(4) { --reveal-delay: 270ms; }

@keyframes introMark { from { transform: translateY(120%) rotate(5deg); } to { transform: none; } }
@keyframes introText { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes introCurtain { to { transform: translateY(-102%); visibility: hidden; } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-13px) rotate(-1.5deg); } }
@keyframes scrollPulse { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(7px); } }
@keyframes marqueeFlow { to { transform: translateX(-50%); } }
@keyframes auroraDrift {
  0% { transform: scale(1.08) translate3d(-2%, -1%, 0) rotate(-1deg); filter: blur(34px) saturate(1.1); }
  45% { transform: scale(1.15) translate3d(3%, 2%, 0) rotate(2deg); filter: blur(42px) saturate(1.28); }
  100% { transform: scale(1.1) translate3d(-1%, 4%, 0) rotate(-2deg); filter: blur(37px) saturate(1.18); }
}
@keyframes pageAurora {
  0% { translate: -2% -1%; rotate: -1deg; }
  50% { translate: 3% 2%; rotate: 1.5deg; }
  100% { translate: -1% 4%; rotate: -1.2deg; }
}

@media (min-width: 981px) {
  .works-head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .works-head h2 { justify-self: center; padding-inline: .08em; }
}

@media (max-width: 980px) {
  :root { --header-h: 78px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-content { grid-template-columns: 1fr; align-content: center; }
  .hero-copy { padding-top: 9vh; }
  .hero-copy { max-width: 100%; }
  .hero-identity { position: static; justify-self: end; width: min(38vw, 300px); opacity: 1; margin-top: -5vh; transform: none; translate: none; }
  .statement { grid-template-columns: 1fr; }
  .statement-main, .statement-foot { grid-column: 1; }
  .principles-heading { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 54px 1fr 50px; padding: 25px 0; }
  .principle p { grid-column: 2; margin-top: 9px; }
  .principle i { grid-column: 3; grid-row: 1 / 3; }
  .works-head { grid-template-columns: 1fr; }
  .works-head h2 { font-size: 20vw; }
  .works-head > p { max-width: 520px; }
  .film-card--hero { width: 100%; }
  .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-head { grid-template-columns: 1fr; }
  .services-head p { max-width: 580px; }
  .service-row { grid-template-columns: 50px 1fr 34px; padding: 23px 0; }
  .service-row p { grid-column: 2; margin-top: 8px; }
  .service-row i { grid-column: 3; grid-row: 1 / 3; }
  .process-content { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; align-items: start; }
  .contact-details { max-width: 680px; }
}

@media (max-width: 680px) {
  :root { --pad: 14px; }
  .site-brand span { font-size: 10px; }
  .site-brand img { width: 36px; height: 36px; }
  .hero { min-height: 88svh; }
  .hero::before { inset: -12% -45%; animation-duration: 11s; filter: blur(25px) saturate(1.12); }
  .hero::after { background: linear-gradient(120deg, rgba(251,251,248,.76), rgba(251,251,248,.26) 55%, rgba(251,251,248,.55)); }
  .hero-meta p:last-child { display: none; }
  .hero-copy { padding-top: 7vh; }
  .hero h1 { padding-bottom: .14em; font-size: clamp(45px, 12vw, 60px); line-height: 1.1; letter-spacing: -.11em; font-weight: 800; }
  .hero-lead { max-width: 92%; font-size: 12px; line-height: 2; }
  .hero-content { gap: 18px; }
  .hero-identity { width: 52vw; margin-top: 0; }
  .hero-brand-name { font-size: 5vw; }
  .hero-identity p { font-size: 6px; }
  .hero-bottom > p { display: none; }
  .statement { min-height: auto; }
  .statement-jp { overflow: hidden; font-size: clamp(38px, 10.2vw, 51px); line-height: 1.08; font-weight: 800; }
  .statement-jp > span { width: auto; transform: none; }
  .statement-en { margin-top: 32px; font-size: clamp(27px, 7.1vw, 36px); line-height: 1.03; font-weight: 800; }
  .statement-foot { grid-template-columns: 1fr; gap: 22px; margin-top: 44px; }
  .statement-foot p { font-size: 12px; }
  .principles-heading > p { font-size: clamp(52px, 13.6vw, 68px); line-height: .92; }
  .principles-heading h2 { overflow: hidden; padding-bottom: .12em; font-size: clamp(30px, 8.45vw, 43px); line-height: 1.15; font-weight: 800; }
  .principles-heading h2 > span { width: auto; transform: none; }
  .principle { grid-template-columns: 40px 1fr 40px; }
  .principle h3 { font-size: 12vw; }
  .principle p { font-size: 12px; }
  .works-head h2 { padding-block: .08em .16em; font-size: clamp(100px, 26.5vw, 132px); line-height: .9; }
  .film-grid, .design-grid { grid-template-columns: 1fr; gap: 58px; }
  .design-card:nth-child(n).is-visible { transform: none; }
  .design-card:hover { transform: translateY(-6px) scale(1.01) !important; }
  .film-card--hero { grid-column: auto; }
  .work-chapter--design { margin-top: 90px; }
  .work-info { grid-template-columns: 34px 1fr; }
  .work-info p { grid-column: 2; text-align: left; }
  .case-note { margin-left: 46px; }
  .services-head h2 { overflow: hidden; font-size: clamp(33px, 9vw, 45px); line-height: 1.1; font-weight: 800; }
  .services-head h2 > span { width: auto; transform: none; }
  .services-head p { font-size: 12px; }
  .service-row { grid-template-columns: 38px 1fr 28px; }
  .service-row h3 { font-size: 8.2vw; }
  .service-row div b { font-size: 9px; }
  .service-row p { font-size: 11px; }
  .process-en { padding-bottom: .16em; font-size: clamp(75px, 19.7vw, 99px); line-height: .9; }
  .process-copy h2 { overflow: hidden; font-size: clamp(29px, 8vw, 40px); line-height: 1.12; letter-spacing: -.055em; font-weight: 800; }
  .process-copy h2 > span { width: auto; transform: none; }
  .contact-layout { min-height: auto; }
  .contact h2 { overflow: hidden; font-size: clamp(32px, 8.65vw, 44px); line-height: 1.1; font-weight: 800; }
  .contact h2 > span { width: auto; transform: none; }
  .statement-foot,
  .principles-list,
  .work-chapter,
  .service-list,
  .process-steps,
  .contact-details {
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
  }
  .principle,
  .service-row,
  .process-steps li {
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
  }
  .text-lines > span { overflow-wrap: normal; word-break: auto-phrase; }
  .contact-details > p { font-size: 12px; }
  .contact-details > a { font-size: 13px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 42px; }
  .site-footer > div { flex-direction: column; gap: 10px; }
  .video-controls { right: 10px; bottom: 10px; }
  .video-toggle, .sound-toggle { height: 38px; }
  .sound-toggle { width: 86px; }
  .lightbox { padding: 0; }
  .lightbox-dialog { width: 100vw; height: 100svh; }
  .lightbox-dialog header { padding: 16px 14px; }
  .lightbox-body { padding: 14px; }
  .lightbox-image { max-height: calc(100svh - 145px); }
  .page-intro > div { display: block; text-align: center; }
  .page-intro p { margin-top: 18px; }
  .motion-marquee { padding: 12px 0 14px; }
  .motion-marquee > div { animation-duration: 12s; }
  .media-frame { transform: none !important; }
  .motion-title { transform: translate3d(0, 64px, 0) scale(1.16) rotate(1deg); }
  body::after { display: none; }
  body::before { inset: -15% -55%; filter: blur(38px) saturate(1.08); }
}
