@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&display=swap");

:root {
  --background: #03111f;
  --foreground: #f8fbff;
  --cyan: #7df9ff;
  --blue: #2c75ff;
  --deep-blue: #3137fd;
  --navy: #035096;
  --steel: #536878;
  --glass: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.2);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: Archivo;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(125, 249, 255, 0.25), transparent 28rem),
    radial-gradient(circle at 85% 2%, rgba(44, 117, 255, 0.28), transparent 24rem),
    linear-gradient(135deg, #03111f 0%, #051827 42%, #07101b 100%);
  color: var(--foreground);
  font-family: Archivo, Arial, Helvetica, sans-serif;
  font-weight: 500;
}

button,
input {
  font: inherit;
}

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -5;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 35%, rgba(125, 249, 255, 0.08) 45%, transparent 56%),
    linear-gradient(245deg, transparent 0 42%, rgba(49, 55, 253, 0.1) 52%, transparent 66%);
  opacity: 0.8;
  animation: auroraSweep 14s ease-in-out infinite alternate;
}

.hero-section {
  min-height: 88vh;
  position: relative;
  display: grid;
  align-items: center;
  padding: 24px;
  isolation: isolate;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 17, 31, 0.12), rgba(3, 17, 31, 0.92)),
    linear-gradient(90deg, rgba(3, 17, 31, 0.72), transparent 62%);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  gap: 6px;
  width: min(92vw, 430px);
  padding: 6px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 20, 36, 0.54);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  animation: navDrop 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.topbar a {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.topbar a:hover {
  background: rgba(255, 255, 255, 0.13);
  color: white;
}

.hero-copy {
  width: min(760px, 100%);
  margin: 10vh auto 4vh;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 9vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
}

.kinetic-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.08em 0.18em;
  font-family: Archivo, Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.kinetic-title span {
  display: inline-block;
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
  transform-origin: left bottom;
  filter: blur(0);
}

.hero-title span {
  animation: titleWordIn 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title span:nth-child(2) {
  animation-delay: 150ms;
}

.reveal.is-visible .kinetic-title span,
.private-copy.is-visible .kinetic-title span {
  animation: titleWordIn 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal.is-visible .kinetic-title span:nth-child(2),
.private-copy.is-visible .kinetic-title span:nth-child(2) {
  animation-delay: 90ms;
}

.reveal.is-visible .kinetic-title span:nth-child(3),
.private-copy.is-visible .kinetic-title span:nth-child(3) {
  animation-delay: 180ms;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  animation: actionFloat 1000ms 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
}

.primary-action {
  background: var(--foreground);
  color: #03111f;
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.primary-action,
.secondary-action,
.like-button,
.password-row button,
.lightbox-close {
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.primary-action:hover,
.secondary-action:hover,
.like-button:hover,
.password-row button:hover,
.lightbox-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(44, 117, 255, 0.24);
}

.quick-stats,
.story-section,
.gallery-section,
.private-section,
footer {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: -42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

.quick-stats div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition:
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 700ms ease,
    background 220ms ease;
}

.quick-stats strong {
  display: block;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
}

.quick-stats span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.story-section,
.gallery-section,
.private-section {
  padding: 92px 0 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 28px;
  opacity: 1;
  transform: translateY(0);
}

.section-heading h2,
.private-copy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 900;
}

.section-heading p:not(.eyebrow),
.private-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.7;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.fact-strip article {
  min-height: 172px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
  transition:
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 700ms ease,
    border-color 220ms ease,
    background 220ms ease;
  transition-delay: var(--delay);
}

.fact-strip article.is-visible:hover {
  transform: translateY(-4px) rotateX(0deg) scale(1);
  border-color: rgba(125, 249, 255, 0.5);
  background: rgba(255, 255, 255, 0.13);
}

.fact-strip span,
.photo-meta span,
.unlocked-note {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace, monospace;
  font-size: 12px;
  font-weight: 800;
}

.fact-strip p {
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.photo-card {
  grid-column: span 4;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 700ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
  transition-delay: var(--delay);
}

.photo-card.is-visible:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(125, 249, 255, 0.46);
  background: rgba(255, 255, 255, 0.135);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.photo-card:nth-child(5n + 1),
.photo-card:nth-child(7n + 4) {
  grid-column: span 6;
}

.photo-button {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.photo-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.photo-button:hover img {
  transform: scale(1.045);
  filter: saturate(1.12);
}

.photo-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.photo-meta h3 {
  margin: 4px 0 0;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 900;
}

.photo-card > p {
  margin: 0 4px 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.55;
}

.like-button {
  flex: 0 0 auto;
  min-width: 78px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(125, 249, 255, 0.38);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 72, 126, 0.16), rgba(125, 249, 255, 0.09));
  color: white;
  cursor: pointer;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  position: relative;
  overflow: visible;
}

.like-button:active {
  transform: translateY(-1px) scale(1.08);
  border-color: rgba(255, 75, 125, 0.72);
  box-shadow: 0 0 0 10px rgba(255, 75, 125, 0.12), 0 20px 54px rgba(255, 75, 125, 0.28);
}

.like-button .heart-icon {
  color: #ff4b7d;
  font-family: inherit;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(255, 75, 125, 0.72));
  transform: translateY(-1px);
  transform-origin: 50% 58%;
  transition: transform 180ms ease, filter 180ms ease;
}

.like-button .like-count {
  min-width: 1.2em;
  text-align: left;
  color: white;
  font-family: inherit;
  font-size: 15px;
}

.like-button.is-popping {
  animation: likeButtonPop 430ms cubic-bezier(0.2, 1.35, 0.25, 1);
}

.like-button.is-popping .heart-icon {
  animation: heartPop 430ms cubic-bezier(0.2, 1.35, 0.25, 1);
}

.like-button:active .heart-icon {
  transform: translateY(-1px) scale(1.55) rotate(-8deg);
  filter: drop-shadow(0 0 24px rgba(255, 75, 125, 0.95));
}

@keyframes likeButtonPop {
  0% {
    transform: translateY(0) scale(1);
  }
  46% {
    transform: translateY(-3px) scale(1.13);
    box-shadow: 0 0 0 13px rgba(255, 75, 125, 0.16), 0 22px 58px rgba(255, 75, 125, 0.32);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes heartPop {
  0% {
    transform: translateY(-1px) scale(1) rotate(0deg);
  }
  42% {
    transform: translateY(-2px) scale(1.72) rotate(-10deg);
    filter: drop-shadow(0 0 28px rgba(255, 75, 125, 1));
  }
  72% {
    transform: translateY(-1px) scale(1.18) rotate(5deg);
  }
  100% {
    transform: translateY(-1px) scale(1) rotate(0deg);
  }
}

.private-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}

.private-copy,
.unlock-panel,
.private-gallery {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(44, 117, 255, 0.24), rgba(125, 249, 255, 0.08));
  backdrop-filter: blur(18px);
}

.private-copy {
  padding: 28px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.unlock-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  animation: panelPulse 5s ease-in-out infinite;
}

.unlock-panel label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 800;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.password-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 14px;
  background: rgba(3, 17, 31, 0.72);
  color: white;
}

.password-row button {
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--cyan);
  color: #03111f;
  cursor: pointer;
  font-weight: 900;
}

.form-error {
  margin: 0;
  color: #ffd2d2;
}

.private-gallery {
  padding: 16px;
}

.private-gallery .photo-grid {
  grid-template-columns: repeat(2, 1fr);
}

.private-gallery .photo-card,
.private-gallery .photo-card:nth-child(n) {
  grid-column: span 1;
}

.unlocked-note {
  display: block;
  margin: 0 0 12px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: rgba(3, 17, 31, 0.88);
  backdrop-filter: blur(20px);
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 44px);
  object-fit: contain;
  border-radius: 8px;
}

.lightbox div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
}

.lightbox h3 {
  margin: 0 0 12px;
  font-size: 36px;
}

.lightbox p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 42px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.reveal.is-visible,
.quick-stats div.is-visible,
.fact-strip article.is-visible,
.photo-card.is-visible,
.private-copy.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
}

@keyframes heroDrift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes titleWordIn {
  from {
    opacity: 0;
    transform: translate3d(0, 0.75em, 0) rotateX(32deg) scale(0.96);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translate(-50%, -18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes actionFloat {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auroraSweep {
  from {
    transform: translate3d(-4%, -2%, 0) rotate(-2deg);
  }
  to {
    transform: translate3d(4%, 3%, 0) rotate(3deg);
  }
}

@keyframes panelPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(125, 249, 255, 0);
  }
  50% {
    box-shadow: 0 0 44px rgba(125, 249, 255, 0.11);
  }
}

@supports (animation-timeline: view()) {
  .section-heading .kinetic-title span,
  .private-copy .kinetic-title span {
    animation: titleWordIn linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 34%;
  }

  .fact-strip article,
  .photo-card,
  .quick-stats div {
    animation: scrollRise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

@keyframes scrollRise {
  from {
    opacity: 0.35;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 860px) {
  .hero-section {
    min-height: 88vh;
    padding: 18px;
  }

  .hero-copy {
    margin: 16vh auto 6vh;
  }

  .quick-stats,
  .fact-strip,
  .private-section {
    grid-template-columns: 1fr;
  }

  .photo-grid,
  .private-gallery .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-card,
  .photo-card:nth-child(n),
  .private-gallery .photo-card:nth-child(n) {
    grid-column: span 1;
  }

  .lightbox {
    grid-template-columns: 1fr;
    align-content: center;
    overflow: auto;
  }
}

@media (max-width: 560px) {
  .hero-image-wrap::after {
    background:
      linear-gradient(180deg, rgba(3, 17, 31, 0.18), rgba(3, 17, 31, 0.96)),
      linear-gradient(90deg, rgba(3, 17, 31, 0.76), rgba(3, 17, 31, 0.2));
  }

  .topbar {
    top: 10px;
    width: calc(100% - 20px);
  }

  .hero-copy h1 {
    font-size: clamp(48px, 18vw, 72px);
  }

  .topbar a {
    padding-inline: 8px;
    font-size: 13px;
  }

  .quick-stats {
    margin-top: -18px;
  }

  .quick-stats div,
  .private-copy {
    padding: 18px;
  }

  .password-row {
    grid-template-columns: 1fr;
  }

  .password-row button {
    min-height: 46px;
  }

  footer {
    flex-direction: column;
  }
}

.lightbox[hidden]{display:none!important;}
