.hero.has-hero-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: auto;
  min-height: clamp(510px, 46vw, 720px);
  background: #161616;
  color: #fffdf5;
}
.has-hero-gallery:has(.hero-gallery) .hero-image { display: none; }
.has-hero-gallery .hero-image { inset: 0; height: auto; background: url('/assets/workshop-eight-string-1280.webp') right 15% center / auto 100% no-repeat; }
.hero-gallery img:is([src$="/workshop-carbon-1920.webp"],[src$="/workshop-headless-1920.webp"]) {
  object-position: center 58%;
}
@media (min-width: 761px) {
  .hero-gallery img:is([src$="/workshop-carbon-1920.webp"],[src$="/workshop-headless-1920.webp"]) {
    clip-path: inset(0 0 0 35%);
    padding-left: 35%;
  }
  .hero-gallery img[src$="/workshop-eight-string-1920.webp"] {
    object-fit: contain;
    object-position: center;
    padding-left: 35%;
  }
}
@media (max-width: 760px) {
  .has-hero-gallery .hero-image { background-size: contain; background-position: center top; }
  .hero-gallery img[src$="/workshop-eight-string-1920.webp"] {
    object-fit: contain;
    object-position: center top;
  }
}
.has-hero-gallery .hero-wash {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #0a0a09ed, #0a0a09cf 23%, #0a0a0975 44%, #0a0a0926 65%, transparent 90%);
}
.has-hero-gallery .hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: clamp(34px, 5vw, 82px) clamp(43px, 5vw, 82px);
  pointer-events: none;
}
.has-hero-gallery .hero-copy a { pointer-events: auto; }
.has-hero-gallery .hero-copy > p:not(.eyebrow) { color: #efede6; }
.has-hero-gallery .button-lime { color: var(--ink); }
.has-hero-gallery .button-outline { background: #17171766; border-color: #fffdf599; color: #fffdf5; }
.has-hero-gallery .button-outline:hover { background: var(--paper); color: var(--ink); }
.has-hero-gallery h1 { font-size: clamp(55px, 6.4vw, 112px); white-space: normal; }
.has-hero-gallery .hero-gallery { position: absolute; inset: 0; min-height: 0; background: #161616; }
.hero-gallery .gallery-track { position: absolute; inset: 0; }
.hero-gallery img { object-fit: cover; }
.has-hero-gallery .hero-gallery :is(.gallery-arrow, .gallery-counter) { z-index: 3; }
.has-hero-gallery .hero-caption { right: 14px; bottom: 38px; padding: 5px 8px; color: var(--ink); background: var(--paper); line-height: 1.3; max-width: min(52%, 440px); }

.combined-services { border-top: 1px solid var(--line); }
.combined-services .page-intro h2 { margin: 8px 0; font: 900 clamp(46px, 7vw, 105px)/.9 var(--display); text-transform: uppercase; }
#projects-root { padding: 28px clamp(18px, 4vw, 64px) 72px; min-height: 35vh; }
#learn-root { padding: 28px clamp(18px, 4vw, 64px) 72px; min-height: 35vh; }
.guide-search { display: grid; gap: 8px; max-width: 680px; margin: 0 0 22px; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.guide-search input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; color: var(--ink); background: #fffdf7; font: 500 16px var(--body); letter-spacing: normal; text-transform: none; }
.guide-search input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.guide-section { margin-block: 38px 54px; }
.guide-section-title { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 900 clamp(27px, 3.2vw, 46px)/.95 var(--display); text-transform: uppercase; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 25px); }
.article-card { border: 1px solid var(--line); background: #fffdf7; }
.article-card a { display: block; height: 100%; }
.article-card-copy { padding: clamp(16px, 1.5vw, 24px); }
.article-card-copy h2 { margin: 0; font: 800 clamp(24px, 2.2vw, 38px)/.98 var(--display); }
.article-card-copy > p:not(.eyebrow) { color: var(--muted); }
.article-card a:hover .inline-link { background: var(--lime); color: var(--ink); }
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.project-filters button { border: 1px solid var(--line); background: transparent; padding: 7px 12px; color: var(--ink); }
.project-filters button[aria-pressed=true], .project-filters button:hover { background: var(--lime); border-color: var(--ink); }
.project-count { color: var(--muted); font: 12px var(--mono); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 25px); }
.project-card { border: 1px solid var(--line); background: #fffdf7; }
.project-card a { display: block; height: 100%; }
.project-card a > div:last-child { padding: 18px; }
.project-card h2 { margin: 0; font: 800 clamp(24px, 2.6vw, 44px)/.95 var(--display); }
.project-card :is(img, .project-placeholder) { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-card img { mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); }
.project-placeholder { display: grid; place-items: center; background: #1a1a1a; color: var(--lime); font: 14px var(--mono); }
.project-card a:hover .inline-link { background: var(--lime); color: var(--ink); }
.project-story {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 48px);
  max-width: 1660px;
  margin-inline: auto;
}
.project-story-text-only { grid-template-columns: minmax(0, 780px); justify-content: center; }
.project-story > .project-gallery { min-width: 0; margin: 0; }
.project-story-copy { min-width: 0; }
.project-back, .project-story-category { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.project-back { text-decoration: underline; text-underline-offset: 3px; }
.project-story h1 { margin: 18px 0 8px; font: 900 clamp(44px, 6vw, 98px)/.9 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.project-story h1::before { content: ''; display: block; width: 13px; height: 24px; margin-bottom: 8px; background: var(--lime); transform: skewX(-28deg); }
.project-story-category { margin: 0; }
.project-story .project-gallery-meta { border: 0; margin: 0; padding-inline: 0; }
.project-story .project-gallery-rail { border: 0; padding: 8px 0 0; }
@media (max-width: 850px) {
  .project-story { grid-template-columns: minmax(0, 1fr); }
}
.project-deck { color: var(--muted); font-size: clamp(17px, 2.1vw, 24px); }
.project-story img { width: 100%; max-height: 540px; object-fit: contain; background: #171717; }
.project-gallery { margin-block: 26px 36px; }
.item-media-column > .item-gallery.item-gallery-with-hotspots {
  display: block;
  padding: 0;
  min-height: 0;
  aspect-ratio: auto;
  background: transparent;
  color: var(--ink);
}
.item-gallery-with-hotspots .project-gallery { margin: 0; }
.item-gallery-with-hotspots .project-photo-viewport { height: auto; aspect-ratio: 4 / 3; container-type: inline-size; }
.item-gallery-with-hotspots .hotspot-stage img { display: block; width: auto; max-width: 100%; max-height: 75cqw; height: auto; }
.item-gallery-with-hotspots .project-photo-viewport[data-framed] { position: relative; overflow: hidden; }
.item-gallery-with-hotspots [data-framed] .hotspot-stage { position: absolute; max-width: none; margin: 0; }
.item-gallery-with-hotspots [data-framed] .hotspot-stage img { width: 100%; max-height: none; }
.project-gallery-display:empty, .project-gallery [hidden] { display: none; }
.project-photo-viewport {
  display: grid;
  place-items: center;
  height: min(760px, 78svh, 125vw);
}
.project-gallery .hotspot-stage { touch-action: pan-y pinch-zoom; }
.project-story .project-gallery-single .project-photo-viewport { height: auto; }
.project-story .project-gallery .hotspot-stage img {
  display: block;
  max-height: min(760px, 78svh, 125vw);
}
.project-photo-enter { animation: project-photo-enter 200ms ease-out both; }
@keyframes project-photo-enter { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .project-photo-enter { animation: none; } }
.project-gallery-meta, .project-gallery-rail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
}
.project-gallery-counter { flex: none; padding: 4px 7px; background: var(--ink); color: var(--lime); font: 12px var(--mono); }
.project-gallery-meta { margin-top: 10px; border-top: 1px solid var(--line); }
.project-gallery-caption, .project-gallery-status { margin: 0; overflow-wrap: anywhere; }
.project-gallery-strip { position: relative; display: flex; flex: 1; min-width: 0; gap: 8px; overflow-x: auto; padding: 4px; }
.project-gallery-thumb, .project-gallery-arrow { cursor: pointer; border: 0; background: transparent; color: var(--ink); }
.project-gallery-thumb { flex: 0 0 clamp(58px, 12vw, 104px); padding: 2px; }
.project-gallery-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-gallery-thumb[aria-current=true] { box-shadow: inset 0 -3px var(--lime); }
.project-gallery-arrow { flex: none; width: 42px; height: 42px; font-size: 22px; }
.project-gallery-arrow:hover { color: #526f00; }
.project-gallery :is(.project-gallery-arrow, .project-gallery-thumb):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.project-gallery-admin:not(:empty) { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; padding: 12px; border: 1px solid var(--line); }
.project-gallery-admin label { display: grid; gap: 4px; min-width: 0; }
.project-gallery-admin input { max-width: 100%; }
.project-gallery-status:not(:empty) { margin-top: 8px; }
.project-gallery .project-photo > :not(.hotspot-stage) { background: var(--paper); }
.project-photo { padding: 0; }
.hotspot-stage { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; }
.hotspot-image-clip { overflow: hidden; }
.hotspot-image-clip img { transition: transform 220ms ease-out; }
.hotspot-stage[data-zoom-spot] img { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .hotspot-image-clip img { transition: none; }
  .hotspot-stage[data-zoom-spot] img { transform: none; }
}
.project-story .hotspot-stage img { width: auto; max-width: 100%; height: auto; }
.hotspot-layer { position: absolute; inset: 0; pointer-events: none; }
.project-photo[data-editing] .hotspot-pin { touch-action: none; cursor: grab; }
.project-photo[data-editing] .hotspot-pin:active { cursor: grabbing; }
.hotspot-pin {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #171717;
  border-radius: 50%;
  background: var(--lime);
  color: #171717;
  box-shadow: 0 0 0 1px #fff;
  font: 700 12px var(--mono);
  pointer-events: auto;
}
.hotspot-pin:focus-visible, .hotspot-pin[aria-pressed=true] { outline: 2px solid #fff; outline-offset: 3px; }
.hotspot-tooltip {
  display: none;
  position: absolute;
  z-index: 2;
  left: clamp(0px, calc(var(--point-x) - 120px), calc(100% - min(240px, 100%)));
  top: calc(var(--point-y) + 21px);
  width: min(240px, 100%);
  padding: 9px 11px;
  background: #171717;
  color: #fffdf5;
  border: 1px solid #bdbab1;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.hotspot-tooltip[data-above=true] { top: auto; bottom: calc(100% - var(--point-y) + 21px); }
.hotspot-tooltip p { margin: 5px 0 0; white-space: pre-wrap; }
.project-photo:not([data-editing]) .hotspot-pin:is(:focus-visible, [aria-pressed=true]) + .hotspot-tooltip { display: block; }
@media (hover: hover) {
  .project-photo:not([data-editing]) .hotspot-pin:hover + .hotspot-tooltip { display: block; z-index: 3; }
}
.project-photo[data-editing] .hotspot-stage { cursor: crosshair; }
.project-photo > .button { margin-top: 12px; }
.project-photo > [role=status]:empty { display: none; }
.hotspot-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: end;
  padding: 15px;
  margin-top: 12px;
  border: 1px solid var(--line);
}
.hotspot-editor[hidden], .project-photo > .button[hidden] { display: none; }
.hotspot-editor p { flex-basis: 100%; margin: 0; }
.hotspot-editor label { flex: 1 1 150px; display: grid; gap: 4px; }
.hotspot-editor :is(input, textarea) { width: 100%; padding: 7px; border: 1px solid var(--line); font: inherit; }
.hotspot-editor button:not(.button) { padding: 7px 10px; border: 1px solid var(--line); background: var(--paper); }
.project-body { max-width: 750px; margin: 22px 0 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 900px) { .project-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hero.has-hero-gallery { min-height: clamp(545px, 83svh, 690px); }
  .has-hero-gallery .hero-copy { align-self: end; padding: 28px 22px 105px; }
  .has-hero-gallery .hero-wash { background: linear-gradient(0deg, #0a0a09f2, #0a0a09be 37%, #0a0a095b 60%, transparent 90%); }
  .has-hero-gallery .hero-gallery .gallery-arrow { top: 34%; }
  .has-hero-gallery .hero-caption { max-width: 85%; }
}
@media (max-width: 530px) { .project-grid, .article-grid { grid-template-columns: minmax(0, 1fr); } }
.project-body h2 { margin: 28px 0 6px; font: 700 clamp(21px, 2.2vw, 29px)/1.15 var(--text); }
.project-body h2[id] { scroll-margin-top: 110px; }
.project-outline { margin-block: 20px; font-size: 15px; }
.project-outline > p { margin: 0 0 8px; font-weight: 700; }
.project-outline ol { margin: 0; padding: 0; list-style-position: inside; }
.project-outline li { margin-block: 4px; }
.project-outline a { text-decoration: underline; text-underline-offset: 3px; }
.project-outline a:hover { color: #526f00; }
.project-body ul { padding-inline-start: 1.25em; }
.project-body li + li { margin-top: 6px; }
.project-tool-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.project-story.project-story-board { grid-template-columns: minmax(0, 1120px); justify-content: center; }
.project-story-board .project-story-copy { grid-row: 1; }
@media (min-width: 1000px) {
  .project-story:not(.project-story-board, .project-story-text-only) { display: flow-root; }
  .project-story:not(.project-story-board, .project-story-text-only) > .project-gallery {
    float: left;
    width: 54%;
    margin: 0 clamp(24px, 3vw, 48px) 24px 0;
  }
  .project-story:not(.project-story-board, .project-story-text-only) h1 {
    font-size: clamp(44px, 5vw, 84px);
  }
  .project-story:not(.project-story-board, .project-story-text-only) .project-body {
    max-width: none;
    border-top: 0;
  }
  .project-story:not(.project-story-board, .project-story-text-only) .project-body ul {
    padding-inline-start: 0;
    list-style-position: inside;
  }
}
@media (max-width: 999px) {
  .project-story:not(.project-story-board, .project-story-text-only) { grid-template-columns: minmax(0, 1fr); }
}
.v18-board-map { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 20px; margin: 24px 0; min-width: 0; background: transparent; color: var(--ink); }
.v18-board-map svg { width: 100%; height: auto; display: block; }
.v18-board-map figcaption { grid-column: 1 / -1; font: 12px/1.45 var(--text); color: #555; }
.v18-map-pin { fill: #171a17; font: 700 25px var(--mono); }
.v18-map-target { fill: #dbfa77; stroke: #171a17; stroke-width: 3; }
.v18-map-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px 14px; }
.v18-map-legend h2 { margin: 0 0 4px; font: 700 14px var(--text); }
.v18-map-legend ul { list-style: none; padding: 0; margin: 0; }
.v18-map-legend li { display: flex; align-items: baseline; gap: 5px; font: 12px/1.6 var(--mono); }
.v18-map-legend li b { color: #405600; min-width: 2ch; }
.v18-map-marker { cursor: pointer; }
.v18-map-marker .v18-map-pin { pointer-events: none; }
.v18-map-marker.is-active .v18-map-target, .v18-map-marker:focus-visible .v18-map-target { fill: #c7ff00; stroke: #fff; stroke-width: 5; }
.v18-map-legend li button { display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 4px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.v18-map-legend li button.is-active { background: #e5f3b9; }
.v18-map-tooltip { grid-column: 1 / -1; min-height: 3em; padding: 8px 10px; background: #eeeee7; font: 13px/1.35 var(--text); }
@media (max-width: 660px) { .v18-board-map { grid-template-columns: minmax(0, 1fr); } .v18-board-map svg { max-width: 430px; margin-inline: auto; } }
.project-firmware { padding: 14px 16px; border-left: 3px solid var(--lime); background: #eeede7; overflow-wrap: anywhere; }
.project-firmware h2 { margin-top: 0; }
.project-firmware p:last-child { margin-bottom: 0; font: 12px/1.45 var(--mono); }
