/* ==========================================================================
   Twisted Friends Custom Metalworks — design system
   A dark gallery: black room, brass light, the work does the talking.
   ========================================================================== */

:root {
	--tf-void: #050505;
	--tf-pitch: #0a0908;
	--tf-ink: #12100d;
	--tf-char: #1c1915;
	--tf-ash: #8a8378;
	--tf-bone: #f2ede4;
	--tf-brass: #c8871f;
	--tf-brass-lt: #e5ae4c;
	--tf-copper: #b87333;
	--tf-arc: #5fc8f5;

	--tf-hair: rgba(200, 135, 31, 0.28);
	--tf-hair-soft: rgba(242, 237, 228, 0.1);
	--tf-glass: rgba(12, 11, 9, 0.55);

	--tf-gutter: clamp(1.25rem, 4vw, 3.5rem);
	--tf-section: clamp(5rem, 11vh + 3rem, 10rem);
	--tf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	background: var(--tf-void);
	color: var(--tf-bone);
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

::selection { background: var(--tf-brass); color: var(--tf-void); }

:focus-visible {
	outline: 2px solid var(--tf-brass-lt);
	outline-offset: 3px;
}

.tf-skip {
	position: absolute;
	left: -9999px;
}
.tf-skip:focus {
	left: 1rem;
	top: 1rem;
	z-index: 999;
	background: var(--tf-brass);
	color: var(--tf-void);
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Fixed gallery-room background — one slow drift, heavy veil, film grain.
   Content scrolls over it, so the whole site feels like one lit room.
   -------------------------------------------------------------------------- */

.tf-room {
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	overflow: hidden;
	background: var(--tf-void);
}

.tf-room__media {
	position: absolute;
	inset: -6%;
	width: 112%;
	height: 112%;
	object-fit: cover;
	opacity: 0.5;
	filter: saturate(0.9) contrast(1.05);
	animation: tf-drift 48s var(--tf-ease) infinite alternate;
}

@keyframes tf-drift {
	from { transform: scale(1.02) translate3d(0, 0, 0); }
	to   { transform: scale(1.12) translate3d(-2%, -1.5%, 0); }
}

.tf-room__veil {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 90% 60% at 50% 0%, rgba(200, 135, 31, 0.1), transparent 65%),
		linear-gradient(180deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.9) 55%, rgba(5, 5, 5, 0.97) 100%);
}

/* Grain — a single tiny SVG turbulence tile, no image request. */
.tf-room__grain {
	position: absolute;
	inset: -50%;
	width: 200%;
	height: 200%;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: tf-grain 700ms steps(3) infinite;
}

@keyframes tf-grain {
	0%   { transform: translate(0, 0); }
	33%  { transform: translate(-2%, 1%); }
	66%  { transform: translate(1%, -2%); }
	100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tf-room__media,
	.tf-room__grain { animation: none; }
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.tf-wrap {
	width: min(1320px, 100% - (var(--tf-gutter) * 2));
	margin-inline: auto;
}

.tf-wrap--narrow { width: min(880px, 100% - (var(--tf-gutter) * 2)); }

.tf-section { padding-block: var(--tf-section); position: relative; }

/* Section eyebrow — a mono label sitting on a hairline, like a gallery placard. */
.tf-eyebrow {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--tf-brass);
	margin: 0 0 1.75rem;
}

.tf-eyebrow::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--tf-hair), transparent);
}

.tf-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 500;
	font-size: clamp(2.2rem, 4vw + 1rem, 4.25rem);
	line-height: 1.06;
	letter-spacing: -0.015em;
	margin: 0 0 1.25rem;
}

.tf-title em {
	font-style: italic;
	color: var(--tf-brass-lt);
}

.tf-lede {
	font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
	line-height: 1.7;
	color: rgba(242, 237, 228, 0.72);
	max-width: 62ch;
	margin: 0 0 2rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.tf-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 1.05rem 2rem;
	border-radius: 999px;
	border: 1px solid var(--tf-brass);
	background: var(--tf-brass);
	color: var(--tf-void);
	transition: background 0.35s var(--tf-ease), color 0.35s var(--tf-ease),
		border-color 0.35s var(--tf-ease), transform 0.35s var(--tf-ease);
	cursor: pointer;
}

.tf-btn:hover,
.tf-btn:focus-visible {
	background: var(--tf-brass-lt);
	color: var(--tf-void);
	transform: translateY(-2px);
}

.tf-btn--ghost {
	background: transparent;
	color: var(--tf-bone);
	border-color: rgba(242, 237, 228, 0.22);
}

.tf-btn--ghost:hover,
.tf-btn--ghost:focus-visible {
	background: transparent;
	color: var(--tf-brass-lt);
	border-color: var(--tf-brass);
}

.tf-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

/* --------------------------------------------------------------------------
   Header — transparent over the hero, condenses into brass-lined glass on scroll
   -------------------------------------------------------------------------- */

.tf-head {
	position: sticky;
	top: 0;
	z-index: 60;
	transition: background 0.4s var(--tf-ease), border-color 0.4s var(--tf-ease),
		backdrop-filter 0.4s var(--tf-ease);
	border-bottom: 1px solid transparent;
}

.tf-head.is-stuck {
	background: rgba(5, 5, 5, 0.82);
	backdrop-filter: blur(14px) saturate(1.2);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	border-bottom-color: var(--tf-hair);
}

.tf-head__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.1rem;
	transition: padding 0.4s var(--tf-ease);
}

.tf-head.is-stuck .tf-head__inner { padding-block: 0.7rem; }

.tf-brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
	color: var(--tf-bone);
}

.tf-brand__seal {
	width: 46px;
	height: 46px;
	flex: none;
	transition: transform 0.6s var(--tf-ease);
}

.tf-brand:hover .tf-brand__seal { transform: rotate(180deg); }

.tf-brand__txt {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.tf-brand__name {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.0625rem;
	letter-spacing: 0.02em;
}

.tf-brand__sub {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.5625rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--tf-brass);
}

.tf-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.tf-nav a {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(242, 237, 228, 0.7);
	text-decoration: none;
	position: relative;
	padding-block: 0.35rem;
	transition: color 0.3s var(--tf-ease);
}

.tf-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 1px;
	background: var(--tf-brass);
	transition: width 0.35s var(--tf-ease);
}

.tf-nav a:hover { color: var(--tf-bone); }
.tf-nav a:hover::after { width: 100%; }

.tf-head__cta { display: inline-flex; }

.tf-burger {
	display: none;
	background: none;
	border: 1px solid var(--tf-hair);
	border-radius: 999px;
	width: 44px;
	height: 44px;
	cursor: pointer;
	position: relative;
}

.tf-burger span,
.tf-burger span::before,
.tf-burger span::after {
	position: absolute;
	left: 50%;
	width: 18px;
	height: 1px;
	background: var(--tf-bone);
	transform: translateX(-50%);
	transition: transform 0.3s var(--tf-ease), opacity 0.2s var(--tf-ease);
}

.tf-burger span { top: 50%; margin-top: -0.5px; }
.tf-burger span::before { content: ""; top: -6px; left: 0; transform: none; }
.tf-burger span::after  { content: ""; top: 6px;  left: 0; transform: none; }

.tf-burger[aria-expanded="true"] span { background: transparent; }
.tf-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.tf-burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.tf-burger { display: block; }
	.tf-head__cta { display: none; }
	.tf-nav {
		position: fixed;
		inset: 0 0 auto;
		top: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
		padding: 6rem var(--tf-gutter) 3rem;
		background: rgba(5, 5, 5, 0.97);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
		border-bottom: 1px solid var(--tf-hair);
		transform: translateY(-101%);
		transition: transform 0.45s var(--tf-ease);
		z-index: -1;
	}
	.tf-nav.is-open { transform: translateY(0); }
	.tf-nav a {
		font-size: 0.9375rem;
		letter-spacing: 0.1em;
		padding-block: 0.9rem;
		width: 100%;
		border-bottom: 1px solid rgba(242, 237, 228, 0.07);
	}
}

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

.tf-hero {
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding-block: clamp(7rem, 16vh, 11rem) clamp(5rem, 12vh, 8rem);
	position: relative;
}

.tf-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

/*
 * Single column below 980px. The artwork stays AFTER the copy — leading with
 * the image pushed the headline off the first screen on a phone.
 */
@media (max-width: 980px) {
	.tf-hero__grid { grid-template-columns: 1fr; }
	.tf-hero {
		min-height: 0;
		padding-block: clamp(5.5rem, 13vh, 8rem) clamp(3rem, 8vh, 5rem);
	}
	.tf-hero__art { padding-top: 2rem; }
	.tf-hero__seal { width: 56px; height: 56px; margin-bottom: 1.25rem; }
}

.tf-hero__seal {
	width: 72px;
	height: 72px;
	margin-bottom: 1.75rem;
	opacity: 0;
	animation: tf-seal-in 1.4s var(--tf-ease) 0.1s forwards;
}

@keyframes tf-seal-in {
	from { opacity: 0; transform: rotate(-40deg) scale(0.7); }
	to   { opacity: 1; transform: rotate(0) scale(1); }
}

.tf-hero__kicker {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	color: var(--tf-brass);
	margin: 0 0 1.5rem;
}

.tf-hero h1 {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 400;
	font-size: clamp(3rem, 7vw + 0.5rem, 7rem);
	line-height: 0.98;
	letter-spacing: -0.02em;
	margin: 0 0 1.75rem;
}

.tf-hero h1 em {
	font-style: italic;
	color: var(--tf-brass-lt);
}

/* The manifesto line, set like the engraved brass plaque on the work. */
.tf-hero__plaque {
	border-left: 1px solid var(--tf-hair);
	padding-left: 1.5rem;
	margin: 0 0 2.5rem;
	max-width: 46ch;
}

.tf-hero__plaque p {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.75rem;
	line-height: 2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(242, 237, 228, 0.62);
	margin: 0;
}

.tf-hero__plaque strong {
	display: block;
	color: var(--tf-brass);
	font-weight: 400;
	letter-spacing: 0.3em;
	margin-bottom: 0.6rem;
}

/* Hero artwork: hangs from a chain-hairline, floats. */
.tf-hero__art {
	position: relative;
	padding-top: 3rem;
}

.tf-hero__art::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 1px;
	height: 3rem;
	background: linear-gradient(180deg, transparent, var(--tf-brass));
}

.tf-hero__frame {
	position: relative;
	border: 1px solid var(--tf-hair);
	border-radius: 4px;
	overflow: hidden;
	background: var(--tf-pitch);
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95),
		0 0 0 1px rgba(242, 237, 228, 0.04) inset;
	animation: tf-float 9s ease-in-out infinite alternate;
}

@keyframes tf-float {
	from { transform: translateY(-6px) rotate(-0.3deg); }
	to   { transform: translateY(6px) rotate(0.3deg); }
}

@media (prefers-reduced-motion: reduce) {
	.tf-hero__frame { animation: none; }
	.tf-hero__seal { opacity: 1; animation: none; }
}

.tf-hero__frame img { width: 100%; }

.tf-hero__cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.25rem;
	background: linear-gradient(0deg, rgba(5, 5, 5, 0.92), transparent);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.625rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(242, 237, 228, 0.75);
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.tf-hero__cap span:last-child { color: var(--tf-brass); }

/* Scroll cue */
.tf-scroll {
	position: absolute;
	left: 50%;
	bottom: 2rem;
	transform: translateX(-50%);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.5625rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(242, 237, 228, 0.45);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.tf-scroll::after {
	content: "";
	width: 1px;
	height: 42px;
	background: linear-gradient(180deg, var(--tf-brass), transparent);
	animation: tf-cue 2.4s var(--tf-ease) infinite;
}

@keyframes tf-cue {
	0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
	50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

@media (max-width: 980px) { .tf-scroll { display: none; } }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.tf-marquee {
	border-block: 1px solid var(--tf-hair-soft);
	overflow: hidden;
	padding-block: 1.35rem;
	background: rgba(10, 9, 8, 0.5);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.tf-marquee__track {
	display: flex;
	width: max-content;
	animation: tf-marq 42s linear infinite;
}

.tf-marquee:hover .tf-marquee__track { animation-play-state: paused; }

@keyframes tf-marq {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.tf-marquee__item {
	display: inline-flex;
	align-items: center;
	gap: 2.5rem;
	padding-inline: 1.25rem;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(242, 237, 228, 0.5);
	white-space: nowrap;
}

.tf-marquee__item::after {
	content: "◆";
	color: var(--tf-brass);
	font-size: 0.5rem;
	letter-spacing: 0;
}

@media (prefers-reduced-motion: reduce) {
	.tf-marquee__track { animation: none; }
}

/* --------------------------------------------------------------------------
   Gallery grid — an editorial hang, not a product grid
   -------------------------------------------------------------------------- */

/*
 * A 12-column hang. Each piece carries its own --span and --ar, chosen so the
 * cards in any one row resolve to the SAME height (height = span / ar), which
 * is what keeps the grid from going ragged. Rows read 8+4, 4+4+4, 4+8, 6+6.
 */
.tf-gal {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(0.75rem, 1.4vw, 1.5rem);
}

.tf-piece {
	position: relative;
	grid-column: span var(--span, 4);
	aspect-ratio: var(--ar, 3 / 2);
	display: block;
	overflow: hidden;
	border: 1px solid var(--tf-hair-soft);
	border-radius: 3px;
	background: var(--tf-pitch);
	text-decoration: none;
	color: inherit;
	cursor: zoom-in;
}

@media (max-width: 900px) {
	.tf-gal { grid-template-columns: repeat(2, 1fr); }
	.tf-piece { grid-column: span 1; aspect-ratio: 4 / 5; }
}

@media (max-width: 520px) {
	.tf-gal { grid-template-columns: 1fr; }
	.tf-piece { aspect-ratio: 3 / 2; }
}

.tf-piece img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.1s var(--tf-ease), filter 0.6s var(--tf-ease);
	filter: brightness(0.88);
}

.tf-piece:hover img,
.tf-piece:focus-visible img {
	transform: scale(1.06);
	filter: brightness(1.05);
}

/* Brass hairline that draws itself in on hover. */
.tf-piece::after {
	content: "";
	position: absolute;
	inset: 0.6rem;
	border: 1px solid var(--tf-brass);
	opacity: 0;
	transform: scale(1.03);
	transition: opacity 0.45s var(--tf-ease), transform 0.45s var(--tf-ease);
	pointer-events: none;
}

.tf-piece:hover::after,
.tf-piece:focus-visible::after {
	opacity: 0.65;
	transform: scale(1);
}

.tf-piece__label {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1.6rem 1.25rem 1.15rem;
	background: linear-gradient(0deg, rgba(5, 5, 5, 0.94) 15%, transparent);
	transform: translateY(0.5rem);
	opacity: 0.85;
	transition: transform 0.45s var(--tf-ease), opacity 0.45s var(--tf-ease);
}

.tf-piece:hover .tf-piece__label,
.tf-piece:focus-visible .tf-piece__label {
	transform: translateY(0);
	opacity: 1;
}

.tf-piece__name {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.125rem;
	letter-spacing: 0.01em;
	margin: 0 0 0.3rem;
}

.tf-piece__meta {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.5625rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--tf-brass);
	margin: 0;
}

/* --------------------------------------------------------------------------
   Signature piece — the UMBILICUS story, split with the process reel
   -------------------------------------------------------------------------- */

.tf-sig {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

@media (max-width: 900px) {
	.tf-sig { grid-template-columns: 1fr; }
}

/* Portrait reel, hung on a chain hairline — honest to the vertical source clip. */
.tf-reel {
	position: relative;
	max-width: 320px;
	margin-inline: auto;
	padding-top: 2.5rem;
}

.tf-reel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 1px;
	height: 2.5rem;
	background: linear-gradient(180deg, transparent, var(--tf-brass));
}

.tf-reel video {
	width: 100%;
	border: 1px solid var(--tf-hair);
	border-radius: 3px;
	background: var(--tf-void);
	box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.95);
}

.tf-reel__cap {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.5625rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: rgba(242, 237, 228, 0.45);
	text-align: center;
	margin: 1rem 0 0;
}

/* Spec list — engraved-plaque rows */
.tf-specs {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
	border-top: 1px solid var(--tf-hair-soft);
}

.tf-specs li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1.5rem;
	padding-block: 0.9rem;
	border-bottom: 1px solid var(--tf-hair-soft);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tf-specs dt,
.tf-specs .k { color: rgba(242, 237, 228, 0.45); }
.tf-specs .v { color: var(--tf-brass-lt); text-align: right; }

/* --------------------------------------------------------------------------
   Process — three numbered steps, brass rule between
   -------------------------------------------------------------------------- */

.tf-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	counter-reset: tfstep;
}

@media (max-width: 820px) { .tf-steps { grid-template-columns: 1fr; } }

.tf-step {
	position: relative;
	padding-top: 2.5rem;
	border-top: 1px solid var(--tf-hair-soft);
	transition: border-color 0.4s var(--tf-ease);
}

.tf-step:hover { border-top-color: var(--tf-brass); }

.tf-step::before {
	counter-increment: tfstep;
	content: "0" counter(tfstep);
	position: absolute;
	top: 1.1rem;
	left: 0;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.625rem;
	letter-spacing: 0.24em;
	color: var(--tf-brass);
}

.tf-step h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.5rem;
	font-weight: 500;
	margin: 0 0 0.75rem;
}

.tf-step p {
	color: rgba(242, 237, 228, 0.62);
	font-size: 0.9375rem;
	line-height: 1.75;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Panels — the recurring frosted card
   -------------------------------------------------------------------------- */

.tf-panel {
	background: var(--tf-glass);
	backdrop-filter: blur(18px) saturate(1.15);
	-webkit-backdrop-filter: blur(18px) saturate(1.15);
	border: 1px solid var(--tf-hair-soft);
	border-radius: 6px;
	padding: clamp(1.75rem, 4vw, 3.25rem);
}

.tf-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

@media (max-width: 900px) { .tf-split { grid-template-columns: 1fr; } }

.tf-figure {
	position: relative;
	border: 1px solid var(--tf-hair-soft);
	border-radius: 4px;
	overflow: hidden;
}

.tf-figure img { width: 100%; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.tf-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--tf-hair-soft);
	border: 1px solid var(--tf-hair-soft);
	border-radius: 6px;
	overflow: hidden;
}

@media (max-width: 760px) { .tf-stats { grid-template-columns: repeat(2, 1fr); } }

.tf-stat {
	background: rgba(10, 9, 8, 0.72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	text-align: center;
}

.tf-stat__n {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(2rem, 3vw, 2.75rem);
	color: var(--tf-brass-lt);
	line-height: 1;
	margin: 0 0 0.6rem;
}

.tf-stat__l {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.5625rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(242, 237, 228, 0.5);
	margin: 0;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.tf-form { display: grid; gap: 1rem; }

.tf-form__row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

@media (max-width: 620px) { .tf-form__row { grid-template-columns: 1fr; } }

.tf-field { display: grid; gap: 0.5rem; }

.tf-field label {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.5625rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(242, 237, 228, 0.5);
}

.tf-field input,
.tf-field select,
.tf-field textarea {
	background: rgba(5, 5, 5, 0.6);
	border: 1px solid var(--tf-hair-soft);
	border-radius: 3px;
	color: var(--tf-bone);
	font-family: inherit;
	font-size: 0.9375rem;
	padding: 0.9rem 1rem;
	transition: border-color 0.3s var(--tf-ease), background 0.3s var(--tf-ease);
	width: 100%;
}

.tf-field textarea { min-height: 150px; resize: vertical; }

.tf-field input:focus,
.tf-field select:focus,
.tf-field textarea:focus {
	outline: none;
	border-color: var(--tf-brass);
	background: rgba(5, 5, 5, 0.85);
}

.tf-field input::placeholder,
.tf-field textarea::placeholder { color: rgba(242, 237, 228, 0.28); }

.tf-hp { position: absolute; left: -9999px; }

.tf-note {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.625rem;
	letter-spacing: 0.12em;
	color: rgba(242, 237, 228, 0.4);
	line-height: 1.9;
}

.tf-sent {
	border: 1px solid var(--tf-brass);
	border-radius: 4px;
	padding: 1rem 1.25rem;
	color: var(--tf-brass-lt);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
}

/* Direct-contact rows */
.tf-direct { display: grid; gap: 1px; background: var(--tf-hair-soft); }

.tf-direct a,
.tf-direct div {
	background: rgba(10, 9, 8, 0.75);
	padding: 1.25rem 1.4rem;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	text-decoration: none;
	color: var(--tf-bone);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	transition: background 0.3s var(--tf-ease), color 0.3s var(--tf-ease);
}

.tf-direct a:hover { background: rgba(200, 135, 31, 0.1); color: var(--tf-brass-lt); }

.tf-direct .k {
	font-size: 0.5625rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(242, 237, 228, 0.45);
	flex: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.tf-foot {
	border-top: 1px solid var(--tf-hair-soft);
	background: rgba(5, 5, 5, 0.8);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	padding-block: clamp(3rem, 6vw, 5rem) 2rem;
	margin-top: var(--tf-section);
}

.tf-foot__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	padding-bottom: 3rem;
	border-bottom: 1px solid var(--tf-hair-soft);
}

@media (max-width: 820px) { .tf-foot__grid { grid-template-columns: 1fr; } }

.tf-foot h4 {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.5625rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--tf-brass);
	margin: 0 0 1.25rem;
	font-weight: 400;
}

.tf-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }

.tf-foot a {
	color: rgba(242, 237, 228, 0.62);
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 0.3s var(--tf-ease);
}

.tf-foot a:hover { color: var(--tf-brass-lt); }

.tf-foot__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 2rem;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.5625rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(242, 237, 228, 0.35);
}

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

.tf-lb {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(3, 3, 3, 0.96);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: grid;
	place-items: center;
	padding: clamp(1rem, 5vw, 4rem);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s var(--tf-ease), visibility 0.35s;
}

.tf-lb.is-open { opacity: 1; visibility: visible; }

.tf-lb img {
	max-width: 100%;
	max-height: 82vh;
	object-fit: contain;
	border: 1px solid var(--tf-hair);
	transform: scale(0.97);
	transition: transform 0.4s var(--tf-ease);
}

.tf-lb.is-open img { transform: scale(1); }

.tf-lb__cap {
	margin-top: 1.25rem;
	text-align: center;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.625rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--tf-brass);
}

.tf-lb__x {
	position: absolute;
	top: clamp(1rem, 3vw, 2rem);
	right: clamp(1rem, 3vw, 2rem);
	width: 46px;
	height: 46px;
	border-radius: 999px;
	border: 1px solid var(--tf-hair);
	background: transparent;
	color: var(--tf-bone);
	font-size: 1.25rem;
	cursor: pointer;
	transition: border-color 0.3s var(--tf-ease), color 0.3s var(--tf-ease);
}

.tf-lb__x:hover { border-color: var(--tf-brass); color: var(--tf-brass); }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.tf-rise {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--tf-ease), transform 0.9s var(--tf-ease);
	will-change: opacity, transform;
}

.tf-rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.tf-rise { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Interior pages (WordPress content)
   -------------------------------------------------------------------------- */

.tf-page { padding-block: clamp(8rem, 16vh, 11rem) 0; }

.tf-page .entry-content > * { margin-bottom: 1.5rem; }

.tf-page .entry-content h2 { margin-top: 3rem; }
