:root {
  --bg: #0b0c0e;
  --panel: #121418;
  --text: #f4f4f1;
  --muted: #a3a6ad;
  --line: #292c32;
  --accent: #e63946;
  --logo: #e63946;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

main {
  width: min(1100px, 100%);
  border: 1px solid var(--line);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, .025),
      rgba(255, 255, 255, 0)
    );
  padding: clamp(36px, 7vw, 84px);
}

.eyebrow {
  margin: 0 0 28px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(54px, 10vw, 124px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .86;
}

.intro {
  max-width: 700px;
  margin: 42px 0 0;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.subcopy {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}


/* Services */

.services {
  margin-top: 58px;
}

.services-heading {
  background: #f4f4f1;
  padding: 20px;
  clip-path: polygon(
  26px 0,
  100% 0,
  100% calc(100% - 26px),
  calc(100% - 26px) 100%,
  0 100%,
  0 26px
);
}

.services h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.services ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: #d9dadd;
  font-size: 15px;
}

.services li:nth-child(odd) {
  padding-right: 24px;
}

.services li:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}


/* Sectors */

.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.sectors span {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 13px;
  font-size: 13px;
  color: var(--muted);
}


/* Contact */

.contact-cta {
  margin-top: 56px;
}

.contact-heading {
  background: #f4f4f1;
  padding: 24px 20px;
  color: #1a1a1a;
  clip-path: polygon(
  26px 0,
  100% 0,
  100% calc(100% - 26px),
  calc(100% - 26px) 100%,
  0 100%,
  0 26px
);
}

.contact-cta h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.contact-cta p {
  margin: 0;
  font-size: 15px;
  color: #1a1a1a;
}

.contact-cta a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, .35);
}

.contact-intro {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 28px;
}


/* Logo */

.brand-logo {
  display: block;
  width: min(300px, 70vw);
  height: auto;
  margin: 0 0 42px;
}


/* Footer */

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}


/* Forms */

.project-form {
  max-width: 760px;
  margin-top: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  border-radius: 0;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field small {
  color: var(--muted);
  line-height: 1.5;
}

.submit-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #e8f0fe;
  font: 600 14px "Inter", sans-serif;
  padding: 13px 18px;
  cursor: pointer;
}

.submit-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.form-status {
  min-height: 22px;
  color: var(--muted);
}

.form-status.success {
  color: #b8e6c0;
}

.form-status.error {
  color: #ff9aa2;
}

.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.form-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
}

.intake-logo {
  text-decoration: none;
}

.intake-logo .brand-logo {
  margin-bottom: 36px;
}

.success-box {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 32px;
}

.success-box h2 {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
}

.success-box #contact-ev {
  color: var(--accent);
  text-decoration-color: var(--accent);
}


/* Inquiry success modal */

.inquiry-success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background: #0b0c0e;
}

.inquiry-success-modal[hidden] {
  display: none;
}

.inquiry-success-content {
  width: min(620px, 100%);
  text-align: center;
}

.inquiry-success-logo {
  display: block;
  width: min(220px, 60vw);
  height: auto;
  margin: 0 auto 48px;
}

.inquiry-success-eyebrow {
  margin: 0 0 16px;

  color: var(--accent);

  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.inquiry-success-content h2 {
  margin: 0;

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
}

.inquiry-success-lead {
  max-width: 520px;
  margin: 24px auto 0;

  color: #d9dadd;

  font-size: 17px;
  line-height: 1.65;
}

.inquiry-success-next {
  max-width: 520px;
  margin: 38px auto 0;
  padding: 22px 24px;

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

  background: var(--panel);

  text-align: left;
}

.inquiry-success-step {
  display: block;
  margin-bottom: 8px;

  color: var(--accent);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.inquiry-success-next p {
  margin: 0;

  color: var(--text);

  font-size: 14px;
  line-height: 1.6;
}

.inquiry-success-close {
  margin-top: 32px;
  padding: 12px 18px;

  border: 1px solid var(--accent);

  background: transparent;
  color: var(--text);

  font: 600 13px "Inter", sans-serif;

  cursor: pointer;
}

.inquiry-success-close:hover,
.inquiry-success-close:focus {
  background: var(--accent);
}


/* Responsive */

@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  main {
    padding: 32px 24px;
  }

  footer {
    flex-direction: column;
  }

  .services ul {
    grid-template-columns: 1fr;
  }

  .services li:nth-child(odd),
  .services li:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .inquiry-success-modal {
    padding: 24px;
  }

  .inquiry-success-logo {
    margin-bottom: 38px;
  }

  .inquiry-success-next {
    text-align: center;
  }
}
/* Footer links */
footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  color: var(--text);
}

/* Content pages */
.content-page {
  width: min(1100px, 100%);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 72px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: block;
  width: 138px;
  height: auto;
}

.site-nav > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.page-title {
  max-width: 900px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: .94;
}

.page-lead {
  max-width: 760px;
  margin: 32px 0 0;
  color: #d9dadd;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.5;
}

.page-section {
  margin-top: 72px;
}

.section-band {
  background: var(--text);
  padding: 20px;
  clip-path: polygon(26px 0,100% 0,100% calc(100% - 26px),calc(100% - 26px) 100%,0 100%,0 26px);
}

.section-band h2 {
  margin: 0;
  color: var(--accent);
  font: 600 18px "Space Grotesk", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.service-cards article {
  padding: 30px 28px 30px 0;
  border-bottom: 1px solid var(--line);
}

.service-cards article:nth-child(even) {
  padding-left: 28px;
  padding-right: 0;
  border-left: 1px solid var(--line);
}

.service-cards h3,
.split-section h2,
.page-cta h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.025em;
}

.service-cards h3 { font-size: 22px; }
.service-cards p,
.split-section p,
.page-cta p,
.assumption-grid p {
  color: #d9dadd;
  font-size: 15px;
  line-height: 1.7;
}

.use-line { color: var(--muted) !important; }

.split-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 54px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.split-section .eyebrow { margin-bottom: 14px; }
.split-section h2 { font-size: clamp(26px,3vw,38px); }
.split-section p:first-child { margin-top: 0; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.tag-list span,
.estimate-breakdown span {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 13px;
  color: var(--muted);
  font-size: 13px;
}

.page-cta {
  margin-top: 80px;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-cta .eyebrow { margin-bottom: 14px; color: var(--accent); }
.page-cta h2 { font-size: clamp(28px,4vw,46px); }
.page-cta p { max-width: 680px; }

.button-link {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 18px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  padding: 22px 4px;
  cursor: pointer;
  color: var(--text);
  font: 600 18px "Space Grotesk", sans-serif;
}
.faq-list details[open] summary { color: var(--accent); }
.faq-list details div { max-width: 800px; padding: 0 4px 24px; }
.faq-list p { margin: 0; color: #d9dadd; font-size: 15px; line-height: 1.75; }
.faq-list a { color: var(--accent); }

.calculator {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 34px;
  align-items: start;
}

.estimate-controls,
.estimate-result {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.estimate-result {
  position: sticky;
  top: 24px;
}

.estimate-result .eyebrow { color: var(--accent); margin-bottom: 14px; }
.estimate-price {
  font: 600 clamp(34px,5vw,58px) "Space Grotesk", sans-serif;
  letter-spacing: -.045em;
}
.estimate-result > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.estimate-breakdown { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.assumption-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 26px;
  margin-top: 24px;
}
.assumption-grid strong { color: var(--text); }


/* Services page breathing room */
.service-group + .service-group {
  margin-top: 54px;
}

.service-cards-roomy {
  gap: 0 48px;
}

.service-cards-roomy article {
  padding-top: 38px;
  padding-bottom: 38px;
}

.service-number {
  margin: 0 0 14px !important;
  color: var(--accent) !important;
  font: 600 12px "Space Grotesk", sans-serif !important;
  letter-spacing: .14em;
}

.service-cards-roomy h3 {
  margin-bottom: 16px;
}

.service-cards-roomy .use-line {
  margin-top: 22px;
}

@media (max-width: 720px) {
  .site-nav { align-items: flex-start; flex-direction: column; margin-bottom: 52px; }
  .site-nav > div { justify-content: flex-start; }
  .service-cards,
  .split-section,
  .calculator,
  .assumption-grid { grid-template-columns: 1fr; }
  .service-cards article:nth-child(even) { padding-left: 0; border-left: 0; }
  .estimate-result { position: static; }
}
