/* Shared motion and website-journal treatment — JP / EN */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; max-width: 100%; }
html, body { overflow-x: visible !important; }

@media (min-width: 1000px) {
  :root { --maxw: 100%; }
  .wrap { width: 100%; max-width: none; padding-inline: clamp(18px, 1.8vw, 30px); }
  #news > .wrap,
  #aicone.block > .wrap,
  #research.block > .wrap,
  #profile.block > .wrap,
  #works.block > .wrap {
    width: 100% !important;
    max-width: none !important;
    padding-left: clamp(18px, 1.8vw, 30px) !important;
    padding-right: clamp(18px, 1.8vw, 30px) !important;
  }
}

/* A shorter opening: the room remains the hero without hiding the name for too long. */
.heroscroll { height: 220vh; }
#house { inset: 0; width: 100vw; max-width: none; }
.herotext { top: 18%; }

/* Every chapter rises into view as one rhythm, while its contents arrive in sequence. */
.reveal .eyebrow,
.reveal .sectitle,
.reveal .trustlead,
.reveal .aicone-symbol,
.reveal .aicone-overline,
.reveal .lead,
.reveal .aicone-ja,
.reveal .aifull,
.reveal .research-question,
.reveal .research-collage,
.reveal .research-findings > *,
.reveal .profile-kicker,
.reveal .life-event,
.reveal .works-intro,
.reveal .award-row,
.reveal .journal-kicker,
.reveal .journal-title,
.reveal .journal-lead,
.reveal .journal-link {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 54px, 0) scale(.975);
  transition: opacity .7s ease, filter .9s ease, transform 1s cubic-bezier(.16,.84,.24,1);
}
.reveal.in .eyebrow,
.reveal.in .sectitle,
.reveal.in .trustlead,
.reveal.in .aicone-symbol,
.reveal.in .aicone-overline,
.reveal.in .lead,
.reveal.in .aicone-ja,
.reveal.in .aifull,
.reveal.in .research-question,
.reveal.in .research-collage,
.reveal.in .research-findings > *,
.reveal.in .profile-kicker,
.reveal.in .life-event,
.reveal.in .works-intro,
.reveal.in .award-row,
.reveal.in .journal-kicker,
.reveal.in .journal-title,
.reveal.in .journal-lead,
.reveal.in .journal-link {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
.reveal.in .sectitle,
.reveal.in .aicone-overline,
.reveal.in .journal-title { transition-delay: .08s; }
.reveal.in .trustlead,
.reveal.in .lead,
.reveal.in .journal-lead { transition-delay: .15s; }
.reveal.in .aifull,
.reveal.in .research-collage,
.reveal.in .journal-link { transition-delay: .22s; }
.reveal.in .research-findings > *:nth-child(2),
.reveal.in .award-row:nth-child(2),
.reveal.in .life-event:nth-child(2) { transition-delay: .09s; }
.reveal.in .research-findings > *:nth-child(3),
.reveal.in .award-row:nth-child(3),
.reveal.in .life-event:nth-child(3) { transition-delay: .18s; }
.reveal.in .award-row:nth-child(n+4),
.reveal.in .life-event:nth-child(n+4) { transition-delay: .24s; }

/* Home-page journal: the site's own movement becomes the background evidence. */
#journal.block {
  min-height: 92svh;
  display: grid;
  align-items: center;
  padding: clamp(94px, 12vh, 138px) 0;
  overflow: hidden;
  isolation: isolate;
}
#journal > .secskew { display: none; }
.journal-film,
.journal-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.journal-film { z-index: -3; object-fit: cover; opacity: .54; filter: saturate(.72) contrast(1.08); }
.journal-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3,8,14,.96) 0%, rgba(3,8,14,.72) 45%, rgba(3,8,14,.24) 100%),
    linear-gradient(180deg, rgba(3,8,14,.72), transparent 44%, rgba(3,8,14,.92));
}
.journal-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  gap: clamp(54px, 8vw, 140px);
  align-items: end;
  width: 100%;
  padding-inline: clamp(18px, 2.4vw, 42px);
}
.journal-kicker { color: var(--teal); font-size: .72rem; font-weight: 750; letter-spacing: .25em; }
.journal-title {
  max-width: 1040px;
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(3.7rem, 6.5vw, 7.4rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.055em;
}
.journal-title em { color: var(--teal); font-style: normal; }
.journal-side { padding-bottom: 9px; }
.journal-lead { color: #cfdae1; font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.95; }
.journal-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 42px;
  padding: 25px 0;
  border-top: 1px solid rgba(160,229,219,.58);
  border-bottom: 1px solid rgba(160,229,219,.26);
  color: #f4fbfa;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 2rem);
}
.journal-link span:last-child { color: var(--teal); font-family: var(--sans); font-size: 1.2rem; }

/* Article */
.build-article { color: #101a20; background: #eef0eb; }
.build-article a { color: inherit; text-decoration: none; }
.build-nav {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 2.5vw, 42px);
  color: #f4fbfa;
  background: rgba(4,12,17,.86);
  backdrop-filter: blur(14px);
}
.build-nav strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.build-nav span { color: #93e7dc; font-size: .68rem; font-weight: 700; letter-spacing: .18em; }
.build-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 3vw, 52px) clamp(64px, 9vh, 100px);
  overflow: hidden;
  color: #f4fbfa;
  background: #030a0f;
  isolation: isolate;
}
.build-hero video,
.build-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.build-hero video { z-index: -2; object-fit: cover; opacity: .62; filter: saturate(.72); }
.build-hero::after { content: ""; z-index: -1; background: linear-gradient(90deg,rgba(3,10,15,.96),rgba(3,10,15,.42)),linear-gradient(0deg,rgba(3,10,15,.94),transparent 58%); }
.build-hero-copy { max-width: 1200px; }
.build-label { color: #8ee7db; font-size: .7rem; font-weight: 750; letter-spacing: .24em; }
.build-hero h1 { margin: 26px 0 34px; font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 8rem); font-weight: 400; line-height: .98; letter-spacing: -.065em; }
.build-hero h1 em { color: #8ee7db; font-style: normal; }
.build-hero p { max-width: 760px; color: #cfdae0; font-size: clamp(1.02rem, 1.35vw, 1.3rem); line-height: 1.95; }
.build-facts { display: grid; grid-template-columns: repeat(3, 1fr); background: #10232a; color: #f3faf8; }
.build-facts div { min-height: 170px; padding: 34px clamp(20px, 3vw, 48px); border-right: 1px solid rgba(255,255,255,.13); }
.build-facts div:last-child { border-right: 0; }
.build-facts span { color: #82e0d4; font-size: .65rem; font-weight: 750; letter-spacing: .16em; }
.build-facts strong { display: block; margin-top: 17px; font-family: var(--serif); font-size: clamp(1.45rem, 2.1vw, 2.2rem); font-weight: 400; }
.build-section { padding: clamp(86px, 12vh, 140px) clamp(18px, 3vw, 52px); }
.build-section:nth-of-type(even) { background: #dce5df; }
.build-grid { display: grid; grid-template-columns: .38fr 1.18fr .74fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.build-number { color: #158579; font-family: var(--serif); font-size: clamp(3.2rem, 5vw, 6rem); line-height: 1; }
.build-section h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.9rem); font-weight: 400; line-height: 1.08; letter-spacing: -.055em; }
.build-copy { color: #415159; font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 2; }
.build-copy p + p { margin-top: 20px; }
.build-media { margin-top: clamp(48px, 7vh, 78px); }
.build-media img,.build-media video { display: block; width: 100%; max-height: 78svh; object-fit: cover; }
.build-media figcaption { margin-top: 13px; color: #68777d; font-size: .72rem; letter-spacing: .08em; }
.build-ending { padding: clamp(100px, 14vh, 170px) clamp(18px, 3vw, 52px); color: #f2faf8; background: #071419; text-align: center; }
.build-ending h2 { margin: 0 auto; max-width: 1100px; font-family: var(--serif); font-size: clamp(3rem, 6vw, 7rem); font-weight: 400; line-height: 1.08; }
.build-ending a { display: inline-block; margin-top: 50px; padding: 18px 0; border-bottom: 1px solid #7fe0d4; color: #dff8f4; font-size: 1rem; }
.build-reveal { opacity: 0; filter: blur(8px); transform: translateY(62px); transition: .95s cubic-bezier(.16,.84,.24,1); }
.build-reveal.in { opacity: 1; filter: blur(0); transform: none; }

@media (max-width: 820px) {
  .heroscroll { height: 190vh; }
  .journal-wrap,.build-grid { grid-template-columns: 1fr; }
  .journal-wrap { gap: 38px; }
  .journal-title { font-size: clamp(3.2rem, 14vw, 5.2rem); }
  .journal-side { max-width: 640px; }
  .build-facts { grid-template-columns: 1fr; }
  .build-facts div { min-height: 130px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .build-facts div:last-child { border-bottom: 0; }
  .build-grid { gap: 22px; }
  .build-copy { margin-top: 8px; }
}

@media (min-width: 821px) and (max-height: 760px) {
  .build-hero { padding-top: 96px; padding-bottom: 34px; }
  .build-hero h1 { margin: 18px 0 22px; font-size: clamp(3.2rem, 6vw, 5.6rem); }
  .build-hero p { font-size: 1rem; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal *, .build-reveal { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
  .journal-film,.build-hero video { display: none; }
}
