:root {
  --sage-light: #a7ab96;
  --sage: #7d8b78;
  --pine: #3f644c;
  --forest: #34563e;
  --deep-forest: #34493b;
  --off-white: #ebe7e1;
  --sand: #cfc3b2;
  --earth: #856a50;
  --white: #ffffff;
  --black: #111111;
  --header-height: 72px;
  --content-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background: var(--deep-forest);
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER */

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--off-white);
  color: var(--black);
  border-bottom: 1px solid rgba(17,17,17,0.14);
}

.brand {
  justify-self: center;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.main-nav,
.header-actions {
  display: flex;
  align-items: center;
  height: 100%;
}

.main-nav {
  gap: 24px;
}

.main-nav a,
.header-actions a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-actions {
  justify-self: end;
}

.header-actions a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 22px;
  border-left: 1px solid rgba(17,17,17,0.16);
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  background-image: url('assets/img/hero.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17,17,17,0.58) 0%,
    rgba(17,17,17,0.34) 46%,
    rgba(17,17,17,0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  padding-left: 8%;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(48px, 6.8vw, 96px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.intro {
  max-width: 500px;
  margin: 32px 0 28px;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(255,255,255,0.72);
  background: rgba(17,17,17,0.18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-left: 28px;
  background: var(--white);
  color: var(--black);
  font-size: 22px;
}

.slider-controls {
  position: absolute;
  z-index: 2;
  left: calc(50% - 560px);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* SECTIONS */

.section {
  padding: 105px 0;
  background: var(--off-white);
  color: var(--black);
}

.section.dark {
  background: var(--deep-forest);
  color: var(--white);
}

.section-inner {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
}

.section h2 {
  max-width: 1050px;
  margin: 0 0 28px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.lead,
.section p {
  max-width: 860px;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
}

/* COMPONENTS */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  gap: 24px;
  margin-top: 44px;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 280px;
  padding: 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}

.section:not(.dark) .card {
  background: #ffffff;
  border-color: rgba(17,17,17,0.1);
}

.cards .card img {
  width: 100%;
  height: 150px;
  max-height: 150px;
  object-fit: contain;
  display: block;
  margin: 0 0 18px 0;
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.card h3,
.step h3,
.faq h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.1;
}

.card p,
.step p,
.faq p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.5;
}

/* BUILD STEPS */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.step {
  padding: 26px;
  background: #ffffff;
  border: 1px solid rgba(17,17,17,0.1);
}

.step span {
  display: block;
  margin-bottom: 26px;
  color: var(--earth);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

/* SOFTWARE STEPS */

.software-steps {
  margin-top: 50px;
}

.software-step {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.software-text span {
  display: block;
  margin-bottom: 12px;
  color: var(--sand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.software-text h3 {
  margin: 0 0 18px;
  font-size: 32px;
}

.software-text a {
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.obs-tip {
  margin-top: 50px;
  padding: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.obs-tip h3 {
  margin: 0 0 18px;
  font-size: 28px;
}

/* LEGACY SOFTWARE BOX */

.two-column {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.tech-box {
  padding: 34px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.12);
}

.tech-box p {
  margin: 0 0 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
}

.tech-box code {
  display: block;
  white-space: nowrap;
  overflow-x: auto;
  font-size: 16px;
}

/* MATERIALS */

.materials-list {
  margin-top: 50px;
  border-top: 1px solid rgba(17,17,17,0.16);
}

.material-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(17,17,17,0.16);
}

.material-item h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.1;
}

.material-item p {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
}

.material-item strong {
  font-size: 22px;
  white-space: nowrap;
}

.material-item a {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--earth);
}

.cost-total {
  margin-top: 46px;
  padding: 32px;
  background: var(--deep-forest);
  color: var(--white);
}

.cost-total span {
  display: block;
  margin-bottom: 12px;
  color: var(--sand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cost-total strong {
  display: block;
  margin-bottom: 12px;
  font-size: 48px;
  line-height: 1;
}

.cost-total p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
}

.cost-note {
  margin-top: 24px !important;
  max-width: 900px;
  color: rgba(255,255,255,0.78);
  font-size: 15px !important;
  line-height: 1.8;
}

/* FAQ */

.faq {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

.faq article {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.accordion {
  margin-top: 36px;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 26px 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--sand);
  font-size: 28px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding: 0 0 26px;
  max-width: 800px;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}

/* FOOTER */

.site-footer {
  background: #202f25;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 90px 0;
  color: var(--white);
}

.footer-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-contact {
  max-width: 700px;
}

.footer-label {
  margin-bottom: 18px;
  color: var(--sand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-contact h3 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.footer-contact p {
  margin: 0 auto 32px;
  max-width: 580px;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
}

.instagram-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.35);
}

.instagram-link svg {
  flex-shrink: 0;
}

/* TABLET */

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-left: 20px;
  }

  .brand {
    justify-self: start;
  }

  .main-nav {
    display: none;
  }

  .header-actions .search {
    display: none;
  }

  .hero-content {
    padding-left: 0;
  }

  .slider-controls {
    left: 24px;
  }

  .steps,
  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .software-step {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .material-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .material-item strong {
    font-size: 26px;
  }

  .cost-total strong {
    font-size: 40px;
  }
}

/* MOBILE */

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    height: var(--header-height);
  }

  .brand {
    max-width: 220px;
    font-size: 10px;
    line-height: 1.25;
  }

  .header-actions a {
    padding: 0 14px;
    font-size: 9px;
  }

  .hero {
    align-items: flex-end;
    min-height: 92vh;
    padding-bottom: 105px;
    background-image: url('assets/img/hero-mobile.jpg');
    background-position: center;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(17,17,17,0.16) 0%,
      rgba(17,17,17,0.68) 70%,
      rgba(17,17,17,0.86) 100%
    );
  }

  .hero-content {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .intro {
    font-size: 16px;
  }

  .slider-controls {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .section-inner {
    width: calc(100% - 32px);
  }

  .section h2 {
    font-size: 38px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    max-width: 100%;
  }

  .cards .card img {
    height: 145px;
    max-height: 145px;
  }

  .software-text h3 {
    font-size: 26px;
  }

  .software-step {
    gap: 24px;
    padding: 34px 0;
  }

  .obs-tip {
    padding: 24px;
  }

  .faq-item summary {
    font-size: 20px;
    padding: 22px 0;
  }

  .faq-item p {
    font-size: 16px;
  }
}