:root {
  --sunset-amber: #fddcab;
  --sunset-blush: #f498b8;
  --sunset-lilac: #caa5ff;
  --twilight-ink: #1d1a27;
  --forest-green: #3f5f4b;
  --paper-base: #fdf6ec;
  --ink-soft: #4d3a33;
  --ink-muted: #7c665c;
  --glow-gold: rgba(255, 196, 138, .65);
  --glow-rose: rgba(241, 153, 180, .75);
}

body.personal-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Work Sans", "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-soft);
  background: linear-gradient(180deg, #fbeedd 0%, #f8d9d0 35%, #f2c6e6 70%, #f9f6ff 100%);
  overflow-x: hidden;
}

.personal-body.reduce-motion * {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}

.personal-sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.sunset-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 234, 187, .9), transparent 55%),
              radial-gradient(circle at 80% 15%, rgba(255, 192, 203, .8), transparent 50%),
              linear-gradient(160deg, #ffecd2 0%, #fcb69f 35%, #f7a1c5 65%, #c8b6ff 100%);
  filter: blur(18px);
  animation: sunPulse 28s ease-in-out infinite;
}

.sunset-halo {
  position: absolute;
  width: 520px;
  height: 520px;
  top: 10%;
  left: 12%;
  background: radial-gradient(circle, rgba(255, 238, 195, .95) 0%, rgba(255, 238, 195, 0) 70%);
  border-radius: 50%;
  filter: blur(8px);
  animation: breatheGlow 18s ease-in-out infinite;
}

.paper-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.2), rgba(255,255,255,.05)),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Crect width='160' height='160' fill='%23fdf6ec'/%3E%3Ccircle cx='20' cy='20' r='0.6' fill='%23d7c9bb'/%3E%3Ccircle cx='80' cy='90' r='0.6' fill='%23d7c9bb'/%3E%3Ccircle cx='130' cy='50' r='0.6' fill='%23d7c9bb'/%3E%3Ccircle cx='50' cy='140' r='0.5' fill='%23d7c9bb'/%3E%3C/svg%3E");
  opacity: .75;
  mix-blend-mode: multiply;
  animation: paperFloat 40s linear infinite;
}

.wind-ribbon {
  position: absolute;
  width: 160%;
  height: 240px;
  left: -30%;
  background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.35), rgba(255,255,255,.02));
  filter: blur(12px);
  opacity: .35;
  animation: windDance 36s linear infinite;
}

.wind-ribbon-one { top: 35%; }
.wind-ribbon-two { top: 60%; animation-duration: 42s; animation-delay: -6s; }

.particle-swarm {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0));
  border-radius: 50%;
  left: calc(5% + 5% * var(--i));
  top: calc(10% + 3% * var(--i));
  animation: particleDrift calc(14s + var(--i) * .4s) linear infinite;
  opacity: .6;
}

.personal-shell {
  max-width: 1024px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  position: relative;
  z-index: 1;
}

.personal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .45);
  box-shadow: 0 30px 80px rgba(69, 45, 32, .15);
  border: 1px solid rgba(255, 255, 255, .6);
  backdrop-filter: blur(18px);
}

.personal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.personal-brand__icon {
  font-size: 32px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.18));
  animation: floatSoft 6s ease-in-out infinite;
}

.personal-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.personal-brand__text .eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-muted);
}

.personal-brand__text .title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 20px;
  color: var(--ink-soft);
}

.personal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.personal-nav a {
  margin: 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 11px;
  color: var(--ink-muted);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}

.personal-nav a.active,
.personal-nav a:hover {
  color: var(--forest-green);
  border-color: rgba(63, 95, 75, .45);
}

.return-link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--ink-muted);
  text-decoration: none;
}

.personal-hero {
  margin-top: 40px;
  padding: 48px;
  border-radius: 36px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 35px 120px rgba(93, 68, 45, .18);
  border: 1px solid rgba(255, 255, 255, .8);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0 0 12px 0;
}

.personal-hero h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 60px);
  margin: 0;
  color: var(--forest-green);
  text-shadow: 0 10px 25px rgba(250, 200, 160, .45);
}

.hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 16px;
  max-width: 780px;
}

.personal-content {
  margin-top: 32px;
  padding: 40px 48px;
  border-radius: 32px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 60px 160px rgba(63, 49, 43, .25);
  border: 1px solid rgba(255, 255, 255, .9);
  font-size: 18px;
  line-height: 1.9;
}

.personal-content h2,
.personal-content h3 {
  font-family: "Playfair Display", serif;
  color: var(--forest-green);
  margin-top: 48px;
  margin-bottom: 16px;
}

.personal-content p {
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.personal-content a {
  color: #c26f7d;
  text-decoration: none;
  border-bottom: 1px dashed rgba(194, 111, 125, .4);
}

.personal-content strong {
  color: var(--forest-green);
}

.ghibli-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.ghibli-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 20px 60px rgba(58, 42, 33, .12);
  border: 1px solid rgba(255, 255, 255, .7);
  position: relative;
  overflow: hidden;
}

.ghibli-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 55%);
  opacity: .8;
  pointer-events: none;
}

.ghibli-card h3 {
  margin-top: 0;
  font-size: 20px;
}

.ghibli-card p {
  margin-bottom: 0;
  font-size: 16px;
  color: var(--ink-muted);
}

.miyuki-portrait {
  position: relative;
  margin: 2rem auto;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0,
              rgba(255, 220, 180, 0.65),
              rgba(255, 166, 200, 0.3),
              rgba(190, 170, 255, 0.18));
  box-shadow:
     0 20px 40px rgba(0, 0, 0, 0.35),
     0 0 45px rgba(255, 210, 180, 0.75);
  animation: floatSoft 9s ease-in-out infinite;
}

.miyuki-portrait::before,
.miyuki-portrait::after {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: 999px;
  background: radial-gradient(circle,
              rgba(255, 214, 180, 0.6),
              rgba(255, 166, 200, 0));
  filter: blur(40px);
  opacity: .65;
  animation: breatheGlow 12s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.miyuki-portrait::after {
  inset: -30%;
  background: radial-gradient(circle,
              rgba(190, 170, 255, 0.5),
              rgba(255, 255, 255, 0));
  animation-duration: 18s;
  animation-delay: -4s;
}

.miyuki-portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  transform: scale(1);
  transition: transform 4.2s ease-in-out, filter 4.2s ease-in-out;
}

/* Gentle breathing animation on hover */
.miyuki-portrait:hover img {
  transform: scale(1.025);
  filter: saturate(1.05);
}

.personal-footer {
  margin-top: 48px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--ink-muted);
}

@keyframes floatSoft {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes breatheGlow {
  0% { opacity: .55; transform: scale(1); }
  50% { opacity: .95; transform: scale(1.05); }
  100% { opacity: .55; transform: scale(1); }
}

@keyframes particleDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: .2; }
  50% { opacity: .8; }
  100% { transform: translate3d(-40px, -180px, 0) scale(1.2); opacity: 0; }
}

@keyframes paperFloat {
  0% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(30px, -20px, 0); }
  100% { transform: translate3d(0,0,0); }
}

@keyframes sunPulse {
  0% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: .9; }
}

@keyframes windDance {
  0% { transform: translateX(0); }
  100% { transform: translateX(-20%); }
}

@media (max-width: 768px) {
  .personal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .personal-hero,
  .personal-content {
    padding: 32px;
  }

  .personal-nav {
    width: 100%;
  }

  .return-link { order: 3; }
}

@media (max-width: 520px) {
  .personal-shell { padding: 32px 18px 72px; }
  .personal-hero h1 { font-size: 36px; }
  .personal-content { padding: 28px; }
}

/* ------------------------------
   CONTACT PORTAL (video block)
   ------------------------------ */

.contact-portal {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  background: rgba(20, 20, 35, 0.65);
  border: 1px solid rgba(130, 0, 255, 0.4);
  box-shadow: 0 0 40px rgba(130, 0, 255, 0.25);
}

.contact-portal h2 {
  font-size: 32px;
  margin-bottom: 1rem;
}

.contact-video-wrapper {
  margin: 1.5rem auto;
  max-width: 600px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.25);
}

.contact-video-wrapper video {
  width: 100%;
  display: block;
  border-radius: 24px;
}

.contact-info {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 19px;
}

/* ------------------------------
   CONTACT VIDEO AUDIO BUTTON
   ------------------------------ */

.audio-toggle {
  margin-top: 12px;
  padding: 8px 14px;
  background: rgba(0, 255, 200, 0.15);
  border: 1px solid rgba(0, 255, 200, 0.4);
  color: #e6e6f0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  backdrop-filter: blur(6px);
  transition: 0.2s ease;
}

.audio-toggle:hover {
  background: rgba(0, 255, 200, 0.25);
  border-color: rgba(0, 255, 200, 0.6);
}

/* TERMINAL */
.contact-terminal {
  background: rgba(20, 20, 20, 0.85);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #444;
  margin-bottom: 2rem;
  font-family: monospace;
}

.term-lights span {
  height: 12px;
  width: 12px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 6px;
}

.term-lights span:nth-child(1) { background: #ff5f56; }
.term-lights span:nth-child(2) { background: #ffbd2e; }
.term-lights span:nth-child(3) { background: #27c93f; }

.typing {
  color: #c6c6c6;
  border-right: 2px solid #aaa;
  padding-right: 4px;
  white-space: nowrap;
}

/* TITLES */
.contact-title {
  color: #e6e6e6;
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.contact-description {
  color: #c0c0c0;
  line-height: 1.7;
  font-size: 1rem;
}

/* QUOTE */
.contact-quote {
  border-left: 3px solid #9a4bff;
  padding-left: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #d7caff;
  font-style: italic;
  font-size: 1.1rem;
}

/* NEON LINK */
.neon-link {
  color: #9fdfff;
  position: relative;
  text-decoration: none;
}

.neon-link:hover {
  text-shadow: 0 0 6px #53c7ff, 0 0 12px #53c7ff;
}

/* TECH FRAME FOR VIDEO */
.tech-frame {
  position: relative;
  margin: 2rem 0;
}

.tech-border {
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(140, 85, 255, 0.4);
  border-radius: 12px;
  animation: techGlow 3s infinite ease-in-out;
}

@keyframes techGlow {
  0% { box-shadow: 0 0 8px #915bff; }
  50% { box-shadow: 0 0 18px #c9a1ff; }
  100% { box-shadow: 0 0 8px #915bff; }
}

.contact-video {
  width: 100%;
  border-radius: 12px;
}

/* HOLOGRAM BUTTON */
.holo-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 12px 28px;
  border-radius: 10px;
  border: 1px solid #8f5bff;
  color: #e3cbff;
  text-decoration: none;
  backdrop-filter: blur(6px);
  background: rgba(40, 20, 70, 0.2);
  box-shadow: 0 0 12px rgba(163, 125, 255, 0.35);
  transition: 0.25s ease;
}

.holo-btn:hover {
  box-shadow: 0 0 20px rgba(180, 140, 255, 0.6);
  transform: translateY(-2px) scale(1.02);
}

/* GLITCH EFFECT */
.contact-title:hover {
  animation: glitch 0.3s steps(2) infinite;
}

@keyframes glitch {
  0% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 1px); }
  100% { transform: translate(1px, -2px); }
}

/* RESPONSIVE */
@media screen and (max-width: 600px) {
  .contact-title { font-size: 1.9rem; }
  .typing { font-size: 0.9rem; }
  .holo-btn { width: 100%; text-align: center; }
}
