:root {
  --bg: #f2f3f1;
  --surface: #e8eae6;
  --ink: #111416;
  --muted: #4f565a;
  --line: #d2d6d3;
  --line-strong: #a9b0ad;
  --accent: #1f4a3d;
  --accent-ink: #f2f3f1;
  --accent-muted: #c9d6cf;
  --error: #a33a2a;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1112;
    --surface: #161b1c;
    --ink: #e8ebe8;
    --muted: #a0a8a5;
    --line: #262d2e;
    --line-strong: #46504f;
    --accent: #8db8a5;
    --accent-ink: #0e1112;
    --accent-muted: #22352e;
    --error: #f0907e;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1;
  padding-left: 0.06em;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }

.nav .nav-cta {
  color: var(--ink);
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav .nav-cta:hover { border-color: var(--ink); }

@media (max-width: 760px) {
  .nav a:not(.nav-cta) { display: none; }
  .brand-name { font-size: 1.15rem; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 0;
  font: 500 0.95rem/1 var(--sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease), opacity 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.btn-link span { transition: transform 0.2s var(--ease); }
.btn-link:hover span { transform: translateX(3px); }

/* Hero */

.hero {
  display: grid;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 1rem + 4.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 15em;
}

.lede {
  max-width: 44ch;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 8px;
}

.hero-media {
  margin: 0;
  background: var(--surface);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 8fr 4fr;
    align-items: end;
    gap: 64px;
    padding-top: 72px;
    padding-bottom: 112px;
  }
  .hero-copy { padding-bottom: 8px; }
  .hero-media img {
    aspect-ratio: 4 / 5;
    max-height: min(68dvh, 640px);
  }
}

/* Sections */

.section {
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(16px, 2vw, 24px);
}

.section h2 {
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.4rem);
}

/* Company */

.company {
  display: grid;
  gap: 24px;
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.company-copy {
  display: grid;
  gap: 24px;
}

.statement {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.005em;
  max-width: 30ch;
}

.company-copy p:not(.statement) {
  max-width: 56ch;
  color: var(--muted);
}

@media (min-width: 960px) {
  .company { grid-template-columns: 4fr 8fr; gap: 72px; }
  .company h2 { padding-top: 0.25em; }
}

/* Services */

#services h2 { margin-bottom: clamp(32px, 4vw, 48px); }

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  background: var(--bg);
}

.service h3 { font-size: 1.6rem; }
.service p { color: var(--muted); max-width: 46ch; }

.service-feature {
  justify-content: flex-end;
  gap: 18px;
  min-height: 300px;
  background: var(--accent);
  color: var(--accent-ink);
}
.service-feature h3 { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.6rem); max-width: 14ch; }
.service-feature p { color: color-mix(in srgb, var(--accent-ink) 82%, var(--accent)); max-width: 40ch; }

@media (min-width: 640px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service-feature { grid-column: 1 / -1; min-height: 260px; }
}

@media (min-width: 1000px) {
  .services { grid-template-columns: 1.25fr 1fr 1fr; }
  .service-feature { grid-column: 1; grid-row: 1 / span 2; min-height: 0; padding: 40px 36px; }
  .service { padding: 36px 32px; }
}

/* Regions */

#operations h2 { margin-bottom: clamp(24px, 3vw, 40px); }

.regions {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.regions li {
  display: grid;
  gap: 10px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.regions h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.regions p { color: var(--muted); max-width: 58ch; }

.tag {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (min-width: 860px) {
  .regions li {
    grid-template-columns: 5fr 6fr 2fr;
    align-items: baseline;
    gap: 40px;
    padding: 36px 0;
  }
  .tag { justify-self: end; }
}

/* Contact */

#contact { padding-bottom: clamp(72px, 10vw, 128px); }

.contact {
  display: grid;
  gap: 48px;
}

.contact-info {
  display: grid;
  gap: 18px;
  align-content: start;
}
.contact-info > p:not(.eyebrow) { color: var(--muted); max-width: 46ch; }

address {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-style: normal;
  line-height: 1.7;
}

.address-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-wrap {
  background: var(--surface);
  padding: clamp(24px, 4vw, 44px);
}

.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
}

.optional { font-weight: 400; color: var(--muted); }

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

textarea { resize: vertical; min-height: 148px; }

input:hover,
select:hover,
textarea:hover { border-color: var(--muted); }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

[aria-invalid="true"] { border-color: var(--error); }

.select { position: relative; }
.select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select select { padding-right: 44px; cursor: pointer; }

.error {
  font-size: 0.85rem;
  color: var(--error);
}

.cf-turnstile { min-height: 65px; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 4px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status {
  font-size: 0.9rem;
  color: var(--error);
}

.form-success {
  display: grid;
  gap: 12px;
  padding: 24px 0;
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 2.2rem; }
.form-success p { color: var(--muted); max-width: 44ch; }

@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .field-full { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .contact { grid-template-columns: 5fr 7fr; gap: 72px; }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand .mark { color: var(--ink); width: 30px; height: 30px; font-size: 13px; flex: none; }

.footer-note { max-width: 62ch; }

@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .footer-note { justify-self: end; text-align: right; }
}

/* Motion: hero entry and section reveal, only when the visitor allows motion */

@media (prefers-reduced-motion: no-preference) {
  .load {
    animation: rise 0.9s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 90ms + 60ms);
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
