/* Trang chủ — ảnh là chủ đạo, khung ngắm máy ảnh */
:root {
	--ink: var(--color-navy);
	--fog: var(--color-sand);
	--font-display: 'Be Vietnam Pro', -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

.home {
	padding: 0;
}

.home-wrap {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 20px;
}

/* Nút */
.btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn--orange { background: var(--color-sun); color: var(--ink); }
.btn--orange:hover { background: #fff; }
.btn--ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn--navy { background: var(--ink); color: #fff; }
.btn--navy:hover { background: #fff; color: var(--ink); }

.eyebrow {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-navy);
	margin: 0 0 14px;
}

.eyebrow--light { color: var(--color-sun); }

/* Hero */
.hero {
	position: relative;
	min-height: clamp(560px, 88vh, 820px);
	display: flex;
	align-items: flex-end;
	background: var(--ink);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.hero__art,
.hero__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -3;
}

.hero__photo { object-fit: cover; }

.hero__reticle {
	position: absolute;
	left: 68%;
	top: 42%;
	width: 240px;
	height: 240px;
	transform: translate(-50%, -50%);
	z-index: -1;
	overflow: visible;
}

.hero__shade {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(90deg, rgba(15, 61, 94, 0.85) 0%, rgba(15, 61, 94, 0.35) 55%, rgba(15, 61, 94, 0) 80%),
		linear-gradient(0deg, rgba(15, 61, 94, 0.7) 0%, rgba(15, 61, 94, 0) 45%);
}

.hero--photo .hero__shade {
	background:
		linear-gradient(90deg, rgba(15, 61, 94, 0.72) 0%, rgba(15, 61, 94, 0.25) 55%, rgba(15, 61, 94, 0) 80%),
		linear-gradient(0deg, rgba(15, 61, 94, 0.65) 0%, rgba(15, 61, 94, 0) 45%);
}

.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.07;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero__frame {
	position: absolute;
	inset: 22px;
	pointer-events: none;
}

.hero__frame::before,
.hero__frame::after {
	content: '';
	position: absolute;
	width: 28px;
	height: 28px;
	border: 2px solid rgba(255, 255, 255, 0.7);
}

.hero__frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero__frame::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hud {
	position: absolute;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.85);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hud--tl { top: 14px; left: 44px; }
.hud--tr { top: 14px; right: 44px; }
.hud--bl { bottom: 14px; left: 44px; }
.hud--br { bottom: 14px; right: 44px; }

.hud__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #e5484d;
	animation: rec-blink 1.4s steps(2, jump-none) infinite;
}

.hero__content {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 120px 20px 84px;
}

.hero__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(38px, 6.4vw, 84px);
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0 0 24px;
	max-width: 12em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero__title span { display: block; }
.hero__title-accent { color: var(--color-sun); }

.hero__lead {
	max-width: 520px;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ô lấy nét */
.reticle {
	transform-box: fill-box;
	transform-origin: center;
	animation: af-lock 1.8s 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.reticle__tag {
	font-family: var(--font-mono);
	font-size: 15px;
	letter-spacing: 0.1em;
}

.hero__sun {
	animation: sun-breathe 8s ease-in-out infinite;
	transform-box: fill-box;
	transform-origin: center;
}

@keyframes af-lock {
	0% { transform: scale(1.7); opacity: 0; stroke: #fff; }
	45% { opacity: 1; stroke: #fff; }
	70% { transform: scale(1); stroke: #fff; }
	80% { stroke: var(--color-sun); }
	100% { transform: scale(1); opacity: 1; stroke: var(--color-sun); }
}

@keyframes sun-breathe {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

@keyframes rec-blink {
	0% { opacity: 1; }
	100% { opacity: 0.2; }
}

/* Khối chung */
.home-section { padding: 96px 0; }
.home-section--fog { background: var(--fog); }
.home-section--teal { background: linear-gradient(160deg, color-mix(in srgb, var(--color-teal) 40%, var(--color-navy)) 0%, var(--color-navy) 70%); color: #fff; }

.section-head { margin-bottom: 40px; max-width: 720px; }

.section-head--row {
	max-width: none;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.section-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(28px, 3.8vw, 44px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--color-navy);
}

.section-title--light { color: #fff; }

.link-more { font-weight: 600; color: var(--color-navy); text-decoration: none; }
.link-more:hover { color: var(--color-coral-ink); }

/* Ô dịch vụ: ảnh nền, chữ đè lên */
.bento {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 20px;
}

.tile {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 420px;
	padding: 28px;
	border-radius: 20px;
	color: #fff;
	text-decoration: none;
	background: var(--ink);
	isolation: isolate;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px rgba(15, 61, 94, 0.25);
}

.tile--camera { grid-column: span 7; background: linear-gradient(135deg, var(--color-navy), var(--color-teal)); }
.tile--electric { grid-column: span 5; background: linear-gradient(135deg, var(--color-teal), var(--color-navy)); }
.tile--gas { grid-column: span 5; background: linear-gradient(135deg, var(--color-coral), var(--color-navy)); }
.tile--trek { grid-column: span 7; background: linear-gradient(135deg, color-mix(in srgb, var(--color-teal), var(--color-navy) 40%), var(--color-navy)); }

.tile__photo {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.tile__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tile:hover .tile__photo img { transform: scale(1.06); }

.tile::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgba(15, 61, 94, 0.88) 0%, rgba(15, 61, 94, 0.35) 45%, rgba(15, 61, 94, 0.05) 100%);
}

.tile__tag {
	position: absolute;
	top: 24px;
	left: 24px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(15, 61, 94, 0.55);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.tile__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tile__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.12;
	letter-spacing: -0.015em;
}

.tile__title span { color: var(--color-sun); }

.tile__text {
	max-width: 380px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
}

.tile__more { font-weight: 600; color: var(--color-sun); }

/* Tour */
.tour-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: end;
	margin-bottom: 44px;
}

.tour-intro__lead {
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 20px;
	max-width: 520px;
}

.checks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }

.checks li::before {
	content: '';
	flex: 0 0 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--color-sun) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%230F3D5E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 100% no-repeat;
}

.routes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.route {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 460px;
	padding: 28px;
	border-radius: 20px;
	color: #fff;
	text-decoration: none;
	background: linear-gradient(160deg, var(--color-teal), var(--color-navy));
	border: 1px solid rgba(255, 255, 255, 0.12);
	isolation: isolate;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.route:hover { transform: translateY(-4px); border-color: var(--color-sun); }

.route__photo { position: absolute; inset: 0; z-index: -2; }

.route__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.route:hover .route__photo img { transform: scale(1.06); }

.route::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgba(15, 61, 94, 0.9) 0%, rgba(15, 61, 94, 0.3) 50%, rgba(15, 61, 94, 0.05) 100%);
}

.route__label {
	position: absolute;
	top: 24px;
	left: 24px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(15, 61, 94, 0.55);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.route__body { display: grid; gap: 12px; }

.route__line { width: 100%; height: 24px; color: rgba(255, 255, 255, 0.7); }

.route__stops {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.route__stops em {
	font-style: normal;
	font-size: 13px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.75);
}

.route__more { font-weight: 600; color: var(--color-sun); }

/* Khoảnh khắc: lưới ảnh mosaic */
.home-section--gallery { padding-bottom: 0; }

.mosaic {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 230px;
	grid-auto-flow: dense;
	gap: 6px;
}

.mosaic__item { margin: 0; overflow: hidden; background: var(--fog); }

.mosaic__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mosaic__item:hover img { transform: scale(1.05); }

/* Ô rộng cắt ảnh dọc: giữ phần dưới ảnh (chủ thể thường nằm thấp) */
.mosaic__item:nth-child(5) img { object-position: center 88%; }

.mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic__item:nth-child(3) { grid-row: span 2; }
.mosaic__item:nth-child(5) { grid-column: span 2; }

.mosaic--5 .mosaic__item:nth-child(5) { grid-column: span 4; }
.mosaic--6 .mosaic__item:nth-child(6) { grid-column: span 2; }

.mosaic--3 { grid-template-columns: repeat(3, 1fr); }
.mosaic--3 .mosaic__item:nth-child(1) { grid-column: span 2; }
.mosaic--3 .mosaic__item:nth-child(3) { grid-row: span 1; }

/* Dải kêu gọi */
.cta-band { background: var(--color-sun); color: var(--ink); padding: 72px 0; }

.cta-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.cta-band__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
	max-width: 14em;
}

.home .site-footer { margin-top: 0; }

.section-title,
.hero__title,
.cta-band__title { text-wrap: balance; }

/* Hiện dần khi cuộn */
.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* Màn hình nhỏ */
@media (max-width: 860px) {
	.home-section { padding: 64px 0; }

	.bento { grid-template-columns: 1fr; }

	.tile--camera,
	.tile--electric,
	.tile--gas,
	.tile--trek { grid-column: auto; min-height: 340px; }

	.tour-intro { grid-template-columns: 1fr; gap: 24px; }
	.routes { grid-template-columns: 1fr; }
	.route { min-height: 380px; }

	.mosaic,
	.mosaic--3 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
	.mosaic__item:nth-child(1),
	.mosaic--3 .mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
	.mosaic__item:nth-child(3) { grid-row: auto; }
	.mosaic__item:nth-child(5),
	.mosaic--5 .mosaic__item:nth-child(5) { grid-column: auto; }
	.mosaic--4 .mosaic__item:nth-child(4),
	.mosaic--6 .mosaic__item:nth-child(6) { grid-column: span 2; }

	.hero { min-height: 660px; }
	.hero__content { padding: 96px 20px 72px; }
	.hero__art { height: 58%; }
	.hero__photo { height: 100%; }
	.hero__reticle { left: 50%; top: 30%; width: 200px; height: 200px; }

	.hero__shade {
		background: linear-gradient(0deg, rgba(15, 61, 94, 0.95) 0%, rgba(15, 61, 94, 0.6) 45%, rgba(15, 61, 94, 0) 75%);
	}

	.hud--tr,
	.hud--br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.reticle,
	.hero__sun,
	.hud__dot { animation: none; }

	.js .reveal { opacity: 1; transform: none; transition: none; }

	.btn,
	.tile,
	.route,
	.tile__photo img,
	.route__photo img,
	.mosaic__item img { transition: none; }
}

