:root {
	/* Palette aligned with Twenty Twenty-Four defaults (theme.json) */
	--bg: #f9f9f9;
	--surface: #ffffff;
	--text: #111111;
	--muted: #636363;
	--muted-2: #a4a4a4;
	--border: #dcdcdc;
	--accent: #111111;
	--accent-warm: #cfcabe;
	--max: 1080px;
	--radius: 0.33rem;
	--shadow-sm: 0 1px 2px rgba(17,17,17,.06);
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-heading: "Cardo", Georgia, "Times New Roman", serif;
	/* Page rhythm — horizontal gutter + section vertical padding */
	--gutter-x: clamp(1.35rem, 5vw, 2.5rem);
	--section-y: clamp(3.75rem, 10vw, 6rem);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;background:var(--bg)}
body{font-family:var(--font-body);background:var(--bg);color:var(--text);line-height:1.55;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-feature-settings:"kern" 1,"liga" 1}
h1,h2,h3{font-family:var(--font-heading);font-weight:400;font-style:normal}
.logo-text{font-family:var(--font-body);font-weight:600}
a{color:inherit}
a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.btn:focus-visible{outline-offset:2px}

.skip-link{position:absolute;left:-9999px;top:0;z-index:100;padding:.75rem 1.25rem;background:var(--accent);color:#fff;font-weight:600;text-decoration:none;font-size:.875rem}
.skip-link:focus{left:1rem;top:1rem;outline:2px solid #fff;outline-offset:2px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gutter-x)}

.nav{position:sticky;top:0;z-index:50;background:rgba(250,250,248,.88);backdrop-filter:saturate(1.1) blur(12px);border-bottom:1px solid var(--border)}
.nav-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;min-height:3.75rem;padding:.35rem 0}
.nav-logo{display:flex;align-items:center;text-decoration:none}
.nav-logo img{display:block;height:22px;width:auto}
.logo-text{font-weight:600;font-size:1rem;letter-spacing:-.02em;text-decoration:none;color:var(--text)}
.nav-panel{display:flex;flex:1;justify-content:flex-end;align-items:center}
.nav-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--border);border-radius:8px;background:var(--surface);cursor:pointer;color:var(--text)}
.nav-toggle svg{width:22px;height:22px}
.nav-links{display:flex;flex-wrap:wrap;align-items:center;gap:1.5rem;list-style:none;font-size:.875rem;font-weight:500;letter-spacing:0;text-transform:none}
.nav-links a{text-decoration:none;color:var(--muted);transition:color .15s ease}
.nav-links a:hover{color:var(--text)}
.nav-links a[aria-current="page"]{color:var(--text)}
.nav-contact{font-weight:500;color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.6rem 1rem;background:var(--accent);color:var(--surface);font-size:.875rem;font-weight:500;text-decoration:none;border-radius:var(--radius);border:1px solid var(--accent);cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease,opacity .15s ease;font-family:var(--font-body)}
.btn:hover{background:#636363;border-color:#636363;color:var(--surface)}
.btn:active{transform:none}
.btn svg{width:1rem;height:1rem;flex-shrink:0}
.btn-ghost{background:transparent;color:var(--muted);border-color:transparent;text-decoration:underline;text-underline-offset:3px;padding-left:0;padding-right:0}
.btn-ghost:hover{border-color:transparent;background:transparent;color:var(--text)}

.hero{padding:clamp(4rem,13vw,7.25rem) 0 clamp(3.5rem,11vw,5.75rem);background:var(--bg)}
.hero-inner{display:flex;flex-direction:column;align-items:stretch;max-width:var(--max);margin:0 auto;padding:0 var(--gutter-x)}
.hero-eyebrow{font-size:.8125rem;font-weight:500;color:var(--muted);margin-bottom:1.15rem;letter-spacing:0;text-transform:none}
.hero-copy{max-width:36rem}
.hero h1{font-size:clamp(2rem,4.5vw,2.85rem);font-weight:400;letter-spacing:-.01em;line-height:1.2;margin-bottom:1.5rem;color:var(--text)}
.hero p.lead{font-size:clamp(1rem,1.9vw,1.125rem);color:var(--muted);max-width:32rem;margin-bottom:2.35rem;font-weight:400;line-height:1.65}
.hero-actions{display:flex;flex-wrap:wrap;gap:1.1rem 1.65rem;align-items:center}
.hero-actions .btn:not(.btn-ghost){min-height:auto;padding:.6rem 1rem}

.section-head{margin-bottom:clamp(2.35rem,4.5vw,3.15rem);padding-bottom:0;border-bottom:none}
.section-eyebrow{font-size:.8125rem;font-weight:500;color:var(--muted);margin-bottom:.45rem;letter-spacing:0;text-transform:none}
.section-head h2{margin-bottom:0;font-weight:600}
.section-head--tight{padding-bottom:0;margin-bottom:clamp(2rem,3.5vw,2.35rem)}
.section-head--tight h2{margin-bottom:0}
.section{padding:var(--section-y) 0;border-bottom:1px solid var(--border);background:var(--surface)}
.section.alt-bg{background:var(--bg)}
.section h2{font-size:clamp(1.45rem,2.9vw,1.85rem);font-weight:400;letter-spacing:0;margin-bottom:0;color:var(--text)}
.section .section-head h2{margin-bottom:0}
.section .section-head--tight h2{margin-bottom:0}

/* Case studies: full-width hero row + two tiles (reference layout) */
.section--work{background:#f3f3f1;border-bottom-color:#e4e4e0}
.section--work .section-head{margin-bottom:clamp(1.85rem,4vw,2.65rem)}

.work-showcase{display:grid;gap:clamp(1.25rem,2.8vw,1.65rem);grid-template-columns:1fr}
@media(min-width:900px){
	.work-showcase{grid-template-columns:1fr 1fr}
	.work-showcase .work-card--hero{grid-column:1/-1}
}

@media(hover:hover){
	.work-card:hover .work-visual--inset{box-shadow:0 14px 40px -20px rgba(0,0,0,.1)}
}

.work-card{
	display:flex;
	flex-direction:column;
	border:1px solid #e6e6e3;
	border-radius:24px;
	background:#fff;
	overflow:hidden;
	min-height:0;
	transition:box-shadow .25s ease,border-color .2s ease;
	box-shadow:0 1px 0 rgba(0,0,0,.03)
}
.work-card:hover{border-color:#d8d8d4;box-shadow:0 16px 48px -28px rgba(0,0,0,.08)}

.work-card--hero{
	gap:clamp(1.5rem,3.5vw,2.35rem);
	padding:clamp(1.65rem,4.5vw,3.1rem)
}
@media(min-width:900px){
	.work-card--hero{
		display:grid;
		grid-template-columns:minmax(0,1fr) minmax(0,1fr);
		align-items:stretch;
		gap:clamp(2.25rem,5.5vw,4rem);
		padding:clamp(2rem,5vw,3.5rem) clamp(2rem,4.5vw,3.15rem)
	}
}
.work-card--hero .work-copy,.work-card--hero .work-visual{min-width:0}
.work-card--hero .work-copy{
	display:flex;
	flex-direction:column;
	min-height:min(100%,12rem)
}
@media(min-width:900px){
	.work-card--hero .work-copy{min-height:100%}
	.work-card--hero p{flex:1;margin-bottom:0}
}
.work-card--hero .work-cta{margin-top:auto;align-self:flex-start}
/* Card titles: same serif + weight as global h1–h3 system */
.work-card h3{
	font-family:var(--font-heading);
	font-weight:400;
	font-style:normal;
	letter-spacing:0;
	color:var(--text)
}
.work-card--hero h3{
	font-size:clamp(1.35rem,2.8vw,1.85rem);
	line-height:1.2;
	margin-bottom:.85rem
}
.work-card--tile h3{
	font-size:clamp(1.1rem,2.4vw,1.4rem);
	line-height:1.25;
	margin-bottom:.6rem
}
.work-card--hero p{
	color:var(--muted);
	font-size:clamp(.9rem,1.6vw,1rem);
	line-height:1.6;
	margin-bottom:1.25rem;
	max-width:36rem
}

.work-card--tile{
	padding:clamp(1.5rem,4vw,2.65rem);
	gap:clamp(1.15rem,2.4vw,1.55rem)
}
.work-card--tile .work-copy{
	display:flex;
	flex-direction:column;
	flex:1;
	min-height:0;
	gap:0
}
.work-card--tile .work-cta{margin-top:auto}
.work-card--tile p{
	color:var(--muted);
	font-size:.9rem;
	line-height:1.55;
	margin-bottom:.25rem;
	flex:1
}

.work-meta--pill{
	margin:0 0 1.1rem;
	padding:0;
	border:none;
	background:transparent
}
.work-meta--pill .work-meta__text{
	display:inline-flex;
	align-items:center;
	padding:.42rem 1rem;
	border:1px solid #e0e0dc;
	border-radius:999px;
	font-family:var(--font-body);
	font-size:.8125rem;
	font-weight:600;
	color:var(--text);
	background:#fafafa;
	letter-spacing:.01em
}

.work-cta{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	align-self:flex-start;
	padding:.8rem 1.45rem;
	background:#f0f0ee;
	color:var(--text);
	border-radius:14px;
	font-family:var(--font-body);
	font-size:.9375rem;
	font-weight:600;
	text-decoration:none;
	border:1px solid transparent;
	transition:background .15s ease,border-color .15s ease,transform .15s ease
}
.work-cta:hover{background:#e6e6e2;border-color:#dadad6}
.work-cta--arrow::after{content:' →';font-weight:600}

.work-visual{
	line-height:0;
	background:#ecebe8;
	transition:box-shadow .25s ease
}
.work-visual--inset{
	border:1px solid #e4e4e0;
	border-radius:16px;
	overflow:hidden;
	aspect-ratio:16/10
}
.work-card--hero .work-visual--inset{
	aspect-ratio:16/10
}
@media(min-width:900px){
	.work-card--hero .work-visual--inset{
		aspect-ratio:auto;
		min-height:min(320px,42vw);
		height:100%;
		position:relative;
		align-self:stretch
	}
	.work-card--hero .work-visual--inset img,.work-card--hero .work-visual--inset video{
		position:absolute;
		inset:0;
		width:100%;
		height:100%;
		object-fit:cover
	}
}
.work-visual--inset img,.work-visual--inset video{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block
}
.work-card--tile .work-visual--inset{
	flex-shrink:0;
	margin-top:.5rem
}

.about-grid{display:grid;gap:clamp(2.35rem,5.5vw,3.25rem);align-items:start}
@media(min-width:900px){.about-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);align-items:stretch}}
.about-copy{display:flex;flex-direction:column;min-width:0}
.about-copy > .section-eyebrow{margin-bottom:.85rem}
.about-copy > h2{margin-bottom:clamp(.65rem,1.8vw,.95rem);font-size:clamp(1.5rem,3vw,2rem);font-weight:400;line-height:1.2;letter-spacing:0;max-width:min(36rem,100%)}
.about-tagline{font-size:clamp(1rem,1.8vw,1.08rem);color:var(--text);font-weight:500;line-height:1.5;margin-bottom:clamp(1.15rem,2.8vw,1.6rem);max-width:36rem}
.about-prose{color:var(--muted);font-size:.9375rem;line-height:1.68;max-width:38rem}
.about-prose a{color:var(--text);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.about-prose a:hover{opacity:.75}
.about-prose p{margin-bottom:1.05rem}
.about-prose p:last-of-type{margin-bottom:0}
.about-sub{margin:clamp(1rem,2.5vw,1.35rem) 0 .45rem;font-family:var(--font-heading);font-size:clamp(1.05rem,1.9vw,1.2rem);font-weight:400;font-style:italic;letter-spacing:0;color:var(--text);line-height:1.35}
.about-gallery-wrap{position:relative;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);padding:clamp(.55rem,1.5vw,.85rem);box-shadow:none;height:fit-content}
@media(min-width:900px){.about-gallery-wrap{position:sticky;top:calc(3.75rem + .75rem)}}
#hr-gallery{max-width:100%;margin:0 auto;font-family:inherit}
#hr-gallery .main-image{position:relative;border-radius:8px;overflow:hidden;background:#eeede9;line-height:0;border:1px solid var(--border)}
#hr-gallery .main-image img{width:100%;height:auto;display:block;transition:opacity .15s ease}
#hr-gallery .thumbnails{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem;margin-top:.65rem;overflow:visible;padding-bottom:0;scrollbar-width:thin}
@media(min-width:520px){#hr-gallery .thumbnails{grid-template-columns:repeat(6,minmax(0,1fr));gap:.45rem}}
#hr-gallery .thumb{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:6px;cursor:pointer;opacity:.45;border:1px solid transparent;outline:none;transition:opacity .12s ease,border-color .12s ease}
#hr-gallery .thumb:hover{opacity:.85;border-color:rgba(0,0,0,.12)}
#hr-gallery .thumb.active{opacity:1;border-color:var(--text)}
#hr-gallery .thumb.preview-hover{opacity:1;border-color:rgba(0,0,0,.2)}
.about h2{color:var(--text)}
.about .medium-line{margin-top:clamp(1.25rem,3vw,1.75rem);padding-top:1.15rem;margin-bottom:0;font-size:.8125rem;color:var(--muted);border-top:1px solid var(--border);max-width:38rem}
.about .medium-line a{font-weight:500;color:var(--text);text-decoration:underline;text-underline-offset:3px}
.about .medium-line a:hover{opacity:.75}

.skills-section{display:flex;flex-direction:column;gap:clamp(2.5rem,5vw,3rem);width:100%}
.skills-title{font-size:clamp(1.1rem,2vw,1.25rem);font-weight:700;color:var(--text);margin:0 0 .9rem;font-family:var(--font-heading);letter-spacing:0}
.tags-wrap{display:flex;flex-wrap:wrap;gap:10px}
.tag{display:inline-flex;align-items:center;padding:8px 14px;border-radius:6px;font-size:.8125rem;font-weight:500;color:var(--muted);background:transparent;border:1px solid var(--border);cursor:default;transition:border-color .15s ease,color .15s ease}
.tag:hover{border-color:#c9c8c2;color:var(--text);transform:none}

.article-grid{display:grid;gap:clamp(1.35rem,2.5vw,1.75rem);align-items:stretch}
@media(min-width:640px){.article-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.article-grid{grid-template-columns:repeat(3,1fr)}}
.article-card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;text-decoration:none;display:flex;flex-direction:column;height:100%;min-height:0;background:var(--surface);transition:border-color .2s ease,box-shadow .2s ease}
.article-card:hover{box-shadow:var(--shadow-sm);transform:none;border-color:#d4d3cc}
.article-card .thumb{position:relative;flex-shrink:0;aspect-ratio:16/10;width:100%;background:#ebeae6;overflow:hidden}
.article-card .thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.article-card .thumb--empty{background:#e8e7e2}
.article-card .thumb--empty::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(-45deg,transparent,transparent 8px,rgba(0,0,0,.025) 8px,rgba(0,0,0,.025) 9px);pointer-events:none}
.article-card .body{padding:1.15rem 1.2rem 1.35rem;flex:1;display:flex;flex-direction:column;min-height:0}
.article-card .cat{font-size:.6875rem;font-weight:500;text-transform:none;letter-spacing:.02em;color:var(--muted);margin-bottom:.35rem}
.article-card .title{font-family:var(--font-heading);font-size:.9rem;font-weight:700;line-height:1.35;margin-bottom:.35rem;flex:1}
.article-card .date{font-size:.72rem;color:var(--muted);margin-top:auto;padding-top:.2rem}
.section-articles{padding-bottom:clamp(2.75rem,6vw,4.25rem)}
.section-articles .view-all{margin-top:clamp(1.85rem,3.5vw,2.5rem)}
.view-all{display:inline-block;font-weight:500;font-size:.8125rem;text-decoration:underline;text-underline-offset:3px}
.view-all:hover{opacity:.7}

.footer-site{padding:clamp(2.85rem,7vw,4rem) 0;border-top:1px solid var(--border);background:var(--bg)}
.footer-site-inner{display:flex;flex-direction:column;align-items:flex-start;gap:1.5rem;max-width:var(--max);margin:0 auto}
@media(min-width:640px){
	.footer-site-inner{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}
}
.footer-site .footer-email{font-size:.9375rem;font-weight:500;text-decoration:underline;text-underline-offset:3px;color:var(--text)}
.footer-site .footer-email:hover{opacity:.75}
.footer-social{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;padding:0;list-style:none;font-size:.8125rem;font-weight:450}
.footer-social a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.footer-social a:hover{color:var(--text)}
.footer-bar{padding:1rem 0;font-size:.75rem;color:var(--muted);text-align:left;border-top:1px solid var(--border);background:var(--bg)}
.footer-bar.wrap{max-width:var(--max)}

@media(max-width:767px){
	.nav-toggle{display:inline-flex}
	.nav-panel{display:none;width:100%;flex-basis:100%;padding:.5rem 0 .75rem}
	.nav.is-open .nav-panel{display:flex}
	.nav-links{flex-direction:column;align-items:flex-start;gap:.85rem;width:100%}
}

/* ——— Blog index ——— */
.blog-main{padding:clamp(2.5rem,6vw,4rem) 0}
.blog-main h1{font-family:var(--font-heading);font-size:clamp(1.65rem,3.8vw,2.25rem);font-weight:400;letter-spacing:0;line-height:1.2;margin-bottom:1.75rem}
.blog-grid{display:grid;gap:1.15rem}
@media(min-width:640px){.blog-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.blog-grid{grid-template-columns:repeat(3,1fr)}}
.blog-card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;text-decoration:none;display:block;color:inherit;transition:border-color .2s ease,box-shadow .2s ease;background:var(--surface)}
.blog-card:hover{box-shadow:var(--shadow-sm);border-color:#d4d3cc}
.blog-card .thumb{aspect-ratio:16/10;background:#ebeae6;position:relative;overflow:hidden}
.blog-card .thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.blog-card .body{padding:.95rem 1rem 1.1rem}
.blog-card .cat{font-size:.6875rem;font-weight:500;color:var(--muted);margin-bottom:.3rem}
.blog-card .title{font-size:.9rem;font-weight:700;line-height:1.35;margin-bottom:.3rem;font-family:var(--font-heading)}
.blog-card .date{font-size:.72rem;color:var(--muted)}
.blog-pager{display:flex;justify-content:space-between;align-items:center;margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--border);font-size:.8125rem;font-weight:500}
.blog-pager a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.blog-pager a:hover{color:var(--text)}
.blog-pager .disabled{opacity:.35;pointer-events:none;text-decoration:none}

/* ——— Single post ——— */
.single-article{max-width:620px;margin:0 auto;padding:clamp(2rem,6vw,3.5rem) clamp(1.25rem,4vw,2rem) 3rem}
.single-article .meta{font-size:.6875rem;font-weight:500;color:var(--muted);margin-bottom:.65rem;text-transform:none;letter-spacing:.02em}
.single-article h1{font-family:var(--font-heading);font-size:clamp(1.65rem,3.8vw,2.35rem);font-weight:400;letter-spacing:0;line-height:1.2;margin-bottom:.65rem}
.single-article .date{font-size:.8125rem;color:var(--muted);margin-bottom:1.75rem}
.single-article .thumb{margin-bottom:1.75rem;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border)}
.single-article .thumb img{width:100%;height:auto;display:block}
.single-prose{font-size:1rem;color:var(--text);line-height:1.65}
.single-prose > * + *{margin-top:1rem}
.single-prose h2,.single-prose h3{font-family:var(--font-heading);margin-top:1.75rem;margin-bottom:.45rem;font-weight:400;letter-spacing:0}
.single-prose h2{font-size:1.35rem}
.single-prose h3{font-style:italic;font-size:1.15rem}
.single-prose a{color:var(--text);text-decoration:underline;text-underline-offset:3px}
.single-prose ul,.single-prose ol{padding-left:1.2rem}
.post-nav{display:flex;justify-content:space-between;gap:1rem;margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--border);max-width:620px;margin-left:auto;margin-right:auto;padding-left:clamp(1.25rem,4vw,2rem);padding-right:clamp(1.25rem,4vw,2rem)}
.post-nav a{font-size:.8125rem;font-weight:500;color:var(--muted);text-decoration:underline;text-underline-offset:3px;max-width:45%}
.post-nav a:hover{color:var(--text)}
.back-all{display:block;text-align:center;margin-top:1.75rem;font-weight:500;font-size:.8125rem}
.back-all a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.back-all a:hover{color:var(--text)}

/* ——— Contact page ——— */
.contact-main{max-width:520px;margin:0 auto;padding:clamp(2.5rem,8vw,4rem) clamp(1.25rem,4vw,2rem) 3rem}
.contact-main h1{font-family:var(--font-heading);font-size:clamp(1.55rem,3.2vw,2rem);font-weight:400;letter-spacing:0;line-height:1.2;margin-bottom:.85rem}
.contact-lead{color:var(--muted);margin-bottom:1.75rem;font-size:.9375rem;line-height:1.55}
.contact-email-big{display:inline-block;padding:0;margin-bottom:2rem;font-size:.9375rem;font-weight:500;color:var(--text);text-decoration:underline;text-underline-offset:3px;border:none;background:none}
.contact-email-big:hover{opacity:.75}
.contact-main label{display:block;font-size:.75rem;font-weight:500;color:var(--muted);margin-bottom:.35rem;text-transform:none;letter-spacing:.02em}
.contact-main input,.contact-main textarea{width:100%;padding:.65rem .85rem;border:1px solid var(--border);border-radius:6px;font:inherit;margin-bottom:1rem;background:var(--surface)}
.contact-main textarea{min-height:120px;resize:vertical}
.contact-main button[type="submit"]{padding:.6rem 1rem;background:var(--accent);color:var(--surface);border:1px solid var(--accent);border-radius:var(--radius);font-weight:500;font-size:.875rem;cursor:pointer;font-family:var(--font-body)}
.contact-main button[type="submit"]:hover{background:#636363;border-color:#636363}
.contact-form-note{font-size:.75rem;color:var(--muted);margin-top:.75rem;line-height:1.5}
#form-status{margin-top:.75rem;font-size:.8125rem;font-weight:500}
