/* Home page sections (Figma "Home — Desktop 1440 · Simple" 45:476 / "Home — Mobile 390" 109:1097). */

.f-section { padding-block: var(--f-section); }
.f-section--plum { background: var(--f-plum-deep); }
.f-section--cream { background: var(--f-cream); color: var(--f-dark); }
.f-sechead { margin-bottom: clamp(28px, 3.4vw, 48px); }

/* Hero */
.f-hero {
	position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end;
	background: radial-gradient(120% 90% at 50% 30%, #452c3d 0%, var(--f-plum) 55%, #24151f 100%);
	overflow: hidden; isolation: isolate;
}
.f-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.f-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(50,30,43,0) 35%, rgba(36,21,31,.75) 100%); }
.f-hero__content { padding-block: clamp(48px, 9vw, 120px); display: flex; flex-direction: column; align-items: flex-start; }
.f-hero__title { font-size: var(--f-fs-hero); line-height: 1; margin: 0.05em 0 0.35em; }

/* ---------- The Rail (Figma component "The Rail", scene 1440 × 997) ---------- */
.f-rail { position: relative; background: #e2d5c0; color: var(--f-dark); overflow: hidden; }
.f-rail__head { position: absolute; inset-inline: 0; top: clamp(40px, 7.6vw, 110px); z-index: 3; pointer-events: none; }
.f-rail__viewport { position: relative; height: min(997px, calc(100vw * 997 / 1440)); }
.f-rail__scene { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 1440 / 997; transform: translateX(-50%); background-position: center; background-size: cover; background-repeat: no-repeat; }
.f-rail__drop { position: absolute; top: 6%; height: 20%; width: 3px; background: linear-gradient(90deg, #8b8783, #b8b3ae); }
.f-rail__drop::before { content: ""; position: absolute; top: -3px; left: 50%; width: 24px; height: 6px; transform: translateX(-50%); background: #a29d98; border-radius: 1px; }
.f-rail__drop--l { left: 26.4%; }
.f-rail__drop--r { left: 65.3%; }
.f-rail__bar { position: absolute; top: 25.6%; left: 16.1%; width: 59.6%; height: max(6px, .9%); border-radius: 99px; background: linear-gradient(180deg, #b9b4af, #8d8883); box-shadow: 0 2px 3px rgba(0,0,0,.18); }
.f-rail__bar::before, .f-rail__bar::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #9a9590; }
.f-rail__bar::before { left: -6px; }
.f-rail__bar::after { right: -6px; }
.f-rail__items { list-style: none; margin: 0; padding: 0; }
/* Each piece is the front photo (1:2), hung edge-on (scaleX) until hovered or opened. */
.f-rail__item { position: absolute; top: 24.4%; left: var(--x); width: 16.32%; aspect-ratio: 1 / 2; z-index: 1; pointer-events: none; }
.f-rail__btn {
	display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
	transform: scaleX(.272); transform-origin: 50% 0; transition: transform .55s var(--f-ease), opacity .35s;
	filter: drop-shadow(0 16px 12px rgba(60, 40, 20, .2));
}
.f-rail__btn img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.f-rail__item:hover, .f-rail__item:focus-within, .f-rail__item.is-active { z-index: 2; }
.f-rail__item:hover .f-rail__btn, .f-rail__btn:focus-visible, .f-rail__item.is-active .f-rail__btn { transform: none; }
.f-rail__btn:focus-visible { outline: 2px solid var(--f-gold); outline-offset: 4px; }
.f-rail__tip { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 10px); white-space: nowrap; font-family: var(--f-font-display); font-size: clamp(1.1rem, .8rem + .8vw, 1.6rem); color: var(--f-dark); opacity: 0; transition: opacity .3s; }
.f-rail__item:hover .f-rail__tip, .f-rail__item:focus-within .f-rail__tip { opacity: 1; }
.f-rail.is-open .f-rail__item:not(.is-active) .f-rail__btn { opacity: .45; }
.f-rail.is-open .f-rail__tip { opacity: 0; }
.f-rail__caption { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); z-index: 4; min-width: 340px; padding: 22px 32px 24px; text-align: center; background: rgba(242, 236, 228, .94); box-shadow: 0 12px 30px rgba(60, 40, 20, .16); }
.f-rail__caption[hidden] { display: none; }
.f-rail__close { position: absolute; top: 6px; inset-inline-end: 6px; color: var(--f-dark); }
.f-rail__count { font-family: var(--f-font-latin); font-size: var(--f-fs-xs); letter-spacing: .2em; color: var(--f-dark-muted); margin-bottom: 4px; }
.f-rail__name { font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem); margin-bottom: 14px; }
.f-rail__ctrls { display: flex; gap: 10px; justify-content: center; align-items: center; }
.f-rail__ctrls .f-btn { color: var(--f-dark); border-color: var(--f-dark); }
.f-rail__ctrls .f-iconbtn--box { color: var(--f-dark); border-color: rgba(42, 26, 37, .3); }

/* Product grid inside home */
.f-section .products { margin-bottom: 40px; }

/* Editorial (H21 close-up) */
.f-editorial { background: #b9a48a; }
.f-editorial img { width: 100%; height: clamp(360px, 60vw, 860px); object-fit: cover; object-position: center 30%; }

/* ---------- Shop by material (Figma "Material Bolts / Web": tall photo tiles, name top-start) ---------- */
.f-mats { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.f-mat a { position: relative; display: block; aspect-ratio: 212 / 520; overflow: hidden; color: #f2ece4; background: var(--f-mat-bg, #2c2a2e); }
.f-mat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--f-ease); }
.f-mat a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%); }
.f-mat:not(.has-img) a::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px), radial-gradient(120% 80% at 30% 10%, rgba(255,255,255,.14), transparent 60%); }
.f-mat__name { position: absolute; z-index: 1; top: 18px; inset-inline-start: 22px; font-family: var(--f-font-display); font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); line-height: 1.1; }
.f-mat .f-ico { position: absolute; z-index: 1; bottom: 18px; inset-inline-end: 18px; opacity: 0; transition: opacity .25s; }
.f-mat a:hover .f-mat__img { transform: scale(1.04); }
.f-mat a:hover .f-ico, .f-mat a:focus-visible .f-ico { opacity: 1; }
.f-mat a:hover { color: #f2ece4; }
.f-mat--1 { --f-mat-bg: linear-gradient(160deg, #5b5550, #2f2b29); }
.f-mat--2 { --f-mat-bg: linear-gradient(160deg, #6e5a4c, #3c2f27); }
.f-mat--3 { --f-mat-bg: linear-gradient(160deg, #3a3a36, #171716); }
.f-mat--4 { --f-mat-bg: linear-gradient(160deg, #2c2a2e, #0f0e10); }
.f-mat--5 { --f-mat-bg: linear-gradient(160deg, #4d5846, #252b22); }
.f-mat--6 { --f-mat-bg: linear-gradient(160deg, #cfc4b1, #8d8373); }
.f-mat--7 { --f-mat-bg: linear-gradient(160deg, #26232a, #08070a); }

/* ---------- Try the look (Figma component "Try the Look") ---------- */
.f-looks { background: var(--f-plum); overflow: hidden; }
.f-looks .f-sechead { position: relative; z-index: 3; }
.f-looks__intro { display: none; color: var(--f-muted); max-width: 36ch; margin-top: 12px; }
.f-looks__stage { position: relative; height: clamp(440px, 42vw, 620px); margin-top: calc(-1 * clamp(40px, 7vw, 110px)); }
.f-looks__stage > .f-looks__fig { position: absolute; bottom: 5%; width: auto; transform: translateX(-50%); filter: blur(3px) brightness(.6) saturate(.8); opacity: .75; }
.f-looks__fig--near-r { left: 63%; height: 74%; }
.f-looks__fig--near-l { left: 28.5%; height: 74%; }
.f-looks__fig--far-r { left: 77%; height: 62%; opacity: .5 !important; }
.f-looks__fig--far-l { left: 14.6%; height: 62%; opacity: .5 !important; }
.f-looks__main { position: absolute; left: 50%; bottom: 2%; height: 92%; aspect-ratio: 534 / 1617; transform: translateX(-50%); z-index: 2; }
.f-looks__main .f-looks__fig { display: block; width: 100%; height: 100%; object-fit: contain; }
.f-looks__dot { position: absolute; left: var(--x); top: var(--y); width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1.5px solid rgba(242,236,228,.9); display: grid; place-items: center; z-index: 3; }
.f-looks__dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #f2ece4; }
.f-looks__tip { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); background: var(--f-cream); color: var(--f-dark); padding: 4px 10px; font-size: var(--f-fs-xs); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s; }
.f-looks__dot:hover .f-looks__tip, .f-looks__dot:focus-visible .f-looks__tip { opacity: 1; }
.f-looks__floor { position: absolute; left: 50%; bottom: 1%; width: 32%; height: 5%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); z-index: 1; }
.f-looks__nav { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.f-looks__steps { list-style: none; flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.f-looks__steps button { width: 100%; background: none; border: 0; border-top: 1px solid var(--f-line-strong); padding: 10px 4px 0; text-align: start; color: var(--f-muted); font-size: 11px; font-family: var(--f-font-latin); }
.f-looks__steps em { font-style: normal; font-family: var(--f-font-ui); margin-inline-start: 6px; }
.f-looks__steps .is-active button { border-top: 2px solid var(--f-text); color: var(--f-text); }
.f-looks__count { display: none; font-family: var(--f-font-latin); color: var(--f-muted); font-size: var(--f-fs-xs); letter-spacing: .15em; }

/* ---------- New collection (Figma "Editorial banner": full-bleed photo, plum gradient, copy at the start side) ---------- */
.f-feature { position: relative; min-height: clamp(520px, 54vw, 780px); display: flex; align-items: center; background: var(--f-plum-deep); overflow: hidden; isolation: isolate; }
.f-feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; }
.f-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(36,21,31,.92) 0%, rgba(36,21,31,.55) 32%, rgba(36,21,31,0) 62%); }
html[dir="ltr"] .f-feature::after { background: linear-gradient(90deg, rgba(36,21,31,.92) 0%, rgba(36,21,31,.55) 32%, rgba(36,21,31,0) 62%); }
.f-feature__inner { width: 100%; }
.f-feature__text { max-width: 440px; padding-block: var(--f-section); }
.f-feature__text p:not(.f-eyebrow) { color: rgba(242,236,228,.86); }

/* ---------- Our story (Figma "Pleat (brand shape)") ---------- */
.f-story { position: relative; background: var(--f-cream); color: var(--f-dark); padding-block: var(--f-section); overflow: hidden; }
.f-story__drape { position: absolute; left: 0; bottom: 0; width: min(43%, 615px); height: auto; pointer-events: none; }
.f-story__inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; max-width: var(--f-max); }
.f-story__inner > * { max-width: 620px; }
.f-story p:not(.f-eyebrow) { color: var(--f-dark-muted); line-height: 2; }

@media (max-width: 1199px) {
	.f-mats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.f-looks__fig--far-r, .f-looks__fig--far-l { display: none; }
}
@media (max-width: 900px) {
	.f-hero { min-height: 72vh; }
	/* Rail (Figma Home — Mobile 390): heading above, scene zoomed so the six pieces fill the width. */
	.f-rail__head { position: static; padding-top: 48px; padding-bottom: 4px; }
	.f-rail__viewport { height: calc(100vw * 1.6 * 997 / 1440); }
	.f-rail__scene { transform: translateX(-45.84%); }
	.f-rail__caption { min-width: 0; width: calc(100% - 32px); padding: 16px 16px 18px; bottom: 3%; }
	/* Materials: stacked photo bars, name at the start, arrow at the end. */
	.f-mats { grid-template-columns: 1fr; gap: 6px; }
	.f-mat a { aspect-ratio: auto; height: 68px; }
	.f-mat a::after { background: linear-gradient(270deg, rgba(0,0,0,.55), rgba(0,0,0,.12)); }
	html[dir="ltr"] .f-mat a::after { background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12)); }
	.f-mat__name { top: 50%; transform: translateY(-50%); font-size: 1.5rem; }
	.f-mat .f-ico { opacity: 1; top: 50%; bottom: auto; transform: translateY(-50%); }
	/* Try the look: intro text, three figures, counter + label between the arrows. */
	.f-looks__intro { display: block; }
	.f-looks__stage { height: min(125vw, 540px); margin-top: 8px; }
	.f-looks__fig--near-r { left: 88%; height: 62%; }
	.f-looks__fig--near-l { left: 12%; height: 62%; }
	.f-looks__nav { justify-content: space-between; }
	.f-looks__steps { flex: 1; display: block; text-align: center; }
	.f-looks__steps li:not(.is-active) { display: none; }
	.f-looks__steps button { border: 0 !important; padding: 0; text-align: center; }
	.f-looks__steps button span { display: none; }
	.f-looks__steps em { display: block; margin: 0; color: var(--f-text); font-size: var(--f-fs-sm); }
	.f-looks__count { display: block; order: 0; }
	.f-looks__nav { flex-wrap: wrap; }
	.f-looks__count { flex-basis: 100%; text-align: center; order: -1; margin-bottom: -8px; }
	/* New collection: photo on top, copy below on plum. */
	.f-feature { display: block; min-height: 0; }
	.f-feature__img { position: static; height: min(125vw, 560px); }
	.f-feature::after { display: none; }
	.f-feature__text { max-width: none; padding-block: 40px; }
	.f-story { padding-bottom: 140px; }
	.f-story__drape { width: 62%; }
}
