/* =================================================================
 * story.css — Our Story (피그마 기획안 Our Story 1920 · Our Story-mobile 850, WBS 2.4.4)
 * PC 는 기획안 1920 폭 값 그대로 (가운데 내용 폭 1225), 모바일(899px 이하)은 850 폭 값 × 100vw / 850
 * ================================================================= */

/* ---- ① 위쪽 배너 1303×300 · 모서리 45 (상품 목록 배너와 같은 배치, 숲 사진) ---- */

.story-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	place-content: center;
	min-height: 300px;
	margin-block-start: 16px;
	padding: var(--sp-md);
	border-radius: 45px;
	background: #c4c4c4;
	text-align: center;
	isolation: isolate;
}
/* 기획안 헤더(118)를 쓰는 넓은 화면 : 배너가 헤더 바로 아래 (Our Story y 118) */
@media (min-width: 1280px) { .story-hero { margin-block-start: 0; } }
.story-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.story-hero__sub { margin: 0; font-family: var(--font-body); font-size: 20px; line-height: 24px; color: var(--efilow-cream); }
.story-hero__title {
	margin: 11px 0 0;
	font-family: var(--font-point);
	font-weight: 800;
	font-size: 45px;
	line-height: normal;
	color: #fff;
	text-transform: capitalize;
}

/* ---- ② 브랜드 문장 : 배너 아래 149, 다음 칸까지 455. 뒤에 옅은 efilow 글자 (높이 658, 투명도 3%) ---- */

.story-belief {
	position: relative;
	z-index: 0;
	height: 455px;
	margin-block-start: 149px;
	padding-inline: var(--page-margin);
}
.story-belief__mark {
	position: absolute;
	left: 0;
	top: 0;
	z-index: -1;
	width: 100%;
	height: 658px;
	object-fit: cover;
	opacity: .03;
	pointer-events: none;
}
.story-belief__text {
	max-width: 1102px;
	margin: 0 auto;
	font-family: var(--font-point);
	font-weight: 800;
	font-size: 50px;
	line-height: 60px;
	color: var(--fg);
	text-align: center;
}
.story-belief__text br.m { display: none; }
.story-belief__text em {
	font-style: normal;
	color: var(--brand);
	text-decoration: underline;
	text-decoration-skip-ink: none;
}

/* ---- ③ 이야기 3칸 : 높이 700, 사진 600×600 (위아래 50), 가운데 내용 폭 1225 ---- */

.story-row { position: relative; z-index: 1; background: #fff; }   /* 뒤의 efilow 글자를 덮는다 */
.story-row--cream { background: var(--efilow-cream); }

.story-row__inner {
	position: relative;
	max-width: calc(1225px + var(--page-margin) * 2);
	margin-inline: auto;
	padding: 50px var(--page-margin);
}
.story-row__media {
	width: 48.98%;                 /* 600 / 1225 */
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 69px;
	background: #d9d9d9;
}
.story-row__media img { width: 100%; height: 100%; object-fit: cover; }
/* 3번 사진은 기획안처럼 가로로 넓게 잘라 왼쪽을 조금 넘긴다 */
.story-row__media--03 img { width: 149.98%; max-width: none; margin-left: -9.93%; object-fit: fill; }
.story-row--flip .story-row__media { margin-left: auto; }

/* 글 칸 : 사진 옆 (기획안 위치 : 1번 사진 끝에서 87, 3번 32, 2번은 왼쪽) */
.story-row__body {
	--title-top: 153px;          /* 사진 위 끝에서 제목까지 */
	--no-top: 405px;             /* 번호 */
	position: absolute;
	top: 50px;
	bottom: 50px;
	left: calc(var(--page-margin) + (100% - var(--page-margin) * 2) * 0.5608);   /* 687 / 1225 */
	right: var(--page-margin);
	padding-top: var(--title-top);
}
.story-row--flip .story-row__body { --title-top: 124px; --no-top: 526px; left: var(--page-margin); right: auto; width: calc((100% - var(--page-margin) * 2) * 0.4571); }
.story-row--third .story-row__body { --title-top: 171px; --no-top: 526px; left: calc(var(--page-margin) + (100% - var(--page-margin) * 2) * 0.5159); }

.story-row__label, .story-row__no {
	position: absolute;
	right: 0;
	margin: 0;
	font-family: var(--font-body);
	font-size: 20px;
	line-height: 35px;
	color: var(--brand);
	text-transform: uppercase;
}
.story-row__label { top: 38px; }
.story-row__no { top: var(--no-top); }
.story-row--flip .story-row__label, .story-row--flip .story-row__no { left: 0; right: auto; }

.story-row__title {
	max-width: 560px;
	margin: 0 0 25px;
	font-family: var(--font-point);
	font-weight: 800;
	font-size: 50px;
	line-height: 60px;
	color: var(--efilow-ink);
	text-transform: capitalize;
}
.story-row__text {
	max-width: 492px;
	margin: 0;
	font-family: var(--font-body);
	font-size: 25px;
	line-height: 35px;
	color: var(--efilow-ink);
}
.story-row__text + .story-row__text { margin-top: 35px; }   /* 기획안의 빈 줄 */

/* ---- ④ DISCOVER EFILOW : 이야기 끝에서 117, 사진 768×483 · 카드 402×434 (간격 55) ---- */

.story-journey { max-width: calc(1225px + var(--page-margin) * 2); margin-block-start: 117px; }
.story-journey__eyebrow {
	margin: 0;
	font-family: var(--font-body);
	font-size: 20px;
	line-height: 24px;
	color: var(--fg);
	text-align: center;
	text-transform: uppercase;
}
.story-journey__title {
	margin: 7px 0 0;
	font-family: var(--font-point);
	font-weight: 800;
	font-size: 45px;
	line-height: normal;
	color: #14160d;
	text-align: center;
	text-transform: capitalize;
}
.story-journey__grid {
	display: grid;
	grid-template-columns: 768fr 402fr;
	column-gap: 55px;
	align-items: start;
	margin-block-start: 62px;
}
.story-journey__photo {
	aspect-ratio: 768 / 483;
	overflow: hidden;
	border-radius: 42px;
	background: #c4c4c4;
}
.story-journey__photo img { width: 100%; height: 212.03%; max-width: none; margin-top: -14.19%; object-fit: cover; }   /* top -11.24% (높이 기준) */

/* 상품 카드 슬라이드 */
.story-slider { min-width: 0; }
.story-slider[hidden] { display: none; }
.story-card { display: none; padding: 46px 45px 32px 44px; border-radius: 33px; background: var(--surface); }
.story-card.is-active { display: block; }
.story-card__media { display: block; aspect-ratio: 315 / 275; overflow: hidden; border-radius: 20px 20px 0 0; background: #c4c4c4; }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; }
.story-card__info { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-top: 25px; }
.story-card__title {
	max-width: 202px;
	font-family: var(--font-point);
	font-weight: 800;
	font-size: 20px;
	line-height: normal;
	color: var(--brand);
	text-transform: capitalize;
}
.story-card__price { flex: none; margin: 3px 0 0; font-family: var(--font-body); font-size: 15px; color: var(--efilow-ink); }
.story-card__price s { font-size: 12px; }
.story-card__price b { font-weight: 700; }
.story-card__tags { margin: 13px 0 0; font-family: var(--font-body); font-size: 15px; color: var(--fg); }
.story-card__tags:empty { display: none; }
.story-card__tags a:hover { color: var(--brand); }

/* 점 : 지름 8 · 간격 15, 지금 카드는 #6A6E4E (기획안 Slider-Icons) */
.story-slider__dots { display: flex; justify-content: center; gap: 15px; margin-top: 30px; }
.story-slider__dots[hidden] { display: none; }
.story-slider__dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #0a0a0a; cursor: pointer; }
.story-slider__dot::after { content: ""; position: absolute; inset: -12px -7px; }   /* 누르는 영역 22×32 (점 간격 15 안에서) */
.story-slider__dot.is-active { background: #6a6e4e; }

/* ---- 중간 폭 : 글자를 조금 줄인다 ---- */
@media (max-width: 1399px) and (min-width: 900px) {
	.story-belief__text { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.2; }
	.story-row__title { font-size: clamp(30px, 2.8vw, 50px); line-height: 1.2; }
	.story-row__text { font-size: clamp(16px, 1.45vw, 25px); line-height: 1.45; }
	.story-row__text + .story-row__text { margin-top: 1.45em; }
	/* 화면이 좁으면 사진 높이가 줄어드니 글을 세로 가운데로 */
	.story-row__body, .story-row--flip .story-row__body, .story-row--third .story-row__body { display: flex; flex-direction: column; justify-content: center; padding-top: 0; }
	.story-row__no { top: auto; bottom: 0; }
}

/* =================================================================
 * 모바일 (기획안 Our Story-mobile 850 폭) : 값 × 100vw / 850
 * 이야기 칸은 위에서부터 번호 · 이름 → 사진 → 제목 → 글 순서로 쌓는다
 * ================================================================= */
@media (max-width: 899px) {
	.story-hero { min-height: 0; aspect-ratio: 700 / 450; border-radius: calc(45 * 100vw / 850); }
	.story-hero__sub { font-size: max(12px, calc(20 * 100vw / 850)); line-height: 1.2; }
	.story-hero__title { margin-top: calc(6 * 100vw / 850); font-size: max(24px, calc(45 * 100vw / 850)); }

	.story-belief { height: calc(526 * 100vw / 850); margin-block-start: calc(146 * 100vw / 850); }
	.story-belief__mark { top: calc(106 * 100vw / 850); height: calc(658 * 100vw / 850); }
	.story-belief__text { max-width: none; font-size: max(20px, calc(40 * 100vw / 850)); line-height: 1.25; }
	.story-belief__text br.m { display: inline; }

	/* 번호 · 이름 줄(위 29, 높이 110) → 사진 → 제목 → 글. 글 칸(body)은 풀어서 사진과 같은 줄에 놓는다 */
	.story-row__inner { display: flex; flex-direction: column; padding: calc(139 * 100vw / 850) 0 calc(90 * 100vw / 850); }
	.story-row__body { display: contents; }
	.story-row__label, .story-row__no {
		top: calc(29 * 100vw / 850);
		display: flex;
		align-items: center;
		width: calc(260 * 100vw / 850);
		height: calc(110 * 100vw / 850);
		font-size: max(11px, calc(20 * 100vw / 850));
		line-height: 1.4;
	}
	/* 1 · 3 은 번호 왼쪽 · 이름 오른쪽, 2 는 이름 왼쪽 · 번호 오른쪽 */
	.story-row__no { left: calc(125 * 100vw / 850); right: auto; }
	.story-row__label { right: calc(125 * 100vw / 850); left: auto; justify-content: flex-end; }
	.story-row--flip .story-row__label { left: calc(125 * 100vw / 850); right: auto; justify-content: flex-start; }
	.story-row--flip .story-row__no { right: calc(125 * 100vw / 850); left: auto; justify-content: flex-end; }

	.story-row__media, .story-row--flip .story-row__media { width: calc(700 * 100vw / 850); aspect-ratio: 700 / 600; margin: 0 auto; border-radius: calc(69 * 100vw / 850); }
	.story-row__title { max-width: none; margin: calc(74 * 100vw / 850) calc(125 * 100vw / 850) calc(9 * 100vw / 850); font-size: max(22px, calc(50 * 100vw / 850)); line-height: 1.3; }
	.story-row--flip .story-row__title { margin-top: calc(71 * 100vw / 850); }
	.story-row__text { max-width: none; margin-inline: calc(125 * 100vw / 850); font-size: max(13px, calc(25 * 100vw / 850)); line-height: 1.4; }
	.story-row__text + .story-row__text { margin-top: 1.4em; }

	/* DISCOVER : 사진 700×483 아래에 카드 402×434 가 92 만큼 겹친다 */
	.story-journey { margin-block-start: calc(108 * 100vw / 850); padding-inline: 0; }
	.story-journey__eyebrow { font-size: max(12px, calc(20 * 100vw / 850)); }
	.story-journey__title { font-size: max(22px, calc(45 * 100vw / 850)); }
	.story-journey__grid { display: block; margin-top: calc(62 * 100vw / 850); }
	.story-journey__photo { width: calc(700 * 100vw / 850); margin: 0 auto; border-radius: calc(42 * 100vw / 850); }
	.story-slider { position: relative; width: max(220px, calc(402 * 100vw / 850)); margin: calc(-92 * 100vw / 850) auto 0; }
	.story-card { padding: calc(46 * 100vw / 850) calc(45 * 100vw / 850) calc(32 * 100vw / 850) calc(44 * 100vw / 850); border-radius: calc(33 * 100vw / 850); }
	.story-card__info { flex-direction: column; gap: 2px; margin-top: calc(25 * 100vw / 850); }
	.story-card__title { font-size: max(13px, calc(20 * 100vw / 850)); }
	.story-card__price { margin: 0; font-size: max(12px, calc(15 * 100vw / 850)); }
	.story-card__tags { font-size: max(11px, calc(15 * 100vw / 850)); }
	.story-slider__dots { margin-top: calc(30 * 100vw / 850); }
}
