/* ============================================================
   ARAYA FILMS · effects.css — premium motion & polish layer
   ============================================================ */
:root {
  --accent: #ff5a36;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

::selection { background: var(--accent); color: #fff; }

/* ── Scroll progress bar ───────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), #ffb347);
  transform: scaleX(0); transform-origin: 0 50%;
  z-index: 2000; pointer-events: none;
}

/* ── Page transition ───────────────────────────────────── */
body.is-leaving { opacity: 0; transform: translateY(-8px); transition: opacity .35s ease, transform .35s ease; }

/* ── Scroll reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(46px) scale(.98);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ── Nav: animated underline ───────────────────────────── */
.header__nav a { position: relative; border-bottom: 0 !important; }
.header__nav a:hover { opacity: 1; }
.header__logo a { transition: letter-spacing .5s var(--ease-out), opacity .3s; }
.header__logo a:hover { letter-spacing: 6px; opacity: 1; }
.header__social a { transition: transform .35s var(--ease-out), opacity .3s; }
.header__social a:hover { transform: translateY(-3px) scale(1.15); opacity: 1; }

/* ── Home hero overlay ─────────────────────────────────── */
.hero__video-wrap { border-radius: 4px; }
.hero__video-wrap::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.7) 100%);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 2; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 5vw, 70px); pointer-events: none;
}
.hero__eyebrow {
  font-size: 13px; letter-spacing: 6px; text-transform: uppercase; opacity: .85; margin-bottom: 14px;
  animation: rise 1s .3s var(--ease-out) both;
}
.home-page .hero__eyebrow { position: relative; top: -8px; margin-left: clamp(4px, .6vw, 8px); }
.hero__title {
  font-family: var(--font-logo); font-weight: 400; line-height: .92;
  font-size: clamp(54px, 11vw, 168px); letter-spacing: 2px; overflow: hidden;
}
.hero__title span { display: inline-block; transform: translateY(110%); animation: rise-in 1.1s var(--ease-out) forwards; }
.hero__tagline {
  max-width: 520px; margin-top: 18px; font-size: clamp(15px, 1.6vw, 19px); opacity: .9;
  animation: rise 1s .9s var(--ease-out) both;
}
.hero__cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; pointer-events: auto; animation: rise 1s 1.1s var(--ease-out) both; }
.btn {
  display: inline-block; padding: 14px 30px; border: 1.5px solid #fff; color: #fff; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(101%);
  transition: transform .45s var(--ease-out); z-index: -1;
}
.btn:hover { color: #000; }
.btn:hover::before { transform: none; }
.btn--solid { background: var(--accent); border-color: var(--accent); }
.hero__scroll {
  position: absolute; right: clamp(24px, 5vw, 70px); bottom: clamp(24px, 5vw, 70px);
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: 4px; text-transform: uppercase; opacity: .8;
}
.hero__scroll::after {
  content: ""; display: block; width: 1px; height: 54px; margin: 10px auto 0; background: #fff;
  animation: drip 2s ease-in-out infinite; transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { to { transform: translateY(0); } }

/* ── Marquee ───────────────────────────────────────────── */
.marquee { overflow: hidden; padding: 38px 0 6px; white-space: nowrap; }
.marquee__track { display: inline-flex; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-logo); font-size: clamp(40px, 7vw, 96px); letter-spacing: 3px; padding-right: .6em;
  color: transparent; -webkit-text-stroke: 1.5px var(--color-text);
}
.marquee__item:nth-child(even) { color: var(--color-text); -webkit-text-stroke: 0; }
.marquee__item::after { content: "✦"; color: var(--accent); -webkit-text-stroke: 0; font-size: .5em; padding-left: .6em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Home: explore tiles ───────────────────────────────── */
.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 60px var(--header-pad-h) 0; }
.tile {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: #fff; background: #111;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; filter: brightness(.7); }
.tile:hover img { transform: scale(1.12); filter: brightness(.45); }
.tile__num { position: absolute; top: 20px; left: 24px; font-family: var(--font-logo); font-size: 22px; letter-spacing: 3px; opacity: .8; }
.tile__body { position: absolute; left: 24px; right: 24px; bottom: 24px; }
.tile__title { font-family: var(--font-logo); font-size: clamp(38px, 4vw, 60px); letter-spacing: 2px; line-height: 1; }
.tile__more { display: inline-block; margin-top: 8px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; transform: translateX(-10px); opacity: 0; transition: .5s var(--ease-out); }
.tile:hover .tile__more { transform: none; opacity: 1; }

/* Minimal video cards with a restrained thumbnail zoom. */
.video-card:focus-visible { outline: 2px solid #e53935; outline-offset: 4px; }
.video-card__thumbnail-wrap { position: relative; overflow: hidden; }
.video-card__thumbnail-wrap::before {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%;
  background: rgba(0,0,0,.35); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.video-card__thumbnail-wrap::after {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 2;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid #fff;
  transform: translate(-35%, -50%); opacity: 0; transition: opacity .3s; pointer-events: none;
}
.video-card:hover .video-card__thumbnail-wrap::before,
.video-card:hover .video-card__thumbnail-wrap::after,
.video-card:focus-visible .video-card__thumbnail-wrap::before,
.video-card:focus-visible .video-card__thumbnail-wrap::after { opacity: 1; }
.video-card__title { transition: color .3s; }
.video-card:hover .video-card__title,
.video-card:focus-visible .video-card__title { color: #fff; }
@media (hover: none) {
  .video-card__thumbnail-wrap::before, .video-card__thumbnail-wrap::after { opacity: 1; }
}
.filter-bar__item { position: relative; transition: color .3s; }
.filter-bar__item.active { color: var(--accent); }

/* ── Photo page: 3D ring that spins with scroll ────────── */
/* Clip without creating a scroll container above the sticky stage. */
body.photo-page { overflow-x: clip; }
.ring-section { position: relative; height: 650vh; background: #07070a; }
.ring-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 1500px; color: #fff;
  background: #090909;
}
.home-photo .ring-stage {
  background: #090909 url('../assets/images/photo.png') center / cover no-repeat;
}
.ring-stage::before {
  content: none;
}
.ring {
  position: absolute; top: 50%; left: 50%; width: 0; height: 0; transform-style: preserve-3d;
  transform: translateY(-50%) rotateX(-6deg) rotateY(var(--rot, 0deg)); will-change: transform;
}
.ring__item {
  position: absolute; width: var(--cw, 280px); height: var(--ch, 380px);
  left: calc(var(--cw, 280px) / -2); top: calc(var(--ch, 380px) / -2);
  transform: rotateY(var(--a)) translateZ(var(--r, 520px));
  border-radius: 8px; overflow: hidden; backface-visibility: visible;
  box-shadow: 0 30px 70px rgba(0,0,0,.6); background: #111;
}
.ring__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ring__item::before { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); will-change: opacity; pointer-events: none; }
.ring__item::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; pointer-events: none; }
.ring-stage__title {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 0; pointer-events: none;
  font-family: var(--font-logo); font-size: clamp(60px, 14vw, 230px); letter-spacing: 6px; line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.25); white-space: nowrap;
}
.ring-stage__hud {
  position: absolute; left: 0; right: 0; bottom: 34px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase; z-index: 3; pointer-events: none;
}
.ring-stage__bar { width: min(260px, 60vw); height: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.ring-stage__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.photo-intro {
  position: absolute; z-index: 4; top: 28px; left: 0; right: 0; text-align: center; font-size: 12px;
  letter-spacing: 5px; text-transform: uppercase; opacity: .7; pointer-events: none;
}

/* ── Subtle polish on other pages ──────────────────────── */
.about__image img { transition: transform 1.2s var(--ease-out), filter .6s; filter: grayscale(.2); }
.about__image:hover img { transform: scale(1.04); filter: grayscale(0); }
.contact__form-wrap { backdrop-filter: blur(14px); transition: transform .5s var(--ease-out), box-shadow .5s; }
.contact__form-wrap:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.form__submit { position: relative; overflow: hidden; isolation: isolate; }
.form__submit::before { content:""; position:absolute; inset:0; background: var(--accent); transform: translateX(-101%); transition: transform .45s var(--ease-out); z-index:-1; }
.form__submit:hover { background:#202020; color:#fff; border-color: var(--accent); }
.form__submit:hover::before { transform:none; }
.form__input:focus, .form__textarea:focus { box-shadow: 0 0 0 3px rgba(255,90,54,.25); border-color: var(--accent); }
.form__input::placeholder, .form__textarea::placeholder { color: #aaa; opacity: 1; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.footer__links a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; text-decoration: none; transition: background-size .4s var(--ease-out); }
.footer__links a:hover { background-size: 100% 1px; opacity: 1; }
.wazza-video__embed { box-shadow: 0 30px 80px rgba(0,0,0,.6); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1023px) { .explore { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .explore { grid-template-columns: 1fr; padding-top: 40px; }
  .tile { aspect-ratio: 16 / 11; }
  .hero__scroll { display: none; }
  .ring-section { height: 520vh; }
  .photo-intro { top: 18px; letter-spacing: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero__scroll::after { animation: none; }
}

/* Homepage: static hero text only (no animations) */
.home-page .hero__eyebrow,.home-page .hero__tagline,.home-page .hero__cta{animation:none}
.home-page .header__logo a:hover{letter-spacing:3px}
.home-page .btn,.home-page .btn::before{transition:none}

/* Shared compact masthead and full-bleed homepage. */
:root { --home-header-height: 72px; }
.home-page { background: #090909; color: #fff; }
.site-header.site-header {
  position: relative;
  height: var(--home-header-height); padding: 0 36px;
  background: #090909; border-bottom: 1px solid #252525;
}
.site-header .header__top { height: 100%; margin: 0; }
.site-header .header__left { position: absolute; left: 0; display: flex; align-items: center; gap: 30px; }
.site-header .header__brand { display: block; width: 56px; }
.site-header .header__brand img { width: 100%; height: 56px; object-fit: contain; }
.site-header .header__logo a { color: #fff; font-size: 34px; letter-spacing: 3px; white-space: nowrap; }
.site-header .header__logo a:hover { letter-spacing: 3px; }
.site-header .header__social { position: absolute; left: auto; right: 130px; top: 50%; transform: translateY(-50%); gap: 10px; color: #a9a9a9; }
.site-header .header__social a { width: 24px; height: 44px; color: inherit; }
.site-header .header__social svg { color: inherit; fill: currentColor; }
.site-header .hamburger {
  display: grid; grid-template-columns: 22px auto; gap: 5px 12px;
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); padding: 12px 0; color: #fff;
}
.site-header .hamburger span { grid-column: 1; width: 22px; height: 2px; }
.site-header .hamburger b {
  grid-column: 2; grid-row: 1 / 4; align-self: center;
  font: 700 12px var(--font-primary); letter-spacing: 2px;
}
.site-header .header__nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: none; padding: 36px; margin: 0; background: #090909;
  border-bottom: 1px solid #252525; flex-direction: column; align-items: flex-start; gap: 18px;
}
.site-header .header__nav.open { display: flex; }
.site-header .header__nav a { color: #fff; font: 400 30px var(--font-logo); letter-spacing: 2px; }
.site-header .header__social a:hover,
.site-header .header__social a:focus-visible,
.site-header .header__logo a:hover,
.site-header .header__logo a:focus-visible,
.site-header .hamburger:hover,
.site-header .hamburger:focus-visible,
.site-header .header__nav a:hover,
.site-header .header__nav a:focus-visible,
.site-footer .footer__links a:hover,
.site-footer .footer__links a:focus-visible {
  color: #e53935;
  opacity: 1;
}
.site-header .header__nav {
  left: auto; right: 36px; width: max-content; max-width: calc(100% - 24px);
  max-height: calc(100svh - var(--home-header-height)); overflow-y: auto;
  padding: 12px 0; gap: 12px; align-items: flex-end;
  background: transparent; border: 0;
}
.home-page .hero { padding: 0; }
.home-page .hero__video-wrap {
  height: calc(100svh - var(--home-header-height)); min-height: 0; border-radius: 0;
}
.home-page .hero__overlay { justify-content: center; align-items: center; text-align: center; padding: 32px; }
.home-page .hero__title { font-size: clamp(64px, 9vw, 148px); }
.home-page .hero__eyebrow { top: auto; margin-left: 0; }
.home-page .hero__tagline { max-width: 660px; }
.home-page .hero__cta { justify-content: center; }
.home-page .site-footer { margin-top: 0; border-top: 1px solid #252525; }
.home-page a:focus-visible, .home-page button:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
@media (max-width: 767px) {
  :root { --home-header-height: 60px; }
  .site-header.site-header { padding: 0 12px; }
  .site-header .header__top { align-items: center; padding-top: 0; }
  .site-header .header__left { top: 10px; }
  .site-header .header__brand { width: 40px; }
  .site-header .header__brand img { height: 40px; }
  .site-header .hamburger { gap: 5px; }
  .site-header .hamburger b { display: none; }
  .site-header .header__logo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: auto; margin-top: 0; }
  .site-header .header__logo a { font-size: 18px; letter-spacing: 1px; }
  .site-header .header__logo a:hover { letter-spacing: 1px; }
  .site-header .header__social { left: calc(50% + 48px); right: auto; gap: 2px; }
  .site-header .header__social a { width: 16px; }
  .site-header .header__social svg { width: 14px; height: 14px; }
  .site-header .header__nav { right: 12px; }
  .home-page .hero__overlay { padding: 24px 20px; }
  .home-page .hero__eyebrow { font-size: 10px; letter-spacing: 3px; }
  .home-page .hero__tagline { font-size: 14px; margin-top: 14px; }
  .home-page .hero__cta { gap: 10px; margin-top: 24px; }
  .home-page .btn { font-size: 10px; padding: 12px 16px; letter-spacing: 1px; }
}

/* Continuous homepage sections share the viewport's scroll container. */
body { display: flex; flex-direction: column; min-height: 100svh; overflow-x: clip; animation: none; }
body > main { flex: 1 0 auto; }
body > .site-header, body > .site-footer { flex-shrink: 0; }
body.about-page, body.contact-page { isolation: isolate; }
.about-page main, .contact-page main,
.contact-page .form__input, .contact-page .form__textarea,
.contact-page .form__submit { font-family: var(--font-primary); }
.contact-page .contact__info h2, .contact-page .contact__info em,
.home-contact .contact__info h2, .home-contact .contact__info em { font-style: normal; }
.home-contact,
.home-contact .form__input, .home-contact .form__textarea,
.home-contact .form__submit { font-family: var(--font-primary); }
.home-contact .contact__info p,
.home-contact .contact__form-wrap > p:not(.form__heading),
.home-contact .form__input,
.home-contact .form__textarea { font-size: 18px; line-height: 1.75; }
.contact-page .contact__info p,
.contact-page .contact__form-wrap > p:not(.form__heading),
.contact-page .form__input,
.contact-page .form__textarea { font-size: 18px; line-height: 1.75; }
body.about-page::before, body.contact-page::before {
  content: ""; position: fixed; inset: -12px; z-index: -1; pointer-events: none; filter: blur(4px);
  background: linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.78)), url('../assets/images/bg.png') center / cover no-repeat;
}
body.home-page { overflow-x: clip; animation: none; }
.site-header.site-header { position: sticky; top: 0; z-index: 50; }
.home-page #home, .home-section { scroll-margin-top: var(--home-header-height); }
.home-section { border-top: 1px solid #252525; }
.home-page .home-section.video-page,
.home-page .home-section.about-page-content { padding: clamp(48px, 7vw, 96px) var(--header-pad-h); }
.home-section__heading {
  margin-bottom: 32px; font: 400 clamp(40px, 5vw, 68px)/1 var(--font-logo); letter-spacing: 3px;
}
.home-section__actions { margin-top: 40px; text-align: center; }
.brand-strip { overflow: hidden; background: var(--color-bg); padding: 14px 0; }
.brand-strip:focus-visible { outline: 1px solid var(--color-text); outline-offset: -4px; }
.brand-strip__track { display: flex; width: max-content; will-change: transform; }
.brand-strip__track.is-ready { animation: brand-scroll 40s linear infinite; }
.brand-strip__group { display: flex; flex: none; align-items: center; }
.brand-strip__item { display: grid; place-items: center; flex: none; width: 176px; height: 100px; }
.brand-strip__item img {
  width: 120px; height: 96px; object-fit: contain;
  opacity: .8; transition: transform .3s ease, opacity .3s ease;
}
.brand-strip:hover .brand-strip__track,
.brand-strip:focus-visible .brand-strip__track { animation-play-state: paused; }
.brand-strip__item:hover img { transform: scale(1.12); opacity: 1; }
@keyframes brand-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 600px) {
  .brand-strip { padding: 10px 0; }
  .brand-strip__item { width: 128px; height: 80px; }
  .brand-strip__item img { width: 96px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-strip { overflow-x: auto; }
  .brand-strip__track.is-ready { animation: none; will-change: auto; }
  .brand-strip__group[aria-hidden="true"] { display: none; }
  .brand-strip__item img { transition: none; }
}
.home-photo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: clamp(48px, 7vw, 96px) 2px; background: #090909; }
.home-photo > .home-section__heading { grid-column: 1 / -1; margin: 0 var(--header-pad-h) 26px; }
.home-photo > .home-section__actions { grid-column: 1 / -1; }
.home-photo__panel { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid rgba(255,255,255,.55); }
.home-photo__panel img { width: 100%; height: 100%; object-fit: cover; }
.home-photo__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(0,0,0,.38) 50%, transparent 75%); }
.home-photo__panel figcaption {
  position: absolute; z-index: 1; top: 50%; left: 0; width: 100%; transform: translateY(-50%);
  padding: 16px; color: #fff; text-align: center; text-transform: uppercase;
  font: 400 clamp(22px, 3.1vw, 48px)/1.15 var(--font-primary); text-shadow: 0 2px 8px rgba(0,0,0,.65);
}
@media (max-width: 600px) {
  .home-photo { grid-template-columns: 1fr; }
  .home-photo__panel { aspect-ratio: 4 / 5; }
  .home-photo__panel figcaption { font-size: clamp(28px, 7vw, 42px); }
}
.home-contact { padding-top: clamp(24px, 4vw, 60px); background: #101010; }
.still-gallery { columns: 4; column-gap: 10px; padding: 4px 10px 10px; }
.still-gallery figure { break-inside: avoid; margin-bottom: 10px; overflow: hidden; }
.still-gallery img { width: 100%; height: auto; transition: transform .35s ease; }
@media (hover: hover) and (pointer: fine) {
  .still-gallery figure:hover img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .still-gallery img { transition: none; }
  .still-gallery figure:hover img { transform: none; }
}
.still-gallery figure:nth-child(3n) img { aspect-ratio: 1; object-fit: cover; }
.still-gallery figure:nth-child(4) img,
.still-gallery figure:nth-child(7) img { aspect-ratio: 3 / 4; object-fit: cover; }
.still-gallery figure:nth-child(7) img { object-position: left center; }
@media (max-width: 1024px) {
  .still-gallery { columns: 3; }
}
@media (max-width: 600px) {
  .still-gallery { columns: 2; column-gap: 6px; padding: 4px 6px 6px; }
  .still-gallery figure { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .video-card__thumbnail { transition: none; }
  .video-card, .video-card__title,
  .video-card__thumbnail-wrap::before, .video-card__thumbnail-wrap::after { transition: none; }
  .video-card:hover .video-card__thumbnail,
  .video-card:focus-visible .video-card__thumbnail { transform: none; }
}
