/* ---------- Tokens ---------- */
:root {
  --bg: #f1eee7;
  --bg-alt: #e6e1d6;
  --ink: #1f1e1b;
  --muted: #67625a;
  --accent: #24503a;
  --accent-soft: #a8c8b0;
  --dark: #1c1b19;
  --line: rgba(31, 30, 27, .2);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --header-h: 68px;
  --t: .3s ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd, ol, blockquote { margin: 0; }
ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08; }
h3 { font-size: 1.5rem; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: var(--section); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-block; padding: .9rem 1.6rem; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 2px; font: 500 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background var(--t), border-color var(--t), transform var(--t); }
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.1rem; background: transparent; color: var(--ink); font-size: .875rem; }
.btn-sm:hover { color: var(--bg); }
.link { font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: color var(--t), background-size var(--t); }
.link:hover { color: var(--accent); background-size: 40% 1px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background var(--t), border-color var(--t), height var(--t); border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(241, 238, 231, .96); border-color: var(--line); --header-h: 60px; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: inline-flex; align-items: baseline; gap: .55rem; text-decoration: none; }
.logo b { font: 600 1.5rem/1 var(--serif); letter-spacing: -.03em; }
.logo span { font-size: .85rem; color: var(--muted); padding-left: .55rem; border-left: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 2rem; font-size: .95rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); transition: color var(--t); }
.nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform var(--t), top var(--t); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.tag { display: inline-block; margin-bottom: 1.75rem; padding-left: .9rem; border-left: 3px solid var(--accent); font-size: .95rem; color: var(--muted); }
.hero h1 { font-size: clamp(2.9rem, 7.2vw, 6.2rem); line-height: .98; letter-spacing: -.035em; margin-bottom: 1.75rem; }
.lead { max-width: 34rem; font-size: 1.15rem; color: var(--muted); margin-bottom: 2.25rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.hero-visual { position: relative; min-height: clamp(380px, 46vw, 600px); }
.hero-visual figure { position: absolute; overflow: hidden; background: var(--bg-alt); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hv-a { top: 0; right: 0; width: 78%; height: 88%; }
.hv-b { left: 0; bottom: 6%; width: 46%; aspect-ratio: 4 / 3; border: 8px solid var(--bg); }
.hv-note { position: absolute; right: 0; bottom: 0; padding: 1rem 1.25rem; background: var(--dark); color: #e9e4d9; font-size: .85rem; line-height: 1.5; }
.hv-note b { display: block; font: 400 1.1rem/1.3 var(--serif); color: #fff; }

/* ---------- About ---------- */
.about { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); }
.about-head h2 { margin-bottom: 2.5rem; }
.about-img { width: 82%; aspect-ratio: 7 / 9; overflow: hidden; background: var(--bg); margin-left: -2rem; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-body { padding-top: clamp(0rem, 6vw, 5rem); }
.cols { columns: 2 16rem; column-gap: 2.5rem; color: var(--muted); }
.cols p + p { margin-top: 1rem; }
blockquote { margin: 3rem 0 3rem clamp(0rem, 4vw, 3rem); padding-left: 1.5rem; border-left: 3px solid var(--accent); font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.3 var(--serif); letter-spacing: -.015em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 1.25rem 1rem 0 0; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { font: 400 1.6rem/1.3 var(--serif); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.services-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.services-head h2 { margin-bottom: 1.25rem; }
.services-head p { color: var(--muted); max-width: 20rem; }
.svc { display: grid; grid-template-columns: 3rem 2.5rem 1fr; gap: 1.5rem; align-items: start; padding: 2rem 0; border-top: 1px solid var(--line); transition: padding var(--t), background var(--t); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc:hover { padding-left: 1rem; background: linear-gradient(90deg, rgba(36, 80, 58, .07), transparent); }
.svc .n { font: 400 1rem/2.4 var(--serif); color: var(--muted); }
.svc svg { width: 2.5rem; height: 2.5rem; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { margin-bottom: .5rem; transition: color var(--t); }
.svc:hover h3 { color: var(--accent); }
.svc p { color: var(--muted); max-width: 36rem; }

/* ---------- Approach (dark) ---------- */
.approach { background: var(--dark); color: #ece7dc; }
.approach h2 { max-width: 14ch; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.ap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.ap { padding-top: 1.5rem; border-top: 1px solid rgba(236, 231, 220, .28); }
.ap:nth-child(even) { margin-top: 3.5rem; }
.ap .n { display: block; font: 400 clamp(3.5rem, 6vw, 5.5rem)/1 var(--serif); color: var(--accent-soft); letter-spacing: -.04em; margin-bottom: 1.5rem; }
.ap h3 { margin-bottom: .75rem; color: #fff; }
.ap p { font-size: .98rem; color: #b9b3a6; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-info h2 { margin-bottom: 1.25rem; }
.contact-info > p { color: var(--muted); max-width: 26rem; margin-bottom: 2.5rem; }
address { font-style: normal; padding-top: 1.5rem; border-top: 1px solid var(--line); }
address p + p { margin-top: 1rem; }
address a { color: var(--accent); font-weight: 500; text-underline-offset: 3px; }
.form { padding: clamp(1.5rem, 4vw, 2.75rem); background: #f8f6f1; border: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { margin-bottom: 1.25rem; }
label { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 500; }
input, textarea { width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 2px; transition: border-color var(--t); }
textarea { resize: vertical; min-height: 130px; }
input:hover, textarea:hover { border-color: var(--muted); }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
[aria-invalid="true"] { border-color: #a1321f; }
.error { display: block; min-height: 1.2rem; margin-top: .3rem; font-size: .85rem; color: #a1321f; }
.status { margin-top: 1.25rem; font-size: .95rem; }
.status:empty { display: none; }
.status.ok { padding-left: .9rem; border-left: 3px solid var(--accent); color: var(--accent); }
.status.fail { padding-left: .9rem; border-left: 3px solid #a1321f; color: #a1321f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); padding-top: clamp(3rem, 6vw, 5rem); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.foot-desc { margin-top: 1rem; max-width: 22rem; color: var(--muted); }
.site-footer h4 { margin-bottom: 1rem; font: 600 .95rem/1 var(--sans); }
.site-footer nav, .site-footer .foot-grid > div:nth-child(n+3) { color: var(--muted); }
.foot-grid a:not(.logo) { display: block; width: fit-content; margin-bottom: .55rem; text-decoration: none; transition: color var(--t); }
.foot-grid p a { display: inline; }
.foot-grid a:not(.logo):hover { color: var(--accent); }
.foot-grid p + p { margin-top: .75rem; }
.copy { padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ap-grid { grid-template-columns: repeat(2, 1fr); }
  .ap:nth-child(even) { margin-top: 0; }
  .ap:nth-child(n+3) { margin-top: 1.5rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0; flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 2rem var(--pad); background: var(--bg); font-size: 1.5rem; font-family: var(--serif); transform: translateX(100%); visibility: hidden; transition: transform var(--t), visibility var(--t); }
  .nav.open { transform: none; visibility: visible; }
  .nav a:not(.btn) { color: var(--ink); }
  .nav .btn { font: 500 1rem/1 var(--sans); }
  .hero-grid, .about-grid, .services-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
  .about-img { width: 70%; margin-left: 0; }
  .about-body { padding-top: 0; }
  .services-head { position: static; }
}
@media (max-width: 600px) {
  .svc { grid-template-columns: 2.25rem 1fr; gap: 1rem; }
  .svc svg { display: none; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts div { padding-bottom: .75rem; }
  .ap-grid, .foot-grid { grid-template-columns: 1fr; }
  .ap:nth-child(n+2) { margin-top: 1rem; }
  .logo span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
