/* ==========================================================================
   Advanced Manufacturing and Fabrication — site styles
   Palette: graphite plate, zinc, shop-floor safety yellow
   Type:    Archivo (display, expanded) / IBM Plex Sans (body) / IBM Plex Mono (data)
   ========================================================================== */

:root {
  --ink:      #0E151B;
  --ink-2:    #17232C;
  --ink-3:    #22333F;
  --slate:    #4E606D;
  --slate-2:  #7B8C97;
  --zinc:     #C6CFD3;
  --fog:      #E4E9EA;
  --paper:    #F3F6F6;
  --mark:     #FFBB03;   /* brand yellow, sampled from the brochure */
  --mark-2:   #C98F00;   /* darker, for yellow text on light backgrounds */
  --indigo:   #18076F;   /* brand indigo, sampled from the brochure */

  --shell: min(1240px, 100% - 2.5rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --rule: 1px solid rgba(14, 21, 27, 0.14);
  --rule-dark: 1px solid rgba(198, 207, 211, 0.16);

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0;
}

p { margin: 0 0 1.1rem; }
figure, figcaption { margin: 0; }   /* browsers default figures to 40px side margins */
p:last-child { margin-bottom: 0; }

.shell { width: var(--shell); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--mark); color: var(--ink);
  padding: 0.75rem 1.25rem; font-family: var(--mono); font-size: 0.8rem;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--mark);
  outline-offset: 3px;
}

/* ---------- Shared utility type ---------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--mark);
  flex: none;
}
.eyebrow--light { color: var(--zinc); }

.lede { font-size: 1.13em; color: var(--slate); max-width: 58ch; }
.lede--light { color: var(--zinc); }

/* ---------- Header ------------------------------------------------------ */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: var(--fog);
  border-bottom: 3px solid var(--mark);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: flex; align-items: center; gap: 0.85rem;
  text-decoration: none; color: inherit;
  padding: 0.4rem 0;
}
.brand__mark {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  background: var(--mark);
  color: var(--ink);
  padding: 0.28rem 0.6rem 0.22rem;
  line-height: 1;
}
.brand__name {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--slate-2);
  max-width: 24ch;
}
@media (max-width: 1120px) { .brand__name { display: none; } }

.nav { margin-left: auto; }
.nav__list {
  display: flex; align-items: center; gap: 1.9rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--zinc);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav__link:hover { color: #fff; border-bottom-color: var(--mark); }
.nav__link[aria-current="page"] { color: #fff; border-bottom-color: var(--mark); }

.tel-cta {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
  background: var(--mark);
  padding: 0.62rem 1.05rem;
  white-space: nowrap;
  transition: background 0.18s;
}
.tel-cta:hover { background: #fff; }
.tel-cta__short { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(198,207,211,0.35);
  color: var(--fog);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .masthead__inner { flex-wrap: wrap; gap: 0.75rem; }
  .brand__name { display: none; }
  .nav-toggle { display: block; order: 3; }
  .tel-cta { order: 2; margin-left: auto; padding: 0.55rem 0.85rem; font-size: 0.78rem; }
  .nav {
    order: 4;
    display: none;
    margin-left: 0;
    width: 100%;
    border-top: var(--rule-dark);
    padding: 0.25rem 0 1.25rem;
  }
  .masthead__inner.is-open .nav { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 0.85rem 0;
    border-bottom: var(--rule-dark);
    font-size: 0.88rem;
  }
  .nav__link:hover, .nav__link[aria-current="page"] { border-bottom-color: var(--mark); }
}

@media (max-width: 430px) {
  .tel-cta__full { display: none; }
  .tel-cta__short { display: inline; }
}

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn--solid { background: var(--mark); color: var(--ink); }
.btn--solid:hover { background: var(--ink); color: var(--mark); border-color: var(--mark); }
.btn--ghost { border-color: currentColor; background: none; }
.btn--ghost:hover { background: var(--mark); color: var(--ink); border-color: var(--mark); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Hero -------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: var(--fog);
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg, rgba(255,187,3,0.045) 0 2px, transparent 2px 11px);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__title {
  font-size: clamp(2.9rem, 6.4vw, 5.1rem);
  color: #fff;
  margin-bottom: 1.4rem;
}
.hero__title em {
  font-style: normal;
  color: var(--mark);
  display: block;
}
.hero__text { color: var(--zinc); max-width: 46ch; margin-bottom: 2rem; }

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

/* ---------- Page banner (interior pages) -------------------------------- */

.banner {
  background: var(--ink);
  color: var(--fog);
  padding: clamp(3rem, 6vw, 4.75rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  border-bottom: 3px solid var(--mark);
  position: relative;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute; right: -40px; bottom: -40px;
  width: 260px; height: 260px;
  background-image: repeating-linear-gradient(
    -45deg, rgba(255,187,3,0.12) 0 3px, transparent 3px 14px);
  transform: rotate(0deg);
  pointer-events: none;
}
.banner__title {
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  color: #fff;
  margin-bottom: 1.1rem;
  position: relative; z-index: 1;
}
.banner .lede { position: relative; z-index: 1; }

/* ---------- Plate graphic (hero signature) ------------------------------ */

.plate { width: 100%; height: auto; }
.plate__body { fill: #131F27; stroke: #2C3E4A; stroke-width: 2; }
.plate__hatch { fill: url(#plateHatch); }
.plate__part {
  fill: rgba(228,233,234,0.05);
  stroke: var(--mark);
  stroke-width: 2.25;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.plate__hole {
  fill: #0E151B;
  stroke: var(--mark);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.plate__dim { stroke: #566C7A; stroke-width: 1; }
.plate__label {
  font-family: var(--mono);
  font-size: 13px;
  fill: #8195A1;
  letter-spacing: 0.08em;
}
.plate__stamp {
  font-family: var(--mono);
  font-size: 12px;
  fill: var(--mark);
  letter-spacing: 0.16em;
}

.plate__cut {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: cut 1.1s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}
@keyframes cut { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .plate__cut { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Spec strip -------------------------------------------------- */

.specstrip {
  background: var(--ink-2);
  color: var(--fog);
  border-top: 1px solid rgba(255,187,3,0.25);
}
.specstrip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.specstrip__item {
  padding: 1.9rem 1.5rem 1.75rem;
  border-left: var(--rule-dark);
}
.specstrip__item:first-child { border-left: 0; padding-left: 0; }
.specstrip__value {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1;
  color: var(--mark);
  display: block;
  margin-bottom: 0.55rem;
}
.specstrip__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
  line-height: 1.5;
}
@media (max-width: 820px) {
  .specstrip__grid { grid-template-columns: repeat(2, 1fr); }
  .specstrip__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .specstrip__item:nth-child(n+3) { border-top: var(--rule-dark); }
}
@media (max-width: 460px) {
  .specstrip__grid { grid-template-columns: 1fr; }
  .specstrip__item { border-left: 0; padding-left: 0; }
  .specstrip__item + .specstrip__item { border-top: var(--rule-dark); }
}

/* ---------- Generic band ------------------------------------------------ */

.band { padding: clamp(3.25rem, 6.5vw, 5.5rem) 0; }
.band--tight { padding: clamp(2.5rem, 5vw, 3.75rem) 0; }
.band--fog { background: var(--fog); }
.band--ink { background: var(--ink); color: var(--fog); }

.band__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.band__title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---------- Materials --------------------------------------------------- */

.materials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: rgba(14,21,27,0.12);
  border: var(--rule);
}
.material {
  background: var(--paper);
  padding: 1.5rem 1.25rem 1.4rem;
}
.material__swatch {
  height: 46px;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(14,21,27,0.2);
}
.material__name {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  margin-bottom: 0.3rem;
}
.material__note {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}


/* ---------- Value cards ------------------------------------------------- */

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.value {
  border-top: 3px solid var(--mark);
  padding-top: 1.5rem;
}
.value__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--slate);
  display: block;
  margin-bottom: 0.7rem;
}
.value__title { font-size: 1.45rem; margin-bottom: 0.7rem; }
.value__text { color: var(--slate); font-size: 0.97rem; }
.band--ink .value__text { color: var(--zinc); }
.band--ink .value__num { color: var(--slate-2); }

/* ---------- Process list (capabilities) --------------------------------- */

.process-group + .process-group { margin-top: clamp(2.25rem, 4vw, 3.25rem); }

.process-group__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.5rem;
}
.process-group__title { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.process-group__count {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--slate);
  margin-left: auto;
  white-space: nowrap;
}

.process-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.4rem 1.5rem;
}
.process-list li {
  font-family: var(--mono);
  font-size: 0.86rem;
  padding: 0.5rem 0 0.5rem 1.4rem;
  position: relative;
  border-bottom: 1px dotted rgba(14,21,27,0.18);
}
.process-list li::before {
  content: "";
  position: absolute; left: 0; top: 1.05em;
  width: 8px; height: 2px;
  background: var(--mark-2);
}

/* ---------- Industries -------------------------------------------------- */

.industries {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2px;
  background: rgba(14,21,27,0.12);
  border: var(--rule);
}
.industries li {
  background: var(--paper);
  padding: 1.15rem 1.25rem;
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.18s, color 0.18s;
}
.industries li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--mark);
  flex: none;
  transition: transform 0.18s;
}
.industries li:hover { background: var(--ink); color: #fff; }
.industries li:hover::before { transform: rotate(45deg) scale(1.2); }

/* ---------- Equipment cards --------------------------------------------- */

.machine {
  border: var(--rule);
  background: #fff;
  margin-bottom: var(--gap);
}
.machine__head {
  background: var(--ink);
  color: #fff;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.25rem;
  border-bottom: 3px solid var(--mark);
}
.machine__name { font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
.machine__model {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--mark);
  margin-left: auto;
}
.machine__body { padding: 1.6rem; }

.speclist { margin: 0; }
.speclist__row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px dotted rgba(14,21,27,0.2);
}
.speclist__row:last-child { border-bottom: 0; }
.speclist dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 0.15rem;
}
.speclist dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--ink);
}
@media (max-width: 620px) {
  .speclist__row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- Callout band ------------------------------------------------ */

.callout {
  background: var(--mark);
  color: var(--ink);
  padding: clamp(2.75rem, 5vw, 4rem) 0;
}
.callout__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.callout__title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 22ch;
}
.callout__text {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-top: 0.9rem;
  max-width: 42ch;
}
.callout .btn--solid { background: var(--ink); color: var(--mark); }
.callout .btn--solid:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.callout .btn--ghost:hover { background: var(--ink); color: var(--mark); border-color: var(--ink); }

/* ---------- Contact ----------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.detail { border-top: 2px solid var(--ink); padding: 1.15rem 0 1.4rem; }
.detail__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.detail__value {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.25;
  text-transform: uppercase;
  text-decoration: none;
}
a.detail__value:hover { color: var(--mark-2); }
.detail__value--sm { font-size: 1.05rem; }

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(14,21,27,0.25);
  padding: 0.8rem 0.9rem;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  outline: 3px solid var(--mark);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 150px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.form__note {
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--slate);
}

.map {
  border: var(--rule);
  width: 100%;
  height: 340px;
  filter: grayscale(1) contrast(1.05);
}

/* ---------- Footer ------------------------------------------------------ */

.footer {
  background: var(--ink);
  color: var(--zinc);
  padding: clamp(3rem, 5vw, 4.25rem) 0 2rem;
  border-top: 3px solid var(--mark);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: var(--rule-dark);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mark);
  margin-bottom: 1.25rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 0.6rem; }
.footer__list a {
  font-family: var(--mono);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--zinc);
}
.footer__list a:hover { color: var(--mark); }
.footer address {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.85;
}
.footer address a { text-decoration: none; }
.footer address a:hover { color: var(--mark); }
.footer__blurb { font-size: 0.93rem; max-width: 34ch; margin-top: 1.1rem; }

.colophon {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--slate-2);
  text-transform: uppercase;
}

/* ---------- Scroll reveal ----------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Motion — entrance sequence, staggered reveals, hover lifts
   ========================================================================== */

@keyframes enter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes enterLogo {
  from { opacity: 0; transform: translateY(14px) scale(0.965); }
  to   { opacity: 1; transform: none; }
}
@keyframes ruleOut {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.enter {
  animation: enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}

/* Interior page banners animate on load without extra markup */
.banner .eyebrow    { animation: enter 0.8s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.05s; }
.banner__title      { animation: enter 0.9s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.15s; }
.banner .lede       { animation: enter 0.9s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.28s; }

/* ---------- Centered logo hero ------------------------------------------ */

.hero--center { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5.5rem); }

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero__backdrop .plate {
  width: min(1000px, 128%);
  opacity: 0.42;
}
.hero::after { z-index: 1; }

.hero__stack {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Type-set stand-in lockup. Swap for <img class="hero__logo-img"> when you
   have the artwork — the sizing below applies to both. */
.lockup { display: inline-block; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.lockup__mark {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(4.5rem, 15vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0;
}
.lockup__rule {
  height: 8px;
  background: var(--mark);
  margin: 0.9rem 0 1rem;
  transform-origin: left center;
  animation: ruleOut 0.7s cubic-bezier(0.65, 0, 0.35, 1) both;
  animation-delay: 0.45s;
}
.lockup__name {
  font-family: var(--mono);
  font-size: clamp(0.66rem, 1.5vw, 0.92rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--zinc);
  margin: 0;
  padding-left: 0.34em;
}
.hero__logo-img {
  display: block;
  width: min(560px, 82vw);
  height: auto;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem);
}

.hero--center .hero__title {
  font-size: clamp(1.6rem, 3.6vw, 2.65rem);
  color: #fff;
  margin-bottom: 1.1rem;
  max-width: 20ch;
}
.hero--center .hero__text { color: var(--zinc); max-width: 54ch; margin: 0 auto 2.1rem; }
.btn-row--center { justify-content: center; }

/* ---------- Staggered scroll reveal ------------------------------------- */

[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
[data-stagger].is-visible > * { opacity: 1; transform: none; }

/* ---------- Hover lifts -------------------------------------------------- */

.material { transition: background 0.25s ease, transform 0.25s ease; }
.material:hover { background: #fff; transform: translateY(-4px); }

.machine { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.machine:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(14, 21, 27, 0.13);
}

.process-list li { transition: color 0.2s ease, padding-left 0.2s ease; }
.process-list li:hover { color: var(--mark-2); padding-left: 1.75rem; }

@media (prefers-reduced-motion: reduce) {
  .enter,
  .banner .eyebrow, .banner__title, .banner .lede,
  .lockup__rule { animation: none; }
  [data-stagger] > * { opacity: 1; transform: none; transition: none; }
  .material:hover, .machine:hover { transform: none; }
  .process-list li:hover { padding-left: 1.4rem; }
}

/* ==========================================================================
   Brand logo, indigo band, project gallery
   ========================================================================== */

.brand__logo {
  height: 44px;
  width: auto;
  display: block;
}
@media (max-width: 960px) { .brand__logo { height: 38px; } }

/* Hero logo — sized so the artwork stays crisp */
.hero__logo-img {
  display: block;
  width: min(500px, 80vw);
  margin: 0 auto clamp(1.6rem, 3.5vw, 2.4rem);
  animation: enterLogo 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}
.hero__logo-img img { width: 100%; height: auto; }

/* Diagonal indigo band — the divider motif from the brochure */
.slash {
  position: relative;
  height: clamp(46px, 6vw, 76px);
  background: var(--ink);
  overflow: hidden;
}
.slash::before {
  content: "";
  position: absolute;
  left: -5%;
  top: 50%;
  width: 110%;
  height: 190%;
  background: var(--indigo);
  transform: translateY(-50%) rotate(-3.2deg);
}
.slash--fog { background: var(--fog); }
.slash--paper { background: var(--paper); }

/* ---------- Project gallery --------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: var(--gap);
}
.shot {
  background: #fff;
  border: var(--rule);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.shot:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(14,21,27,0.15); }
.shot__frame {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  background:
    radial-gradient(circle at 50% 42%, #FFFFFF 0%, #EDF1F2 68%, #DFE5E7 100%);
  overflow: hidden;
}
.shot__frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.shot:hover .shot__frame img { transform: scale(1.06); }
.shot__caption {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 0.9rem 1.05rem 1rem;
  border-top: 3px solid var(--mark);
  color: var(--ink);
}

/* ---------- Hero slideshow ---------------------------------------------- */

.slideshow {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
}
.slideshow__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.slideshow__item.is-active { opacity: 1; }
.slideshow__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45));
}
.slideshow__caption {
  position: absolute;
  left: 0; bottom: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zinc);
  background: rgba(14,21,27,0.72);
  border-left: 3px solid var(--mark);
  padding: 0.5rem 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo-img { animation: none; }
  .shot:hover { transform: none; }
  .shot:hover .shot__frame img { transform: none; }
  .slideshow__item { transition: none; }
}

/* ==========================================================================
   Hero background video
   ========================================================================== */

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0A1016 url("video/amf-laser-poster.jpg") center/cover no-repeat;
}
.hero__video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero__video-el.is-playing { opacity: 1; }

/* Scrim: darkens the footage so the logo and text stay readable.
   Heavier in the middle, where the logo sits. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 62% at 50% 46%, rgba(9,14,19,0.58) 0%, rgba(9,14,19,0.38) 55%, rgba(9,14,19,0.20) 100%),
    linear-gradient(180deg, rgba(14,21,27,0.52) 0%, rgba(14,21,27,0.24) 40%, rgba(14,21,27,0.78) 100%);
}

/* The hatch overlay reads as machine guarding over the footage */
.hero--center::after { opacity: 0.55; }

/* Give the video room to be seen */
.hero--center { padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(4rem, 8vw, 7rem); }

/* Lift text off the footage */
.hero--center .hero__title,
.hero--center .hero__text {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.hero__logo-img { filter: drop-shadow(0 6px 26px rgba(0, 0, 0, 0.55)); }

@media (prefers-reduced-motion: reduce) {
  .hero__video-el { display: none; }
}

/* Two-line process rows: name, then its specification beneath */
.process-list__name {
  display: block;
}
.process-list__spec {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.01em;
}
.process-list li:hover .process-list__spec { color: var(--mark-2); }

/* Photographic gallery shots fill their frame — cut-outs stay contained */
.shot__frame--photo {
  padding: 0;
  background: var(--ink-2);
}
.shot__frame--photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

/* Form status message and spam trap */
.field--trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form__status {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--slate);
  background: #fff;
  margin: 0;
}
.form__status a { color: var(--mark-2); font-weight: 600; }
.form__status--info  { border-left-color: var(--mark); background: #FFFDF5; }
.form__status--ok    { border-left-color: #2E7D52; background: #F2FAF5; color: #1E5638; }
.form__status--error { border-left-color: #C0392B; background: #FEF5F4; color: #8E2A1F; }

/* Five-shot gallery: three across, the remaining two centred beneath */
.gallery--3up {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}
.gallery--3up > .shot {
  /* the 2px allows for sub-pixel rounding, which otherwise pushes the
     third card onto its own row by a single pixel */
  flex: 0 1 calc((100% - 2 * var(--gap) - 2px) / 3);
  min-width: 250px;
}
@media (max-width: 860px) {
  .gallery--3up > .shot { flex: 0 1 calc((100% - var(--gap) - 2px) / 2); }
}
@media (max-width: 540px) {
  .gallery--3up > .shot { flex: 0 1 100%; }
}

/* ---------- Customer wall ------------------------------------------------ */

.clients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 2px;
  background: rgba(14, 21, 27, 0.12);
  border: var(--rule);
}
.client {
  background: #fff;
  min-height: 104px;
  padding: 1.1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.2s ease;
}
.client:hover { background: var(--paper); }

/* Logo files, once supplied, drop straight in and sit uniformly */
.client img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.client:hover img { filter: none; opacity: 1; }

.client__name {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.22;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.client:hover .client__name { color: var(--ink); }

.clients__note {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--slate-2);
  margin-top: 1.1rem;
}

@media (max-width: 460px) {
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client { min-height: 88px; padding: 0.9rem 0.7rem; }
  .client__name { font-size: 0.82rem; }
}

/* The customer heading is a long sentence — let it run wider than the
   default measure so it sets in two lines instead of four. The lede keeps
   its own narrow measure for readability. */
#customers .band__head { max-width: none; }
#customers .band__title { max-width: 30ch; }
