:root {
  --background: #030b14;
  --surface: #091522;
  --surface-light: #0d1c2c;
  --text: #f4f6fa;
  --muted: #a8b1bf;
  --blue: #3b82f6;
  --blue-light: #9ba3ae;
  --silver-border: #4d5764;
  --border: #1d3045;
  --container: 1120px;
  --font-section-title: clamp(34px, 4.5vw, 54px);
  --font-section-subtitle: 16px;
  --font-subsection-title: clamp(28px, 3.5vw, 38px);
  --font-card-title: clamp(22px, 2.4vw, 26px);
  --font-card-body: 15px;
  --font-label: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Rockwell, "Rockwell Nova", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

svg {
  display: block;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  color: white;
  background: var(--blue);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 76px;
  background: rgba(3, 11, 20, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: white;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
}

.site-header .brand {
  font-size: 24px;
}

.brand span span {
  color: var(--blue-light);
}

.site-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.site-nav > a:not(.button) {
  position: relative;
  color: white;
}

.site-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--blue-light);
  transition: transform 180ms ease;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: white;
  transition: transform 180ms ease, opacity 180ms ease;
}

/* Buttons */

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-small {
  min-height: 42px;
  padding-inline: 17px;
}

/* Hero */

.hero {
  display: grid;
  min-height: calc(100svh - 76px);
  place-items: center;
  text-align: center;
}

.hero-simple {
  padding: 110px 0;
}

.hero-simple h1 {
  max-width: 1000px;
  margin: 0 auto;
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1.05;
}

.hero-simple > p {
  max-width: 760px;
  margin: 32px auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.quote-button {
  min-width: 190px;
  color: var(--text);
  background: transparent;
  border-color: var(--silver-border);
}

/* Shared section styles */

.section {
  padding: 105px 0;
  border-top: 1px solid rgba(29, 48, 69, 0.7);
}

.eyebrow {
  display: flex;
  margin: 0 0 16px;
  gap: 10px;
  align-items: center;
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading h2 {
  margin: 0;
  font-size: var(--font-section-title);
  letter-spacing: -1.8px;
  line-height: 1.12;
}

.section-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--font-section-subtitle);
  line-height: 1.7;
}

.section-heading.centered > p:last-child {
  margin-inline: auto;
}

/* Process */

.service-grid {
  display: grid;
  width: 100%;
  margin-inline: auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.process-section {
  overflow: hidden;
}

.process-section .section-heading {
  margin-bottom: 70px;
}

.section-heading .process-subtitle {
  margin: 16px 0 0 !important;
  color: var(--blue-light) !important;
  font-size: var(--font-section-subtitle);
}

.sourcing-timeline {
  position: relative;
  display: grid;
  width: 100%;
  margin-inline: auto;
  gap: 58px;
}

.sourcing-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  content: "";
  transform: translateX(-50%);
  background: linear-gradient(transparent, var(--silver-border) 8%, var(--silver-border) 92%, transparent);
}

.timeline-step {
  position: relative;
  display: grid;
  min-height: 190px;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
}

.timeline-card {
  padding: 34px 36px;
  border: 1px solid var(--silver-border);
  border-radius: 10px;
  background: transparent;
}

.timeline-card h3 {
  margin: 0 0 10px;
  font-size: var(--font-card-title);
}

.timeline-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-card-body);
  line-height: 1.7;
}

.timeline-left .timeline-card {
  grid-column: 1;
  text-align: right;
}

.timeline-right .timeline-card {
  grid-column: 3;
}

.timeline-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-self: center;
  place-items: center;
  color: #e2e4e8;
  background: var(--background);
  border: 2px solid var(--silver-border);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.timeline-left .timeline-number,
.timeline-right .timeline-number {
  grid-column: 2;
}

.timeline-left.reveal {
  transform: translateX(-44px);
}

.timeline-right.reveal {
  transform: translateX(44px);
}

.timeline-left.reveal.visible,
.timeline-right.reveal.visible {
  transform: translateX(0);
}

/* Solutions */

.solution-card {
  display: grid;
  min-height: 190px;
  padding: 34px 38px;
  grid-template-columns: 48px 1fr;
  grid-template-areas:
    "icon title"
    "points points";
  gap: 24px;
  align-items: center;
  border: 1px solid var(--silver-border);
  border-radius: 10px;
  background: transparent;
}

.solution-card h3 {
  margin: 0;
  grid-area: title;
  font-size: var(--font-card-title);
}

.solution-icon {
  display: grid;
  width: 48px;
  height: 48px;
  grid-area: icon;
  place-items: center;
  color: var(--blue-light);
  background: var(--background);
  border: 2px solid var(--silver-border);
  border-radius: 50%;
}

.solution-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.solution-card ul {
  display: grid;
  width: 100%;
  padding: 0;
  margin: 0;
  grid-area: points;
  grid-template-columns: 1fr;
  gap: 11px;
  list-style: none;
}

.solution-card > div:last-child {
  display: contents;
}

.solution-card li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: var(--font-card-body);
  line-height: 1.7;
}

.solution-card li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--blue-light);
  content: "\2022";
}

/* About */

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

.about-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--silver-border);
  border-radius: 10px;
}

.about-card h3 {
  margin: 0 0 22px;
  color: var(--text);
  font-size: var(--font-card-title);
}

.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-card-body);
  line-height: 1.7;
}

.about-card p + p {
  margin-top: 18px;
}

.values-section {
  margin-top: clamp(56px, 8vw, 88px);
}

.values-heading {
  max-width: 650px;
  margin: 0 auto 34px;
  text-align: center;
}

.values-heading h3 {
  margin: 0;
  font-size: var(--font-subsection-title);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.values-grid article {
  padding: 30px;
  border: 1px solid var(--silver-border);
  border-radius: 10px;
}

.values-grid h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: var(--font-card-title);
}

.values-grid p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-card-body);
  line-height: 1.7;
}

.timeline-card h3,
.solution-card h3,
.about-card h3,
.values-grid h4,
.form-header h3 {
  line-height: 1.25;
}

/* Contact and quote form */

.contact-section {
  border-top: 1px solid var(--border);
}

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

.contact-card {
  display: block;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--silver-border);
  border-radius: 10px;
}

.contact-card span,
.contact-card strong {
  display: block;
}

.contact-card span {
  color: var(--muted);
  font-size: var(--font-label);
  font-weight: 700;
}

.contact-card strong {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(21px, 2.5vw, 27px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-heading-row {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.contact-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.contact-action {
  display: inline-flex;
  width: 30px;
  height: 30px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: color 160ms ease;
}

.contact-action.copied {
  color: var(--text);
}

.contact-action svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.quote-container {
  max-width: var(--container);
  margin: 0 auto;
}

.quote-section {
  border-top: 1px solid var(--border);
}

.quote-form {
  width: 100%;
  padding: clamp(24px, 4vw, 32px);
  border: 1px solid var(--silver-border);
  border-radius: 10px;
  background: transparent;
}

.form-header {
  display: flex;
  padding-bottom: 22px;
  margin-bottom: 24px;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.form-header h3 {
  margin: 0;
  font-size: var(--font-card-title);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 16px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: #dbe1e9;
  font-size: 11px;
  font-weight: 700;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: white;
  background: transparent;
  border: 1px solid #263b52;
  border-radius: 6px;
  outline: 0;
  font-size: 13px;
}

.quote-form input {
  height: 44px;
}

.quote-form textarea {
  min-height: 115px;
  resize: vertical;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #708093;
}

.quote-form input:focus::placeholder,
.quote-form textarea:focus::placeholder {
  opacity: 0;
}

.full-width {
  grid-column: 1 / -1;
}

.form-submit {
  margin-top: 20px;
  width: 100%;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  display: none;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.form-status.show {
  display: block;
}

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

/* Footer */

.site-footer {
  padding: 65px 0 25px;
  border-top: 1px solid var(--border);
}

.footer-main {
  display: grid;
  padding-bottom: 50px;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-main > div:first-child > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 35px;
}

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 5px;
  color: var(--blue-light);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--muted);
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  padding-top: 22px;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  color: #667486;
  font-size: 10px;
}

/* Simple reveal */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay,
.reveal-delay-one {
  transition-delay: 80ms;
}

.reveal-delay-two {
  transition-delay: 160ms;
}

.reveal-delay-three {
  transition-delay: 240ms;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav > a:not(.button):hover::after {
    transform: scaleX(1);
  }

  .button:hover {
    transform: translateY(-2px);
    background: #2568d9;
    border-color: #2568d9;
  }

  .quote-button:hover {
    color: #030b14;
    background: var(--blue-light);
    border-color: var(--blue-light);
    transform: none;
  }

  .contact-action:hover {
    color: var(--text);
  }
}

/* Responsive */

@media (max-width: 900px) {
  .menu-button {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
  }

  .menu-button span:not(.sr-only) {
    margin: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: grid;
    padding: 22px 24px 28px;
    gap: 0;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transform-origin: top;
    visibility: hidden;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    transition: clip-path 220ms ease, opacity 160ms ease, visibility 220ms ease;
  }

  .site-nav.open {
    clip-path: inset(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .site-nav > a:not(.button) {
    display: flex;
    min-height: 50px;
    padding: 0;
    align-items: center;
    line-height: 1;
  }

  .site-nav > a:not(.button)::after {
    display: none;
  }

  .site-nav .button {
    margin-top: 18px;
    line-height: 1;
  }

  .steps,
  .about-grid,
  .values-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sourcing-timeline {
    gap: 40px;
  }

  .sourcing-timeline::before {
    display: none;
  }

  .timeline-step {
    display: block;
    min-height: 0;
  }

  .timeline-step .timeline-number {
    position: absolute;
    top: -18px;
    left: 24px;
    width: 42px;
    height: 42px;
    z-index: 1;
  }

  .timeline-step .timeline-card {
    width: 100%;
    padding-top: 38px;
    text-align: left;
  }

  .timeline-left.reveal,
  .timeline-right.reveal {
    transform: translateX(24px);
  }

}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    height: 68px;
  }

  .site-header .brand {
    height: 100%;
    align-items: center;
    line-height: 1;
  }

  .site-header .brand > span {
    display: flex;
    height: 100%;
    align-items: center;
    line-height: 1;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: calc(100svh - 68px);
  }

  .hero-simple {
    padding: 80px 0;
  }

  .hero-simple h1 {
    font-size: clamp(42px, 14vw, 58px);
    letter-spacing: -2px;
    line-height: 1.05;
  }

  .hero-simple > p {
    margin: 26px auto;
    font-size: 15px;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .process-section .section-heading {
    margin-bottom: 48px;
  }

  .timeline-card {
    padding: 38px 24px 26px;
  }

  .solution-card {
    position: relative;
    min-height: 0;
    padding: 40px 24px 28px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "points";
    gap: 16px;
  }

  .solution-icon {
    position: absolute;
    top: -18px;
    left: 24px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: var(--background);
    border: 2px solid var(--silver-border);
    border-radius: 50%;
  }

  .solution-icon svg {
    width: 24px;
  }

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

  .service-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .quote-form {
    padding: 24px 18px;
  }

  .quote-form input {
    height: 48px;
    padding: 0 14px;
    font-size: 16px;
    line-height: 1.2;
  }

  .quote-form textarea {
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.5;
  }

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

  .full-width {
    grid-column: auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: 1fr 1.4fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
