/* ===========================================================
   Lanternwood Studio — stylesheet
   Dark-teal / amber palette, system-font stack, CSS-only motion.
   =========================================================== */

:root {
  /* Palette (from brand assets: night forest + amber lantern glow) */
  --color-bg: #08151a;
  --color-bg-alt: #0d1f22;
  --color-bg-card: #102528;
  --color-teal-900: #061013;
  --color-teal-700: #123338;
  --color-teal-500: #1f5158;
  --color-teal-300: #3f7c82;
  --color-amber-100: #ffe9c2;
  --color-amber-300: #ffcf80;
  --color-amber-500: #f2a93c;
  --color-amber-600: #d98a1f;
  --color-amber-700: #b56d15;
  --color-ink-100: #f4efe4;
  --color-ink-300: #cfc9bb;
  --color-ink-500: #9aa5a3;
  --color-ink-700: #6c7876;

  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-md: 10px;
  --radius-lg: 20px;
  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(242, 169, 60, 0.18);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink-100);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-amber-300);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--color-amber-500);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-ink-100);
}

p {
  margin: 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-top: 14px;
  line-height: 1.15;
}

.section-head p {
  margin-top: 16px;
  color: var(--color-ink-300);
  font-size: 1.05rem;
}

section {
  position: relative;
  padding: 96px 0;
}

/* ---------- Top nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(6, 16, 19, 0.92), rgba(6, 16, 19, 0));
  backdrop-filter: blur(6px);
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(8, 21, 26, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 207, 128, 0.08);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--color-ink-100);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-ink-300);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-amber-500);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-amber-300);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 88px;
  overflow: hidden;
  isolation: isolate;
}

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

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.06);
  animation: hero-drift 22s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.11) translate3d(-1.2%, -0.8%, 0); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(6, 14, 17, 0.96) 2%, rgba(6, 14, 17, 0.35) 46%, rgba(6, 14, 17, 0.55) 100%),
    linear-gradient(to right, rgba(6, 14, 17, 0.55), rgba(6, 14, 17, 0) 55%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 30%;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(242, 169, 60, 0.16), transparent 68%);
  filter: blur(4px);
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.hero-content {
  max-width: 760px;
  animation: rise-in 1.1s var(--ease-out) both;
}

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

.hero-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  box-shadow: var(--shadow-glow), 0 6px 24px rgba(0,0,0,0.5);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  color: var(--color-ink-100);
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.hero h1 em {
  font-style: normal;
  color: var(--color-amber-300);
}

.hero-tagline {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--color-ink-300);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-amber-500), var(--color-amber-700));
  color: #1b1206;
  box-shadow: 0 12px 30px -10px rgba(242, 169, 60, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(242, 169, 60, 0.65);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 233, 194, 0.22);
  color: var(--color-ink-100);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  border-color: rgba(255, 207, 128, 0.55);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-ink-500);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-cue .dot {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--color-amber-500), transparent);
  animation: scroll-cue-move 2.2s ease-in-out infinite;
}

@keyframes scroll-cue-move {
  0% { transform: scaleY(0.4); opacity: 0.2; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  100% { transform: scaleY(0.4); opacity: 0.2; transform-origin: bottom; }
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.22s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.42s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.52s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.62s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.72s; }

/* ---------- What we make ---------- */

.section-alt {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(31, 81, 88, 0.35), transparent 55%),
    var(--color-bg-alt);
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pack-card {
  position: relative;
  background: linear-gradient(160deg, var(--color-bg-card), var(--color-teal-900));
  border: 1px solid rgba(255, 233, 194, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px 30px;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.pack-card::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(242, 169, 60, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

.pack-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 207, 128, 0.28);
  box-shadow: var(--shadow-soft);
}

.pack-card:hover::before {
  opacity: 1;
}

.pack-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber-300);
  background: rgba(242, 169, 60, 0.1);
  border: 1px solid rgba(242, 169, 60, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.pack-status .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-amber-500);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 169, 60, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(242, 169, 60, 0); }
}

.pack-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.pack-card p {
  color: var(--color-ink-300);
  font-size: 0.96rem;
}

.pack-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pack-meta span {
  font-size: 0.75rem;
  color: var(--color-ink-500);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Gallery ---------- */

.gallery-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--color-ink-500);
  font-style: italic;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-teal-900);
  border: 1px solid rgba(255, 233, 194, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.06) saturate(1.08);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  font-size: 0.82rem;
  color: var(--color-ink-100);
  background: linear-gradient(to top, rgba(6,14,17,0.92), transparent);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Why Lanternwood ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  background: rgba(255, 233, 194, 0.08);
  border: 1px solid rgba(255, 233, 194, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why-item {
  background: var(--color-bg);
  padding: 34px 28px;
  transition: background 0.4s var(--ease-out);
}

.why-item:hover {
  background: var(--color-bg-card);
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 169, 60, 0.12);
  border: 1px solid rgba(242, 169, 60, 0.25);
  margin-bottom: 18px;
  color: var(--color-amber-300);
}

.why-item h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.why-item p {
  font-size: 0.92rem;
  color: var(--color-ink-300);
}

/* ---------- CTA strip ---------- */

.cta-strip {
  padding: 88px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(242, 169, 60, 0.1), transparent 60%),
    var(--color-teal-900);
}

.cta-strip h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 18px;
}

.cta-strip p {
  color: var(--color-ink-300);
  max-width: 46ch;
  margin: 0 auto 32px;
}

/* ---------- Footer ---------- */

footer.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid rgba(255, 233, 194, 0.08);
  background: var(--color-teal-900);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--color-ink-300);
}

.footer-links a {
  text-decoration: none;
  color: var(--color-ink-300);
  transition: color 0.25s var(--ease-out);
}

.footer-links a:hover {
  color: var(--color-amber-300);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 233, 194, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-ink-700);
}

.footer-bottom a {
  color: var(--color-ink-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: var(--color-amber-300);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .pack-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
  section {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hero {
    align-items: flex-end;
    padding-bottom: 64px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
  }
  .container {
    padding: 0 20px;
  }
}
