:root {
  --forest: #154734;
  --forest-dark: #0b2319;
  --forest-deep: #071b13;
  --charcoal: #111111;
  --text: #252525;
  --muted: #656565;
  --white: #ffffff;
  --soft-white: #fafafa;
  --line: #e5e5e5;
  --max-width: 1580px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
ul { list-style: none; }
.container { width: min(calc(100% - 96px), var(--max-width)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.header-shell {
  position: relative;
  width: min(calc(100% - 96px), var(--max-width));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.brand {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
}
.brand-logo {
  width: 215px;
  max-height: 57px;
  object-fit: contain;
  object-position: left center;
}
.desktop-nav {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  height: 100%;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}
.desktop-nav a {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: #1b1b1b;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--forest);
  transition: width .2s ease;
}
.desktop-nav a:hover { color: var(--forest-dark); }
.desktop-nav a:hover::after { width: 100%; }
.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--forest-dark);
  font-size: 27px;
  font-weight: 700;
}
.mobile-nav { display: none; }

/* Hero */
.hero-static {
  position: relative;
  height: calc(100vh - 76px);
  min-height: 690px;
  max-height: 940px;
  overflow: hidden;
  background: var(--forest-dark);
}
.hero-static-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4,18,13,.60) 0%, rgba(4,18,13,.36) 45%, rgba(4,18,13,.10) 100%),
    linear-gradient(180deg, rgba(4,18,13,.05) 0%, rgba(4,18,13,.16) 65%, rgba(4,18,13,.52) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 96px), var(--max-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.hero-content { max-width: 1000px; color: white; transform: translateY(-12px); }
.hero-static h1 {
  font-family: var(--serif);
  font-size: clamp(60px,5.5vw,100px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 4px 30px rgba(0,0,0,.22);
}
.hero-description {
  max-width: 720px;
  margin-top: 32px;
  font-size: 21px;
  line-height: 1.65;
  color: rgba(255,255,255,.9);
}
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 42px; }
.hero-primary-button {
  min-height: 56px;
  padding: 16px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--forest-dark);
  font-size: 15px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.hero-primary-button:hover { background: #f1f1f1; transform: translateY(-2px); }
.hero-secondary-link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(255,255,255,.5);
  cursor: pointer;
}
.hero-secondary-link:hover { border-color: white; }
.hero-scroll-indicator {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-scroll-indicator div { width: 1px; height: 42px; background: rgba(255,255,255,.48); }

/* General */
.section { padding: 122px 0; }
.section-soft { background: var(--soft-white); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--forest); }
.eyebrow-light { color: rgba(255,255,255,.72); }
.eyebrow-light::before { background: rgba(255,255,255,.55); }
.section-intro {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr);
  gap: 95px;
  align-items: end;
  margin-bottom: 72px;
}
.section-intro h2,
.intro-grid h2,
.company-grid h2,
.no-big-project h2,
.technology-section h2 {
  font-family: var(--serif);
  color: var(--forest-dark);
  font-size: clamp(46px,4vw,66px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.section-intro > p {
  max-width: 610px;
  justify-self: end;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

/* Intro */
.intro-section { background: white; }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 110px; align-items: start; }
.intro-copy { padding-top: 42px; }
.intro-copy p { max-width: 660px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.intro-copy p + p { margin-top: 22px; }
.intro-copy .intro-lead { color: #282828; font-size: 21px; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-card { padding: 56px 46px 52px; border-right: 1px solid var(--line); }
.service-card:last-child { border-right: 0; }
.service-card > p { color: var(--muted); font-size: 16px; line-height: 1.75; }
.service-list { margin-top: 32px; border-top: 1px solid var(--line); }
.service-list li { padding: 10px 0; border-bottom: 1px solid var(--line); color: #464646; font-size: 14px; }

/* Problems */
.problem-list { border-top: 1px solid var(--line); }
.problem-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.6fr)
    minmax(270px, 0.8fr);

  gap: 48px;
  align-items: center;

  padding: 43px 0;

  border-bottom:
    1px solid var(--line);
}
.process-step h3 { margin-bottom: 10px; font-family: var(--serif); color: var(--forest-dark); font-size: 30px; font-weight: 400; }
.process-step p { max-width: 850px; color: var(--muted); font-size: 16px; line-height: 1.75; }

/* Industries */
.industries-section { background: var(--soft-white); }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.industries-grid > div {
  min-height: 150px;
  padding: 42px 38px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
}
.industries-grid > div:last-child { border-right: none; }
.industries-grid h3 {
  font-family: var(--serif);
  color: var(--forest-dark);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.25;
}

/* Company */
.company-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 110px; }
.company-copy { padding-top: 44px; }
.company-copy p { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.company-copy p + p { margin-top: 22px; }
.company-copy .company-lead { color: var(--forest-dark); font-family: var(--serif); font-size: 29px; line-height: 1.35; }

/* Technology */
.technology-section { padding: 105px 0; background: var(--forest); color: white; }
.technology-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.technology-section h2 { color: white; }
.technology-grid > div:last-child > p { max-width: 640px; margin-bottom: 38px; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.8; }
.technology-list { display: flex; flex-wrap: wrap; gap: 10px; }
.technology-list span { padding: 10px 15px; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.88); font-size: 13px; font-weight: 600; }

/* CTA */
.cta-section { padding: 115px 0; background: var(--forest-dark); color: white; }
.cta-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 90px; align-items: center; }
.cta-section h2 {
  max-width: 950px; margin-bottom: 24px; font-family: var(--serif);
  font-size: clamp(45px,4vw,66px); font-weight: 400; line-height: 1.05; letter-spacing: -.035em;
}
.cta-section p { max-width: 780px; color: rgba(255,255,255,.70); font-size: 18px; }
.cta-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta-button {
  border: 0; min-height: 58px; padding: 17px 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: white; color: var(--forest-dark); font-size: 15px; font-weight: 700;
}
.cta-button:hover { background: #f0f0f0; }
.cta-email { color: rgba(255,255,255,.63); font-size: 13px; }
.cta-email:hover { color: white; }

/* Footer */
.footer { padding: 70px 0 28px; background: #080d0a; color: rgba(255,255,255,.68); }
.footer-main {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.25fr .7fr;
  gap: 65px;
  align-items: start;
  padding-bottom: 60px;
}
.footer-logo { width: 235px; filter: brightness(0) invert(1); opacity: .95; }
.footer-column h4 { margin-bottom: 17px; color: white; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-column p, .footer-column a { display: block; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.8; }
.footer-column a + a { margin-top: 4px; }
.footer-column a:hover { color: white; }
.footer-email { word-break: break-word; }
.footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.35); font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
}

/* Contact modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3,14,10,.72);
  backdrop-filter: blur(8px);
}
.modal-backdrop.is-open { display: flex; }
.contact-modal {
  position: relative;
  width: min(760px,100%);
  max-height: min(900px, calc(100vh - 56px));
  overflow-y: auto;
  padding: 54px 58px 48px;
  background: white;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #444;
  font-size: 32px;
  line-height: 1;
}
.modal-copy h2 {
  margin-bottom: 14px;
  font-family: var(--serif);
  color: var(--forest-dark);
  font-size: 45px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.modal-copy > p { color: var(--muted); margin-bottom: 34px; }
.contact-form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form label > span { color: #303030; font-size: 13px; font-weight: 700; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: white;
  padding: 14px 15px;
  color: #1e1e1e;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(21,71,52,.08);
}
.form-privacy { color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-privacy a { text-decoration: underline; color: var(--forest); }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.form-submit {
  border: 0;
  padding: 15px 24px;
  background: var(--forest);
  color: white;
  font-size: 14px;
  font-weight: 700;
}
.form-submit:disabled { opacity: .55; cursor: wait; }
.form-status { font-size: 13px; color: var(--muted); }
.form-status.success { color: #1d6b43; }
.form-status.error { color: #a02f2f; }
.hp-field {
  position: absolute!important;
  left: -9999px!important;
  width: 1px!important;
  height: 1px!important;
  overflow: hidden!important;
}

/* Legal pages */
.legal-page { background: #fff; min-height: 100vh; }
.legal-hero { padding: 90px 0 55px; border-bottom: 1px solid var(--line); }
.legal-hero h1 {
  font-family: var(--serif);
  color: var(--forest-dark);
  font-size: clamp(50px,5vw,78px);
  font-weight: 400;
  letter-spacing: -.04em;
}
.legal-content { padding: 70px 0 110px; }
.legal-content-inner { max-width: 920px; }
.legal-content h2 {
  margin: 42px 0 12px;
  font-family: var(--serif);
  color: var(--forest-dark);
  font-size: 30px;
  font-weight: 400;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: #4f4f4f; font-size: 16px; line-height: 1.8; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.legal-content a { color: var(--forest); text-decoration: underline; }
.legal-note {
  margin-top: 34px;
  padding: 18px 20px;
  border-left: 3px solid var(--forest);
  background: var(--soft-white);
  font-size: 14px!important;
}

/* Responsive */
@media (max-width: 1200px) {
  .container { width: min(calc(100% - 50px), var(--max-width)); }
  .header-shell { width: min(calc(100% - 50px), var(--max-width)); }
  .brand-logo { width: 190px; }
  .desktop-nav { gap: 28px; }
  .section-intro, .intro-grid, .company-grid, .no-big-project-grid, .technology-grid { gap: 55px; }
}

@media (max-width: 950px) {
  .header-shell { height: 70px; }
  .brand { position: static; }
  .brand-logo { width: 178px; }
  .desktop-nav { display: none; }
  .mobile-menu-button { display: block; }
  .mobile-nav { padding: 20px 25px 25px; background: white; border-top: 1px solid var(--line); }
  .mobile-nav.is-open { display: flex; flex-direction: column; gap: 17px; font-size: 15px; font-weight: 700; }
  .hero-static { height: calc(100vh - 70px); min-height: 650px; }
  .hero-inner { width: calc(100% - 50px); }
  .intro-grid, .section-intro, .company-grid, .no-big-project-grid, .technology-grid, .cta-grid { grid-template-columns: 1fr; gap: 34px; }
  .intro-copy, .company-copy { padding-top: 0; }
  .section-intro > p { justify-self: start; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--line); }
  .service-card:last-child { border-bottom: none; }
  .service-card h3 { min-height: 0; }
  .problem-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .problem-result {
    margin-top: 2px;
  }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid article { min-height: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .industries-grid { grid-template-columns: repeat(2,1fr); }
  .industries-grid > div:nth-child(2) { border-right: none; }
  .industries-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-main { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .header-shell { width: calc(100% - 32px); }
  .brand-logo { width: 160px; }
  .hero-static { height: 720px; min-height: 0; }
  .hero-inner { width: calc(100% - 32px); }
  .hero-static h1 { font-size: 48px; }
  .hero-description { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section { padding: 78px 0; }
  .section-intro h2, .intro-grid h2, .company-grid h2, .no-big-project h2, .technology-section h2 { font-size: 42px; }
  .problem-row {
    grid-template-columns: 1fr;
  }

  .problem-result {
    margin-top: 12px;
  }
  .process-step {
  padding: 45px 0;

  border-bottom:
    1px solid var(--line);
}
