:root {
  --bg: #fafcff;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --surface-3: #e7edf3;
  --ink: #171717;
  --muted: #5b615d;
  --line: #d7dee6;
  --red: #E53F47;
  --red-dark: #c9343b;
  --blue: #0d74bc;
  --blue-soft: oklch(70.7% 0.022 261.325);
  --mech: #3f3f46;
  --chip: #202320;
  --max: 1240px;
  --shadow: 0 20px 40px rgba(23, 23, 23, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 23, 23, 0.11) 1px, transparent 0) 0 0 / 24px 24px,
    var(--bg);
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

body.modal-open {
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

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

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 244, 241, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.site-header .inner,
.footer-nav,
.footer-line,
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header .inner { min-height: 68px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 0.92rem;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo-image {
  height: 52px;
  width: auto;
  max-width: 338px;
  object-fit: contain;
}

.nav-links,
.footer-links,
.social-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-links a,
.footer-links a,
.social-links a {
  font-size: 0.8rem;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a.active,
.footer-links a.active {
  color: var(--ink);
  border-color: var(--red);
}

.rev {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

main section { scroll-margin-top: 88px; }
.section {
  padding: 84px 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: var(--surface-2);
}

main > .section:nth-of-type(even) {
  background: var(--surface);
}

main > .section:nth-of-type(odd) {
  background: var(--surface-2);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head-competency {
  align-items: center;
}

.competency-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.competency-title-row h2,
.competency-title-row .section-note {
  flex: 0 0 auto;
}

.competency-title-row .section-note {
  margin-left: auto;
}

.competency-hairline {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.section-label {
  color: var(--red);
  font-size: 0.76rem;
  margin-bottom: 12px;
}

h1, h2, h3, h4, .archive-title {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.9rem);
  line-height: 0.92;
  margin-bottom: 22px;
  text-transform: uppercase;
  color: var(--blue);
}

.section-head h2,
.archive-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-transform: uppercase;
}

.philosophy-wrap h2 {
  font-size: clamp(3rem, 8vw, 5.9rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--blue);
}

.section-note {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
  max-width: 28rem;
  white-space: nowrap;
}

.panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  padding: 44px 0 52px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 84px minmax(0, 0.9fr) 380px;
  gap: 24px;
  align-items: center;
}

.hero-grid-static {
  grid-template-columns: minmax(0, 1fr) minmax(560px, 640px);
  align-items: stretch;
}

.swatch-index {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 460px;
  overflow: hidden;
  align-self: stretch;
  background: transparent;
}

.swatch-index-foot,
.featured-meta,
.feed-top,
.archive-controls,
.archive-pager,
.capability-controls,
.footer-nav,
.footer-line {
  padding: 18px 20px;
}

.featured-meta {
  padding: 5px 16px 6px;
}

.swatch-index-foot {
  padding: 10px 0;
}

.featured-meta,
.feed-top,
.archive-controls,
.capability-controls,
.footer-nav {
  border-bottom: 1px solid var(--line);
}

.archive-pager,
.footer-line {
  border-top: 1px solid var(--line);
}

.archive-pager .pager {
  justify-content: flex-end;
}

.archive-pager .pager span,
.archive-pager .pager a,
.pager-button,
.pager-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: white;
}

.pager-button,
.pager-page {
  cursor: pointer;
  color: var(--ink);
}

.pager-button[disabled] {
  opacity: 0.45;
  cursor: default;
}

.pager-pages {
  display: inline-flex;
  gap: 8px;
}

.pager-page.active {
  background: var(--chip);
  border-color: var(--chip);
  color: white;
}

.archive-pager .pager a {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.swatch-index-top {
  border-top: 0;
  border-bottom: 0;
}

.swatch-index-foot {
  border-top: 0;
  border-bottom: 0;
}

.swatch-scroll {
  min-height: 0;
  height: 100%;
  padding: 6px 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.swatch-scroll::-webkit-scrollbar {
  display: none;
}
.swatch-list { list-style: none; margin: 0; padding: 0; }
.swatch-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--blue-soft);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 400;
}

.swatch-item:hover,
.swatch-item.active {
  background: transparent;
  color: var(--blue-soft);
}

.swatch-item.active {
  font-weight: 700;
}

.swatch-arrows {
  display: flex;
  justify-content: center;
  color: var(--blue-soft);
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
}

.swatch-arrows svg {
  width: 18px;
  height: 18px;
}

.hero-copy {
  padding: 18px 4px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
  min-height: 460px;
  max-width: 34rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.system-line {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: white;
  padding: 10px 14px;
  margin-bottom: 22px;
  font-size: 0.78rem;
  font-weight: 700;
}

.system-line::before { content: ">_"; }

.hero-copy p,
.section-copy,
.capability-copy,
.contact-intro,
.testimonial p,
.archive-card p,
.feed-card p,
.competency-card p,
.step p,
.tech-copy p,
.tech-copy li {
  color: var(--muted);
}

.hero-copy p {
  max-width: 28rem;
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.actions,
.controls,
.pager,
.feed-actions,
.cta-actions,
.meta-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tag-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 0;
}

.tag-dot.softgoods { background: var(--blue); }
.tag-dot.electronics { background: var(--red); }
.tag-dot.mechanical { background: var(--mech); }

.btn,
.feed-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.feed-button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.76rem;
}

.btn:hover,
.feed-button:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.btn-primary:hover { background: #1d4ed8; }
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.featured {
  display: grid;
  align-content: start;
  gap: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.featured-static {
  align-self: stretch;
  justify-self: end;
  width: 100%;
  padding: 0;
}

.featured-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  height: auto;
  align-self: start;
  background: white;
  border: 1px solid rgba(23, 23, 23, 0.08);
  overflow: hidden;
}

.featured-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.featured-art,
.visual,
.archive-thumb,
.equipment-shot,
.feed-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface-3);
}

.media-surface-video {
  background: var(--surface-3);
  overflow: hidden;
}

.media-video-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: var(--surface-3);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.media-video-preview:not([data-lazy-video-url]) {
  cursor: inherit;
}

.media-video-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.18);
}

.media-play-button {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(23, 23, 23, 0.54);
}

.media-play-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid white;
  transform: translate(-50%, -50%);
}

.media-video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  pointer-events: none;
}

.media-crossfade-target {
  overflow: hidden;
}

.media-crossfade-layer {
  position: absolute;
  inset: -1px;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface-3);
  transition: opacity var(--media-crossfade-ms, 900ms) ease;
  will-change: opacity;
}

.media-crossfade-layer.active {
  opacity: 1;
}

#homeHeroArt {
  background-size: cover;
  z-index: 1;
}

.media-empty {
  display: none !important;
}

.featured:has(.featured-art.media-empty) {
  display: none;
}

.visual,
.archive-thumb,
.equipment-shot,
.feed-image {
  position: relative;
  min-height: 220px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  overflow: hidden;
}

.feed-image {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
}

.capability-card-button .feed-image {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
}

[data-media-slot] [data-media-target="true"],
[data-media-slot].featured-art,
.page-hero-media,
.tech-machine-visual {
  opacity: 1;
  transition: opacity 0.22s ease, background-image 0.22s ease;
}

[data-media-slot="homeHero"].featured-art {
  transition: opacity 1.1s ease, background-image 1.1s ease;
}

[data-media-slot] [data-media-target="true"].media-ready,
[data-media-slot].featured-art.media-ready,
.page-hero-media.media-ready,
.tech-machine-visual.media-ready {
  opacity: 1;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,23,23,0.02), rgba(23,23,23,0.12));
  z-index: 2;
}

.featured-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.featured-meta-below {
  color: var(--muted);
  align-self: start;
  padding: 5px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.featured-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-shadow: none;
}

.tag,
.filter-chip,
.archive-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  background: white;
  font-size: 0.68rem;
}

.archive-pill.softgoods {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.archive-pill.electronics {
  color: white;
  border-color: var(--red);
  background: var(--red);
}

.archive-pill.mechanical {
  color: white;
  border-color: var(--mech);
  background: var(--mech);
}

.filter-chip {
  cursor: pointer;
  color: var(--muted);
  background: transparent;
}

.filter-chip[data-filter="softgoods"] {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--blue);
}

.filter-chip[data-filter="electronics"] {
  border-color: rgba(191, 47, 40, 0.35);
  color: var(--red);
}

.filter-chip[data-filter="mechanical"] {
  border-color: rgba(63, 63, 70, 0.35);
  color: var(--mech);
}

.filter-chip.active[data-filter="all"] {
  background: var(--chip);
  color: white;
  border-color: var(--chip);
}

.filter-chip.active[data-filter="softgoods"] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.filter-chip.active[data-filter="electronics"] {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.filter-chip.active[data-filter="mechanical"] {
  background: var(--mech);
  color: white;
  border-color: var(--mech);
}

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

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-steps { margin-top: 28px; }

.process-section {
  background: var(--surface);
}

.process-section-editorial {
  background: var(--surface);
}

.process-variants {
  display: grid;
  gap: 56px;
}

.process-option-head {
  margin-bottom: 18px;
}

.editorial-steps {
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  background: transparent;
  border: 0;
  margin-top: 0;
  align-items: start;
}

.process-option {
  display: grid;
  gap: 18px;
}

.option-columns {
  padding: 28px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.option-timeline {
  grid-template-columns: 1fr;
  gap: 16px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--surface);
}

.option-rows {
  gap: 12px;
}

.process-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.process-row-copy {
  display: grid;
  gap: 10px;
}

.editorial-step {
  padding: 18px 18px 20px;
  background: transparent;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  min-width: 0;
  height: 100%;
}

.process-option-selected {
  padding: 0;
  background: transparent;
  border: 0;
}

.process-step-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 108px;
}

.process-step-head h3 {
  min-width: 0;
  margin-bottom: 0.08em;
}

.process-number {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(3rem, 8vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: var(--blue);
}

.editorial-step h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.editorial-step p {
  font-size: 0.9rem;
}

.competency-card,
.step,
.testimonial,
.feed-card,
.contact-card,
.tech-copy {
  background: var(--surface);
  padding: 26px;
}

.competency-card {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 18px;
  align-content: start;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.competency-bar {
  width: 100%;
  height: 4px;
}

.competency-bar.softgoods { background: var(--blue); }
.competency-bar.electronics { background: var(--red); }
.competency-bar.mechanical { background: var(--mech); }

.competency-slash {
  margin-top: 10px;
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--muted);
}

.competency-card h3,
.testimonial h3,
.feed-card h3,
.archive-card h3 {
  font-size: 1.7rem;
  text-transform: uppercase;
}

.competency-card h3 {
  font-size: 2rem;
}

.competency-card p,
.feed-card p,
.archive-card p,
.testimonial p,
.contact-intro,
.step p,
.tech-copy p,
.tech-copy li {
  margin: 0;
  line-height: 1.75;
  font-size: 0.95rem;
}

.competency-card p + p {
  margin-top: -2px;
}

.philosophy { background: var(--surface); }

.philosophy-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border: 0;
  background: transparent;
}

.philosophy-copy-block {
  display: grid;
  gap: 18px;
  align-content: start;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 20px 20px;
  background: var(--surface);
}

.archive-sections {
  display: grid;
  gap: 48px;
}

.archive-sections-samples-only {
  gap: 0;
}

.archive-section-head {
  margin-bottom: 18px;
}

.archive-panel {
  opacity: 1;
  background: var(--surface-2);
}

.archive-toolbar {
  display: grid;
  gap: 16px;
  align-items: start;
}

.archive-search {
  width: 100%;
  max-width: 320px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: white;
  padding: 10px 14px;
}

.archive-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.04);
}

.archive-card-visual {
  padding: 10px;
  gap: 8px;
  align-content: start;
}

.archive-card h3 {
  margin-top: 2px;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-card-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.archive-card-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(23, 23, 23, 0.08);
  border-color: rgba(23, 23, 23, 0.14);
}

.archive-card-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: start;
}

.archive-card-copy {
  display: grid;
  gap: 6px;
  align-content: start;
}

.archive-card-copy-minimal {
  gap: 4px;
}

.archive-thumb-small {
  aspect-ratio: 1 / 1;
  min-height: 140px;
}

.archive-thumb-square {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.archive-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
}

.archive-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

.detail-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 23, 0.48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
}

.detail-modal-backdrop.open {
  display: flex;
}

.detail-modal {
  width: 80vw;
  max-width: 1320px;
  max-height: 80vh;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(23, 23, 23, 0.18);
  position: relative;
  padding: 18px;
}

.detail-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.detail-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

#swatchDetailModal[data-mode="capability"] .detail-modal-grid {
  grid-template-columns: minmax(420px, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
}

#swatchDetailModal[data-mode="swatch"] .detail-modal-grid {
  grid-template-columns: minmax(520px, 1.28fr) minmax(280px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.detail-modal-image {
  position: relative;
  aspect-ratio: 1.35 / 1;
  max-width: min(100%, 72vh);
  border: 1px solid var(--line);
  background-color: var(--surface-3);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.detail-media-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  align-items: center;
  align-self: end;
  margin-top: 0;
}

#swatchDetailModal[data-mode="swatch"] .detail-media-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#swatchDetailModal[data-mode="capability"] .detail-modal-copy,
#swatchDetailModal[data-mode="swatch"] .detail-modal-copy {
  grid-column: 2;
  grid-row: 1;
}

#swatchDetailModal[data-mode="capability"] .detail-modal-copy {
  min-height: 0;
  height: 100%;
  grid-template-rows: auto auto auto auto 1fr;
}

#swatchDetailModal[data-mode="swatch"] .detail-modal-copy {
  min-height: 0;
  height: auto;
  grid-template-rows: auto auto auto auto 1fr;
  align-content: start;
}

#swatchDetailModal[data-mode="capability"] .detail-meta-inline,
#swatchDetailModal[data-mode="swatch"] .detail-meta-inline {
  display: none;
}

.detail-media-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}

.detail-media-thumb.active {
  border-color: var(--red);
  box-shadow: inset 0 0 0 2px var(--red);
}

.detail-media-thumb span {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface-3);
}

.detail-media-thumb-video {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.detail-media-thumb-preview,
.capability-card-media-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface-3);
  overflow: hidden;
}

#swatchDetailModal[data-mode="capability"] .detail-modal-image {
  aspect-ratio: 1 / 1;
  min-height: 0;
  width: 100%;
  max-width: min(100%, 72vh);
  align-self: start;
  justify-self: start;
}

#swatchDetailModal[data-mode="swatch"] .detail-modal-image {
  aspect-ratio: 1 / 1;
  min-height: 0;
  width: 100%;
  max-width: min(100%, 72vh);
  align-self: start;
  justify-self: start;
  background-size: contain;
}

#swatchDetailModal[data-mode="swatch"] .detail-modal-image > .media-video,
#swatchDetailModal[data-mode="capability"] .detail-modal-image > .media-video {
  position: absolute;
  inset: 0;
}

#swatchDetailModal[data-mode="swatch"] .detail-media-thumb span {
  background-size: contain;
}

.detail-modal-copy {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.detail-modal-copy .archive-pill-wrap {
  margin: 0;
  gap: 8px;
}

.detail-modal-copy h3 {
  font-size: 1.7rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.detail-modal-copy p {
  margin: 0;
}

.testimonial-grid,
.capability-feed {
  display: grid;
  gap: 18px;
}

.testimonial {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: start;
  border: 1px solid var(--line);
}

.feedback-section {
  background: var(--bg);
  border-top: 1px solid rgba(23, 23, 23, 0.08);
}

.feedback-head {
  justify-content: center;
  text-align: center;
}

.process-head-left {
  justify-content: flex-start;
  text-align: left;
}

.editorial-testimonials {
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}

.editorial-testimonial {
  grid-template-columns: 96px 1fr;
  justify-items: start;
  text-align: left;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: center;
}

.editorial-testimonial .portrait {
  width: 96px;
  height: 96px;
  margin: 0;
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.08);
}

.editorial-testimonial p {
  max-width: 34rem;
  font-size: 1rem;
  font-style: italic;
}

.editorial-testimonial cite {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  margin: 0 0 10px;
  text-align: left;
}

.editorial-testimonial cite span {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.editorial-testimonial cite small {
  font-style: normal;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.portrait {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d7dbd3, #b9c0b5);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(23, 23, 23, 0.08);
}

.testimonial cite {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-style: normal;
  font-size: 0.86rem;
}

.feed-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 24px;
  border: 1px solid var(--line);
  align-items: stretch;
}

.capability-card-button {
  width: 100%;
  text-align: left;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.capability-card-button .feed-image {
  max-width: 280px;
}

.capability-card-button:hover,
.capability-card-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(23, 23, 23, 0.08);
  border-color: rgba(23, 23, 23, 0.14);
  outline: none;
}

.feed-code {
  margin: 0;
}

.feed-copy {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  align-content: start;
}

.capability-card-media-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-self: end;
}

.capability-card-copy-spacer {
  min-height: 0;
}

.technology-grid,
.tech-columns,
.contact-grid {
  display: grid;
  gap: 24px;
}

.technology-grid,
.contact-grid { grid-template-columns: 1fr 1fr; }
.tech-columns { grid-template-columns: 1fr 1fr; gap: 18px; }

.equipment-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tech-copy {
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
  align-content: start;
}

.tech-copy-editorial {
  background: transparent;
  border: 0;
  padding: 0;
}

.tech-machine-list {
  display: grid;
  gap: 28px;
}

.tech-machine-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.tech-machine-block {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 18px;
  align-content: start;
  background: var(--surface);
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tech-machine-block-media {
  position: relative;
}

.tech-machine-block-media::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  order: 0;
}

.tech-machine-block-media[data-media-slot="softgoodsCompetency"]::before { background: var(--blue); }
.tech-machine-block-media[data-media-slot="electronicsCompetency"]::before { background: var(--red); }
.tech-machine-block-media[data-media-slot="mechanicalCompetency"]::before { background: var(--mech); }

.tech-machine-visual {
  display: none;
}

.tech-machine-tag {
  display: block;
  order: 1;
  width: 100%;
  padding: 0;
  background: transparent !important;
  color: var(--ink);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  border-radius: 0;
}

.tech-machine-tag.softgoods { background: var(--blue); }
.tech-machine-tag.electronics { background: var(--red); }
.tech-machine-tag.mechanical { background: var(--mech); }

.tech-machine-group {
  display: grid;
  order: 3;
  gap: 8px;
}

.tech-machine-group h4 {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.tech-machine-listing {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.tech-machine-listing li {
  margin: 0;
  padding-left: 24px;
  color: var(--ink);
  line-height: 1.35;
}

.tech-copy h4 {
  font-size: 1rem;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.tech-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.micro-intro {
  display: grid;
  gap: 8px;
  max-width: 28rem;
}

.contact-card { border: 1px solid var(--line); }

.contact-card-narrow {
  max-width: 860px;
  margin: 0;
}
.field {
  display: grid;
  gap: 8px;
}

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

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

label {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 14px 15px;
  border-radius: 0;
}

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

.contact-form-actions {
  display: grid;
  gap: 12px;
}

.form-status {
  min-height: 1.5em;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status.is-error {
  color: var(--red);
}

.form-status.is-success {
  color: var(--blue);
}

.cta-band {
  padding: 48px 0;
  background: var(--red);
  color: white;
  border-top: 1px solid rgba(23, 23, 23, 0.08);
}

.cta-band-minimal {
  padding: 0;
  min-height: 3px;
}

.cta-band .inner {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  text-transform: uppercase;
}

.cta-band p {
  max-width: 52rem;
  margin: 0;
  color: rgba(255,255,255,0.88);
  line-height: 1.8;
}

.cta-actions .btn-primary {
  background: white;
  color: var(--red);
  border-color: white;
}

.btn-on-red {
  border-color: white;
  color: white;
}

.site-footer { background: var(--surface-2); }
.footer-nav { min-height: 58px; }
.footer-line {
  min-height: 44px;
  color: var(--muted);
  font-size: 0.78rem;
}

.page-hero {
  padding: 72px 0 44px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

main > .page-hero + .process-section-editorial {
  background: var(--surface);
  border-top: 0;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(560px, 640px);
  gap: 48px;
  align-items: start;
}

.page-hero-copy {
  max-width: 34rem;
}

.page-hero-copy p {
  max-width: 44rem;
  margin: 18px 0 0;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--muted);
}

.page-hero-media {
  position: relative;
  min-height: 0;
  width: 100%;
  justify-self: end;
  aspect-ratio: 4 / 3;
  height: auto;
  border: 1px solid rgba(23, 23, 23, 0.08);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface-3);
  transition: opacity 0.28s ease, background-image 0.4s ease;
}

.page-hero-media.process-media {
}

.page-hero-media.archive-media {
}

.page-hero-media.capabilities-media {
  height: auto;
  min-height: 0;
  align-self: start;
}

.page-hero-media.contact-media {
}

.process-copy-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.process-hero-copy {
  display: grid;
  gap: 18px;
}

.process-hero-copy p {
  margin-top: 0;
}

.contact-page-hero {
  padding-bottom: 12px;
}

.contact-page-hero-grid {
  display: block;
}

.contact-page-main {
  display: flex;
  flex-direction: column;
}

.contact-page-main::after {
  content: "";
  display: block;
  height: 10px;
  margin-top: auto;
  background: var(--red);
  flex: 0 0 10px;
}

.contact-hero-stack {
  max-width: 860px;
  margin: 0;
  width: 100%;
  padding-left: 0;
}

.contact-form-section {
  padding: 32px 0;
}

.contact-hero-stack p {
  font-size: 1.08rem;
  line-height: 1.8;
  font-weight: 600;
  max-width: 32rem;
  margin-top: 0;
}

.process-hero-copy p + p {
  margin-top: 0;
}

.page-hero-note {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(251, 251, 248, 0.85);
  color: var(--muted);
  line-height: 1.75;
}

.notice-box {
  padding: 22px;
  border: 1px dashed rgba(23, 23, 23, 0.18);
  background: rgba(251, 251, 248, 0.65);
  color: var(--muted);
}

@media (max-width: 1100px) {
  .technology-grid,
  .philosophy-wrap,
  .feed-card,
  .tech-columns,
  .contact-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-media {
    min-height: 0;
  }

  .hero-grid,
  .process-steps,
  .archive-grid,
  .equipment-gallery {
    grid-template-columns: 1fr 1fr;
  }

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

  .swatch-index,
  .hero-copy,
  .featured { min-height: auto; }
}

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

  .swatch-index {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-toggle-bar {
    position: relative;
    transition: background 0.16s ease, box-shadow 0.16s ease;
  }

  .site-header.nav-open .nav-toggle-bar {
    background: transparent;
    box-shadow: none;
  }

  .site-header.nav-open .nav-toggle-bar::before,
  .site-header.nav-open .nav-toggle-bar::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    left: 0;
    top: 0;
    background: currentColor;
  }

  .site-header.nav-open .nav-toggle-bar::before {
    transform: rotate(45deg);
  }

  .site-header.nav-open .nav-toggle-bar::after {
    transform: rotate(-45deg);
  }

  .site-header .inner {
    align-items: flex-start;
  }

  .header-main {
    width: 100%;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 12px;
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .rev {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header .inner,
  .section-head,
  .footer-nav,
  .footer-line,
  .featured-meta,
  .testimonial,
  .archive-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .hero-grid-static,
  .competency-grid,
  .process-steps,
  .archive-grid,
  .equipment-gallery,
  .competency-title-row,
  .editorial-steps,
  .editorial-testimonials,
  .detail-modal-grid {
    grid-template-columns: 1fr;
  }

  .featured {
    display: grid;
  }

  .hero {
    padding: 28px 0 36px;
  }

  .hero-copy {
    min-height: 0;
    padding: 4px 0 0;
  }

  .featured-visual,
  .page-hero-media {
    width: 100%;
  }

  .competency-title-row {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .competency-title-row h2,
  .competency-title-row .section-note {
    width: 100%;
  }

  .competency-title-row .section-note {
    margin-left: 0;
    text-align: left;
  }

  .competency-hairline {
    order: 3;
    flex-basis: 100%;
  }

  #swatchDetailModal[data-mode="capability"] .detail-modal-copy,
  #swatchDetailModal[data-mode="swatch"] .detail-modal-copy,
  .detail-media-picker {
    grid-column: 1;
    grid-row: auto;
  }

  #swatchDetailModal[data-mode="swatch"] .detail-modal-copy {
    height: auto;
  }

  #swatchDetailModal[data-mode="capability"] .detail-modal-copy {
    height: auto;
  }

  .detail-modal-backdrop {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .detail-modal {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    padding: 12px;
    overflow: hidden;
    border: 0;
  }

  .detail-modal-close {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 2;
  }

  #swatchDetailModal[data-mode="capability"] .detail-modal-grid,
  #swatchDetailModal[data-mode="swatch"] .detail-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    height: 100%;
    overflow: hidden;
  }

  #swatchDetailModal[data-mode="capability"] .detail-modal-image,
  #swatchDetailModal[data-mode="swatch"] .detail-modal-image {
    width: min(100%, 58dvh);
    max-height: min(58dvh, calc(100vw - 24px));
    justify-self: center;
    align-self: start;
  }

  .detail-modal-copy {
    min-height: 0;
    overflow: hidden;
    gap: 10px;
    align-content: start;
  }

  #swatchDetailModal[data-mode="capability"] .detail-modal-copy,
  #swatchDetailModal[data-mode="swatch"] .detail-modal-copy {
    grid-template-rows: auto auto auto auto;
  }

  .detail-modal-copy h3 {
    font-size: clamp(1.2rem, 7vw, 1.7rem);
  }

  .detail-modal-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .detail-media-picker,
  #swatchDetailModal[data-mode="swatch"] .detail-media-picker {
    display: flex;
    grid-column: 1;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    align-self: start;
  }

  .detail-media-thumb {
    flex: 0 0 min(28vw, 112px);
  }

  .archive-card-layout {
    grid-template-columns: 120px 1fr;
  }

  .archive-thumb-small {
    min-height: 120px;
  }

  .archive-toolbar {
    gap: 12px;
  }

  .archive-search {
    max-width: none;
  }

  .archive-toolbar .controls,
  .controls[data-filter-group] {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .archive-toolbar .controls::-webkit-scrollbar,
  .controls[data-filter-group]::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .feed-card {
    padding: 18px;
    gap: 16px;
  }

  .capability-card-button .feed-image {
    max-width: none;
  }

  .feed-copy {
    grid-template-rows: auto auto auto auto;
    gap: 12px;
  }

  .capability-card-copy-spacer {
    display: none;
  }

  .container { width: min(var(--max), calc(100% - 24px)); }
  .capability-card-media-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .capability-card-media-thumb {
    flex: 0 0 84px;
  }

  .tech-machine-columns {
    gap: 16px;
  }

  .tech-machine-block {
    padding: 22px;
  }

  .tech-machine-tag {
    font-size: 1.8rem;
  }

  h1 { font-size: clamp(2.6rem, 15vw, 4.1rem); }

  .section {
    padding: 56px 0;
  }

  .cta-band {
    padding: 30px 0;
  }

  .cta-band .inner {
    gap: 14px;
  }

  .footer-nav,
  .footer-line {
    min-height: 0;
    padding: 16px 12px;
  }

  .contact-form-section {
    padding: 24px 0;
  }

  .contact-form-shell {
    padding: 22px;
  }

  .field {
    gap: 6px;
  }

  input,
  textarea,
  select {
    padding: 12px 13px;
  }

  select:has(option[value=""]:checked) {
    color: var(--muted);
  }

  .btn, .feed-button { width: 100%; }
}


.btn-on-red {
  border-color: white;
  color: white;
}

.philosophy-copy-text {
  margin: 0;
  max-width: 50rem;
  font-size: 1rem;
  line-height: 1.85;
}

.detail-meta-inline {
  border: 0;
  padding: 0;
  justify-content: flex-start;
  gap: 12px;
}

.contact-email-link {
  color: var(--red);
}

.contact-form-shell {
  padding: 32px;
}

.notice-spaced {
  margin-top: 24px;
}

.archive-panel-spaced {
  margin-top: 22px;
  opacity: 0.94;
}

.testimonial-copy {
  display: grid;
  gap: 10px;
  align-content: center;
}

.portrait-ovidio { background-image: url('assets/portraits/ovidio-garcia.jfif'); }
.portrait-josh { background-image: url('assets/portraits/josh-herr.jfif'); }
.portrait-james { background-image: url('assets/portraits/james-thompson.jfif'); }
.portrait-jason { background-image: url('assets/portraits/jason-marziani.jfif'); }
.portrait-john { background-image: url('assets/portraits/john-welsh.jfif'); }
