:root {
  color-scheme:dark;
  --bg:#111018;
  --panel:#1b1924;
  --text:#f7f4fb;
  --muted:#aaa5b4;
  --accent:#c7a6ff;
  --pink:#ff9acb;
  --line:#ffffff18;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}

body {
  margin:0;
  background:radial-gradient(ellipse at 80% 0%,#573b7540,transparent 38rem),var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  line-height:1.7;
}

a {
  color:inherit;
  text-decoration:none;
}

.wrap {
  width:min(100% - 40px,1000px);
  margin:auto;
}

.nav {
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}

.brand {
  font-weight:800;
  letter-spacing:.08em;
}

.brand b {
  color:var(--accent);
}

.navlinks {
  display:flex;
  gap:25px;
  color:var(--muted);
  font-size:14px;
}

.hero {
  min-height:500px;
  display:grid;
  grid-template-columns:1.25fr .75fr;
  align-items:center;
  gap:40px;
  padding:66px 0;
}

.eyebrow {
  color:var(--accent);
  font-size:13px;
  letter-spacing:.18em;
  font-weight:700;
}

.hero h1 {
  font-size:clamp(32px,5vw,58px);
  line-height:1.18;
  margin:16px 0;
  white-space:nowrap;
}

.hero p {
  color:var(--muted);
  max-width:520px;
}

.buttons {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
}

.button {
  padding:12px 20px;
  border-radius:999px;
  background:var(--accent);
  color:#21192e;
  font-weight:750;
}

.button.secondary {
  background:transparent;
  border:1px solid var(--line);
  color:var(--text);
}

.avatar {
  width:min(100%,300px);
  aspect-ratio:1;
  border-radius:50%;
  margin:auto;
  display:block;
  object-fit:cover;
  object-position:50% 31%;
  box-shadow:0 25px 80px #c7a6ff28;
  border:3px solid #ffffff24;
}

.section {
  padding:52px 0;
  border-top:1px solid var(--line);
}

.section h2 {
  font-size:25px;
  margin:0 0 22px;
}

.section h2 span {
  color:var(--accent);
  font-size:12px;
  letter-spacing:.16em;
  display:block;
  margin-bottom:4px;
}

.grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.card {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  padding:22px;
}

.card strong {
  display:block;
  font-size:18px;
  margin-bottom:6px;
}

.card p,.muted {
  color:var(--muted);
  font-size:14px;
  margin:0;
}

.schedule {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.day {
  color:var(--pink);
  font-weight:800;
}

.socials {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.social {
  padding:12px 18px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
}

.social:hover,.button.secondary:hover {
  border-color:var(--accent);
  color:var(--text);
}

footer {
  padding:30px 0 42px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}

@media(max-width:700px) {
  .wrap {
    width:min(100% - 30px,560px);
  }

  .nav {
    height:64px;
  }

  .navlinks {
    gap:13px;
    font-size:12px;
  }

  .hero {
    grid-template-columns:1fr;
    text-align:center;
    padding:50px 0 44px;
    gap:30px;
  }

  .hero h1 {
    font-size:clamp(30px,9vw,42px);
    white-space:normal;
  }

  .hero p {
    margin-inline:auto;
  }

  .avatar {
    width:205px;
    grid-row:1;
  }

  .hero-copy {
    grid-row:2;
  }

  .grid {
    grid-template-columns:1fr;
  }

  .section {
    padding:38px 0;
  }

  .schedule {
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }

}

body {
  overflow-x:hidden;
}

body::before {
  content:"";
  position:fixed;
  inset:-35% -22%;
  z-index:0;
  pointer-events:none;
  background:radial-gradient(ellipse at 18% 28%,#a56cff48 0%,transparent 39%),radial-gradient(ellipse at 76% 30%,#ff78bd35 0%,transparent 37%),radial-gradient(ellipse at 55% 78%,#ffb86b25 0%,transparent 34%),radial-gradient(ellipse at 88% 82%,#8062ff30 0%,transparent 38%);
  filter:blur(36px);
  opacity:.82;
  animation:aurora-drift 24s ease-in-out infinite alternate;
}

body::after {
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(circle at 12% 22%,#fff9 0 1px,transparent 1.8px),radial-gradient(circle at 74% 18%,#f4dcffb0 0 1px,transparent 1.8px),radial-gradient(circle at 38% 72%,#ffe8cf99 0 1px,transparent 1.8px),radial-gradient(circle at 88% 66%,#fff8 0 1px,transparent 1.8px),radial-gradient(circle at 59% 43%,#e8d4ff99 0 1px,transparent 1.8px);
  background-size:390px 340px;
  opacity:.28;
  animation:stardust-drift 38s linear infinite;
}

body>* {
  position:relative;
  z-index:1;
}

@keyframes aurora-drift {
  0% {
    transform:translate3d(-3%,-2%,0) rotate(-4deg) scale(1);
  }

  50% {
    transform:translate3d(2%,3%,0) rotate(2deg) scale(1.08);
  }

  100% {
    transform:translate3d(4%,-1%,0) rotate(5deg) scale(1.03);
  }

}

@keyframes stardust-drift {
  from {
    background-position:0 0,0 0,0 0,0 0,0 0;
  }

  to {
    background-position:40px 70px,-35px 55px,60px -35px,-45px -25px,25px 45px;
  }

}

.avatar {
  animation:avatar-float 6s ease-in-out infinite;
  transition:box-shadow .35s ease,border-color .35s ease;
}

@keyframes avatar-float {
  0%,100% {
    transform:translateY(0);
  }

  50% {
    transform:translateY(-8px);
  }

}

.avatar:hover {
  box-shadow:0 28px 90px #c7a6ff55;
  border-color:#c7a6ff88;
}

.button,.social {
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,color .22s ease,background .22s ease;
}

.button:hover {
  transform:translateY(-3px);
  box-shadow:0 10px 28px #c7a6ff45;
}

.social:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 24px #c7a6ff1c;
}

.card {
  transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease;
}

.card:hover {
  transform:translateY(-4px);
  border-color:#c7a6ff55;
  box-shadow:0 14px 34px #0002;
}

.motion-ready .reveal {
  opacity:0;
  transform:translateY(20px);
  transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);
}

.motion-ready .reveal.is-visible {
  opacity:1;
  transform:translateY(0);
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }

}


/* Small spacing helpers for the profile and etiquette sections. */
.profile-listeners { margin-top: 12px; }
.manners-list { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 14px; }
.manners-list li + li { margin-top: 8px; }
.perks-title { margin-top: 32px; }
.hero-profile { min-width: 0; }


/* Keep the custom Japanese list markers from the original copy. */
.manners-list {
  list-style: none;
  padding-left: 0;
}

/* Keep the profile image above the introduction on narrow screens. */
@media (max-width: 700px) {
  .hero-profile { grid-row: 1; }
  .hero-copy { grid-row: 2; }
}

/* Preserve the card hover lift after its reveal animation completes. */
.motion-ready .card.reveal.is-visible:hover {
  transform: translateY(-4px);
}


/* Add a softly pulsing halo around the profile image. */
.hero-profile {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-profile::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(86vw, 340px);
  aspect-ratio: 1;
  border: 1px solid #d6b8ff2b;
  border-radius: 50%;
  box-shadow: 0 0 0 12px #c7a6ff08, 0 0 55px #c7a6ff20;
  animation: halo-pulse 4.5s ease-in-out infinite;
}

@keyframes halo-pulse {
  0%, 100% { transform: scale(.96); opacity: .55; }
  50% { transform: scale(1.04); opacity: 1; }
}

/* Animate the underline when each section enters the viewport. */
.section h2 {
  position: relative;
  width: fit-content;
}

.section h2::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  transition: width .65s cubic-bezier(.2,.7,.2,1);
}

.motion-ready .section.reveal.is-visible h2::after {
  width: 44px;
}

/* Give links a quick underline sweep and a gentle pressed response. */
.navlinks a {
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}

.navlinks a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.navlinks a:hover {
  color: var(--text);
}

.navlinks a:hover::after {
  transform: scaleX(1);
}

.button:active,
.social:active {
  transform: translateY(0) scale(.97);
}

/* Add a restrained light sweep to profile cards on hover. */
.card {
  background-image: linear-gradient(125deg, #ffffff08, transparent 42%);
  background-repeat: no-repeat;
  background-size: 220% 220%;
  background-position: 100% 100%;
}

.card:hover {
  background-position: 0 0;
}

@media (max-width: 700px) {
  .hero-profile::before {
    width: 230px;
  }
}

/* Let the non-image content carry a little of the page motion. */
.card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent, #d8baff18, transparent);
  transform: translateX(-150%) skewX(-18deg);
  animation: card-sheen 11s ease-in-out infinite;
}

.grid .card:nth-child(2)::before { animation-delay: 1.8s; }
.grid .card:nth-child(3)::before { animation-delay: 3.6s; }

@keyframes card-sheen {
  0%, 12% { transform: translateX(-150%) skewX(-18deg); opacity: 0; }
  18% { opacity: 1; }
  42%, 100% { transform: translateX(350%) skewX(-18deg); opacity: 0; }
}

/* Bring the table manners in one line at a time as they scroll into view. */
.motion-ready .manners-list li {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1);
}

.motion-ready .section.reveal.is-visible .manners-list li {
  opacity: 1;
  transform: translateX(0);
}

.motion-ready .manners-list li:nth-child(1) { transition-delay: .08s; }
.motion-ready .manners-list li:nth-child(2) { transition-delay: .2s; }
.motion-ready .manners-list li:nth-child(3) { transition-delay: .32s; }

/* Give the small section labels a quiet pulse. */
.section h2 span {
  animation: label-glow 5s ease-in-out infinite;
}

@keyframes label-glow {
  0%, 100% { text-shadow: 0 0 0 #c7a6ff00; }
  50% { text-shadow: 0 0 12px #c7a6ff80; }
}
