/* ============================================================
   Homepage-only styles (hero layers, contact/about inline)
   ============================================================ */

/* ── Hero layers ─────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 3; pointer-events: none; }
.hero > .container a,
.hero > .container button { pointer-events: auto; }

/* Layer 1 — time-of-day orbs */
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity 1.4s ease;
}
#hero-canvas.loaded { opacity: 1; }

/* Layer 2 — aurora stripe (Stripe-style, right side) */
.aurora-right {
  position: absolute;
  top: -30%; right: -8%;
  width: 65%; height: 160%;
  pointer-events: none; z-index: 1;
  opacity: 0;
  transition: opacity 2s ease 0.5s;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg at 55% 45%,
    rgba(1,95,166,0.00)   0deg,
    rgba(1,95,166,0.13)  55deg,
    rgba(74,144,226,0.10) 100deg,
    rgba(200,216,240,0.08) 155deg,
    rgba(1,51,102,0.11)  210deg,
    rgba(1,95,166,0.07)  280deg,
    rgba(1,95,166,0.00)  360deg
  );
  filter: blur(55px);
  animation: aurora-pulse 9s ease-in-out infinite alternate;
}
.aurora-right.loaded { opacity: 1; }
.aurora-right.paused { animation-play-state: paused; }
@keyframes aurora-pulse {
  0%   { transform: rotate(0deg)   scale(1.00); filter: blur(55px); }
  33%  { transform: rotate(8deg)   scale(1.06); filter: blur(48px); }
  66%  { transform: rotate(-5deg)  scale(0.97); filter: blur(60px); }
  100% { transform: rotate(12deg)  scale(1.04); filter: blur(52px); }
}

/* Layer 3 — Japanese chars + ripple canvas */
#hero-fx {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: auto;
  cursor: crosshair;
}

/* ── Hero entrance — CSS-only, fires on mount, ≤300ms ─── */
@keyframes heroLineIn {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .reveal-line > span {
  display: block;
  opacity: 1;
  animation: heroLineIn 0.3s cubic-bezier(0.16,1,0.3,1) 0s both;
}
.hero .reveal-line:nth-child(2) > span {
  animation-delay: 0.08s;
}
.hero .badge        { animation: heroFadeUp 0.3s ease 0.04s both; }
.hero .hero-kicker  { animation: heroFadeUp 0.3s ease 0.07s both; }
.hero .hero-sub     { animation: heroFadeUp 0.3s ease 0.10s both; }
.hero .hero-actions { animation: heroFadeUp 0.3s ease 0.13s both; }
.hero-headline       { color: var(--text); }
.hero-headline .accent { color: var(--indigo); }

/* ── Single-page section anchors ────────────────────── */
#work    { scroll-margin-top: 80px; }
#about   { scroll-margin-top: 80px; }
#contact { scroll-margin-top: 80px; }

/* ── Contact inline ─────────────────────────────────── */
.contact-inline {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}
.contact-inline-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-inline-headline {
  font-family: var(--font-alt);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.contact-inline-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-inline-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color 0.25s var(--ease);
}
.contact-inline-link:first-child { border-top: 1px solid var(--border); }
.contact-inline-link:hover { color: var(--indigo); }
.contact-inline-link-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-inline-icon {
  width: 36px; height: 36px;
  background: var(--indigo-dimmer);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo);
  flex-shrink: 0;
  transition: background 0.25s, transform 0.3s var(--ease-spring);
}
.contact-inline-link:hover .contact-inline-icon {
  background: var(--indigo-dim);
  transform: scale(1.08) rotate(-5deg);
}
.contact-inline-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}
.contact-inline-value {
  font-size: 15px;
  font-weight: 500;
}
.contact-inline-arrow {
  color: var(--text-muted);
  transition: transform 0.3s var(--ease), color 0.25s;
}
.contact-inline-link:hover .contact-inline-arrow {
  transform: translate(3px, -3px);
  color: var(--indigo);
}

/* ── About inline ───────────────────────────────────── */
.about-inline {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}
.about-inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-inline-quote {
  font-family: var(--font-alt);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.about-inline-quote em {
  font-style: normal;
  color: var(--indigo);
}
.about-inline-body p {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 12px;
}
.about-inline-body p:last-child { margin-bottom: 0; }
.about-inline-body strong { color: var(--text); font-weight: 600; }
.about-photo-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.about-photo-wrap-inline {
  width: 100%;
  max-width: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--indigo-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px;
}
.about-photo-wrap-inline img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.6s var(--ease-out);
}
.about-photo-wrap-inline:hover img { transform: scale(1.03); }

/* ── Testimonials — full width below about grid ─────── */
.about-testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  margin-top: clamp(88px, 10vw, 128px);
  padding-top: clamp(48px, 5vw, 64px);
  border-top: 1px solid var(--border);
}
@media (max-width: 768px) {
  .contact-inline-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-inline-grid    { grid-template-columns: 1fr; gap: 40px; }
  .about-testimonials   { grid-template-columns: 1fr; margin-top: 56px; padding-top: 40px; }
}
