:root {
  --paper: #eef1f5;
  --card: #ffffff;
  --ink: #16191f;
  --sub: #5b6270;
  --rule: #d5dae2;
  --blue: #1f4fd1;
  --deep: #0a2477;
  --night: #07123a;
  --en: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --pad: clamp(20px, 4.4vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (pointer: coarse) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--jp); font-size: 15px; line-height: 1.9; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

/* Text that rolls up to a copy of itself on hover. */
[data-roll] { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
[data-roll]::after { content: attr(data-roll); position: absolute; left: 0; top: 100%; }
[data-roll], [data-roll]::after { transition: transform .5s var(--ease); }
a:hover [data-roll], button:hover [data-roll] { transform: translateY(-100%); }

/* ── Header ── */
.bar {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 40px;
  padding: max(16px, env(safe-area-inset-top)) var(--pad) 16px;
  color: #fff; transition: color .4s, background .4s, box-shadow .4s;
}
.bar.is-light { color: var(--ink); background: rgba(238, 241, 245, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(22, 25, 31, .06); }
.logo { font-family: var(--en); font-weight: 700; font-size: 17px; letter-spacing: .08em; }
.nav { display: flex; gap: 28px; font-family: var(--en); font-weight: 600; font-size: 13.5px; margin-left: auto; }
.nav a { opacity: .88; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.pill {
  font-family: var(--en); font-weight: 600; font-size: 13.5px; line-height: 1.5;
  padding: 7px 20px; border-radius: 99px; background: #fff; color: var(--deep);
  transition: background .3s, color .3s;
}
.bar.is-light .pill { background: var(--blue); color: #fff; }

/* ── The blue: a sea at dusk, with grain ── */
.blue { position: relative; overflow: clip; background: var(--deep); color: #fff; isolation: isolate; }
.sea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.grain { position: absolute; inset: -2px; z-index: -1; pointer-events: none; opacity: .2; mix-blend-mode: overlay; }

.hero { min-height: 100svh; display: flex; }
.hero-in { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding: 120px var(--pad) 7vh; }
.hero-title {
  margin: 0; font-family: var(--en); font-weight: 600; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(56px, 10.4vw, 188px);
  text-shadow: 0 0 40px rgba(170, 205, 255, .35), 0 0 2px rgba(220, 235, 255, .6);
}
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: 6vh; }
.hero-jp { margin: 0; font-weight: 600; font-size: clamp(19px, 2vw, 28px); line-height: 1.75; letter-spacing: .06em; }
.hero-en { margin: 0; font-family: var(--en); font-size: 12.5px; line-height: 1.8; letter-spacing: .04em; opacity: .75; text-align: right; }

/* ── Paper sections ── */
.paper { padding: clamp(96px, 14vw, 200px) var(--pad); }
.big {
  margin: 0; font-family: var(--en); font-weight: 600; letter-spacing: -.035em; line-height: 1;
  font-size: clamp(44px, 6.6vw, 112px); color: var(--ink);
}
.big em { font-style: normal; color: var(--blue); }
.tag {
  display: inline-block; margin: 0 0 28px; padding: 3px 12px; border-radius: 99px;
  background: var(--blue); color: #fff; font-family: var(--en); font-weight: 600; font-size: 12px; letter-spacing: .02em;
}
.lead { margin: 30px 0 0; font-weight: 600; font-size: clamp(18px, 1.9vw, 27px); line-height: 1.7; letter-spacing: .05em; }
.more { display: inline-flex; align-items: center; gap: 12px; margin-top: 44px; font-family: var(--en); font-weight: 600; font-size: 14px; }
.more i, .orb i {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue); position: relative; flex: none;
  transition: transform .4s var(--ease);
}
.more i::before, .orb i::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 11px; height: 11px;
  background: #fff; clip-path: polygon(0 45%, 64% 45%, 40% 18%, 50% 8%, 100% 50%, 50% 92%, 40% 82%, 64% 55%, 0 55%);
}
.more:hover i { transform: translateX(4px); }

/* Service: the core first — incubation as a process — then what we make */
.core { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.core .body { margin: 28px 0 0; font-size: 14.5px; line-height: 2.05; color: var(--sub); max-width: 34em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.steps li {
  position: relative; background: var(--card); border-radius: 16px; padding: 26px 26px 28px;
  box-shadow: 0 1px 0 rgba(22, 25, 31, .04), 0 18px 40px rgba(10, 36, 119, .06);
}
.steps li:nth-child(even) { transform: translateY(36px); }
.steps li.rise:nth-child(even):not(.in) { transform: translateY(64px); }
.step-no { font-family: var(--en); font-weight: 600; font-size: 12px; color: var(--blue); }
.steps strong { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 8px; font-family: var(--en); font-weight: 600; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; line-height: 1.1; }
.steps small { font-family: var(--jp); font-weight: 600; font-size: 12.5px; letter-spacing: .12em; color: var(--sub); }
.steps p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--sub); }
.make { display: flex; align-items: baseline; gap: 16px; margin: clamp(120px, 14vw, 200px) 0 clamp(56px, 6vw, 90px); padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--en); font-weight: 600; font-size: 14px; }
.make span { font-family: var(--jp); font-size: 12.5px; letter-spacing: .14em; color: var(--sub); }
.big.mid { font-size: clamp(38px, 5vw, 84px); }
.tag-line { background: none; color: var(--blue); border: 1px solid var(--blue); }

/* Two halves and a lens between them */
.service { padding-top: clamp(120px, 16vw, 220px); padding-bottom: clamp(120px, 16vw, 220px); }
.split { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.side-r { text-align: right; }
.axis { position: relative; align-self: stretch; width: clamp(160px, 17vw, 260px); display: grid; place-items: center; }
.axis::before { content: ""; position: absolute; left: 50%; top: -8vh; bottom: -8vh; width: 1px; background: var(--rule); }
.lens {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .55), 0 0 0 11px var(--rule), 0 30px 60px rgba(10, 36, 119, .18);
}
.lens img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.lens::after { content: ""; position: absolute; inset: 0; background: #1540c4; mix-blend-mode: screen; }

/* Works */
.head { display: flex; justify-content: space-between; align-items: end; margin-bottom: clamp(56px, 7vw, 110px); }
.head-jp { margin: 0; font-weight: 600; font-size: 15px; letter-spacing: .2em; color: var(--sub); }
.works { padding-top: 0; }
.works-in { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.filters { list-style: none; margin: 0; padding: 0; position: sticky; top: 110px; }
.filters button {
  background: none; border: 0; padding: 5px 0 5px 18px; cursor: pointer; position: relative;
  font-weight: 600; font-size: 14px; color: var(--sub); transition: color .2s;
}
.filters button::before { content: ""; position: absolute; left: 2px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--blue); opacity: 0; transition: opacity .2s; }
.filters button:hover { color: var(--ink); }
.filters button.is-on { color: var(--blue); }
.filters button.is-on::before { opacity: 1; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 72px 48px; }
.card {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.card.is-hidden { display: none; }
.thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 14px; background: #dfe4ec; margin-bottom: 22px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .thumb img { transform: scale(1.045); }
.thumb-app { background: linear-gradient(160deg, #0d2c8f, #07123a); display: flex; gap: 6%; justify-content: center; align-items: center; }
.thumb-app img { width: 27%; height: auto; aspect-ratio: 1284 / 2778; border-radius: 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.thumb-app img + img { margin-top: 14%; }
.thumb-top img { object-position: 50% 0; }
.thumb-reel { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; background: #000; }
.thumb-reel img { height: 100%; }
.play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; border-radius: 50%;
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .4s var(--ease);
}
.play::before { content: ""; position: absolute; left: 31px; top: 25px; border: 13px solid transparent; border-left: 20px solid var(--deep); border-right: 0; }
.card:hover .play { transform: scale(1.08); }
.chip {
  display: inline-block; padding: 1px 11px; border: 1px solid var(--blue); border-radius: 99px;
  font-family: var(--en); font-weight: 600; font-size: 11.5px; color: var(--blue); margin-bottom: 14px;
}
.card strong { font-weight: 700; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.45; letter-spacing: .02em; }
.desc { margin-top: 12px; font-size: 13.5px; line-height: 1.85; color: var(--sub); }
.meta { margin-top: 14px; font-family: var(--en); font-weight: 600; font-size: 12.5px; color: var(--ink); }

/* Company */
.company { padding-top: 0; }
.profile { margin: 0; border-top: 1px solid var(--ink); }
.profile > div { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.profile dt { font-weight: 700; font-size: 14px; }
.profile dd { margin: 0; font-size: 15px; }
.profile .en { display: block; font-family: var(--en); font-size: 12.5px; color: var(--sub); }
.profile a { color: var(--blue); }
.purposes { margin: 0; padding: 0; list-style: none; counter-reset: p; }
.purposes li { counter-increment: p; display: grid; grid-template-columns: 2.6em 1fr; padding: 3px 0; font-size: 14.5px; }
.purposes li::before { content: counter(p, decimal-leading-zero); font-family: var(--en); font-weight: 600; font-size: 12.5px; color: var(--blue); padding-top: .25em; }

/* Contact */
.contact { min-height: 92svh; display: flex; }
.contact-in { width: 100%; padding: clamp(110px, 12vw, 180px) var(--pad); display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-title {
  margin: 0; font-family: var(--en); font-weight: 600; letter-spacing: -.04em; line-height: 1;
  font-size: clamp(60px, 12vw, 210px); text-shadow: 0 0 50px rgba(170, 205, 255, .35);
}
.contact-jp { margin: 34px 0 0; font-weight: 600; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.95; letter-spacing: .05em; opacity: .9; }
.orb {
  margin-top: 64px; width: clamp(240px, 24vw, 330px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: rgba(150, 190, 255, .16); border: 1px solid rgba(220, 235, 255, .35);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 30px 80px rgba(3, 10, 40, .35);
  transition: transform .6s var(--ease), background .4s;
}
.orb:hover { transform: scale(1.04); background: rgba(150, 190, 255, .26); }
.orb-en { font-family: var(--en); font-weight: 600; font-size: 13px; opacity: .8; }
.orb-jp { font-weight: 700; font-size: clamp(22px, 2vw, 28px); letter-spacing: .06em; }
.orb-mail { font-family: var(--en); font-size: 12px; opacity: .8; margin-bottom: 14px; }
.orb i { background: #fff; }
.orb i::before { background: var(--deep); }

/* Footer */
.foot { background: var(--night); color: #c9d3ea; padding: 56px var(--pad) 36px; }
.foot-in { display: flex; justify-content: space-between; align-items: start; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(201, 211, 234, .16); }
.foot .logo { color: #fff; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 28px; font-family: var(--en); font-weight: 600; font-size: 13px; }
.foot-nav a:hover { color: #fff; }
.foot-row { display: flex; justify-content: space-between; gap: 30px; padding-top: 22px; font-size: 11.5px; opacity: .7; }
.foot-row p { margin: 0; }

/* Modals */
.modal {
  width: min(1180px, 92vw); max-height: 92vh; overflow: hidden auto; padding: 0; border: 0; border-radius: 18px;
  background: var(--night); color: #fff;
}
.modal::backdrop { background: rgba(4, 10, 36, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; }
.close::before, .close::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1.5px; background: var(--deep); transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }
.gallery { display: grid; grid-template-columns: 1.5fr 1fr; gap: 6px; max-height: calc(90vh - 56px); overflow: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 3200 / 2131; }
.gallery img:nth-child(2) { aspect-ratio: 2600 / 1734; }
.gallery img:nth-child(3) { aspect-ratio: 1; object-position: 50% 20%; }
.screen { aspect-ratio: 16 / 9; background: #000; }
.screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.reel { list-style: none; margin: 0; padding: 14px 22px 0; display: flex; gap: 10px; }
.reel button { display: grid; gap: 6px; width: 150px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; opacity: .55; transition: opacity .3s; }
.reel button:hover, .reel button.is-on { opacity: 1; }
.reel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; outline: 1.5px solid transparent; outline-offset: 2px; transition: outline-color .3s; }
.reel button.is-on img { outline-color: #fff; }
.reel span { font-weight: 600; font-size: 12px; }
.modal-cap { margin: 0; padding: 16px 22px; font-family: var(--en); font-size: 12.5px; opacity: .8; }
.modal-cap a { text-decoration: underline; text-underline-offset: 3px; margin-left: 10px; }

/* Arrival */
.rise { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.rise.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .pill { margin-left: auto; }
  .hero-foot { flex-direction: column; align-items: start; gap: 18px; }
  .hero-en { text-align: left; }
  .core { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(even), .steps li.rise:nth-child(even).in { transform: none; }
  .split { grid-template-columns: 1fr; gap: 64px; }
  .reel button { width: auto; flex: 1; }
  .side-r { text-align: left; }
  .axis { width: 180px; justify-self: center; order: -1; }
  .axis::before { display: none; }
  .works-in { grid-template-columns: 1fr; gap: 28px; }
  .filters { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .filters button { padding: 6px 14px; border: 1px solid var(--rule); border-radius: 99px; background: #fff; }
  .filters button::before { display: none; }
  .filters button.is-on { border-color: var(--blue); background: var(--blue); color: #fff; }
  .cards { grid-template-columns: 1fr; gap: 56px; }
  .head { align-items: start; flex-direction: column; gap: 14px; }
  .profile > div { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .foot-in, .foot-row { flex-direction: column; }
  .foot-nav { justify-content: flex-start; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
}
