:root {
  --ink: #141b24;
  --ink-soft: #5a6573;
  --paper: #f3efe8;
  --rose: #d6455d;
  --rose-deep: #b8334a;
  --night: #1a2433;
  --white: #fffdf8;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  line-height: 1.55;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 0.3rem;
  background: rgba(20, 27, 36, 0.06);
}

.heart {
  color: var(--rose);
  padding: 0 0.06em;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.4rem);
  color: var(--white);
  background: linear-gradient(180deg, rgba(20, 27, 36, 0.5), transparent);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-stage {
  position: absolute;
  inset: 0;
}

.hero-stage .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 8s ease;
}

.hero-stage .slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 18, 28, 0.25) 0%, rgba(12, 18, 28, 0.15) 40%, rgba(12, 18, 28, 0.78) 100%),
    linear-gradient(90deg, rgba(12, 18, 28, 0.35), transparent 55%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 7rem) clamp(1rem, 4vw, 2.4rem) clamp(2.4rem, 7vh, 4rem);
}

.brand {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.02em;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.lede {
  margin: 0.9rem 0 0;
  max-width: 36ch;
  color: rgba(255, 253, 248, 0.9);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.2rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 160ms ease, background-color 160ms ease;
}

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

.btn-primary {
  background: var(--rose);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--rose-deep);
}

.btn-ghost {
  border-color: rgba(255, 253, 248, 0.55);
  background: rgba(255, 253, 248, 0.08);
}

.gallery-section {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(0.8rem, 2vw, 1.2rem) 1rem;
  background: #0f1620;
  color: var(--white);
}

.gallery-head {
  width: min(100%, 1120px);
  margin: 0 auto 1.4rem;
  padding: 0 0.4rem;
}

.gallery-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.gallery-head p {
  margin: 0.45rem 0 0;
  color: rgba(255, 253, 248, 0.7);
  font-size: 0.95rem;
}

.mosaic {
  columns: 2;
  column-gap: 0.55rem;
}

@media (min-width: 700px) {
  .mosaic {
    columns: 3;
  }
}

@media (min-width: 1100px) {
  .mosaic {
    columns: 4;
  }
}

.tile {
  break-inside: avoid;
  margin: 0 0 0.55rem;
  position: relative;
  overflow: hidden;
  border-radius: 0.45rem;
  background: #1c2736;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s ease forwards;
}

.tile:nth-child(3n) {
  animation-delay: 60ms;
}

.tile:nth-child(3n + 1) {
  animation-delay: 120ms;
}

.tile:nth-child(3n + 2) {
  animation-delay: 180ms;
}

.tile img {
  aspect-ratio: 4 / 5;
  min-height: 12rem;
  transition: transform 480ms ease;
}

.tile.wide img {
  aspect-ratio: 16 / 10;
}

.tile:hover img,
.tile:focus-within img {
  transform: scale(1.04);
}

.tile figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.6rem 0.75rem 0.7rem;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 18, 0.82));
  font-size: 0.82rem;
}

.tile figcaption strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.tile figcaption span {
  color: rgba(255, 253, 248, 0.75);
}

.panel {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.1rem, 4vw, 2rem);
}

.panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.panel-lede {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
}

.panel-lede a {
  color: var(--rose-deep);
  font-weight: 600;
  text-decoration: underline;
}

.source-list,
.api-steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.source-list li,
.api-steps li {
  padding: 1rem 0;
  border-top: 1px solid rgba(20, 27, 36, 0.12);
}

.source-list li:last-child,
.api-steps li:last-child {
  border-bottom: 1px solid rgba(20, 27, 36, 0.12);
}

.source-list a {
  display: inline-block;
  font-weight: 700;
  color: var(--rose-deep);
  margin-bottom: 0.25rem;
}

.source-list span,
.api-steps li {
  color: var(--ink-soft);
}

.api-note {
  margin-top: 1.2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-footer {
  padding: 2.4rem 1.2rem 3rem;
  text-align: center;
  background: var(--night);
  color: rgba(255, 253, 248, 0.88);
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.footer-note {
  margin: 0.55rem auto 0;
  max-width: 40rem;
  font-size: 0.9rem;
  color: rgba(255, 253, 248, 0.68);
}

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

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

  .brand,
  .hero h1,
  .lede,
  .cta-row,
  .tile,
  .hero-stage .slide {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
