:root {
  --ink: #17211f;
  --ink-soft: #46534f;
  --paper: #f7f7f2;
  --surface: #ffffff;
  --line: #dce2dc;
  --brand: #1e594a;
  --brand-dark: #123d33;
  --accent: #d88a3d;
  --accent-soft: #f4e1cd;
  --max: 72rem;
  --radius: 0.9rem;
  --shadow: 0 1rem 2.5rem rgba(23, 33, 31, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(220, 226, 220, .9); background: rgba(247, 247, 242, .94); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; flex-direction: column; color: var(--ink); text-decoration: none; line-height: 1.15; }
.brand strong { font-size: 1.02rem; letter-spacing: -.02em; }
.brand span { margin-top: .2rem; color: var(--ink-soft); font-size: .76rem; letter-spacing: .11em; text-transform: uppercase; }
.nav-toggle { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.site-nav { display: grid; position: static; padding: .5rem; border-top: 1px solid var(--line); background: var(--surface); }
.js .site-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.js .site-nav.is-open { display: grid; }
.site-nav a { padding: .7rem; color: var(--ink); font-size: .94rem; font-weight: 650; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand); }

.hero { overflow: hidden; padding: 3.25rem 0 3rem; background: linear-gradient(135deg, #f7f7f2 0%, #edf2ed 100%); }
.hero-grid { display: grid; gap: 1.75rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.8rem; height: .15rem; background: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.13; letter-spacing: -.035em; }
h1 { max-width: 15ch; font-size: clamp(2.45rem, 9vw, 4.9rem); }
h2 { max-width: 22ch; font-size: clamp(1.85rem, 6vw, 3rem); }
h3 { font-size: 1.22rem; }
.hero-copy { max-width: 43rem; margin: 1.5rem 0 0; color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: .78rem 1.15rem; border: 1px solid var(--brand); border-radius: .6rem; background: var(--brand); color: #fff; font-weight: 750; text-decoration: none; }
.button:hover { background: var(--brand-dark); color: #fff; }
.button.secondary { background: transparent; color: var(--brand); }
.button.secondary:hover { background: #e6eee9; color: var(--brand-dark); }
.hero-mark { position: relative; min-height: 19rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); box-shadow: var(--shadow); }
.hero-mark::before, .hero-mark::after { content: ""; position: absolute; border: 2px solid var(--brand); }
.hero-mark::before { inset: 2rem 20% 4.5rem 2rem; }
.hero-mark::after { inset: 5rem 2rem 2rem 35%; border-color: var(--accent); }
.plan-label { position: absolute; left: 2.8rem; bottom: 2.7rem; z-index: 1; max-width: 15rem; padding: .8rem; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.hero-media { position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); box-shadow: var(--shadow); }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 44%; }
.hero-media figcaption { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; padding: .75rem .9rem; border-radius: .45rem; background: rgba(23, 33, 31, .92); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; margin: 1.35rem 0 0; padding: 0; color: var(--ink-soft); font-size: .92rem; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: .5rem; }
.hero-facts li::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: var(--accent); }

.section { padding: 4.5rem 0; }
.section.alt { background: var(--surface); }
.section-intro { display: grid; gap: 1rem; margin-bottom: 2rem; }
.section-intro p { max-width: 44rem; margin: 0; color: var(--ink-soft); }
.grid { display: grid; gap: 1rem; }
.cards { grid-template-columns: 1fr; }
.card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.alt .card { background: var(--paper); }
.card-number { display: block; margin-bottom: 2rem; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .13em; }
.card p { margin: .75rem 0 0; color: var(--ink-soft); }
.text-link { display: inline-block; margin-top: 1rem; font-weight: 750; }
.split { display: grid; gap: 2rem; align-items: start; }
.prose p { margin: 0 0 1rem; color: var(--ink-soft); }
.about-photo { overflow: hidden; max-width: 24rem; margin: 1.5rem 0 0; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--paper); }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: .8rem 0 .8rem 1.6rem; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
.region-list { display: grid; grid-template-columns: 1fr; gap: .75rem; padding: 0; list-style: none; }
.region-list a { display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.region-list a::after { content: "→"; color: var(--accent); }
.region-list a:hover { border-color: var(--brand); }
.service-feature { display: grid; gap: 1.5rem; margin-bottom: 1rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: var(--brand-dark); color: #fff; }
.service-feature p { max-width: 44rem; margin: .75rem 0 0; color: #d9e6e0; }
.service-feature .text-link { color: #fff; }
.service-grid { grid-template-columns: 1fr; }
.experience-panel { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.experience-panel p { margin: 0; color: var(--ink-soft); }
.experience-panel p + p { margin-top: 1rem; }
.contact-list { display: grid; gap: .65rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.contact-list a { color: inherit; overflow-wrap: anywhere; }
.contact-list.compact { margin-top: 0; }
.contact-list.compact a { color: #fff; }
.project-links { display: grid; gap: .8rem; margin-top: 1.5rem; }
.project-links a { display: block; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); font-weight: 750; text-decoration: none; }
.work-grid { display: grid; gap: 1rem; }
.work-card, .project-figure { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.work-image, .project-image { overflow: hidden; aspect-ratio: 4 / 3; background: #e8ecea; }
.work-image img, .project-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-card.technical img, .project-figure.technical img { object-fit: contain; }
.work-card:nth-child(2) img, .project-figure:not(.technical) img { object-position: center 72%; }
.work-card:nth-child(3) img { object-position: center 62%; }
.work-card figcaption { display: grid; gap: .35rem; padding: 1rem; }
.work-card figcaption strong { color: var(--brand); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.work-card figcaption span, .project-figure figcaption { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.project-links.inline { grid-template-columns: 1fr; margin-top: 1rem; }
.project-gallery { display: grid; gap: 1rem; }
.project-figure figcaption { padding: 1rem; }
.cta { padding: 3rem 0; background: var(--brand-dark); color: #fff; }
.cta h2 { color: #fff; }
.cta p { max-width: 45rem; color: #d9e6e0; }
.cta .button { border-color: #fff; background: #fff; color: var(--brand-dark); }

.page-hero { padding: 3.8rem 0; background: linear-gradient(140deg, #edf2ed 0%, #f7f7f2 70%); }
.page-hero .hero-copy { max-width: 50rem; }
.page-hero h1 { max-width: 17ch; font-size: clamp(2.35rem, 8vw, 4.5rem); }
.breadcrumb { margin-bottom: 1.5rem; color: var(--ink-soft); font-size: .88rem; }
.breadcrumb a { color: var(--ink-soft); }
.detail-grid { display: grid; gap: 1rem; }
.detail { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.detail p { margin: .55rem 0 0; color: var(--ink-soft); }
.note { padding: 1.25rem; border-left: 4px solid var(--accent); background: var(--accent-soft); }

.site-footer { padding: 3.5rem 0 1.5rem; background: var(--ink); color: #d6dfdb; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer .brand, .site-footer a { color: #fff; }
.site-footer .brand span { color: #aebbb5; }
.footer-title { margin: 0 0 .7rem; color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li + li { margin-top: .45rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #34443f; color: #9faca7; font-size: .8rem; }

@media (min-width: 704px) {
  .container { width: min(100% - 3rem, var(--max)); }
  .hero { padding: 4.75rem 0 4rem; }
  .hero-grid { gap: 2.5rem; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-media img { object-position: center 38%; }
  .service-feature { grid-template-columns: .7fr 1.3fr; align-items: center; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .region-list { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
  .section-intro { grid-template-columns: .9fr 1.1fr; align-items: end; }
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-links.inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-figure.featured { grid-column: 1 / -1; }
  .project-figure.featured .project-image { aspect-ratio: 16 / 9; }
}

@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(16rem, .75fr); }
  .hero-media { aspect-ratio: 4 / 5; }
  .hero-media img { object-position: center 44%; }
  .site-nav, .js .site-nav { display: flex; position: static; align-items: center; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .site-nav a { padding: .55rem .65rem; }
  .site-nav .nav-cta { margin-left: .4rem; padding-inline: .85rem; border-radius: .5rem; background: var(--brand); color: #fff; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.four { grid-template-columns: repeat(4, 1fr); }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
