@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,450;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600&display=swap');

/* ---------------------------------------------------
   Design tokens — same palette as the original design.
   Referenced from Tailwind via arbitrary values, e.g.
   bg-[var(--ink)], text-[var(--gold-soft)], border-[var(--hair)]
--------------------------------------------------- */
:root {
  --ink: #16140f;
  --ink-2: #201d16;
  --ink-3: #2a261c;
  --cream: #f2ece0;
  --cream-dim: #cfc8b8;
  --gold: #c69a4e;
  --gold-soft: #e0c489;
  --wine: #7c3232;
  --sage: #7d876f;
  --hair: rgba(242, 236, 224, 0.14);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
}
h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 450; color: var(--cream); }

::selection { background: var(--gold); color: var(--ink); }

/* ---------------- Eyebrow label ---------------- */
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------------- Nav underline indicator ---------------- */
.nav-indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: var(--gold);
  transition: left .45s cubic-bezier(.65,0,.35,1), width .45s cubic-bezier(.65,0,.35,1), opacity .3s;
  opacity: 0;
}

/* ---------------- Stitched divider ---------------- */
.stitch-path {
  stroke: var(--gold);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 9 9;
  opacity: .55;
}

/* ---------------- Hero visual / embroidery hoop ---------------- */
.hoop { stroke: var(--gold); stroke-width: 2; fill: none; }
.needle-path {
  stroke: var(--gold-soft);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw 4.5s ease-in-out infinite;
}
@keyframes draw {
  0% { stroke-dashoffset: 520; }
  45% { stroke-dashoffset: 0; }
  70% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -520; opacity: 0; }
}

/* ---------------- Marquee ---------------- */
.marquee-track { animation: scrollx 32s linear infinite; }
.marquee-track span::after { content: "✦"; color: var(--gold); font-style: normal; }
@keyframes scrollx {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------------- Founder quote mark ---------------- */
.founder-card::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 24px;
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  color: var(--gold);
  opacity: .5;
  line-height: 1;
}

/* ---------------- Embroidery thread lines (decorative svg, unused by default) ---------------- */
.thread-line { fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-dasharray: 6 6; opacity: .7; }
.thread-line.solid { stroke-dasharray: none; stroke: var(--gold-soft); opacity: .9; }

/* ---------------- Process timeline dotted rail ---------------- */
.timeline::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background-image: linear-gradient(var(--gold) 60%, transparent 0%);
  background-size: 1px 12px;
  background-repeat: repeat-y;
  opacity: .6;
}

/* ---------------- Gallery category tabs ---------------- */
.cat-pill {
  border-color: var(--hair);
  color: var(--cream-dim);
  background: transparent;
  cursor: pointer;
}
.cat-pill:hover { border-color: var(--gold); color: var(--gold-soft); }
.cat-pill.active { border-color: var(--gold); color: var(--gold-soft); background: rgba(198,154,78,0.08); }

.gallery-item.is-hidden { display: none; }

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: var(--ink-3);
  border: 1px dashed var(--hair);
  color: var(--cream-dim);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: .92rem;
}

/* ---------------- FAQ plus/minus icon ---------------- */
.faq-q .plus { display: block; flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--gold); }
.faq-q .plus::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-q .plus::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); transition: transform .35s ease; }
.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.2,.6,.2,1); }

/* ---------------- Mobile nav slide-in ---------------- */
@media (max-width: 900px) {
  nav.links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--ink-2);
    flex-direction: column;
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform .5s cubic-bezier(.65,0,.35,1);
    gap: 22px;
    border-left: 1px solid var(--hair);
    display: flex;
  }
  nav.links.open { transform: translateX(0); }
  .nav-indicator { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }
}
@media (min-width: 901px) {
  .burger { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}