/*
 * Teras Rumah Studio
 *
 * Direction: simple, elegant, cold, flat, monochrome. The system borrows from
 * three references and one brand:
 *
 * - Lumbung Architect: white pages, a light and heavy weight pairing, numbered
 *   labels, flat grids with no shadows and no rounded corners.
 * - DDAP: a full-bleed hero with the project name in light tracked capitals,
 *   thin vertical separators, and a portfolio grid in monochrome.
 * - Studio Tanama: selected projects shown as large, quiet photographs with
 *   only a name beneath.
 * - The TRS guideline: Malam and Putih lead, Batu for supporting text, Tipis
 *   for rules. The vertical line of the logo, the teras, is the single motif
 *   repeated across labels, separators, the hero and the call to action.
 *
 * Deliberately absent: shadows, gradients as decoration, rounded corners,
 * colour outside the palette, and the Tanah accent. Warmth comes from the
 * photographs, as the guideline asks.
 *
 * Contents
 *   1. Tokens
 *   2. Base
 *   3. Layout
 *   4. Type and labels
 *   5. Buttons and links
 *   6. Header, bar and menu
 *   7. Hero
 *   8. Home sections
 *   9. Portfolio
 *  10. Project
 *  11. Studio and services
 *  12. Contact and form
 *  13. Footer
 *  14. Utilities and motion
 */

/* 1. Tokens ================================================================ */

:root {
	/* Brand palette (guideline section 03). */
	--malam: #1a1918;
	--putih: #ffffff;
	--kapur: #f4f1ed;
	--batu: #868178;
	--tipis: #ddd7cf;

	/*
	 * Batu measures 3.87:1 on white, below the 4.5:1 WCAG AA needs for text.
	 * The same hue, darkened, is used wherever Batu would carry words. The
	 * lighter one does the same job on Malam.
	 */
	--batu-text: #6b6760;       /* 5.62:1 on white, 4.99:1 on Kapur */
	--batu-on-dark: #aaa7a0;    /* 7.31:1 on Malam */

	/* Roles. Dark sections redefine these, so components never branch. */
	--bg: var(--putih);
	--fg: var(--malam);
	--muted: var(--batu-text);
	--line: var(--tipis);
	--tint: var(--kapur);

	/* Type. */
	--font-sans: 'DM Sans', 'DM Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

	--step-label: 0.8125rem;                                  /* 13px */
	--step-small: 0.875rem;                                   /* 14px */
	--step-body: 1.0625rem;                                   /* 17px */
	--step-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
	--step-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
	--step-heading: clamp(1.625rem, 1.2rem + 1.5vw, 2.5rem);
	--step-display: clamp(2rem, 1.25rem + 2.8vw, 3.5rem);
	--step-title: clamp(2.5rem, 1.5rem + 3.8vw, 4.75rem);
	--step-hero: clamp(1.875rem, 0.9rem + 4.2vw, 4.75rem);

	--track-caps: 0.16em;
	--track-wide: 0.24em;

	/* Space. One scale, used everywhere. */
	--space-1: 0.5rem;    /* 8 */
	--space-2: 1rem;      /* 16 */
	--space-3: 1.5rem;    /* 24 */
	--space-4: 2.5rem;    /* 40 */
	--space-5: 4rem;      /* 64 */
	--space-6: 6rem;      /* 96 */
	--section: clamp(5rem, 3rem + 7vw, 10rem);
	--gutter: clamp(1.25rem, 0.6rem + 3.2vw, 3.5rem);
	--grid-gap: clamp(1rem, 0.5rem + 1.6vw, 2.5rem);
	--seam: 8px;          /* the white gap between photographs */
	--container: 90rem;   /* 1440 */

	--lockup: 240px;      /* guideline minimum for the horizontal lockup */
	--mark: 40px;         /* guideline minimum for the logogram */
	--bar: 4rem;

	--ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* 2. Base ================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--bar) + var(--space-3));
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: var(--step-body);
	font-weight: 400;
	line-height: 1.7;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body.is-menu-open {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

address {
	font-style: normal;
}

::selection {
	background: var(--malam);
	color: var(--putih);
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.trs-main:focus {
	outline: none;
}

[hidden] {
	display: none !important;
}

/* 3. Layout ================================================================ */

.trs-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/*
 * The split: a narrow column for the label, a wide column for the content.
 * Every section uses it, so labels and headings line up down the whole page.
 */
.trs-split {
	display: grid;
	gap: var(--space-3);
}

@media (min-width: 900px) {
	.trs-split {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--grid-gap);
	}

	.trs-split__aside {
		grid-column: 1 / span 3;
		padding-top: 0.5rem;
	}

	.trs-split__main {
		grid-column: 5 / span 8;
	}
}

.trs-section {
	padding-block: var(--section);
}

/* Two light sections in a row share one gap rather than stacking two. */
.trs-section:not(.trs-dark) + .trs-section:not(.trs-dark) {
	padding-top: 0;
}

.trs-section--tight {
	padding-block: var(--space-5) var(--section);
}

.trs-section__head {
	margin-bottom: var(--space-4);
}

.trs-section__more {
	margin-top: var(--space-5);
}

.trs-dark {
	--bg: var(--malam);
	--fg: var(--putih);
	--muted: var(--batu-on-dark);
	--line: rgba(255, 255, 255, 0.18);
	background: var(--bg);
	color: var(--fg);
}

.trs-dark ::selection {
	background: var(--putih);
	color: var(--malam);
}

/* 4. Type and labels ======================================================= */

.trs-title {
	font-size: var(--step-title);
	font-weight: 300;
	line-height: 1.04;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.trs-display {
	font-size: var(--step-display);
	font-weight: 300;
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.trs-heading {
	font-size: var(--step-heading);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.trs-lead {
	font-size: var(--step-lead);
	line-height: 1.65;
	color: var(--muted);
	max-width: 42rem;
	text-wrap: pretty;
}

.trs-display + .trs-lead,
.trs-heading + .trs-lead,
.trs-title + .trs-lead {
	margin-top: var(--space-3);
}

.trs-lead + p {
	margin-top: var(--space-4);
}

/* A label: number, the threshold line, a word. */
.trs-label {
	display: inline-flex;
	align-items: center;
	gap: 0.875rem;
	font-size: var(--step-label);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	color: var(--muted);
}

.trs-label__num {
	display: inline-flex;
	align-items: center;
	gap: 0.875rem;
	color: var(--fg);
	font-variant-numeric: tabular-nums;
}

.trs-label__num::after {
	content: "";
	width: 1px;
	height: 1.1em;
	background: var(--muted);
}

.trs-label__back {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
}

.trs-label__back .trs-icon {
	width: 1.125rem;
	height: 1.125rem;
	transition: transform 0.3s var(--ease);
}

.trs-label__back:hover .trs-icon {
	transform: translateX(-4px);
}

.trs-label__back:hover .trs-label__text {
	color: var(--fg);
}

/* A meta line: parts divided by short vertical rules. */
.trs-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	line-height: 1.5;
}

.trs-meta__sep {
	width: 1px;
	height: 0.9em;
	background: currentColor;
	opacity: 0.6;
}

.trs-prose {
	font-size: 1.125rem;
	line-height: 1.8;
	max-width: 42rem;
}

.trs-prose > * + * {
	margin-top: 1.25em;
}

.trs-prose h2,
.trs-prose h3 {
	font-weight: 500;
	line-height: 1.3;
	margin-top: 2em;
}

.trs-prose h2 {
	font-size: 1.5rem;
}

.trs-prose h3 {
	font-size: 1.25rem;
}

.trs-prose ul,
.trs-prose ol {
	padding-left: 1.25em;
	list-style: revert;
}

.trs-prose a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.trs-empty {
	color: var(--muted);
	padding-block: var(--space-5);
}

/* 5. Buttons and links ===================================================== */

.trs-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 3.25rem;
	padding: 0.5rem 1.75rem;
	border: 1px solid var(--fg);
	background: transparent;
	color: var(--fg);
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	line-height: 1.2;
	text-transform: uppercase;
	text-align: center;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.trs-button:hover {
	background: var(--fg);
	color: var(--bg);
}

.trs-button--solid {
	background: var(--fg);
	color: var(--bg);
}

.trs-button--solid:hover {
	background: transparent;
	color: var(--fg);
}

.trs-button:disabled {
	opacity: 0.6;
	cursor: progress;
}

.trs-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: var(--space-4);
}

.trs-link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
	transition: text-decoration-color 0.2s var(--ease);
}

.trs-link:hover {
	text-decoration-color: transparent;
}

.trs-link--arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding-bottom: 0.375rem;
	border-bottom: 1px solid currentColor;
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	text-decoration: none;
}

.trs-link--arrow .trs-icon {
	width: 1.125rem;
	height: 1.125rem;
	transition: transform 0.3s var(--ease);
}

.trs-link--arrow:hover .trs-icon {
	transform: translateX(4px);
}

.trs-icon {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
}

/* 6. Header, bar and menu ================================================== */

.trs-skip {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 200;
	padding: 0.75rem 1.25rem;
	background: var(--malam);
	color: var(--putih);
	font-size: var(--step-small);
	transform: translateY(-120%);
}

.trs-skip:focus {
	transform: none;
}

.trs-masthead {
	position: relative;
	z-index: 30;
	color: var(--fg);
}

.trs-masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	max-width: var(--container);
	margin-inline: auto;
	padding: clamp(1.25rem, 0.8rem + 1.4vw, 2.25rem) var(--gutter);
}

.trs-lockup {
	width: var(--lockup);
	height: auto;
}

.trs-masthead__logo {
	flex: none;
	display: block;
}

/*
 * On a photograph the header turns white. A soft wash behind it keeps the logo
 * and links legible on bright skies without drawing a visible band.
 */
/*
 * Shown only while sample photographs are published. Fixed height, so the
 * header over a photograph can sit exactly below it.
 */
.trs-demo-notice {
	--demo-h: 3.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--demo-h);
	padding-inline: var(--gutter);
	background: var(--kapur);
	color: var(--malam);
	font-size: 0.75rem;
	line-height: 1.35;
	text-align: center;
	overflow: hidden;
}

.trs-demo-notice p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.trs-demo-notice a {
	margin-inline-start: 0.25rem;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	white-space: nowrap;
}

.has-demo-notice.has-hero .trs-masthead {
	top: 3.25rem;
}

@media (min-width: 900px) {
	.trs-demo-notice {
		--demo-h: 2.5rem;
		font-size: var(--step-label);
	}

	.has-demo-notice.has-hero .trs-masthead {
		top: 2.5rem;
	}
}

.has-hero .trs-masthead {
	position: absolute;
	inset: 0 0 auto;
	color: var(--putih);
	background: linear-gradient(to bottom, rgba(26, 25, 24, 0.5), rgba(26, 25, 24, 0));
	padding-bottom: var(--space-5);
}

.trs-nav {
	display: flex;
	align-items: center;
	gap: var(--space-4);
}

.trs-nav__list,
.trs-lang,
.trs-filter__list,
.trs-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

/* DDAP's separators, read here as thresholds between rooms. */
.trs-nav__list > li,
.trs-filter__list > li {
	border-inline-start: 1px solid currentColor;
	line-height: 1;
}

.trs-nav__list > li:last-child,
.trs-filter__list > li:last-child {
	border-inline-end: 1px solid currentColor;
}

.trs-nav__list a {
	display: block;
	padding: 0.25rem 1.125rem;
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
}

.trs-nav__list a:hover .trs-nav__text,
.trs-nav__list a[aria-current] .trs-nav__text {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.6em;
}

.trs-lang {
	gap: 0.25rem;
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
}

.trs-lang li + li::before {
	content: "/";
	margin-inline-end: 0.25rem;
	opacity: 0.5;
}

.trs-lang a {
	display: inline-block;
	padding: 0.25rem 0.125rem;
	opacity: 0.62;
}

.trs-lang a[aria-current],
.trs-lang a:hover {
	opacity: 1;
}

.trs-lang a[aria-current] {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.6em;
}

.trs-menu-toggle {
	display: none;
	align-items: center;
	gap: 0.75rem;
	min-height: 2.75rem;
	padding-inline: 0.25rem;
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
}

.trs-menu-toggle__icon {
	position: relative;
	width: 1.5rem;
	height: 0.5rem;
	border-block: 1px solid currentColor;
}

@media (max-width: 1023.98px) {
	.js .trs-nav {
		display: none;
	}

	.js .trs-menu-toggle {
		display: inline-flex;
	}

	/* Without scripting the links stay visible on their own row. */
	html:not(.js) .trs-masthead__inner {
		flex-wrap: wrap;
	}

	html:not(.js) .trs-masthead .trs-nav {
		flex-basis: 100%;
		flex-wrap: wrap;
		justify-content: space-between;
		row-gap: var(--space-2);
	}

	.trs-lang {
		flex-wrap: nowrap;
	}
}

/* The compact bar, shown once the masthead has scrolled out of view. */
.trs-bar {
	position: fixed;
	inset: 0 0 auto;
	z-index: 60;
	height: var(--bar);
	background: var(--putih);
	color: var(--malam);
	border-bottom: 1px solid var(--tipis);
	transform: translateY(-101%);
	visibility: hidden;
	transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
}

.trs-bar.is-visible {
	transform: none;
	visibility: visible;
	transition: transform 0.4s var(--ease), visibility 0s;
}

.trs-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	height: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.trs-bar__logo {
	display: block;
}

.trs-logogram {
	height: var(--mark);
	width: auto;
}

.trs-nav--bar .trs-nav__list a {
	padding-block: 0.125rem;
}

/* Full-screen menu for small screens. */
.trs-menu {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
	padding: clamp(1.25rem, 0.8rem + 1.4vw, 2.25rem) var(--gutter) var(--space-4);
	background: var(--putih);
	color: var(--malam);
	overflow-y: auto;
}

.trs-menu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}

.trs-menu__close {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
}

.trs-menu__list {
	display: grid;
	gap: 0.25rem;
}

.trs-menu__list a {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding-block: 0.375rem;
	font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem);
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.trs-menu__list a[aria-current] .trs-nav__text {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.trs-nav__num {
	min-width: 1.75rem;
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	color: var(--batu-text);
	font-variant-numeric: tabular-nums;
}

.trs-menu__foot {
	display: grid;
	gap: var(--space-2);
	margin-top: auto;
	padding-top: var(--space-3);
	border-top: 1px solid var(--tipis);
}

.trs-menu__descriptor {
	font-size: var(--step-small);
	color: var(--batu-text);
}

/* 7. Hero ================================================================== */

.trs-hero {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 34rem;
	background: var(--malam);
	color: var(--putih);
	overflow: hidden;
}

.trs-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.4s var(--ease), visibility 0s linear 1.4s;
}

/*
 * Slides that are neither showing nor about to show are not rendered at all,
 * so their photographs are not downloaded until the script asks for them.
 */
.js .trs-hero__slide:not(.is-active):not(.is-next) {
	display: none;
}

.trs-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 1.4s var(--ease), visibility 0s;
	z-index: 1;
}

.trs-hero__media,
.trs-hero__media img {
	width: 100%;
	height: 100%;
}

.trs-hero__media img {
	object-fit: cover;
}

/* A flat, even wash for text legibility. No vignette, no gradient band. */
.trs-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(26, 25, 24, 0.34);
}

.trs-hero__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--space-6) var(--gutter);
	text-align: center;
}

.trs-hero__title {
	max-width: 22ch;
	font-size: var(--step-hero);
	font-weight: 300;
	line-height: 1.12;
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
	/* Tracking adds space after the last letter; this re-centres the line. */
	padding-inline-start: var(--track-wide);
	text-wrap: balance;
}

.trs-hero__line {
	display: block;
	width: 1px;
	height: clamp(2.5rem, 1.8rem + 2vw, 4rem);
	margin-block: clamp(1.25rem, 1rem + 1vw, 2rem);
	background: currentColor;
}

.trs-hero__meta {
	justify-content: center;
	font-size: var(--step-label);
}

.trs-hero__link {
	margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
	padding-bottom: 0.375rem;
	border-bottom: 1px solid currentColor;
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	transition: opacity 0.2s var(--ease);
}

.trs-hero__link:hover {
	opacity: 0.75;
}

.trs-hero__controls {
	position: absolute;
	right: var(--gutter);
	bottom: clamp(1.25rem, 0.8rem + 1.5vw, 2.5rem);
	z-index: 5;
	display: none;
	align-items: center;
	gap: 0.5rem;
}

.js .trs-hero__controls {
	display: flex;
}

.trs-hero__count {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-inline-end: 0.75rem;
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	font-variant-numeric: tabular-nums;
}

.trs-hero__count-sep {
	width: 1px;
	height: 1.1em;
	background: currentColor;
	opacity: 0.7;
}

.trs-hero__btn {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgba(255, 255, 255, 0.55);
	color: var(--putih);
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.trs-hero__btn:hover {
	background: var(--putih);
	color: var(--malam);
}

.trs-hero__slide--empty {
	opacity: 1;
	visibility: visible;
}

/* 8. Home sections ========================================================= */

.trs-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: var(--space-4);
	margin-top: var(--space-5);
	padding-top: var(--space-4);
	border-top: 1px solid var(--line);
}

.trs-metrics__item {
	display: flex;
	flex-direction: column-reverse;
	gap: 0.5rem;
}

.trs-metrics__value {
	font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem);
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.03em;
}

.trs-metrics__label {
	font-size: var(--step-small);
	color: var(--muted);
}

/* Selected works: large photographs separated by a white seam. */
.trs-works__list {
	display: grid;
	gap: var(--seam);
}

.trs-works__link {
	position: relative;
	display: block;
	color: var(--putih);
}

.trs-works__media {
	position: relative;
	display: block;
	height: clamp(26rem, 16rem + 38vw, 56rem);
	overflow: hidden;
	background: var(--malam);
}

.trs-works__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.6s var(--ease);
}

.trs-works__media::after {
	content: "";
	position: absolute;
	inset: 55% 0 0;
	background: linear-gradient(to top, rgba(26, 25, 24, 0.55), rgba(26, 25, 24, 0));
}

.trs-works__link:hover .trs-works__media img {
	transform: scale(1.025);
}

.trs-works__caption {
	position: absolute;
	left: var(--gutter);
	right: var(--gutter);
	bottom: clamp(1.25rem, 0.8rem + 1.5vw, 2.5rem);
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1.5rem;
}

.trs-works__name {
	font-size: var(--step-h3);
	font-weight: 500;
	letter-spacing: -0.005em;
}

.trs-works__more {
	display: flex;
	justify-content: center;
	margin-top: var(--space-5);
}

/* Numbered columns: services, values, the three words of the name. */
.trs-columns {
	display: grid;
	gap: var(--space-5) var(--grid-gap);
	margin-top: var(--space-5);
}

@media (min-width: 900px) {
	.trs-columns--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.trs-columns__num {
	display: block;
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}

.trs-columns__num::after {
	content: "";
	display: block;
	width: 1px;
	height: 2.5rem;
	margin-block: 1rem;
	background: var(--line);
}

.trs-columns__title {
	font-size: var(--step-h3);
	font-weight: 500;
	line-height: 1.3;
}

.trs-columns__sub {
	margin-top: 0.25rem;
	font-size: var(--step-small);
	color: var(--muted);
}

.trs-columns__text {
	margin-top: 0.875rem;
	color: var(--muted);
	max-width: 30rem;
}

/* Process steps. */
.trs-steps {
	display: grid;
	gap: var(--space-5) var(--grid-gap);
	margin-top: var(--space-5);
}

@media (min-width: 640px) {
	.trs-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.trs-steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.trs-steps__num {
	display: block;
	font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem);
	font-weight: 200;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.trs-steps__num::after {
	content: "";
	display: block;
	width: 1px;
	height: 2.5rem;
	margin-block: 1.25rem 1rem;
	background: var(--line);
}

.trs-steps__title {
	font-size: var(--step-h3);
	font-weight: 500;
	line-height: 1.3;
}

.trs-steps__text {
	margin-top: 0.75rem;
	color: var(--muted);
}

/* Commitments on Malam. */
.trs-commitments {
	display: grid;
	gap: var(--space-4) var(--grid-gap);
	margin-top: var(--space-5);
}

@media (min-width: 700px) {
	.trs-commitments {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.trs-commitments__item {
	padding-top: var(--space-3);
	border-top: 1px solid var(--line);
}

.trs-commitments__title {
	font-size: var(--step-h3);
	font-weight: 500;
	line-height: 1.3;
}

.trs-commitments__text {
	margin-top: 0.625rem;
	color: var(--muted);
}

/* Client words. */
.trs-testimonial {
	text-align: center;
}

.trs-quote {
	max-width: 56rem;
	margin: var(--space-4) auto 0;
}

.trs-quote__text {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem);
	font-weight: 400;
	line-height: 1.3;
	text-wrap: balance;
}

.trs-quote__text p::before {
	content: "\201C";
}

.trs-quote__text p::after {
	content: "\201D";
}

.trs-quote__cite {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	margin-top: var(--space-4);
}

.trs-quote__name {
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
}

.trs-quote__context {
	font-size: var(--step-small);
	color: var(--muted);
}

/* Closing invitation. */
.trs-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.trs-cta__line {
	display: block;
	width: 1px;
	height: clamp(3.5rem, 2.5rem + 3vw, 6rem);
	margin-bottom: var(--space-5);
	background: var(--fg);
}

.trs-cta__body {
	margin-top: var(--space-3);
}

.trs-cta .trs-actions {
	justify-content: center;
}

/* 9. Portfolio ============================================================= */

.trs-page-head {
	padding-block: clamp(2.5rem, 1rem + 5vw, 6rem) clamp(3rem, 2rem + 4vw, 6rem);
}

.trs-page-head__lead {
	margin-top: var(--space-3);
}

.trs-page-head__after {
	margin-top: var(--space-3);
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	color: var(--muted);
}

.trs-filter {
	margin-bottom: var(--space-4);
}

.trs-filter__list {
	row-gap: 0.75rem;
	color: var(--muted);
}

.trs-filter__list a {
	display: block;
	padding: 0.25rem 1rem;
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	transition: color 0.2s var(--ease);
}

.trs-filter__list a:hover,
.trs-filter__list a[aria-current] {
	color: var(--fg);
}

.trs-filter__list a[aria-current] {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.6em;
}

.trs-portfolio {
	padding-bottom: var(--section);
}

.trs-grid {
	display: grid;
	gap: var(--space-4) var(--seam);
}

@media (min-width: 600px) {
	.trs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.trs-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.trs-card__link {
	display: block;
}

.trs-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--tint);
}

.trs-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.02);
	transition: filter 0.7s var(--ease), transform 1.2s var(--ease);
}

.trs-card__link:hover .trs-card__media img,
.trs-card__link:focus-visible .trs-card__media img {
	filter: none;
	transform: scale(1.02);
}

.trs-card__name {
	display: block;
	margin-top: 1rem;
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.35;
}

.trs-card__meta {
	margin-top: 0.375rem;
	color: var(--muted);
}

.trs-page-head + .trs-section,
.trs-page-head + .trs-wide-photo {
	padding-top: 0;
}

/* 10. Project ============================================================== */

.trs-project__hero {
	height: 88vh;
	height: 88svh;
	min-height: 32rem;
	background: var(--malam);
}

.trs-project__hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.trs-project__head {
	padding-block: clamp(3rem, 2rem + 4vw, 6.5rem) 0;
}

.trs-facts {
	display: grid;
	margin-top: var(--space-5);
	column-gap: var(--grid-gap);
	border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
	.trs-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.trs-facts__row,
.trs-details__row {
	display: grid;
	grid-template-columns: minmax(7rem, 38%) 1fr;
	gap: var(--space-2);
	padding-block: 0.875rem;
	border-top: 1px solid var(--line);
}

.trs-facts dt,
.trs-details dt {
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	line-height: 1.9;
	color: var(--muted);
}

.trs-project__story {
	padding-top: var(--space-5);
}

.trs-gallery {
	display: grid;
	gap: var(--seam);
	margin-top: var(--section);
}

.trs-gallery figure {
	overflow: hidden;
	background: var(--tint);
}

.trs-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.trs-gallery__wide {
	aspect-ratio: 3 / 2;
	max-height: 100svh;
}

.trs-gallery__pair {
	display: grid;
	gap: var(--seam);
}

.trs-gallery__pair figure {
	aspect-ratio: 4 / 5;
}

@media (min-width: 800px) {
	.trs-gallery__pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.trs-gallery__wide {
		aspect-ratio: 16 / 9;
	}
}

.trs-gallery__credit {
	margin-top: var(--space-2);
	font-size: var(--step-small);
	color: var(--muted);
}

.trs-pager {
	display: grid;
	margin-top: var(--section);
	border-block: 1px solid var(--line);
}

@media (min-width: 700px) {
	.trs-pager {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.trs-pager__link {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: var(--space-5) var(--gutter);
	transition: background-color 0.3s var(--ease);
}

.trs-pager__link:hover {
	background: var(--tint);
}

.trs-pager__link--next {
	align-items: flex-end;
	text-align: right;
	border-top: 1px solid var(--line);
}

@media (min-width: 700px) {
	.trs-pager__link--next {
		border-top: 0;
		border-inline-start: 1px solid var(--line);
	}
}

.trs-pager__label {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	color: var(--muted);
}

.trs-pager__label .trs-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.trs-pager__name {
	font-size: var(--step-heading);
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: -0.015em;
}

/* 11. Studio and services ================================================== */

.trs-wide-photo {
	background: var(--tint);
}

.trs-wide-photo img {
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
}

.trs-name__word {
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	line-height: 1;
	margin-bottom: 1.25rem;
}

/* Set the way the wordmark sets them. */
.trs-name__word--teras,
.trs-name__word--rumah {
	font-weight: 800;
	letter-spacing: 0.01em;
}

.trs-name__word--studio {
	font-weight: 300;
	letter-spacing: 0.42em;
}

.trs-name__list .trs-columns__text {
	margin-top: 0;
}

.trs-essence {
	text-align: center;
}

.trs-essence__quote {
	max-width: 18ch;
	margin-inline: auto;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(2.25rem, 1.3rem + 4vw, 5rem);
	line-height: 1.1;
	text-wrap: balance;
}

.trs-rows__item {
	padding-block: 1.25rem;
	border-top: 1px solid var(--line);
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	font-weight: 300;
	line-height: 1.35;
}

.trs-rows__item:last-child {
	border-bottom: 1px solid var(--line);
}

.trs-rows--links .trs-rows__item {
	font-size: var(--step-h3);
}

.trs-service-rows__item {
	display: grid;
	gap: var(--space-3) var(--grid-gap);
	padding-block: var(--space-5);
	border-top: 1px solid var(--line);
}

.trs-service-rows__item:last-child {
	border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
	.trs-service-rows__item {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.trs-service-rows__num {
		grid-column: 1 / span 3;
	}

	.trs-service-rows__intro {
		grid-column: 4 / span 5;
	}

	.trs-service-rows__scope {
		grid-column: 10 / span 3;
	}
}

.trs-service-rows__num {
	font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem);
	font-weight: 200;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.trs-service-rows__text {
	margin-top: var(--space-2);
	color: var(--muted);
}

.trs-service-rows__scope-title {
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: var(--space-2);
}

/* A list marked with the threshold line instead of bullets. */
.trs-ticks li {
	display: flex;
	gap: 0.875rem;
	padding-block: 0.3rem;
}

.trs-ticks li::before {
	content: "";
	flex: none;
	width: 1px;
	height: 1.1em;
	margin-top: 0.3em;
	background: var(--fg);
}

/* 12. Contact and form ===================================================== */

.trs-details {
	margin-top: var(--space-3);
	border-bottom: 1px solid var(--line);
}

.trs-details__row {
	grid-template-columns: 1fr;
	gap: 0.125rem;
}

.trs-details dd {
	overflow-wrap: anywhere;
}

.trs-details dd a:not(.trs-link) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.trs-form {
	position: relative;
	scroll-margin-top: calc(var(--bar) + var(--space-4));
}

.trs-form__title {
	margin-bottom: var(--space-4);
}

.trs-form__grid {
	display: grid;
	gap: var(--space-4) var(--grid-gap);
}

@media (min-width: 700px) {
	.trs-form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.trs-field--wide {
		grid-column: 1 / -1;
	}
}

.trs-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.trs-field__label {
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
}

.trs-field__optional {
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--muted);
}

.trs-field__input {
	width: 100%;
	min-height: 3rem;
	padding: 0.625rem 0;
	border: 0;
	border-bottom: 1px solid var(--fg);
	border-radius: 0;
	background: transparent;
	font-size: var(--step-body);
	line-height: 1.5;
	appearance: none;
}

.trs-field__input:focus-visible {
	outline: 2px solid var(--fg);
	outline-offset: 4px;
}

select.trs-field__input {
	padding-right: 2rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231a1918' stroke-width='1.25'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.25rem center;
	cursor: pointer;
}

textarea.trs-field__input {
	min-height: 10rem;
	padding: 0.875rem 1rem;
	border: 1px solid var(--fg);
	resize: vertical;
}

.trs-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.trs-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	margin-top: var(--space-4);
}

.trs-form__privacy {
	flex: 1 1 16rem;
	font-size: var(--step-small);
	color: var(--muted);
}

.trs-notice {
	margin-bottom: var(--space-4);
	padding: var(--space-2) var(--space-3);
	border-inline-start: 2px solid var(--fg);
	background: var(--tint);
}

.trs-notice:focus {
	outline: none;
}

.trs-notice strong {
	display: block;
	font-weight: 600;
}

/* 13. Footer =============================================================== */

.trs-footer {
	border-top: 1px solid var(--malam);
	padding-top: var(--space-6);
	font-size: var(--step-small);
}

.trs-footer__grid {
	display: grid;
	gap: var(--space-5) var(--grid-gap);
}

@media (min-width: 700px) {
	.trs-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.trs-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1100px) {
	.trs-footer__grid {
		grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
	}

	.trs-footer__brand {
		grid-column: auto;
	}
}

.trs-footer__logo {
	display: inline-block;
}

.trs-footer__descriptor {
	margin-top: var(--space-3);
	color: var(--muted);
}

.trs-footer__title {
	margin-bottom: var(--space-2);
	font-size: var(--step-label);
	font-weight: 500;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	color: var(--muted);
}

.trs-footer__list {
	display: grid;
	gap: 0.375rem;
}

.trs-footer__list a:hover,
.trs-footer__legal a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.trs-footer__address + p {
	margin-top: 0.5rem;
}

.trs-footer__muted {
	margin-top: 0.5rem;
	color: var(--muted);
}

.trs-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	margin-top: var(--space-6);
	padding-block: var(--space-3);
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: var(--step-label);
}

.trs-footer__legal {
	gap: var(--space-3);
}

.trs-footer__legal .trs-lang a {
	opacity: 1;
	color: var(--muted);
}

.trs-footer__legal .trs-lang a[aria-current] {
	color: var(--fg);
}

/* 14. Utilities and motion ================================================= */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media print {
	.trs-masthead,
	.trs-bar,
	.trs-menu,
	.trs-hero__controls,
	.trs-cta,
	.trs-footer__base {
		display: none !important;
	}
}
