/*
 * HOME V2
 * Hand-coded homepage. Companion to page-home-v2.php and js/home-v2.js.
 *
 * Motion contract: `opacity: 0` must NEVER appear outside a `.ttc-anim`
 * descendant selector. `.ttc-anim` is set by an inline script only when JS runs
 * and reduced motion is not requested, and is stripped by a watchdog if the JS
 * never reports ready. That is what keeps the page readable when GSAP fails.
 */

/* hello-elementor caps `.site-main` at 1140px for non-Elementor pages; this
   page is full-bleed by design, so opt out at matching specificity. */
body .site-main.ttc-home { max-width: 100%; width: 100%; padding-inline: 0; }

.ttc-home {
  --ttc-ink: var(--e-global-color-text, #2e1a0e);
  --ttc-deep: var(--e-global-color-secondary, #3d2314);
  --ttc-clay: var(--e-global-color-primary, #b5541a);
  --ttc-gold: var(--e-global-color-accent, #d4a017);
  --ttc-cream: var(--e-global-color-d67c2b9, #fdf6ec);
  --ttc-paper: var(--e-global-color-fb07e31, #fffdf8);
  --ttc-muted: rgba(46, 26, 14, 0.72);
  --ttc-line: rgba(46, 26, 14, 0.12);

  --ttc-display: var(--e-global-typography-primary-font-family, "Cormorant Garamond", Georgia, serif);
  --ttc-body: var(--e-global-typography-text-font-family, "Lora", Georgia, serif);
  --ttc-accent: var(--e-global-typography-accent-font-family, "Jost", "Helvetica Neue", Arial, sans-serif);

  --ttc-header-h: 84px;
  --ttc-gutter: clamp(20px, 5vw, 64px);
  --ttc-shell: 1180px;

  background: var(--ttc-cream);
  color: var(--ttc-ink);
  font-family: var(--ttc-body);
  overflow-x: clip;
}

.ttc-home *,
.ttc-home *::before,
.ttc-home *::after { box-sizing: border-box; }

.ttc-home img { display: block; max-width: 100%; height: auto; }
.ttc-home p { margin: 0; }
.ttc-home ul { margin: 0; padding: 0; list-style: none; }

html { scroll-padding-top: var(--ttc-header-h, 84px); }

.ttc-shell {
  width: min(var(--ttc-shell), calc(100% - (var(--ttc-gutter) * 2)));
  margin-inline: auto;
}

.ttc-sec { padding-block: clamp(72px, 11vw, 148px); position: relative; }

/* ---------- Shared type ---------- */

.ttc-home .ttc-eyebrow {
  font-family: var(--ttc-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ttc-clay);
  margin-bottom: 0.9rem;
}

.ttc-home .ttc-h2 {
  font-family: var(--ttc-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  color: var(--ttc-deep);
  max-width: 18ch;
}

.ttc-home .ttc-h2 em { font-style: italic; color: var(--ttc-clay); }

.ttc-home .ttc-lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  color: var(--ttc-muted);
  max-width: 56ch;
}

.ttc-home .ttc-body { font-size: 1.02rem; line-height: 1.8; color: var(--ttc-muted); max-width: 58ch; }

/* ---------- Buttons ---------- */

.ttc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ttc-accent);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.ttc-home a.ttc-btn--primary { background: var(--ttc-clay); color: #fff; }
.ttc-home a.ttc-btn--primary:hover { background: var(--ttc-deep); color: #fff; transform: translateY(-2px); }
.ttc-home a.ttc-btn--ghost { border-color: var(--ttc-line); color: var(--ttc-deep); background: transparent; }
.ttc-home a.ttc-btn--ghost:hover { border-color: var(--ttc-clay); color: var(--ttc-clay); transform: translateY(-2px); }
.ttc-home a:focus-visible,
.ttc-home button:focus-visible { outline: 2px solid var(--ttc-clay); outline-offset: 3px; }

/* ---------- 1. Hero ---------- */

.ttc-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: clamp(14px, 2vh, 26px);
  min-height: 100svh;
  /* The Elementor header sits in normal flow at scroll 0 and only becomes fixed
     once you scroll past it, so the hero pulls up under it and pads back down. */
  margin-top: calc(-1 * var(--ttc-header-h, 84px));
  padding: calc(var(--ttc-header-h, 84px) + clamp(20px, 5vh, 52px)) var(--ttc-gutter) clamp(40px, 7vh, 76px);
  background:
    radial-gradient(ellipse at 50% 12%, rgba(212, 160, 23, 0.16), transparent 58%),
    linear-gradient(180deg, #fff9f0 0%, var(--ttc-cream) 62%, #f8ecd9 100%);
}

.ttc-hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("../../../../../uploads/2026/02/grain.png");
  background-size: clamp(420px, 44vw, 680px);
  mix-blend-mode: multiply;
}

.ttc-hero__kicker {
  font-family: var(--ttc-accent);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ttc-clay);
}

.ttc-hero__stack {
  display: grid;
  grid-template-areas: "layer";
  place-items: center;
  width: 100%;
}

.ttc-hero__stack > * { grid-area: layer; }

.ttc-home .ttc-hero__word {
  font-family: var(--ttc-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 20vw, 17rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ttc-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  z-index: 1;
}

/* The gap the product image sits in. */
.ttc-hero__word-gap { display: inline-block; width: clamp(80px, 12.5vw, 195px); }

.ttc-hero__product {
  position: relative;
  z-index: 2;
  margin: 0;
  width: min(clamp(120px, 14vw, 210px), 34vh);
  aspect-ratio: 640 / 855;
  translate: 0 4%;
  pointer-events: none;
}

.ttc-hero__product img { width: 100%; height: 100%; object-fit: contain; }

.ttc-hero__tagline {
  align-self: end;
  z-index: 3;
  font-family: var(--ttc-accent);
  font-size: clamp(0.72rem, 1.5vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ttc-clay);
  translate: 0 0.4em;
}

.ttc-hero__lede { max-width: 46ch; font-size: clamp(0.98rem, 1.4vw, 1.12rem); line-height: 1.7; color: var(--ttc-muted); }
.ttc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ttc-hero__note { margin-top: 0.7rem; font-size: 0.84rem; color: var(--ttc-muted); font-style: italic; }
.ttc-hero__trust {
  font-family: var(--ttc-accent);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(46, 26, 14, 0.55);
}

/* ---------- 2. Marquee ---------- */

.ttc-marquee {
  overflow: hidden;
  padding-block: clamp(16px, 2.4vw, 26px);
  background: var(--ttc-deep);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.ttc-marquee__track {
  display: flex;
  width: max-content;
  animation: ttc-marquee 32s linear infinite;
  will-change: transform;
}

.ttc-marquee__list { display: flex; align-items: center; }

.ttc-marquee__list li {
  font-family: var(--ttc-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3.2vw, 2.5rem);
  color: var(--ttc-cream);
  padding-inline: clamp(20px, 3.5vw, 52px);
  white-space: nowrap;
}

.ttc-marquee__list li::after { content: "·"; margin-left: clamp(20px, 3.5vw, 52px); color: var(--ttc-gold); }

@keyframes ttc-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- 3. Pillars ---------- */

.ttc-pillars { background: var(--ttc-cream); text-align: center; }
.ttc-home .ttc-pillars .ttc-h2, .ttc-pillars .ttc-lede { margin-inline: auto; }
.ttc-home .ttc-pillars .ttc-h2 { max-width: 14ch; }

.ttc-pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(44px, 6vw, 76px);
  text-align: left;
}

.ttc-pillar {
  background: var(--ttc-paper);
  border: 1px solid var(--ttc-line);
  border-radius: 18px;
  padding: clamp(24px, 2.6vw, 34px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ttc-pillar:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(55, 31, 15, 0.09); }

.ttc-pillar__num {
  font-family: var(--ttc-accent);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--ttc-gold);
}

.ttc-home .ttc-pillar__title {
  font-family: var(--ttc-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.5rem 0 0.6rem;
  color: var(--ttc-deep);
}

.ttc-pillar__body { font-size: 0.95rem; line-height: 1.72; color: var(--ttc-muted); }

/* ---------- 4. Made in Mithila ---------- */

.ttc-mithila {
  background:
    radial-gradient(circle at 78% 22%, rgba(212, 160, 23, 0.14), transparent 46%),
    linear-gradient(180deg, #2b1a0e 0%, #3d2314 46%, #2b1a0e 100%);
  color: var(--ttc-cream);
}

.ttc-home .ttc-mithila .ttc-eyebrow { color: var(--ttc-gold); }
.ttc-home .ttc-mithila .ttc-h2 { color: var(--ttc-cream); }
.ttc-home .ttc-mithila .ttc-h2 em { color: var(--ttc-gold); }
.ttc-home .ttc-mithila .ttc-body { color: rgba(253, 246, 236, 0.76); }

.ttc-mithila__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.ttc-mithila__place {
  font-family: var(--ttc-accent);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(253, 246, 236, 0.5);
  margin-bottom: 1.2rem;
}

.ttc-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
  margin-top: clamp(28px, 3.5vw, 44px);
}

.ttc-fact { border-top: 1px solid rgba(253, 246, 236, 0.18); padding-top: 12px; }
.ttc-home .ttc-fact strong {
  display: block;
  font-family: var(--ttc-display);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--ttc-cream);
  margin-bottom: 0.2rem;
}
.ttc-fact span { font-size: 0.86rem; line-height: 1.6; color: rgba(253, 246, 236, 0.62); }

/* The mould — SVG draws on scroll, then the photo fades through it. */
.ttc-mould {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.ttc-mould__svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; }

.ttc-mould__svg path {
  fill: none;
  stroke: var(--ttc-gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* Sits behind the strokes and fills only the inner ring (r=88 of a 400 box),
   so the drawn rosette reads as pressed into the thekua rather than covered. */
.ttc-mould__photo {
  position: absolute;
  z-index: 0;
  inset: 28%;
  width: 44%;
  height: 44%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.95;
}

/* Only hide the photo when JS is there to fade it back in. */
.ttc-anim .ttc-mould__photo { opacity: 0; }

.ttc-quote {
  margin: clamp(26px, 3.5vw, 40px) 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--ttc-gold);
}

.ttc-home .ttc-quote p {
  font-family: var(--ttc-display);
  font-style: italic;
  font-size: clamp(1.12rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: rgba(253, 246, 236, 0.9);
}

/* ---------- 5. Moments ---------- */

.ttc-moments { background: var(--ttc-cream); }

.ttc-moments__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(44px, 6vw, 72px);
}

.ttc-moments__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ttc-paper);
  box-shadow: 0 24px 60px rgba(55, 31, 15, 0.14);
}

.ttc-moments__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ttc-moments__img.is-active { opacity: 1; }

.ttc-moment { border-top: 1px solid var(--ttc-line); }
.ttc-moment:last-child { border-bottom: 1px solid var(--ttc-line); }
.ttc-home .ttc-moment__head { margin: 0; font-size: inherit; line-height: inherit; }

/* Kit styles bare `button` at (0,1,1) with a clay background and 16px 42px
   padding; these triggers are plain text rows, so override at (0,2,0). */
.ttc-home .ttc-moment__btn {
  display: flex;
  background: none;
  border: 0;
  border-radius: 0;
  text-transform: none;
  letter-spacing: normal;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  padding: clamp(18px, 2.2vw, 26px) 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}

.ttc-moment__num {
  font-family: var(--ttc-accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--ttc-gold);
  flex: none;
}

.ttc-home .ttc-moment__title {
  font-family: var(--ttc-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 500;
  color: var(--ttc-muted);
  transition: color 0.3s ease;
}

.ttc-home .ttc-moment.is-active .ttc-moment__title,
.ttc-home .ttc-moment__btn:hover .ttc-moment__title { color: var(--ttc-clay); }

.ttc-moment__body p {
  font-size: 0.98rem;
  line-height: 1.78;
  color: var(--ttc-muted);
  padding: 0 0 clamp(20px, 2.4vw, 28px) 42px;
  max-width: 52ch;
}

/* Collapsed panels stay in the DOM and stay reachable; JS drives the height. */
.ttc-anim .ttc-moment__body { overflow: hidden; }

/* ---------- 6. Why ---------- */

.ttc-why { background: var(--ttc-paper); }

.ttc-why__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.ttc-why__media { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 22px 56px rgba(55, 31, 15, 0.12); }
.ttc-why__media img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; }
.ttc-why__copy p + p { margin-top: 1.4rem; }

/* ---------- 7. Shop ---------- */

.ttc-shop { background: var(--ttc-cream); text-align: center; }
.ttc-home .ttc-shop .ttc-h2 { margin-inline: auto; }
.ttc-shop__grid { margin-top: clamp(40px, 5vw, 68px); text-align: left; }
.ttc-shop__grid ul.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(18px, 2.4vw, 30px); margin: 0; }
.ttc-shop__grid ul.products::before, .ttc-shop__grid ul.products::after { content: none; }
.ttc-shop__grid ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }

/* ---------- 8. Story ---------- */

.ttc-story {
  background: linear-gradient(180deg, var(--ttc-cream) 0%, #f6e9d6 100%);
  text-align: center;
}

.ttc-story__inner { display: flex; flex-direction: column; align-items: center; }
.ttc-home .ttc-story .ttc-h2 { max-width: 20ch; }
.ttc-home .ttc-story .ttc-body { margin-inline: auto; }
.ttc-story__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(28px, 3.5vw, 40px); }

/* ---------- Motion opt-in ---------- */

.ttc-anim [data-anim] { opacity: 0; }
.ttc-anim [data-anim="up"] { transform: translateY(26px); }

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

@media (max-width: 1024px) {
  .ttc-mithila__inner,
  .ttc-moments__panel,
  .ttc-why__inner { grid-template-columns: minmax(0, 1fr); }
  .ttc-why__media { order: 2; }
  .ttc-mould { max-width: 460px; margin-inline: auto; }
  .ttc-moments__media { max-width: 520px; margin-inline: auto; width: 100%; }
}

@media (max-width: 640px) {
  .ttc-facts { grid-template-columns: minmax(0, 1fr); }
  .ttc-hero__actions { width: 100%; flex-direction: column; }
  .ttc-hero__actions .ttc-btn { width: 100%; }
  .ttc-moment__body p { padding-left: 0; }
}

/* ---------- Reduced motion: fully static, fully readable ---------- */

@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1 !important; transform: none !important; }
  .ttc-marquee__track { animation: none !important; }
  .ttc-mould__photo { opacity: 0.95 !important; }
  .ttc-moments__img { transition: none !important; }
  .ttc-home *, .ttc-home *::before, .ttc-home *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
