@font-face {
  font-family: Geist;
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f0e8;
  --bg-elev: #fffcf6;
  --ink: #171614;
  --muted: #5c5850;
  --line: #ddd6c8;
  --accent: #1c4f4a;
  --accent-hover: #143c38;
  --accent-soft: #e4eeec;
  --focus: #1c4f4a;
  --max: 68rem;
  --header: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: Geist, "Liberation Sans", "Segoe UI", system-ui, sans-serif;
  font-weight: 430;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 0.25rem;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

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

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand svg { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }

nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  flex-wrap: wrap;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
nav a:hover { color: var(--accent); }
nav .lang {
  color: var(--muted);
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
  font-weight: 500;
}
nav .lang[aria-current="page"] {
  color: var(--ink);
  pointer-events: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(36rem, 88svh);
  display: flex;
  align-items: flex-end;
  color: #f4f1ea;
  padding: 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 18, 17, 0.28) 0%, rgba(12, 20, 19, 0.55) 42%, rgba(10, 16, 15, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 16, 15, 0.78) 0%, rgba(10, 16, 15, 0.42) 52%, rgba(10, 16, 15, 0.18) 100%);
}
.hero-content {
  position: relative;
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero .kicker { color: #c5d8d4; }
.hero h1 { color: #f7f4ee; }
.hero .lede { color: #ddd8cd; }
.hero .plain-link {
  color: #f4f1ea;
  text-decoration-color: rgba(244, 241, 234, 0.45);
}
.hero .plain-link:hover { color: #fff; }

.kicker {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 7.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
  max-width: 14ch;
}

.lede {
  margin: 0 0 2rem;
  max-width: 38rem;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #f7f4ee;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1.25rem;
  border-radius: 0.35rem;
  border: 1px solid var(--accent);
}
.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.plain-link {
  color: var(--ink);
  font-weight: 550;
  text-decoration-color: var(--line);
}
.plain-link:hover { color: var(--accent); }

section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
  align-items: baseline;
}

.section-head h2 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8e2d6;
}
.card-body { padding: 1.2rem 1.35rem 1.4rem; }
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.card p { margin: 0; color: var(--muted); }

.jobs { display: grid; gap: 0; }

article.job {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 0.35rem 1.5rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.job-meta {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  padding-top: 0.2rem;
}

.job h3 {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.job .role {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 550;
}
.job p { margin: 0; color: var(--muted); }

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "copy visual"
    "facts visual";
  gap: 1.5rem 2.25rem;
  align-items: start;
}
.about-copy { grid-area: copy; }
.about-copy p { margin: 0 0 1rem; color: var(--muted); }
.about-copy p:last-child { margin-bottom: 0; }
.about-grid > .facts { grid-area: facts; }
.about-visual { grid-area: visual; margin: 0; }
.about-visual img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  object-position: 78% 20%;
  background: #e8e2d6;
}

.facts {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.3rem 1.4rem;
}
.facts h3 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.facts dl { margin: 0; }
.facts div { padding: 0.55rem 0; border-top: 1px solid var(--line); }
.facts div:first-of-type { border-top: 0; padding-top: 0; }
.facts dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.facts dd { margin: 0; font-weight: 550; }

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-box a {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: var(--ink);
}
.contact-box a:hover { border-color: var(--accent); }
.contact-box span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.contact-box strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  word-break: break-word;
}

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
footer p { margin: 0; max-width: 40rem; }
footer .legal { line-height: 1.55; }

@media (max-width: 800px) {
  .wrap,
  .hero-content { width: min(calc(100% - 1.75rem), var(--max)); }
  .hero { min-height: min(28rem, 82svh); }
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "facts";
  }
  .about-visual img { aspect-ratio: 16 / 10; object-position: 75% 22%; }
  .section-head,
  .about-grid,
  article.job,
  .services,
  .contact-box {
    grid-template-columns: 1fr;
  }
  .section-head { gap: 0.4rem; margin-bottom: 1.4rem; }
  article.job { gap: 0.2rem; padding: 1.2rem 0; }
  section { padding: 2.5rem 0; }
  header { height: auto; }
  :root { --header: auto; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.45rem;
    padding: 0.7rem 0 0.55rem;
  }
  nav { display: contents; }
  .nav-primary {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 0.15rem 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
  }
  nav .lang {
    grid-column: 2;
    grid-row: 1;
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 520px) {
  nav a { font-size: 0.85rem; }
  .hero h1 { max-width: none; }
  .contact-box strong { font-size: 1.02rem; }
}

@media print {
  header { position: static; backdrop-filter: none; }
  .btn { border: 1px solid var(--ink); color: var(--ink); background: none; }
}
