/**
 * ARCO Projects
 * Typography and rhythm follow the existing ARCO design system:
 * FreightText Pro for editorial text, Helvetica for data, ink #2b2e34.
 *
 * Several rules below carry a deliberately raised specificity: Elementor ships
 * `.elementor img { height: auto }`, which ties with a single-class selector
 * and wins on source order.
 */

.arco-projects,
.arco-single {
	--arco-ink: #2b2e34;
	--arco-rule: #000;
	--arco-serif: FreightTextProBook-Regular, "FreightText Pro", "Freight Text Pro", Georgia, serif;
	--arco-serif-italic: FreightTextProBook-Italic, "FreightText Pro", "Freight Text Pro", Georgia, serif;
	--arco-sans: Helvetica, Arial, sans-serif;
	--arco-gutter: clamp(20px, 4vw, 80px);
	--arco-max: 1565px;

	color: var(--arco-ink);
	box-sizing: border-box;
}

.arco-projects *,
.arco-single * {
	box-sizing: border-box;
}

.arco-projects__heading {
	font-family: "Be Vietnam Pro", var(--arco-sans);
	font-size: 15px;
	font-weight: 400;
	color: var(--arco-ink);
	margin: 0 auto clamp(18px, 2.4vw, 34px);
	padding: 0 var(--arco-gutter);
	max-width: var(--arco-max);
}

/* ---------------------------------------------------------------------------
   Index — hover table
   --------------------------------------------------------------------------- */

.arco-project-hover-outer {
	width: 100%;
	padding-left: var(--arco-gutter);
	padding-right: var(--arco-gutter);
	margin: 0 auto;
	overflow: hidden;
}

.arco-project-hover-section {
	width: 100%;
	max-width: var(--arco-max);
	display: grid;
	grid-template-columns: minmax(0, 1230px) clamp(180px, 18.85vw, 295px);
	gap: clamp(24px, 3vw, 40px);
	justify-content: center;
	align-items: start;
	margin: 0 auto;
}

.arco-project-table {
	width: 100%;
	min-width: 0;
	border-top: 1px solid var(--arco-rule);
}

.arco-project-row {
	display: grid;
	/* Rebalanced from the original 25.36/25.36/34.95/14.33: real project names
	   ("81 Lower Heidelberg Road") and product strings ("2 Retail, 2 Apartments,
	   6 Townhouses") were both being truncated at those widths. */
	grid-template-columns: 31% 23% 33% 13%;
	align-items: center;
	min-height: clamp(50px, 4.2vw, 65px);
	border-bottom: 1px solid var(--arco-rule);
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.25s ease;
}

.arco-project-name,
.arco-project-location {
	font-family: var(--arco-serif);
	font-size: clamp(16px, 1.85vw, 29px);
	line-height: 1;
	color: var(--arco-ink);
	letter-spacing: 0.005em;
	font-weight: 400;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.arco-project-location {
	font-family: var(--arco-serif-italic);
	font-style: italic;
}

.arco-project-type {
	font-family: var(--arco-sans);
	/* Slightly tighter than the name column so long product strings such as
	   "2 Retail, 2 Apartments, 6 Townhouses" fit without ellipsis. */
	font-size: clamp(13px, 1.33vw, 21px);
	line-height: 1;
	color: var(--arco-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.arco-project-year {
	font-family: var(--arco-sans);
	font-size: clamp(12px, 1.2vw, 19px);
	line-height: 1;
	color: var(--arco-ink);
	letter-spacing: 0.045em;
	text-align: right;
	white-space: nowrap;
}

.arco-hover-image-area {
	width: 100%;
	max-width: 295px;
	aspect-ratio: 295 / 346;
	position: sticky;
	top: clamp(80px, 12vh, 160px);
	justify-self: end;
}

.arco-projects .arco-hover-image-area .arco-hover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
	.arco-project-row:hover {
		opacity: 0.75;
	}

	.arco-projects .arco-hover-image-area .arco-hover-img.is-active {
		opacity: 1;
		visibility: visible;
	}
}

.arco-project-row:focus-visible {
	outline: 1px solid var(--arco-ink);
	outline-offset: -1px;
}

/* ---------------------------------------------------------------------------
   Index — image cards
   --------------------------------------------------------------------------- */

.arco-project-cards {
	display: grid;
	grid-template-columns: repeat(var(--arco-card-columns, 2), minmax(0, 1fr));
	gap: clamp(24px, 3.4vw, 56px);
	max-width: var(--arco-max);
	margin: 0 auto;
	padding: 0 var(--arco-gutter);
}

.arco-project-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--arco-ink);
}

.arco-project-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f1f1ec;
}

.arco-projects .arco-project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
	.arco-project-card:hover .arco-project-card__media img {
		transform: scale(1.035);
	}
}

.arco-project-card__note {
	font-family: var(--arco-serif-italic);
	font-style: italic;
	font-size: 18px;
	line-height: 22px;
	letter-spacing: 0.005em;
	margin-top: clamp(12px, 1.4vw, 20px);
}

.arco-project-card__title {
	font-family: var(--arco-serif);
	font-size: clamp(18px, 1.6vw, 25px);
	line-height: 1.2;
	letter-spacing: 0.005em;
	margin-top: 4px;
}

/* Trailing "view all" link under an index section. */
.arco-projects__more {
	max-width: var(--arco-max);
	margin: clamp(24px, 3vw, 48px) auto 0;
	padding: 0 var(--arco-gutter);
}

.arco-projects .arco-view-listing {
	margin-top: 0;
}

/* ---------------------------------------------------------------------------
   Single project
   --------------------------------------------------------------------------- */

.arco-single {
	--arco-single-gutter: clamp(20px, 6.95vw, 100px);
	--arco-single-max: 1440px;
	--arco-rhythm: clamp(56px, 27.8vw, 400px);

	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	overflow-x: clip;
}

.arco-single__inner {
	max-width: var(--arco-single-max);
	margin: 0 auto;
	padding: 0 var(--arco-single-gutter);
}

/* Full-bleed hero. The site header is transparent and overlays it. */
.arco-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	height: 100vh;
	min-height: 480px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.arco-hero__scroll {
	position: absolute;
	right: clamp(20px, 3vw, 44px);
	bottom: clamp(24px, 3vw, 48px);
	width: 26px;
	height: 26px;
	border-right: 1.5px solid #fff;
	border-bottom: 1.5px solid #fff;
	transform: rotate(45deg);
	opacity: 0.9;
	animation: arco-nudge 2.4s ease-in-out infinite;
}

@keyframes arco-nudge {
	0%,
	100% {
		transform: rotate(45deg) translate(0, 0);
	}
	50% {
		transform: rotate(45deg) translate(5px, 5px);
	}
}

.arco-single__head {
	padding-top: clamp(56px, 7vw, 100px);
}

.arco-single__back {
	display: inline-block;
	font-family: var(--arco-sans);
	font-size: 13px;
	letter-spacing: 0.045em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--arco-ink);
	margin-bottom: clamp(20px, 2.6vw, 40px);
}

.arco-single__back:hover {
	opacity: 0.7;
}

.arco-single__title {
	font-family: var(--arco-serif);
	font-size: clamp(34px, 4.6vw, 66px);
	line-height: 1.05;
	letter-spacing: 0.005em;
	font-weight: 400;
	color: var(--arco-ink);
	margin: 0;
}

.arco-single__suburb {
	font-family: var(--arco-serif-italic);
	font-style: italic;
	font-size: clamp(19px, 2.1vw, 31px);
	line-height: 1.2;
	letter-spacing: 0.005em;
	margin: 4px 0 0;
	color: var(--arco-ink);
}

/* Facts + description, matching the reference column geometry. */
.arco-single__intro {
	display: grid;
	grid-template-columns: 40.4% 59.6%;
	margin-top: clamp(40px, 5vw, 76px);
	align-items: start;
}

.arco-single__facts {
	display: grid;
	grid-template-columns: 154fr 468fr;
	margin: 0;
	padding-right: clamp(16px, 2vw, 40px);
	row-gap: 0;
}

.arco-fact__label,
.arco-fact__value {
	font-size: clamp(15px, 1.43vw, 22px);
	line-height: clamp(28px, 2.58vw, 40px);
	letter-spacing: 0.005em;
	color: var(--arco-ink);
	margin: 0;
}

.arco-fact__label {
	font-family: var(--arco-serif-italic);
	font-style: italic;
}

.arco-fact__value {
	font-family: var(--arco-serif);
}

.arco-single__description,
.arco-single__description p {
	font-family: var(--arco-serif);
	font-size: clamp(17px, 1.89vw, 29px);
	line-height: 1.172;
	letter-spacing: 0.005em;
	color: var(--arco-ink);
}

.arco-single__description p {
	margin: 0 0 1.172em;
}

.arco-single__description p:last-child {
	margin-bottom: 0;
}

/* VIEW LISTING, with the underline that draws in on hover. */
.arco-view-listing {
	display: inline-block;
	position: relative;
	margin-top: clamp(28px, 3.4vw, 54px);
	text-decoration: none;
	color: var(--arco-ink);
}

.arco-view-listing__text {
	font-family: var(--arco-sans);
	font-size: 13px;
	letter-spacing: 0.045em;
	color: var(--arco-ink);
}

.arco-view-listing__underline {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 1px;
	background: var(--arco-ink);
	transform: scaleX(0);
	transform-origin: left center;
	opacity: 0;
	transition: transform 0.35s ease-in-out, opacity 0.35s ease-in-out;
}

.arco-view-listing:hover .arco-view-listing__underline,
.arco-view-listing:focus-visible .arco-view-listing__underline {
	transform: scaleX(1);
	opacity: 1;
}

/* Gallery: centred frames of varying width, punctuated by a full-bleed one. */
.arco-single__gallery {
	max-width: var(--arco-single-max);
	margin: var(--arco-rhythm) auto 0;
	padding: 0 var(--arco-single-gutter);
	display: flex;
	flex-direction: column;
	gap: var(--arco-rhythm);
}

.arco-frame {
	width: 100%;
	margin-inline: auto;
}

.arco-frame--narrow {
	width: 64.52%;
}

.arco-frame--wide {
	width: 67.74%;
}

.arco-frame--pair {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.61%;
}

.arco-frame--bleed {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: 0;
}

.arco-figure {
	margin: 0;
	overflow: hidden;
	background: #f1f1ec;
}

.arco-single .arco-figure img {
	display: block;
	width: 100%;
	height: auto;
}

.arco-single .arco-frame--pair .arco-figure {
	aspect-ratio: 610 / 719;
}

.arco-single .arco-frame--pair .arco-figure img {
	height: 100%;
	object-fit: cover;
}

/* Next project */
.arco-single__next {
	margin-top: clamp(48px, 7vw, 100px);
	padding-bottom: clamp(60px, 8vw, 120px);
}

.arco-rule {
	border: 0;
	border-top: 1px solid var(--arco-rule);
	margin: 0 0 clamp(20px, 2.4vw, 36px);
}

.arco-next-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(10px, 1.2vw, 20px);
	text-decoration: none;
	color: var(--arco-ink);
}

.arco-next-link__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.arco-next-link__label {
	font-family: var(--arco-sans);
	font-size: 13px;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.arco-next-link__name {
	font-family: var(--arco-serif);
	font-size: clamp(24px, 3vw, 46px);
	line-height: 1.1;
	letter-spacing: 0.005em;
}

.arco-next-link__arrow {
	font-size: clamp(22px, 2.6vw, 38px);
	line-height: 1;
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.arco-next-link:hover .arco-next-link__arrow {
	transform: translateX(12px);
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.arco-project-hover-section {
		grid-template-columns: minmax(0, 1fr) clamp(150px, 20vw, 220px);
		gap: 24px;
	}

	.arco-project-name,
	.arco-project-location {
		font-size: clamp(15px, 1.9vw, 23px);
	}

	.arco-project-type {
		font-size: clamp(12px, 1.5vw, 18px);
	}

	.arco-project-year {
		font-size: clamp(11px, 1.3vw, 15px);
	}
}

@media (max-width: 900px) {
	.arco-single__intro {
		grid-template-columns: 1fr;
		gap: clamp(32px, 5vw, 56px);
	}

	.arco-single__facts {
		padding-right: 0;
		grid-template-columns: minmax(110px, 32%) 1fr;
	}

	.arco-frame--narrow,
	.arco-frame--wide {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.arco-project-hover-outer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.arco-project-hover-section {
		display: block;
	}

	.arco-hover-image-area {
		display: none;
	}

	.arco-project-row {
		grid-template-columns: 1fr;
		min-height: auto;
		padding: 18px 0;
		gap: 7px;
		cursor: default;
	}

	.arco-project-row:hover {
		opacity: 1;
	}

	.arco-project-name,
	.arco-project-location {
		font-size: clamp(22px, 7vw, 27px);
		line-height: 1.1;
		white-space: normal;
	}

	.arco-project-type {
		font-size: clamp(16px, 4.5vw, 18px);
		line-height: 1.2;
		white-space: normal;
	}

	.arco-project-year {
		font-size: 15px;
		line-height: 1.2;
		text-align: left;
		white-space: normal;
	}

	.arco-project-cards {
		grid-template-columns: 1fr;
		padding: 0 20px;
	}

	.arco-hero {
		height: 72vh;
	}

	.arco-frame--pair {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.arco-single .arco-frame--pair .arco-figure {
		aspect-ratio: auto;
	}

	.arco-single .arco-frame--pair .arco-figure img {
		height: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.arco-projects *,
	.arco-single * {
		transition-duration: 0.01ms !important;
		animation: none !important;
	}
}
