@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* base palette */
  --bg: #090a0b;
  --ink: #d9dedb;
  --muted: #737b77;
  --line: #242a27;
  --accent: #9dff79;

  /* HUD / blue accent (profile card system) */
  --blue: #6675ff;
  --blue-soft: #7181ff;
  --blue-light: #8ba3ff;
  --blue-a66: #6675ff66;
  --blue-a44: #6675ff44;
  --blue-a88: #6675ff88;
  --blue-border: #aebaff88;
  --blue-ring: #3849a4;

  /* panel surfaces */
  --panel-1: #15171a;
  --panel-2: #0e1012;
  --panel-border: #24272b;
  --panel-border-soft: #222529;

  /* misc text */
  --green-status: #71c982;
  --amber: #ce9141;

  /* motion */
  --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-card: cubic-bezier(0.075, 0.82, 0.165, 1);
  --t-reveal: 520ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
}

body:not(.is-page-open) .bento-nav {
  display: none !important;
}

body.is-page-open .bento-nav {
  display: flex;
}


/* =========================================
   KEYFRAMES
   ========================================= */

@keyframes home-reveal {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0 round 14px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 14px);
    filter: blur(0);
  }
}

@keyframes edge-reveal {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0 round 14px);
  }
  45% {
    opacity: 1;
  }
  to {
    opacity: 0;
    clip-path: inset(0 0 0 0 round 14px);
  }
}

@keyframes online-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 10px var(--blue);
  }
  50% {
    opacity: 0.45;
    box-shadow: 0 0 14px var(--blue), 0 0 20px var(--blue-a44);
  }
}

@keyframes typewriter-loop {
  0%,
  12% {
    clip-path: inset(0 100% 0 0);
  }
  38%,
  72% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 100% 0 0);
  }
}

@keyframes status-reveal {
  from {
    opacity: 0;
    filter: blur(5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes ambient-shift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 1%, 0) scale(1.08);
  }
}

@keyframes card-scan {
  0%,
  18% {
    left: -45%;
    opacity: 0;
  }
  28% {
    left: -45%;
    opacity: 0.9;
  }
  62% {
    left: 120%;
    opacity: 0;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

@keyframes avatar-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(2deg);
  }
}

@keyframes avatar-reveal {
  from {
    opacity: 0;
    clip-path: circle(0% at 50% 50%);
  }
  to {
    opacity: 1;
    clip-path: circle(75% at 50% 50%);
  }
}

@keyframes detail-reveal {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: blur(0);
  }
}

@keyframes status-glow {
  0%,
  100% {
    text-shadow: 0 0 0 transparent;
  }
  50% {
    text-shadow: 0 0 10px #71c98299;
  }
}

@keyframes detail-breathe {
  0%,
  100% {
    filter: brightness(1);
    text-shadow: 0 0 0 transparent;
  }
  50% {
    filter: brightness(1.42);
    text-shadow: 0 0 8px currentColor;
  }
}

@keyframes equalizer-bounce {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes hud-scan {
  0% {
    transform: translateY(-20vh);
    opacity: 0;
  }
  12%,
  76% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(120vh);
    opacity: 0;
  }
}

@keyframes hud-flicker {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.65;
  }
}

@keyframes name-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
    letter-spacing: 0.12em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -0.06em;
  }
}

/* =========================================
   LAYOUT SHELL
   ========================================= */

.container {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
}

.intro-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.intro-screen::before {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: -1;
  background-image: linear-gradient(#b8c4ff0b 1px, transparent 1px),
    linear-gradient(90deg, #b8c4ff0b 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, #6576ff1f, transparent 28%);
  background-size: 42px 42px, 42px 42px, 100% 100%;
  mask-image: radial-gradient(ellipse at center, #000 12%, transparent 72%);
  animation: ambient-shift 14s ease-in-out infinite alternate;
}

/* =========================================
   HUD OVERLAY
   ========================================= */

.hud-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  color: var(--blue-soft);
  pointer-events: none;
  animation: hud-flicker 5s ease-in-out infinite;
}

.hud-coordinate,
.hud-readout {
  position: absolute;
  top: 34px;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.hud-coordinate {
  left: 38px;
}

.hud-readout {
  right: 38px;
  color: var(--blue-light);
}

.hud-corner {
  width: 58px;
  height: 58px;
  position: absolute;
  border-color: var(--blue-a66);
  border-style: solid;
}

.hud-corner-tl {
  top: 28px;
  left: 28px;
  border-width: 1px 0 0 1px;
}

.hud-corner-tr {
  top: 28px;
  right: 28px;
  border-width: 1px 1px 0 0;
}

.hud-corner-bl {
  bottom: 28px;
  left: 28px;
  border-width: 0 0 1px 1px;
}

.hud-corner-br {
  right: 28px;
  bottom: 28px;
  border-width: 0 1px 1px 0;
}

.hud-scanline {
  width: 100%;
  height: 1px;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, #7485ff66 50%, transparent);
  box-shadow: 0 0 12px var(--blue-a88);
  animation: hud-scan 8s linear infinite;
}

/* =========================================
   PROFILE CARD
   ========================================= */

.profile-card {
  width: min(430px, calc(100vw - 40px));
  min-height: 310px;
  padding: 27px 28px 22px;
  position: relative;
  background: linear-gradient(135deg, var(--panel-1), var(--panel-2));
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: 0 16px 44px #0008, inset 0 1px #fff1;
  overflow: hidden;
  z-index: 1;
  transform-style: preserve-3d;
  will-change: transform;
  transition: all 3s var(--ease-card);
  animation: home-reveal 680ms var(--ease-reveal) both;
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid var(--blue-border);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  animation: edge-reveal 950ms var(--ease-reveal) 180ms both;
}

.profile-card::after {
  content: '';
  width: 28%;
  height: 160%;
  position: absolute;
  top: -30%;
  z-index: 0;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #b8c4ff18, transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  animation: card-scan 6s 1.2s ease-in-out infinite;
}

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

.profile-card > .online-dot {
  position: absolute;
}

.online-dot {
  width: 9px;
  height: 9px;
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: online-pulse 2.8s ease-in-out infinite;
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 17px;
}

.avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 2px solid #dfe6ff;
  border-radius: 50%;
  overflow: hidden;
  color: #111;
  background: radial-gradient(circle at 38% 30%, #d7dbeb, #6871a6 48%, #151827 50%);
  object-fit: cover;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--blue-ring);
  animation: avatar-reveal 700ms var(--ease-reveal) 260ms both,
    avatar-float 5s 900ms ease-in-out infinite;
}

.profile-card h1 {
  margin: 0;
  color: #e5e6e9;
  font-size: 20px;
  letter-spacing: -0.06em;
  animation: name-reveal 700ms var(--ease-reveal) 180ms both;
}

.pronouns {
  margin: 8px 0 0;
  color: #73767e;
  font-size: 12px;
  animation: detail-reveal var(--t-reveal) var(--ease-reveal) 300ms both,
    detail-breathe 4.2s 1.1s ease-in-out infinite;
}

.profile-data {
  margin-top: 25px;
  font-size: 12px;
}

.profile-data p {
  margin: 0 0 11px;
  animation: detail-reveal var(--t-reveal) var(--ease-reveal) both;
}

.profile-data p:nth-child(1) {
  animation: detail-reveal var(--t-reveal) var(--ease-reveal) 260ms both,
    detail-breathe 3.8s 1.2s ease-in-out infinite;
}

.profile-data p:nth-child(2) {
  animation: detail-reveal var(--t-reveal) var(--ease-reveal) 350ms both,
    detail-breathe 3.8s 1.2s ease-in-out infinite;
}

.profile-data p:nth-child(3) {
  animation: status-reveal var(--t-reveal) ease-out 440ms both;
}

.profile-data span {
  color: var(--amber);
}

.status-line span,
.status-line b {
  color: var(--green-status);
}

.status-line b {
  display: inline-block;
  width: 16ch;
  clip-path: inset(0 100% 0 0);
  vertical-align: bottom;
  white-space: nowrap;
  animation: typewriter-loop 5.5s steps(16, end) 700ms infinite both,
    status-glow 2.6s 2.7s ease-in-out infinite;
}

.profile-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-border-soft);
  animation: detail-reveal var(--t-reveal) var(--ease-reveal) 540ms both;
}

.card-endline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 11px;
  border-top: 1px dashed #31383e;
  color: #59625e;
  font-size: 8px;
  animation: detail-reveal var(--t-reveal) var(--ease-reveal) 680ms both;
}

.activity-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  letter-spacing: 0.08em;
}

.activity-copy span {
  color: var(--blue);
}

.activity-copy small {
  color: #59625e;
  font-size: 8px;
  letter-spacing: 0;
}

.equalizer {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 20px;
  height: 16px;
}

.equalizer i {
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--blue);
  transform-origin: bottom;
  animation: equalizer-bounce 1.1s ease-in-out infinite;
}

.equalizer i:nth-child(2) {
  animation-delay: 180ms;
}

.equalizer i:nth-child(3) {
  animation-delay: 360ms;
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a,
.music-link {
  display: inline-block;
  color: #9ca1ac;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.music-link {
  color: #8a7aff;
  font-weight: 400;
}

.social-links a:hover,
.music-link:hover,
.scroll-cue:hover {
  color: var(--accent);
  text-shadow: 0 0 10px #9dff7966;
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  bottom: 58px;
  z-index: 3;
  display: inline-block;
  padding: 0 14px;
  background: var(--bg);
  color: #555b60;
  text-decoration: none;
  font-size: 10px;
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
  animation: home-reveal 680ms 260ms var(--ease-reveal) both;
}

.scroll-cue span {
  margin-left: 8px;
  display: inline-block;
  transition: transform 180ms ease;
}

.scroll-cue:hover span {
  transform: translateX(4px);
}

.intro-rail {
  position: absolute;
  right: 38px;
  bottom: 48px;
  left: 38px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  background: var(--bg);
  color: #4d5551;
  font-size: 9px;
  letter-spacing: 0.08em;
  animation: home-reveal 680ms 520ms var(--ease-reveal) both;
}

.intro-rail::before,
.intro-rail::after {
  content: '';
  height: 1px;
  position: absolute;
  top: 0;
  background: var(--line);
}

.intro-rail::before {
  left: 0;
  width: calc(50% - 78px);
}

.intro-rail::after {
  right: 0;
  width: calc(50% - 78px);
}

@media (prefers-reduced-motion: reduce) {
  .intro-screen::before,
  .hud-layer,
  .profile-card,
  .scroll-cue,
  .avatar,
  .profile-card h1 {
    animation: none;
  }

  .online-dot,
  .profile-card::after,
  .profile-card::before {
    animation: none;
    transition: none;
  }

  .profile-data p,
  .status-line b,
  .profile-data p:nth-child(1),
  .profile-data p:nth-child(2),
  .profile-data p:nth-child(3),
  .card-endline,
  .pronouns,
  .profile-footer,
  .intro-rail {
    animation: none;
    opacity: 1;
  }

  .status-line b {
    clip-path: none;
  }

  .equalizer i {
    animation: none;
    transform: scaleY(0.7);
  }
}

@media (max-width: 520px) {
  .profile-card {
    min-height: 300px;
  }

  .intro-rail {
    right: 22px;
    left: 22px;
    bottom: 42px;
    font-size: 8px;
  }

  .intro-rail::before,
  .intro-rail::after {
    width: calc(50% - 68px);
  }

  .scroll-cue {
    bottom: 52px;
  }

  .hud-coordinate,
  .hud-readout {
    top: 22px;
    font-size: 7px;
  }

  .hud-coordinate {
    left: 22px;
  }

  .hud-readout {
    right: 22px;
  }

  .hud-corner-tl,
  .hud-corner-tr {
    top: 17px;
  }

  .hud-corner-bl,
  .hud-corner-br {
    bottom: 17px;
  }

  .hud-corner-tl,
  .hud-corner-bl {
    left: 17px;
  }

  .hud-corner-tr,
  .hud-corner-br {
    right: 17px;
  }

  .intro-rail span:last-child {
    display: none;
  }
}

/* =========================================
   CONTENT SECTIONS
   ========================================= */

.section-grid {
  display: grid;
  grid-template-columns: 27% 1fr;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding: 100px 0;
}

.section-label,
.project-number {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.section-label {
  padding-top: 8px;
}

.section-grid h2,
.section-heading h2,
.contact h2 {
  max-width: 670px;
  margin: 0 0 24px;
  font-size: clamp(28px, 3.7vw, 46px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.07em;
}

.body-copy {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.skills,
.project-tags,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills {
  margin-top: 34px;
}

.skills span,
.project-tags span,
.filter {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 11px 'IBM Plex Mono', monospace;
}

.projects,
.contact {
  border-top: 1px solid var(--line);
  padding: 98px 0;
}

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

.section-heading .section-label {
  padding: 0;
  margin-bottom: 19px;
}

.filter {
  cursor: pointer;
}

.filter.active,
.filter:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #09100c;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 45px 21px;
}

.project-card.featured {
  grid-column: span 2;
}

.project-card.hidden {
  display: none;
}

.project-visual {
  height: 315px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.featured .project-visual {
  height: 440px;
}

.visual-mori {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: #102118;
}

.visual-mark {
  font-size: clamp(145px, 24vw, 290px);
  font-weight: 600;
  opacity: 0.25;
}

.code-line {
  position: absolute;
  top: 29px;
  left: 34px;
  color: #6fbf80;
  font-size: 12px;
}

.visual-text {
  position: absolute;
  bottom: 30px;
  left: 34px;
  color: #c7e7cb;
  font-size: 12px;
  line-height: 1.65;
}

.visual-note {
  display: grid;
  place-items: center;
  background: #111914;
}

.visual-note > span {
  position: absolute;
  top: 22px;
  right: 23px;
  color: var(--accent);
  font-size: 12px;
}

.note-card {
  width: 155px;
  height: 196px;
  padding: 18px;
  transform: rotate(-8deg);
  background: #c5ffad;
  color: #0b1710;
  box-shadow: 8px 12px #0005;
}

.note-card small {
  font-size: 9px;
}

.note-card strong {
  display: block;
  margin-top: 35px;
  font-size: 18px;
}

.note-card div {
  width: 28px;
  height: 4px;
  margin-top: 16px;
  background: #287948;
}

.visual-kin {
  padding: 27px;
  display: flex;
  align-items: end;
  background: #131b17;
}

.kin-circle {
  position: absolute;
  width: 250px;
  height: 250px;
  right: 12%;
  top: -46px;
  border-radius: 50%;
  background: #a3ff7d;
  opacity: 0.25;
}

.visual-kin div {
  position: relative;
}

.visual-kin b {
  font-size: 52px;
  color: var(--accent);
}

.visual-kin small {
  display: block;
  font-size: 10px;
}

.project-info {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0 13px;
}

.project-number {
  margin-bottom: 11px;
}

.project-info h3 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 500;
}

.project-info p:not(.project-number) {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.project-info a {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--accent);
  text-decoration: none;
}

.project-info a:hover {
  background: var(--accent);
  color: #09100c;
}

.contact {
  padding-bottom: 112px;
}

.email-link {
  color: var(--accent);
  font-size: clamp(22px, 3.6vw, 44px);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

footer {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 38px);
  }

  .section-grid {
    grid-template-columns: 1fr;
    padding: 72px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .projects,
  .contact {
    padding: 72px 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .project-visual,
  .featured .project-visual {
    height: 260px;
  }

  footer {
    flex-direction: column;
    gap: 15px;
  }
}

/* =========================================
   ENTRY OVERLAY
   ========================================= */

.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0a;
  color: #f1f1f1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 32px;
  font-family: "IBM Plex Mono", monospace;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.entry-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-hud,
.entry-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.14em;
  opacity: 0.45;
}

.entry-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.entry-logo {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.06em;
  animation: entryFlicker 4s infinite;
}

.entry-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.18em;
  cursor: pointer;
  padding: 10px 14px;
  opacity: 0.55;
  transition: opacity 0.2s ease, letter-spacing 0.2s ease;
}

.entry-button:hover {
  opacity: 1;
  letter-spacing: 0.25em;
}

.entry-button span {
  opacity: 0.35;
  margin: 0 5px;
}

.entry-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -10%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  animation: scan 5s linear infinite;
  pointer-events: none;
}

.entry-overlay::before,
.entry-overlay::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0.5;
  pointer-events: none;
}

.entry-overlay::before {
  top: 20px;
  left: 20px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.entry-overlay::after {
  right: 20px;
  bottom: 20px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

@keyframes scan {
  from {
    top: -10%;
  }
  to {
    top: 110%;
  }
}

@keyframes entryFlicker {
  0%,
  95%,
  100% {
    opacity: 1;
  }
  96% {
    opacity: 0.65;
  }
  97% {
    opacity: 1;
  }
  98% {
    opacity: 0.8;
  }
}

@media (max-width: 600px) {
  .entry-overlay {
    padding: 20px;
  }

  .entry-hud,
  .entry-footer {
    font-size: 8px;
  }

  .entry-center {
    gap: 24px;
  }

  .entry-button {
    font-size: 9px;
  }
}

/* =========================================
   REVEAL GATING — chờ bấm "enter" mới chạy animation
   Mặc định: mọi animation reveal của profile-card, avatar,
   scroll-cue, intro-rail... bị PAUSE ngay từ khung hình đầu
   (nhờ animation-fill-mode: both/from state), nên chúng đứng
   yên ở trạng thái "ẩn" cho tới khi có class .is-entered.

   JS chỉ cần thêm class "is-entered" vào <body> khi user
   bấm .entry-button — animation sẽ tự resume và chạy đúng
   theo delay đã khai báo (không cần đụng vào các @keyframes
   hay giá trị delay ở trên).
   ========================================= */

body:not(.is-entered) .profile-card,
body:not(.is-entered) .profile-card::before,
body:not(.is-entered) .profile-card::after,
body:not(.is-entered) .online-dot,
body:not(.is-entered) .avatar,
body:not(.is-entered) .profile-card h1,
body:not(.is-entered) .pronouns,
body:not(.is-entered) .profile-data p,
body:not(.is-entered) .status-line b,
body:not(.is-entered) .profile-footer,
body:not(.is-entered) .card-endline,
body:not(.is-entered) .scroll-cue,
body:not(.is-entered) .intro-rail {
  animation-play-state: paused;
}

/* =========================================================
   IFRAME PAGE SYSTEM
   ========================================================= */

.page-view {
  width: 100%;
  display: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.page-view.is-active {
  display: block;
}

#pageFrame {
  display: block;
  width: 100%;
  min-width: 100%;
  height: 1000px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  overflow: hidden;
  transition: height 0.25s ease;
}

.intro-screen.is-page-open {
  display: none;
}

