/* ===== Design tokens ===== */
:root {
  --bg: #f3eee4;
  --bg-2: #e9e2d4;
  --ink: #1d1b18;
  --muted: #6a655c;
  --line: #cfc7b6;
  --accent: #b24a2c;
  --accent-l: #d9704a;
  --dark: #201d1a;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.label { font: 600 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.display { font-size: clamp(2.1rem, 4.6vw, 3.8rem); margin-top: 1rem; max-width: 18ch; }
.lead { font-size: 1.2rem; line-height: 1.55; }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.alt { background: var(--bg-2); }
.dark { background: var(--dark); color: var(--bg); }
.dark .label { color: var(--accent-l); }

/* ===== Buttons & links ===== */
.btn { display: inline-block; padding: .85rem 1.5rem; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); font: 500 .92rem var(--font-body); text-decoration: none; cursor: pointer; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn.sm { padding: .5rem 1rem; font-size: .82rem; }
.link { font-size: .95rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .25s; }
.link:hover { color: var(--accent); }

/* ===== Header ===== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.scrolled { background: rgba(243, 238, 228, .96); border-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .3s var(--ease); }
.site-header.scrolled .bar { height: 60px; }
.logo { position: relative; z-index: 2; font-family: var(--font-head); font-size: 1.3rem; letter-spacing: -.01em; text-decoration: none; }
.logo span { color: var(--accent); }
.logo small { font: 500 .7rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: .2rem; }
nav ul { display: flex; align-items: center; gap: 2rem; }
nav a:not(.btn) { position: relative; font-size: .92rem; text-decoration: none; }
nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-btn { display: none; position: relative; z-index: 2; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.menu-btn i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn i:nth-of-type(1) { top: 18px; }
.menu-btn i:nth-of-type(2) { top: 26px; }
.menu-btn[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: 9.5rem 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.tag { padding-left: 2.4rem; position: relative; }
.tag::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.7rem; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); margin: 1.4rem 0 1.6rem; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero .lead { max-width: 46ch; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin: 2.2rem 0 3rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; padding-top: 1.4rem; border-top: 1px solid var(--ink); }
.facts dt { font: 600 .7rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .3rem 0 0; font-size: .95rem; line-height: 1.4; }

.art { position: relative; aspect-ratio: 4 / 5; }
.blk { position: absolute; }
.b1 { top: 0; right: 0; width: 72%; height: 62%; background: var(--accent); color: var(--bg); }
.b1 span { position: absolute; left: 1.2rem; bottom: .6rem; font: 300 clamp(4rem, 9vw, 7rem)/1 var(--font-head); }
.b2 { left: 0; bottom: 9%; width: 64%; height: 50%; background: var(--dark); overflow: hidden; }
.b2 svg { width: 100%; height: 100%; }
.b3 { right: 6%; bottom: 14%; width: 22%; aspect-ratio: 1; border: 1px solid var(--ink); }
.cap { position: absolute; left: 0; bottom: 0; font-size: .75rem; color: var(--muted); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 7vw, 6rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.vis { aspect-ratio: 3 / 3.7; overflow: hidden; }
.vis svg { width: 100%; height: 100%; }
.about-visual figcaption { margin-top: .7rem; font-size: .75rem; color: var(--muted); }
.about-text { padding-top: 3rem; }
.about-text p + p { margin-top: 1.1rem; color: var(--muted); }
.about-text .lead { color: var(--ink); }
blockquote { margin: 2.2rem 0 !important; padding-left: 1.4rem; border-left: 3px solid var(--accent); font: 400 1.5rem/1.3 var(--font-head); letter-spacing: -.01em; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.mini li { font-size: .88rem; line-height: 1.45; color: var(--muted); }
.mini strong { display: block; margin-bottom: .3rem; font-size: .95rem; color: var(--ink); }

/* ===== Services ===== */
.svc-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 6vw, 5rem); }
.svc-intro { position: sticky; top: 110px; align-self: start; }
.svc-intro p:last-child { margin-top: 1.4rem; color: var(--muted); max-width: 34ch; }
.svc { display: grid; grid-template-columns: 3rem 1fr 2.2rem; gap: 1rem; align-items: start; padding: 1.8rem 0; border-top: 1px solid var(--line); transition: padding .35s var(--ease), background .35s; }
.svc:nth-last-child(1) { border-bottom: 1px solid var(--line); }
.svc:hover { padding-left: 1rem; padding-right: 1rem; background: rgba(255, 255, 255, .45); }
.svc .n { padding-top: .55rem; font: 600 .8rem var(--font-body); color: var(--accent); }
.svc h3 { font-size: 1.6rem; }
.svc p { margin-top: .5rem; max-width: 52ch; color: var(--muted); font-size: .98rem; }
.ico { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; color: var(--muted); transition: color .3s; }
.svc:hover .ico { color: var(--accent); }
.svc.feat { padding: 2.6rem 1.6rem; background: var(--ink); color: var(--bg); border-top: 0; margin-bottom: 0; }
.svc.feat:hover { padding: 2.6rem 1.6rem; background: var(--ink); }
.svc.feat h3 { font-size: clamp(2rem, 4vw, 3rem); }
.svc.feat p { color: #c9c2b4; }
.svc.feat .n, .svc.feat .ico { color: var(--accent-l); }

/* ===== Approach ===== */
.ben-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: 4rem 0 3.5rem; }
.ben { padding-top: 1.5rem; border-top: 1px solid #4a443d; }
.ben:nth-child(even) { margin-top: 3.5rem; }
.num { font: 300 clamp(3.5rem, 6vw, 5.5rem)/1 var(--font-head); color: var(--accent-l); }
.ben h3 { font-size: 1.4rem; margin: 1rem 0 .6rem; }
.ben p { color: #b9b2a5; font-size: .96rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 7vw, 6rem); }
.contact-grid .lead { margin: 1.4rem 0 2.2rem; color: var(--muted); max-width: 40ch; }
address { font-style: normal; padding-top: 1.4rem; border-top: 1px solid var(--ink); line-height: 1.7; }
.mail { display: inline-block; margin-top: 1.2rem; font: 400 1.5rem var(--font-head); text-decoration: none; border-bottom: 1px solid var(--accent); transition: color .25s; }
.mail:hover { color: var(--accent); }
.field { margin-bottom: 1.3rem; }
label { display: block; margin-bottom: .2rem; font: 600 .75rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
label em { font-style: normal; font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
input, textarea { width: 100%; padding: .7rem 0; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; color: var(--ink); font: inherit; resize: vertical; transition: border-color .25s, box-shadow .25s; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
[aria-invalid="true"] { border-color: #9c2a1a; }
.err { display: block; min-height: 1.2em; margin-top: .25rem; font-size: .82rem; color: #9c2a1a; }
form .btn { margin-top: .6rem; padding: 1rem 2.2rem; }
.status { margin-top: 1.2rem; font-size: .95rem; }
.status.ok { padding: 1rem 1.2rem; border-left: 3px solid #3d6b4a; background: #e4ebdf; }
.status.bad { padding: 1rem 1.2rem; border-left: 3px solid #9c2a1a; background: #f1ddd6; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 4rem; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 2.5rem; }
.foot-grid p { margin-top: 1rem; color: var(--muted); max-width: 36ch; }
.foot-grid div:nth-child(n+3) p { margin-top: 0; }
.foot-grid h4 { margin-bottom: 1rem; font: 600 .72rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-grid li { margin-bottom: .45rem; }
.foot-grid a:not(.logo) { text-decoration: none; transition: color .25s; }
.foot-grid a:not(.logo):hover { color: var(--accent); }
.copy { margin-top: 3rem; padding-top: 1.4rem; padding-bottom: 2rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }

/* ===== Reveal on scroll ===== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .svc-grid, .contact-grid { grid-template-columns: 1fr; }
  .art { max-width: 460px; aspect-ratio: 5 / 4.6; }
  .about-visual { max-width: 380px; }
  .about-text { padding-top: 0; }
  .svc-intro { position: static; }
  .ben-grid { grid-template-columns: repeat(2, 1fr); }
  .ben:nth-child(even) { margin-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  nav { position: fixed; inset: 0; z-index: 1; padding: 6rem var(--pad) 2rem; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  nav.open { opacity: 1; visibility: visible; }
  nav ul { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  nav a:not(.btn) { font: 400 2rem var(--font-head); }
}
@media (max-width: 560px) {
  .facts, .mini, .ben-grid, .foot-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 2.2rem 1fr; }
  .svc .ico { display: none; }
  .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
