/* =========================================================
   ELEVATE WITH RUPALI — Global Styles
   Design System: Minimal · Editorial · Warm Neutrals
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Palette - warm, editorial, calm */
  --bg:        #F8F6F1;   /* cream paper */
  --bg-soft:   #F0EDE5;   /* warm gray */
  --ink:       #1B1B1B;   /* near black */
  --ink-soft:  #4A4A47;   /* secondary text */
  --line:      #DBD6CB;   /* hairlines */
  --accent:    #B85C38;   /* terracotta */
  --accent-2:  #2C3E2D;   /* deep forest */
  --highlight: #F4D9B0;   /* warm wash */
  --white:     #FFFFFF;

  /* Type */
  --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 6rem;
  --s-8: 9rem;

  --radius: 4px;
  --radius-lg: 12px;
  --max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 200ms;
  --t-med:  400ms;
  --t-slow: 700ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--accent); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
  line-height: 1.1;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 600; }
p  { margin: 0 0 var(--s-3); color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--s-2);
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--s-8) 0; position: relative; }
.divider { height: 1px; background: var(--line); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(184,92,56,.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-link {
  padding: 0;
  background: none;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform var(--t-med) var(--ease);
}
.btn-link:hover::after { transform-origin: left; transform: scaleX(0); }
.btn-link .arrow { transition: transform var(--t-med) var(--ease); }
.btn-link:hover .arrow { transform: translateX(6px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}
.site-header.scrolled { border-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  transition: transform var(--t-med) var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-12deg); background: var(--accent); }

.nav { display: flex; align-items: center; gap: var(--s-4); }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .nav-cta {
  margin-left: var(--s-2);
  padding: 0.55rem 1.05rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
}
.nav .nav-cta:hover { background: var(--accent); color: var(--white); }
.nav .nav-cta::after { display: none; }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--t-med) var(--ease);
}
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 20px; }
.menu-btn span:nth-child(3) { top: 26px; }
.menu-btn.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    background: #FFFFFF;
    padding: var(--s-4) var(--gutter);
    gap: var(--s-3);
    transform: translateX(100%);
    transition: transform var(--t-med) var(--ease);
    border-top: 1px solid var(--line);
    box-shadow: -10px 0 40px -10px rgba(0,0,0,0.15);
    z-index: 99;
    overflow-y: auto;
    height: calc(100vh - 64px);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.4rem; font-family: var(--font-serif); color: var(--ink); width: 100%; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav .nav-cta {
    margin-top: var(--s-2);
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius);
    text-align: center;
    padding: 1rem;
    border: none;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0E0D0B;
  color: #B5B0A4;
  padding: var(--s-7) 0 var(--s-3);
  margin-top: var(--s-7);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr 1.4fr;
  gap: var(--s-5);
  padding-bottom: var(--s-5);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Brand column */
.footer-brand .footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  position: relative;
  margin-bottom: var(--s-3);
}
.footer-logo-script {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  position: relative;
}
.footer-logo-script::after {
  content: '✶';
  position: absolute;
  top: -0.1em;
  right: -0.6em;
  font-size: 0.55rem;
  color: var(--accent);
  font-style: normal;
}
.footer-logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--font-sans);
  display: block;
  margin-top: 0.45rem;
  padding-left: 0.3rem;
  position: relative;
}
.footer-logo-sub::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.3rem;
}
.footer-tagline {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #8E8A80;
  margin-bottom: var(--s-3);
  max-width: 320px;
}
.footer-socials {
  display: flex;
  gap: 0.7rem;
}
.footer-socials a {
  width: 40px; height: 40px;
  border: 1px solid #2a2925;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #8E8A80;
  background: transparent;
  transition: all var(--t-med);
}
.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}
.footer-socials svg { width: 14px; height: 14px; fill: currentColor; }

/* Column headers */
.footer-col h4 {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--s-3);
  font-family: var(--font-sans);
}
.footer-col ul { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: #B5B0A4; font-size: 0.92rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--white); }

/* Resume PDF button */
.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  background: transparent;
  color: var(--white);
  border: 1px solid #2a2925;
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all var(--t-med);
}
.btn-resume::before {
  content: '↓';
  font-size: 0.95rem;
  letter-spacing: 0;
}
.btn-resume:hover { border-color: var(--accent); background: rgba(184,92,56,0.08); color: var(--accent); }

/* Newsletter */
.footer-col p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #8E8A80;
  margin-bottom: var(--s-3);
}
.newsletter-form {
  display: flex;
  background: transparent;
  border: 1px solid #2a2925;
  border-radius: 6px;
  overflow: hidden;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}
.newsletter-form input::placeholder { color: #6a665d; }
.newsletter-form button {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  transition: background var(--t-fast);
}
.newsletter-form button:hover { background: #a04d2c; }

/* Bottom strip */
.footer-bottom {
  border-top: 1px solid #1a1815;
  padding-top: var(--s-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #6a665d;
  letter-spacing: 0.02em;
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* Legacy aliases kept for any leftover markup */
.footer h4 { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; margin-bottom: var(--s-3); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.7rem; }
.footer a { color: #B5B0A4; font-size: 0.92rem; }
.footer a:hover { color: var(--white); }
.footer-tag { display: none; }
.social-row { display: flex; gap: 0.7rem; margin-top: var(--s-3); }
.social-row a { width: 40px; height: 40px; border: 1px solid #2a2925; border-radius: 50%; display: grid; place-items: center; color: #8E8A80; transition: all var(--t-med); }
.social-row a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.social-row svg { width: 14px; height: 14px; fill: currentColor; }
.copyright { display: none; }

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.hero {
  padding: var(--s-7) 0 var(--s-7);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s-6);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}
.hero-photo .photo-frame {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero-photo .photo-frame.active { opacity: 1; }

/* Placeholder gradients for the 4 rotating photos (replace with your headshots) */
.hero-photo .photo-frame:nth-child(1) {
  background-image: url('Rupali-photo-frame1.webp');
}
.hero-photo .photo-frame:nth-child(2) {
  background-image: url('Rupali-photo-frame1.webp');
}
.hero-photo .photo-frame:nth-child(3) {
  background-image: url('Rupali-photo-frame1.webp');
}
.hero-photo .photo-frame:nth-child(4) {
  background-image: url('Rupali-photo-frame1.webp');
}
.hero-photo .photo-frame::after {
  content: '';
}

/* Magazine-cover style overlay on hero photo */
.hero-photo .mag-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  color: var(--white);
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-photo .mag-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.mag-top, .mag-bottom { position: relative; z-index: 1; }
.mag-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.95;
}
.mag-masthead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  font-style: italic;
  text-transform: none;
  font-weight: 500;
}
.mag-bottom { display: flex; flex-direction: column; gap: 0.35rem; max-width: 90%; }
.mag-issue {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mag-issue::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--white);
  opacity: 0.7;
}
.mag-cover-line {
  position: relative;
  min-height: 5em;
}
.mag-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.mag-headline em { color: var(--highlight); font-style: italic; }
.mag-headline.active { opacity: 1; }
.mag-corner {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.hero-social {
  display: flex;
  gap: 0.7rem;
  margin-top: var(--s-3);
  justify-content: center;
}
.hero-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all var(--t-med);
  color: var(--ink);
}
.hero-social a:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }
.hero-social svg { width: 16px; height: 16px; fill: currentColor; }

.hero-text .greet {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.hero-text h1 {
  margin-bottom: var(--s-2);
}
.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-title {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-3);
  font-weight: 500;
}
.hero-bio {
  max-width: 540px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.hero-quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem;
  margin: var(--s-4) 0;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: var(--s-3); }

/* ============================================================
   PORTFOLIO (HOME)
   ============================================================ */
.portfolio { background: var(--bg-soft); }
.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.portfolio-head p { max-width: 460px; margin: 0; }

.scroll-stage {
  position: relative;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  overflow: hidden;
}
.case-track {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s-3);
  scrollbar-width: thin;
  scrollbar-color: var(--ink-soft) transparent;
}
.case-track::-webkit-scrollbar { height: 4px; }
.case-track::-webkit-scrollbar-thumb { background: var(--ink-soft); border-radius: 2px; }

.case-card {
  flex: 0 0 clamp(280px, 32vw, 440px);
  scroll-snap-align: start;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
  border: 1px solid var(--line);
}
.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(28,28,28,0.4);
}
.case-visual {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.case-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45));
  opacity: 0.4;
  transition: opacity var(--t-med);
}
.case-card:hover .case-visual::before { opacity: 0.7; }
.case-visual .stage-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.0);
  transition: transform 1.2s var(--ease);
}
.case-card:hover .stage-bg { transform: scale(1.06); }
.case-tag {
  position: absolute; top: 1rem; left: 1rem;
  z-index: 2;
  background: var(--bg);
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 100px;
  color: var(--ink);
}
.case-body { padding: var(--s-3); }
.case-body h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.case-body .meta {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-2);
}
.case-body p { font-size: 0.92rem; margin-bottom: var(--s-2); }
.case-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.case-cta .arrow { transition: transform var(--t-med); }
.case-card:hover .case-cta .arrow { transform: translateX(6px); }

/* Decorative stage backgrounds */
.stage-1 { background: linear-gradient(135deg,#2C3E2D,#587359); }
.stage-2 { background: linear-gradient(135deg,#B85C38,#E59A6B); }
.stage-3 { background: linear-gradient(135deg,#1B1B1B,#4A4A47); }
.stage-4 { background: linear-gradient(135deg,#8B6F47,#D4B08C); }

/* ============================================================
   PUBLICATIONS (HOME)
   ============================================================ */
.publications-head { margin-bottom: var(--s-5); }
.pub-track-wrap { position: relative; }
.pub-track {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s-3);
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.pub-card {
  flex: 0 0 clamp(280px, 28vw, 360px);
  scroll-snap-align: start;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  border: 1px solid var(--line);
}
.pub-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(28,28,28,0.3);
  border-color: transparent;
}
.pub-cover {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.pub-cover .pub-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 1.2s var(--ease);
}
.pub-card:hover .pub-img { transform: scale(1.07); }
.pub-cover-1 { background: linear-gradient(135deg, #2C3E2D, #587359); }
.pub-cover-2 { background: linear-gradient(135deg, #B85C38, #E59A6B); }
.pub-cover-3 { background: linear-gradient(135deg, #1B1B1B, #4A4A47); }
.pub-cover-4 { background: linear-gradient(135deg, #8B6F47, #D4B08C); }
.pub-cover-5 { background: linear-gradient(135deg, #a8b89e, #4a5d4f); }
.pub-cover-decor {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 1rem;
  z-index: 1;
}
.pub-body {
  padding: var(--s-3);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pub-card .pub-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.pub-card h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: var(--s-2);
}
.pub-card .pub-blurb {
  font-size: 0.92rem;
  margin-bottom: var(--s-3);
  flex: 1;
}
.pub-card .pub-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.scroll-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--s-3);
  justify-content: flex-end;
}
.scroll-controls button {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all var(--t-med);
}
.scroll-controls button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg-soft); }
.services-head { text-align: center; max-width: 720px; margin: 0 auto var(--s-5); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
@media (max-width: 800px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--highlight) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(28,28,28,0.25);
  border-color: var(--accent);
}
.service-card:hover::before { opacity: 0.85; transform: scale(1.4) rotate(15deg); }
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover .service-num { color: var(--accent-2); transform: translateX(4px); }
.service-card .service-num { transition: color var(--t-med), transform var(--t-med); }
.service-card:hover h3 { color: var(--accent); }
.service-card h3 { transition: color var(--t-med); }
.service-card:hover li { transform: translateX(4px); }
.service-card li { transition: transform var(--t-med); }
.service-card:hover li::before { color: var(--accent-2); }
.service-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: var(--s-2);
  position: relative;
  z-index: 1;
}
.service-card h3 { position: relative; z-index: 1; margin-bottom: var(--s-2); }
.service-card .lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: var(--s-3);
  position: relative; z-index: 1;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-3);
  position: relative; z-index: 1;
}
.service-card li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
  display: flex;
  gap: 0.6rem;
}
.service-card li::before {
  content: '◇';
  color: var(--accent);
  font-size: 0.8rem;
}
.ideal {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: var(--s-3);
  position: relative; z-index: 1;
}
.discovery {
  display: inline-block;
  background: var(--highlight);
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-3);
  position: relative; z-index: 1;
}

/* ============================================================
   SERVICES CTA — between Services and Contact
   ============================================================ */
.services-cta {
  text-align: center;
  padding: var(--s-7) 0;
  background: var(--bg);
  position: relative;
}
.services-cta::before {
  content: '✶';
  position: absolute;
  top: 2.5rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--accent);
}
.services-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.services-cta h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin: 0 auto var(--s-2);
  letter-spacing: -0.015em;
}
.services-cta h3 em { font-style: italic; color: var(--accent); }
.services-cta p {
  max-width: 540px;
  margin: 0 auto var(--s-4);
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.services-cta .btn-primary {
  font-size: 0.95rem;
  padding: 1.05rem 1.8rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg);
  color: var(--ink);
  position: relative;
}
.contact .wrap { position: relative; z-index: 1; }
.contact .eyebrow { color: var(--accent); }
.contact h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-5);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s-4); } }
.contact-text p {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.7;
}
.contact-info {
  margin-top: var(--s-4);
  display: grid;
  gap: var(--s-3);
}
.contact-info div { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-info strong {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.contact-info a, .contact-info span {
  color: var(--ink);
  font-size: 1rem;
}
.contact-info a:hover { color: var(--accent); }

.contact-socials {
  display: flex;
  gap: 0.7rem;
  margin-top: var(--s-4);
}
.contact-socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: all var(--t-med);
  background: transparent;
}
.contact-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}
.contact-socials svg { width: 15px; height: 15px; fill: currentColor; }

/* Form card on right */
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  box-shadow: 0 24px 60px -32px rgba(28,28,28,0.12);
  display: grid;
  gap: var(--s-3);
}
.contact-card .field { display: grid; gap: 0.4rem; }
.contact-card .field label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.contact-card .field input,
.contact-card .field select,
.contact-card .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--t-fast);
  width: 100%;
}
.contact-card .field input::placeholder,
.contact-card .field textarea::placeholder { color: #b0aca2; }
.contact-card .field input:focus,
.contact-card .field select:focus,
.contact-card .field textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184,92,56,0.08);
}
.contact-card .field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}
.contact-card .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
@media (max-width: 600px) { .contact-card .field-row { grid-template-columns: 1fr; } }
.contact-card .btn-primary {
  background: var(--ink);
  color: var(--white);
  justify-self: start;
  padding: 1rem 1.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-card .btn-primary:hover { background: var(--accent); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero { padding: var(--s-7) 0; }
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: var(--s-6);
  align-items: center;
}
@media (max-width: 900px) { .about-hero-grid { grid-template-columns: 1fr; } }
.about-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: var(--s-3); }
.about-hero p { font-size: 1.1rem; max-width: 560px; }
.about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,#d4b08c,#8b6f47);
  position: relative;
}
.about-photo::after {
  content: 'YOUR PHOTO';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.3em;
  font-size: 0.78rem;
}

.story {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-6) 0;
}
.story p {
  font-size: 1.18rem;
  line-height: 1.8;
  color: var(--ink);
}

.pillars { padding: var(--s-7) 0; }
.pillars h2 { text-align: center; max-width: 680px; margin: 0 auto var(--s-2); }
.pillars-intro {
  text-align: center;
  max-width: 580px;
  margin: 0 auto var(--s-5);
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
@media (max-width: 800px) { .pillar-grid { grid-template-columns: 1fr; } }

/* Interactive pillar card */
.pillar {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med),
              box-shadow var(--t-med),
              background var(--t-med);
  display: flex;
  flex-direction: column;
}
.pillar::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-slow), transform var(--t-slow);
  pointer-events: none;
}
.pillar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.pillar:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 32px 60px -32px rgba(184,92,56,0.32);
}
.pillar:hover::before { opacity: 0.18; transform: scale(1.15); }
.pillar:hover::after { transform: scaleX(1); }

.pillar-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: var(--s-3);
  transition: all var(--t-med) var(--ease);
  position: relative;
  z-index: 1;
}
.pillar:hover .pillar-icon {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: rotate(-10deg) scale(1.06);
}
.pillar-icon svg { width: 22px; height: 22px; }

.pillar .pillar-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}
.pillar h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
  transition: color var(--t-med);
}
.pillar:hover h3 { color: var(--accent); }
.pillar p {
  margin: 0 0 var(--s-3);
  font-size: 0.95rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Two CTAs per pillar — Services + Shop category */
.pillar-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.pillar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all var(--t-med) var(--ease);
}
.pillar-cta-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pillar-cta-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateX(2px);
}
.pillar-cta-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.pillar-cta-ghost:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(2px);
}
.pillar-cta .arrow { transition: transform var(--t-med); display: inline-block; }
.pillar-cta:hover .arrow { transform: translateX(5px); }

.credibility { padding: var(--s-7) 0; background: var(--bg-soft); }
.credibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}
@media (max-width: 800px) { .credibility-grid { grid-template-columns: 1fr; } }

/* Interactive credibility list — each line drives the right-side stage */
.credibility-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.credibility-list li {
  cursor: pointer;
  padding: 1rem 0.7rem 1rem 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  position: relative;
  color: var(--ink);
  transition: padding-left var(--t-med) var(--ease),
              background var(--t-fast),
              border-color var(--t-fast);
  outline: none;
}
.credibility-list li:last-child { border-bottom: 1px solid var(--line); }
.credibility-list li::before { content: none; }
.credibility-list li::after  { content: none; }
.credibility-list .cred-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.9rem;
  width: 28px;
  flex-shrink: 0;
  transition: color var(--t-fast);
}
.credibility-list .cred-text { line-height: 1.5; }
.credibility-list .cred-text strong { font-weight: 600; }

.credibility-list li:hover,
.credibility-list li:focus-visible,
.credibility-list li.active {
  padding-left: 0.8rem;
  background: linear-gradient(90deg, rgba(184,92,56,0.08), rgba(184,92,56,0));
}
.credibility-list li:hover .cred-num,
.credibility-list li:focus-visible .cred-num,
.credibility-list li.active .cred-num { color: var(--accent); }
.credibility-list li.active {
  border-top-color: var(--accent);
}

/* Right-side stage that swaps illustrations */
.credibility-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 380px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 24px 60px -36px rgba(28,28,28,0.18);
}
.cred-graphic {
  position: absolute;
  inset: 0;
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  pointer-events: none;
}
.cred-graphic.active {
  opacity: 1;
  transform: scale(1);
}
.cred-graphic svg {
  width: 80%;
  max-width: 320px;
  height: auto;
  display: block;
}
.cred-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
  text-align: center;
  max-width: 88%;
}
.cred-caption em { color: var(--accent); font-style: italic; }

.philosophy {
  text-align: center;
  padding: var(--s-7) 0;
  max-width: 760px;
  margin: 0 auto;
}
.philosophy .quote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
  font-style: italic;
  color: var(--ink);
  margin-bottom: var(--s-4);
}

.who-for { padding: var(--s-7) 0; background: var(--bg-soft); }
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-5);
}
@media (max-width: 800px) { .who-grid { grid-template-columns: 1fr; } }
.who-grid ul { list-style: none; padding: 0; }
.who-grid li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.who-grid li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 600;
}

.about-cta {
  text-align: center;
  padding: var(--s-7) 0;
}
.about-cta h2 { max-width: 720px; margin: 0 auto var(--s-3); }
.about-cta p { max-width: 540px; margin: 0 auto var(--s-4); }

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-hero { padding: var(--s-7) 0 var(--s-5); text-align: center; }
.shop-hero h1 { max-width: 820px; margin: 0 auto var(--s-3); }
.shop-hero p { max-width: 560px; margin: 0 auto; font-size: 1.1rem; }

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
@media (max-width: 900px) { .tabs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tabs { grid-template-columns: 1fr; } }
.tab {
  text-align: left;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}
.tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform var(--t-med) var(--ease);
}
.tab:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -22px rgba(184,92,56,0.4);
}
.tab:hover .tab-num { color: var(--accent); }
.tab.active {
  border-color: var(--accent);
  box-shadow: 0 20px 40px -22px rgba(184,92,56,0.5);
}
.tab.active::before { transform: translateY(0); }
.tab.active * { color: var(--white); position: relative; z-index: 2; }
.tab.active .tab-num { color: var(--highlight); }
.tab > * { position: relative; z-index: 2; }
.tab-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.9rem;
  transition: color var(--t-med);
}
.tab h3 {
  font-size: 1.15rem;
  margin: 0.6rem 0 0.5rem;
  letter-spacing: -0.01em;
  transition: color var(--t-med);
}
.tab p { font-size: 0.85rem; margin: 0; transition: color var(--t-med); }

/* Shop section heading that anchors selected category */
.category-anchor {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding: var(--s-5) 0 var(--s-3);
  border-top: 1px solid var(--accent);
  margin-top: var(--s-4);
  margin-bottom: var(--s-4);
}
.category-anchor h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0.5rem 0 0;
  letter-spacing: -0.01em;
}
.category-anchor .eyebrow { margin: 0; }
.category-anchor .anchor-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.category-anchor .anchor-meta strong { color: var(--accent); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }
.product {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.product:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(28,28,28,0.3); }
.product-cover {
  aspect-ratio: 4/3;
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.2;
}
.product-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.25));
}
.cover-1 { background: linear-gradient(135deg,#2C3E2D,#587359); }
.cover-2 { background: linear-gradient(135deg,#B85C38,#E59A6B); }
.cover-3 { background: linear-gradient(135deg,#8B6F47,#D4B08C); }
.cover-4 { background: linear-gradient(135deg,#1B1B1B,#4A4A47); }
.cover-5 { background: linear-gradient(135deg,#a8b89e,#4a5d4f); }
.cover-6 { background: linear-gradient(135deg,#d4b08c,#7a5e3f); }
.cover-7 { background: linear-gradient(135deg,#3a4d3a,#1B1B1B); }
.cover-8 { background: linear-gradient(135deg,#c08263,#7a3e25); }
.cover-9 { background: linear-gradient(135deg,#6b7d63,#2C3E2D); }
.product-body { padding: var(--s-3); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.product-body h4 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}
.product-body p { font-size: 0.88rem; margin: 0; flex: 1; }
.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
}
.price {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
}
.add-cart {
  background: var(--ink);
  color: var(--bg);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: all var(--t-med);
}
.add-cart:hover { background: var(--accent); }
.add-cart.added { background: var(--accent-2); }

/* Per-category bundle section (now sits inside each category, not after all) */
.category-bundle {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  margin-bottom: var(--s-5);
  position: relative;
  overflow: hidden;
}
.category-bundle::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--highlight) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.category-bundle .bundle-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-3);
  flex-wrap: wrap;
  gap: var(--s-2);
  position: relative;
  z-index: 1;
}
.category-bundle .bundle-head .label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.category-bundle h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: 0.3rem 0 0;
}
.category-bundle .bundle-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-3);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 700px) { .category-bundle .bundle-row { grid-template-columns: 1fr; } }
.category-bundle .bundle-includes {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}
.category-bundle .bundle-cta {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  text-align: center;
}
.category-bundle .bundle-prices {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}
.category-bundle .strike { text-decoration: line-through; color: var(--ink-soft); font-size: 1rem; }
.category-bundle .now { font-family: var(--font-serif); font-size: 2rem; line-height: 1; }
.category-bundle .save { color: var(--accent); font-size: 0.82rem; letter-spacing: 0.05em; font-weight: 500; margin-bottom: 0.7rem; }
.category-bundle .add-cart { width: 100%; padding: 0.75rem; background: var(--ink); color: var(--bg); border-radius: var(--radius); font-size: 0.88rem; }
.category-bundle .add-cart:hover { background: var(--accent); }

/* Featured "Digital CEO" bundle pinned at the bottom of shop */
.bundle-section { background: var(--bg-soft); padding: var(--s-7) 0; border-radius: var(--radius-lg); margin-top: var(--s-5); }
.bundle-section .wrap { padding: 0 var(--s-4); }
.bundle-section h2 { text-align: center; max-width: 680px; margin: 0 auto var(--s-2); }
.bundle-section .lede { text-align: center; max-width: 540px; margin: 0 auto var(--s-5); }
.bundle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  max-width: 720px;
  margin: 0 auto;
}
.bundle {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  position: relative;
  overflow: hidden;
  transition: all var(--t-med);
}
.bundle:hover { border-color: var(--ink); transform: translateY(-4px); }
.bundle-tag {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bundle h3 { padding-right: 5rem; }
.bundle .bundle-includes {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: var(--s-3);
}
.bundle .bundle-prices {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: var(--s-3);
}
.bundle .strike { text-decoration: line-through; color: var(--ink-soft); font-size: 1rem; }
.bundle .now { font-family: var(--font-serif); font-size: 2rem; }
.bundle .save { color: var(--accent); font-size: 0.85rem; font-weight: 500; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-fab {
  position: fixed;
  /* Stacks ABOVE the chatbot fab (chat is at bottom: 1.6rem;
     cart sits ~74px higher so they never overlap). */
  bottom: calc(1.6rem + 60px + 14px);
  right: 1.6rem;
  background: var(--ink);
  color: var(--bg);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px -14px rgba(0,0,0,0.45);
  z-index: 88;
  transition: all var(--t-med) var(--ease);
}
.cart-fab:hover { background: var(--accent); transform: scale(1.06); }
.cart-fab .count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: var(--white);
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  display: grid; place-items: center;
  font-weight: 600;
  border: 2px solid var(--bg);
}
.cart-fab.empty .count { display: none; }
.cart-fab svg { width: 22px; height: 22px; fill: currentColor; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(420px, 100%);
  background: var(--bg);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.2);
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.cart-head h3 { margin: 0; font-size: 1.4rem; }
.cart-close {
  font-size: 1.6rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background var(--t-fast);
}
.cart-close:hover { background: var(--bg-soft); }
.cart-body { flex: 1; overflow-y: auto; padding: var(--s-3); }
.cart-empty { text-align: center; padding: var(--s-5) 0; color: var(--ink-soft); }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
}
.cart-item h4 { font-size: 0.92rem; font-family: var(--font-sans); text-transform: none; letter-spacing: 0; margin: 0 0 0.2rem; }
.cart-item .price-line { font-size: 0.85rem; color: var(--ink-soft); }
.cart-item .remove {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-decoration: underline;
}
.cart-foot { padding: var(--s-3); border-top: 1px solid var(--line); }
.cart-total {
  display: flex; justify-content: space-between;
  margin-bottom: var(--s-3);
  font-family: var(--font-serif);
  font-size: 1.4rem;
}
.cart-foot .btn-primary { width: 100%; justify-content: center; }

/* ============================================================
   CASE STUDY PAGE
   ============================================================ */
.cs-hero {
  padding: var(--s-7) 0 var(--s-5);
  background: var(--bg-soft);
}
.cs-meta {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  flex-wrap: wrap;
}
.cs-meta span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cs-hero h1 { max-width: 900px; }
.cs-hero .lede { max-width: 720px; font-size: 1.2rem; }
.cs-cover {
  aspect-ratio: 16/8;
  border-radius: var(--radius-lg);
  margin-top: var(--s-5);
  background: linear-gradient(135deg, #2C3E2D, #587359);
  position: relative;
  overflow: hidden;
}
.cs-cover::after {
  content: 'PROJECT VISUAL';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.3em;
}
.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .cs-stats { grid-template-columns: 1fr 1fr; } }
.cs-stat .num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--accent);
}
.cs-stat .label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cs-section { padding: var(--s-6) 0; }
.cs-section .wrap { display: grid; grid-template-columns: 0.4fr 0.6fr; gap: var(--s-5); }
@media (max-width: 800px) { .cs-section .wrap { grid-template-columns: 1fr; } }
.cs-section h2 {
  font-size: 1.6rem;
  position: sticky;
  top: 100px;
}
.cs-section p { font-size: 1.05rem; line-height: 1.8; }
.cs-image {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  margin: var(--s-3) 0;
  background-size: cover;
  background-position: center;
  position: relative;
}
.cs-image.placeholder::after {
  content: 'IMAGE PLACEHOLDER';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.25em;
  font-size: 0.78rem;
}

.cs-quote {
  background: var(--ink);
  color: var(--bg);
  padding: var(--s-7) 0;
}
.cs-quote .wrap { max-width: 820px; }
.cs-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
  margin: 0 0 var(--s-3);
}
.cs-quote cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9C5BC;
}

.cs-next {
  padding: var(--s-7) 0;
  text-align: center;
}
.cs-next .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
@media (max-width: 700px) { .cs-next .pair { grid-template-columns: 1fr; } }
.cs-next-card {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all var(--t-med);
}
.cs-next-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.cs-next-card .label { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.cs-next-card h3 { margin: 0.4rem 0 0; font-size: 1.4rem; }

/* ============================================================
   PUBLICATION PAGE (article)
   ============================================================ */
.article-hero {
  padding: var(--s-6) 0 var(--s-5);
  background: var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.article-hero .wrap { max-width: 820px; }
.article-cat {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
  font-weight: 500;
}
.article-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: var(--s-3);
  letter-spacing: -0.025em;
}
.article-hero .deck {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto var(--s-3);
}
.article-byline {
  display: flex;
  justify-content: center;
  gap: var(--s-3);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.article-byline strong { color: var(--ink); }

/* Article hero feature image */
.article-feature {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s-4) var(--gutter) 0;
}
.article-feature .feat-img {
  aspect-ratio: 16/8;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.article-feature .feat-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.35));
}
.article-feature .feat-cap {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  font-style: italic;
  text-align: center;
}

/* Article + sticky author sidebar layout */
.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s-6) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--s-5);
  align-items: start;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: var(--s-4); }
}
.author-side {
  position: sticky;
  top: 100px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .author-side { position: static; }
}
.author-side .author-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg,#d4b08c,#8b6f47);
  margin-bottom: var(--s-2);
  position: relative;
}
.author-side .author-photo::after {
  content: 'R';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.8rem;
}
.author-side h4 {
  margin: 0 0 0.3rem;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.author-side .role {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.author-side p { font-size: 0.88rem; margin-bottom: var(--s-2); line-height: 1.55; }
.author-side .author-social { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.author-side .author-social a {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all var(--t-fast);
  background: var(--bg);
}
.author-side .author-social a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.author-side .author-social svg { width: 13px; height: 13px; fill: currentColor; }
.author-side .side-cta {
  display: block;
  margin-top: var(--s-3);
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background var(--t-fast);
}
.author-side .side-cta:hover { background: var(--accent); color: var(--white); }

.article-body {
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--ink);
}
.article-body p { margin-bottom: var(--s-3); }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4rem;
  float: left;
  line-height: 0.85;
  margin: 0.4rem 0.6rem 0 0;
  color: var(--accent);
}
.article-body h2 {
  font-size: 2rem;
  margin: var(--s-5) 0 var(--s-3);
}
.article-body h3 {
  font-size: 1.4rem;
  margin: var(--s-4) 0 var(--s-2);
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--s-3);
  margin: var(--s-4) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--ink);
}
.article-body ul, .article-body ol { margin: 0 0 var(--s-3) 1.4rem; }
.article-body li { margin-bottom: 0.6rem; }

.author-card {
  max-width: 720px;
  margin: var(--s-5) auto;
  padding: var(--s-4);
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: start;
}
.author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg,#d4b08c,#8b6f47);
  position: relative;
}
.author-photo::after {
  content: 'R';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.6rem;
}
.author-info h4 { margin: 0 0 0.3rem; font-family: var(--font-serif); font-size: 1.15rem; text-transform: none; letter-spacing: -0.01em; font-weight: 500; }
.author-info .role { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.author-info p { font-size: 0.92rem; margin-bottom: 0.6rem; }
.author-social { display: flex; gap: 0.4rem; }
.author-social a {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all var(--t-fast);
}
.author-social a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.author-social svg { width: 12px; height: 12px; fill: currentColor; }

.related {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s-6) var(--gutter);
  border-top: 1px solid var(--line);
}
.related h4 { font-size: 0.82rem; letter-spacing: 0.22em; margin-bottom: var(--s-3); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -28px rgba(28,28,28,0.3);
  border-color: transparent;
}
.related-card .related-img {
  aspect-ratio: 16/10;
}
.related-card .related-body { padding: var(--s-2) var(--s-3) var(--s-3); }
.related-card .pub-tag { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; font-weight: 600; }
.related-card h3 { font-size: 1.1rem; margin: 0; line-height: 1.3; }

/* ============================================================
   NEWSLETTER POPUP
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}
.popup-overlay.open { opacity: 1; pointer-events: auto; }
.popup {
  background: var(--bg);
  width: min(560px, 92%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  transform: scale(0.96);
  transition: transform var(--t-med);
  position: relative;
}
.popup-overlay.open .popup { transform: scale(1); }
.popup-art {
  background: linear-gradient(135deg,#B85C38,#8B6F47);
  position: relative;
  min-height: 280px;
}
.popup-art::after {
  content: '✷';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--bg);
  font-size: 4rem;
  font-family: var(--font-serif);
}
.popup-body { padding: var(--s-4); }
.popup-body h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.popup-body p { font-size: 0.95rem; margin-bottom: var(--s-3); }
.popup-body form { display: grid; gap: var(--s-2); }
.popup-body input {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  outline: none;
  background: var(--bg);
}
.popup-body input:focus { border-color: var(--ink); }
.popup-close {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  background: var(--bg);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.1rem;
  z-index: 2;
  border: 1px solid var(--line);
}
.popup-close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 600px) {
  .popup { grid-template-columns: 1fr; }
  .popup-art { min-height: 140px; }
}

/* ============================================================
   CHECKOUT & DOWNLOAD PAGES
   ============================================================ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 800px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-form {
  display: grid;
  gap: var(--s-3);
}
.checkout-form .field input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
}
.checkout-form .field input:focus { border-color: var(--ink); }
.checkout-form .field label { color: var(--ink-soft); }
.checkout-form .stripe-element {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font: inherit;
}

.summary {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  position: sticky;
  top: 100px;
  align-self: start;
}
.summary h3 { font-size: 1.4rem; }
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s-3);
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

.download-page {
  padding: var(--s-7) 0;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.download-page h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.download-warn {
  background: var(--highlight);
  border-radius: var(--radius);
  padding: var(--s-3);
  margin: var(--s-3) 0;
  font-size: 0.92rem;
}
.download-list { margin-top: var(--s-4); display: grid; gap: var(--s-2); text-align: left; }
.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: all var(--t-med);
}
.download-item:hover { border-color: var(--ink); }
.download-item.used { opacity: 0.5; }
.download-btn {
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.download-btn:hover:not(:disabled) { background: var(--accent); }
.download-btn:disabled { background: var(--ink-soft); cursor: not-allowed; }

/* ============================================================
   UTILITIES & ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.hidden { display: none !important; }

/* ============================================================
   CRISP — hide its default launcher so our custom chatbot is
   the only entry point. Crisp opens via $crisp API only when
   the visitor finishes the in-chat handoff form.
   ============================================================ */
#crisp-chatbox > a,
.crisp-client a[aria-label="Open Chat"],
.crisp-client [data-chat-status="ongoing"] a[aria-label*="chat" i] {
  display: none !important;
}
/* Hide the default crisp launcher bubble entirely */
.cc-1xry,
.cc-unoo,
[id^="crisp-chatbox"] > div:first-child > a {
  display: none !important;
}

/* ============================================================
   IN-CHAT handoff form (collected before live chat opens)
   ============================================================ */
.chat-msg.chat-form-host {
  max-width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.chat-handoff-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.chat-handoff-form input,
.chat-handoff-form textarea {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 0.88rem;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.chat-handoff-form input::placeholder,
.chat-handoff-form textarea::placeholder { color: #a8a39a; }
.chat-handoff-form input:focus,
.chat-handoff-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,92,56,0.10);
}
.chat-handoff-form textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.4;
}
.chat-handoff-form button {
  justify-self: start;
  margin-top: 0.25rem;
}

/* ============================================================
   LOGO IMAGES (header + footer)
   ============================================================ */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity var(--t-fast);
}
.logo:hover .logo-img { opacity: 0.78; }
.footer-logo-img {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: var(--s-3);
  transition: opacity var(--t-fast);
}
.footer-logo:hover .footer-logo-img { opacity: 0.85; }

/* Newsletter popup uses favicon spark */
.popup-art { display: grid; place-items: center; padding: var(--s-3); background: linear-gradient(135deg, #B85C38, #8B6F47); }
.popup-art::after { display: none; }
.popup-spark {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
  animation: spark-spin 14s linear infinite;
}
@keyframes spark-spin { to { transform: rotate(360deg); } }

/* ============================================================
   ABOUT PAGE — socials under photo + interactive credibility
   ============================================================ */
.about-photo-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  width: 100%;
  min-width: 0;
  align-self: stretch;
}
.about-photo-wrap .about-photo {
  width: 100%;
  /* Force a real height so flex/grid layout always renders the headshot */
  aspect-ratio: 4 / 5;
  min-height: 420px;
  flex-shrink: 0;
  display: block;
}
.about-socials {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
}
.about-socials a {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: all var(--t-med) var(--ease);
  background: var(--bg);
}
.about-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 24px -10px rgba(184,92,56,0.5);
}
.about-socials svg { width: 16px; height: 16px; fill: currentColor; }

/* Credibility list — interactive hover with reveal */
.credibility li {
  cursor: default;
  position: relative;
  transition: padding-left var(--t-med) var(--ease), border-color var(--t-fast);
}
.credibility li:hover {
  padding-left: 1.4rem;
  border-color: var(--accent);
}
.credibility li::before {
  transition: color var(--t-fast), transform var(--t-fast);
}
.credibility li:hover::before {
  color: var(--accent);
  transform: translateX(0.4rem);
}
.credibility li::after {
  content: '→';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%) translateX(8px);
  color: var(--accent);
  opacity: 0;
  transition: all var(--t-med) var(--ease);
}
.credibility li:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ============================================================
   CHECKOUT — promo + success state
   ============================================================ */
.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: end;
}
.promo-row input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  background: var(--bg);
  font: inherit;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color var(--t-fast);
}
.promo-row input:focus { border-color: var(--accent); }
.promo-apply {
  padding: 0.85rem 1.2rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--t-fast);
}
.promo-apply:hover { background: var(--accent); }
.promo-msg {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  min-height: 1.2em;
}
.promo-msg.ok { color: #2C7A3F; }
.promo-msg.err { color: #B83838; }

.summary-line.discount span:last-child { color: var(--accent); }
.order-success {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  text-align: center;
}
.order-success h2 { color: var(--accent); }
.order-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 2rem;
  margin: 0 auto var(--s-3);
}

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */
.chatbot-fab {
  position: fixed;
  bottom: 1.6rem; right: 1.6rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 16px 40px -14px rgba(184,92,56,0.6);
  z-index: 90;
  transition: transform var(--t-med) var(--ease),
              background var(--t-fast),
              right var(--t-med) var(--ease),
              left var(--t-med) var(--ease);
}
/* When the cart drawer is open, the chatbot dodges left so it
   stays reachable. Mirrors the chat panel as well. */
body.cart-open .chatbot-fab {
  right: auto;
  left: 1.6rem;
}
body.cart-open .chatbot-panel {
  right: auto;
  left: 1.6rem;
  transform-origin: bottom left;
}
.chatbot-fab:hover { transform: scale(1.06) rotate(-6deg); background: #a04d2c; }
.chatbot-fab svg { width: 24px; height: 24px; fill: currentColor; }
.chatbot-fab.open { background: var(--ink); transform: rotate(135deg); }
.chatbot-fab-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: chat-pulse 2s var(--ease) infinite;
}
.chatbot-fab.open .chatbot-fab-pulse { display: none; }
@keyframes chat-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.chatbot-panel {
  position: fixed;
  bottom: 6rem; right: 1.6rem;
  width: min(360px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 8rem));
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -28px rgba(28,28,28,0.45);
  z-index: 89;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatbot-pop 280ms var(--ease);
}
.chatbot-panel.open { display: flex; }
@keyframes chatbot-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chatbot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-2) var(--s-3);
  background: var(--ink);
  color: var(--white);
}
.chatbot-head-left { display: flex; gap: 0.7rem; align-items: center; }
.chatbot-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.chatbot-head h4 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-serif);
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1rem;
  font-weight: 500;
}
.chatbot-status {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem;
  color: #C9C5BC;
  letter-spacing: 0.04em;
}
.chatbot-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6a665d;
}
.chatbot-status.online .dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.18); }
.chatbot-status.offline .dot { background: #f59e0b; }
.chatbot-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.4rem;
  color: var(--white);
  transition: background var(--t-fast);
}
.chatbot-close:hover { background: rgba(255,255,255,0.1); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--bg-soft);
}
.chat-msg {
  max-width: 84%;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  animation: chat-msg-in 280ms var(--ease);
}
.chat-msg.bot {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  align-self: flex-start;
  color: var(--ink);
}
.chat-msg.user {
  background: var(--ink);
  color: var(--bg);
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
}
.chat-msg a { color: var(--accent); text-decoration: underline; }
.chat-msg .chat-cta {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.5rem 0.95rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.chat-msg .chat-cta:hover { background: #a04d2c; transform: translateY(-1px); }
.chat-msg.bot.typing {
  display: inline-flex; gap: 4px; padding: 0.85rem 1rem;
}
.chat-msg.bot.typing span {
  width: 6px; height: 6px;
  background: var(--ink-soft);
  border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}
.chat-msg.bot.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg.bot.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-4px); opacity: 1; }
}
@keyframes chat-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem var(--s-3);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.chatbot-quick-replies button {
  padding: 0.45rem 0.85rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--ink);
  transition: all var(--t-fast);
}
.chatbot-quick-replies button:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.chatbot-input {
  display: flex;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.chatbot-input input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  color: var(--ink);
}
.chatbot-input input::placeholder { color: #b0aca2; }
.chatbot-input button {
  width: 48px;
  background: var(--accent);
  color: var(--white);
  font-size: 1.15rem;
  transition: background var(--t-fast);
}
.chatbot-input button:hover { background: #a04d2c; }
.chatbot-foot {
  margin: 0;
  padding: 0.45rem var(--s-3);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  text-align: center;
  background: var(--bg);
}

@media (max-width: 540px) {
  .chatbot-fab { bottom: 1rem; right: 1rem; width: 54px; height: 54px; }
  .chatbot-panel { bottom: 4.6rem; right: 1rem; left: 1rem; width: auto; height: 75vh; }
  /* Cart same size as chat, stacked above */
  .cart-fab { bottom: calc(1rem + 54px + 12px); right: 1rem; width: 54px; height: 54px; }
}
