:root {
  --bg: #eaf5ff;
  --bg-soft: #f7fbff;
  --text: #23375e;
  --text-2: #54709b;
  --muted: #7186a8;
  --line: rgba(99, 147, 207, .22);
  --glass: rgba(255, 255, 255, .66);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-border: rgba(255, 255, 255, .78);
  --primary: #6da9ff;
  --primary-2: #7d8cff;
  --pink: #ff94c3;
  --cyan: #77d7e9;
  --shadow: 0 24px 70px rgba(68, 113, 173, .18);
  --shadow-soft: 0 15px 40px rgba(73, 119, 179, .12);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
  --header-h: 88px;
}

html[data-theme="dark"] {
  --bg: #0d1730;
  --bg-soft: #111f3e;
  --text: #eff6ff;
  --text-2: #c5d7f7;
  --muted: #9fb3d7;
  --line: rgba(154, 190, 240, .16);
  --glass: rgba(17, 31, 62, .62);
  --glass-strong: rgba(20, 36, 70, .82);
  --glass-border: rgba(203, 224, 255, .15);
  --shadow: 0 30px 80px rgba(2, 8, 24, .45);
  --shadow-soft: 0 18px 50px rgba(2, 8, 24, .34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  transition: background-color .35s ease, color .35s ease;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(109, 169, 255, .34);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border-radius: 99px;
  border: 3px solid var(--bg);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(180deg, rgba(236, 248, 255, .13), rgba(232, 244, 255, .9) 83%, var(--bg) 100%),
    url("../assets/background.jpg") center top / cover no-repeat;
  transform: scale(1.03);
  transition: filter .4s ease, opacity .4s ease;
}

html[data-theme="dark"] .page-bg {
  filter: brightness(.42) saturate(.78) hue-rotate(2deg);
  opacity: .98;
}

.aurora {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: .28;
  z-index: -4;
  animation: drift 14s ease-in-out infinite alternate;
}

.aurora-one {
  width: 440px;
  height: 440px;
  background: #7cc5ff;
  top: 42%;
  left: -170px;
}

.aurora-two {
  width: 380px;
  height: 380px;
  background: #b494ff;
  bottom: -160px;
  right: -100px;
  animation-delay: -4s;
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 188, 255, .18), rgba(127, 188, 255, 0) 68%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity .3s ease;
}

@media (pointer: fine) {
  body:hover .cursor-glow { opacity: 1; }
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 20px 0;
  transition: transform .35s ease;
}

.nav-shell {
  width: min(1240px, 100%);
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 14px 10px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  background: rgba(255, 255, 255, .67);
  box-shadow: 0 12px 36px rgba(70, 113, 169, .14);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

html[data-theme="dark"] .nav-shell {
  background: rgba(14, 27, 55, .72);
  border-color: rgba(195, 219, 255, .15);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: linear-gradient(135deg, #9bd5ff, #758cff);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 8px 18px rgba(83, 137, 229, .27);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 9px;
  height: 10px;
  border-radius: 2px 8px 2px 8px;
  background: rgba(255,255,255,.92);
}

.brand-mark::before { left: 7px; transform: rotate(-18deg); }
.brand-mark::after { right: 7px; transform: rotate(18deg) scaleX(-1); }

.brand-mark span:first-child,
.brand-mark span:last-child {
  position: absolute;
  top: 20px;
  width: 3px;
  height: 3px;
  background: #5577bf;
  border-radius: 50%;
}

.brand-mark span:first-child { left: 11px; }
.brand-mark span:last-child { right: 11px; }

.brand-text {
  font-size: 19px;
}

.brand-dot {
  margin-left: -8px;
  color: var(--primary);
  font-size: 24px;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 10px 15px;
  border-radius: 14px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 650;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(126, 175, 244, .12);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.theme-toggle,
.menu-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(118, 160, 219, .18);
  box-shadow: 0 8px 20px rgba(73, 119, 179, .1);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(255,255,255,.06);
}

.theme-toggle svg {
  position: absolute;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .35s ease, opacity .25s ease;
}

.moon-icon { opacity: 0; transform: rotate(-30deg) scale(.7); }
html[data-theme="dark"] .sun-icon { opacity: 0; transform: rotate(30deg) scale(.7); }
html[data-theme="dark"] .moon-icon { opacity: 1; transform: rotate(0) scale(1); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.6);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 4px;
  background: currentColor;
  transition: transform .28s ease, opacity .2s ease;
}

.hero {
  min-height: 100svh;
  padding: 132px 0 78px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .72fr);
  gap: 74px;
  align-items: center;
}

.hero-copy {
  max-width: 700px;
}

.status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 99px;
  background: rgba(255,255,255,.62);
  color: #486b9e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 8px 24px rgba(79, 128, 188, .11);
  backdrop-filter: blur(15px);
}

html[data-theme="dark"] .status-pill {
  color: #cfe1ff;
  background: rgba(19,35,67,.66);
  border-color: rgba(255,255,255,.14);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64d69c;
  box-shadow: 0 0 0 6px rgba(100,214,156,.13);
  animation: pulse 2s ease-in-out infinite;
}

.eyebrow {
  margin: 26px 0 8px;
  color: #4b76b1;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 750;
  letter-spacing: .02em;
}

html[data-theme="dark"] .eyebrow { color: #9bc7ff; }

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(45px, 6.15vw, 86px);
  line-height: 1.04;
  letter-spacing: -.055em;
  white-space: pre-line;
  text-wrap: balance;
  color: #21385f;
  text-shadow: 0 5px 30px rgba(255, 255, 255, .74);
}

html[data-theme="dark"] .hero h1 {
  color: #f3f7ff;
  text-shadow: 0 8px 40px rgba(0,0,0,.28);
}

.hero-description {
  max-width: 625px;
  margin: 24px 0 0;
  color: #4f6d98;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.9;
}

html[data-theme="dark"] .hero-description { color: #c0d1ee; }

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  font-weight: 760;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.btn svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #70b7ff, #7587f8);
  box-shadow: 0 15px 30px rgba(85, 138, 235, .3);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px rgba(85, 138, 235, .38);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,.56);
  border-color: rgba(255,255,255,.7);
  box-shadow: 0 11px 26px rgba(73, 119, 179, .11);
  backdrop-filter: blur(16px);
}

html[data-theme="dark"] .btn-ghost {
  background: rgba(20,36,70,.58);
  border-color: rgba(255,255,255,.13);
}

.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.98); }
.sparkle { font-size: 18px; color: #7e9eff; }

.hero-meta {
  margin-top: 35px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.meta-item {
  display: grid;
  gap: 2px;
}

.meta-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.meta-item strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.meta-divider {
  width: 1px;
  height: 34px;
  background: var(--line);
}

.profile-card {
  position: relative;
  width: min(100%, 410px);
  justify-self: end;
  padding: 30px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform-style: preserve-3d;
}

.profile-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,184,255,.34), transparent 67%);
}

.profile-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  padding: 5px;
  border-radius: 27px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 13px 30px rgba(77, 121, 174, .16);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
  background: #dfefff;
}

.online-dot {
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border: 4px solid rgba(255,255,255,.95);
  border-radius: 50%;
  background: #5cd79b;
}

.profile-kicker,
.card-label,
.section-index {
  margin: 0;
  color: #7293c1;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
}

.profile-card h2 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.profile-handle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-quote {
  position: relative;
  z-index: 2;
  margin: 24px 0 18px;
  padding: 18px 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.34);
  color: var(--text-2);
  font-size: 14px;
}

html[data-theme="dark"] .profile-quote { background: rgba(255,255,255,.035); }

.profile-tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tags span,
.mini-tags span {
  padding: 7px 10px;
  border-radius: 99px;
  background: rgba(114, 169, 243, .11);
  border: 1px solid rgba(114, 169, 243, .14);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
}

.profile-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 23px;
}

.profile-stats div {
  display: grid;
  gap: 1px;
  padding: 12px 8px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255,255,255,.38);
  border: 1px solid var(--line);
}

html[data-theme="dark"] .profile-stats div { background: rgba(255,255,255,.035); }
.profile-stats strong { font-size: 15px; color: #5b82bd; }
html[data-theme="dark"] .profile-stats strong { color: #9fc9ff; }
.profile-stats span { color: var(--muted); font-size: 10px; }

.profile-decor {
  position: absolute;
  width: 112px;
  right: -20px;
  bottom: -14px;
  filter: drop-shadow(0 12px 20px rgba(61,96,143,.16));
  transform: rotate(4deg);
  pointer-events: none;
  opacity: .95;
}

.floating-emote {
  position: absolute;
  z-index: 3;
  width: 112px;
  filter: drop-shadow(0 15px 25px rgba(56, 96, 148, .22));
  user-select: none;
  pointer-events: none;
  animation: float 5.4s ease-in-out infinite;
}

.emote-left {
  left: clamp(-30px, 3vw, 40px);
  bottom: 16%;
  transform: rotate(-10deg);
}

.emote-right {
  right: clamp(-28px, 2vw, 28px);
  top: 26%;
  width: 126px;
  animation-delay: -2s;
}

.scroll-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #6686b3;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .2em;
}

.mouse {
  width: 22px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.mouse span {
  width: 3px;
  height: 6px;
  border-radius: 5px;
  background: currentColor;
  animation: scrollDot 1.8s ease-in-out infinite;
}

.content-section {
  padding: 108px 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.content-section:nth-of-type(odd) {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.section-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading h2,
.contact-card h2 {
  margin: 7px 0 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.section-heading > p {
  max-width: 430px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
}

.bento-card,
.interest-card,
.moment-card,
.quote-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bento {
  display: grid;
  gap: 18px;
}

.about-grid {
  grid-template-columns: 1.35fr .65fr;
  grid-template-rows: auto auto;
}

.bento-card {
  min-height: 260px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.about-main {
  grid-row: 1 / span 2;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 62px);
  background:
    radial-gradient(circle at 10% 10%, rgba(127,189,255,.22), transparent 34%),
    var(--glass);
}

.about-main h3 {
  max-width: 720px;
  margin: 18px 0 24px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.18;
  letter-spacing: -.045em;
}

.about-main h3 span { color: #5d91dc; }
.about-main > p {
  max-width: 640px;
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

.signature {
  margin-top: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-style: italic;
  color: #6287bd;
}

.signature span { color: var(--pink); }
.card-emote {
  position: absolute;
  width: 135px;
  right: 22px;
  bottom: -8px;
  filter: drop-shadow(0 12px 20px rgba(72,111,162,.16));
}

.now-card {
  background:
    radial-gradient(circle at 100% 0, rgba(111,171,255,.2), transparent 45%),
    var(--glass);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 99px;
  color: #4b8b69;
  background: rgba(99,213,156,.13);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #57d795;
  animation: pulse 2s infinite;
}

.big-clock {
  margin-top: 26px;
  font-size: clamp(45px, 6vw, 72px);
  line-height: 1;
  font-weight: 820;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
}

.now-card > p {
  margin: 9px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.weather-fake {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.cloud-icon { font-size: 26px; }
.weather-fake div { display: grid; }
.weather-fake strong { font-size: 13px; }
.weather-fake small { color: var(--muted); font-size: 11px; }

.values-card {
  min-height: 260px;
}

.value-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.value-list > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
}

.value-list > div > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(112, 169, 245, .12);
  color: #6893cf;
  font-size: 10px;
  font-weight: 900;
}

.value-list p { display: grid; margin: 0; }
.value-list strong { font-size: 13px; }
.value-list small { color: var(--muted); font-size: 11px; }

.interest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.interest-card {
  min-height: 390px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}

.interest-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(58,101,157,.2);
}

.interest-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -95px;
  top: -80px;
  opacity: .22;
  filter: blur(2px);
}

.interest-card[data-accent="blue"]::before { background: #77b9ff; }
.interest-card[data-accent="violet"]::before { background: #a992ff; }
.interest-card[data-accent="pink"]::before { background: #ff97c5; }
.interest-card[data-accent="cyan"]::before { background: #6edbe8; }

.interest-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(116, 171, 247, .13);
  color: #5c85c1;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(111,166,240,.13);
}

.interest-number {
  position: absolute;
  right: 24px;
  top: 22px;
  color: rgba(86,126,181,.4);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.interest-card h3 {
  margin: 24px 0 10px;
  font-size: 24px;
  letter-spacing: -.03em;
}

.interest-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.mini-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.interest-emote {
  width: 122px;
  max-height: 136px;
  object-fit: contain;
  object-position: bottom right;
  margin: auto -8px -18px auto;
  filter: drop-shadow(0 10px 18px rgba(62,102,153,.13));
  transition: transform .35s ease;
}

.interest-card:hover .interest-emote {
  transform: translateY(-5px) rotate(3deg) scale(1.04);
}

.moments-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  grid-template-rows: auto auto auto;
  gap: 18px;
}

.moment-card,
.quote-card {
  box-shadow: var(--shadow-soft);
}

.moment-featured {
  grid-row: 1 / span 3;
  min-height: 610px;
  padding: 18px;
}

.moment-image {
  position: relative;
  min-height: 360px;
  border-radius: 23px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.bg-one {
  background:
    radial-gradient(circle at 70% 24%, rgba(255,255,255,.75), transparent 22%),
    linear-gradient(145deg, #bfe8ff, #aab8ff 55%, #d5b9ee);
}

.moment-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
}

.moment-image img {
  position: relative;
  z-index: 2;
  width: min(78%, 410px);
  filter: drop-shadow(0 28px 30px rgba(55,79,131,.22));
  animation: float 5s ease-in-out infinite;
}

.moment-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  padding: 7px 11px;
  border-radius: 99px;
  background: rgba(255,255,255,.7);
  color: #536f9d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  backdrop-filter: blur(10px);
}

.moment-copy {
  padding: 25px 12px 10px;
}

.moment-copy > span,
.compact small {
  color: #7594bf;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}

.moment-copy h3 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.moment-copy p,
.compact p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5c84c1;
  font-weight: 800;
  cursor: pointer;
}

.text-link b { margin-left: 4px; }

.compact {
  min-height: 180px;
  padding: 18px;
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  align-items: center;
}

.moment-mini-visual {
  min-height: 142px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  font-weight: 900;
  letter-spacing: .16em;
  font-size: 12px;
  overflow: hidden;
}

.bg-two { background: linear-gradient(145deg, #7eb8fa, #7e8ff0); }
.bg-three { background: linear-gradient(145deg, #ffaccf, #c6a7ff); }

.compact h3 {
  margin: 6px 0 7px;
  line-height: 1.3;
  font-size: 19px;
  letter-spacing: -.025em;
}

.quote-card {
  min-height: 210px;
  padding: 25px 25px 25px 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-card img {
  position: absolute;
  left: 18px;
  bottom: -2px;
  width: 122px;
}

.quote-card blockquote {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.55;
  letter-spacing: -.02em;
}

.quote-card > span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.contact-section {
  padding: 120px 0;
  background:
    radial-gradient(circle at 18% 15%, rgba(119, 188, 255, .24), transparent 33%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.contact-card {
  position: relative;
  min-height: 430px;
  padding: clamp(34px, 5vw, 68px);
  border-radius: 40px;
  display: grid;
  grid-template-columns: 1.1fr .7fr;
  gap: 70px;
  align-items: center;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -180px;
  bottom: -200px;
  border-radius: 50%;
  background: rgba(120, 181, 255, .18);
}

.contact-copy {
  position: relative;
  z-index: 2;
}

.contact-copy > p:not(.section-index) {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
}

.social-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
}

.social-panel > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}

.social-panel a {
  min-height: 54px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.34);
  font-weight: 720;
  transition: transform .22s ease, background .22s ease;
}

html[data-theme="dark"] .social-panel a { background: rgba(255,255,255,.035); }
.social-panel a:hover { transform: translateX(5px); background: rgba(117,171,246,.12); }
.social-panel b { color: #6e96cf; }

.contact-emote {
  position: absolute;
  width: 145px;
  right: 29%;
  bottom: -23px;
  opacity: .95;
  transform: rotate(-8deg);
  filter: drop-shadow(0 15px 24px rgba(64,102,156,.16));
}

.site-footer {
  padding: 28px 0 34px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner p { margin: 0; }
.footer-inner a { color: var(--text-2); font-weight: 750; }

.emote-pop {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 200;
  width: 180px;
  transform: translateY(130%) rotate(6deg);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s cubic-bezier(.2,.85,.2,1.1), opacity .3s ease;
}

.emote-pop.show {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

.emote-pop img {
  width: 120px;
  margin-left: auto;
  filter: drop-shadow(0 14px 24px rgba(40,76,126,.24));
}

.speech {
  margin-top: -8px;
  padding: 11px 14px;
  border-radius: 15px 15px 4px 15px;
  background: rgba(255,255,255,.92);
  color: #3d5c87;
  box-shadow: 0 14px 30px rgba(45,79,126,.16);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translate(-50%, 24px);
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(26,45,77,.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.82); opacity: .65; }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(30px,-22px,0) scale(1.08); }
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(9px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 1080px) {
  .hero-inner { gap: 36px; grid-template-columns: 1fr 370px; }
  .floating-emote { display: none; }
  .interest-grid { grid-template-columns: repeat(2, 1fr); }
  .interest-card { min-height: 350px; }
  .contact-emote { right: 31%; }
}

@media (max-width: 860px) {
  :root { --header-h: 78px; }

  .site-header { padding: 12px 12px 0; }
  .nav-shell { min-height: 60px; grid-template-columns: auto auto auto; padding: 8px 10px 8px 14px; border-radius: 20px; }
  .brand-text { font-size: 17px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 11px; }
  .menu-toggle { display: block; justify-self: end; order: 2; }
  .theme-toggle { order: 3; width: 40px; height: 40px; border-radius: 13px; }

  .nav-links {
    position: fixed;
    inset: 84px 12px auto;
    padding: 13px;
    display: grid;
    gap: 5px;
    border-radius: 20px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(25px);
    transform: translateY(-18px) scale(.98);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }

  .nav-links.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .nav-links a { padding: 13px 15px; }

  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: 118px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .profile-card { justify-self: stretch; width: 100%; max-width: 600px; }
  .scroll-hint { display: none; }

  .about-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .about-main { grid-row: auto; min-height: 430px; }
  .now-card, .values-card { min-height: auto; }

  .moments-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .moment-featured { grid-row: auto; min-height: auto; }
  .quote-card { min-height: 190px; }

  .contact-card { grid-template-columns: 1fr; gap: 40px; }
  .contact-emote { right: 12px; bottom: -32px; opacity: .5; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--container)); }
  .hero { min-height: auto; padding: 110px 0 84px; }
  .page-bg { background-position: 60% top; }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(236,247,255,.88), rgba(236,247,255,.3));
  }
  html[data-theme="dark"] .hero::before { background: linear-gradient(90deg, rgba(7,15,33,.83), rgba(7,15,33,.24)); }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero-description { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-meta { align-items: flex-start; gap: 15px; }
  .meta-divider { height: 40px; }
  .profile-card { padding: 24px; border-radius: 28px; }
  .profile-stats { grid-template-columns: 1fr; }
  .profile-stats div { grid-template-columns: auto 1fr; text-align: left; align-items: center; gap: 10px; }
  .profile-decor { width: 88px; opacity: .65; }

  .content-section, .contact-section { padding: 78px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading h2, .contact-card h2 { font-size: 38px; }

  .bento-card { padding: 23px; border-radius: 24px; }
  .about-main { padding: 30px 24px 118px; min-height: auto; }
  .about-main h3 { font-size: 32px; }
  .about-main > p { font-size: 14px; }
  .card-emote { width: 112px; }

  .interest-grid { grid-template-columns: 1fr; }
  .interest-card { min-height: 325px; border-radius: 24px; }

  .moment-featured { padding: 13px; border-radius: 24px; }
  .moment-image { min-height: 280px; border-radius: 19px; }
  .moment-copy { padding: 20px 9px 8px; }
  .compact { grid-template-columns: 92px 1fr; padding: 14px; border-radius: 24px; }
  .moment-mini-visual { min-height: 118px; }
  .compact h3 { font-size: 17px; }
  .quote-card { padding: 25px 20px 25px 110px; border-radius: 24px; }
  .quote-card img { width: 95px; left: 10px; }
  .quote-card blockquote { font-size: 16px; }

  .contact-card { padding: 32px 24px 105px; border-radius: 28px; }
  .contact-actions { flex-direction: column; }
  .contact-emote { width: 125px; opacity: .85; right: 18px; }
  .social-panel { gap: 6px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .emote-pop { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .cursor-glow { display: none; }
}
