/* ==========================================================================
   ACON — Dự án (standalone stylesheet)

   Two surfaces, one file:
     .acon-main--projects  archive, light document chrome, mosaic grid
     .acon-main--projd     single project, full-page pager, one section
                           per scroll

   Namespaced `proj-` / `projd-` so nothing collides with the homepage
   `projects-v2` showcase living in main.css.
   ========================================================================== */

.acon-main--projects,
.acon-main--projd {
	--proj-ink: #0b1b30;
	--proj-ink-mid: #44576f;
	--proj-ink-soft: #6b7e95;
	--proj-line: #dae3ee;
	--proj-tint: #f3f7fc;
	--proj-blue: #195c90;
	--proj-blue-soft: #246da9;
	--proj-blue-wash: #1a588c;
	--proj-radius: 0px;
	--proj-shell: 1380px;
	--proj-gutter: clamp(18px, 4vw, 48px);
	--proj-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.proj-shell,
.projd-shell {
	width: min(100% - (var(--proj-gutter) * 2), var(--proj-shell));
	margin: 0 auto;
}

/* ==========================================================================
   ARCHIVE
   ========================================================================== */

.acon-main--projects {
	background: #fff;
	color: var(--proj-ink);
}

.proj-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--proj-ink-soft);
}

.proj-crumb a {
	color: var(--proj-ink-soft);
	transition: color 0.22s ease;
}

.proj-crumb a:hover {
	color: var(--proj-blue);
}

.proj-crumb [aria-current="page"] {
	color: var(--proj-ink);
}

.proj-head {
	padding: clamp(26px, 4.5vw, 52px) 0 clamp(18px, 2.6vw, 30px);
}

.proj-head__title {
	margin: clamp(12px, 2.2vw, 20px) 0 0;
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-weight: 800;
	font-size: clamp(28px, 4.2vw, 54px);
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.proj-head__lead {
	margin: 12px 0 0;
	max-width: none;
	font-size: clamp(14.5px, 1.05vw, 16.5px);
	font-weight: 500;
	line-height: 1.65;
	color: var(--proj-ink-mid);
	text-wrap: pretty;
}

.proj-head__count {
	margin: 16px 0 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--proj-ink-soft);
}

.proj-head__count b {
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-size: 17px;
	color: var(--proj-blue);
}

/* ----- Type filter ----- */

.proj-filter {
	position: relative;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--proj-line);
}

.proj-filter__list {
	list-style: none;
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 13px 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.proj-filter__list::-webkit-scrollbar { display: none; }

.proj-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	white-space: nowrap;
	border: 1px solid var(--proj-line);
	background: #fff;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--proj-ink-mid);
	transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.proj-chip:hover {
	color: var(--proj-blue);
	border-color: var(--proj-blue-soft);
}

.proj-chip.is-current {
	background: var(--proj-blue);
	border-color: var(--proj-blue);
	color: #fff;
}

.proj-chip__count {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--proj-ink-soft);
}

.proj-chip.is-current .proj-chip__count { color: rgba(255, 255, 255, 0.78); }

.proj-chip:focus-visible {
	outline: 3px solid var(--proj-blue-soft);
	outline-offset: 3px;
}

/* ----- Mosaic ----------------------------------------------------------- */

.proj-body {
	padding: clamp(22px, 3.4vw, 40px) 0 clamp(44px, 7vw, 88px);
}

/*
 * Six columns. The block of five repeats: a wide feature holding two rows,
 * two narrow tiles stacked beside it, then two half-width tiles.
 */
.proj-mosaic {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-auto-rows: clamp(170px, 21vw, 330px);
	gap: clamp(12px, 1.3vw, 20px);
}

.proj-tile { min-width: 0; }

.proj-tile--w4h2 { grid-column: span 4; grid-row: span 2; }
.proj-tile--w2   { grid-column: span 2; }
.proj-tile--w3   { grid-column: span 3; }
/* Tail shapes, used to close a partial final block without leaving a hole. */
.proj-tile--w2h2 { grid-column: span 2; grid-row: span 2; }
.proj-tile--w6   { grid-column: span 6; }
.proj-tile--w6h2 { grid-column: span 6; grid-row: span 2; }

.proj-tile__link {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: 100%;
	overflow: hidden;
	color: #fff;
	background: #0b1b30;
}

.proj-tile__link:focus-visible {
	outline: 3px solid var(--proj-blue-soft);
	outline-offset: 3px;
}

.proj-tile__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.proj-tile__img {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	filter: saturate(1) contrast(1);
	transition:
		transform 0.75s var(--proj-ease),
		filter 0.55s var(--proj-ease);
}

.proj-tile__img--empty {
	background: linear-gradient(135deg, #16324f, #0b1b30);
}

.proj-tile__link:hover .proj-tile__img,
.proj-tile__link:focus-visible .proj-tile__img {
	transform: scale(1.05);
	filter: saturate(0.3) contrast(1.06);
}

/* Photo tiles: a foot gradient carries the copy. */
.proj-tile__wash {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(6, 20, 38, 0) 30%,
		rgba(6, 20, 38, 0.55) 66%,
		rgba(6, 20, 38, 0.9) 100%
	);
}

/* Brand blue is the shared interaction state for every project tile. */
.proj-tile__wash::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(24, 96, 174, 0.86) 0%,
		rgba(17, 68, 128, 0.93) 100%
	);
	opacity: 0;
	transition: opacity 0.55s var(--proj-ease);
}

.proj-tile__link:hover .proj-tile__wash::after,
.proj-tile__link:focus-visible .proj-tile__wash::after {
	opacity: 1;
}

.proj-tile__body {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	padding: clamp(16px, 1.8vw, 26px);
}

.proj-tile__title {
	display: block;
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-weight: 800;
	font-size: clamp(15px, 1.35vw, 20px);
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-transform: uppercase;
	color: #fff;
	text-wrap: pretty;
}

.proj-tile--featured .proj-tile__title {
	font-size: clamp(22px, 2.9vw, 44px);
	line-height: 1.06;
	letter-spacing: -0.02em;
	max-width: 18ch;
}

.proj-tile__place {
	display: block;
	margin-top: 7px;
	font-size: clamp(12.5px, 0.95vw, 14px);
	font-weight: 500;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.82);
	text-wrap: pretty;
}

.proj-tile--featured .proj-tile__place {
	margin-top: 12px;
	font-size: clamp(14px, 1.15vw, 18px);
}

/* Project facts expand with the shared blue interaction state. */
.proj-tile__facts {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(12px, 1.5vw, 26px);
	max-width: calc(100% - 40px);
	max-height: 0;
	margin-top: 0;
	padding-top: 0;
	overflow: hidden;
	border-top: 1px solid transparent;
	opacity: 0;
	transform: translateY(12px);
	transition:
		max-height 0.55s var(--proj-ease),
		margin-top 0.55s var(--proj-ease),
		padding-top 0.55s var(--proj-ease),
		border-color 0.35s ease,
		opacity 0.35s ease 0.08s,
		transform 0.55s var(--proj-ease);
}

.proj-tile__link:hover .proj-tile__facts,
.proj-tile__link:focus-visible .proj-tile__facts {
	max-height: 130px;
	margin-top: clamp(12px, 1.5vw, 20px);
	padding-top: clamp(12px, 1.5vw, 18px);
	border-color: rgba(255, 255, 255, 0.32);
	opacity: 1;
	transform: translateY(0);
}

.proj-tile__fact {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.proj-tile__fact-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 23px;
	height: 23px;
	color: #fff;
}

.proj-tile__fact-icon svg { width: 20px; height: 20px; }

.proj-tile__fact-body { display: block; }

.proj-tile__fact-label {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
}

.proj-tile__fact-value {
	display: block;
	margin-top: 3px;
	max-width: 18ch;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.88);
}

.proj-tile__go {
	position: absolute;
	right: clamp(16px, 1.8vw, 26px);
	bottom: clamp(16px, 1.8vw, 26px);
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	color: #fff;
	transition: transform 0.4s var(--proj-ease);
}

.proj-tile__go svg { width: 30px; height: 30px; }

.proj-tile__link:hover .proj-tile__go { transform: translateX(6px); }

/* ----- Pagination ------------------------------------------------------- */

.proj-pager { margin-top: clamp(28px, 4vw, 52px); }

.proj-pager__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.proj-pager__list .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--proj-line);
	background: #fff;
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-size: 14px;
	font-weight: 700;
	color: var(--proj-ink-mid);
	transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.proj-pager__list .page-numbers svg { width: 17px; height: 17px; }

.proj-pager__list a.page-numbers:hover {
	color: var(--proj-blue);
	border-color: var(--proj-blue-soft);
}

.proj-pager__list .page-numbers.current {
	background: var(--proj-blue);
	border-color: var(--proj-blue);
	color: #fff;
}

.proj-pager__list .page-numbers.dots {
	border-color: transparent;
	background: none;
}

.proj-pager__list a.page-numbers:focus-visible {
	outline: 3px solid var(--proj-blue-soft);
	outline-offset: 2px;
}

/* ----- Empty ------------------------------------------------------------ */

.proj-empty {
	padding: clamp(40px, 8vw, 90px) 0;
	text-align: center;
}

.proj-empty h2 {
	margin: 0 0 10px;
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-size: clamp(20px, 2.4vw, 28px);
}

.proj-empty p {
	margin: 0 auto 22px;
	max-width: 46ch;
	color: var(--proj-ink-mid);
	line-height: 1.65;
}

.proj-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 24px;
	background: var(--proj-blue);
	color: #fff;
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-size: 14px;
	font-weight: 700;
	transition: background 0.24s ease, transform 0.24s var(--proj-ease);
}

.proj-btn:hover {
	background: #0f395c;
	transform: translateY(-2px);
}

.proj-btn:focus-visible {
	outline: 3px solid var(--proj-blue-soft);
	outline-offset: 3px;
}

/* ==========================================================================
   SINGLE — one section per scroll
   ========================================================================== */

.acon-main--projd {
	background: #fff;
	color: var(--proj-ink);
}

.acon-main--projd .acon-section {
	scroll-snap-align: start;
}

/* ----- 1 / Hero ----- */

.projd-hero.acon-section {
	position: relative;
	display: flex;
	align-items: center;
	padding: calc(var(--acon-header-height, 80px) + 18px) 0 24px;
	overflow: hidden;
	background: #0b1b30;
	color: #fff;
}

.projd-hero__media { position: absolute; inset: 0; z-index: 0; }

.projd-hero__photo {
	position: absolute;
	inset: -4%;
	background-position: center;
	background-size: cover;
	transform: scale(1.05);
	will-change: transform;
}

.projd-hero__wash {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(6, 18, 34, 0.54) 0%, rgba(6, 18, 34, 0.08) 31%, rgba(6, 18, 34, 0.92) 100%);
}

.projd-hero__inner {
	position: relative;
	z-index: 1;
	transform: translateY(clamp(24px, 5svh, 52px));
}

.projd-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 clamp(18px, 3svh, 32px);
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
}

.projd-crumb a { color: rgba(255, 255, 255, 0.75); transition: color 0.22s ease; }
.projd-crumb a:hover { color: #fff; }

.projd-hero__eyebrow {
	margin: 0 0 9px;
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.68);
}

.projd-hero__title {
	margin: 0;
	max-width: 24ch;
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-weight: 800;
	font-size: clamp(30px, min(4.2vw, 7svh), 64px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 28px rgba(3, 12, 24, 0.5);
}

.projd-hero__brief {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1.15fr 0.85fr 1fr;
	margin: clamp(24px, 4svh, 42px) 0 0;
	padding: clamp(18px, 2.8svh, 28px) 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.projd-hero__brief-item {
	min-width: 0;
	padding: 0 clamp(14px, 1.7vw, 26px);
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.projd-hero__brief-item:first-child {
	padding-left: 0;
	border-left: 0;
}

.projd-hero__brief dt {
	margin: 0 0 8px;
	font-size: 11.5px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.projd-hero__brief dd {
	margin: 0;
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-size: clamp(14.5px, 1.2vw, 17px);
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
	text-wrap: pretty;
}

/* ----- Panels ----- */

.projd-panel.acon-section {
	display: flex;
	align-items: center;
	padding: calc(var(--acon-header-height, 80px) + clamp(18px, 3svh, 40px)) 0 clamp(30px, 5svh, 60px);
	background: #fff;
	color: var(--proj-ink);
	overflow: hidden;
}

.projd-panel--tint.acon-section { background: var(--proj-tint); }

.projd-panel--dark.acon-section {
	background: #0b1b30;
	color: #fff;
}

.projd-h2 {
	margin: 0 0 clamp(18px, 3svh, 32px);
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-weight: 800;
	font-size: clamp(22px, min(3.2vw, 5.4svh), 44px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--proj-ink);
}

.projd-h2--light { color: #fff; }

/* Overview */
.projd-overview {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.56fr);
	gap: clamp(26px, 4vw, 72px);
	align-items: start;
	width: min(100% - (var(--proj-gutter) * 2), var(--proj-shell));
	margin: 0 auto;
}

.projd-prose {
	font-size: clamp(14.5px, min(1.1vw, 2svh), 17.5px);
	line-height: 1.75;
	color: var(--proj-ink-mid);
}

.projd-prose > * + * { margin-top: 1.05em; }

.projd-prose h2,
.projd-prose h3 {
	font-family: var(--font-display, "Codec Pro", sans-serif);
	color: var(--proj-ink);
	line-height: 1.25;
}

.projd-prose h2 { font-size: 1.35em; }
.projd-prose h3 { font-size: 1.18em; }

.projd-prose a {
	color: var(--proj-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.projd-prose img { max-width: 100%; height: auto; }
.projd-prose ul, .projd-prose ol { padding-left: 1.3em; }
.projd-prose li + li { margin-top: 0.45em; }

.projd-specs {
	padding: clamp(18px, 2.2vw, 28px);
	border: 1px solid var(--proj-line);
	background: var(--proj-tint);
}

.projd-specs__title {
	margin: 0 0 12px;
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--proj-blue);
}

.projd-specs__list { margin: 0; }

.projd-specs__row {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
	gap: 14px;
	padding: 10px 0;
	border-top: 1px solid var(--proj-line);
}

.projd-specs__row dt {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--proj-ink-soft);
}

.projd-specs__row dd {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--proj-ink);
	text-wrap: pretty;
}

/* Scale */
.projd-scale__text {
	margin: 0;
	max-width: 74ch;
	font-size: clamp(15px, min(1.4vw, 2.6svh), 22px);
	line-height: 1.7;
	color: var(--proj-ink-mid);
	text-wrap: pretty;
}

/* ----- Gallery ----- */

.projd-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(10px, 1.2vw, 18px);
}

.projd-shot {
	position: relative;
	display: block;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: #10263f;
	cursor: zoom-in;
	aspect-ratio: 4 / 3;
	max-height: 30svh;
}

.projd-shot--hidden { display: none; }

.projd-shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--proj-ease);
}

.projd-shot:hover img { transform: scale(1.06); }

.projd-shot__more {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(6, 20, 38, 0.72);
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-size: clamp(22px, 3vw, 40px);
	font-weight: 800;
	color: #fff;
}

.projd-shot:focus-visible {
	outline: 3px solid var(--proj-blue-soft);
	outline-offset: 3px;
}

/* ----- Related ----- */

.projd-related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
}

.projd-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: clamp(18px, 3svh, 32px);
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-size: 14px;
	font-weight: 700;
	color: var(--proj-blue);
	transition: gap 0.24s var(--proj-ease);
}

.projd-more svg { width: 16px; height: 16px; }
.projd-more:hover { gap: 13px; }

.projd-more:focus-visible {
	outline: 3px solid var(--proj-blue-soft);
	outline-offset: 3px;
}

.projd-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(12px, 1.4vw, 22px);
}

.projd-related__grid .proj-tile__link { min-height: clamp(200px, 34svh, 340px); }

/* ----- Lightbox ----- */

body.projd-locked { overflow: hidden; }

.projd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: clamp(16px, 4vw, 48px);
}

.projd-lightbox[hidden] { display: none; }

.projd-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 12, 24, 0.93);
	cursor: zoom-out;
}

.projd-lightbox__stage {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: min(100%, 1180px);
}

.projd-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 76svh;
	width: auto;
	height: auto;
	background: #0b1b30;
}

.projd-lightbox__caption {
	margin: 0;
	max-width: 70ch;
	text-align: center;
	font-size: 13.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.8);
}

.projd-lightbox__count {
	margin: 0;
	font-family: var(--font-display, "Codec Pro", sans-serif);
	font-size: 13px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.62);
}

.projd-lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	transition: background 0.22s ease, border-color 0.22s ease;
}

.projd-lightbox__btn svg { width: 20px; height: 20px; }

.projd-lightbox__btn:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.5);
}

.projd-lightbox__btn:focus-visible {
	outline: 3px solid var(--proj-blue-soft);
	outline-offset: 3px;
}

.projd-lightbox__btn--close { top: -58px; right: 0; }
.projd-lightbox__btn--prev  { left: -62px; top: 50%; transform: translateY(-50%); }
.projd-lightbox__btn--next  { right: -62px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	/* Mosaic collapses to a two-up rhythm: the feature keeps the full width. */
	.proj-mosaic {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: clamp(180px, 30vw, 260px);
	}

	.proj-tile--w4h2,
	.proj-tile--w6h2 { grid-column: span 2; grid-row: span 2; }
	.proj-tile--w2h2 { grid-column: span 1; grid-row: span 2; }
	.proj-tile--w6 { grid-column: span 2; }
	.proj-tile--w2,
	.proj-tile--w3 { grid-column: span 1; }

	.projd-hero__brief {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 18px;
	}

	.projd-hero__brief-item:nth-child(4) {
		padding-left: 0;
		border-left: 0;
	}

	.projd-overview__body { grid-template-columns: minmax(0, 1fr); }

	.projd-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.projd-lightbox__btn--prev { left: 4px; }
	.projd-lightbox__btn--next { right: 4px; }
}

@media (max-width: 720px) {
	.proj-mosaic {
		grid-template-columns: 1fr;
		grid-auto-rows: clamp(200px, 52vw, 300px);
	}

	.proj-tile--w4h2 { grid-column: span 1; grid-row: span 2; }

	.proj-tile__facts { max-width: calc(100% - 36px); gap: 14px; }

	.projd-hero.acon-section {
		padding-top: calc(var(--acon-header-height, 80px) + 14px);
		padding-bottom: 28px;
	}

	.projd-hero__inner {
		transform: translateY(clamp(12px, 3svh, 28px));
	}

	.projd-crumb { margin-bottom: 14px; }

	.projd-hero__brief {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 16px;
		margin-top: 18px;
		padding-top: 16px;
	}

	.projd-hero__brief-item {
		padding: 0 12px;
	}

	.projd-hero__brief-item:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.projd-hero__brief-item:nth-child(4) {
		padding-left: 12px;
		border-left: 1px solid rgba(255, 255, 255, 0.2);
	}

	.projd-hero__brief dt { margin-bottom: 5px; }
	.projd-hero__brief dd { font-size: 14px; }

	/* The pager is off below 769px, so panels may grow past one viewport
	   rather than clipping their copy. */
	.acon-main--projd .acon-section {
		height: auto;
		min-height: 100svh;
		max-height: none;
	}

	.projd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.projd-shot { max-height: none; }

	.projd-related__grid { grid-template-columns: 1fr; }
	.projd-lightbox__btn--close { top: -52px; }
}

@media (hover: none) {
	.proj-tile__facts {
		max-height: 130px;
		margin-top: 12px;
		padding-top: 12px;
		border-color: rgba(255, 255, 255, 0.32);
		opacity: 1;
		transform: none;
	}
}



/* ==========================================================================
   SINGLE PROJECT — full-page pager, one section per viewport

   Every section is exactly one viewport tall so the pager in main.js can own
   the wheel. Sections not yet redesigned keep an internal scrollbar as a
   stopgap, so nothing becomes unreachable while the redesign lands one
   section at a time.
   ========================================================================== */
.acon-main--projd {
 --proj-shell: 1280px;
 --proj-ink-soft: #536980;
 overflow: clip;
}

.acon-main.acon-main--projd > .acon-section {
 height: 100svh;
 min-height: 100svh;
 max-height: 100svh;
 scroll-snap-align: start;
}

/* ----- 1 / Hero ----- */

/* Media and cue are absolute, so the inner shell is the only in-flow child:
   one row, stretched, and it runs its own three-band grid. */
.acon-main.acon-main--projd > .projd-hero {
 display: grid;
 grid-template-rows: 1fr;
 align-items: stretch;
 padding: 0;
 background: var(--acon-blue);
}

/* Photograph reaches the edges; the wash keeps the copy legible over any
    exposure without flattening the image to a slab of navy. */
.projd-hero__photo { inset: 0; transform: none; will-change: auto; }

.projd-hero__wash {
 background:
  linear-gradient(180deg, rgba(3, 20, 39, 0.62) 0%, rgba(3, 20, 39, 0.18) 26%, rgba(3, 20, 39, 0.42) 62%, rgba(3, 20, 39, 0.93) 100%),
  linear-gradient(96deg, rgba(3, 20, 39, 0.76) 0%, rgba(3, 20, 39, 0.34) 46%, rgba(3, 20, 39, 0) 78%);
}

/* The inner grid owns the three bands: breadcrumb, title block, brief. */
.projd-hero__inner {
 position: relative;
 z-index: 1;
 display: grid;
 grid-template-rows: auto minmax(0, 1fr) auto;
 gap: clamp(16px, 2.5svh, 30px);
 height: 100%;
 transform: none;
 padding:
  calc(var(--acon-header-height, 80px) + clamp(14px, 2.6svh, 30px))
  0
  clamp(20px, 3.4svh, 40px);
}

.projd-hero__top { align-self: start; }

/* Title block sits on the baseline of its band, so the headline always rests
    just above the brief strip regardless of how many lines it takes. */
.projd-hero__body {
 align-self: end;
 min-width: 0;
}

.projd-crumb { margin: 0; }

.projd-hero__eyebrow {
 margin: 0 0 clamp(8px, 1.4svh, 14px);
 font-size: 11.5px;
 letter-spacing: 0.2em;
 color: rgba(226, 237, 247, 0.82);
}

.projd-hero__title {
 max-width: 22ch;
 /* svh in the clamp keeps a long Vietnamese title inside a laptop viewport */
 font-size: clamp(30px, min(4.4vw, 7.4svh), 66px);
 line-height: 1.1;
 text-transform: none;
 letter-spacing: -0.025em;
 text-wrap: pretty;
 overflow-wrap: anywhere;
}

/* Status and the fast-scan facts, on one row */
.projd-hero__chips {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 10px;
 margin: clamp(14px, 2.4svh, 26px) 0 0;
}

.projd-status,
.projd-chip {
 display: inline-flex;
 align-items: center;
 gap: 9px;
 margin: 0;
 padding: 7px 14px;
 border-radius: 999px;
 font-size: 13px;
 font-weight: 600;
 line-height: 1.3;
 color: #fff;
}

.projd-status {
 background: rgba(255, 255, 255, 0.14);
 border: 1px solid rgba(255, 255, 255, 0.34);
}

.projd-status::before {
 content: "";
 width: 7px;
 height: 7px;
 border-radius: 50%;
 background: #fff;
}

/* Only a finished project earns the confident green dot */
.projd-status--hoan-thanh::before { background: #5fd39b; }
.projd-status--dang-thi-cong::before { background: var(--acon-gold, #d38c29); }
.projd-status--sap-trien-khai::before { background: rgba(255, 255, 255, 0.7); }

.projd-chip {
 background: transparent;
 border: 1px solid rgba(255, 255, 255, 0.24);
 color: rgba(255, 255, 255, 0.88);
}

/* Brief strip: hairline rule above, columns divided by thin verticals */
.projd-hero__brief {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
 align-self: end;
 gap: 0;
 margin: 0;
 padding: clamp(14px, 2.4svh, 26px) 0 0;
 border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.projd-hero__brief-item {
 min-width: 0;
 padding: 0 clamp(14px, 1.8vw, 28px);
 border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.projd-hero__brief-item:first-child {
 padding-left: 0;
 border-left: 0;
}

.projd-hero__brief dt {
 margin: 0 0 7px;
 font-size: 11px;
 font-weight: 700;
 letter-spacing: 0.12em;
 text-transform: uppercase;
 color: rgba(209, 223, 236, 0.82);
}

.projd-hero__brief dd {
 font-size: clamp(14px, 1.15vw, 17px);
 font-weight: 600;
 line-height: 1.4;
}

/* Scroll cue: a hairline that pulses down, anchored bottom-right so it never
    collides with the brief strip. */
.projd-hero__cue {
 position: absolute;
 right: var(--proj-gutter);
 bottom: clamp(18px, 3svh, 34px);
 z-index: 2;
 display: inline-flex;
 flex-direction: column;
 align-items: center;
 gap: 10px;
 color: rgba(255, 255, 255, 0.72);
 transition: color 0.24s ease;
}

.projd-hero__cue:hover { color: #fff; }

.projd-hero__cue-label {
 font-size: 10.5px;
 font-weight: 700;
 letter-spacing: 0.16em;
 text-transform: uppercase;
 writing-mode: vertical-rl;
}

.projd-hero__cue-line {
 position: relative;
 width: 1px;
 height: clamp(34px, 6svh, 56px);
 overflow: hidden;
 background: rgba(255, 255, 255, 0.24);
}

.projd-hero__cue-line::after {
 content: "";
 position: absolute;
 left: 0;
 top: 0;
 width: 1px;
 height: 45%;
 background: var(--acon-gold, #d38c29);
 animation: projd-cue 2.1s var(--proj-ease) infinite;
}

@keyframes projd-cue {
 0%   { transform: translateY(-100%); }
 60%  { transform: translateY(220%); }
 100% { transform: translateY(220%); }
}

/* ----- Section rail (replaces the old in-flow nav bar) ----- */

.projd-mobile-nav { display: none; }
.projd-rail {
 position: fixed;
 right: 30px;
 top: 50%;
 z-index: 90;
 display: grid;
 gap: 6px;
 width: 132px;
 transform: translateY(-50%);
}

.projd-rail__link {
 display: grid;
 grid-template-columns: 26px 1fr;
 align-items: center;
 gap: 10px;
 min-height: 32px;
 padding-left: 10px;
 border-left: 1px solid rgba(255, 255, 255, 0.2);
 color: rgba(255, 255, 255, 0.5);
 transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.projd-rail__num {
 font-family: var(--font-display, "Codec Pro", sans-serif);
 font-size: 12px;
 font-weight: 700;
}

.projd-rail__label {
 font-size: 10px;
 font-weight: 600;
 letter-spacing: 0.06em;
 opacity: 0;
 transform: translateX(-6px);
 transition: opacity 0.2s ease, transform 0.2s ease;
}

.projd-rail__link:hover { color: rgba(255, 255, 255, 0.85); }

.projd-rail__link.is-active {
 border-color: var(--acon-gold, #d38c29);
 color: #fff;
 transform: translateX(-8px);
}

.projd-rail__link.is-active .projd-rail__label {
 opacity: 1;
 transform: translateX(0);
}

/* On the white panels the rail needs dark ink to stay visible */
body[data-active-section="projd-overview"] .projd-rail__link,
body[data-active-section="projd-scale"] .projd-rail__link,
body[data-active-section="projd-related"] .projd-rail__link {
 border-left-color: rgba(11, 27, 48, 0.18);
 color: rgba(11, 27, 48, 0.5);
}

body[data-active-section="projd-overview"] .projd-rail__link:hover,
body[data-active-section="projd-scale"] .projd-rail__link:hover,
body[data-active-section="projd-related"] .projd-rail__link:hover {
 color: rgba(11, 27, 48, 0.8);
}

body[data-active-section="projd-overview"] .projd-rail__link.is-active,
body[data-active-section="projd-scale"] .projd-rail__link.is-active,
body[data-active-section="projd-related"] .projd-rail__link.is-active {
 border-left-color: var(--proj-blue, #195c90);
 color: var(--proj-ink, #0b1b30);
}
/* Panels: one viewport each, header band then a body that takes what is left */
.acon-main.acon-main--projd > .projd-panel {
 display: grid;
 align-items: stretch;
 padding: calc(var(--acon-header-height, 80px) + clamp(18px, 3.2svh, 40px)) 0 clamp(24px, 4.4svh, 52px);
 overflow: hidden;
}

/* Sections 3–5 are not redesigned yet, but the pager now clamps them to one
   viewport. Until each is rebuilt, let their shell scroll rather than have
   content clipped by the section's overflow:hidden. Section 2 opts out — it
   manages its own height below. */
.acon-main.acon-main--projd > .projd-panel:not(#tong-quan) > .projd-shell {
 max-height: 100%;
 overflow-y: auto;
 overscroll-behavior: contain;
}

/* Shared eyebrow for the light panels */
.projd-eyebrow {
 margin: 0 0 10px;
 font-family: var(--font-display, "Codec Pro", sans-serif);
 font-size: 11px;
 font-weight: 700;
 letter-spacing: 0.18em;
 text-transform: uppercase;
 color: var(--proj-blue, #195c90);
}

.projd-h2 {
 margin: 0;
 text-transform: none;
 line-height: 1.16;
 letter-spacing: -0.025em;
 text-wrap: pretty;
 font-size: clamp(26px, min(2.9vw, 5svh), 40px);
}

/* ----- 2 / Tổng quan ----- */

.projd-overview {
 display: grid;
 /* The base rule up the file lays this out in two columns. Here the shell is
    two stacked bands instead, so the column template has to be reset or the
    header and the body would sit side by side. */
 grid-template-columns: minmax(0, 1fr);
 grid-template-rows: auto minmax(0, 1fr);
 gap: clamp(20px, 3.4svh, 40px);
 /* Fill the bounded row so the prose scrolls inside the viewport. */
 align-items: stretch;
 height: 100%;
 min-height: 0;
}

.projd-overview__head {
 max-width: 42rem;
}

/* Copy left, specification card right. The card is given a firm measure so a
   long value cannot squeeze the prose into a gutter. */
.projd-overview__body {
 display: grid;
 grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
 gap: clamp(28px, 4.5vw, 76px);
 min-height: 0;
}

.projd-overview__copy {
 display: grid;
 grid-template-rows: auto minmax(0, 1fr) auto;
 min-height: 0;
}

/* The excerpt, set larger than the body copy so the section opens with a
    one-sentence answer to "what is this project". */
.projd-lead {
 margin: 0 0 clamp(14px, 2.2svh, 22px);
 max-width: 54ch;
 font-size: clamp(16px, min(1.35vw, 2.4svh), 20px);
 font-weight: 500;
 line-height: 1.55;
 color: var(--proj-ink, #0b1b30);
 text-wrap: pretty;
}

/* Editor copy is unbounded, so it scrolls inside its own box. */
.projd-prose-wrap {
 position: relative;
 min-height: 0;
}

.projd-prose {
 max-height: 100%;
 padding-right: 14px;
 overflow-y: auto;
 overscroll-behavior: contain;
 scrollbar-width: thin;
 scrollbar-color: rgba(11, 27, 48, 0.24) transparent;
 font-size: clamp(14.5px, min(1.05vw, 1.95svh), 16.5px);
 line-height: 1.8;
 overflow-wrap: anywhere;
}

.projd-prose::-webkit-scrollbar { width: 5px; }
.projd-prose::-webkit-scrollbar-track { background: transparent; }
.projd-prose::-webkit-scrollbar-thumb {
 border-radius: 3px;
 background: rgba(11, 27, 48, 0.22);
}

.projd-prose:focus-visible {
 outline: 2px solid var(--proj-blue, #195c90);
 outline-offset: 6px;
}

.projd-prose > :first-child { margin-top: 0; }
.projd-prose > :last-child { margin-bottom: 0; }
.projd-prose iframe, .projd-prose video { max-width: 100%; }
.projd-prose table { display: block; max-width: 100%; overflow-x: auto; }

.projd-prose.is-scrollable {
 cursor: url("../images/cursor-scroll.svg") 20 19, ns-resize;
}

.projd-prose.is-scrollable a { cursor: pointer; }

.projd-overview__copy .projd-more { margin-top: clamp(16px, 2.6svh, 26px); }

/* Specification card fills its column: title fixed, rows scroll when the
    project carries the full set of twelve fields. */
.projd-specs {
 display: grid;
 grid-template-rows: auto minmax(0, 1fr);
 align-content: start;
 min-height: 0;
 padding: clamp(20px, 2.2vw, 30px);
 border: 0;
 border-top: 2px solid var(--proj-blue, #195c90);
 background: #f0f5fa;
}

.projd-specs__title {
 margin: 0 0 6px;
 font-size: 11px;
 font-weight: 700;
 letter-spacing: 0.16em;
 text-transform: uppercase;
 color: var(--proj-blue, #195c90);
}

.projd-specs__list {
 min-height: 0;
 overflow-y: auto;
 overscroll-behavior: contain;
 scrollbar-width: thin;
 scrollbar-color: rgba(11, 27, 48, 0.24) transparent;
}

.projd-specs__list::-webkit-scrollbar { width: 5px; }
.projd-specs__list::-webkit-scrollbar-track { background: transparent; }
.projd-specs__list::-webkit-scrollbar-thumb {
 border-radius: 3px;
 background: rgba(11, 27, 48, 0.22);
}

.projd-specs__list:focus-visible {
 outline: 2px solid var(--proj-blue, #195c90);
 outline-offset: 4px;
}

.projd-specs__row {
 grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
 gap: 16px;
 padding: clamp(9px, 1.5svh, 14px) 0;
 border-top: 1px solid rgba(11, 27, 48, 0.12);
}

.projd-specs__row:first-child { border-top: 0; padding-top: 4px; }

.projd-specs__row dt {
 font-size: 12px;
 font-weight: 600;
 line-height: 1.45;
 color: var(--proj-ink-soft, #536980);
}

.projd-specs__row dd {
 font-size: 13.5px;
 font-weight: 600;
 line-height: 1.45;
 overflow-wrap: anywhere;
}
.projd-scale { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.projd-scale__text { font-size: clamp(18px, 1.8vw, 24px); }
.acon-main.acon-main--projd > .projd-panel--dark { background: var(--acon-blue); }
.projd-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.projd-shot { max-height: none; aspect-ratio: 4 / 3; }
.projd-shot:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 280px; }
.projd-shot:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; max-height: 680px; }
.projd-related__grid .proj-tile__link { min-height: 330px; }
.projd-lightbox:not([open]) { display: none; }
.projd-lightbox[open] {
 display: grid; width: 100vw; height: 100dvh; max-width: none; max-height: none;
 margin: 0; border: 0; background: transparent; color: #fff;
 padding: 78px 70px 50px;
}
.projd-lightbox::backdrop { background: rgba(4,12,24,.94); }
.projd-lightbox__stage { width: 100%; min-height: 160px; }
.projd-lightbox__img { max-height: calc(100dvh - 210px); object-fit: contain; }
.projd-lightbox__btn--close { top: -60px; }
.projd-lightbox__btn[hidden] { display: none; }
.projd-protected { min-height: 80svh; padding: 160px max(24px, 8vw) 80px; }
/* 769–900px is still pagered but too narrow for copy beside the spec card, so
   the two stack: copy takes the room that is left, the card sizes to content. */
@media (max-width: 900px) {
 .projd-overview__body {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(18px, 3svh, 30px);
 }

 /* Stacked, the card would otherwise eat the viewport with twelve rows */
 .projd-specs { max-height: 38svh; }

 .projd-scale { grid-template-columns: minmax(0,1fr); gap: 10px; }
 .projd-related__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Below the pager's own breakpoint (main.js runs it at 769px and up) the page
   is native scroll again, so the one-viewport clamp has to be released or the
   sections would clip their content with no way to reach it. */
@media (max-width: 768px) {
 .acon-main.acon-main--projd > .acon-section {
  height: auto;
  min-height: 100svh;
  max-height: none;
  scroll-snap-align: none;
  scroll-margin-top: calc(var(--acon-header-height, 80px) + 20px);
 }

 .acon-main.acon-main--projd > .projd-hero {
  min-height: 88svh;
 }

 .acon-main.acon-main--projd > .projd-panel {
  overflow: visible;
 }

 /* No internal scrollers once the document scrolls naturally: every region
    that clipped itself to fit a viewport opens back up to full height. */
 .acon-main.acon-main--projd > .projd-panel:not(#tong-quan) > .projd-shell {
  max-height: none;
  overflow-y: visible;
 }

 .projd-overview,
 .projd-overview__copy,
 .projd-specs {
  display: block;
  height: auto;
 }

 .projd-overview__body {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4svh, 36px);
 }

 .projd-overview__head { margin-bottom: clamp(18px, 3svh, 28px); }

 .projd-prose,
 .projd-specs__list {
  max-height: none;
  padding-right: 0;
  overflow-y: visible;
 }

 /* The fade only ever meant "there is more below the clip" */
 .projd-prose-wrap::after { display: none; }

 /* A fixed rail has nowhere to sit on a phone; the sections follow in order */
 .projd-rail { display: none; }

 .projd-hero__cue { display: none; }
}
@media (max-width: 600px) {
 .acon-main.acon-main--projd > .projd-hero { min-height: 80svh; padding-top: 130px; padding-bottom: 36px; }
 .projd-hero__title { font-size: clamp(32px, 9vw, 44px); }
 .projd-hero__brief { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 16px; }
 .projd-hero__brief-item:nth-child(4) { border: 0; padding: 0; }
 .projd-specs { padding: 22px; }
 .projd-specs__row { gap: 18px; }
 .projd-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .projd-shot:first-child { grid-column: span 2; grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }
 .projd-related__grid { grid-template-columns: minmax(0,1fr); }
 .projd-lightbox[open] { padding: 70px 14px 40px; }
}
.projd-gallery--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projd-gallery--compact .projd-shot:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; min-height: 0; }
.projd-gallery--compact .projd-shot:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
body.single-acon_project .site-footer { display: none; }
@media (max-width: 600px) {
 .projd-gallery--compact { grid-template-columns: minmax(0, 1fr); }
}
/* Bright, expanding four-photo project gallery. */
.acon-main.acon-main--projd > .projd-exhibition {
 height:100svh; min-height:100svh; max-height:100svh;
 padding:calc(var(--acon-header-height,80px) + 20px) 0 52px;
 overflow:hidden; background:#fff; color:#195c90;
}
.projd-exhibition .projd-exhibition__shell {height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:24px}
.projd-exhibition__head {display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:1px solid #dbe3e9;padding-bottom:18px}
.projd-exhibition__eyebrow {margin:0;color:#9b7944;font-size:10px;letter-spacing:.2em;order:2}
.projd-exhibition .projd-h2 {margin:0;font-size:clamp(24px,2.35vw,32px);text-transform:uppercase;color:#195c90}
.projd-exhibition .projd-gallery {display:block;position:relative;width:100%;height:100%;min-height:0;margin:0;overflow:hidden;background:transparent}
.projd-exhibition .swiper-wrapper {height:100%;align-items:stretch;transition-timing-function:cubic-bezier(.22,1,.36,1)}
.projd-exhibition .projd-shot {position:relative;inset:auto;display:block;flex-shrink:0;width:calc((100% - 54px)/4);height:100%;min-height:0;max-height:none;aspect-ratio:auto;border-radius:0;background:#f0f4f7;clip-path:polygon(0 0,100% 0,100% 100%,100% 100%,0 100%,0 0);transition:width 1.5s cubic-bezier(.22,1,.36,1),clip-path 1.5s cubic-bezier(.22,1,.36,1);overflow:hidden}
.projd-exhibition .projd-shot img {width:100%;height:100%;object-fit:cover;transform:none;transition:object-position .5s}
.projd-exhibition .projd-shot:hover img {transform:none}
.projd-exhibition .projd-shot::after {content:'↗';position:absolute;right:16px;bottom:16px;width:36px;height:36px;display:grid;place-items:center;background:#ffffffed;color:#195c90;border:1px solid #ffffff88}

.projd-exhibition .has-expanded .projd-shot.is-expanded {width:calc((100% - 54px)*.55);clip-path:polygon(24px 0,100% 0,100% calc(100% - 24px),calc(100% - 24px) 100%,0 100%,0 24px)}
.projd-exhibition .projd-shot.is-expanded img {object-fit:cover}
.projd-exhibition__controls {display:flex;align-items:center;justify-content:space-between;gap:24px}
.projd-exhibition__controls[hidden] {display:none}
.projd-exhibition__hint {margin:0;font-size:14px;color:#687885}
.projd-exhibition__navigation {display:flex;align-items:center;gap:12px;flex-shrink:0}
.projd-exhibition__navigation span {margin-right:14px;font-size:12px;letter-spacing:.12em;font-variant-numeric:tabular-nums;color:#687885}
.projd-exhibition__navigation button {width:46px;height:46px;border:1px solid #195c90;background:white;color:#195c90;font-size:22px;cursor:pointer}
.projd-exhibition__navigation button:hover {background:#195c90;color:white}
.projd-exhibition__navigation .swiper-button-disabled {opacity:.3;cursor:default}
.projd-exhibition__navigation .swiper-button-lock {display:block;opacity:.3}
.projd-exhibition a:focus-visible,.projd-exhibition button:focus-visible {outline:2px solid #c79945;outline-offset:-3px}
body[data-active-section="projd-gallery"] .projd-rail__link {color:#195c90}
@media(max-width:900px){
 .projd-exhibition .projd-shot {width:calc((100% - 18px)/2)}
}
@media(max-width:600px){
 .acon-main.acon-main--projd > .projd-exhibition {padding-top:calc(var(--acon-header-height,72px) + 16px);padding-bottom:36px}
 .projd-exhibition .projd-exhibition__shell {gap:16px}
 .projd-exhibition__head {display:block;padding-bottom:14px}
 .projd-exhibition__eyebrow {display:none}
 .projd-exhibition .projd-shot {width:86%}
 .projd-exhibition__hint {display:none}
 .projd-exhibition__navigation {width:100%;justify-content:flex-end}
 .projd-exhibition__navigation span {margin-right:auto}
}
@media(prefers-reduced-motion:reduce){.projd-exhibition .projd-shot {transition:none}}

.projd-exhibition .has-expanded .projd-shot.is-compressed {width:calc((100% - 54px)*.15)}

/* Project overview: reveal the location map from the specification edge. */
.projd-overview__body { position: relative; }
.projd-map {
 position: absolute; inset: 0; z-index: 5; display: grid;
 grid-template-rows: auto minmax(0, 1fr) auto; background: #f0f5fa;
 border-top: 2px solid #195c90;
 clip-path: inset(0 0 0 100%); visibility: hidden;
 transition: clip-path .8s cubic-bezier(.22,1,.36,1), visibility 0s .8s;
}
.projd-map__head { display: flex; justify-content: space-between; gap: 16px; padding: 18px 24px; color: #195c90; }
.projd-map__head span { font-size: 13px; }
.projd-map iframe { width: 100%; height: 100%; min-height: 0; border: 0; }
.projd-map > a { padding: 14px 24px; color: #195c90; font-size: 13px; font-weight: 600; }
.projd-map-toggle {
 position: absolute; z-index: 6; left: var(--map-handle-x, 65%); top: var(--map-handle-y, 50%);
 transform: translate(-50%, -50%); width: 42px; height: 64px;
 display: grid; place-items: center; padding: 0; border: 1px solid #c3d5e4;
 border-radius: 22px; background: #fff; color: #195c90; cursor: ew-resize;
 box-shadow: 0 4px 18px #195c9018; touch-action: pan-y;
 transition: left .8s cubic-bezier(.22,1,.36,1), top .8s cubic-bezier(.22,1,.36,1), background .2s;
}
.projd-map-toggle[hidden] { display: none; }
.projd-map-toggle__label { display: none; }
.projd-map-toggle svg { width: 22px; height: 22px; transition: transform .5s; }
.projd-map-toggle:hover { background: #e9f2f9; }
.projd-map-toggle:focus-visible { outline: 3px solid #d38c29; outline-offset: 3px; }
.is-map-open > .projd-map { clip-path: inset(0); visibility: visible; transition-delay: 0s; }
.is-map-open > .projd-map-toggle { left: 0; top: 50%; }
.is-map-open > .projd-map-toggle svg { transform: rotate(180deg); }
@media (max-width: 900px) {
 .projd-map { max-height: 70svh; top: auto; height: 520px; }
 .projd-map-toggle { left: 0; width: 36px; height: 56px; }
 .is-map-open > .projd-map-toggle { top: auto; bottom: min(30svh, 220px); }
}
@media (prefers-reduced-motion: reduce) {
 .projd-map, .projd-map-toggle, .projd-map-toggle svg { transition: none; }
}

/* Six related projects: two balanced rows within the desktop viewport. */
@media (min-width: 769px) {
 .acon-main.acon-main--projd > [data-section="projd-related"] > .projd-shell {
  display: grid; grid-template-rows: auto minmax(0,1fr); gap: 20px;
  height: 100%; min-height: 0; overflow: visible;
 }
 .projd-related__head .projd-more { margin-bottom: 0; }
 .projd-related__grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); min-height: 0; }
 .projd-related__grid .proj-tile { min-height: 0; }
 .projd-related__grid .proj-tile__link { height: 100%; min-height: 0; }
 .projd-related__grid .proj-tile__body { padding: clamp(14px,2svh,26px); }
 .projd-related__grid .proj-tile__title { font-size: clamp(17px,1.45vw,25px); }
}
@media (min-width: 769px) and (max-height: 700px) {
 .projd-related__grid .proj-tile__facts { display: none; }
}
