/* Gallery — Spark Buck Studio (shared site styles) */
:root {
  --bg: #e8eef4;
  --bg-deep: #d4e0ec;
  --ink: #0f1720;
  --ink-soft: #3d4a57;
  --muted: #5c6b7a;
  --line: rgba(15, 23, 32, 0.1);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --accent: #0c6e6e;
  --accent-deep: #085454;
  --warm: #c45c26;
  --play: #01875f;
  --play-hover: #016b4c;
  --max: 1120px;
  --content: 760px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -10%, #f6fbff 0%, transparent 55%),
    radial-gradient(900px 500px at 95% 8%, #d9f0ea 0%, transparent 50%),
    radial-gradient(700px 400px at 50% 100%, #f3e8df 0%, transparent 45%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-deep); }
img { max-width: 100%; display: block; }

/* ========== Shared header ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(232, 238, 244, 0.78);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark .dot {
  color: var(--accent);
}

.brand-mark .tag {
  margin-left: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 4px;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
}

.nav-cta {
  margin-left: 6px;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  background: var(--play) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--play-hover) !important;
  color: #fff !important;
}

/* ========== Shared footer ========== */
.site-footer {
  max-width: var(--max);
  width: 100%;
  margin: auto auto 0;
  padding: 28px 22px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 28px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.site-footer p { margin: 0; }

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover { color: var(--ink); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.9rem 1.35rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-play {
  background: var(--play);
  color: #fff;
}

.btn-play:hover {
  background: var(--play-hover);
  box-shadow: 0 10px 28px rgba(1, 135, 95, 0.28);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover { border-color: rgba(15, 23, 32, 0.22); }

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ========== Inner content pages ========== */
.page {
  flex: 1;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 36px 22px 48px;
}

.page-panel {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 32, 0.06);
}

.page-panel h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-optical-sizing: auto;
}

.page-panel h2 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--accent-deep);
}

.page-meta {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-meta code {
  font-size: 0.88em;
  background: var(--bg);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

.page-panel p,
.page-panel li {
  color: var(--ink-soft);
}

.page-panel ul {
  padding-left: 1.25rem;
}

.page-panel li { margin: 0.4rem 0; }

.page-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.form-stack label {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-stack input,
.form-stack textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #f7fafc;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-stack input:focus,
.form-stack textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 110, 110, 0.15);
  background: #fff;
}

.form-stack textarea {
  min-height: 130px;
  resize: vertical;
}

.form-stack .btn {
  margin-top: 18px;
  align-self: flex-start;
  border: none;
}

/* ========== Home: hero ========== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 22px 64px;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px 52px;
  align-items: center;
}

.hero-copy {
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 7.5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
  color: var(--ink);
}

.hero h1 .line { display: block; }

.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent) 0%, #1a9a8a 50%, var(--warm) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 30ch;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  font-weight: 400;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.meta-line {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.meta-line code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-row span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Home visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: rise-in 1s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.visual-frame {
  position: relative;
  min-height: min(500px, 64vh);
  border-radius: 28px;
}

.visual-stage {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #1a222c;
}

.visual-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: kenburns 18s ease-in-out infinite alternate;
}

.visual-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(10, 16, 22, 0.45) 100%),
    linear-gradient(90deg, rgba(10, 16, 22, 0.18) 0%, transparent 42%);
  pointer-events: none;
}

.film-strip {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 8%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 6%;
  z-index: 2;
  animation: slide-up 1.05s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.film-strip figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(8, 16, 24, 0.28);
}

.film-strip figure:nth-child(1) { transform: rotate(-4deg) translateY(8px); }
.film-strip figure:nth-child(2) { transform: rotate(2deg) translateY(-6px); }
.film-strip figure:nth-child(3) { transform: rotate(-2.5deg) translateY(4px); }
.film-strip figure:nth-child(4) { transform: rotate(3.5deg) translateY(-2px); }

.film-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caption sits under the media — not over the photos */
.visual-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0;
  padding: 0 4px 2px;
  animation: fade-in 0.9s 0.35s both;
}

.visual-caption-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.visual-caption-mark::after {
  content: "·";
  margin-left: 14px;
  color: var(--muted);
  font-weight: 500;
}

.visual-caption-text {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Features */
.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 22px 72px;
}

.band-head {
  margin: 0 0 32px;
  max-width: 36ch;
}

.band-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  font-optical-sizing: auto;
}

.band-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 28px;
}

.feature {
  padding: 4px 0 8px;
  border-top: 2px solid var(--ink);
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.feature:nth-child(1) { animation-delay: 0.05s; }
.feature:nth-child(2) { animation-delay: 0.12s; }
.feature:nth-child(3) { animation-delay: 0.19s; }

.feature h3 {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Privacy / legal strip */
.privacy-strip {
  max-width: var(--max);
  margin: 0 auto 48px;
  padding: 0 22px;
}

.privacy-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: end;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privacy-inner h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.privacy-inner p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
  font-weight: 600;
}

.privacy-links a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.privacy-links a:hover {
  color: var(--accent-deep);
  border-color: var(--warm);
}

/* Download CTA band on home */
.download-band {
  max-width: var(--max);
  margin: 0 auto 56px;
  padding: 0 22px;
}

.download-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 32px 28px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(12, 110, 110, 0.12), rgba(196, 92, 38, 0.08)),
    rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.download-inner h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.download-inner p {
  margin: 0;
  color: var(--muted);
}

/* Motion */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.14) translate(-2%, -1.5%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy,
  .hero-visual,
  .film-strip,
  .visual-caption,
  .feature,
  .visual-stage img {
    animation: none !important;
  }
  .visual-caption {
    opacity: 1;
  }
  .btn:hover { transform: none; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
    gap: 32px;
  }

  .hero-visual {
    order: -1;
  }

  .visual-frame {
    min-height: 360px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 11vw, 3.7rem);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .privacy-inner {
    grid-template-columns: 1fr;
  }

  .privacy-links {
    justify-content: flex-start;
  }

  .nav-cta { display: none; }
}

@media (max-width: 720px) {
  .brand-mark .tag { display: none; }
}

@media (max-width: 560px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 18px;
    min-height: auto;
  }

  .nav {
    width: 100%;
    gap: 2px;
  }

  .nav a {
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .film-strip {
    grid-template-columns: repeat(2, 1fr);
    bottom: 14%;
  }

  .film-strip figure:nth-child(n + 3) { display: none; }

  .btn { width: 100%; }

  .cta-row { flex-direction: column; }

  .page-panel { padding: 24px 18px; }

  .download-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .page .btn-ghost {
    margin-left: 0 !important;
    margin-top: 10px;
  }
}
