/* Homepage-only refinements: keep service pages on the shared theme. */
.site-intro {
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(32, 216, 235, .16), transparent 31%),
    radial-gradient(circle at 82% 78%, rgba(13, 148, 177, .2), transparent 35%),
    #07162d;
  color: #fff;
  display: none;
  inset: 0;
  justify-items: center;
  overflow: hidden;
  position: fixed;
  transition: opacity 550ms cubic-bezier(.4, 0, .2, 1), visibility 550ms ease;
  z-index: 9999;
}

.site-intro::before,
.site-intro::after {
  border: 1px solid rgba(91, 226, 238, .13);
  border-radius: 50%;
  content: "";
  height: min(72vw, 920px);
  position: absolute;
  width: min(72vw, 920px);
}

.site-intro::before { left: -26vw; top: -55vw; }
.site-intro::after { bottom: -56vw; right: -25vw; }

.site-intro-enabled .site-intro {
  display: grid;
  animation: site-intro-failsafe 1ms 4s forwards;
}

.site-intro.is-leaving {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.site-intro-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.site-intro-mark {
  box-shadow: 0 16px 48px rgba(16, 203, 224, .18);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(12px) scale(.94);
  animation: site-intro-rise 650ms 100ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.site-intro-company {
  color: rgba(226, 247, 250, .76);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  margin: 0 0 18px;
  opacity: 0;
  text-transform: uppercase;
  animation: site-intro-rise 650ms 220ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.site-intro-message {
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.35;
  margin: 0;
}

.site-intro-message span {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  animation: site-intro-rise 720ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.site-intro-message span:first-child { animation-delay: 330ms; }
.site-intro-message span:last-child {
  animation-delay: 440ms;
  background: linear-gradient(90deg, #7cecf4, #fff 52%, #65d7e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-intro-progress {
  background: rgba(255, 255, 255, .14);
  height: 1px;
  margin-top: 30px;
  overflow: hidden;
  width: min(320px, 66vw);
}

.site-intro-progress span {
  background: linear-gradient(90deg, #2ad8e9, #fff, #0e8ba8);
  display: block;
  height: 100%;
  transform: translateX(-100%);
  animation: site-intro-progress 2.05s 180ms cubic-bezier(.25, .7, .25, 1) forwards;
}

body.intro-active { overflow: hidden; }

@keyframes site-intro-rise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes site-intro-progress {
  to { transform: translateX(0); }
}

@keyframes site-intro-failsafe {
  to { pointer-events: none; visibility: hidden; }
}

main > .hero {
  background: #edf8fc;
  isolation: isolate;
}

main > .hero::before {
  opacity: .07;
  z-index: 2;
}

main > .hero .hero-media,
main > .hero .hero-flow-scrim {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

main > .hero .hero-media {
  background:
    radial-gradient(circle at 86% 18%, rgba(83, 220, 232, .17), transparent 27%),
    radial-gradient(circle at 75% 82%, rgba(14, 116, 144, .13), transparent 31%),
    linear-gradient(120deg, #f8fcfe 0%, #e9f7fb 48%, #dff4f8 100%);
  overflow: hidden;
  z-index: 0;
}

main > .hero .hero-flow-canvas,
main > .hero .hero-flow-grid,
main > .hero .hero-flow-glow {
  inset: 0;
  position: absolute;
}

main > .hero .hero-flow-canvas {
  display: block;
  height: 100%;
  opacity: .94;
  width: 100%;
}

main > .hero .hero-flow-grid {
  background-image:
    linear-gradient(rgba(15, 96, 127, .038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 96, 127, .038) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 13%, rgba(0, 0, 0, .3) 48%, #000 100%);
  opacity: .42;
}

main > .hero .hero-flow-glow {
  border-radius: 50%;
  filter: blur(4px);
}

main > .hero .hero-flow-glow-one {
  background: radial-gradient(circle, rgba(53, 217, 230, .2), transparent 67%);
  height: min(48vw, 640px);
  left: auto;
  right: -12%;
  top: -29%;
  width: min(48vw, 640px);
  animation: hero-glow-drift 12s ease-in-out infinite alternate;
}

main > .hero .hero-flow-glow-two {
  background: radial-gradient(circle, rgba(13, 104, 139, .13), transparent 69%);
  bottom: -44%;
  height: min(42vw, 560px);
  left: 46%;
  top: auto;
  width: min(42vw, 560px);
  animation: hero-glow-drift 15s 1.2s ease-in-out infinite alternate-reverse;
}

@keyframes hero-glow-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(.97); }
  to { transform: translate3d(2%, 2%, 0) scale(1.04); }
}

main > .hero .hero-flow-scrim {
  background:
    radial-gradient(circle at 78% 48%, rgba(255, 255, 255, .48) 0%, rgba(255, 255, 255, .14) 25%, transparent 48%),
    linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(250, 253, 255, .93) 37%, rgba(244, 251, 253, .72) 63%, rgba(235, 248, 251, .32) 100%);
  z-index: 1;
}

main > .hero > .container {
  position: relative;
  z-index: 3;
}

main > .hero .hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 32px;
  min-height: 600px;
  padding-block: 56px;
}

main > .hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1.3;
  letter-spacing: -.025em;
}

main > .hero .hero-title-line { display: block; }

main > .hero .hero-tagline {
  color: #0b6b82;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.6;
  margin-top: 22px;
  text-wrap: balance;
}

main > .hero .hero-services-label { font-size: .875rem; letter-spacing: .05em; }

main > .hero .hero-services-label--mobile { display: none; }

main > .hero .hero-lead {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.9;
  margin-top: 22px;
}

main > .hero .hero-actions { margin-top: 28px; gap: 24px; }

main > .hero .hero-story-link {
  background: rgba(255, 255, 255, .93);
  border: 1px solid #d6dee8;
  border-left: 4px solid #0891b2;
  color: inherit;
  display: block;
  margin-top: 24px;
  max-width: 640px;
  padding: 26px 28px;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

main > .hero .hero-story-link:hover {
  border-color: #0891b2;
  box-shadow: 0 14px 32px rgba(11, 36, 83, .12);
  transform: translateY(-2px);
}

main > .hero .hero-story-link:focus-visible {
  outline: 3px solid rgba(14, 116, 144, .3);
  outline-offset: 3px;
}

main > .hero .hero-story-kicker {
  color: #0e7490;
  display: block;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

main > .hero .hero-story-link strong {
  color: #0d1f4e;
  display: block;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 8px;
}

main > .hero .hero-story-link p {
  color: #475569;
  font-size: .9375rem;
  line-height: 1.9;
  margin-top: 10px;
}

main > .hero .hero-story-cta {
  align-items: center;
  color: #0d1f4e;
  display: inline-flex;
  font-size: .9375rem;
  font-weight: 700;
  gap: 10px;
  margin-top: 16px;
}

main > .hero .hero-story-cta::after {
  color: #0e7490;
  content: "→";
  transition: transform 180ms ease;
}

main > .hero .hero-story-link:hover .hero-story-cta {
  text-decoration: underline;
  text-underline-offset: 5px;
}

main > .hero .hero-story-link:hover .hero-story-cta::after {
  transform: translateX(3px);
}

main > .hero .button-primary {
  border-radius: 999px;
  background: #0e7490;
  min-height: 52px;
  padding-inline: 28px;
  box-shadow: 0 8px 20px rgba(14, 116, 144, .16);
}

main > .hero .button-primary:hover { background: #0d1f4e; }

main > .hero .hero-visual { min-height: 460px; }

main > .hero .hero-visual::before {
  background: radial-gradient(ellipse, rgba(255, 255, 255, .78), transparent 70%);
  inset: 8% -8% 12%;
  filter: none;
}

/* Photo 016 has transparent side margins; the square frame retains both hands. */
main > .hero .hero-visual picture {
  inset: auto auto 58px 50%;
  width: min(100%, 402px);
  height: auto;
  aspect-ratio: 1;
  transform: translateX(-50%);
}

main > .hero .hero-portrait {
  object-fit: cover;
  object-position: center bottom;
  filter: drop-shadow(0 12px 24px rgba(11, 36, 83, .1));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 98%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 98%, transparent 100%);
}

main > .hero .hero-person {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  color: #0d1f4e;
  text-align: center;
  line-height: 1.6;
}

main > .hero .hero-person span { display: block; font-size: .875rem; color: #334155; }
main > .hero .hero-person strong { display: block; font-size: 1.25rem; font-weight: 700; }

@media (min-width: 821px) and (max-width: 960px) {
  main > .hero .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 24px; }
  main > .hero .hero-visual { min-height: 420px; }
}

@media (max-width: 820px) {
  .site-header {
    background: #fff;
    isolation: isolate;
  }

  main > .hero .hero-flow-canvas { opacity: .72; }
  main > .hero .hero-flow-grid { background-size: 54px 54px; opacity: .28; }
  main > .hero .hero-flow-glow-one { height: 480px; right: -46%; top: 38%; width: 480px; }
  main > .hero .hero-flow-glow-two { bottom: -8%; height: 400px; left: -44%; width: 400px; }
  main > .hero .hero-flow-scrim {
    background:
      radial-gradient(circle at 90% 74%, rgba(255, 255, 255, .26) 0%, transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(248, 252, 254, .92) 53%, rgba(239, 249, 252, .68) 100%);
  }
  main > .hero .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 44px 32px; gap: 28px; }
  main > .hero .hero-copy { max-width: 640px; }
  main > .hero .hero-services-label--desktop { display: none; }
  main > .hero .hero-services-label--mobile {
    display: block;
    font-size: .8125rem;
    letter-spacing: .035em;
    margin-bottom: 18px;
    white-space: nowrap;
  }
  main > .hero h1 { font-size: clamp(2rem, 7.1vw, 3rem); }
  main > .hero .hero-tagline { font-size: clamp(1.25rem, 4.5vw, 1.5rem); margin-top: 18px; }
  main > .hero .hero-lead {
    font-size: 1rem;
    line-height: 1.82;
    margin-top: 18px;
    max-width: 32rem;
    text-wrap: pretty;
  }
  main > .hero .hero-visual { height: 330px; min-height: 0; width: min(100%, 390px); margin: 0 auto; }
  main > .hero .hero-visual picture { inset: auto auto 54px 50%; width: min(100%, 276px); }
  main > .hero .hero-actions { margin-top: 24px; gap: 16px; }
  main > .hero .hero-story-link { max-width: 32rem; }
}

@media (max-width: 480px) {
  main > .hero .hero-grid { padding-block: 36px 28px; gap: 24px; }
  main > .hero h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.15rem);
    line-height: 1.32;
  }
  main > .hero .hero-tagline {
    font-size: clamp(1.125rem, 4.8vw, 1.25rem);
    line-height: 1.55;
    margin-top: 16px;
  }
  main > .hero .hero-lead { line-height: 1.78; }
  main > .hero .hero-actions { margin-top: 22px; }
  main > .hero .hero-story-link {
    margin-top: 20px;
    padding: 22px 20px;
  }
  main > .hero .hero-story-link strong { font-size: 1.0625rem; }
  main > .hero .hero-story-link p { font-size: .875rem; line-height: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
  .site-intro { display: none !important; }
  main > .hero .hero-flow-glow { animation: none; }
  main > .hero .hero-story-link,
  main > .hero .hero-story-cta::after { transition: none; }
  main > .hero .hero-story-link:hover { transform: none; }
}
