/* ============================================================================
   T&B Custom Clean — "wow" layer: art direction, motion, texture
   Loaded after style.css + pages.css. Keeps the light, elegant palette but
   adds cinematic type, depth, parallax, and an entrance sequence.
   ========================================================================== */

/* ---- Film-grain texture (very subtle, adds richness/depth) ---------------- */
body::after {
    content: "";
    position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

/* ---- Richer reveal system (replaces the flat fade) ------------------------ */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(6px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
/* Stagger children of a revealed group */
.reveal[data-stagger] > * { opacity: 0; transform: translateY(26px);
    transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.in[data-stagger] > * { opacity: 1; transform: none; }
.reveal.in[data-stagger] > *:nth-child(1){ transition-delay:.05s }
.reveal.in[data-stagger] > *:nth-child(2){ transition-delay:.14s }
.reveal.in[data-stagger] > *:nth-child(3){ transition-delay:.23s }
.reveal.in[data-stagger] > *:nth-child(4){ transition-delay:.32s }
.reveal.in[data-stagger] > *:nth-child(5){ transition-delay:.41s }
.reveal.in[data-stagger] > *:nth-child(6){ transition-delay:.50s }

/* A CSS multi-column container (the gallery masonry) must NOT be blurred or
   transformed: on mobile it collapses to one ~15,000px-tall column, and a
   filter/transform on a layer that large exceeds the GPU texture limit and
   fails to paint — i.e. a blank gallery. Keep the masonry itself static; its
   figures still fade in via the per-image clip-reveal below. */
.masonry.reveal { opacity: 1 !important; transform: none !important; filter: none !important; }

/* Image clip-reveal — masks wipe upward as the image scales into place */
.clip-img { position: relative; overflow: hidden; }
.clip-img img { transform: scale(1.18); transition: transform 1.6s var(--ease); }
.clip-img::after { content: ""; position: absolute; inset: 0; background: var(--cream);
    transform: translateY(0); transition: transform 1.2s var(--ease); z-index: 2; }
.clip-img.in img { transform: scale(1); }
.clip-img.in::after { transform: translateY(-101%); }

/* ============================================================================
   HERO — cinematic, layered, animated
   ========================================================================== */
.hero { overflow: clip; }
.hero-title { font-size: clamp(3.1rem, 7.4vw, 6.4rem); line-height: .98; letter-spacing: -.018em; }
.hero-title .line { display: block; overflow: hidden; padding: .14em 0 .34em; margin-bottom: -.18em; }
.hero-title .line:first-child { padding-top: 0; }
.hero-title .line > span { display: block; animation: lineUp 1.15s cubic-bezier(.16,1,.3,1) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line > span .script-accent { display: inline-block; line-height: 1.1; }
@keyframes lineUp { from { transform: translateY(115%); } to { transform: translateY(0); } }

/* Staged entrance for the rest of the hero copy (CSS-driven — robust w/o JS) */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes popIn  { from { opacity: 0; transform: translateY(44px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.hero-copy .eyebrow { animation: fadeUp .9s var(--ease) both .18s; }
.hero-copy .lead    { animation: fadeUp .9s var(--ease) both .44s; }
.hero-actions       { animation: fadeUp .9s var(--ease) both .58s; }

/* Layered visual composition */
.hero-visual { position: relative; height: 100svh; min-height: 620px; padding: 104px 26px 30px 0; }
.hero-img { position: absolute; overflow: hidden; box-shadow: var(--shadow-lift); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-img--main { inset: 104px 26px 30px 14%; border-radius: 280px 280px var(--radius) var(--radius); z-index: 1; }
.hero-img--main img { animation: heroZoom 16s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-img--sub { width: 36%; max-width: 220px; aspect-ratio: 3/4; left: -1%; bottom: 14%;
    border-radius: 130px 130px var(--radius) var(--radius); z-index: 3; border: 7px solid var(--cream);
    animation: popIn 1.2s cubic-bezier(.16,1,.3,1) both .55s; }
.hero-badge { z-index: 4; }
.hero-stars { position: absolute; top: 126px; right: 44px; z-index: 4; text-align: right;
    background: rgba(250,246,238,.92); backdrop-filter: blur(6px); padding: 12px 16px; border-radius: 12px;
    box-shadow: var(--shadow-soft); animation: dropIn 1s var(--ease) both .85s; }
.hero-stars .s { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }
.hero-stars .t { display: block; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); margin-top: 3px; }

/* ---- Marquee (brand phrases) ---------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); background: var(--cream-2);
    padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 34s linear infinite; }
.hero .marquee { border-top: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px;
    font-family: var(--serif); font-size: 1.5rem; color: var(--olive-ink); white-space: nowrap; }
.marquee-item::after { content: "✦"; color: var(--sage); font-size: .8rem; font-family: var(--sans); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================================
   OVERSIZED EDITORIAL STATEMENT
   ========================================================================== */
.statement { padding-block: clamp(90px, 14vw, 200px); text-align: center; position: relative; overflow: clip; }
.statement .container { position: relative; z-index: 1; }
.statement .eyebrow { display: block; margin-bottom: 30px; }
.statement-line { font-family: var(--serif); font-weight: 500; color: var(--olive-ink);
    font-size: clamp(2.2rem, 6vw, 5.2rem); line-height: 1.04; letter-spacing: -.01em; max-width: 17ch; margin-inline: auto; }
.statement-line .script-accent { font-size: 1.08em; line-height: 1.2; }
.statement-line .muted { color: var(--sage-soft); }
/* huge ghost word drifting behind */
.statement-ghost { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; pointer-events: none; }
.statement-ghost span { font-family: var(--script); font-size: clamp(8rem, 28vw, 26rem); color: var(--sand-deep);
    opacity: .25; line-height: 1; white-space: nowrap; will-change: transform; }

/* ---- Animated counters ---------------------------------------------------- */
.count { font-variant-numeric: tabular-nums; }

/* Intro figure uses the clip-reveal wrapper without losing its framing */
.intro-figure .clip-img { border-radius: var(--radius); box-shadow: var(--shadow-soft); aspect-ratio: 4/5; }
.intro-figure .clip-img img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }

/* ---- Section eyebrow flourish (cohesion) ---------------------------------- */
.eyebrow.flourish { display: inline-flex; align-items: center; gap: 14px; }
.eyebrow.flourish::before, .eyebrow.flourish::after { content: ""; width: 30px; height: 1px; background: var(--sage); }
.heading.center .eyebrow.flourish { justify-content: center; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-visual { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    body::after { display: none; }
    .reveal, .reveal[data-stagger] > *, .clip-img img, .clip-img::after,
    .hero-img--main img, .hero-img--sub, .hero-stars,
    .hero-copy .eyebrow, .hero-copy .lead, .hero-actions,
    .hero-title .line > span { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
    .marquee-track { animation: none; }
}
