/* RISITEX homepage — layout after the Dribbble "Fashion Ecommerce" reference, in RISITEX's own type
   (IBM Plex) and neutral palette. Homepage only; every other page uses the live-site styles. */

.rxh {
	--rxh-canvas: #eeede8;
	--rxh-card: #ffffff;
	--rxh-soft: #e6e3dc;
	--rxh-ink: #1d1d1d;
	--rxh-ink-2: #55524c;
	--rxh-line: #e3e0d9;
	--rxh-radius: 22px;
	--rxh-ease: cubic-bezier(0.22, 1, 0.36, 1);
	background: var(--rxh-canvas);
	color: var(--rxh-ink);
	padding: 0 clamp(8px, 1vw, 16px) 8px;
	margin-top: -100px; /* sit under the fixed header like the live home */
	padding-top: 112px;
}
/* Full-width page: spans the screen edge to edge, with side spacing that scales with the viewport. */
.rxh-page {
	max-width: none;
	margin: 0;
	background: var(--rxh-card);
	border-radius: 24px;
	padding: 18px clamp(14px, 2.6vw, 56px) 44px;
	box-shadow: 0 30px 80px -40px rgba(29, 29, 29, 0.18);
}

/* ---------- buttons ---------- */
.rxh-btn {
	display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 34px;
	border-radius: 999px; font-size: 15px; font-weight: 600; transition: transform 0.3s var(--rxh-ease), box-shadow 0.3s, background 0.3s;
}
.rxh-btn:hover { transform: translateY(-2px); }
.rxh-btn--light { background: #fff; color: var(--rxh-ink); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35); }
.rxh-btn--dark { background: var(--rxh-ink); color: #fff; min-width: 260px; }
.rxh-btn--dark:hover { box-shadow: 0 14px 30px -14px rgba(29, 29, 29, 0.6); }
.rxh-round {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px;
	background: #fff; color: var(--rxh-ink); transition: transform 0.3s var(--rxh-ease), background 0.3s;
}
.rxh-round:hover { transform: rotate(45deg); }
.rxh-round--ghost { background: rgba(255, 255, 255, 0.35); color: #fff; backdrop-filter: blur(6px); }
.rxh-round--light { width: 52px; height: 52px; }

/* ---------- hero ---------- */
.rxh-hero {
	position: relative; overflow: hidden; border-radius: var(--rxh-radius);
	min-height: clamp(480px, 78vh, 860px); background: #cfc7bb; isolation: isolate;
}
.rxh-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--rxh-ease); }
.rxh-hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scale(1.04); transition: transform 7s linear; }
/* Whole photo, never cropped: a blurred, dimmed copy of the same image fills the edges behind it. */
.rxh-hero__slide img.rxh-hero__fill { object-fit: cover; filter: blur(32px) brightness(0.8); transform: scale(1.15); transition: none; }
.rxh-hero__slide.is-active { opacity: 1; }
.rxh-hero__slide.is-active img.rxh-hero__img { transform: scale(1); }
.rxh-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.35) 100%); }
.rxh-hero__copy { position: absolute; left: clamp(20px, 4vw, 48px); right: 20px; top: clamp(24px, 5vw, 48px); color: #fff; max-width: 760px; }
.rxh-hero__text { display: none; }
.rxh-hero__text.is-active { display: block; animation: rxh-rise 0.9s var(--rxh-ease) both; }
.rxh-hero h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: 0.98; font-weight: 600; letter-spacing: -0.035em; margin: 10px 0 18px; }
.rxh-hero p { display: flex; gap: 12px; max-width: 520px; font-size: 15px; line-height: 1.6; opacity: 0.92; }
.rxh-hero__dart { flex: none; margin-top: 3px; transform: rotate(90deg); }
.rxh-hero__nav { position: absolute; right: clamp(16px, 3vw, 32px); top: clamp(24px, 5vw, 48px); display: flex; gap: 10px; z-index: 2; }
.rxh-hero__cta { position: absolute; left: 50%; bottom: clamp(24px, 4vw, 40px); transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.rxh-hero__dots { position: absolute; right: 32px; bottom: 36px; display: flex; gap: 6px; }
.rxh-hero__dots span { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.45); transition: width 0.4s var(--rxh-ease), background 0.4s; }
.rxh-hero__dots span.is-active { width: 26px; background: #fff; }
.rxh-eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; opacity: 0.9; }
.rxh-eyebrow--dark { color: var(--rxh-ink-2); margin-bottom: 6px; }

/* ---------- intro + stories ---------- */
.rxh-intro { text-align: center; max-width: 640px; margin: 72px auto 36px; }
.rxh-intro h2, .rxh-section__head h2, .rxh-tilt h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.rxh-intro p { margin-top: 14px; color: var(--rxh-ink-2); line-height: 1.7; }
.rxh-stories { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.rxh-story { position: relative; border-radius: var(--rxh-radius); background: var(--rxh-soft); overflow: hidden; min-height: 420px; }
.rxh-story--photo img { position: absolute; inset: 0; width: 100%; height: 72%; object-fit: contain; transition: transform 0.9s var(--rxh-ease); }
.rxh-story--photo:hover img { transform: scale(1.04); }
.rxh-story__foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 24px 28px; }
.rxh-story__foot h3 { font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em; max-width: 240px; }
.rxh-story__foot p { font-size: 12px; color: var(--rxh-ink-2); margin-top: 6px; }
.rxh-story__stamp { text-align: right; line-height: 1.2; }
.rxh-story__stamp strong { display: block; font-size: 20px; }
.rxh-story__stamp span { font-size: 18px; font-weight: 600; }
.rxh-story--soon { padding: 34px 32px; display: flex; flex-direction: column; }
.rxh-story--soon h3 { font-size: clamp(24px, 2.6vw, 32px); font-style: italic; font-weight: 500; line-height: 1.15; max-width: 360px; }
.rxh-story__sub { margin-top: 10px; color: var(--rxh-ink-2); font-style: italic; }
.rxh-stack { position: relative; margin: auto auto 0; width: min(100%, 360px); height: 200px; display: block; }
.rxh-stack__card { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 18px; background: #fff; transition: transform 0.5s var(--rxh-ease); }
.rxh-stack__card--3 { height: 150px; transform: translate(20px, -46px); opacity: 0.55; }
.rxh-stack__card--2 { height: 150px; transform: translate(10px, -23px); opacity: 0.8; }
.rxh-stack__card--1 { height: 150px; display: flex; gap: 14px; padding: 10px; box-shadow: 0 18px 40px -22px rgba(0,0,0,0.35); }
.rxh-stack:hover .rxh-stack__card--3 { transform: translate(34px, -70px); }
.rxh-stack:hover .rxh-stack__card--2 { transform: translate(18px, -36px); }
.rxh-stack__card--1 img { width: 58%; height: 100%; object-fit: contain; border-radius: 12px; }
.rxh-stack__label { display: flex; flex-direction: column; justify-content: space-between; padding: 6px 4px; }
.rxh-stack__label strong { font-size: 24px; }
.rxh-stack__label small { font-size: 12px; color: var(--rxh-ink-2); }

/* ---------- sections ---------- */
.rxh-section { margin-top: 88px; }
.rxh-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.rxh-section__head--center { flex-direction: column; align-items: center; text-align: center; }
.rxh-section__head--center p { color: var(--rxh-ink-2); max-width: 520px; line-height: 1.7; }
.rxh-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.rxh-center { display: flex; justify-content: center; margin-top: 36px; }

/* Product photos are shot on white and shown whole (object-fit: contain), so their frames are white too. */

/* categories — compact cards, photo shown whole above the text */
.rxh-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 270px)); gap: 20px; }
.rxh-cat { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--rxh-radius); border: 1px solid var(--rxh-line); background: #fff; color: var(--rxh-ink); transition: transform 0.4s var(--rxh-ease), box-shadow 0.4s var(--rxh-ease); }
.rxh-cat:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(29, 29, 29, 0.35); }
.rxh-cat__media { position: relative; aspect-ratio: 4 / 5; background: #fff; overflow: hidden; }
.rxh-cat__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--rxh-ease); }
.rxh-cat:hover .rxh-cat__media img { transform: scale(1.04); }
.rxh-cat__go { position: absolute; right: 12px; bottom: 12px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.35); }
.rxh-cat__body { padding: 14px 18px 18px; }
.rxh-cat__body h3 { font-size: 20px; font-weight: 600; }
.rxh-cat__body p { color: var(--rxh-ink-2); font-size: 13px; margin-top: 4px; }
.rxh-cat__count { display: inline-block; margin-top: 10px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; background: var(--rxh-soft); padding: 6px 10px; border-radius: 999px; }

/* products */
.rxh-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rxh-card { border: 1px solid var(--rxh-line); border-radius: 20px; padding: 8px; background: #fff; transition: transform 0.4s var(--rxh-ease), box-shadow 0.4s var(--rxh-ease); }
.rxh-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(29, 29, 29, 0.35); }
.rxh-card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: #fff; }
.rxh-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.9s var(--rxh-ease); }
.rxh-card:hover .rxh-card__media img { transform: scale(1.05); }
.rxh-card__body { padding: 14px 8px 6px; }
.rxh-card__body h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.rxh-card__body > p { font-size: 12px; color: var(--rxh-ink-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rxh-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.rxh-price { border: 1px solid var(--rxh-line); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.rxh-price small { font-weight: 500; color: var(--rxh-ink-2); }
.rxh-card__actions { display: flex; gap: 8px; }
.rxh-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--rxh-line); background: #fff; color: var(--rxh-ink); transition: transform 0.25s var(--rxh-ease), background 0.25s, color 0.25s; }
.rxh-icon:hover { transform: scale(1.08); }
.rxh-icon.is-on { color: #c2410c; border-color: #fdba74; }
.rxh-icon.is-on svg { fill: currentColor; }
.rxh-icon--dark { background: var(--rxh-ink); color: #fff; border-color: var(--rxh-ink); }

/* tilted carousel */
.rxh-tilt { position: relative; margin-top: 96px; text-align: center; }
.rxh-tilt > p { max-width: 640px; margin: 12px auto 0; color: var(--rxh-ink-2); line-height: 1.7; }
.rxh-tilt__track { overflow: hidden; margin: 36px -40px 0; padding: 30px 0 70px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rxh-tilt__belt { display: flex; gap: 22px; width: max-content; animation: rxh-belt 46s linear infinite; }
.rxh-tilt__track:hover .rxh-tilt__belt { animation-play-state: paused; }
.rxh-tilt__card { position: relative; flex: none; width: 230px; height: 300px; border-radius: 20px; overflow: hidden; background: #fff; transform: rotate(var(--r)); transition: transform 0.5s var(--rxh-ease), box-shadow 0.5s; box-shadow: 0 20px 40px -26px rgba(0,0,0,0.4); }
.rxh-tilt__card:hover { transform: rotate(0deg) translateY(-10px) scale(1.04); box-shadow: 0 30px 50px -24px rgba(0,0,0,0.45); }
.rxh-tilt__card img { width: 100%; height: 100%; object-fit: contain; }
.rxh-tilt__card span { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.88); font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s var(--rxh-ease); }
.rxh-tilt__card:hover span { opacity: 1; transform: none; }
.rxh-badge { position: absolute; left: 50%; bottom: 8px; width: 128px; height: 128px; transform: translateX(-50%); display: grid; place-items: center; border-radius: 999px; background: #6e3f36; color: #f6eee6; z-index: 3; box-shadow: 0 16px 34px -18px rgba(110, 63, 54, 0.9); }
.rxh-badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: rxh-spin 16s linear infinite; }
.rxh-badge__ring text { fill: currentColor; font-size: 15px; letter-spacing: 4.2px; font-weight: 600; }
.rxh-badge__core { width: 70px; height: 70px; border-radius: 999px; border: 1px dashed rgba(246, 238, 230, 0.6); display: grid; place-items: center; text-align: center; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.3; }

/* journal */
.rxh-journal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rxh-post { border: 1px solid var(--rxh-line); border-radius: 20px; overflow: hidden; background: #fff; transition: transform 0.4s var(--rxh-ease), box-shadow 0.4s; }
.rxh-post:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(29,29,29,0.35); }
.rxh-post__media { aspect-ratio: 16 / 8; overflow: hidden; background: #fff; border-bottom: 1px solid var(--rxh-line); }
.rxh-post__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.9s var(--rxh-ease); }
.rxh-post:hover .rxh-post__media img { transform: scale(1.05); }
.rxh-post__body { padding: 20px 22px 24px; }
.rxh-post__body h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.rxh-post__body p { margin-top: 10px; font-size: 13px; color: var(--rxh-ink-2); line-height: 1.7; }
.rxh-post__body strong { color: var(--rxh-ink); }

/* dark CTA */
.rxh-cta { margin-top: 96px; border-radius: 26px; background: linear-gradient(135deg, #2b2b2b, #161616); color: #fff; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.rxh-cta h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.rxh-cta__form { display: flex; gap: 6px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 0 0 4px rgba(255,255,255,0.12); }
.rxh-cta__form input { flex: 1; border: 0; outline: 0; background: transparent; padding: 0 18px; color: var(--rxh-ink); font: inherit; min-width: 0; }
.rxh-cta__form button { height: 46px; padding: 0 22px; border-radius: 999px; background: var(--rxh-ink); color: #fff; font-weight: 600; transition: transform 0.25s var(--rxh-ease); }
.rxh-cta__form button:hover { transform: scale(1.03); }
.rxh-cta__side p { margin-top: 14px; font-size: 12px; opacity: 0.72; line-height: 1.7; max-width: 440px; }

/* ---------- motion ---------- */
@keyframes rxh-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rxh-belt { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rxh-spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .rxh-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
	.rxh-stories, .rxh-journal, .rxh-cta { grid-template-columns: 1fr; }
	.rxh-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.rxh-hero__dots { display: none; }
	.rxh-hero__nav { top: auto; bottom: 96px; }
	.rxh-section { margin-top: 64px; }
	.rxh-section__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
	.rxh { padding-left: 8px; padding-right: 8px; }
	.rxh-page { border-radius: 20px; padding: 12px 12px 28px; }
	.rxh-products { grid-template-columns: 1fr; }
	.rxh-tilt__card { width: 180px; height: 240px; }
	.rxh-hero h1 { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
	.rxh *, .rxh *::before, .rxh *::after { animation: none !important; transition: none !important; }
}
