/* ==========================================================================
   ORIVANA — Signature FX layer
   Wide display type, image pills in headlines, rotating stamps, shutter
   reveals, inspection loupe, cursor image trail, hover-float
   previews, draggable reel, odometer numerals, two-tone page curtain.
   ========================================================================== */

:root { --au-wide: 'Panchang', 'Switzer', system-ui, sans-serif; }

/* ── Type: wide grotesk accents against the serif ─────────────────────── */
.au-eyebrow { font: 600 .62rem/1.2 var(--au-wide) !important; letter-spacing: .12em !important; }
.au-card__k, .au-acc__tag, .au-zone__num, .au-qa__tag, .au-pf__kicker, .au-step__label,
.au-dial__top, .au-cap__tag, .au-model__tag, .au-machine__tag, .au-format__tag, .au-svc__cat {
  font-family: var(--au-wide) !important; font-weight: 600 !important; font-size: .6rem !important; letter-spacing: .1em !important;
}
.au-dial__val b, .au-qa__center b, .au-stack__n, .au-pf__num, .au-tour__count, .au-machine__big,
.au-card__n, .au-step__num, .au-qa__n, .au-index__n, .au-svc__num, .au-pipe__n, .au-corr__n {
  font-family: var(--au-wide) !important; font-weight: 200 !important; letter-spacing: -.04em !important;
}
.au-stack__n { font-size: clamp(3rem, 6vw, 5.4rem) !important; }
.au-pf__num { font-size: clamp(2.6rem, 4.6vw, 4.2rem) !important; }
.au-index__n { font-size: .9rem !important; padding-top: .5rem; }
.au-x { font-family: var(--au-wide); font-style: normal; font-weight: 700; text-transform: uppercase; font-size: .56em; letter-spacing: -.02em; vertical-align: .18em; color: inherit; }
.au-phero__title .au-x, .au-hero__title .au-x { color: var(--au-lime); }
.au-outline { color: transparent !important; -webkit-text-stroke: 1px currentColor; }

/* ── Image pills inside headlines ─────────────────────────────────────── */
.au-pill {
  display: inline-block; position: relative; overflow: hidden; vertical-align: -.04em;
  height: .74em; width: 1.75em; margin: 0 .14em; border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.15);
  transform-origin: 50% 50%;
}
.au-pill img { position: absolute; inset: -20%; width: 140%; height: 140%; object-fit: cover; animation: au-pill-pan 14s ease-in-out infinite alternate; }
.au-pill--round { width: .74em; }
.au-pill--wide { width: 2.6em; }
@keyframes au-pill-pan { from { transform: translate(-8%, -4%) scale(1); } to { transform: translate(8%, 4%) scale(1.08); } }
.au-js .au-pill { width: 0; margin: 0; }

/* ── Rotating stamp ───────────────────────────────────────────────────── */
.au-stamp { position: absolute; width: 150px; height: 150px; z-index: 3; pointer-events: none; }
.au-stamp svg { width: 100%; height: 100%; overflow: visible; }
.au-stamp text { font: 600 9.4px var(--au-wide); letter-spacing: .32em; text-transform: uppercase; fill: currentColor; }
.au-stamp__core { position: absolute; inset: 32%; border-radius: 50%; display: grid; place-items: center; background: var(--au-amber); color: #fff; }
.au-stamp__core svg { width: 46%; height: 46%; }
.au-phero .au-stamp, .au-hero .au-stamp { color: var(--au-linen); }
.au-phero .au-stamp { right: clamp(1rem, 4vw, 4rem); top: clamp(7rem, 12vw, 9rem); }
.au-phero--img .au-stamp { right: auto; left: calc(58% - 75px); top: auto; bottom: 34%; }

/* ── Shutter reveal ───────────────────────────────────────────────────── */
[data-shutter] { position: relative; overflow: hidden; }
.au-shutter { position: absolute; inset: 0; z-index: 5; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; pointer-events: none; }
.au-shutter i { display: block; background: var(--au-ink); transform-origin: 50% 0; }
.au-sec--ink .au-shutter i, [data-theme="dark"] .au-shutter i { background: var(--au-forest); }

/* ── Inspection loupe ─────────────────────────────────────────────── */
[data-loupe] { position: relative; }
[data-loupe] > img { transition: filter .6s var(--au-ease); }
[data-loupe].is-inspecting > img { filter: brightness(.62) saturate(.8); }
.au-loupe {
  position: absolute; left: 0; top: 0; z-index: 6; width: clamp(150px, 14vw, 210px); aspect-ratio: 1; border-radius: 50%;
  pointer-events: none; background-repeat: no-repeat; background-color: var(--au-ink);
  box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 0 0 7px rgba(6,18,11,.35), 0 30px 60px -20px rgba(0,0,0,.7), inset 0 0 30px rgba(0,0,0,.25);
  opacity: 0; scale: .5; transition: opacity .4s var(--au-ease), scale .6s var(--au-ease);
}
[data-loupe].is-inspecting .au-loupe { opacity: 1; scale: 1; }
.au-loupe__x::before, .au-loupe__x::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(251,248,241,.75); transform: translate(-50%, -50%); }
.au-loupe__x::before { width: 18px; height: 1px; }
.au-loupe__x::after { width: 1px; height: 18px; }
.au-loupe__tag { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); font: 600 .56rem/1 var(--au-wide); letter-spacing: .1em; color: var(--au-ink); background: var(--au-honey); padding: .35rem .5rem; border-radius: 999px; }

/* ── Hover-float preview for list rows ────────────────────────────────── */
.au-float { position: fixed; left: 0; top: 0; z-index: 60; width: 280px; aspect-ratio: 4/5; pointer-events: none; border-radius: 18px; overflow: hidden; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.6); box-shadow: 0 40px 80px -30px rgba(6,18,11,.6); will-change: transform, opacity; }
.au-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--au-ease); }
.au-float img + img { opacity: 0; }
[data-float] { cursor: default; }
@media (hover: none) { .au-float { display: none; } }

/* ── Image trail ──────────────────────────────────────────────────────── */
.au-trail-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.au-trail-img { position: absolute; width: clamp(150px, 15vw, 230px); aspect-ratio: 4/5; object-fit: cover; border-radius: 16px; transform: translate(-50%, -50%); box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); will-change: transform, opacity; }

/* ── Draggable reel ───────────────────────────────────────────────────── */
.au-reel-sec { position: relative; padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem); background: var(--au-ink); color: var(--au-linen); overflow: hidden; }
.au-reel-sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.au-reel-sec__head .au-display { color: var(--au-linen); margin-bottom: 0; }
.au-reel-sec__head .au-display em { color: var(--au-honey); }
.au-reel-hint { display: flex; align-items: center; gap: .8rem; font: 600 .6rem/1 var(--au-wide); letter-spacing: .14em; text-transform: uppercase; color: rgba(243,238,227,.55); }
.au-reel-hint svg { width: 34px; }
.au-reel { cursor: grab; touch-action: pan-y; user-select: none; }
.au-reel.is-drag { cursor: grabbing; }
.au-reel__track { display: flex; gap: 1.2rem; width: max-content; will-change: transform; padding: 0 1.2rem; }
.au-reel__item { position: relative; flex: none; width: clamp(240px, 26vw, 400px); margin: 0; transform-origin: 50% 100%; }
.au-reel__item:nth-child(3n+2) { margin-top: 3.4rem; }
.au-reel__item:nth-child(3n) { margin-top: 1.4rem; width: clamp(220px, 22vw, 340px); }
.au-reel__img { position: relative; aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; background: var(--au-forest); }
.au-reel__item:nth-child(3n+2) .au-reel__img { aspect-ratio: 1; }
.au-reel__img img { position: absolute; top: 0; left: -10%; width: 120%; height: 100%; object-fit: cover; pointer-events: none; will-change: transform; }
.au-reel__item figcaption { display: flex; gap: .9rem; align-items: baseline; margin-top: 1rem; font: 400 1.15rem/1.25 var(--au-serif); color: var(--au-linen); }
.au-reel__item figcaption span { font: 600 .6rem/1 var(--au-wide); letter-spacing: .1em; color: var(--au-honey); }
.au-reel__item figcaption small { display: block; font: 400 .82rem/1.4 var(--au-sans); color: rgba(243,238,227,.55); margin-top: .25rem; }

/* ── Odometer ─────────────────────────────────────────────────────────── */
.au-odo { display: inline-flex; overflow: hidden; vertical-align: top; line-height: 1; height: 1em; }
.au-odo__col { display: inline-flex; flex-direction: column; will-change: transform; }
.au-odo__col span { display: block; height: 1em; line-height: 1; }
.au-odo__static { display: inline-block; }

/* ── Two-tone curtain ─────────────────────────────────────────────────── */
.au-curtain__panel--b { background: var(--au-amber) !important; }
.au-curtain__panel--c { background: var(--au-lime) !important; }

/* ── Manifesto statement ──────────────────────────────────────────────── */
.au-manifesto { background: var(--au-paper); padding: clamp(6rem, 12vw, 11rem) 0; position: relative; overflow: hidden; }
.au-manifesto__text { font: 300 clamp(2.2rem, 5.4vw, 5.6rem)/1.08 var(--au-serif); letter-spacing: -.035em; color: var(--au-ink); max-width: 20ch; }
.au-manifesto__text em { color: var(--au-amber); }
.au-manifesto__meta { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: 3.4rem; padding-top: 1.6rem; border-top: 1px solid var(--au-line); }
.au-manifesto__meta span { font: 600 .62rem/1.5 var(--au-wide); letter-spacing: .12em; text-transform: uppercase; color: var(--au-muted); }
.au-manifesto .au-stamp { right: clamp(1rem, 6vw, 6rem); top: clamp(3rem, 6vw, 5rem); color: var(--au-ink); width: 170px; height: 170px; }

/* ── Bento ────────────────────────────────────────────────────────────── */
.au-bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(150px, auto); gap: 1rem; }
.au-bento > * { position: relative; border-radius: 26px; overflow: hidden; }
.au-bento__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.au-bento__img figcaption { position: absolute; left: 1rem; bottom: 1rem; z-index: 6; padding: .6rem .9rem; border-radius: 12px; background: rgba(6,18,11,.55); backdrop-filter: blur(10px); color: var(--au-linen); font: 600 .58rem/1.3 var(--au-wide); letter-spacing: .1em; text-transform: uppercase; }
.au-bento__stat { background: var(--au-ink); color: var(--au-linen); padding: 1.8rem; display: flex; flex-direction: column; justify-content: space-between; }
.au-bento__stat b { font: 200 clamp(3rem, 6vw, 5.6rem)/.9 var(--au-wide); letter-spacing: -.05em; color: var(--au-honey); }
.au-bento__stat span { font-size: .92rem; line-height: 1.5; color: rgba(243,238,227,.7); max-width: 26ch; }
.au-bento__stat--amber { background: var(--au-amber); }
.au-bento__stat--amber b { color: var(--au-ink); }
.au-bento__stat--amber span { color: rgba(6,18,11,.75); }
.au-bento__stat--paper { background: #fff; border: 1px solid var(--au-line); }
.au-bento__stat--paper b { color: var(--au-ink); }
.au-bento__stat--paper span { color: var(--au-muted); }

@media (max-width: 900px) {
  .au-bento { grid-template-columns: repeat(2, 1fr); }
  .au-bento > * { grid-column: span 2 !important; grid-row: auto !important; min-height: 220px; }
  .au-stamp { width: 110px; height: 110px; }
  .au-phero--img .au-stamp { display: none; }
  .au-manifesto .au-stamp { position: relative; right: auto; top: auto; margin-bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .au-pill img { animation: none; }
  .au-js .au-pill { width: 1.75em; margin: 0 .14em; }
}

/* Home hero aside */
.au-hero__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 1.2rem; padding-bottom: 1rem; }
.au-hero__aside .au-stamp { position: relative; width: 180px; height: 180px; }
.au-hero__hint { font: 600 .58rem/1.5 var(--au-wide); letter-spacing: .12em; text-transform: uppercase; color: rgba(243,238,227,.5); max-width: 22ch; text-align: right; }
.au-hero__title .au-pill { box-shadow: 0 20px 50px -20px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.18); }
.au-phero__title { max-width: 17ch !important; }
.au-trail-img { z-index: 0; }
@media (max-width: 1100px) { .au-hero__aside { display: none; } }
[data-shutter] > img { transform: scale(var(--zoom, 1)); }
.pre-footer-actions { flex-wrap: wrap; } .pre-footer-actions .btn { max-width: 100%; white-space: normal; }
@media (max-width: 600px) { .au-phero .au-stamp { top: auto; bottom: 1rem; right: 1rem; width: 96px; height: 96px; opacity: .9; } .au-phero__meta { padding-right: 110px; } }

/* Crunch Lab teaser */
.au-labteaser { pointer-events: auto; display: inline-flex; align-items: center; gap: 1rem; margin-top: 2.6rem; padding: .9rem 1.3rem .9rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--au-line); color: var(--au-ink); text-decoration: none; font-size: .92rem; box-shadow: 0 20px 40px -28px rgba(6,18,11,.4); transition: transform .5s var(--au-ease), border-color .4s; }
.au-labteaser:hover { transform: translateY(-3px); border-color: var(--au-ink); }
.au-labteaser b { font-weight: 600; }
.au-labteaser__wave { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 .6rem; border-radius: 999px; background: var(--au-ink); }
.au-labteaser__wave i { width: 3px; border-radius: 3px; background: var(--au-honey); animation: au-wave 1.1s ease-in-out infinite; }
.au-labteaser__wave i:nth-child(odd) { background: var(--au-lime); }
.au-labteaser__wave i:nth-child(1) { animation-delay: -.1s } .au-labteaser__wave i:nth-child(2) { animation-delay: -.5s } .au-labteaser__wave i:nth-child(3) { animation-delay: -.3s } .au-labteaser__wave i:nth-child(4) { animation-delay: -.8s } .au-labteaser__wave i:nth-child(5) { animation-delay: -.2s } .au-labteaser__wave i:nth-child(6) { animation-delay: -.6s } .au-labteaser__wave i:nth-child(7) { animation-delay: -.4s }
@keyframes au-wave { 0%, 100% { height: 5px; } 50% { height: 18px; } }
