/* ============================================
   TRANSMUTANDO OFICIAL — Design Tokens & Styles
   ============================================ */

/* --- Type Scale (fluid clamp) --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* --- Spacing (4px base) --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Typography --- */
  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transition --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* --- Content Widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ============================
   LIGHT MODE (default)
   ============================ */
:root, [data-theme="light"] {
  --color-bg:             #faf8f5;
  --color-surface:        #f5f2ed;
  --color-surface-2:      #efe9e0;
  --color-surface-offset: #eee8de;
  --color-divider:        #ddd6ca;
  --color-border:         #d0c8bb;

  --color-text:           #2b2317;
  --color-text-muted:     #7a7064;
  --color-text-faint:     #b5aa9e;
  --color-text-inverse:   #faf8f5;

  /* Primary accent — gold/amber */
  --color-primary:        #b8860b;
  --color-primary-hover:  #9a6f00;
  --color-primary-active: #7d5a00;
  --color-primary-highlight: #f0e4c8;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 70 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 70 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 70 / 0.12);

  /* CTA section — dark gold background */
  --color-cta-bg: #3a2e10;
  --color-cta-text: #f5edd8;
  --color-cta-text-muted: #c8b88a;
  --color-cta-card: oklch(0.3 0.06 70 / 0.5);
  --color-cta-card-hover: oklch(0.35 0.07 70 / 0.6);
}

/* ============================
   DARK MODE
   ============================ */
[data-theme="dark"] {
  --color-bg:             #141210;
  --color-surface:        #1c1916;
  --color-surface-2:      #24201c;
  --color-surface-offset: #1e1b17;
  --color-divider:        #2e2a25;
  --color-border:         #3d3730;

  --color-text:           #e0d9cf;
  --color-text-muted:     #8a8178;
  --color-text-faint:     #5c554e;
  --color-text-inverse:   #1c1916;

  --color-primary:        #daa520;
  --color-primary-hover:  #f0c040;
  --color-primary-active: #f5d060;
  --color-primary-highlight: #3a3220;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);

  /* CTA section — dark gold background */
  --color-cta-bg: #2a2008;
  --color-cta-text: #f0e6cc;
  --color-cta-text-muted: #b8a878;
  --color-cta-card: oklch(0.25 0.05 70 / 0.5);
  --color-cta-card-hover: oklch(0.3 0.06 70 / 0.6);
}

/* Dark mode via system preference disabled — always light theme */

/* ============================
   GLOBAL ELEMENTS
   ============================ */
body {
  font-family: var(--font-body);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

/* ============================
   LAYOUT UTILITIES
   ============================ */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--wide {
  max-width: var(--content-wide);
}

.container--narrow {
  max-width: var(--content-narrow);
}

/* ============================
   HEADER / NAV
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s var(--ease-out),
              transform 0.3s var(--ease-out);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-wide);
  margin-inline: auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.header__logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
}

.header__link:hover {
  color: var(--color-text);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

/* Header social icons */
.header__social {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}

.header__social-link:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

/* Mobile nav */
@media (max-width: 640px) {
  .header__link {
    display: none;
  }
  .header__social {
    display: none;
  }
}

/* ============================
   HERO SECTION — Split layout with Sacred Geometry
   ============================ */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-24) var(--space-4) var(--space-12);
  position: relative;
  overflow: hidden;
}

/* Sacred Geometry — Flower of Life behind the Hero */
.hero__sacred-geo {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: clamp(400px, 50vw, 700px);
  height: auto;
  pointer-events: none;
  z-index: 0;
  color: var(--color-primary);
  opacity: 0.08;
  animation: sacred-spin 120s linear infinite;
}

@keyframes sacred-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

[data-theme="dark"] .hero__sacred-geo {
  opacity: 0.06;
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  max-width: var(--content-wide);
  margin-inline: auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__logo-mark {
  width: clamp(48px, 8vw, 72px);
  height: auto;
  margin-bottom: var(--space-6);
  color: var(--color-primary);
}

.hero__title {
  font-size: var(--text-2xl);
  font-weight: 500;
  max-width: 20ch;
  margin-bottom: var(--space-4);
  color: var(--color-text);
  line-height: 1.2;
}

.hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 38ch;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

/* Image side — cutout style, no frame */
.hero__image-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.hero__image {
  width: clamp(320px, 38vw, 520px);
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Mobile: stack vertically, image on top */
@media (max-width: 768px) {
  .hero {
    padding-top: var(--space-20);
  }

  .hero__split {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: center;
  }

  .hero__content {
    align-items: center;
    order: 2;
  }

  .hero__image-wrap {
    order: 1;
  }

  .hero__image {
    width: clamp(220px, 60vw, 320px);
  }

  .hero__title {
    max-width: 18ch;
    margin-inline: auto;
  }

  .hero__subtitle {
    max-width: 48ch;
    margin-inline: auto;
  }

  .hero__sacred-geo {
    right: -20%;
    top: 25%;
    width: 350px;
    opacity: 0.06;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

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

.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn--outline:active {
  transform: translateY(0);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  animation: scroll-hint 2s ease-in-out infinite;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes scroll-hint {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* ============================
   BANNER SELO DOS ARCANJOS
   ============================ */
.banner-selo {
  background: var(--color-surface);
  padding-block: var(--space-2);
}

.banner-selo__link {
  display: block;
  max-width: var(--content-wide);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.banner-selo__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.banner-selo__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================
   ABOUT SECTION
   ============================ */
.about {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.about__sacred-geo {
  position: absolute;
  top: 50%;
  left: -8%;
  transform: translateY(-50%);
  width: clamp(200px, 25vw, 320px);
  pointer-events: none;
  color: var(--color-primary);
  opacity: 0.06;
  animation: sacred-spin 90s linear infinite reverse;
}

[data-theme="dark"] .about__sacred-geo {
  opacity: 0.04;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: auto 1fr;
    gap: var(--space-12);
  }
}

.about__avatar-wrap {
  display: flex;
  justify-content: center;
}

.about__avatar {
  width: clamp(120px, 20vw, 180px);
  height: clamp(120px, 20vw, 180px);
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--color-primary-highlight);
  box-shadow: var(--shadow-md);
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about__title {
  font-size: var(--text-xl);
  color: var(--color-text);
}

.about__text {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: var(--text-base);
}

.about__stats {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================
   SHORTS CAROUSEL
   ============================ */
.shorts {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  background: var(--color-bg);
}

.shorts__title {
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-8);
  text-align: center;
}

.shorts__carousel {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-4);
  padding-inline: max(var(--space-4), calc((100vw - 1400px) / 2));
  justify-content: center;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.shorts__carousel::-webkit-scrollbar {
  height: 6px;
}

.shorts__carousel::-webkit-scrollbar-track {
  background: transparent;
}

.shorts__carousel::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

.shorts__item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: clamp(220px, 40vw, 280px);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (max-width: 640px) {
  .shorts__item {
    width: 75vw;
  }
}

.shorts__embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-2);
  box-shadow: var(--shadow-sm);
}

.shorts__embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.shorts__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  padding-inline: var(--space-1);
}

/* ============================
   MATERIAIS GRATUITOS
   ============================ */
.materiais {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  background: var(--color-surface);
}

.materiais__title {
  font-size: var(--text-xl);
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-3);
}

.materiais__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.materiais__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 960px) {
  .materiais__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .materiais__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
}

.materiais__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.materiais__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.materiais__card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.materiais__card-icon svg {
  width: 100%;
  height: 100%;
}

.materiais__card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.materiais__card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.materiais__btn {
  margin-top: auto;
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-5);
}

/* ============================
   LEAD CAPTURE MODAL
   ============================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out),
              visibility 0.3s var(--ease-out);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0.1 0 0 / 0.6);
  cursor: pointer;
}

.modal__content {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 420px;
  width: calc(100% - var(--space-8));
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-out);
}

.modal.is-open .modal__content {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
  cursor: pointer;
}

.modal__close:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.modal__title {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.modal__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.modal__field input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition-interactive);
}

.modal__field input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.modal__field input::placeholder {
  color: var(--color-text-faint);
}

.modal__consent {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.modal__consent label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  cursor: pointer;
}

.modal__consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--color-primary);
}

.modal__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}

.modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal__success {
  text-align: center;
  padding: var(--space-4) 0;
}

.modal__success-title {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.modal__success-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================
   CTA / CONTACT SECTION (Gold highlight)
   ============================ */
.cta {
  padding-block: clamp(var(--space-12), 8vw, var(--space-32));
  text-align: center;
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  position: relative;
  overflow: hidden;
}

.cta__sacred-geo {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: clamp(250px, 30vw, 400px);
  pointer-events: none;
  color: var(--color-cta-text);
  opacity: 0.05;
  animation: sacred-spin 100s linear infinite;
}

.cta__title {
  font-size: var(--text-2xl);
  color: var(--color-cta-text);
  margin-bottom: var(--space-4);
}

.cta__text {
  font-size: var(--text-base);
  color: var(--color-cta-text-muted);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

/* Social cards grid */
.cta__social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.cta__social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-8);
  background: var(--color-cta-card);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-cta-text);
  min-width: 180px;
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              background var(--transition-interactive);
}

.cta__social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.15);
  background: var(--color-cta-card-hover);
  color: var(--color-cta-text);
}

.cta__social-card:active {
  transform: translateY(0);
}

.cta__social-card svg {
  flex-shrink: 0;
}

.cta__social-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}

.cta__social-handle {
  font-size: var(--text-xs);
  opacity: 0.7;
}

@media (max-width: 640px) {
  .cta__social-grid {
    flex-direction: column;
    align-items: center;
  }
  .cta__social-card {
    width: 100%;
    max-width: 280px;
  }
}

.cta__email {
  margin-top: var(--space-8);
  text-align: center;
}

.cta__email-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-cta-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-cta-card);
  border-radius: var(--radius-full);
  transition: all var(--transition-interactive);
  letter-spacing: 0.02em;
}

.cta__email-link:hover {
  color: var(--color-cta-text);
  border-color: var(--color-cta-text-muted);
  background: var(--color-cta-card);
}

.cta__email-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}

.footer__social a:hover {
  color: var(--color-primary);
  background: var(--color-surface-2);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__gratitude {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-style: italic;
}

.footer__attribution {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__attribution a {
  color: var(--color-text-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__attribution a:hover {
  color: var(--color-text-muted);
}

/* ============================
   SCROLL REVEAL ANIMATIONS
   ============================ */
.reveal {
  opacity: 1; /* Fallback: visible */
}

@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

.reveal-clip {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal-clip {
    clip-path: inset(100% 0 0 0);
    animation: reveal-clip-anim linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-clip-anim {
  to { clip-path: inset(0 0 0 0); }
}

/* Staggered children */
@supports (animation-timeline: scroll()) {
  .reveal-stagger > :nth-child(1) { animation-delay: 0ms; }
  .reveal-stagger > :nth-child(2) { animation-delay: 60ms; }
  .reveal-stagger > :nth-child(3) { animation-delay: 120ms; }
}

/* ============================
   HERO ENTRANCE ANIMATION (initial load)
   ============================ */
.hero__logo-mark,
.hero__title,
.hero__subtitle,
.hero .btn {
  animation: hero-enter 0.8s var(--ease-out) both;
}

.hero__image-wrap {
  animation: hero-image-enter 1s var(--ease-out) both;
  animation-delay: 0.1s;
}

.hero__logo-mark  { animation-delay: 0.1s; }
.hero__title      { animation-delay: 0.25s; }
.hero__subtitle   { animation-delay: 0.4s; }
.hero .btn        { animation-delay: 0.55s; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-image-enter {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================
   DECORATIVE ELEMENTS
   ============================ */

/* Subtle gold radial glow behind hero image area */
.hero::before {
  content: '';
  position: absolute;
  top: 45%;
  right: 10%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.75 0.12 85 / 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, oklch(0.55 0.12 85 / 0.12) 0%, transparent 70%);
}
