/* ---------- Tokens ---------- */
:root {
  --bg: #f3efe6;
  --ink: #1d1f1c;
  --muted: #65685f;
  --accent: #2b5645;
  --line: rgba(29, 31, 28, .18);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 11vw, 150px);
  --max: 1240px;
}

/* ---------- 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(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.9rem, 7.4vw, 6.2rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-block; background: var(--accent); color: var(--bg); border: 1px solid var(--accent); padding: 15px 28px; font: 500 .98rem var(--sans); text-decoration: none; cursor: pointer; border-radius: 2px; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--accent); }
.btn-small { padding: 9px 18px; font-size: .9rem; }
.text-link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(243, 239, 230, .96); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .25s; }
.scrolled .header-inner { height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 1.15rem var(--serif); letter-spacing: .06em; text-decoration: none; }
.logo-mark { width: 14px; height: 18px; background: var(--accent); border-radius: 7px 7px 0 0; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .95rem; }
.nav a:not(.btn) { text-decoration: none; position: relative; padding: 4px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(120px, 14vw, 170px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.tag { display: inline-block; font-size: .9rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 12px; margin-bottom: 28px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-top: 28px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero-art { position: relative; aspect-ratio: 4 / 5; margin-bottom: 28px; }
.art-main { position: relative; z-index: 1; width: 100%; height: 100%; }
.art-frame { position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--ink); }
.art-note { position: absolute; z-index: 2; left: -28px; bottom: -28px; background: var(--bg); border: 1px solid var(--ink); padding: 14px 18px; font-size: .88rem; line-height: 1.4; max-width: 230px; }
.art-note strong { display: block; font: 600 1rem var(--serif); }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px clamp(20px, 3vw, 40px); }
.about h2 { grid-column: 1 / span 8; max-width: 16em; }
.about-visual { grid-column: 1 / span 6; position: relative; margin-top: 20px; }
.about-visual svg { width: 100%; aspect-ratio: 3 / 2; }
.statement { position: relative; margin: -36px 0 0 36%; background: var(--bg); padding: 22px 0 0 24px; font: 500 1.3rem/1.35 var(--serif); border-left: 1px solid var(--ink); }
.about-copy { grid-column: 8 / span 5; padding-top: 28px; color: var(--muted); }
.facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; }

/* ---------- Services ---------- */
.services { background: #ebe5d8; }
.services-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-intro { position: sticky; top: 110px; }
.services-intro p { color: var(--muted); margin-top: 20px; max-width: 24em; }
.service-list { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--ink); }
.service { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 28px 0 28px 56px; border-bottom: 1px solid var(--line); position: relative; transition: padding .25s, background .25s; }
.service::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 30px; font: 500 1rem var(--serif); color: var(--muted); }
.service:hover { padding-left: 72px; background: rgba(243, 239, 230, .6); }
.service .icon { width: 36px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.service p { margin: 8px 0 0; color: var(--muted); max-width: 34em; }
.service.featured { padding-block: 44px; }
.service.featured h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* ---------- Approach (dark) ---------- */
.approach { background: var(--accent); color: var(--bg); }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid rgba(243, 239, 230, .4); }
.benefit { padding: 28px 24px 8px 0; }
.benefit + .benefit { padding-left: 24px; border-left: 1px solid rgba(243, 239, 230, .25); }
.num { display: block; font: 400 clamp(3.8rem, 7vw, 6rem)/1 var(--serif); margin-bottom: 22px; opacity: .9; }
.benefit h3 { margin-bottom: 12px; }
.benefit p { color: rgba(243, 239, 230, .8); font-size: 1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 7vw, 110px); }
.contact-info p { color: var(--muted); margin-top: 20px; max-width: 26em; }
address { font-style: normal; margin-top: 40px; border-top: 1px solid var(--ink); }
address p { display: grid; grid-template-columns: 90px 1fr; gap: 12px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); max-width: none; }
address span { color: var(--muted); font-size: .95rem; }
address a { color: var(--accent); }
.form { display: grid; gap: 22px; align-content: start; }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 10px 0; border-radius: 0; transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(43, 86, 69, .05); }
.field.invalid input, .field.invalid textarea { border-color: #9b2c2c; }
.error { display: block; min-height: 1.2em; color: #9b2c2c; font-size: .85rem; margin-top: 4px; }
.form .btn { justify-self: start; }
.form-status { margin: 0; padding: 0; font-weight: 500; }
.form-status.ok { border-left: 3px solid var(--accent); padding-left: 12px; color: var(--accent); }
.form-status.fail { border-left: 3px solid #9b2c2c; padding-left: 12px; color: #9b2c2c; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--ink); padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; }
.footer p { color: var(--muted); max-width: 22em; margin-top: 14px; }
.footer h4 { font: 600 1rem var(--sans); margin-bottom: 14px; }
.footer nav a, .footer-grid > div:last-child a { display: block; text-decoration: none; color: var(--muted); padding: 3px 0; }
.footer a:hover { color: var(--accent); }
.footer-grid p a { display: inline; }
.footer-bottom { margin-top: 56px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* ---------- Reveal ---------- */
.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: 960px) {
  .hero-grid, .services-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-left: 24px; }
  .about h2, .about-visual, .about-copy { grid-column: 1 / -1; }
  .about-visual { max-width: 640px; }
  .services-intro { position: static; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit:nth-child(3) { padding-left: 0; border-left: 0; }
  .benefit:nth-child(n+3) { border-top: 1px solid rgba(243, 239, 230, .25); margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0 0 auto; top: 0; padding: 96px var(--gutter) 32px; flex-direction: column; align-items: flex-start; gap: 18px; background: var(--bg); border-bottom: 1px solid var(--ink); font-size: 1.3rem; transform: translateY(-100%); visibility: hidden; transition: transform .3s ease, visibility .3s; z-index: -1; }
  .nav.open { transform: none; visibility: visible; }
  .nav .btn { font-size: 1rem; }
}
@media (max-width: 560px) {
  .art-frame { inset: 16px -12px -16px 16px; }
  .art-note { left: -12px; }
  .hero-art { margin-left: 12px; }
  .statement { margin-left: 12%; }
  .benefits, .footer-grid { grid-template-columns: 1fr; }
  .benefit, .benefit + .benefit { padding-left: 0; border-left: 0; }
  .benefit + .benefit { border-top: 1px solid rgba(243, 239, 230, .25); margin-top: 24px; }
  .service { grid-template-columns: 1fr; padding-left: 40px; }
  .service:hover { padding-left: 48px; }
  .facts div, address p { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
