:root {
  --ink: #121c1c;
  --dark: #101719;
  --paper: #f6f8f4;
  --muted: #52605c;
  --line: #cdd6cf;
  --lime: #d2f68c;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-clearance, 7.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
body { line-height: 1.55; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #38a391; outline-offset: 5px; }
.wrap { width: min(100% - 2 * var(--gutter), 81rem); margin-inline: auto; }
.skip { position: fixed; z-index: 5; inset: 1rem auto auto 1rem; padding: .75rem; background: var(--lime); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 3; background: #101719; color: white; border-bottom: 1px solid #ffffff24; }
.header-inner { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2.5rem); min-height: 6.5rem; padding-block: .45rem; }
.brand { display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: .2rem .8rem; min-width: 0; text-decoration: none; font-size: 1.5rem; font-weight: 750; letter-spacing: .08em; margin-inline-end: auto; }
.brand-slogan { grid-column: 1 / -1; color: var(--lime); font-size: .875rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.brand-logo { flex: none; border-radius: 50%; object-fit: cover; object-position: 46% center; background: #000; }
nav { display: flex; gap: clamp(1rem, 2.8vw, 2.5rem); }
nav a, .language { font-size: .9375rem; font-weight: 600; text-decoration: none; }
nav a { color: #e0e8e2; }
nav a:is(:hover, [aria-current]) { color: var(--lime); }
.language, .menu-toggle { border: 1px solid #ffffff45; padding: .45rem .7rem; border-radius: .4rem; }
.language:hover, .menu-toggle:hover { border-color: var(--lime); }
.menu-toggle { font: inherit; color: inherit; background: transparent; cursor: pointer; }
.hero, .contact, footer { background: var(--dark); color: #f4f8f2; }
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-block-size: clamp(32rem, 53vw, 47rem);
  isolation: isolate;
}
.hero-image, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: center 55%; }
.hero::before { content: ""; z-index: 0; background: linear-gradient(90deg, #071717df, #07171786 54%, #07171719 92%); pointer-events: none; }
.hero-copy { position: relative; padding-block: clamp(4rem, 10vw, 9rem); }
.eyebrow { font-size: .875rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; color: var(--muted); margin-bottom: 1.1rem; }
.hero .eyebrow, .contact .eyebrow { color: var(--lime); }
h1, h2 { font-weight: 720; line-height: 1.01; letter-spacing: -.065em; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 7.6vw, 7.75rem); max-width: 17ch; }
h2 { font-size: clamp(2.15rem, 4.9vw, 4.75rem); }
#services-title { font-size: clamp(1.75rem, 3.5vw, 3rem); }
.contact h2 span { color: var(--lime); }
.hero-lead { color: #e2eae4; font-size: clamp(1rem, 1.6vw, 1.25rem); max-width: 34rem; margin-top: 1.35rem; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.35rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; min-height: 3.25rem; padding: .7rem 1.15rem; border-radius: .45rem; background: var(--lime); color: var(--dark); font-weight: 720; text-decoration: none; transition: background-color .2s ease; }
.button:hover { background: white; }
.text-link { text-underline-offset: .3em; }
.text-link:hover { color: var(--lime); }
.section { padding-block: clamp(3.5rem, 8vw, 8rem); }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 7vw, 7rem); align-items: start; }
.section-lead { max-width: 42ch; margin-block: 1.15rem; color: var(--muted); text-wrap: pretty; }
.service-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 650; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: 0 0 .65rem; height: .65rem; border: solid currentColor; border-width: 0 .12rem .12rem 0; transform: rotate(45deg); margin-inline-end: .2rem; }
details[open] summary::after { transform: rotate(225deg); }
summary:hover, details[open] summary { color: #256358; }
details p { color: var(--muted); padding-bottom: 1.2rem; max-width: 45ch; }
.about { background: #e7efe8; }
.description { display: grid; gap: 1.1rem; font-size: clamp(1.1rem, 1.65vw, 1.3rem); max-width: 53ch; align-self: center; }
.source-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1rem; font-size: .95rem; color: #185a50; }
.source-links a { text-underline-offset: .24em; }
.source-links a:hover { color: var(--ink); }
#projects, .contact > .section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
#projects h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.contact h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); }
#projects { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); align-items: start; gap: 1.5rem clamp(1rem, 3vw, 2.5rem); }
#projects h2 { grid-column: 1 / -1; }
.project-map { width: 100%; max-width: 27rem; justify-self: center; }
.project-map img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: .7rem; }
.project-map figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; padding-top: .65rem; color: var(--muted); font-size: .875rem; }
.project-map-legend { display: inline-flex; align-items: center; gap: .5rem; }
.project-map-legend::before { content: ""; flex: none; width: .8rem; height: .8rem; border-radius: .2rem; background: #256358; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.project { display: grid; align-content: start; gap: .35rem; border: 1px solid var(--line); border-radius: .45rem; padding: .85rem 1rem; }
.project h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.025em; }
.project p { color: var(--muted); line-height: 1.4; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem clamp(1.25rem, 4vw, 3rem); margin-top: 1.35rem; align-items: start; }
.contact-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem; }
.contact-people > div, .office { border: 1px solid #ffffff35; border-radius: .45rem; padding: .85rem 1rem; overflow-wrap: anywhere; }
.contact-grid h3 { font-size: 1rem; margin-bottom: .15rem; }
.contact-grid p, .contact-grid address { color: #c7d4cd; }
.contact-grid address { font-style: normal; }
.contact-people a { display: block; }
.contact-grid a { width: fit-content; max-width: 100%; margin-top: .2rem; text-underline-offset: .22em; }
.contact-grid a:hover, footer a:hover { color: var(--lime); }
.office { display: grid; gap: .3rem; align-content: start; }
.office iframe { width: 100%; height: 12.5rem; border: 0; border-radius: .35rem; margin-top: .25rem; background: #253334; }
footer { border-top: 1px solid #ffffff35; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1.4rem; color: #c7d4cd; font-size: .9rem; }
@media (max-width: 56rem) {
  #projects { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48rem) {
  :root { --header-clearance: 7rem; }
  .header-inner { flex-wrap: wrap; gap: .65rem; min-height: 5.25rem; padding-block: .65rem; }
  .brand { column-gap: .55rem; font-size: 1.25rem; }
  .brand-slogan { font-size: .78rem; }
  .brand-logo { width: 56px; height: 56px; }
  nav { order: 4; width: 100%; flex-wrap: wrap; row-gap: .5rem; padding: .35rem 0; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-block-size: 31rem; }
  .hero-image { object-position: 60% center; }
  .hero::before { background: linear-gradient(90deg, #071717e0, #07171788); }
  h1 { font-size: clamp(2.65rem, 10vw, 5.5rem); }
}
@media (max-width: 31rem) {
  .project-grid, .contact-people { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
