:root {
  --cream: #fff6ee;
  --cream-deep: #f7e8d8;
  --peach: #e8a598;
  --peach-deep: #d48472;
  --rose: #c97b84;
  --ink: #3d2c29;
  --ink-soft: #6b534c;
  --muted: #9a7f74;
  --sage: #a8b5a0;
  --card: rgba(255, 252, 248, 0.88);
  --shadow: 0 18px 50px rgba(92, 55, 40, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
  --font-display: "Fraunces", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(232, 165, 152, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 10%, rgba(168, 181, 160, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(201, 123, 132, 0.12), transparent 50%),
    var(--cream);
  pointer-events: none;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 196, 176, 0.28) 0%, rgba(255, 196, 176, 0) 68%);
  mix-blend-mode: multiply;
  transition: opacity 0.35s ease;
  will-change: transform;
}

.cursor-glow.is-on {
  opacity: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(14px);
  background: rgba(255, 246, 238, 0.78);
  border-bottom: 1px solid rgba(61, 44, 41, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #ffd8c8, #f0b6a8);
  color: var(--ink);
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(212, 132, 114, 0.25);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.nav-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream) !important;
}

.menu-btn {
  display: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 44, 41, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

/* Shared */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.section-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2,
.about-copy h2,
.hello-card h2,
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.section-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--peach-deep), var(--rose));
  color: #fff8f4;
  box-shadow: 0 10px 28px rgba(201, 123, 132, 0.32);
}

.btn.ghost {
  color: var(--ink-soft);
  border: 1px solid rgba(61, 44, 41, 0.12);
  background: rgba(255, 255, 255, 0.45);
}

:focus-visible {
  outline: 2px solid var(--peach-deep);
  outline-offset: 3px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem 3rem;
  align-items: center;
  padding: 3.2rem 0 3.8rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 5px rgba(168, 181, 160, 0.25);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

.hero h1 em {
  font-style: normal;
  color: var(--peach-deep);
  background: linear-gradient(120deg, transparent 0%, rgba(232, 165, 152, 0.28) 0%, transparent 100%);
  background-size: 100% 0.35em;
  background-repeat: no-repeat;
  background-position: 0 88%;
}

.lede {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.hero-meta li {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid rgba(61, 44, 41, 0.06);
  box-shadow: var(--shadow);
}

.hero-meta span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.hero-meta strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.hero-photo {
  margin: 0;
  position: relative;
}

.photo-frame {
  border-radius: 42% 58% 48% 52% / 48% 42% 58% 52%;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(92, 55, 40, 0.18),
    0 0 0 10px rgba(255, 255, 255, 0.65);
  background: var(--cream-deep);
  aspect-ratio: 1;
  animation: blob 12s ease-in-out infinite;
  cursor: ew-resize;
  touch-action: none;
}

.photo-frame img,
.photo-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover media: no play button, scrub by pointer X */
.hover-media {
  position: relative;
  isolation: isolate;
  --scrub-x: 50%;
  cursor: ew-resize;
  touch-action: none;
  outline: none;
}

.hover-media .media-poster,
.hover-media .media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hover-media .media-poster {
  z-index: 1;
  transition: opacity 0.35s ease;
}

.hover-media .media-video {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
  /* Hide any native chrome / gesture UI */
  background: transparent;
}

.hover-media.is-active .media-video,
.hover-media.is-playing .media-video {
  opacity: 1;
}

.hover-media.is-active .media-poster,
.hover-media.is-playing .media-poster {
  opacity: 0;
}

.hover-media.is-hero .media-poster,
.hover-media.is-hero .media-video {
  position: absolute;
}

.hover-media video::-webkit-media-controls {
  display: none !important;
}

.hover-media video::-webkit-media-controls-enclosure {
  display: none !important;
}

.scrub-hint {
  position: absolute;
  z-index: 4;
  left: 0.85rem;
  right: 0.85rem;
  top: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scrub-hint span {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(255, 252, 248, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(61, 44, 41, 0.08);
}

.scrub-hint.compact span {
  font-size: 0.7rem;
  padding: 0.22rem 0.5rem;
}

.hover-media.is-active .scrub-hint,
.hover-media:focus-visible .scrub-hint {
  opacity: 1;
  transform: translateY(0);
}

.hover-media[data-dir="reverse"] .scrub-hint span:first-child {
  background: rgba(61, 44, 41, 0.88);
  color: #fff6ee;
}

.hover-media[data-dir="forward"] .scrub-hint span:last-child {
  background: rgba(61, 44, 41, 0.88);
  color: #fff6ee;
}

.scrub-bar {
  position: absolute;
  z-index: 4;
  left: 12%;
  right: 12%;
  bottom: 1rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow: visible;
}

.hover-media.is-active .scrub-bar,
.hover-media:focus-visible .scrub-bar {
  opacity: 1;
}

.scrub-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 132, 114, 0.45), 0 4px 12px rgba(61, 44, 41, 0.2);
  transition: left 0.05s linear;
}

.hover-media.is-active {
  box-shadow:
    0 30px 60px rgba(92, 55, 40, 0.2),
    0 0 0 10px rgba(255, 255, 255, 0.72),
    0 0 0 1px rgba(232, 165, 152, 0.35);
}

.hover-media.is-loading::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: auto 1rem 1rem auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--peach-deep);
  animation: pulse-dot 0.9s ease infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.hero-photo figcaption {
  position: absolute;
  left: 8%;
  bottom: -0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.stamp {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

@keyframes blob {
  0%,
  100% {
    border-radius: 42% 58% 48% 52% / 48% 42% 58% 52%;
  }
  50% {
    border-radius: 55% 45% 58% 42% / 42% 55% 45% 58%;
  }
}

/* About */
.about {
  padding: 1rem 0 3.5rem;
}

.about-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
  padding: 1.4rem;
  border-radius: calc(var(--radius) + 8px);
  background: var(--card);
  border: 1px solid rgba(61, 44, 41, 0.06);
  box-shadow: var(--shadow);
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream-deep);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
}

.about-copy p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Traits */
.traits {
  padding: 1rem 0 3.5rem;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.trait {
  padding: 1.3rem 1.15rem 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 238, 0.7));
  border: 1px solid rgba(61, 44, 41, 0.06);
  box-shadow: 0 10px 30px rgba(92, 55, 40, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trait:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(92, 55, 40, 0.1);
}

.trait-icon {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: rgba(232, 165, 152, 0.2);
  font-size: 1.1rem;
}

.trait h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-family: var(--font-display);
}

.trait p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* Motion playground */
.motion {
  padding: 1rem 0 3.5rem;
}

.motion-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.motion-card {
  position: relative;
  min-height: 320px;
  aspect-ratio: 3 / 2;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: var(--shadow);
}

.motion-card .media-poster,
.motion-card .media-video {
  position: absolute;
}

.motion-meta {
  position: absolute;
  z-index: 4;
  left: 1rem;
  right: 1rem;
  bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(61, 44, 41, 0.08);
  pointer-events: none;
}

.motion-meta strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.motion-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.motion-card .scrub-bar {
  bottom: 5.2rem;
}

/* Gallery */
.gallery {
  padding: 1rem 0 3.5rem;
}

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

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 4;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  background: var(--cream-deep);
}

.gallery-item.tall {
  grid-column: span 6;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 100%;
}

.gallery-item.wide {
  grid-column: span 6;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:not(.hover-media):hover img,
.gallery-item:not(.hover-media):focus-visible img {
  transform: scale(1.04);
}

.gallery-item.hover-media .media-poster,
.gallery-item.hover-media .media-video {
  position: absolute;
}

.gallery-item.hover-media .scrub-bar {
  bottom: 3.4rem;
}

.gallery-item.hover-media .gallery-label {
  z-index: 4;
}

.gallery-label {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.9);
  backdrop-filter: blur(8px);
  font-size: 0.88rem;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 20px rgba(61, 44, 41, 0.08);
}

/* Day timeline */
.day {
  padding: 1rem 0 3.5rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid rgba(61, 44, 41, 0.05);
}

.timeline time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--peach-deep);
  padding-top: 0.15rem;
}

.timeline h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Hello */
.hello {
  padding: 1rem 0 2rem;
}

.hello-card {
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), transparent 40%),
    linear-gradient(160deg, #f6c9b8 0%, #efb0a4 42%, #c97b84 100%);
  color: #3d2c29;
  box-shadow: 0 24px 50px rgba(201, 123, 132, 0.28);
  text-align: center;
}

.hello-card .section-kicker {
  color: rgba(61, 44, 41, 0.72);
}

.hello-card h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: #2d1f1c;
}

.hello-card p {
  margin: 0 auto 1.4rem;
  max-width: 34rem;
  color: rgba(45, 31, 28, 0.86);
}

.hello-card .btn.primary {
  background: #2d1f1c;
  color: #fff6ee;
  box-shadow: 0 12px 28px rgba(45, 31, 28, 0.22);
}

.hello-note {
  margin-top: 1.25rem !important;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  border-top: 1px solid rgba(61, 44, 41, 0.08);
  color: var(--muted);
}

.site-footer strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(40, 26, 22, 0.78);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  max-width: min(960px, 100%);
  width: 100%;
}

.lightbox img {
  width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  border-radius: 18px;
  background: #1c1412;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox figcaption {
  margin-top: 0.85rem;
  text-align: center;
  color: #f7e8d8;
  font-size: 0.98rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 246, 238, 0.95);
  color: var(--ink);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }

  .hero-photo {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .trait-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item,
  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: span 12;
    grid-row: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

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

@media (max-width: 720px) {
  .menu-btn {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.7rem;
    border-radius: 18px;
    background: rgba(255, 252, 248, 0.96);
    border: 1px solid rgba(61, 44, 41, 0.08);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
  }

  .site-nav a:hover {
    background: rgba(232, 165, 152, 0.12);
  }

  .nav-pill {
    text-align: center;
  }

  .site-header {
    position: sticky;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .trait-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .photo-frame,
  .trait,
  .gallery-item img,
  .btn,
  .cursor-glow {
    animation: none !important;
    transition: none !important;
  }

  .fx-canvas,
  .cursor-glow {
    display: none !important;
  }

  .scrub-hint,
  .scrub-bar {
    display: none;
  }
}
