/* ---------- Tokens ---------- */
:root {
  --bg: #f2eee4;
  --bg2: #e7e0d1;
  --ink: #1c1b19;
  --mute: #6a655c;
  --line: #cdc4b2;
  --acc: #6e1f2b;          /* oxblood, the one accent */
  --acc-light: #ecc9b6;    /* accent tint for dark backgrounds */
  --head: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gap: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 8rem);
  --max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; letter-spacing: -.03em; line-height: 1.05; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.75rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 600; max-width: 18em; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gap); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-block; padding: .95rem 1.7rem; background: var(--acc); color: var(--bg); border: 1px solid var(--acc); border-radius: 2px; font: 500 .95rem var(--body); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-sm { padding: .5rem 1.05rem; font-size: .85rem; background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sm:hover { background: var(--ink); color: var(--bg); }
.link { border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s; }
.link:hover { color: var(--acc); }

/* ---------- 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(242, 238, 228, .96); border-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 5rem; transition: height .3s; }
.scrolled .bar { height: 3.75rem; }
.logo { position: relative; z-index: 60; font: 600 1.05rem var(--head); letter-spacing: -.01em; }
.logo span { color: var(--acc); margin: 0 .1em; }
.nav { display: flex; align-items: center; gap: 2rem; font-size: .92rem; }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-btn { display: none; position: relative; z-index: 60; width: 2.5rem; height: 2.5rem; background: none; border: 0; cursor: pointer; }
.menu-btn i { position: absolute; left: .5rem; right: .5rem; height: 2px; background: var(--ink); transition: transform .3s; }
.menu-btn i:first-child { top: 1.05rem; }
.menu-btn i:last-child { top: 1.45rem; }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(.2rem) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-.2rem) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--gap); align-items: center; min-height: 100vh; min-height: 100svh; padding-top: 8rem; padding-bottom: 5rem; }
.lead { max-width: 34rem; margin: 1.75rem 0 2.25rem; font-size: 1.2rem; color: var(--mute); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.hero-art { position: relative; width: 100%; aspect-ratio: 4 / 5; }
.blk { position: absolute; }
.b1 { inset: 0 20% 16% 0; background: var(--acc); border-radius: 999px 999px 0 0; }
.b2 { right: 0; bottom: 0; width: 50%; height: 44%; background: repeating-linear-gradient(90deg, var(--ink) 0 7px, #34322e 7px 14px); }
.b3 { left: 0; bottom: 4%; width: 30%; aspect-ratio: 1; display: grid; place-items: center; background: var(--bg2); border: 1px solid var(--ink); }
.b3::after { content: ''; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ink); }
.tag { position: absolute; right: 0; top: 8%; max-width: 11rem; margin: 0; padding: .7rem .9rem; background: var(--bg); border: 1px solid var(--ink); font-size: .85rem; line-height: 1.4; }

/* ---------- About ---------- */
.about { padding-block: var(--section); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: calc(var(--gap) * 2); margin-top: 3.5rem; }
.about-text { max-width: 36rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0 0; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.facts dt { font: 600 2.6rem/1 var(--head); color: var(--acc); letter-spacing: -.03em; }
.facts dd { margin: .5rem 0 0; font-size: .88rem; line-height: 1.4; color: var(--mute); }
.about-fig { position: relative; margin: 2.5rem 0 0; padding-bottom: 2.5rem; }
.fig-bg { aspect-ratio: 4 / 5; background: var(--bg2); border: 1px solid var(--line); }
.about-fig figcaption { position: absolute; left: -2.5rem; right: 2rem; bottom: 0; padding: 1.5rem 1.6rem; background: var(--bg); border: 1px solid var(--ink); font: 500 1.35rem/1.3 var(--head); letter-spacing: -.02em; }

/* ---------- Services ---------- */
.services { background: var(--bg2); padding-block: var(--section); }
.svc-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: calc(var(--gap) * 2); align-items: start; }
.svc-head { position: sticky; top: 7rem; }
.svc-head p { margin-top: 1.5rem; max-width: 24rem; color: var(--mute); }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); transition: padding .3s; }
.svc svg { width: 2rem; height: 2rem; margin-top: .2rem; fill: none; stroke: var(--acc); stroke-width: 1.5; }
.svc p { margin: .5rem 0 0; color: var(--mute); max-width: 34rem; }
.svc h3 { transition: color .25s; }
.svc:hover { padding-left: .75rem; }
.svc:hover h3 { color: var(--acc); }
.feat { padding: 2.5rem 0; border-bottom-color: var(--ink); }
.feat h3 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.feat p { font-size: 1.12rem; color: var(--ink); }

/* ---------- Approach (contrast section) ---------- */
.why { background: var(--acc); color: var(--bg); padding-block: var(--section); }
.why h2 { margin-bottom: 4rem; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); border-top: 1px solid rgba(242, 238, 228, .4); padding-top: 2rem; }
.why-grid article:nth-child(even) { margin-top: 3.5rem; }
.big { display: block; margin-bottom: 1.5rem; font: 500 clamp(3.5rem, 7vw, 6rem)/1 var(--head); letter-spacing: -.04em; color: var(--acc-light); }
.why p { margin: .75rem 0 0; color: #e3cdc2; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: calc(var(--gap) * 2); padding-block: var(--section); align-items: start; }
.contact-info p { color: var(--mute); max-width: 28rem; }
.contact-info h2 { margin-bottom: 1.5rem; }
address { font-style: normal; }
.contact-info address { margin: 2rem 0 1rem; padding-left: 1rem; border-left: 2px solid var(--acc); line-height: 1.7; }
.mail { font: 500 1.5rem var(--head); color: var(--acc) !important; border-bottom: 1px solid var(--acc); letter-spacing: -.02em; }
.mail:hover { color: var(--ink) !important; border-color: var(--ink); }
.small { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; padding: clamp(1.5rem, 4vw, 2.75rem); background: #faf7f0; border: 1px solid var(--ink); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.full { grid-column: 1 / -1; }
label { font-size: .88rem; font-weight: 500; }
input, textarea { width: 100%; padding: .8rem .9rem; background: var(--bg); color: var(--ink); font: inherit; border: 1px solid var(--line); border-radius: 0; transition: border-color .2s; }
input:focus, textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: var(--acc); }
textarea { resize: vertical; }
.err { min-height: 1.2em; font-size: .82rem; color: #a11d1d; }
.invalid input, .invalid textarea { border-color: #a11d1d; }
.status { margin: 0; font-size: .95rem; }
.status.ok { color: #2f6b3a; }
.status.bad { color: #a11d1d; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc8ba; padding-top: 4.5rem; font-size: .93rem; }
.site-footer .logo { color: var(--bg); }
.site-footer .logo span { color: var(--acc-light); }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: var(--gap); padding-bottom: 3.5rem; }
.foot p { max-width: 20rem; margin-top: 1rem; }
.foot h4 { margin-bottom: 1rem; font-size: 1rem; color: var(--bg); letter-spacing: -.01em; }
.foot a { display: block; margin-bottom: .45rem; transition: color .2s; }
.foot a:hover { color: var(--acc-light); }
.foot address { line-height: 1.7; }
.foot .logo { display: inline-block; margin: 0; }
.copy { padding-block: 1.5rem; border-top: 1px solid #3a3833; font-size: .82rem; color: #9c9588; }

/* ---------- Reveal on scroll (only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .about-grid, .svc-grid, .contact { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 7rem; }
  .hero-art { max-width: 28rem; aspect-ratio: 1; }
  .about-fig { max-width: 26rem; margin-left: 2.5rem; }
  .svc-head { position: static; }
  .why-grid, .foot { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem; background: var(--bg); font: 600 1.8rem var(--head); transform: translateY(-100%); visibility: hidden; transition: transform .35s ease, visibility .35s; }
  .nav.open { transform: none; visibility: visible; }
  .nav .btn-sm { font: 500 1rem var(--body); padding: .8rem 1.4rem; }
}
@media (max-width: 560px) {
  .why-grid, .foot, form { grid-template-columns: 1fr; }
  .why-grid article:nth-child(even) { margin-top: 0; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .facts dt { font-size: 2rem; }
  .svc { grid-template-columns: 1fr; gap: .9rem; }
  .about-fig { margin-left: 1.5rem; }
  .about-fig figcaption { left: -1.5rem; right: 1rem; font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
