*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #050609;
  --ink-2: #0d1117;
  --steel: #171d24;
  --steel-2: #242b34;
  --paper: #f6f7f8;
  --muted: #b8c0c8;
  --muted-2: #77818c;
  --blue: #0066ff;
  --blue-2: #2292ff;
  --line: rgba(246, 247, 248, 0.14);
  --line-strong: rgba(246, 247, 248, 0.24);
  --container: 1180px;
  --radius: 8px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Raleway", Arial, Helvetica, sans-serif;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(5, 6, 9, 0.56);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(5, 6, 9, 0.88);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.footer-brand {
  flex: none;
}

.brand img {
  width: clamp(190px, 22vw, 275px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--paper);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  place-items: center;
  gap: 4px;
  padding: 12px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  opacity: 0.82;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.96) 0%, rgba(5, 6, 9, 0.78) 34%, rgba(5, 6, 9, 0.32) 76%),
    linear-gradient(0deg, rgba(5, 6, 9, 0.82) 0%, rgba(5, 6, 9, 0) 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 150px 0 82px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 8px;
  font-size: clamp(3.8rem, 9vw, 8.8rem);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2.05rem, 4.6vw, 4.4rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-claim {
  margin-bottom: 24px;
  color: var(--blue-2);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 22px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 34px rgba(0, 102, 255, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #1375ff;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
}

.quick-strip {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: #080a0e;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.quick-item {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding: 18px 22px;
  transition: background 160ms ease;
}

.quick-item:last-child {
  border-right: 1px solid var(--line);
}

.quick-item:hover {
  background: rgba(0, 102, 255, 0.1);
}

.quick-item span {
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.quick-item strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.section {
  padding: 108px 0;
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow),
.content-panel > p,
.contact-copy > p {
  max-width: 710px;
  color: var(--muted);
  font-size: 1.04rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 330px;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 3;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 102, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
}

.service-number {
  margin-bottom: auto;
  color: var(--blue-2);
  font-size: 0.8rem;
  font-weight: 900;
}

.service-kicker {
  margin-bottom: 12px;
  color: var(--blue-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card p:last-child,
.timeline-step p,
.value-grid span {
  color: var(--muted);
}

.split-section {
  border-block: 1px solid var(--line);
  background: var(--steel);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.visual-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visual-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 74% 54%;
}

.content-panel {
  max-width: 700px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.value-grid article {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.value-grid strong {
  color: var(--paper);
  font-size: 1.08rem;
}

.process-section {
  background:
    linear-gradient(180deg, #080a0e 0%, #10151b 100%);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline-step {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding: 28px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline-step:last-child {
  border-right: 0;
}

.timeline-step span {
  color: var(--blue-2);
  font-size: 0.82rem;
  font-weight: 900;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.contact-list a {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-list a:hover {
  border-color: rgba(0, 102, 255, 0.42);
  background: rgba(0, 102, 255, 0.1);
}

.contact-list span,
.contact-form label > span {
  color: var(--blue-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-list strong {
  color: var(--paper);
  font-size: 1.06rem;
  word-break: break-word;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090d12;
  color: var(--paper);
  padding: 14px 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.14);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.form-note.is-success {
  color: #68e08f;
}

.form-note.is-error {
  color: #ff8b8b;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #07090c;
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand img {
  width: 220px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.92rem;
  text-align: right;
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-links a {
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] {
  color: var(--paper);
}

.legal-page {
  background:
    linear-gradient(180deg, #080a0e 0%, var(--ink) 34%, #07090c 100%);
}

.legal-hero {
  border-bottom: 1px solid var(--line);
  padding: 168px 0 64px;
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.96), rgba(13, 17, 23, 0.84)),
    url("zmorph3d-printer-4348148.jpg") center / cover;
}

.legal-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
}

.legal-section {
  padding-top: 70px;
}

.legal-content {
  max-width: 860px;
  display: grid;
  gap: 34px;
}

.legal-content article {
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.legal-content article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-content h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

.legal-content p {
  margin-bottom: 12px;
  color: var(--muted);
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: var(--blue-2);
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

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

@media (max-width: 1040px) {
  .quick-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-item:nth-child(2n),
  .timeline-step:nth-child(2n) {
    border-right: 0;
  }

  .service-grid,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }

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

  .visual-panel img {
    aspect-ratio: 16 / 9;
  }
}

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

  .site-header {
    overflow: visible;
  }

  .header-inner {
    min-height: 70px;
    gap: 14px;
  }

  .brand img {
    width: clamp(150px, 52vw, 190px);
  }

  .menu-toggle {
    display: grid;
    flex: 0 0 46px;
  }

  .nav {
    position: fixed;
    inset: 70px 14px auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(5, 6, 9, 0.96);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: grid;
  }

  .nav a {
    justify-content: center;
    min-height: 48px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-image {
    object-position: 52% 50%;
    opacity: 0.62;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 6, 9, 0.98), rgba(5, 6, 9, 0.74)),
      linear-gradient(0deg, rgba(5, 6, 9, 0.84) 0%, rgba(5, 6, 9, 0) 46%);
  }

  .hero-content {
    padding: 120px 0 56px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5.2rem);
  }

  .hero-claim {
    letter-spacing: 0.08em;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .quick-grid,
  .service-grid,
  .timeline,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .quick-item,
  .quick-item:last-child,
  .timeline-step,
  .timeline-step:last-child {
    border-right: 1px solid var(--line);
  }

  .section {
    padding: 74px 0;
  }

  .service-card,
  .timeline-step {
    min-height: auto;
  }

  .contact-form {
    padding: 20px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    width: min(calc(100% - 28px), var(--container));
  }

  .footer-brand img {
    width: min(220px, 72vw);
  }

  .footer-inner p {
    max-width: 100%;
    text-align: left;
  }

  .footer-meta {
    width: 100%;
    justify-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-hero {
    padding: 128px 0 48px;
  }
}

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

  .header-inner {
    gap: 10px;
  }

  .brand img {
    width: clamp(138px, 48vw, 168px);
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    padding: 11px;
  }
}
