:root {
  --bg: #14170f;
  --bg-card: #1e2317;
  --bg-card-2: #242a1b;
  --ivory: #f3f1e7;
  --stone: #a6a290;
  --moss: #8a9a5f;
  --moss-dim: #5e6b41;
  --orange: #d05a00;
  --line: rgba(243, 241, 231, 0.1);
  --radius: 2px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

button,
input,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- NAV ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 23, 15, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  /* align-items: flex-end; */
  /* gap: 10px; */
  gap: 3px;
  /* font-family: "Space Grotesk", sans-serif; */
  font-family: "Times New Roman", serif;
  /* font-weight: 700; */
  /* font-size: 1.15rem; */
  font-size: 2rem;
  /* letter-spacing: -0.01em; */
  letter-spacing: 3px;
  text-transform: uppercase;
}
.brand .mark {
  /* width: 34px; */
  /* height: 34px; */
  /* border-radius: 50%; */
  /* border: 1.5px solid var(--moss); */
  display: flex;
  align-items: center;
  justify-content: center;
  /* font-family: "IBM Plex Mono", monospace; */
  font-size: 3rem;
  color: var(--orange);
  flex-shrink: 0;
  /* letter-spacing: 0.2em; */
}
nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
}
nav ul a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--stone);
  transition: color 0.15s ease;
}
nav ul a:hover {
  color: var(--ivory);
}
.nav-cta {
  display: inline-block;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--orange);
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: filter 0.15s ease;
}
.nav-cta:hover {
  filter: brightness(1.08);
}
.nav-links-mobile-toggle {
  display: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 30%;
  /* filter: grayscale(35%) contrast(1.05); */
  filter: grayscale(0%) contrast(1.05);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(20, 23, 15, 0.97) 0%,
      rgba(20, 23, 15, 0.82) 32%,
      rgba(20, 23, 15, 0.35) 62%,
      rgba(20, 23, 15, 0.15) 100%
    ),
    linear-gradient(0deg, rgba(20, 23, 15, 0.9) 0%, rgba(20, 23, 15, 0) 38%);
}
.hero-content {
  position: relative;
  z-index: 2;
  /* padding: 120px 0 72px; */
  padding: 120px 32px 72px;
  width: 100%;
}
.hero-content .eyebrow {
  margin-bottom: 22px;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  max-width: 14ch;
  color: var(--ivory);
}
.hero-content h1 em {
  font-style: normal;
  color: var(--moss);
}
.hero-content p {
  margin-top: 24px;
  max-width: 46ch;
  color: var(--stone);
  font-size: 1.08rem;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  text-decoration: none;
  display: inline-block;
  background: var(--orange);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 28px;
  border-radius: var(--radius);
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ivory);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  padding: 15px 24px;
  border-radius: var(--radius);
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.btn-ghost:hover {
  border-color: var(--moss);
  background: rgba(138, 154, 95, 0.08);
}

.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
}
.hero-stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-stats .stat {
  padding: 22px 0;
  border-right: 1px solid var(--line);
}
.hero-stats .stat:last-child {
  border-right: none;
}
.hero-stats .stat .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
}
.hero-stats .stat .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 4px;
}

/* ---------- SECTION HEADS ---------- */
section {
  padding: 100px 0;
}
.section-head {
  max-width: 56ch;
  margin-bottom: 56px;
}
.section-head .eyebrow {
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}
.section-head p {
  margin-top: 16px;
  color: var(--stone);
  font-size: 1.02rem;
}

/* ---------- SERVICES ---------- */
.services {
  border-bottom: 1px solid var(--line);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--bg-card);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.18s ease;
}
.service-card:hover {
  background: var(--bg-card-2);
}
.service-card .glyph {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--moss-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card .glyph svg {
  width: 20px;
  height: 20px;
  stroke: var(--moss);
}
.service-card h3 {
  font-size: 1.18rem;
}
.service-card p {
  color: var(--stone);
  font-size: 0.96rem;
}
.service-card .tag {
  margin-top: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  padding-top: 14px;
}
.technologies {
  border-bottom: 1px solid var(--line);
}
.technologies-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.technologies-grid img {
  height: 3rem;
  max-width: unset;
  /* width: 3rem; */
  filter: grayscale(100%) sepia(60%) saturate(200%) hue-rotate(25deg)
    brightness(60%);
  /* mix-blend-mode: multiply; */
  /* background-color: var(--orange); */

  &:hover {
    filter: none;
    transition: filter 0.25s ease;
  }
}

/* ---------- ABOUT STRIP ---------- */
.about {
  border-bottom: 1px solid var(--line);
}
.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about blockquote {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ivory);
}
.about blockquote span {
  color: var(--moss);
}
.about .who {
  margin-top: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--stone);
}
.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-list li {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--stone);
  font-size: 0.95rem;
}
.about-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.about-list li strong {
  color: var(--ivory);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 0.8rem;
  flex-shrink: 0;
  width: 2ch;
  color: var(--orange);
}

/* ---------- CONTACT ---------- */
.contact .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}
.contact-info h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}
.contact-info p {
  margin-top: 18px;
  color: var(--stone);
  max-width: 42ch;
}
.contact-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-details div {
  display: flex;
  justify-content: space-between;
  max-width: 340px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.contact-details span:first-child {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}
.contact-details span:last-child {
  color: var(--ivory);
}

form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 10px;
}
input,
textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ivory);
  font-size: 1rem;
  padding: 10px 2px;
  transition: border-color 0.15s ease;
}
input::placeholder,
textarea::placeholder {
  color: #5c594d;
}
input:focus,
textarea:focus {
  border-bottom-color: var(--moss);
  outline: none;
}
textarea {
  resize: vertical;
  min-height: 110px;
}

.submit-btn {
  align-self: flex-start;
  margin-top: 8px;
  background: var(--orange);
  color: var(--bg);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
}
.submit-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.form-note {
  font-size: 0.8rem;
  color: #6e6b5d;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .brand {
  font-size: 0.98rem;
}
footer .brand .mark {
  font-size: 2rem;
}
footer .fine {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: #6e6b5d;
  letter-spacing: 0.04em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  nav ul {
    display: none;
  }
  .hero {
    min-height: 78vh;
  }
  .hero-content {
    padding: 96px 0 56px;
  }
  .hero-stats .wrap {
    grid-template-columns: 1fr;
  }
  .hero-stats .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }
  .hero-stats .stat:last-child {
    border-bottom: none;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .about .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  section {
    padding: 72px 0;
  }
  .wrap {
    padding: 0 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
