@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}
@keyframes heartRing {
  0% {
    width: 3rem;
    height: 3rem;
    opacity: 0.7;
  }
  100% {
    width: 6rem;
    height: 6rem;
    opacity: 0;
  }
}
@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}
@keyframes scanBeam {
  from {
    top: 0;
  }
  to {
    top: 100%;
  }
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}
@keyframes flatline {
  0%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0.3;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}
@keyframes ecgSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: #060d0d;
  color: #e0f0ee;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

#ecg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

#app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #060d0d;
}
#app-loader > p {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #5a8a82;
}

.loader-dots {
  display: flex;
  gap: 0.5rem;
}

.loader-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00d4aa;
  display: inline-block;
  animation: dotBounce 1.2s ease-in-out infinite;
}
.loader-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.loader-dot:nth-child(3) {
  animation-delay: 0.4s;
}

#load-error {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  max-width: 480px;
}
#load-error h2 {
  font-family: "Space Mono", monospace;
  font-size: 1.2rem;
  color: #ff4d6d;
}
#load-error p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #5a8a82;
}
#load-error code {
  background: rgba(0, 212, 170, 0.07);
  border: 1px solid rgba(0, 212, 170, 0.18);
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #7fffd4;
  display: block;
  margin-top: 0.4rem;
}

#lock-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #060d0d;
  transition: opacity 0.7s ease;
  overflow: hidden;
}
#lock-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 212, 170, 0.015) 2px, rgba(0, 212, 170, 0.015) 4px);
  pointer-events: none;
  z-index: 1;
}
#lock-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0, 212, 170, 0.3), transparent);
  animation: scanBeam 4s linear infinite;
  z-index: 1;
}
#lock-screen.active {
  display: flex;
}
#lock-screen.unlocking {
  opacity: 0;
  pointer-events: none;
}

.lock-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: #00957a;
  border-style: solid;
  opacity: 0.5;
}
.lock-corner.tl {
  top: 1.5rem;
  left: 1.5rem;
  border-width: 2px 0 0 2px;
}
.lock-corner.tr {
  top: 1.5rem;
  right: 1.5rem;
  border-width: 2px 2px 0 0;
}
.lock-corner.bl {
  bottom: 1.5rem;
  left: 1.5rem;
  border-width: 0 0 2px 2px;
}
.lock-corner.br {
  bottom: 1.5rem;
  right: 1.5rem;
  border-width: 0 2px 2px 0;
}

.lock-status-bar {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: #00957a;
  white-space: nowrap;
  z-index: 2;
}
.lock-status-bar .blink {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d4aa;
  margin-right: 0.5rem;
  animation: blink 1s step-end infinite;
}

.lock-card {
  position: relative;
  z-index: 2;
  background: rgba(6, 18, 18, 0.85);
  border: 1px solid rgba(0, 212, 170, 0.18);
  border-radius: 0.75rem;
  padding: 2.8rem 2.5rem 2.5rem;
  width: min(460px, 90vw);
  text-align: center;
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.05), 0 0 40px rgba(0, 212, 170, 0.08), 0 20px 60px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lock-icon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.lock-icon-wrap::before, .lock-icon-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid #00d4aa;
  animation: heartRing 2.4s ease-out infinite;
}
.lock-icon-wrap::after {
  animation-delay: 1.2s;
}

.lock-icon {
  font-size: 2.5rem;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0, 212, 170, 0.7));
  animation: iconPulse 2.4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.lock-badge {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: #00d4aa;
  text-transform: uppercase;
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 2rem;
  padding: 0.25rem 0.8rem;
  margin-bottom: 1rem;
}

.lock-title {
  font-family: "Space Mono", monospace;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 0.04em;
  color: #7fffd4;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.lock-subtitle {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #5a8a82;
  margin-bottom: 2rem;
}

.code-label {
  font-family: "Space Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: #5a8a82;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.code-inputs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.code-inputs input {
  width: 50px;
  height: 58px;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 212, 170, 0.2);
  background: rgba(0, 212, 170, 0.04);
  color: #7fffd4;
  font-family: "Space Mono", monospace;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  caret-color: #00d4aa;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.code-inputs input:focus {
  border-color: #00d4aa;
  background: rgba(0, 212, 170, 0.08);
  box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.15), 0 0 12px rgba(0, 212, 170, 0.2);
}
.code-inputs.wrong {
  animation: flatline 0.5s ease;
}
.code-inputs.wrong input {
  border-color: #ff4d6d;
  background: rgba(255, 77, 109, 0.1);
  animation: shake 0.4s ease;
}
.code-inputs.success input {
  border-color: #00d4aa;
  background: rgba(0, 212, 170, 0.12);
  box-shadow: 0 0 16px rgba(0, 212, 170, 0.3);
}

.lock-hint {
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #5a8a82;
  min-height: 1em;
  transition: color 0.3s;
}
.lock-hint.error {
  color: #ff4d6d;
}
.lock-hint.ok {
  color: #00d4aa;
}

.lock-footer {
  margin-top: 2rem;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(90, 138, 130, 0.4);
}

.vitals {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 212, 170, 0.1);
}

.vital-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.vital-value {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  color: #7fffd4;
  font-weight: 700;
}

.vital-label {
  font-family: "Space Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: #5a8a82;
}

#memory-page {
  display: none;
  opacity: 0;
  transition: opacity 1s ease;
}
#memory-page.visible {
  display: block;
  opacity: 1;
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0, 212, 170, 0.06) 0%, transparent 60%), rgba(6, 13, 13, 0.6);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 212, 170, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 170, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

.hero-tagline {
  position: relative;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: #00d4aa;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-title {
  position: relative;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1.05;
  color: #e0f0ee;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.6s forwards;
}
.hero-title em {
  font-style: italic;
  color: #7fffd4;
}

.hero-date {
  position: relative;
  font-family: "Space Mono", monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: 0.25em;
  color: #5a8a82;
  text-transform: uppercase;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}

.hero-ecg-line {
  position: absolute;
  bottom: 5rem;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
  opacity: 0.4;
}

.hero-ecg-svg {
  width: 200%;
  height: 100%;
  animation: ecgSlide 3s linear infinite;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 1s 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, #00d4aa, transparent);
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}

section {
  position: relative;
  overflow: hidden;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.reveal {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal {
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: none;
}
.reveal-left {
  transform: translateX(-40px);
  transition-duration: 0.9s;
}

.reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: none;
}
.reveal-right {
  transform: translateX(40px);
  transition-duration: 0.9s;
}

.chapter-label {
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: #00d4aa;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.85;
  color: #7aada6;
  max-width: 55ch;
}

.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.story-split.reverse {
  direction: rtl;
}
.story-split.reverse > * {
  direction: ltr;
}

.photo-frame {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #101e1e;
  border: 1px solid rgba(0, 212, 170, 0.18);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.photo-frame:hover img {
  transform: scale(1.04);
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 13, 13, 0.6) 0%, transparent 50%);
  pointer-events: none;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: calc(0.75rem - 4px);
  pointer-events: none;
}
.photo-frame .photo-overlay {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  font-family: "Space Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: #7fffd4;
  text-transform: uppercase;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #5a8a82;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.photo-placeholder .ph-emoji {
  font-size: 2.5rem;
  opacity: 0.3;
}

.parallax-full {
  height: 65vh;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 13, 0.72);
}

.parallax-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.parallax-text {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 780px;
}
.parallax-text blockquote {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-style: italic;
  line-height: 1.45;
  color: #7fffd4;
}
.parallax-text cite {
  display: block;
  margin-top: 1.2rem;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #5a8a82;
  font-style: normal;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #00957a 15%, #00957a 85%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  margin-bottom: 4rem;
  align-items: center;
}
.timeline-item:nth-child(odd) .tl-content {
  grid-column: 1;
  text-align: right;
  padding-right: 2.5rem;
}
.timeline-item:nth-child(odd) .tl-dot {
  grid-column: 2;
}
.timeline-item:nth-child(odd) .tl-img {
  grid-column: 3;
  padding-left: 2.5rem;
}
.timeline-item:nth-child(even) .tl-img {
  grid-column: 1;
  padding-right: 2.5rem;
  order: -1;
}
.timeline-item:nth-child(even) .tl-dot {
  grid-column: 2;
}
.timeline-item:nth-child(even) .tl-content {
  grid-column: 3;
  text-align: left;
  padding-left: 2.5rem;
}

.tl-dot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-dot-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00d4aa;
  box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.15), 0 0 16px rgba(0, 212, 170, 0.5);
}

.tl-year {
  font-family: "Space Mono", monospace;
  font-size: 2rem;
  color: #00d4aa;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.tl-month {
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: #5a8a82;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.tl-caption {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 1.4rem;
  color: #e0f0ee;
  margin-bottom: 0.5rem;
}

.tl-desc {
  font-size: 0.87rem;
  line-height: 1.7;
  color: #5a8a82;
}

.tl-img .photo-frame {
  aspect-ratio: 3/2;
  border-radius: 0.75rem;
}

.gallery {
  background: #0b1515;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #101e1e;
  cursor: pointer;
  border: 1px solid rgba(0, 212, 170, 0.08);
  transition: border-color 0.3s;
}
.gallery-item:hover {
  border-color: rgba(0, 212, 170, 0.3);
}
.gallery-item:nth-child(1) {
  aspect-ratio: 4/5;
}
.gallery-item:nth-child(2) {
  aspect-ratio: 1/1;
}
.gallery-item:nth-child(3) {
  aspect-ratio: 3/4;
}
.gallery-item:nth-child(4) {
  aspect-ratio: 1/1;
}
.gallery-item:nth-child(5) {
  aspect-ratio: 4/3;
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: background 0.3s;
}
.gallery-item:hover .gallery-overlay {
  background: rgba(6, 13, 13, 0.6);
}

.gallery-caption {
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: #7fffd4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.love-letter {
  background: #060d0d;
}

.letter-container {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.letter-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.letter-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 212, 170, 0.18));
}
.letter-line.right {
  background: linear-gradient(to left, transparent, rgba(0, 212, 170, 0.18));
}

.letter-ornament {
  font-size: 2.2rem;
  color: #00d4aa;
  filter: drop-shadow(0 0 12px rgba(0, 212, 170, 0.6));
}

.letter-label {
  font-family: "Space Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: #00d4aa;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: block;
}

.letter-sublabel {
  font-family: "Space Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: #5a8a82;
  margin-bottom: 2rem;
  display: block;
}

.letter-text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-style: italic;
  line-height: 1.9;
  color: #b0d8d2;
}

.letter-sign {
  display: block;
  margin-top: 2rem;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #00957a;
}

.countdown-section {
  background: #0b1515;
  text-align: center;
}

.monitor-frame {
  display: inline-block;
  border: 1px solid rgba(0, 212, 170, 0.18);
  border-radius: 0.75rem;
  padding: 2rem 3rem;
  margin-top: 3rem;
  background: rgba(0, 212, 170, 0.02);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.04);
  position: relative;
}
.monitor-frame::before {
  content: "VITALS MONITOR";
  position: absolute;
  top: -0.65rem;
  left: 1.5rem;
  font-family: "Space Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: #00d4aa;
  background: #0b1515;
  padding: 0 0.5rem;
}

.countdown-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.count-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.count-number {
  font-family: "Space Mono", monospace;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #7fffd4;
  font-weight: 700;
  line-height: 1;
  min-width: 3ch;
  text-align: center;
}

.count-label {
  font-family: "Space Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  color: #5a8a82;
  text-transform: uppercase;
}

.count-divider {
  font-family: "Space Mono", monospace;
  font-size: 2.5rem;
  color: #00957a;
  align-self: flex-start;
  margin-top: 0.5rem;
  opacity: 0.4;
}

footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(0, 212, 170, 0.1);
}
footer p {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 1.2rem;
  font-style: italic;
  color: #5a8a82;
}

.footer-heart {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.6));
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.94);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
#lightbox.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.18), 0 0 80px rgba(0, 0, 0, 0.9);
}

#lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #00d4aa;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.7;
  font-family: "Space Mono", monospace;
  transition: opacity 0.2s;
  z-index: 2001;
}
#lightbox-close:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .story-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .story-split.reverse {
    direction: ltr;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }
  .timeline-item:nth-child(odd) .tl-content, .timeline-item:nth-child(even) .tl-content {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 0 0 1rem 1.5rem;
  }
  .timeline-item:nth-child(odd) .tl-dot, .timeline-item:nth-child(even) .tl-dot {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding-top: 0.3rem;
  }
  .timeline-item:nth-child(odd) .tl-img, .timeline-item:nth-child(even) .tl-img {
    grid-column: 2;
    grid-row: 2;
    padding: 0 0 0 1.5rem;
    order: unset;
  }
}
@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item:nth-child(5) {
    grid-column: span 1;
    aspect-ratio: 1/1;
  }
  .section-inner {
    padding: 4rem 1.5rem;
  }
  .lock-card {
    padding: 2.2rem 1.4rem 2rem;
  }
  .lock-corner {
    display: none;
  }
  .monitor-frame {
    padding: 1.5rem;
  }
  .vitals {
    gap: 1rem;
  }
  .code-inputs {
    gap: 0.45rem;
  }
  .code-inputs input {
    width: 42px;
    height: 52px;
    font-size: 1.4rem;
  }
}
@media (max-width: 440px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item:nth-child(5) {
    grid-column: span 1;
  }
}
