/* ======================================================
   PROJECT DETAILS / BLOG PAGE
====================================================== */

/* ---------- HERO ---------- */
.project-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.project-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.project-hero-video,
.project-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Dark gradient overlay for text legibility */
.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(20, 15, 10, 0.1) 0%,
    rgba(20, 15, 10, 0.35) 50%,
    rgba(20, 15, 10, 0.82) 100%
  );
  z-index: 1;
}

:root[data-theme="dark"] .project-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

/* ---------- HERO CONTENT ---------- */
.project-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2.5rem 5rem;
  color: #fff;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.project-back-link:hover {
  color: #fff;
  transform: translateX(-4px);
}

.project-category {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}

.project-title em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(135deg, #f5d4b0, #e4b8c9, #c9d0b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-hook {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  margin-bottom: 2rem;
}

.project-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-hero-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.project-hero-actions .btn-ghost:hover {
  color: var(--accent);
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ======================================================
   AUTHOR META BAR
====================================================== */

.project-meta-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 0;
}

.project-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.author-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.author-name strong {
  font-family: 'Playfair Display', serif;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  font-size: 1.15rem;
  margin-left: 0.2rem;
}

.author-dates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.author-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.author-date svg {
  opacity: 0.7;
}

.author-date-divider {
  opacity: 0.4;
}

/* ======================================================
   ARTICLE BODY
====================================================== */

.project-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
}

.project-section {
  margin-bottom: 4rem;
}

.project-section .eyebrow {
  font-size: 1rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.85rem;
}

.project-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.project-section p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.project-section p:last-child {
  margin-bottom: 0;
}

.project-section strong {
  color: var(--text);
  font-weight: 600;
}

/* Lead paragraph (first paragraph of overview) */
.lead-body {
  font-size: 1.25rem !important;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  line-height: 1.6 !important;
  color: var(--text);
}

/* ---------- BLOCKQUOTE ---------- */
.project-quote {
  position: relative;
  margin: 2rem 0;
  padding: 1.75rem 2rem 1.75rem 3rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 18px 18px 0;

  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
}

.project-quote::before {
  content: "“";
  position: absolute;
  left: 0.75rem;
  top: -0.25rem;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
}

.project-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---------- TECH STACK PILLS ---------- */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;

  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);

  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;

  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.tech-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- FIGURES (images & videos) ---------- */
.project-figure {
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-figure img,
.project-figure video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.project-figure video {
  cursor: pointer;
}

.project-figure figcaption {
  margin-top: 0.85rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.5;
  max-width: 90%;
}

/* Allow images to break out wider than text column for impact */
.project-figure.figure-wide {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  padding: 0 2rem;
}

.project-figure.figure-wide img,
.project-figure.figure-wide video {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- FEATURE / BULLET LIST ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.feature-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.85rem;
  color: var(--accent);
  font-size: 1rem;
}

.feature-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- METRICS GRID ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.75rem 1.25rem;
  text-align: center;

  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.metric strong {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

.metric small {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ---------- LINK CARDS ---------- */
.project-links-section {
  margin-bottom: 3rem;
}

.project-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;

  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);

  transition: transform 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.project-link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.link-glyph {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-link-card > div {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-link-card strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
}

.project-link-card span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.link-arrow {
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.project-link-card:hover .link-arrow {
  transform: translate(3px, -3px);
}

/* ---------- PREV / NEXT NAVIGATION ---------- */
.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.project-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 1.75rem;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;

  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-nav-link:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.project-nav-prev { text-align: left; }
.project-nav-next { text-align: right; }

.project-nav-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.project-nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

/* ======================================================
   RESPONSIVE
====================================================== */

/* Tablet */
@media (max-width: 900px) {
  .project-hero {
    min-height: 60vh;
  }

  .project-hero-content {
    padding: 3rem 2rem 4rem;
  }

  .project-meta-wrap {
    padding: 2rem 2rem 0;
  }

  .project-article {
    padding: 2.5rem 2rem 5rem;
  }

  .project-section {
    margin-bottom: 3rem;
  }

  .project-quote {
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    font-size: 1.1rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .project-hero {
    min-height: 55vh;
  }

  .project-hero-content {
    padding: 2.5rem 1.5rem 3rem;
  }

  .project-back-link {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }

  .project-category {
    font-size: 0.9rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.25rem;
  }

  .project-hook {
    font-size: 1.1rem;
  }

  .project-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .project-meta-wrap {
    padding: 1.5rem 1.25rem 0;
  }

  .project-author {
    padding: 1.15rem 1.25rem;
    gap: 1rem;
  }

  .author-avatar {
    width: 48px;
    height: 48px;
  }

  .author-name strong {
    font-size: 1.05rem;
  }

  .author-dates {
    font-size: 0.9rem;
    gap: 0.45rem;
  }

  .author-date-divider {
    display: none; /* stack naturally on mobile */
    }

  .project-article {
    padding: 2rem 1.25rem 4rem;
  }

  .project-section {
    margin-bottom: 2.75rem;
  }

  .project-section h2 {
    font-size: clamp(1.55rem, 6vw, 2rem);
    margin-bottom: 1rem;
  }

  .project-section p {
    font-size: 1.02rem;
    line-height: 1.7;
  }

  .lead-body {
    font-size: 1.15rem !important;
  }

  .project-quote {
    padding: 1.25rem 1.25rem 1.25rem 2.25rem;
    font-size: 1.05rem;
    margin: 1.5rem 0;
  }

  .project-quote::before {
    font-size: 3rem;
    left: 0.5rem;
  }

  .tech-pill {
    font-size: 0.92rem;
    padding: 0.48rem 0.95rem;
  }

  .feature-list li {
    font-size: 1rem;
    padding: 0.6rem 0 0.6rem 1.6rem;
  }

  .project-figure {
    margin: 2rem 0;
  }

  .project-figure img,
  .project-figure video {
    border-radius: 14px;
  }

  .project-figure figcaption {
    font-size: 0.92rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .metric {
    padding: 1.4rem 0.85rem;
  }

  .metric strong {
    font-size: 1.75rem;
  }

  .metric span {
    font-size: 0.95rem;
  }

  .metric small {
    font-size: 0.75rem;
  }

  .project-link-card {
    padding: 1.1rem 1.2rem;
  }

  .link-glyph {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .project-link-card strong {
    font-size: 1rem;
  }

  .project-link-card span {
    font-size: 0.88rem;
  }

  .project-nav {
    grid-template-columns: 1fr;
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .project-nav-next {
    text-align: left; /* stack cleanly on mobile */
  }

  .project-nav-link {
    padding: 1.2rem 1.4rem;
  }
}

/* Small Mobile */
@media (max-width: 380px) {
  .project-title {
    font-size: 2rem;
  }

  .project-hook {
    font-size: 1rem;
  }

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

  .metric strong {
    font-size: 1.6rem;
  }

  .author-name strong {
    font-size: 1rem;
  }
}

/* Touch devices — soften hovers */
@media (hover: none) {
  .tech-pill:hover,
  .metric:hover,
  .project-link-card:hover,
  .project-nav-link:hover {
    transform: none;
    border-color: var(--border);
  }

  .project-link-card:hover .link-arrow {
    transform: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .project-hero-video {
    display: none; /* swap in poster image behavior */
  }

  .project-back-link,
  .tech-pill,
  .metric,
  .project-link-card,
  .project-nav-link,
  .link-arrow {
    transition: none;
  }
}


/* ======================================================
   Text Highlights for Light & Dark Modes
====================================================== */

/* -------- Mystic Gradient Highlight -------- */
.mystic-highlight {
  font-weight: 600;
  position: relative;
  transition: transform 0.3s ease, background 0.5s ease;
}

/* Light Mode — Darker Mystic Highlight */
:root .mystic-highlight {
  background: linear-gradient(
    120deg,
    #d89b62,   /* deeper sunset gold */
    #d97a8f,   /* richer coral pink */
    #6fa594    /* darker seafoam green */
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dark Mode */
:root[data-theme="dark"] .mystic-highlight {
  background: linear-gradient(
    120deg,
    #ff9f76,   /* glowing amber */
    #ff6f91,   /* deep coral */
    #4fc3c9    /* tropical teal */
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mystic-highlight:hover {
  transform: scale(1.05);
}


/* -------- Sun-Kissed Glow -------- */
.sun-kissed {
  font-weight: 600;
  transition: text-shadow 0.3s ease;
}

/* Light Mode — Darker Sun-Kissed Glow */
:root .sun-kissed {
  color: #fff; /* keep text white for contrast */
  text-shadow:
    0 0 4px #c78c5c,   /* deep golden brown */
    0 0 8px #d57b72,   /* muted coral */
    0 0 12px #b88fa0,  /* richer pink-magenta */
    0 0 18px #9aa3d1;  /* soft twilight blue */
}

/* Dark Mode */
:root[data-theme="dark"] .sun-kissed {
  color: #fff;
  text-shadow:
    0 0 8px #ffcf9f,
    0 0 16px #ffb3a6,
    0 0 24px #f98fb8,
    0 0 32px #cfa6ff;
}

.sun-kissed:hover {
  text-shadow:
    0 0 12px #ffe6b3,
    0 0 24px #ffd1c4,
    0 0 36px #fbb2c9,
    0 0 48px #e9e6ff;
}




/* ======================================================
   SITE FOOTER — Mystical, Three-Column
====================================================== */

.site-footer {
  position: relative;
  margin-top: 6rem;
  padding: 0;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  color: var(--text);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2.5rem 2rem;
}

/* ---------- Decorative Divider ---------- */
.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  opacity: 0.7;
}

.divider-line {
  flex-grow: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border),
    transparent
  );
}

.divider-glyph {
  font-size: 1.25rem;
  color: var(--accent);
}

/* ---------- Grid Layout ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col--brand {
  align-items: center;
  text-align: center;
}

.footer-col--contact {
  align-items: flex-end;
  text-align: right;
}

/* ---------- Column Headings ---------- */
.footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}

.footer-glyph {
  color: var(--accent);
  font-size: 1.1rem;
}

/* ======================================================
   LEFT — Quick Links
====================================================== */

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
  padding-left: 0;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a::before {
  content: "✦";
  position: absolute;
  left: 0;
  opacity: 0;
  color: var(--accent);
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 1.25rem;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ======================================================
   CENTER — Brand / Logo
====================================================== */

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  transition: transform 0.4s ease;
}

.footer-logo-link:hover {
  transform: scale(1.05);
}

.footer-logo {
  width: 90px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(80, 60, 30, 0.15));
}

:root[data-theme="dark"] .footer-logo {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  max-width: 280px;
}

/* Socials */
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text-muted);
  text-decoration: none;

  transition: color 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease,
              transform 0.3s ease;
}

.footer-socials a:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ======================================================
   RIGHT — Contact
====================================================== */

.footer-contact-note {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 260px;
  letter-spacing: 0.03em;
}

.footer-email {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  word-break: break-all;
  transition: color 0.3s ease;
}

.footer-email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.footer-email:hover {
  color: var(--accent);
}

.footer-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mystical CTA Button */
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;

  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--bg);

  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  background-size: 200% 200%;
  background-position: 0% 50%;

  border: none;
  border-radius: 999px;

  box-shadow: 0 6px 20px rgba(138, 107, 74, 0.2);

  transition: background-position 0.6s ease,
              transform 0.3s ease,
              box-shadow 0.4s ease;
}

:root[data-theme="dark"] .footer-cta-btn {
  box-shadow: 0 6px 20px rgba(212, 166, 122, 0.25);
}

.footer-cta-btn svg {
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.footer-cta-btn:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(138, 107, 74, 0.3);
}

:root[data-theme="dark"] .footer-cta-btn:hover {
  box-shadow: 0 10px 28px rgba(212, 166, 122, 0.35);
}

.footer-cta-btn:hover svg {
  transform: translateX(4px);
}

/* ======================================================
   BOTTOM BAR — Copyright + Fine Links
====================================================== */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;

  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin: 0;
}

.footer-bottom p em {
  color: var(--accent);
  font-style: italic;
}

.footer-fine-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

.footer-fine-links a {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.footer-fine-links a:hover {
  color: var(--accent);
}

/* ======================================================
   RESPONSIVE — Footer
====================================================== */

/* Tablet */
@media (max-width: 900px) {
  .footer-inner {
    padding: 3rem 2rem 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }

  /* Brand spans full width and moves to top on tablet */
  .footer-col--brand {
    grid-column: 1 / -1;
    order: -1;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border);
  }

  .footer-col--contact {
    align-items: flex-start;
    text-align: left;
  }

  .footer-divider {
    margin-bottom: 2.5rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .site-footer {
    margin-top: 4rem;
  }

  .footer-inner {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .footer-divider {
    margin-bottom: 2rem;
    gap: 0.85rem;
  }

  .divider-line {
    max-width: 80px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-col,
  .footer-col--contact {
    align-items: center;
    text-align: center;
  }

  .footer-heading {
    justify-content: center;
  }

  /* Quick links centered */
  .footer-links {
    align-items: center;
  }

  .footer-links a:hover {
    padding-left: 1.25rem;
  }

  /* Brand stays centered */
  .footer-col--brand {
    padding-bottom: 0;
    border-bottom: none;
  }

  .footer-tagline {
    max-width: 320px;
  }

  .footer-contact-note {
    max-width: 320px;
  }

  /* Bottom bar stacks */
  .footer-bottom {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
    padding-top: 1.75rem;
  }

  .footer-fine-links {
    gap: 1.25rem;
  }
}

/* Small Mobile */
@media (max-width: 380px) {
  .footer-inner {
    padding: 2.25rem 1.25rem 1.25rem;
  }

  .footer-heading {
    font-size: 1.15rem;
  }

  .footer-links a {
    font-size: 1.02rem;
  }

  .footer-logo {
    width: 75px;
  }

  .footer-tagline {
    font-size: 1rem;
  }

  .footer-cta-btn {
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
  }

  .footer-socials a {
    width: 36px;
    height: 36px;
  }

  .footer-socials a svg {
    width: 18px;
    height: 18px;
  }
}

/* Touch devices — remove translate hovers */
@media (hover: none) {
  .footer-socials a:hover,
  .footer-cta-btn:hover,
  .footer-logo-link:hover {
    transform: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer-links a,
  .footer-links a::before,
  .footer-email,
  .footer-email::after,
  .footer-socials a,
  .footer-cta-btn,
  .footer-cta-btn svg,
  .footer-logo-link {
    transition: none;
  }
}