/* ==========================================================================
   KO&KO Stolarija — Editorial Atelier (V3 refined, branch grok/koko-editorial-v2)
   One stylesheet. Mobile layout is designed separately (see "Mobile" blocks).
   Palette: ivory #F9F7F2 · ink #221F1A · copper #9A6148 · chocolate #35291F · sand #C5B39D · line #DCD7CE
   ========================================================================== */

:root {
	--paper: #F9F7F2;
	--paper-2: #F1ECE4;
	--paper-3: #E8DFD2;
	--ink: #221F1A;
	--ink-2: #4A433B;   /* body copy on paper: 9.3:1 */
	--muted: #6B6258;   /* secondary copy on paper: 5.7:1 */
	--copper: #9A6148;  /* accent on paper: 4.9:1 (AA for text) */
	--copper-deep: #7E4C37;
	--copper-light: #D4A98F; /* accent on chocolate */
	--chocolate: #35291F;
	--sand: #C5B39D;
	--line: #DCD7CE;
	--white: #FFFDF9;

	--serif: 'Bodoni Moda', 'Bodoni 72', 'Didot', Georgia, serif;
	--sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

	/* fluid type scale (min @360px → max @1440px) */
	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lead: clamp(1.0625rem, 0.98rem + 0.37vw, 1.3125rem);
	--fs-h3: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
	--fs-display-md: clamp(1.75rem, 1.3rem + 2vw, 3rem);
	--fs-display-lg: clamp(2.25rem, 1.45rem + 3.4vw, 4.5rem);
	--fs-display-xl: clamp(2.5rem, 1.5rem + 4.4vw, 5.75rem);
	--fs-hero: clamp(2.75rem, 1.35rem + 6.2vw, 7.25rem);

	--pad: clamp(18px, 4.2vw, 64px);
	--max: 1360px;
	--section: clamp(72px, 4rem + 6vw, 168px);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--dock-h: 0px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font: 400 var(--fs-base)/1.65 var(--sans);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	padding-bottom: var(--dock-h);
	overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
em { font-style: italic; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.process :focus-visible, .site-footer :focus-visible, .mobile-dock :focus-visible, .cta-band :focus-visible { outline-color: var(--copper-light); }
::selection { background: var(--sand); color: var(--ink); }

.container { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 300; background: var(--ink); color: var(--paper); padding: 12px 18px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- Type helpers ---------- */
.display-xl, .display-lg, .display-md, .hero-title, .service-title, .project-card-title, .steps h3 {
	font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; color: var(--ink);
}
.display-xl { font-size: var(--fs-display-xl); line-height: 1.02; letter-spacing: -0.02em; }
.display-lg { font-size: var(--fs-display-lg); line-height: 1.04; letter-spacing: -0.018em; }
.display-md { font-size: var(--fs-display-md); line-height: 1.1; letter-spacing: -0.01em; }
.display-xl em, .display-lg em, .hero-title em, .service-title em { color: var(--copper); font-style: italic; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); }
.kicker {
	display: flex; align-items: center; gap: .75em; margin: 0 0 1.75rem;
	font: 600 var(--fs-xs)/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--copper-deep); /* 6.0:1 on paper-2, 5.35:1 on paper-3 */
}
.kicker-num { font-family: var(--serif); font-size: .95rem; letter-spacing: 0; color: var(--ink); font-weight: 500; }
.kicker-num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: .75em; opacity: .5; }
.kicker-light { color: var(--copper-light); }
.kicker-light .kicker-num { color: var(--paper); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(20px, 3vw, 40px); font: 600 var(--fs-xs)/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--copper); }
.eyebrow .rule { width: 40px; height: 1px; background: var(--copper); }
.arrow { display: inline-block; transition: transform .35s var(--ease); }

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 14px;
	min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 0;
	font: 600 var(--fs-sm)/1 var(--sans); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
	transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover .arrow, .link-arrow:hover .arrow, .service-link:hover .arrow, .project-card-link:hover .arrow { transform: translateX(4px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--copper-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--sand); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .8125rem; }
.btn-block { width: 100%; justify-content: space-between; }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; padding: 10px 0; border-bottom: 1px solid currentColor; }
.icon-phone {
	display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Concept label (honesty) ---------- */
.concept-tag { display: inline; font: 500 .75rem/1.35 var(--sans); letter-spacing: .02em; color: var(--muted); }
.concept-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--copper); vertical-align: .08em; }
.concept-tag.on-media {
	position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; padding: 6px 10px;
	background: rgba(249, 247, 242, .94); color: var(--ink); font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink); color: #E9E1D6; font-size: .75rem; letter-spacing: .04em; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar-contact { display: flex; gap: 24px; }
.topbar a { text-decoration: none; padding: 8px 0; }
.topbar a:hover { color: var(--copper-light); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(249, 247, 242, .97); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(249, 247, 242, .88); backdrop-filter: saturate(1.2) blur(14px); } }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 40px); min-height: var(--header-h); }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; padding: 6px 0; }
.wordmark-main { margin: 0; font: 500 2.25rem/.9 var(--serif); letter-spacing: -0.04em; color: var(--ink); }
.wordmark-main .accent-mark { color: var(--copper); font-style: italic; margin: 0 .02em; }
.wordmark-main .dot { color: var(--copper); }
.wordmark-sub { white-space: nowrap; margin-top: 6px; font: 600 .5625rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.custom-logo-link { margin-right: auto; display: inline-flex; }
.custom-logo { max-height: 56px; width: auto; }

.primary-nav .nav-list { display: flex; gap: clamp(18px, 2.2vw, 36px); list-style: none; }
.primary-nav a { position: relative; display: inline-block; padding: 10px 0; font-size: .875rem; font-weight: 500; text-decoration: none; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font-size: .875rem; font-weight: 600; text-decoration: none; }
.header-call:hover { color: var(--copper); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 10px; background: none; border: 0; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; }
.menu-toggle-lines { display: grid; gap: 6px; width: 22px; }
.menu-toggle-lines span { height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 5vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 72px); align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(8px, 2vw, 32px) 0; min-width: 0; }
.hero-title { font-size: var(--fs-hero); line-height: .98; letter-spacing: -0.03em; margin: 0 0 clamp(20px, 2.4vw, 36px); text-wrap: balance; }
.hero-title em { display: block; }
.hero-lead { max-width: 30em; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); margin-bottom: clamp(24px, 3vw, 40px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-more { display: none; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; border-bottom: 1px solid currentColor; padding: 8px 0; align-self: flex-start; }
.hero-index { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: clamp(32px, 5vw, 72px); padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; }
.hero-index a { display: inline-flex; gap: 10px; align-items: baseline; text-decoration: none; padding: 6px 0; color: var(--ink-2); }
.hero-index a:hover { color: var(--copper); }
.hero-index .num, .project-card-meta .num { font-family: var(--serif); color: var(--copper); }
.hero-media { position: relative; margin: 0; margin-right: calc(-1 * max(var(--pad), (100vw - var(--max)) / 2)); min-height: clamp(480px, calc(100svh - 190px), 820px); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-media figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 2; background: rgba(249, 247, 242, .94); padding: 8px 12px; max-width: calc(100% - 32px); }
.hero-media figcaption .concept-tag { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 80px); max-width: 980px; }
.section-head-split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.section-intro { color: var(--muted); max-width: 30em; margin: 0; justify-self: end; }
.section-foot { margin-top: clamp(40px, 5vw, 72px); display: flex; justify-content: center; }

/* Intro */
.intro { border-top: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); }
.intro-body .display-xl { max-width: 15ch; margin-bottom: clamp(32px, 4vw, 56px); text-wrap: balance; }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); max-width: 980px; color: var(--ink-2); }
.intro-cols .lead { margin: 0; }

/* Services — numbered editorial lines */
.services { background: var(--paper-2); }
.service-lines { list-style: none; border-bottom: 1px solid var(--ink); }
.service-line {
	position: relative; display: grid; align-items: center;
	grid-template-columns: 72px minmax(0, 1.2fr) minmax(0, 1fr) 120px 200px;
	gap: clamp(16px, 2.5vw, 40px); padding: clamp(28px, 3.2vw, 48px) 0;
	border-top: 1px solid var(--ink);
}
.service-num { align-self: start; padding-top: .6em; font: 400 1rem/1 var(--serif); color: var(--copper-deep); }
.service-title { font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.02em; }
.service-title em { display: block; font-size: .5em; letter-spacing: 0; margin-top: .45em; color: var(--copper); }
.service-text { margin: 0; color: var(--ink-2); max-width: 34em; }
.service-link { justify-self: start; display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; border-bottom: 1px solid currentColor; }
.service-link::before { content: ""; position: absolute; inset: 0; } /* whole line clickable */
.service-link:hover { color: var(--copper); }
.service-thumb { position: relative; margin: 0; width: 200px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .8s var(--ease); filter: saturate(.85); }
.service-thumb .concept-tag.on-media { left: 6px; top: auto; bottom: 6px; padding: 4px 7px; font-size: .5625rem; letter-spacing: .05em; }
.service-line:hover .service-thumb img { transform: scale(1.06); filter: none; }
.service-line:hover .service-title { color: var(--copper-deep); }
.service-title { transition: color .35s var(--ease); }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--paper-3); }
.story-media { position: relative; margin: 0; min-height: clamp(420px, 48vw, 720px); }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-media figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(249, 247, 242, .94); padding: 8px 12px; }
.story-media figcaption .concept-tag { color: var(--ink); }
.story-copy { align-self: center; padding: clamp(48px, 6vw, 112px) clamp(24px, 5vw, 96px); }
.story-copy .display-lg { margin-bottom: 28px; }
.story-copy p { color: var(--ink-2); max-width: 30em; margin-bottom: 28px; }

/* ---------- Projects (asymmetric 12-col) ---------- */
.filters ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: clamp(28px, 3vw, 48px); }
.filter {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
	border: 1px solid var(--line); background: transparent; border-radius: 999px;
	font-size: .875rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: background-color .25s, border-color .25s, color .25s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"], .filter[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-count { font-size: .75rem; opacity: .7; }

.project-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(16px, 2vw, 32px); align-items: start; }
.project-card { grid-column: span 6; min-width: 0; }
.project-card[hidden] { display: none; }
.project-card.is-feature { grid-column: span 7; }
.project-card.is-tall { grid-column: span 5; }
.project-card.is-square { grid-column: span 4; }
.project-card.is-wide { grid-column: span 8; }
.project-card.is-feature .project-card-media { aspect-ratio: 4 / 3; }
.project-card.is-tall .project-card-media { aspect-ratio: 4 / 5; }
.project-card.is-square .project-card-media { aspect-ratio: 1 / 1; }
.project-card.is-wide .project-card-media { aspect-ratio: 16 / 10; }
.project-card:nth-child(6n+2) { margin-top: clamp(0px, 8vw, 120px); } /* editorial stagger */
/* orphans in the 6-item rhythm take the full width */
.project-grid:not(.is-filtered) .project-card:last-child:nth-child(6n+1),
.project-grid:not(.is-filtered) .project-card:last-child:nth-child(6n+3),
.project-grid:not(.is-filtered) .project-card:last-child:nth-child(6n+5) { grid-column: 1 / -1; }
.project-grid:not(.is-filtered) .project-card:last-child:nth-child(6n+1) .project-card-media,
.project-grid:not(.is-filtered) .project-card:last-child:nth-child(6n+3) .project-card-media,
.project-grid:not(.is-filtered) .project-card:last-child:nth-child(6n+5) .project-card-media { aspect-ratio: 21 / 9; }
.project-grid.is-filtered .project-card { grid-column: span 6; margin-top: 0; }
.project-grid.is-filtered .project-card .project-card-media { aspect-ratio: 4 / 3; }

.project-card-link { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; text-decoration: none; color: inherit; }
.project-card-media { position: relative; display: block; overflow: hidden; background: var(--paper-3); }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card-link:hover .project-card-media img { transform: scale(1.035); }
.project-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; font: italic 2rem/1 var(--serif); color: var(--sand); }
.project-card-body { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding-top: 18px; border-top: 0; }
.project-card-meta { grid-column: 1 / -1; display: flex; gap: 12px; align-items: baseline; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.project-card-title { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.01em; }
.project-card-more { align-self: end; font-size: .8125rem; font-weight: 600; white-space: nowrap; padding-bottom: 4px; }
.project-card-link:focus-visible { outline-offset: 6px; }

/* ---------- Process ---------- */
.process { background: var(--chocolate); color: #EFE6DA; }
.process-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); }
.process-head .display-lg { color: var(--paper); margin-bottom: 24px; }
.process-head .display-lg em { color: var(--copper-light); }
.process-head p { color: #D9CCBC; max-width: 26em; margin-bottom: 32px; }
.process-head { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.steps { list-style: none; border-top: 1px solid rgba(239, 230, 218, .22); }
.steps li { display: grid; grid-template-columns: clamp(64px, 8vw, 120px) 1fr; gap: 16px; padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid rgba(239, 230, 218, .22); }
.step-num { font: 400 clamp(2rem, 1.4rem + 2vw, 3.5rem)/1 var(--serif); color: var(--copper-light); }
.steps h3 { font-size: var(--fs-h3); color: var(--paper); margin: 4px 0 10px; }
.steps p { margin: 0; color: #D9CCBC; max-width: 32em; }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact-copy .display-lg { margin-bottom: 24px; }
.contact-copy > p { color: var(--ink-2); max-width: 28em; }
.contact-list { list-style: none; margin-top: 40px; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); min-height: 60px; }
.contact-label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font: 500 1.125rem/1.35 var(--sans); text-decoration: none; padding: 12px 0; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--copper); }

.inquiry-form { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 56px); }
.form-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.form-required-note { color: var(--muted); letter-spacing: .04em; text-transform: none; font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { margin-bottom: 22px; min-width: 0; }
.field label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 600; }
.req { color: var(--copper); }
.optional { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #CFC7BC; border-radius: 0; background: var(--paper);
	font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(154, 97, 72, .22); }
.field [aria-invalid="true"] { border-color: #A4372B; }
.field-hint { margin: 8px 0 0; font-size: .8125rem; color: var(--muted); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--copper-deep); }
.consent label { font-weight: 400; font-size: .875rem; line-height: 1.55; color: var(--ink-2); margin: 0; }
.form-errors { margin: 0 0 18px; padding: 12px 14px; background: #F8E9E5; color: #7A2318; font-size: .875rem; border-left: 3px solid #A4372B; }
.form-alt { margin: 16px 0 0; font-size: .875rem; color: var(--muted); text-align: center; }
.form-alt a { color: var(--ink); font-weight: 600; }
.form-message { margin-bottom: 20px; padding: 16px 20px; border-left: 3px solid var(--copper); background: var(--white); }
.form-message p { margin: 0 0 .4em; }
.form-message p:last-child { margin: 0; }
.form-message.is-error { border-color: #A4372B; background: #F8E9E5; color: #5E1B12; }
.form-message.is-success { border-color: #3F6B4F; background: #EAF1EA; color: #1F3B29; }
.koko-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Inner pages ---------- */
.page-main { padding-bottom: var(--section); }
.page-narrow { max-width: 860px; padding-top: clamp(48px, 6vw, 112px); }
.page-narrow .display-xl { margin-bottom: 32px; }
.entry-content { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.75; }
.entry-content > * { max-width: 44em; }
.entry-content h2, .entry-content h3 { font-family: var(--serif); color: var(--ink); margin: 1.6em 0 .6em; line-height: 1.15; }
.entry-content h2 { font-size: var(--fs-display-md); }
.entry-content img { height: auto; }
.entry-content .alignwide, .entry-content .wp-block-gallery { max-width: none; }
.page-thumb { margin: 0 0 32px; }
.post-teaser { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-teaser h2 { font: 400 var(--fs-h3)/1.2 var(--serif); margin-bottom: 8px; }

.archive-head { padding: clamp(48px, 6vw, 112px) 0 clamp(32px, 4vw, 56px); }
.archive-head .display-xl { margin-bottom: 20px; }
.archive-head .lead { max-width: 36em; }
.empty-state { padding: 48px 0; font-size: var(--fs-lead); }
.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta-band { margin-top: var(--section); background: var(--chocolate); color: var(--paper); padding: clamp(56px, 7vw, 120px) 0; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band .display-lg { color: var(--paper); }
.cta-band .display-lg em { color: var(--copper-light); }

.project-head { padding: clamp(32px, 4vw, 64px) 0 clamp(28px, 3vw, 48px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 56px); font-size: .8125rem; color: var(--muted); }
.breadcrumbs a { text-decoration: none; padding: 6px 0; }
.breadcrumbs a:hover { color: var(--copper); text-decoration: underline; }
.project-title { max-width: 18ch; margin-bottom: 20px; text-wrap: balance; }
.project-lead { max-width: 36em; }
.project-hero { position: relative; margin-block: 0 clamp(40px, 5vw, 80px); }
.project-hero img { width: 100%; max-height: 82vh; object-fit: cover; }
.project-hero figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(249, 247, 242, .94); padding: 8px 12px; max-width: calc(100% - 32px); }
.project-hero figcaption .concept-tag { color: var(--ink); }
.project-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); }
.project-aside { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.project-facts { margin: 0 0 28px; border-top: 1px solid var(--ink); }
.project-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.project-facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.project-facts dd { margin: 0; }
.project-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; margin-top: clamp(56px, 7vw, 120px); padding-top: 32px; border-top: 1px solid var(--ink); }
.project-pager a { display: grid; gap: 4px; text-decoration: none; padding: 8px 0; }
.pager-next { text-align: right; }
.pager-label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pager-title { font: 400 1.25rem/1.2 var(--serif); }
.pager-all { font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9D0C4; padding: clamp(56px, 6vw, 96px) 0 32px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(217, 208, 196, .2); }
.site-footer .wordmark-main { color: var(--paper); font-size: 2.75rem; }
.site-footer .wordmark-sub { color: #B9AE9F; }
.footer-brand p { margin-top: 20px; max-width: 22em; color: #B9AE9F; }
.footer-title { font: 600 .75rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--copper-light); margin-bottom: 16px; }
.footer-list { list-style: none; display: grid; gap: 4px; }
.footer-list a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer-list a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font-size: .8125rem; color: #B9AE9F; }
.footer-bottom a { color: inherit; }

/* ---------- Mobile dock (≤810px) ---------- */
.mobile-dock { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; background: var(--ink); color: var(--paper); }
.lightbox::backdrop { background: rgba(34, 31, 26, .88); }
.lightbox-figure { margin: 0; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #15130F; }
.lightbox-caption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; font-size: .875rem; }
.lightbox-caption span { color: #CFC4B6; }
.lightbox-close-form { position: absolute; right: 10px; top: 10px; z-index: 2; margin: 0; }
.lightbox-close { width: 44px; height: 44px; border: 0; background: rgba(34, 31, 26, .85); color: var(--paper); font-size: 1.1rem; }

/* ---------- Reveal (only with JS + motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
	.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (max-width: 1280px) {
	.header-call-num { display: none; }
	.header-call { width: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
}
@media (max-width: 1100px) {
	.service-line { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 120px; }
	.service-thumb { display: none; }
	.hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
@media (max-width: 960px) {
	.primary-nav { display: none; }
	.menu-toggle { display: inline-flex; }
	.no-js .menu-toggle { display: none; }
	.mobile-nav { display: block; border-top: 1px solid var(--line); background: var(--paper); }
	.js .mobile-nav[hidden] { display: none; }
	.mobile-nav-list { list-style: none; padding: 8px 0; }
	.mobile-nav-list a { display: block; padding: 14px 0; font: 400 1.75rem/1.2 var(--serif); text-decoration: none; border-bottom: 1px solid var(--line); }
	.mobile-nav-contact { display: grid; gap: 4px; padding: 16px 0 24px; }
	.mobile-nav-contact a { padding: 8px 0; font-weight: 600; text-decoration: none; }
	.no-js .mobile-nav-list { display: flex; flex-wrap: wrap; gap: 0 20px; }
	.no-js .mobile-nav-list a { font: 500 .9375rem/1 var(--sans); border: 0; }
	.no-js .mobile-nav-contact { display: none; }
}

/* ---------- Mobile / tablet portrait (≤810px): separate composition ---------- */
@media (max-width: 810px) {
	:root { --header-h: 64px; --dock-h: calc(64px + env(safe-area-inset-bottom)); }
	.admin-bar .site-header { top: 0; }
	.topbar-place { display: none; }
	.topbar-inner { justify-content: center; }
	.wordmark-main { font-size: 1.875rem; }
	.wordmark-sub { font-size: .5rem; letter-spacing: .12em; }

	.hero { padding: 28px 0 0; }
	.hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.hero-copy { padding: 0; }
	.hero-title { letter-spacing: -0.025em; }
	.hero-actions .btn { flex: 1 1 auto; }
	.hero-index { margin-top: 28px; }
	.hero-media { margin-inline: calc(-1 * var(--pad)); min-height: 0; }
	.hero-media img, .story-media img { position: static; aspect-ratio: 4 / 3; height: auto; }
	.hero-media figcaption, .story-media figcaption, .project-hero figcaption { position: static; max-width: none; background: none; padding: 10px var(--pad) 0; }
	.project-hero figcaption { padding-inline: 0; }
	.hero-media figcaption .concept-tag, .story-media figcaption .concept-tag, .project-hero figcaption .concept-tag { color: var(--muted); }
	.hero-more { display: inline-flex; }

	.section-head-split { grid-template-columns: 1fr; gap: 20px; }
	.section-intro { justify-self: start; }
	.intro-grid { grid-template-columns: 1fr; gap: 0; }
	.intro-cols { grid-template-columns: 1fr; gap: 20px; }

	.service-line { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 16px; padding: 28px 0; }
	.service-num { grid-row: 1; padding-top: .45em; }
	.service-title { grid-column: 2; }
	.service-text { grid-column: 2; margin-top: 8px; }
	.service-link { grid-column: 2; margin-top: 4px; }

	.story { grid-template-columns: 1fr; }
	.story-media { min-height: 0; padding-bottom: 12px; }

	.filters { margin-inline: calc(-1 * var(--pad)); }
	.filters ul { flex-wrap: nowrap; overflow-x: auto; padding: 0 var(--pad) 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.filters ul::-webkit-scrollbar { display: none; }
	.filters li { flex: none; }

	.project-grid { grid-template-columns: 1fr; gap: 44px; }
	.project-card, .project-card.is-feature, .project-card.is-tall, .project-card.is-square, .project-card.is-wide,
	.project-grid.is-filtered .project-card { grid-column: 1 / -1 !important; margin-top: 0 !important; }
	.project-card .project-card-media, .project-grid .project-card:last-child .project-card-media { aspect-ratio: 4 / 3 !important; }
	.project-card.is-tall .project-card-media { aspect-ratio: 4 / 5 !important; }

	.process-grid { grid-template-columns: 1fr; gap: 40px; }
	.process-head { position: static; }
	.steps li { grid-template-columns: 56px 1fr; }

	.contact-grid { grid-template-columns: 1fr; gap: 40px; }
	.field-row { grid-template-columns: 1fr; }
	.contact-list li { grid-template-columns: 84px 1fr; }

	.project-body { grid-template-columns: 1fr; }
	.project-aside { position: static; order: 2; }
	.project-pager { grid-template-columns: 1fr 1fr; }
	.project-pager > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; text-align: center; }

	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }

	.mobile-dock {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: grid; grid-template-columns: 1fr 1.4fr;
		height: var(--dock-h); padding-bottom: env(safe-area-inset-bottom); background: var(--ink);
		box-shadow: 0 -8px 24px rgba(34, 31, 26, .14); transition: transform .3s var(--ease);
	}
	.mobile-dock a { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: .9375rem; text-decoration: none; }
	.dock-call { color: var(--paper); border-right: 1px solid rgba(249, 247, 242, .18); }
	.dock-quote { background: var(--copper-deep); color: var(--white); }
	.dock-hidden .mobile-dock { transform: translateY(110%); }
	.lightbox img { max-height: 70vh; }
}

@media (max-width: 560px) {
	.topbar { display: none; }
	.header-cta { display: none; }
	.menu-toggle-label { font-size: .75rem; }
	.hero-actions { display: grid; grid-template-columns: 1fr; }
	.hero-index { display: none; }
	.btn { min-height: 50px; }
	.contact-list a { font-size: 1.0625rem; }
	.form-head { flex-direction: column; gap: 6px; }
	.footer-bottom { flex-direction: column; }
	.cta-band-inner .btn { width: 100%; }
}
@media (min-width: 1600px) {
	.hero-media img { object-position: 50% 45%; }
}
@media print {
	.site-header, .topbar, .mobile-dock, .lightbox, .inquiry-form { display: none !important; }
}
