/* ---------- Tokens ---------- */
:root {
  --paper: #efede6;
  --paper-2: #e4e0d4;
  --ink: #1d1f1c;
  --muted: #5f625b;
  --accent: #1f4d3a;
  --accent-dark: #173a2c;
  --line: rgba(29, 31, 28, .18);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: clamp(3.5rem, 8vw, 7rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 1280px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: .9rem 1.7rem;
  font: 500 .95rem var(--font-body);
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn-small { padding: .5rem 1.1rem; font-size: .875rem; }
.text-link {
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .3s var(--ease), color .3s;
}
.text-link:hover { color: var(--accent); background-size: 40% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
  padding: 1.25rem 0;
}
.site-header.scrolled {
  background: rgba(239, 237, 230, .96);
  border-color: var(--line);
  padding: .6rem 0;
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo-mark {
  width: 26px; height: 26px; background: var(--accent);
  border-radius: 13px 13px 0 0; /* small arch */
}
.logo-text { font: 600 1.3rem/1 var(--font-display); display: flex; flex-direction: column; letter-spacing: -.01em; }
.logo-text small { font: 400 .68rem/1.3 var(--font-body); color: var(--muted); margin-top: 3px; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  text-decoration: none; font-size: .95rem; font-weight: 500; padding: .25rem 0;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size .3s var(--ease);
}
.nav ul a:hover { background-size: 100% 1px; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem);
  max-width: var(--max); margin: 0 auto; padding: 8rem var(--gutter) var(--space-l);
  align-items: center; min-height: 100vh;
}
.hero-tag {
  display: inline-block; font-size: .9rem; color: var(--accent); font-weight: 500;
  border-left: 3px solid var(--accent); padding-left: .75rem; margin-bottom: 1.75rem;
}
.hero h1 { font-size: clamp(2.8rem, 7.2vw, 6.2rem); font-weight: 400; margin-bottom: 1.75rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin-bottom: 2.25rem; }
.hero-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.hero-visual { position: relative; margin-right: calc(var(--gutter) * -1); }
.hero-visual svg { width: 100%; height: auto; aspect-ratio: 520 / 620; border-radius: var(--radius) 0 0 var(--radius); }
.hero-note {
  position: absolute; left: -2.5rem; bottom: 2.5rem; max-width: 15rem;
  background: var(--paper); border: 1px solid var(--ink); padding: 1rem 1.15rem;
  font-size: .88rem; line-height: 1.45;
}
.hero-note strong { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: .25rem; }
.hero-note span { color: var(--muted); }

/* ---------- About ---------- */
.about { padding: var(--space-l) var(--gutter); border-top: 1px solid var(--line); }
.about-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2rem; row-gap: 3rem;
}
.about-grid h2 { grid-column: 1 / 9; }
.about-figure { grid-column: 1 / 6; margin: 0; grid-row: 2; }
.about-figure svg { width: 100%; height: auto; border-radius: var(--radius); }
.about-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.about-copy { grid-column: 7 / 13; grid-row: 2; padding-top: 3rem; }
.about-copy .intro { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.35; margin-bottom: 1.5rem; }
.about-copy p { color: var(--muted); }
.about-copy .intro { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2.5rem 0 0; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-weight: 600; line-height: 1.35; }

/* ---------- Services ---------- */
.services { padding: var(--space-l) var(--gutter); background: var(--paper-2); }
.section-head, .service-feature, .service-list { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.section-head p { max-width: 26rem; color: var(--muted); margin: 0; }
.service-feature { display: grid; grid-template-columns: 1.3fr 1fr; border: 1px solid var(--ink); background: var(--paper); }
.service-feature-visual svg { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.service-feature-body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.service-feature-body h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 1.25rem 0 .75rem; }
.service-feature-body p { color: var(--muted); margin: 0; }
.icon { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.service-list { list-style: none; padding: 0; margin-top: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.service-list li {
  position: relative; padding: 2rem 1.5rem 2rem 0; border-bottom: 1px solid var(--line);
  grid-column: span 2; transition: padding-left .35s var(--ease), background .3s;
}
.service-list li:nth-child(4), .service-list li:nth-child(5) { grid-column: span 3; }
.service-list li:hover { padding-left: 1rem; background: rgba(255,255,255,.35); }
.service-list .num { position: absolute; top: 2rem; right: 1.5rem; font-family: var(--font-display); color: var(--muted); font-size: .95rem; }
.service-list .icon { margin-bottom: 1.1rem; }
.service-list h3 { margin-bottom: .5rem; }
.service-list p { color: var(--muted); margin: 0; font-size: 1rem; max-width: 26rem; }

/* ---------- Why ---------- */
.why { background: var(--ink); color: var(--paper); padding: var(--space-l) var(--gutter); }
.why-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 6vw, 6rem); }
.why h2 { position: sticky; top: 6rem; align-self: start; }
.why-list article {
  display: grid; grid-template-columns: 5.5rem 1fr; column-gap: 1.5rem;
  padding: 2rem 0; border-top: 1px solid rgba(239,237,230,.25);
}
.why-list article:last-child { border-bottom: 1px solid rgba(239,237,230,.25); }
.big { grid-row: span 2; font-family: var(--font-display); font-size: 4.5rem; line-height: .9; color: #86b59f; }
.why-list h3 { margin-bottom: .4rem; }
.why-list p { margin: 0; color: rgba(239,237,230,.72); max-width: 32rem; }

/* ---------- Contact ---------- */
.contact { padding: var(--space-l) var(--gutter); }
.contact-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info > p { color: var(--muted); max-width: 28rem; }
address { font-style: normal; margin-top: 2.5rem; padding-left: 1.25rem; border-left: 3px solid var(--accent); line-height: 1.7; }
address strong { display: block; margin-bottom: .3rem; }
.mail { display: inline-block; margin-top: .8rem; font-weight: 500; color: var(--accent); }
.form { background: var(--paper-2); padding: clamp(1.5rem, 4vw, 2.75rem); border-top: 3px solid var(--ink); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .35rem; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-bottom: 1px solid var(--ink);
  border-radius: 0; padding: .75rem .85rem; transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.field.invalid input, .field.invalid textarea { border-color: #a23a2a; }
.error { display: block; min-height: 1.2em; margin-top: .3rem; font-size: .83rem; color: #a23a2a; }
.form-status { margin: 1rem 0 0; font-size: .95rem; }
.form-status.success { color: var(--accent); font-weight: 500; }
.form-status.fail { color: #a23a2a; }

/* ---------- Footer ---------- */
.footer { background: var(--accent-dark); color: var(--paper); padding: 4rem var(--gutter) 2rem; font-size: .95rem; }
.footer-grid, .footer-bottom { max-width: var(--max); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 3rem; padding-bottom: 3rem; }
.footer-name { font: 600 1.5rem/1.2 var(--font-display); margin-bottom: .75rem; }
.footer-desc { color: rgba(239,237,230,.75); max-width: 24rem; }
.footer h4 { margin: 0 0 .9rem; font-size: .95rem; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .4rem; }
.footer a { text-decoration: none; color: rgba(239,237,230,.85); transition: color .2s; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(239,237,230,.25); padding-top: 1.5rem; font-size: .85rem; color: rgba(239,237,230,.7); }
.footer-bottom p { margin: 0; }
.footer-bottom a { margin-left: 1.25rem; }
.footer-bottom p:last-child a:first-child { margin-left: 0; }

/* ---------- Reveal ---------- */
.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: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 7rem; }
  .hero-visual { margin-right: 0; max-width: 520px; }
  .hero-visual svg { border-radius: var(--radius); }
  .hero-note { left: 1rem; }
  .about-grid h2 { grid-column: 1 / -1; }
  .about-figure { grid-column: 1 / 6; }
  .about-copy { grid-column: 6 / -1; padding-top: 0; }
  .facts { grid-template-columns: 1fr; gap: .75rem; }
  .why-inner { grid-template-columns: 1fr; }
  .why h2 { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: var(--paper);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2rem; padding: 2rem;
    transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
    border-left: 1px solid var(--line);
  }
  .nav.open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 1.25rem; }
  .nav ul a { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; }
  .menu-toggle { z-index: 60; }
  .section-head { flex-direction: column; align-items: start; }
  .service-feature { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .service-list li, .service-list li:nth-child(4), .service-list li:nth-child(5) { grid-column: auto; }
  .about-figure, .about-copy { grid-column: 1 / -1; grid-row: auto; }
  .about-figure { max-width: 420px; }
  .why-list article { grid-template-columns: 3.5rem 1fr; }
  .big { font-size: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
