:root {
  --ink: #17191b;
  --ink-soft: #25282b;
  --paper: #f3f0e9;
  --paper-deep: #e4ded4;
  --amber: #f1a43c;
  --amber-dark: #b86516;
  --steel: #9ba1a5;
  --line: rgba(23, 25, 27, 0.16);
  --max: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.scroll-progress {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--amber);
  pointer-events: none;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  background: var(--paper);
  padding: 0.65rem 1rem;
  font-weight: 800;
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  color: #fff;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(10, 11, 12, 0.78), transparent);
  pointer-events: none;
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.header-inner {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.65rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(19, 21, 22, 0.7);
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(18, 20, 21, 0.76);
  color: #fff;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-weight: 750;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.site-nav a {
  padding: 0.65rem 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 760px;
  color: #fff;
  background: #141618;
  overflow: hidden;
}

.hero-picture,
.hero-picture::after,
.hero-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture {
  z-index: -2;
}

.hero-picture img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.035) translateY(var(--parallax-y, 0));
  transition: transform 100ms linear;
}

.hero-picture::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 11, 12, 0.94) 0%, rgba(10, 11, 12, 0.67) 34%, rgba(10, 11, 12, 0.08) 72%),
    linear-gradient(0deg, rgba(10, 11, 12, 0.82) 0%, transparent 52%);
}

.hero-content {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
  padding: 10.5rem 0 5rem;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: currentColor;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.3rem, 8vw, 7.3rem);
  letter-spacing: -0.065em;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: #1a140c;
  text-decoration: none;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease;
}

.button::after {
  content: "↗";
  margin-left: 0.7rem;
}

.button:hover {
  transform: translateY(-2px);
  background: #ffb755;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(18, 20, 21, 0.6);
  color: #fff;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section.dark {
  background: var(--ink);
  color: #fff;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  letter-spacing: -0.055em;
}

.section-heading p {
  max-width: 610px;
  margin-bottom: 0;
  color: #5c6062;
  font-size: 1.08rem;
}

.dark .section-heading p {
  color: rgba(255, 255, 255, 0.65);
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.discipline-card {
  position: relative;
  min-height: 440px;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  text-decoration: none;
  overflow: hidden;
}

.discipline-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem transparent, 0 0 0 2.6rem var(--line), 0 0 0 5rem transparent, 0 0 0 5.1rem var(--line);
  transition: transform 300ms ease;
}

.discipline-card:hover::after {
  transform: scale(1.08) rotate(7deg);
}

.card-number,
.spec-label {
  color: var(--amber-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.discipline-card h3 {
  max-width: 420px;
  margin: 5rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -0.055em;
}

.discipline-card p {
  max-width: 450px;
  color: #666a6c;
}

.card-link {
  margin-top: 2rem;
  font-weight: 850;
}

.card-link::after {
  content: " →";
  color: var(--amber-dark);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.equipment-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: #ebe6dd;
  overflow: hidden;
}

.equipment-card::before {
  content: attr(data-machine);
  position: absolute;
  right: -0.04em;
  bottom: -0.2em;
  color: rgba(23, 25, 27, 0.055);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.09em;
  pointer-events: none;
}

.equipment-card h3 {
  max-width: 500px;
  margin: 2.8rem 0 1rem;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  letter-spacing: -0.055em;
}

.equipment-card p {
  position: relative;
  max-width: 520px;
  color: #5c6062;
}

.mini-specs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.mini-specs li {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 750;
}

.machine-ticker {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--ink);
  color: #fff;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-set {
  display: flex;
  gap: 3rem;
  padding: 1rem 1.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-set span::before {
  content: "◆";
  margin-right: 1rem;
  color: var(--amber);
  font-size: 0.65rem;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.process-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.process-item,
.feature-item {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.process-item span {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.process-item h3,
.feature-item h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
}

.process-item p {
  color: rgba(255, 255, 255, 0.62);
}

.site-footer {
  padding: 2.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-inner strong {
  color: #fff;
}

.page-hero {
  min-height: 620px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 6.7rem);
}

.machine-tag {
  display: inline-flex;
  margin-bottom: 1.1rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(12, 14, 15, 0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-hero.printing .hero-picture img {
  object-position: 60% center;
}

.page-hero.cnc .hero-picture img {
  object-position: 86% center;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.intro-grid h2 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: -0.055em;
}

.intro-copy {
  font-size: 1.12rem;
  color: #54585a;
}

.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.spec-list li {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  margin-top: 3rem;
}

.feature-item {
  border-color: var(--line);
}

.feature-item p {
  color: #64686a;
}

.spec-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 4rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.spec-tile {
  min-height: 180px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
}

.spec-value {
  display: block;
  margin-top: 1.5rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.spec-note {
  margin: 0.65rem 0 0;
  color: #666a6c;
  font-size: 0.88rem;
}

.material-lab {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.material-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.material-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 0.72rem 0.9rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.material-button:hover,
.material-button[aria-pressed="true"] {
  border-color: var(--amber);
  background: var(--amber);
  color: #19130b;
}

.material-output {
  min-height: 255px;
  padding: clamp(1.6rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(241, 164, 60, 0.14), transparent 55%),
    var(--ink-soft);
}

.material-output h3 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.05em;
}

.material-output p {
  max-width: 610px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.material-changed .material-output h3,
.material-changed .material-output p {
  animation: material-in 320ms ease both;
}

.material-changed .material-output p {
  animation-delay: 60ms;
}

@keyframes material-in {
  from { opacity: 0; transform: translateY(8px); }
}

.source-note {
  margin: 1.2rem 0 0;
  color: #74787a;
  font-size: 0.82rem;
}

.source-note a {
  text-underline-offset: 0.2em;
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.75,.25,1);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--amber);
  color: #1b140b;
  text-decoration: none;
}

.next-link small {
  display: block;
  margin-bottom: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-link strong {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.next-link > span:last-child {
  font-size: 3rem;
}

@media (max-width: 800px) {
  .header-inner {
    min-height: 5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 1rem;
    right: 1rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(18, 20, 21, 0.97);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
  }

  .hero,
  .page-hero {
    min-height: 680px;
  }

  .hero-picture img {
    object-position: 62% center;
  }

  .hero-picture::after {
    background:
      linear-gradient(90deg, rgba(10, 11, 12, 0.9), rgba(10, 11, 12, 0.3)),
      linear-gradient(0deg, rgba(10, 11, 12, 0.88) 0%, rgba(10, 11, 12, 0.12) 74%);
  }

  .section-heading,
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .equipment-grid,
  .material-lab {
    grid-template-columns: 1fr;
  }

  .spec-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discipline-card {
    min-height: 360px;
  }

  .process-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    font-size: 0.93rem;
  }

  .hero-content {
    padding-bottom: 3rem;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 5rem);
  }

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

  .spec-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .spec-dashboard {
    grid-template-columns: 1fr;
  }

  .spec-tile {
    min-height: 145px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-picture img {
    transform: none;
  }
}
