/*
Theme Name: Strata
Theme URI: https://strata.example
Author: Strata Architecture & Urban Design
Description: Boutique architecture and urban design studio theme. Long-form scrollytelling homepage, warm material palette, architectural drawing details, and four purposeful WebGL/Three.js moments (generative massing hero, ambient site-survey particle field, pinned project image transitions, cursor trail).
Version: 1.0.0
Requires PHP: 7.4
Text Domain: strata
*/

/* ============ Fonts ============ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Public+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ============ Tokens ============ */
:root {
	--bg: #f1ece2;
	--bg-warm: #ece4d4;
	--panel: #faf7f0;
	--panel-2: #e7ded0;
	--panel-dark: #17140f;
	--panel-dark-2: #211d16;

	--ink: #1c1914;
	--ink-dim: #5b5548;
	--ink-mute: #948c78;
	--ink-on-dark: #f3ede0;
	--ink-on-dark-dim: #a99f8b;

	--accent: #b8502f;
	--accent-ink: #ffffff;
	--accent-soft: rgba(184,80,47,.10);
	--accent-2: #7c6b3f;

	--line: rgba(28,25,20,.13);
	--line-strong: rgba(28,25,20,.24);
	--line-dark: rgba(243,237,224,.12);
	--line-dark-strong: rgba(243,237,224,.26);

	--ff-head: 'Fraunces', Georgia, 'Times New Roman', serif;
	--ff-body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
	--ff-mono: 'Space Mono', 'SFMono-Regular', Consolas, monospace;

	--radius: 2px;
	--container: 1360px;
	--shadow-lift: 0 30px 70px -30px rgba(20,17,12,.35);
}

* { box-sizing: border-box; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--ff-body); font-size: 16px; line-height: 1.6;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 500; line-height: 1.06; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 44px; }
.mono { font-family: var(--ff-mono); }

/* ============ Ambient background ============ */
.nebula { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.neb { position: absolute; border-radius: 50%; filter: blur(110px); will-change: transform; }
.neb-1 {
	width: 62vw; height: 62vw; top: -18vw; left: -14vw;
	background: radial-gradient(circle, rgba(184,80,47,.38), rgba(184,80,47,.14) 45%, transparent 72%);
	animation: neb-drift-1 34s ease-in-out infinite alternate;
}
.neb-2 {
	width: 48vw; height: 48vw; top: 28vh; right: -16vw;
	background: radial-gradient(circle, rgba(124,107,63,.34), rgba(124,107,63,.12) 45%, transparent 72%);
	animation: neb-drift-2 41s ease-in-out infinite alternate;
}
.neb-3 {
	width: 54vw; height: 54vw; bottom: -20vh; left: 18vw;
	background: radial-gradient(circle, rgba(212,140,90,.3), rgba(212,140,90,.1) 45%, transparent 72%);
	animation: neb-drift-3 29s ease-in-out infinite alternate;
}
.neb-4 {
	width: 38vw; height: 38vw; top: 55vh; left: -10vw;
	background: radial-gradient(circle, rgba(90,70,55,.28), rgba(90,70,55,.09) 45%, transparent 72%);
	animation: neb-drift-4 37s ease-in-out infinite alternate;
}
@keyframes neb-drift-1 { 0% { transform: translate(0,0) scale(1) rotate(0deg); } 100% { transform: translate(9vw,7vh) scale(1.18) rotate(12deg); } }
@keyframes neb-drift-2 { 0% { transform: translate(0,0) scale(1) rotate(0deg); } 100% { transform: translate(-8vw,-9vh) scale(1.12) rotate(-10deg); } }
@keyframes neb-drift-3 { 0% { transform: translate(0,0) scale(1) rotate(0deg); } 100% { transform: translate(6vw,-8vh) scale(1.22) rotate(8deg); } }
@keyframes neb-drift-4 { 0% { transform: translate(0,0) scale(1) rotate(0deg); } 100% { transform: translate(7vw,6vh) scale(1.15) rotate(-14deg); } }

#bg-fx-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }
.grain {
	position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
	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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-grid {
	position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background-image: linear-gradient(rgba(28,25,20,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(28,25,20,.05) 1px, transparent 1px);
	background-size: 88px 88px;
	mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
}
.daylight { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(184,80,47,.08), transparent 60%); animation: daylight-shift 30s ease-in-out infinite alternate; }
@keyframes daylight-shift { from { opacity: .7; } to { opacity: 1; } }

/* ============ Progress + preloader ============ */
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--accent); z-index: 9999; transition: width .1s linear; }
#pre {
	position: fixed; inset: 0; z-index: 9900; background: var(--panel-dark);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
	transition: opacity .7s ease, visibility .7s ease;
}
#pre.done { opacity: 0; visibility: hidden; }
.pre-mark { font-family: var(--ff-head); font-style: italic; font-weight: 500; font-size: 30px; color: var(--ink-on-dark); }
.pre-bar { width: 240px; height: 1px; background: var(--line-dark-strong); overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 0%; background: var(--accent); }
.pre-pct { font-family: var(--ff-mono); font-size: 11px; color: var(--ink-on-dark-dim); letter-spacing: .1em; }

/* ============ Dimension-line component ============ */
.dim { display: flex; align-items: center; gap: 10px; }
.dim-line { position: relative; flex: 1; height: 1px; background: var(--line-strong); overflow: hidden; }
.dim-line::before { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.dim.in .dim-line::before { transform: scaleX(1); }
.dim-tick { width: 1px; height: 8px; background: var(--line-strong); }
.dim-label { font-family: var(--ff-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .06em; white-space: nowrap; }

/* ============ Header ============ */
.site-head {
	position: fixed; top: 0; left: 0; right: 0; z-index: 800;
	display: flex; align-items: center; justify-content: space-between;
	padding: 26px 44px; transition: padding .3s ease, background .3s ease, border-color .3s ease;
	border-bottom: 1px solid transparent;
}
.site-head.is-scrolled { padding: 18px 44px; background: rgba(241,236,226,.75); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { font-family: var(--ff-head); font-style: italic; font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
.head-right { display: flex; align-items: center; gap: 22px; }
.head-coord { font-family: var(--ff-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .05em; }
.nav-toggle { display: flex; align-items: center; gap: 12px; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle .bars { width: 26px; height: 14px; position: relative; }
.nav-toggle .bars span { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); transition: transform .3s ease, top .3s ease; }
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.nav-toggle.active .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle.active .bars span:nth-child(2) { opacity: 0; }
.nav-toggle.active .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ============ Side drawer nav ============ */
.drawer-scrim { position: fixed; inset: 0; z-index: 890; background: rgba(23,20,15,.4); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease; }
.drawer-scrim.open { opacity: 1; visibility: visible; }
.drawer {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 88vw); z-index: 895;
	background: var(--panel-dark); color: var(--ink-on-dark);
	padding: 130px 50px 50px; transform: translateX(100%); transition: transform .55s cubic-bezier(.76,0,.24,1);
	display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-nav a {
	display: block; font-family: var(--ff-head); font-size: 34px; padding: 12px 0; border-bottom: 1px solid var(--line-dark);
	opacity: 0; transform: translateX(24px); transition: opacity .5s ease, transform .5s ease, color .25s ease;
}
.drawer.open .drawer-nav a { opacity: 1; transform: translateX(0); }
.drawer-nav a:hover { color: var(--accent); }
.drawer-nav a:nth-child(1) { transition-delay: .08s; } .drawer-nav a:nth-child(2) { transition-delay: .14s; }
.drawer-nav a:nth-child(3) { transition-delay: .20s; } .drawer-nav a:nth-child(4) { transition-delay: .26s; }
.drawer-nav a:nth-child(5) { transition-delay: .32s; } .drawer-nav a:nth-child(6) { transition-delay: .38s; }
.drawer-foot { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-on-dark-dim); display: flex; flex-direction: column; gap: 10px; padding-top: 30px; border-top: 1px solid var(--line-dark); }
.drawer-foot a { color: var(--ink-on-dark); }

/* ============ Buttons ============ */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; font-family: var(--ff-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; transition: color .3s ease, background .3s ease; }
.btn-primary { background: var(--ink); color: var(--panel); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--panel); }
.btn-on-dark { border-color: var(--ink-on-dark); color: var(--ink-on-dark); }
.btn-on-dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.magnetic { display: inline-block; }

/* ============ Hero ============ */
.hero { position: relative; min-height: 100vh; background: var(--panel-dark); color: var(--ink-on-dark); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 150px; }
#hero-canvas { position: absolute; inset: 0; z-index: 1; }
.hero-scrim { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(23,20,15,.1) 0%, rgba(23,20,15,.55) 75%, rgba(23,20,15,.92) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 3; padding-bottom: 100px; }
.hero-eyebrow { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-on-dark-dim); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 30px; }
.hero h1 { font-size: clamp(46px, 7vw, 108px); max-width: 17ch; }
.hero h1 .reveal-line { overflow: hidden; display: block; }
.hero h1 .reveal-line span { display: block; transform: translateY(115%); transition: transform .9s cubic-bezier(.16,1,.3,1); }
.hero.loaded h1 .reveal-line span { transform: translateY(0); }
.hero-sub { margin-top: 30px; max-width: 48ch; font-size: 18px; color: var(--ink-on-dark-dim); }
.hero-cta { display: flex; gap: 16px; margin-top: 40px; }
.hero-scroll-cue { position: absolute; bottom: 40px; left: 44px; z-index: 3; display: flex; align-items: center; gap: 12px; font-family: var(--ff-mono); font-size: 11px; color: var(--ink-on-dark-dim); text-transform: uppercase; letter-spacing: .08em; }
.hero-scroll-cue .line { width: 1px; height: 34px; background: var(--line-dark-strong); position: relative; overflow: hidden; }
.hero-scroll-cue .line::after { content: ''; position: absolute; top: -100%; left: 0; right: 0; height: 100%; background: var(--accent); animation: cue-drop 2s ease-in-out infinite; }
@keyframes cue-drop { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ============ Services marquee ============ */
.marquee-strip { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; overflow: hidden; position: relative; z-index: 2; }
.marquee-track { display: flex; white-space: nowrap; width: max-content; animation: marquee-l 34s linear infinite; }
.marquee-track.reverse { animation: marquee-r 40s linear infinite; }
.marquee-track span { font-family: var(--ff-head); font-weight: 500; font-size: 22px; color: var(--ink-mute); padding: 0 34px; display: flex; align-items: center; gap: 18px; }
.marquee-track span em { font-style: normal; font-family: var(--ff-mono); font-size: 12px; color: var(--accent); }
@keyframes marquee-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ============ Section shell ============ */
.section { position: relative; z-index: 2; padding: 150px 0; }
.section-dark { background: var(--panel-dark); color: var(--ink-on-dark); }
.section-warm { background: var(--bg-warm); }
.section-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.section-kicker .num { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); }
.section-kicker .lbl { font-family: var(--ff-mono); font-size: 11px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .1em; }
.section-dark .section-kicker .lbl { color: var(--ink-on-dark-dim); }

[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ============ Manifesto ============ */
.manifesto { text-align: center; padding: 60px 0 40px; }
.manifesto .wrap { max-width: 1100px; }
.manifesto h2 { font-size: clamp(30px, 5.4vw, 66px); line-height: 1.24; font-weight: 400; }
.manifesto h2 em { color: var(--accent); }
.manifesto-word { display: inline-block; opacity: .16; transition: opacity .06s linear; }
.manifesto-word.on { opacity: 1; }

/* ============ Process timeline ============ */
.process-list { max-width: 980px; margin: 0 auto; }
.process-row { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 40px; padding: 46px 0; border-top: 1px solid var(--line); }
.process-row:last-child { border-bottom: 1px solid var(--line); }
.process-row .pn { font-family: var(--ff-mono); font-size: 13px; color: var(--accent); }
.process-row h3 { font-size: 26px; }
.process-row p { color: var(--ink-dim); font-size: 15.5px; margin-top: 10px; }

/* ============ Pinned project showcase ============ */
.pin-stage { position: relative; }
.pin-project { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.pin-project .pp-media { position: relative; overflow: hidden; background: var(--panel-dark); }
.pin-project .pp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.pin-project .pp-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin-project .pp-copy { display: flex; flex-direction: column; justify-content: center; padding: 70px; background: var(--panel-dark); color: var(--ink-on-dark); }
.pp-copy .pp-idx { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); margin-bottom: 20px; }
.pp-copy h3 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 18px; }
.pp-copy .pp-loc { font-family: var(--ff-mono); font-size: 12.5px; color: var(--ink-on-dark-dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 24px; }
.pp-copy p { color: var(--ink-on-dark-dim); font-size: 16px; max-width: 48ch; }
.pp-facts { display: flex; gap: 34px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.pp-facts div b { display: block; font-family: var(--ff-head); font-size: 20px; }
.pp-facts div span { font-size: 12px; color: var(--ink-on-dark-dim); font-family: var(--ff-mono); }
.pp-copy .btn { margin-top: 36px; width: fit-content; }
@media (max-width: 900px) {
	.pin-project { grid-template-columns: 1fr; min-height: auto; }
	.pin-project .pp-media { height: 60vh; }
	.pin-project .pp-copy { padding: 50px 30px; }
}

/* ============ Horizontal project gallery ============ */
.gallery-wrap { overflow: hidden; }
.gallery-track { display: flex; gap: 2px; overflow-x: auto; scroll-behavior: auto; cursor: grab; padding: 0 44px 30px; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.dragging { cursor: grabbing; }
.gallery-card { flex: 0 0 auto; width: min(420px, 78vw); position: relative; }
.gallery-card .gc-media { position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden; background: var(--panel-2); }
.gallery-card .gc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.gallery-card:hover .gc-media img { transform: scale(1.06); }
.gallery-card .gc-tag { position: absolute; top: 18px; left: 18px; font-family: var(--ff-mono); font-size: 10.5px; padding: 5px 10px; background: var(--panel); color: var(--ink); text-transform: uppercase; letter-spacing: .05em; }
.gallery-card .gc-body { padding: 18px 4px; }
.gallery-card h4 { font-size: 20px; }
.gallery-card span { display: block; margin-top: 4px; font-family: var(--ff-mono); font-size: 11.5px; color: var(--ink-mute); text-transform: uppercase; }

/* ============ Stats band ============ */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); }
.stat-cell { background: var(--panel-dark); padding: 10px 10px 0; }
.stat-cell b { display: block; font-family: var(--ff-head); font-weight: 500; font-size: clamp(42px, 4.6vw, 70px); }
.stat-cell span { display: block; margin-top: 12px; font-family: var(--ff-mono); font-size: 12px; color: var(--ink-on-dark-dim); text-transform: uppercase; letter-spacing: .04em; }

/* ============ Materials ============ */
.materials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.material-card { background: var(--panel); padding: 0; position: relative; overflow: hidden; aspect-ratio: 3/4; }
.material-card .mat-swatch { position: absolute; inset: 0; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.material-card:hover .mat-swatch { transform: scale(1.08); }
.material-card .mat-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; background: linear-gradient(0deg, rgba(20,17,12,.75), transparent); color: #fff; }
.material-card .mat-info b { display: block; font-family: var(--ff-head); font-size: 19px; }
.material-card .mat-info span { display: block; margin-top: 4px; font-family: var(--ff-mono); font-size: 11px; opacity: .8; }

/* ============ Awards / press marquee list ============ */
.awards-list { max-width: 980px; margin: 0 auto; }
.award-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 26px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left .25s ease; }
.award-row:hover { padding-left: 10px; }
.award-row .ay { font-family: var(--ff-mono); font-size: 13px; color: var(--accent); }
.award-row h4 { font-size: 19px; font-weight: 500; }
.award-row span.src { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-mute); text-transform: uppercase; }

/* ============ Team ============ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.team-card .tc-avatar { width: 100%; aspect-ratio: 4/5; background: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--ff-head); font-style: italic; font-size: 40px; color: var(--ink-on-dark); overflow: hidden; position: relative; }
.team-card .tc-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.team-card b { display: block; margin-top: 18px; font-size: 18px; }
.team-card span { display: block; margin-top: 3px; font-family: var(--ff-mono); font-size: 11.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; }

/* ============ Testimonials ============ */
.testi-wrap { max-width: 900px; margin: 0 auto; text-align: center; }
.testi-quote { font-family: var(--ff-head); font-style: italic; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.45; }
.testi-attr { margin-top: 30px; font-family: var(--ff-mono); font-size: 12.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.testi-dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background .3s ease; }
.testi-dots button.active { background: var(--accent); }

/* ============ Locations ============ */
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); }
.location-cell { background: var(--panel-dark); padding: 40px; }
.location-cell .lc-num { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); }
.location-cell h3 { font-size: 26px; margin: 40px 0 10px; }
.location-cell p { font-family: var(--ff-mono); font-size: 12.5px; color: var(--ink-on-dark-dim); line-height: 1.9; }

/* ============ CTA band ============ */
.cta-band { background: var(--accent); color: #fff; padding: 130px 0; text-align: center; }
.cta-band h2 { font-size: clamp(32px, 5vw, 64px); max-width: 20ch; margin: 0 auto 40px; }
.cta-band .btn { border-color: #fff; color: #fff; }
.cta-band .btn:hover { background: #fff; color: var(--accent); }

/* ============ Footer ============ */
.site-foot { background: var(--panel-dark); color: var(--ink-on-dark-dim); padding: 100px 0 34px; position: relative; z-index: 2; }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 70px; border-bottom: 1px solid var(--line-dark); }
.foot-brand .brand { color: var(--ink-on-dark); }
.foot-brand p { margin-top: 20px; font-size: 15px; max-width: 32ch; }
.foot-newsletter { display: flex; margin-top: 26px; border-bottom: 1px solid var(--line-dark-strong); padding-bottom: 10px; max-width: 320px; }
.foot-newsletter input { flex: 1; background: none; border: none; color: var(--ink-on-dark); font-family: var(--ff-mono); font-size: 13px; }
.foot-newsletter input::placeholder { color: var(--ink-on-dark-dim); }
.foot-newsletter button { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); text-transform: uppercase; }
.foot-col span { display: block; font-family: var(--ff-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-on-dark-dim); margin-bottom: 20px; }
.foot-col a { display: block; padding: 7px 0; font-size: 14.5px; color: var(--ink-on-dark); transition: opacity .2s ease; }
.foot-col a:hover { opacity: .6; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; font-family: var(--ff-mono); font-size: 12px; flex-wrap: wrap; gap: 10px; }
.foot-social { display: flex; gap: 20px; }

/* ============ Page hero (inner pages) ============ */
.page-hero { padding: 200px 0 64px; position: relative; z-index: 2; }
.page-hero .section-kicker { justify-content: flex-start; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 72px); max-width: 20ch; }
.page-hero p { margin-top: 22px; font-size: 17px; color: var(--ink-dim); max-width: 58ch; }

/* ============ Entry / article ============ */
.entry { max-width: 74ch; margin: 0 auto; font-size: 18px; color: var(--ink-dim); }
.entry p { margin-bottom: 24px; }
.entry h2, .entry h3 { color: var(--ink); margin: 44px 0 18px; }

/* ============ Archive list ============ */
.archive-list { max-width: 920px; margin: 0 auto; }
.archive-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 26px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding-left .25s ease; }
.archive-row:hover { padding-left: 10px; }
.archive-row .ar-cat { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); text-transform: uppercase; }
.archive-row h3 { font-size: 20px; font-weight: 500; }
.archive-row .ar-date { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-mute); }

/* ============ Contact form ============ */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact-info ul { margin-top: 26px; }
.contact-info li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.ci-label { font-family: var(--ff-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-mute); letter-spacing: .06em; }
.ci-val { font-size: 16.5px; }
.form-row { display: flex; gap: 22px; margin-bottom: 22px; }
.form-field { flex: 1; }
.form-field.full { flex: 1 1 100%; }
.form-field label { display: block; font-family: var(--ff-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-dim); margin-bottom: 10px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 14px 0; border: none; border-bottom: 1px solid var(--line-strong); background: transparent; font-family: var(--ff-body); font-size: 16px; color: var(--ink); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }

/* ============ Custom cursor ============ */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; border-radius: 50%; transform: translate(-50%,-50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); opacity: 0; transition: opacity .2s ease; }
.cursor-ring { width: 40px; height: 40px; border: 1px solid var(--ink); opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity .2s ease, width .3s ease, height .3s ease, border-color .3s ease, background .3s ease; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.hovering { width: 78px; height: 78px; border-color: var(--accent); background: rgba(184,80,47,.08); }
.cursor-ring .cr-label { font-family: var(--ff-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); opacity: 0; transition: opacity .2s ease; }
.cursor-ring.hovering .cr-label { opacity: 1; }
#cursorTrailCanvas { position: fixed; inset: 0; z-index: 9997; pointer-events: none; mix-blend-mode: multiply; }
@media (hover: none) { .cursor-dot, .cursor-ring, #cursorTrailCanvas { display: none; } }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
	.wrap { padding: 0 26px; }
	.head-coord { display: none; }
	.about-split, .contact-grid { grid-template-columns: 1fr; }
	.divisions-grid, .stats-band, .materials-grid { grid-template-columns: repeat(2, 1fr); }
	.team-grid { grid-template-columns: repeat(2, 1fr); }
	.locations-grid { grid-template-columns: 1fr; }
	.process-row { grid-template-columns: 60px 1fr; }
	.process-row > div:last-child { grid-column: 1 / -1; }
	.foot-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.stats-band, .materials-grid, .team-grid { grid-template-columns: 1fr; }
	.form-row { flex-direction: column; gap: 0; }
	.section { padding: 100px 0; }
	.foot-top { grid-template-columns: 1fr; }
	.award-row, .archive-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
