/* Hidden rather than removed from the HTML in case the site's scripts look them up. */
#loading-text,
.News__newsArea,
.Header__contact,
.Works__more,
.TopScrollIndicator__top_scroll_indicator,
.TweakpaneContainers__container,
#sound-intro,
#sound-hint {
  display: none !important;
}

.AboutMe {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: 90px 7vw 40px;
  font-size: 16px;
}

/* Skills now live in the Works journey; this collapses the old Service section without removing what the site's scripts read. */
.Service__content {
  display: none !important;
}

[data-top_section="service_in"],
[data-top_section="service"],
.Service__scroll_item {
  height: 0 !important;
  min-height: 0 !important;
}

.AboutMe__item {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
}

/* The site's own 3D title only shows during the intro, so this keeps the word behind the section. */
.AboutMe__bg {
  position: absolute;
  top: 26%;
  left: 50%;
  white-space: nowrap;
  font: 900 15vw/1 'Arial Black', Arial, sans-serif;
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.15);
  transition: opacity 1.2s ease, transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.AboutMe[data-in] .AboutMe__bg,
.FAQ[data-in] .AboutMe__bg {
  opacity: 0.16;
  transform: translate(-50%, -50%);
}

/* Three letters instead of eight, so it needs a larger size to fill the screen the same way. */
.FAQ .AboutMe__bg {
  top: 50%;
  z-index: -1;
  font-size: 34vw;
}

.AboutMe__text,
.AboutMe__stage {
  position: relative;
}

.AboutMe__text > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.AboutMe[data-in] .AboutMe__text > * {
  opacity: 1;
  transform: none;
}

.AboutMe[data-in] .AboutMe__title { transition-delay: 0.15s; }
.AboutMe[data-in] .AboutMe__bio { transition-delay: 0.3s; }
.AboutMe[data-in] .AboutMe__tags { transition-delay: 0.45s; }

.AboutMe__eyebrow {
  margin-bottom: 14px;
  font: 400 13px 'IBM Plex Mono', monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.AboutMe__title {
  margin-bottom: 20px;
  font: 400 clamp(38px, 5.5vw, 76px) / 1.05 'IBM Plex Mono', monospace;
  letter-spacing: 0.1em;
}

/* The outro Lottie scales to the larger screen side (slice); the solid 7 must follow it or it doubles the Lottie 7 on tall screens. */
.TopPageOutro__screen_inner {
  container-type: size;
}

.TopPageOutro__logo {
  width: max(20.4cqw, 20.4cqh) !important;
  translate: calc(-0.329 * (max(100cqw, 100cqh) - 100cqw)) 0;
}

.AboutMe__bio {
  max-width: 44ch;
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.AboutMe__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.AboutMe__tags li {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font: 400 12px 'IBM Plex Mono', monospace;
}

.AboutMe:not([data-in]) .AboutMe__stage {
  opacity: 0;
}

.AboutMe__stage {
  position: relative;
  transition: opacity 0.4s ease;
  height: 100%;
  min-height: 0;
}

.AboutMe__stage canvas {
  /* Lets the guide lines fade out instead of stopping dead at the canvas edge. */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 70%, transparent);
  mask-image: radial-gradient(ellipse 50% 50% at center, #000 70%, transparent);
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.FAQ {
  isolation: isolate;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(640px, 100%);
  margin: 0 auto;
  pointer-events: auto;
}

.FAQ details {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.FAQ summary {
  cursor: pointer;
  font: 400 15px 'IBM Plex Mono', monospace;
}

.FAQ details p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* Kept in the layout because the site's scripts still animate them. */
[data-vision-title],
.MissionVision__text_en {
  visibility: hidden !important;
}

/* The site hides the menu from this section on; the FAQ keeps it, with the frame starting just below. */
[data-current_section="stellla"] .Header__container {
  transform: none !important;
  opacity: 1 !important;
}

@media only screen and (min-width: 769px) {
  .Stellla__frame_container {
    top: 70px !important;
    height: calc(100% - 70px) !important;
  }
}

.Footer__legal .Footer__privacyLicense_link {
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
}

.Legal {
  position: fixed;
  inset: 0;
  width: min(720px, calc(100% - 32px));
  max-height: min(80dvh, 720px);
  margin: auto;
  padding: 44px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #050505;
  color: rgba(255, 255, 255, 0.82);
  font: 400 15px/1.7 'Noto Sans JP Variable', 'Noto Sans JP', sans-serif;
}

.Legal::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.Legal h2 {
  margin-bottom: 6px;
  color: #fff;
  font: 900 30px/1.15 'Arial Black', Arial, sans-serif;
}

.Legal h3 {
  margin: 26px 0 6px;
  color: #fff;
  font: 400 14px 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
}

.Legal__date,
.Legal code {
  font: 400 12px 'IBM Plex Mono', monospace;
}

.Legal__date {
  color: rgba(255, 255, 255, 0.5);
}

.Legal ul {
  padding-left: 18px;
}

.Legal li {
  list-style: disc;
}

.Legal a {
  text-decoration: underline;
}

.Legal__close {
  position: sticky;
  top: 0;
  float: right;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font: 400 12px 'IBM Plex Mono', monospace;
}

.Legal__close:hover {
  background: #fff;
  color: #000;
}

.Legal__close:focus-visible,
.Footer__legal .Footer__privacyLicense_link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media not screen and (min-width: 769px) {
  .Legal {
    padding: 24px 20px;
  }

  .Legal h2 {
    font-size: 24px;
  }
}

.Footer__legal {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  padding-right: 30px; /* same as the copyright below */
}

/* Centred under the big logo; the rest of the footer keeps its own layout. */
.Footer__top {
  position: relative;
}

.Footer__top_contact {
  position: absolute;
  /* The logo's bottom is at 50vh + 8.8vw and this footer block starts 212px above the screen's bottom. */
  top: calc(8.8vw + 236px - 50vh);
  left: 50%;
  transform: translateX(-50%);
}

.Footer__top_contact .Footer__contact {
  display: flex;
  gap: 14px;
}

.Footer__top_contact .Footer__contact_button {
  display: block;
  padding: 12px 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
  font: 400 13px 'IBM Plex Mono', monospace;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.Footer__top_contact .Footer__contact_button:not(.Footer__contact_button--soon):hover {
  background-color: #fff;
  border-color: #fff;
  color: #000;
}

.Footer__top_contact .Footer__contact_button:not(.Footer__contact_button--soon):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.Footer__top_contact .Footer__contact_button_text,
.Footer__top_contact .Footer__contact_button:hover .Footer__contact_button_text {
  color: inherit;
  font: inherit;
}

.Footer__contact_button--soon {
  opacity: 0.45;
  cursor: default;
}

@media not screen and (min-width: 769px) {
  .Footer__top_contact {
    position: static;
    transform: none;
  }
}

@media not screen and (min-width: 769px) {
  .AboutMe {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    padding: 80px 20px 20px;
  }

  .AboutMe__title {
    margin-bottom: 10px;
  }

  .AboutMe__bio {
    margin-bottom: 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .AboutMe__bg,
  .AboutMe__text > * {
    transition: none;
  }
}

/* The site only shows "scroll to explore" on mobile; PC gets the same vertical hint on the right. */
@media only screen and (min-width: 769px) {
  .KV__inner .KV__scrollText {
    display: block;
    left: auto;
    right: 32px;
    bottom: 40px;
    transform: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 12px;
  }
}

/* Apple Liquid Glass pills on the header: logo (left), menu (centre), sound toggle (right).
   Chromium gets the real refraction (per-pill SVG filters set by contenu.js); other browsers a clear blur. */
.Header__logo,
.Header__nav,
.SoundToggle__button {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(3px) saturate(170%) brightness(1.08);
  backdrop-filter: blur(3px) saturate(170%) brightness(1.08);
  border-radius: 999px;
  box-shadow:
    inset 1px 1px 0.5px -0.5px rgba(255, 255, 255, 0.9),
    inset -1px -1px 0.5px -0.5px rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 18px rgba(255, 255, 255, 0.08),
    0 6px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease, scale 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}


/* Soft glint on the upper edge, like light catching the curved rim. */
.Header__logo::after,
.Header__nav::after,
.SoundToggle__button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 30% -20%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
  z-index: -1;
}

.Header__logo:hover,
.Header__nav:hover,
.SoundToggle__button:hover {
  background: rgba(255, 255, 255, 0.07);
  scale: 1.03;
}

.Header__nav:hover {
  scale: 1.02;
}

.Header__logo {
  padding: 12px 24px;
}

.Header__nav {
  pointer-events: auto;
  padding: 14px 32px;
}

/* The logo and sound pills differ in width, so the menu is pinned to the true centre of the bar. */
@media only screen and (min-width: 769px) {
  .Header__nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.SoundToggle__button {
  width: 48px;
  height: 48px;
}

/* Mobile: a slimmer logo pill, kept level with the menu button. */
@media not screen and (min-width: 769px) {
  .Header__logo {
    padding: 6px 14px;
    margin-top: -7px;
  }
}
