/* Home: the journey from orbit to a cell, then the work. */

.page-home {
  background: var(--space);
}

.page-home main {
  background: var(--paper);
}

/* ---------------------------------------------------------------- journey */

.journey {
  --journey: 0;
  position: relative;
  height: 820vh;
  background: var(--space);
  color: #fff;
}

.journey__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  cursor: crosshair;
}

.journey.is-dragging .journey__stage {
  cursor: grabbing;
}

.journey__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.journey.is-live .journey__canvas {
  opacity: 1;
}

.journey__fallback {
  display: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 32% 70%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 48% 12%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 80% 84%, rgba(255, 255, 255, 0.5), transparent 60%),
    var(--space);
}

.journey__fallback span {
  position: absolute;
  right: 8%;
  top: 50%;
  width: min(62vh, 46vw);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.22), transparent 42%),
    radial-gradient(circle at 70% 64%, #0c2b4d 0%, transparent 56%),
    radial-gradient(circle at 42% 44%, #2f6a8f 0%, #123d63 48%, #071a2e 72%, #02060c 100%);
  box-shadow: -10px 0 60px rgba(80, 150, 255, 0.35), inset -40px -20px 80px rgba(0, 0, 0, 0.75);
}

.no-webgl .journey {
  height: auto;
}

.no-webgl .journey__stage {
  height: 100svh;
  position: relative;
}

.no-webgl .journey__fallback {
  display: block;
}

.no-webgl .journey__hud,
.no-webgl .journey__nav,
.no-webgl .journey__cue,
.no-webgl .journey__canvas {
  display: none;
}

/* hero copy and the composer */

.journey__hero {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  top: 50%;
  width: min(600px, 48vw);
  transform: translateY(calc(-50% - var(--journey) * 900px));
  opacity: calc(1 - var(--journey) * 16);
  pointer-events: auto;
}

.journey.is-past-hero .journey__hero {
  visibility: hidden;
}

/* while someone is typing, the composer stays put even if the page scrolls for the keyboard */
.journey:has(.ask:focus-within) .journey__hero {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}

html.is-starmap-open {
  overflow: hidden;
}

.journey__title {
  font-size: clamp(34px, 4.4vw, 66px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.journey__title span {
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.2s var(--ease) forwards;
}

.journey__title span + span {
  animation-delay: 0.18s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.ask {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  height: 60px;
  margin-top: clamp(28px, 4vh, 44px);
  padding: 0 8px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 16, 24, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: rise 1.2s var(--ease) 0.5s forwards;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ask:focus-within {
  border-color: rgba(120, 220, 230, 0.7);
  box-shadow: 0 0 0 4px rgba(96, 211, 210, 0.16), 0 10px 40px rgba(0, 0, 0, 0.35);
}

.ask__mark {
  width: 26px;
  flex: none;
}

.ask__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
}

.ask__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.ask__input:focus-visible {
  outline: none;
}

.ask__send,
.chat__form button {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.ask__send:hover,
.chat__form button:hover {
  transform: translateY(-1px);
  background: #e9f7f4;
}

.ask__send svg,
.chat__form button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* stars that hide people */

.journey__stars {
  position: absolute;
  inset: 0;
  opacity: calc(1 - var(--journey) * 22);
  pointer-events: none;
}

.journey.is-past-hero .journey__stars {
  visibility: hidden;
}

.hstar {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.hstar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px 1px rgba(200, 230, 255, 0.7);
  animation: twinkle var(--tw, 4s) ease-in-out infinite;
  animation-delay: var(--td, 0s);
}

.hstar::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(160, 235, 220, 0.75);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.hstar:hover::after,
.hstar:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.hstar__name {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translate(4px, -50%);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(220, 245, 240, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.hstar:hover .hstar__name,
.hstar:focus-visible .hstar__name {
  opacity: 1;
  transform: translate(0, -50%);
}

/* lens reading on the globe */

.journey__coord {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(4, 8, 12, 0.55);
  color: rgba(200, 245, 230, 0.95);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  white-space: pre;
  pointer-events: none;
}

/* the scale bar and the chapter it measures */

.journey__hud {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  top: calc(100svh - 84px);
  display: grid;
  gap: 6px;
  padding: 9px 14px 10px;
  border-radius: 14px;
  background: rgba(4, 8, 12, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  transition: color 0.6s var(--ease), opacity 0.6s var(--ease);
}

.hud__chapter {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hud__scale {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.hud__scale i {
  position: relative;
  display: block;
  width: 96px;
  height: 8px;
  border-bottom: 1px solid currentColor;
}

.hud__scale i::before,
.hud__scale i::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 1px;
  height: 8px;
  background: currentColor;
}

.hud__scale i::before {
  left: 0;
}

.hud__scale i::after {
  right: 0;
}

.hud__scale b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 6em;
}

.journey[data-chapter="湧き水"] .journey__hud,
.journey[data-chapter="苔"] .journey__hud {
  color: #fff;
}

.journey.is-ending .journey__hud,
.journey.is-ending .journey__nav {
  opacity: 0;
}

/* chapter ticks */

.journey__nav {
  position: absolute;
  right: max(calc(var(--gutter) - 10px), calc((100vw - var(--wrap)) / 2 - 10px));
  top: 50%;
  display: grid;
  gap: 2px;
  transform: translateY(-50%);
  transition: opacity 0.6s var(--ease);
}

.journey__nav button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #fff;
}

.journey__nav button::after {
  content: "";
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.35s var(--ease), background 0.35s;
}

.journey__nav button span {
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateX(6px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.journey__nav button:hover span,
.journey__nav button:focus-visible span,
.journey__nav button[aria-current="step"] span {
  opacity: 1;
  transform: none;
}

.journey__nav button[aria-current="step"]::after {
  width: 32px;
  background: #fff;
}

/* over the globe the ticks speak for themselves */
.journey:not(.is-past-hero) .journey__nav button[aria-current="step"]:not(:hover):not(:focus-visible) span {
  opacity: 0;
}

.journey__cue {
  position: absolute;
  left: 50%;
  top: calc(100svh - 56px);
  width: 1px;
  height: 40px;
  overflow: hidden;
  opacity: calc(1 - var(--journey) * 30);
}

.journey__cue::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40px;
  width: 1px;
  height: 40px;
  background: linear-gradient(transparent, #fff);
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  to {
    top: 40px;
  }
}

@media (max-width: 860px) {
  .journey__hero {
    inset: 0;
    width: auto;
    transform: translateY(calc(var(--journey) * -900px));
    pointer-events: none;
  }

  .journey:has(.ask:focus-within) .journey__hero {
    transform: none;
  }

  .journey__title {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(var(--header-h) + 28px);
    font-size: clamp(32px, 9.4vw, 46px);
  }

  .ask {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100svh - 80px - env(safe-area-inset-bottom));
    width: auto;
    height: 56px;
    margin: 0;
    pointer-events: auto;
  }

  .journey__hud {
    top: calc(var(--header-h) + 24px);
    left: auto;
    right: var(--gutter);
    justify-items: end;
    opacity: clamp(0, calc(var(--journey) * 30 - 0.5), 1);
  }

  .journey__nav {
    display: none;
  }

  .journey__cue {
    display: none;
  }
}

/* ---------------------------------------------------------------- statement */

.statement {
  position: relative;
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(80px, 12vw, 160px);
  background: var(--paper);
  text-align: center;
}

.statement__inner {
  max-width: 880px;
  margin-inline: auto;
}

.statement__mark {
  width: clamp(96px, 12vw, 140px);
  margin: 0 auto clamp(28px, 4vw, 44px);
}

.lotus path {
  transform-box: view-box;
  transform-origin: 75.5px 78px;
  transform: rotate(var(--r, 0deg)) scale(0.2);
  opacity: 0;
  transition: transform 1.4s var(--ease), opacity 1s var(--ease);
}

.lotus .p4 { --r: 0deg; transition-delay: 0s; }
.lotus .p5 { --r: -14deg; transition-delay: 0.05s; }
.lotus .p6 { --r: 14deg; transition-delay: 0.05s; }
.lotus .p0 { --r: -22deg; transition-delay: 0.12s; }
.lotus .p1 { --r: 22deg; transition-delay: 0.12s; }
.lotus .p9 { --r: -30deg; transition-delay: 0.18s; }
.lotus .p10 { --r: 30deg; transition-delay: 0.18s; }
.lotus .p2 { --r: -40deg; transition-delay: 0.24s; }
.lotus .p3 { --r: 40deg; transition-delay: 0.24s; }
.lotus .p7 { --r: -55deg; transition-delay: 0.32s; }
.lotus .p8 { --r: 55deg; transition-delay: 0.32s; }

.statement.is-bloomed .lotus path {
  transform: none;
  opacity: 1;
}

.statement__title {
  font-size: clamp(28px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.statement__title span {
  display: inline-block;
}

.statement__body {
  max-width: 34em;
  margin: clamp(20px, 3vw, 32px) auto 0;
  color: var(--ink-2);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2;
}

/* ---------------------------------------------------------------- services bento */

.services {
  padding-top: 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}

.tile--ai {
  grid-column: span 7;
}

.tile--dev {
  grid-column: span 5;
}

.tile--kuchitoru {
  grid-column: span 5;
}

.tile--web {
  grid-column: span 4;
}

.tile--ops {
  grid-column: span 3;
}

.tile__live {
  position: relative;
  flex: 1;
  min-height: 200px;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  background:
    radial-gradient(circle at 1px 1px, rgba(18, 22, 28, 0.08) 1px, transparent 1.5px) 0 0 / 16px 16px,
    var(--paper);
  display: grid;
  place-items: center;
  padding: 20px;
}

.tile__text {
  display: grid;
  gap: 8px;
  padding: 22px 24px 24px;
}

.tile__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.tile__title {
  font-size: 20px;
  font-weight: 800;
}

.tile__desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}

.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}

.tile__more::after {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.tile:hover .tile__more::after {
  width: 24px;
}

/* agent run */

.run {
  width: min(420px, 100%);
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 22, 28, 0.05), 0 10px 30px rgba(18, 22, 28, 0.07);
}

.run__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.run__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(96, 211, 210, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}

.run__count {
  margin-left: auto;
  color: var(--ink-3);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.run__list {
  display: grid;
  gap: 4px;
  margin: 14px 0;
}

.run__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-3);
  transition: background 0.4s, color 0.4s;
}

.run__list i {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  transition: border-color 0.3s, background 0.3s;
}

.run__list li.is-doing {
  background: var(--paper);
  color: var(--ink);
}

.run__list li.is-doing i {
  border-color: var(--aqua);
  border-right-color: transparent;
  animation: spin 0.9s linear infinite;
}

.run__list li.is-done {
  color: var(--ink);
}

.run__list li.is-done i {
  border-color: transparent;
  background: var(--lotus);
}

.run__list li.is-done i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.run__bar {
  height: 4px;
  border-radius: 4px;
  background: var(--paper-2);
  overflow: hidden;
}

.run__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--lotus);
  transition: width 0.6s var(--ease);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(96, 211, 210, 0.06);
  }
}

/* pipeline */

.pipe {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  counter-reset: pipe;
}

.pipe li {
  position: relative;
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  transition: color 0.4s;
}

.pipe li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: #fff;
  z-index: 1;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.pipe li::after {
  content: "";
  position: absolute;
  left: 50%;
  right: -50%;
  top: 7px;
  height: 1.5px;
  background: var(--line-2);
}

.pipe li:last-child::after {
  display: none;
}

.pipe li.is-on {
  color: var(--ink);
}

.pipe li.is-on::before {
  border-color: transparent;
  background: var(--aqua);
  box-shadow: 0 0 0 5px rgba(96, 211, 210, 0.18);
}

.pipe li.is-past::before {
  border-color: transparent;
  background: var(--ink);
}

.pipe li.is-past::after {
  background: var(--ink);
}

.pipe__log {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(18, 22, 28, 0.05);
}

.pipe__ok {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.tile--dev .tile__live {
  grid-template-rows: auto auto;
  align-content: center;
}

/* review reply */

.review {
  width: min(360px, 100%);
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 22, 28, 0.05), 0 10px 30px rgba(18, 22, 28, 0.07);
}

.review__stars {
  color: #f2b72f;
  letter-spacing: 2px;
  font-size: 14px;
}

.review__quote {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

.review__reply {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
}

.review__reply img {
  flex: none;
  width: 22px;
  height: 22px;
}

.review__reply p {
  min-height: 3.6em;
  font-size: 12.5px;
  line-height: 1.7;
}

.review__reply p::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--ink);
  animation: caret 1s steps(1) infinite;
}

.review__reply p.is-done::after {
  display: none;
}

.review__approve {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.3;
  transition: opacity 0.4s, box-shadow 0.4s;
}

.review.is-ready .review__approve {
  opacity: 1;
  box-shadow: 0 0 0 5px rgba(96, 211, 210, 0.2);
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

/* web page */

.page {
  display: grid;
  gap: 10px;
  width: min(260px, 100%);
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 22, 28, 0.05), 0 10px 30px rgba(18, 22, 28, 0.07);
}

.page span {
  display: block;
  border-radius: 6px;
  background: var(--paper-2);
  transform-origin: left;
}

.page__bar {
  height: 8px;
  width: 40%;
}

.page__hero {
  height: 58px;
  background: linear-gradient(120deg, #e8f7f0, #e3f4fa) !important;
}

.page__row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: none !important;
}

.page__row i {
  height: 34px;
  border-radius: 6px;
  background: var(--paper-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.chips li {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
}

.tile--web .tile__live {
  align-content: center;
}

.is-live .page span,
.is-live .page__row i {
  animation: build 4.8s var(--ease) infinite;
}

.is-live .page__hero {
  animation-delay: 0.3s !important;
}

.is-live .page__row i:nth-child(1) {
  animation-delay: 0.6s;
}

.is-live .page__row i:nth-child(2) {
  animation-delay: 0.75s;
}

.is-live .page__row i:nth-child(3) {
  animation-delay: 0.9s;
}

@keyframes build {
  0% {
    transform: scaleX(0.2);
    opacity: 0.2;
  }
  18%,
  86% {
    transform: none;
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 0.2;
  }
}

/* flow */

.flow {
  width: min(240px, 100%);
  overflow: visible;
}

.flow__edge {
  fill: none;
  stroke: rgba(18, 22, 28, 0.3);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}

.is-live .flow__edge {
  animation: dash 1.4s linear infinite;
}

.flow__node {
  fill: #fff;
  stroke: rgba(18, 22, 28, 0.3);
  stroke-width: 1.5;
}

.flow__node--ai {
  fill: var(--ink);
  stroke: none;
}

.flow text {
  fill: #fff;
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
  font-family: var(--font);
}

@keyframes dash {
  to {
    stroke-dashoffset: -18;
  }
}

@media (max-width: 1080px) {
  .tile--ai,
  .tile--dev,
  .tile--kuchitoru {
    grid-column: span 6;
  }

  .tile--web,
  .tile--ops {
    grid-column: span 6;
  }

  .tile--ai {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .tile,
  .tile--ai,
  .tile--dev,
  .tile--kuchitoru,
  .tile--web,
  .tile--ops {
    grid-column: auto;
    min-height: 0;
  }

  .tile__live {
    min-height: 220px;
  }
}

/* ---------------------------------------------------------------- consult */

.consult {
  background: var(--white);
}

.consult__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.prompts {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}

.prompts button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.prompts button::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
}

.prompts button:hover {
  border-color: var(--line-2);
  background: #fff;
  transform: translateX(2px);
}

.prompts button[aria-pressed="true"] {
  border-color: var(--ink);
  background: #fff;
}

.chat {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 14px;
}

.chat__head img {
  width: 28px;
}

.chat__status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
}

.chat__log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  padding: 22px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.msg {
  max-width: 88%;
  animation: msg 0.45s var(--ease) both;
}

.msg > p {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.8;
}

.msg--them > p {
  border-top-left-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}

.msg--me {
  align-self: flex-end;
}

.msg--me > p {
  border-top-right-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.msg__typing {
  display: inline-flex;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 18px;
  border-top-left-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}

.msg__typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: typing 1.2s ease-in-out infinite;
}

.msg__typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.msg__typing i:nth-child(3) {
  animation-delay: 0.3s;
}

.plan {
  margin-top: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.plan__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}

.plan__service {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 800;
}

.plan__steps {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  counter-reset: step;
}

.plan__steps li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.plan__steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--paper-2);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.plan__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.plan__actions .btn {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
}

.chat__form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat__form:focus-within {
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(96, 211, 210, 0.16);
}

.chat__form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}

.chat__form input:focus-visible {
  outline: none;
}

.chat__form button {
  background: var(--ink);
  color: #fff;
}

.chat__form button:hover {
  background: #000;
}

@keyframes msg {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .consult__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .consult__side,
  .chat {
    min-width: 0;
  }

  .prompts {
    display: flex;
    gap: 8px;
    margin: 24px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .prompts::-webkit-scrollbar {
    display: none;
  }

  .prompts li {
    flex: none;
    scroll-snap-align: start;
  }

  .prompts button {
    width: auto;
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  .prompts button::after {
    display: none;
  }

  .chat {
    min-height: 460px;
  }
}

/* ---------------------------------------------------------------- product */

.product {
  padding-top: 0;
  background: var(--white);
}

.product__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card-app,
.card-partner {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}

.card-app__visual,
.card-partner__visual {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.card-app__visual {
  background: linear-gradient(160deg, #e9f8ef, #e2f3f9);
}

.phone {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 196px;
  height: 330px;
  margin-left: -98px;
  padding: 10px;
  border-radius: 34px;
  background: var(--ink);
  box-shadow: 0 30px 60px rgba(18, 40, 50, 0.22);
}

.phone__notch {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 56px;
  height: 16px;
  margin-left: -28px;
  border-radius: 10px;
  background: #000;
}

.phone__screen {
  display: grid;
  gap: 8px;
  align-content: start;
  height: 100%;
  padding: 40px 12px 12px;
  border-radius: 26px;
  background: #fff;
}

.phone__title {
  font-size: 11px;
  font-weight: 700;
}

.phone__msg {
  justify-self: start;
  max-width: 92%;
  padding: 7px 10px;
  border-radius: 12px;
  border-top-left-radius: 4px;
  background: var(--paper);
  font-size: 10px;
  line-height: 1.6;
}

.phone__msg--me {
  justify-self: end;
  border-radius: 12px;
  border-top-right-radius: 4px;
  background: #5fa94f;
  color: #fff;
}

.phone__card {
  display: grid;
  gap: 5px;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.phone__card span {
  color: #f2b72f;
  font-size: 9px;
  letter-spacing: 1px;
}

.phone__card i {
  height: 5px;
  border-radius: 3px;
  background: var(--paper-2);
}

.phone__card i + i {
  width: 70%;
}

.phone__btn {
  padding: 8px;
  border-radius: 999px;
  background: #5fa94f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.card-app__mascot {
  position: absolute;
  right: 8%;
  bottom: 18px;
  width: 104px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(30, 60, 30, 0.18));
}

.card-app__body,
.card-partner__body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 28px 30px;
}

.card-app__body h3,
.card-partner__body h3 {
  font-size: 21px;
  font-weight: 800;
}

.card-app__body p,
.card-partner__body p {
  font-size: 14.5px;
  color: var(--ink-2);
}

.badge-link {
  justify-self: start;
  margin-top: 6px;
}

.badge-link img {
  width: 132px;
  height: auto;
}

.card-partner .btn {
  justify-self: start;
  margin-top: 8px;
}

.card-partner__visual {
  background: var(--space);
}

.card-partner__visual .node {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
}

.node--a {
  left: 18%;
  top: 46%;
}

.node--b {
  left: 50%;
  top: 22%;
  margin-left: -48px;
  width: 96px !important;
  height: 96px !important;
  background: radial-gradient(circle at 35% 30%, #c8f5d4, #60d3d2 45%, #1b6f8e 100%) !important;
  border: 0 !important;
  box-shadow: 0 0 60px rgba(96, 211, 210, 0.45);
}

.node--c {
  right: 18%;
  top: 46%;
}

.card-partner__visual .link {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 235, 220, 0.8), transparent);
  background-size: 200% 100%;
  animation: flowline 2.6s linear infinite;
}

.link--ab {
  left: calc(18% + 60px);
  right: calc(50% + 40px);
  top: calc(46% + 22px);
  transform: rotate(-16deg);
}

.link--bc {
  left: calc(50% + 40px);
  right: calc(18% + 60px);
  top: calc(46% + 22px);
  transform: rotate(16deg);
}

@keyframes flowline {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

@media (max-width: 860px) {
  .product__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- record */

.records {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rec {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.rec__meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.rec__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rec__meta span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lotus);
}

.rec__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.rec__desc {
  flex: 1;
  font-size: 14px;
  color: var(--ink-2);
}

.rec__link {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 1080px) {
  .records {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .records {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- founder */

.founder {
  padding-top: 0;
}

.founder__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.founder__photo {
  width: clamp(120px, 16vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.founder__body {
  display: grid;
  gap: 12px;
}

.founder__name {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
}

.founder__role {
  font-size: 14px;
  color: var(--ink-3);
}

.founder__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.founder__tags li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

.founder__bio {
  max-width: 44em;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
}

.founder__stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 8px;
}

.founder__stats div {
  display: grid;
  gap: 2px;
}

.founder__stats dt {
  order: 2;
  font-size: 12px;
  color: var(--ink-3);
}

.founder__stats dd {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.founder__stats small {
  margin-left: 2px;
  font-size: 13px;
  font-weight: 700;
}

.motto {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-top: 16px;
  padding: 22px 28px;
  border-radius: var(--radius);
  background: var(--space);
  color: #fff;
  transition: transform 0.3s var(--ease);
}

.motto:hover {
  transform: translateY(-2px);
}

.motto__en {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  background: var(--lotus);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.motto__ja {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 720px) {
  .founder__card {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- faq */

.faq {
  background: var(--white);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 72px);
}

.faq__list {
  border-top: 1px solid var(--line-2);
}

.faq__list details {
  border-bottom: 1px solid var(--line-2);
}

.faq__list summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::before,
.faq__list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.faq__list summary::after {
  transform: rotate(90deg);
}

.faq__list details[open] summary::after {
  transform: rotate(0deg);
}

.faq__list details p {
  padding: 0 48px 24px 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .faq__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- cta */

.cta {
  background: var(--white);
  padding-top: 0;
}

.cta__card {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) clamp(24px, 6vw, 80px) clamp(150px, 16vw, 200px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--space);
  color: #fff;
  text-align: center;
}

.cta__horizon {
  position: absolute;
  left: 50%;
  bottom: -1460px;
  width: 1800px;
  height: 1600px;
  margin-left: -900px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 2%, #2c6a86 0%, #10314a 18%, #05101c 42%);
  box-shadow: 0 -2px 30px rgba(120, 200, 255, 0.55), 0 -18px 90px rgba(80, 160, 255, 0.28), inset 0 10px 40px rgba(160, 230, 255, 0.35);
  pointer-events: none;
}

.cta__title {
  position: relative;
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 800;
}

.cta__lead {
  position: relative;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

/* ---------------------------------------------------------------- star map */

.starmap {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.starmap::backdrop {
  background: rgba(2, 4, 8, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.starmap[open] {
  animation: fade 0.6s var(--ease);
}

.starmap__inner {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: 28px var(--gutter) 20px;
  background:
    radial-gradient(1200px 600px at 70% 20%, rgba(40, 70, 110, 0.35), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(30, 90, 80, 0.25), transparent 60%),
    rgba(3, 6, 11, 0.94);
}

.starmap__head {
  position: relative;
  max-width: var(--wrap);
  width: 100%;
  margin-inline: auto;
  padding-right: 56px;
}

.starmap__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
}

.starmap__lead {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.64);
}

.starmap__close {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
}

.starmap__close span::before,
.starmap__close span::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: 21px;
  height: 1.5px;
  background: #fff;
  transform: rotate(45deg);
}

.starmap__close span::after {
  transform: rotate(-45deg);
}

.starmap__sky {
  position: relative;
  min-height: 0;
  margin: 10px 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.starmap__sky::-webkit-scrollbar {
  display: none;
}

.starmap__sky svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sm-line {
  fill: none;
  stroke: rgba(150, 220, 210, 0.22);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.4s;
}

.sm-group.is-active .sm-line {
  stroke: rgba(160, 240, 220, 0.75);
}

.sm-group-label {
  fill: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--font);
}

.sm-group.is-active .sm-group-label {
  fill: #c9f5ea;
}

.sm-star {
  cursor: pointer;
  outline: none;
}

.sm-star circle.core {
  fill: #fff;
  filter: drop-shadow(0 0 4px rgba(190, 235, 255, 0.9));
  transition: r 0.3s var(--ease);
}

.sm-star circle.hit {
  fill: transparent;
}

.sm-star text {
  fill: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-family: var(--font);
  pointer-events: none;
  transition: fill 0.3s;
}

.sm-star.is-featured text {
  fill: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}

.sm-star:hover text,
.sm-star:focus-visible text,
.sm-star.is-active text {
  fill: #c9f5ea;
}

.sm-star:focus-visible circle.core,
.sm-star.is-active circle.core {
  fill: #c9f5ea;
}

.starmap__card {
  position: absolute;
  left: var(--gutter);
  bottom: 84px;
  width: min(360px, calc(100% - var(--gutter) * 2));
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 14, 21, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}

.starmap__card.is-on {
  opacity: 1;
  transform: none;
}

.starmap__card .c-group {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(200, 245, 230, 0.8);
}

.starmap__card .c-name {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
}

.starmap__card .c-years {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.starmap__card .c-line {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
}

.starmap__card .c-source {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.starmap__foot {
  max-width: var(--wrap);
  width: 100%;
  margin-inline: auto;
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.starmap__foot a {
  margin-left: 6px;
  color: rgba(200, 245, 230, 0.85);
  border-bottom: 1px solid rgba(200, 245, 230, 0.4);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .starmap__inner {
    padding-top: 20px;
  }

  .starmap__sky svg {
    display: block;
    margin-bottom: 240px;
  }

  .starmap__card {
    left: var(--gutter);
    right: var(--gutter);
    bottom: 96px;
    width: auto;
  }
}
