/* RIFT — streetwear layer: hero, tapes, reveals, lookbook, hover states. Loaded after style.css. */

/* ---------- Film grain over everything (very light) ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Header over the hero ---------- */
.header { transition: background .3s, border-color .3s; }
.is-home .header:not(.is-scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- Buttons ---------- */
.btn--shine { position: relative; overflow: hidden; isolation: isolate; }
.btn--shine::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn--shine:hover::after { transform: translateX(120%); }
.btn--primary { box-shadow: 0 0 0 0 rgba(163,230,53,.0); transition: box-shadow .3s, background .2s, transform .15s; }
.btn--primary:hover { box-shadow: 0 10px 40px -10px rgba(163,230,53,.7); }
[dir="rtl"] .btn .ic { transform: scaleX(-1); }

/* ---------- Hero ---------- */
.xhero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  min-height: min(calc(100svh - 36px), 900px); margin-top: -68px; padding: calc(68px + 32px) 0 96px; }
.xhero__bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 55% at 72% 42%, rgba(163,230,53,.16), transparent 62%),
    radial-gradient(35% 40% at 8% 95%, rgba(163,230,53,.07), transparent 70%),
    #0a0a0a; }
.xhero__bg::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(75% 70% at 60% 45%, #000 30%, transparent 80%); mask-image: radial-gradient(75% 70% at 60% 45%, #000 30%, transparent 80%); }
.xhero__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; left: var(--gx, 70%); top: var(--gy, 40%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(163,230,53,.14), transparent 65%); transition: left .5s var(--ease), top .5s var(--ease); }
.xhero__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .xhero__inner { grid-template-columns: 1.05fr 1fr; gap: 24px; } }

.xhero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px; border: 1px solid rgba(163,230,53,.35); border-radius: 999px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); background: rgba(163,230,53,.06); }
.lang-ar .xhero__eyebrow { letter-spacing: 0; font-size: 14px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(163,230,53,.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(163,230,53,0); } 100% { box-shadow: 0 0 0 0 rgba(163,230,53,0); } }

.xhero__title { margin: 0; font-family: "Inter", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: -.035em;
  font-size: clamp(52px, 7.4vw, 120px); line-height: .9; }
.lang-ar .xhero__title { font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 700; letter-spacing: 0; line-height: 1.12; font-size: clamp(52px, 6.6vw, 108px); }
.xhero__line { display: block; }
.xhero__line--outline { color: transparent; -webkit-text-stroke: 2px var(--text); }
.xhero__line--accent { color: var(--accent); text-shadow: 0 0 60px rgba(163,230,53,.35); }
.xhero__sub { max-width: 470px; margin: 20px 0 26px; color: #c9c9c4; font-size: clamp(16px, 1.5vw, 18px); }
.xhero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.xhero__stage { position: relative; height: clamp(380px, 46vw, 620px); --mx: 0; --my: 0; }
.xhero__mark { position: absolute; left: 50%; top: 50%; width: 78%; max-width: 520px; height: auto; z-index: 0; opacity: .95;
  transform: translate(calc(-50% + var(--mx) * var(--dp, .6) * 1px), calc(-50% + var(--my) * var(--dp, .6) * 1px));
  filter: drop-shadow(0 0 40px rgba(163,230,53,.45)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { translate: 0 -14px; } }
.hcard { position: absolute; z-index: 1; width: clamp(140px, 17vw, 250px); aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  transform: translate(calc(var(--mx) * var(--dp) * 1px), calc(var(--my) * var(--dp) * 1px)) rotate(var(--r));
  transition: transform .5s var(--ease), box-shadow .3s, border-color .3s; }
.hcard img { width: 100%; height: 100%; object-fit: cover; }
.hcard--0 { --r: -9deg; --dp: 1.2; left: 2%; top: 14%; }
.hcard--1 { --r: 3deg; --dp: .8; left: 33%; top: 2%; z-index: 2; width: clamp(160px, 20vw, 290px); }
.hcard--2 { --r: 10deg; --dp: 1.5; right: 0; top: 28%; }
.hcard:hover { --r: 0deg; z-index: 3; border-color: var(--accent); box-shadow: 0 30px 70px -15px rgba(163,230,53,.45); }
.hcard__tag { position: absolute; inset-inline: 8px; bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px; background: rgba(10,10,10,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12px; }
.hcard__tag b { letter-spacing: .06em; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard__tag span { color: var(--accent); white-space: nowrap; }
@media (max-width: 959px) {
  .xhero { min-height: 0; padding-bottom: 72px; }
  .xhero__stage { height: 380px; margin-inline: -8px; }
  .hcard { width: 42%; }
  .hcard--1 { width: 46%; left: 28%; }
}
.xhero__rift { position: absolute; left: -10%; width: 120%; top: 86%; height: 2px; z-index: 2; pointer-events: none; transform: rotate(-4deg);
  background: linear-gradient(90deg, transparent, var(--accent) 20%, #eaffbf 50%, var(--accent) 80%, transparent); box-shadow: 0 0 18px 2px rgba(163,230,53,.6);
  background-size: 200% 100%; animation: rift 5s linear infinite; }
@keyframes rift { to { background-position: -200% 0; } }
.xhero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 12px; z-index: 3; }
.xhero__scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.6s infinite; }
@keyframes wheel { 60% { transform: translateY(10px); opacity: 0; } }

/* ---------- Crossing tapes ---------- */
.tapes { position: relative; height: 128px; overflow: hidden; margin-top: -30px; z-index: 3; direction: ltr; }
.tape { position: absolute; left: -5%; width: 110%; padding: 14px 0; overflow: hidden; }
.tape--lime { background: var(--accent); color: #0a0a0a; top: 22px; transform: rotate(-2.6deg); z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.tape--dark { background: #121212; border-block: 1px solid #2a2a2a; top: 46px; transform: rotate(2.2deg); }
.tape__track { display: flex; gap: 28px; width: max-content; white-space: nowrap; animation: marquee 34s linear infinite;
  font-family: "Syncopate", sans-serif; font-weight: 700; font-size: clamp(14px, 1.6vw, 20px); letter-spacing: .18em; }
.tape__track--rev { animation-direction: reverse; animation-duration: 40s; }
.tape--dark .tape__track span { color: transparent; -webkit-text-stroke: 1px #f2f2f0; }
.tape--dark .tape__track i { color: var(--accent); }
.tape i { font-style: normal; }

/* ---------- Section headings with ghost words ---------- */
.bighead { position: relative; }
.bighead__ghost { position: absolute; top: -.42em; inset-inline-start: -.04em; z-index: -1; pointer-events: none; white-space: nowrap; line-height: 1;
  font-family: "Syncopate", sans-serif; font-weight: 700; font-size: clamp(76px, 15vw, 210px); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07); }
.section { position: relative; isolation: isolate; }
.h2--xl { font-size: clamp(32px, 5vw, 60px); letter-spacing: -.02em; }

/* ---------- Product cards ---------- */
.card__media { transition: transform .5s var(--ease), box-shadow .4s; }
.card__num { position: absolute; top: 12px; inset-inline-end: 12px; font-family: "Syncopate", sans-serif; font-size: 11px; color: rgba(10,10,10,.55); letter-spacing: .1em; }
.card__quick { position: absolute; inset-inline: 10px; bottom: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(10,10,10,.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 6px; transform: translateY(120%); transition: transform .45s var(--ease); }
.card__quick small { color: var(--muted); font-size: 11px; }
.card__quick span { display: flex; gap: 6px; flex-wrap: wrap; }
.card__quick i { font-style: normal; font-size: 12px; font-weight: 600; min-width: 32px; text-align: center; padding: 4px 6px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; }
@media (hover: hover) {
  .card:hover .card__media { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--accent), 0 26px 50px -24px rgba(163,230,53,.55); }
  .card:hover .card__quick { transform: none; }
  .card:hover .card__title a { color: var(--accent); }
}
@media (hover: none) { .card__quick { display: none; } }
.card__title a { transition: color .2s; }

/* ---------- Benefits ---------- */
.benefit__ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid rgba(163,230,53,.35); color: var(--accent); background: rgba(163,230,53,.06); }
.benefit .ic { color: inherit; }

/* ---------- Collections ---------- */
.coll img { filter: saturate(.85) contrast(1.05); transition: transform .9s var(--ease), filter .5s; }
.coll:hover img { filter: saturate(1.1); }
.coll::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
[dir="rtl"] .coll::before { transform-origin: right; }
.coll:hover::before { transform: scaleX(1); }
.coll__num { position: absolute; top: 14px; inset-inline-start: 18px; z-index: 1; font-family: "Syncopate", sans-serif; font-weight: 700; font-size: 44px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(10,10,10,.35); }
.coll__title { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: .02em; }

/* ---------- Lookbook ---------- */
.lookbook { overflow: hidden; }
.lookbook__title { font-family: "Syncopate", sans-serif; letter-spacing: .08em; color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.lookbook__hint { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.lookbook__strip { display: flex; gap: 16px; align-items: center; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  padding: 8px var(--gutter) 24px; padding-inline-start: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); cursor: grab; user-select: none; }
.lookbook__strip::-webkit-scrollbar { display: none; }
.lookbook__strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.lookbook__strip.is-dragging .look { pointer-events: none; }
.look { position: relative; flex: 0 0 clamp(210px, 24vw, 320px); aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; scroll-snap-align: start; background: var(--bg-2); }
.look--tall { flex-basis: clamp(240px, 28vw, 380px); aspect-ratio: 3 / 4.4; }
.look img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.look:hover img { transform: scale(1.05); }
.look__name { position: absolute; inset-inline-start: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; opacity: 0; transform: translateY(8px); transition: all .35s var(--ease); }
.look:hover .look__name { opacity: 1; transform: none; }

/* ---------- Campaign + outro ---------- */
.campaign .banner { border-radius: var(--radius); }
.outro { position: relative; overflow: hidden; text-align: center; padding-block: clamp(80px, 12vw, 150px);
  background: radial-gradient(50% 70% at 50% 100%, rgba(163,230,53,.14), transparent 70%); border-top: 1px solid var(--line); }
.outro__inner { display: grid; justify-items: center; gap: 32px; }
.outro__big { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: .95; font-size: clamp(42px, 8vw, 120px); }
.lang-ar .outro__big { font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.outro__big .outline { color: transparent; -webkit-text-stroke: 2px var(--text); }
.outro__big .accent { color: var(--accent); }

/* ---------- Product page: sticky buy bar (mobile) ---------- */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(14,14,14,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-buy.is-on { transform: none; }
.sticky-buy__info { flex: 1; min-width: 0; display: grid; }
.sticky-buy__info b { font-size: 14px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__info span { color: var(--accent); font-size: 14px; }
.sticky-buy .btn { min-height: 46px; }
@media (min-width: 900px) { .sticky-buy { display: none; } }
body.has-sticky .wa-float { bottom: 92px; }

/* ---------- Page headers on inner pages ---------- */
.page-head { position: relative; }
.page-head .h1 { font-size: clamp(36px, 6vw, 72px); letter-spacing: -.02em; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .xhero__mark, .xhero__rift, .tape__track, .dot-live { animation: none !important; }
}
@media (max-width: 959px) { .xhero__scroll { display: none; } .xhero__rift { top: 94%; } }
@media (min-width: 960px) and (max-height: 820px) { .xhero__title { font-size: clamp(48px, 6.4vw, 100px); } }

/* ---------- "See it on" men / women switch ---------- */
.lookswitch { display: flex; align-items: center; gap: 4px; width: fit-content; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); font-size: 13px; }
.lookswitch__label { color: var(--muted); padding-inline: 10px 6px; }
.lookswitch button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; transition: background .2s, color .2s; }
.lookswitch button:hover { color: var(--text); }
.lookswitch button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.toolbar__right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lookswitch--links a { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.lookswitch--links a[aria-current] { background: var(--accent); color: var(--accent-ink); }

/* ---------- Size finder ---------- */
.opt__links { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.link-btn--accent { color: var(--accent); text-decoration-color: rgba(163,230,53,.5); }
.link-btn--accent:hover { color: #c4f57a; }
.sizefinder { max-width: min(480px, 94vw); }
.sizefinder .eyebrow { margin-bottom: 4px; }
.sf-form { display: grid; gap: 14px; margin: 16px 0; }
.sf-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; }
.sf-seg--3 { grid-template-columns: repeat(3, 1fr); }
.sf-seg label { position: relative; cursor: pointer; }
.sf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sf-seg span { display: block; text-align: center; padding: 10px 6px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); transition: all .2s; }
.sf-seg input:checked + span { background: var(--text); color: var(--bg); }
.sf-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sf-result { text-align: center; display: grid; justify-items: center; gap: 8px; margin: 16px 0; padding: 20px; border: 1px solid rgba(163,230,53,.35); border-radius: var(--radius); background: rgba(163,230,53,.05); }
.sf-result__size { font-family: "Syncopate", sans-serif; font-size: 56px; line-height: 1; color: var(--accent); text-shadow: 0 0 40px rgba(163,230,53,.4); }
.sf-result p { margin: 0 0 6px; color: #cfcfcb; font-size: 14px; }
.sf-table { width: 100%; border-collapse: collapse; margin: 8px 0 10px; font-size: 14px; text-align: center; }
.sf-table th, .sf-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.sf-table tbody th { text-align: start; color: var(--muted); font-weight: 500; white-space: nowrap; }
.sf-table .is-hit { background: rgba(163,230,53,.14); color: var(--accent); font-weight: 700; }

/* ---------- Accounts ---------- */
.acc-btn.is-in { color: var(--accent); }
.acc-hint { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); font-size: 14px; color: var(--muted); }
.acc-hint a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.acc-hint .ic { color: var(--accent); }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #cfcfcb; cursor: pointer; }
.check-line input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.check-line--lg span { display: grid; gap: 4px; }
.check-line--lg b { color: var(--text); font-size: 15px; }
.save-acc { border-color: rgba(163,230,53,.3); }
.save-acc__pw { margin-top: 4px; }
.stack-form { display: grid; gap: 14px; }
.acc-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-top: 24px; margin-bottom: 24px; }
.acc-head .h1 { margin: 0; }
.acc-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .acc-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.stack-col { display: grid; gap: 20px; }
.acc-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acc-orders a { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s; }
.acc-orders a:hover { border-color: var(--accent); }
.acc-orders a > span:first-child { display: grid; }

.ship-line { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; }
.ship-line .ic { color: var(--accent); flex: none; margin-top: 2px; }
