:root {
  --color-primary: #061b0e;
  --color-primary-soft: #d0e9d4;
  --color-accent: #0f7775;
  --color-accent-bright: #31a1a1;
  --color-surface: #fbf9f8;
  --color-surface-muted: #f0eded;
  --color-surface-low: #f6f3f2;
  --color-border: #c3c8c1;
  --color-text: #1b1c1c;
  --color-text-muted: #434843;
  --color-white: #ffffff;
  --font-main: "M PLUS 1p", "Mplus 1p", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --container: 1280px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(195, 200, 193, 0.28);
  background: rgba(251, 249, 248, 0.08);
  backdrop-filter: blur(16px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.is-scrolled {
  background: rgba(251, 249, 248, 0.94);
  box-shadow: 0 10px 30px rgba(6, 27, 14, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  width: 168px;
  height: 46px;
}

.brand-logo {
  display: block;
  width: 168px;
  height: 46px;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.25s ease;
}

.brand-logo-scrolled {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.site-nav.is-scrolled .brand-logo-default {
  opacity: 0;
}

.site-nav.is-scrolled .brand-logo-scrolled {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.site-nav:not(.is-scrolled) .brand,
.site-nav:not(.is-scrolled) .nav-links {
  color: var(--color-white);
}

.site-nav:not(.is-scrolled) .nav-links a:hover {
  color: var(--color-accent-bright);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 12px 22px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.button-primary:hover {
  background: #1b3022;
}

.button-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.button-accent:hover {
  background: var(--color-accent-bright);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.button-full {
  width: 100%;
}

.hero {
  position: relative;
  display: flex;
  min-height: 92vh;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  color: var(--color-white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(6, 27, 14, 0.72), rgba(6, 27, 14, 0.16) 65%, rgba(6, 27, 14, 0.04));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
}

.hero-content > * {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--color-accent-bright);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 10px;
  background: var(--color-accent);
  color: var(--color-white);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-main);
  color: inherit;
}

h1 {
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  font-weight: 700;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 700;
}

h3 {
  font-size: 23px;
  line-height: 1.25;
  font-weight: 600;
}

.hero-lead {
  margin: 24px 0 36px;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.section {
  padding: 96px 0;
  background: var(--color-surface);
}

.section-white {
  background: var(--color-white);
}

.section-muted {
  background: var(--color-surface-low);
}

.technical-grid {
  background-image: radial-gradient(circle, #e5e4e2 1px, transparent 1px);
  background-size: 32px 32px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.split-reverse {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
}

.section-copy p:not(.eyebrow),
.mission p,
.work-card p,
.value-item p,
.values-grid p {
  color: var(--color-text-muted);
}

.section-copy > p:not(.eyebrow),
.mission > p {
  margin: 28px 0 0;
  font-size: 19px;
}

.image-panel {
  position: relative;
}

.image-panel img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(195, 200, 193, 0.45);
}

.stat-card {
  position: absolute;
  left: -28px;
  bottom: -28px;
  min-width: 170px;
  padding: 24px;
  background: var(--color-primary);
  color: var(--color-white);
}

.stat-card strong {
  display: block;
  font-family: var(--font-main);
  font-size: 42px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-main);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.75;
}

.section-header {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header-left {
  margin-inline: 0;
  text-align: left;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.work-card {
  min-height: 310px;
  border: 1px solid rgba(195, 200, 193, 0.55);
  background: var(--color-white);
  padding: 30px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(6, 27, 14, 0.08);
}

.work-card > .material-symbols-outlined,
.work-card-image .material-symbols-outlined {
  margin-bottom: 22px;
  color: var(--color-accent);
  font-size: 42px;
}

.work-card h3 {
  margin-bottom: 14px;
}

.work-card p {
  margin: 0;
}

.work-card-image {
  position: relative;
  display: flex;
  min-height: 430px;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-white);
}

.work-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.7s ease;
}

.work-card-image:hover img {
  transform: scale(1.05);
}

.work-card-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(6, 27, 14, 0.94), rgba(6, 27, 14, 0.1));
}

.work-card-image div {
  position: relative;
  z-index: 1;
}

.work-card-image p,
.section-dark .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-white);
}

.pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 44px 44px;
}

.section-dark .container {
  position: relative;
  z-index: 1;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 64px;
  margin-top: 56px;
}

.value-item {
  display: flex;
  gap: 24px;
}

.value-item > span {
  color: var(--color-accent-bright);
  font-family: var(--font-main);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.38;
}

.value-item h3 {
  margin-bottom: 12px;
}

.value-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.image-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.image-strip img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border: 1px solid rgba(195, 200, 193, 0.45);
}

.image-strip img:first-child {
  margin-top: 48px;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.tool-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(195, 200, 193, 0.65);
  background: var(--color-surface-muted);
  padding: 12px 16px;
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: 13px;
}

.tool-item .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  border: 1px solid rgba(15, 119, 117, 0.32);
  background: rgba(15, 119, 117, 0.12);
  color: var(--color-accent);
  font-size: 20px;
  line-height: 1;
}

.mission {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: 56px;
}

.values-grid article {
  border-top: 1px solid var(--color-border);
  padding-top: 26px;
}

.values-grid h3 {
  margin-bottom: 12px;
  color: var(--color-accent);
}

.values-grid p {
  margin: 0;
}

.section-contact {
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.contact-list p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--color-text);
}

.contact-list .material-symbols-outlined {
  color: var(--color-accent);
}

.contact-form {
  display: grid;
  gap: 20px;
  border: 1px solid rgba(195, 200, 193, 0.55);
  background: var(--color-surface);
  padding: 34px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--color-text-muted);
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.4;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(195, 200, 193, 0.75);
  border-radius: 2px;
  background: var(--color-white);
  color: var(--color-text);
  padding: 12px;
  outline: none;
}

select {
  appearance: none;
  background-color: var(--color-surface-low);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-accent) 50%),
    linear-gradient(135deg, var(--color-accent) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 42px;
}

select option {
  background: var(--color-surface-low);
  color: var(--color-text);
}

select option:checked {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

select::-ms-expand {
  display: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(49, 161, 161, 0.14);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #ba1a1a;
  background: #fff8f7;
}

.field-error {
  color: #93000a;
  font-size: 12px;
  line-height: 1.4;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.form-status.is-success {
  color: var(--color-accent);
}

.form-status.is-error {
  color: #93000a;
}

.form-status.is-info {
  color: var(--color-text-muted);
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gutter);
}

.footer-logo {
  width: 172px;
  height: auto;
  margin-bottom: 18px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-main);
  font-size: 22px;
}

.footer-grid h2 {
  margin-bottom: 14px;
  color: var(--color-accent-bright);
  font-family: var(--font-main);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid a,
.footer-grid span {
  display: block;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .work-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split-reverse,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split-reverse .image-strip {
    order: 2;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .nav-inner {
    align-items: flex-start;
  }

  .brand {
    max-width: 180px;
    font-size: 18px;
  }

  .nav-cta {
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 104px;
  }

  .hero-actions,
  .form-row,
  .image-strip,
  .value-grid,
  .work-grid,
  .values-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .section {
    padding: 72px 0;
  }

  .section-header {
    text-align: left;
  }

  .stat-card {
    position: static;
    margin-top: 16px;
  }

  .work-card,
  .work-card-image {
    min-height: auto;
  }

  .value-item {
    gap: 16px;
  }

  .value-item > span {
    font-size: 34px;
  }

  .image-strip img,
  .image-strip img:first-child {
    min-height: 260px;
    margin-top: 0;
  }

  .contact-form {
    padding: 22px;
  }
}
