:root {
  --bg: #F2EFE8;
  --bg-deep: #E3DED0;
  --ink: #1D211F;
  --muted: #666B66;
  --accent: #2E5143;
  --accent-light: #A9C2A0;
  --line: rgba(29, 33, 31, .18);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --space: clamp(4rem, 9vw, 8rem);
  --pad: clamp(1.25rem, 5vw, 4rem);
  --max: 1240px;
  --ease: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
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, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons and links */
.btn { display: inline-block; padding: .85rem 1.6rem; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); font: 500 .95rem var(--sans); text-decoration: none; cursor: pointer; transition: background var(--ease), border-color var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-small { padding: .5rem 1.1rem; background: transparent; color: var(--ink); font-size: .9rem; }
.btn-small:hover { color: var(--bg); }
.text-link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color var(--ease); }
.text-link:hover { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color var(--ease), box-shadow var(--ease); }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(242, 239, 232, .96); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 1.1rem var(--pad); display: flex; align-items: center; gap: 2rem; transition: padding var(--ease); }
.site-header.scrolled .header-inner { padding-block: .6rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--accent); font: 500 1.35rem var(--serif); letter-spacing: -.01em; margin-right: auto; }
.logo span { color: var(--ink); }
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-size: .95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--accent); transition: right var(--ease); }
.nav a:hover::after { right: 0; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform var(--ease), top var(--ease); }
.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 { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) var(--pad) var(--space); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.tag { display: inline-block; font-size: .9rem; color: var(--accent); border-left: 2px solid var(--accent); padding-left: .7rem; margin-bottom: 1.75rem; }
.lead { max-width: 34rem; margin-top: 1.75rem; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 2.25rem; }
.hero-visual { position: relative; margin-bottom: -2.5rem; }
.hero-visual svg { width: 100%; aspect-ratio: 520 / 620; }
.hero-note { position: absolute; left: -2.5rem; bottom: 2.5rem; max-width: 15rem; background: var(--bg); border: 1px solid var(--line); padding: 1rem 1.25rem; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.hero-note strong { color: var(--ink); font-weight: 500; }
.hero-text { animation: rise .8s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* About */
.about { border-top: 1px solid var(--line); padding: var(--space) var(--pad); }
.about-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.5rem 2rem; }
.about-head { grid-column: 1 / span 7; }
.about-figure { grid-column: 9 / span 4; grid-row: 1 / span 2; margin: 0; }
.about-figure svg { width: 100%; aspect-ratio: 4 / 5; }
.about-copy { grid-column: 3 / span 6; display: grid; gap: 1.25rem; color: var(--muted); }
.statement { margin: 1rem 0; padding-left: 1.5rem; border-left: 3px solid var(--accent); font: 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.3 var(--serif); color: var(--ink); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.facts dt { font-size: .85rem; color: var(--accent); font-weight: 600; }
.facts dd { margin: .25rem 0 0; color: var(--ink); font-size: .98rem; line-height: 1.45; }

/* Services */
.services { background: var(--bg-deep); padding: var(--space) var(--pad); }
.services-head, .services-layout { max-width: var(--max); margin: 0 auto; }
.services-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.services-head p { max-width: 24rem; color: var(--muted); }
.services-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; }
.service .icon { width: 36px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.service p { color: var(--muted); font-size: 1rem; }
.featured { position: sticky; top: 100px; background: var(--accent); color: var(--bg); padding: clamp(1.75rem, 3vw, 2.75rem); }
.featured .icon { stroke: var(--accent-light); width: 48px; height: 48px; margin-bottom: 4rem; }
.featured h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.featured p { color: rgba(242, 239, 232, .82); }
.service-list .service { display: flex; gap: 1.5rem; padding: 1.6rem 0 1.6rem .25rem; border-top: 1px solid var(--line); transition: padding var(--ease), background var(--ease); }
.service-list .service:last-child { border-bottom: 1px solid var(--line); }
.service-list .service:hover { padding-left: 1rem; }
.service-list h3 { margin-bottom: .4rem; }

/* Approach */
.approach { background: var(--ink); color: var(--bg); padding: var(--space) var(--pad); }
.approach-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 4fr 8fr; gap: 3rem; }
.approach h2 { position: sticky; top: 110px; align-self: start; }
.benefits { list-style: none; margin: 0; padding: 0; }
.benefits li { display: grid; grid-template-columns: clamp(5rem, 11vw, 9rem) 1fr; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid rgba(242, 239, 232, .22); }
.benefits li:nth-child(even) { padding-left: clamp(0rem, 6vw, 5rem); }
.num { font: 300 clamp(3.5rem, 8vw, 6.5rem)/.9 var(--serif); color: var(--accent-light); }
.benefits h3 { margin-bottom: .6rem; }
.benefits p { color: rgba(242, 239, 232, .7); max-width: 32rem; }

/* Contact */
.contact { padding: var(--space) var(--pad); }
.contact-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 7vw, 7rem); }
.contact-info { display: grid; gap: 1.5rem; align-content: start; }
.contact-info p { color: var(--muted); }
address { font-style: normal; border-left: 2px solid var(--accent); padding-left: 1rem; line-height: 1.6; }
.mail { color: var(--accent); font: 400 1.4rem var(--serif); text-decoration: none; border-bottom: 1px solid currentColor; }
.form { display: grid; gap: 1.25rem; border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.5rem); }
.field { display: grid; gap: .35rem; }
.field label { font-size: .9rem; font-weight: 500; }
.field input, .field textarea { width: 100%; padding: .75rem .85rem; background: transparent; border: 1px solid var(--line); border-radius: 0; font: inherit; color: var(--ink); transition: border-color var(--ease); }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field.invalid input, .field.invalid textarea { border-color: #9B2C2C; }
.error { min-height: 0; font-size: .85rem; color: #9B2C2C; }
.form .btn { justify-self: start; }
.form-status { font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.fail { color: #9B2C2C; }

/* Footer */
.site-footer { background: var(--bg-deep); padding: 4rem var(--pad) 2rem; font-size: .95rem; color: var(--muted); }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 2.5rem; }
.footer-grid p + p { margin-top: .75rem; }
.footer-name { font: 500 1.5rem var(--serif); color: var(--ink); margin-bottom: .75rem; }
.footer-grid nav { display: grid; gap: .4rem; align-content: start; }
.site-footer a { text-decoration: none; transition: color var(--ease); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { max-width: var(--max); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom a + a { margin-left: 1.5rem; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 1rem 0 0 auto; }
  .hero-note { left: -1rem; }
  .about-head, .about-figure, .about-copy { grid-column: 1 / -1; grid-row: auto; }
  .about-figure { max-width: 320px; }
  .services-layout, .approach-inner, .contact-grid { grid-template-columns: 1fr; }
  .featured, .approach h2 { position: static; }
  .featured .icon { margin-bottom: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .header-inner { gap: 1rem; }
  .btn-small { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--pad) 1rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .facts { grid-template-columns: 1fr; }
  .benefits li, .benefits li:nth-child(even) { grid-template-columns: 1fr; gap: .75rem; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
