.detail-wrap {
  width: min(100% - 2.5rem, 78rem);
  margin-inline: auto;
}
.detail-header nav { justify-content: flex-end; gap: clamp(.7rem, 1.8vw, 2rem); }
.language { border: 1px solid currentColor; border-radius: .45rem; padding: .35rem .55rem !important; }
.breadcrumbs { margin: 1.25rem 0 2rem; font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .75; }
.detail-hero {
  position: relative;
  display: grid;
  min-height: 25rem;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
  color: white;
}
.detail-hero img, .detail-hero::after {
  position: absolute;
  inset: 0 0 0 auto;
  height: 100%;
  width: 64%;
}
.detail-hero img { object-fit: cover; object-position: center; }
.detail-hero::after {
  content: "";
  background: linear-gradient(90deg, var(--navy) 0%, #0b2d62dc 30%, #0b2d6238 100%);
}
.detail-hero .detail-wrap { position: relative; z-index: 1; padding-block: 1rem 3.1rem; }
.detail-hero h1, .detail-wrap h1 {
  max-width: 22ch;
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.05em;
  overflow-wrap: break-word;
}
.detail-hero p:not(.eyebrow) { max-width: 41rem; margin: 1rem 0 1.4rem; }
.detail-anchor { background: var(--navy-light); color: white; }
.detail-anchor .detail-wrap { padding-block: .85rem; display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; }
.detail-anchor a { padding-block: .3rem; }
.detail-section { padding-block: clamp(1.65rem, 3.5vw, 3.25rem); }
.detail-wrap > .detail-section + .detail-section { border-top: 1px solid var(--muted); }
.detail-section h1, .detail-section h2, .detail-section h3 { margin-bottom: .8rem; }
.detail-section > p { max-width: 70ch; margin-bottom: .85rem; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
}
.detail-card {
  padding: 1.2rem;
  border: 1px solid var(--muted);
  border-radius: .8rem;
  background: white;
  box-shadow: 0 3px 10px #0b2d620d;
}
.detail-card h2 { font-size: 1.35rem; }
.detail-card h3 { margin: 0 0 .5rem; }
.detail-card a, .admin-nav a { text-decoration-thickness: 1px; text-underline-offset: .17em; }
.detail-card ul { padding-inline-start: 1.2rem; }
.detail-grid .unit-icon { display: none; }
.status-tag {
  display: inline-block;
  background: #e5edfc;
  color: #173763;
  border-radius: .35rem;
  padding: .18rem .45rem;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.35;
}
.status-tag[data-status="offered"] { background: #e7f4ed; color: #145832; }
.status-tag[data-status="development"] { background: #fff5ce; color: #654800; }
.status-tag[data-status="future"] { background: #ecebfb; color: #3e3379; }
.detail-card .status-tag { margin-bottom: .45rem; }
.service-list { display: grid; gap: .65rem; margin: 1.25rem 0; }
.service-list details { background: white; border: 1px solid var(--muted); border-radius: .5rem; padding: .85rem 1rem; }
.service-list summary { font-weight: 700; cursor: pointer; }
.service-list ul { list-style: none; padding: 0; margin: .55rem 0 0; }
.service-list li { display: flex; justify-content: space-between; align-items: start; gap: .75rem; padding: .55rem 0; }
.service-list li + li { border-top: 1px solid var(--bg); }
.service-list li .status-tag { flex-shrink: 0; }
.service-list details > p { margin: .75rem 0 0; }
.sector-list, .steps-list { display: flex; flex-wrap: wrap; gap: .65rem; padding: 0; margin: 1.15rem 0 0; list-style: none; }
.sector-list li, .steps-list li { padding: .62rem .84rem; background: white; border: 1px solid var(--muted); border-radius: .4rem; }
.steps-list { counter-reset: steps; }
.steps-list li::before { counter-increment: steps; content: counter(steps) ". "; font-weight: 800; }
.detail-request { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); align-items: start; gap: clamp(1.25rem, 3.5vw, 3rem); }
.quote-form {
  max-width: 56rem;
  display: grid;
  gap: .9rem;
  justify-items: start;
  padding: clamp(.8rem, 2vw, 1.6rem);
  border: 1px solid var(--muted);
  border-radius: .85rem;
  background: white;
}
.quote-form label { display: grid; width: 100%; gap: .35rem; font-weight: 700; }
.quote-form label small, .quote-form > p { font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; width: 100%; }
.quote-form input, .quote-form textarea, .quote-form select { width: 100%; min-width: 0; padding: .66rem; border: 1px solid #7489a4; border-radius: .4rem; color: var(--ink); background: white; }
.quote-form select, .quote-form input { min-height: 2.5rem; }
.quote-form textarea { resize: vertical; }
.quote-form .form-trap { position: absolute; left: -10000px; height: 1px; width: 1px; overflow: hidden; }
.rfq-item { min-inline-size: 0; padding: .6rem; margin: .65rem 0 0; border: 1px solid var(--muted); border-radius: .45rem; }
.rfq-item legend { font-weight: 700; }
.rfq-item .text-button { margin-top: .65rem; }
#rfq-items { width: 100%; }
.quote-status:empty { display: none; }
.quote-status { overflow-wrap: anywhere; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .7rem 1.15rem; margin-bottom: 1.3rem; }
.request-payload { white-space: pre-wrap; overflow-wrap: anywhere; background: white; padding: 1rem; }
.screenshot { display: block; max-width: 100%; height: auto; }
.carousel .detail-card { padding: .55rem .6rem; min-height: 8rem; }
.carousel .detail-card h3 { font-size: 1rem; }
.carousel .detail-card > p:last-child { font-size: .9rem; }
.carousel .detail-card:nth-child(n+6) { display: none; }

@media (max-width: 980px) {
  .detail-hero img, .detail-hero::after { width: 86%; }
  .detail-header nav.open { justify-content: flex-start; }
}
@media (max-width: 650px) {
  .detail-hero img, .detail-hero::after { width: 100%; }
  .detail-hero::after { background: linear-gradient(90deg, #0b2d62f5, #0b2d62a0); }
  .detail-wrap { width: calc(100% - 1.6rem); }
  .detail-request, .form-grid { grid-template-columns: 1fr; }
  .service-list li { flex-direction: column; gap: .25rem; }
  .carousel .detail-card:nth-child(n+3) { display: none; }
}

.product-figure { margin: 0 0 2rem; max-width: 56rem; }
.product-figure figcaption { margin-top: .7rem; line-height: 1.45; }
.product-mockup { background: white; border: 1px solid var(--muted); border-radius: .85rem; overflow: hidden; }
.mockup-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; padding: 1rem 1.3rem; background: var(--navy); color: white; }
.mockup-bar span { color: var(--gold); font-weight: 700; }
.mockup-body { padding: clamp(1rem, 4vw, 2rem); }
.mockup-body ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .65rem; list-style: none; padding: 0; margin: 1.15rem 0 0; }
.mockup-body li { padding: .75rem; background: var(--bg); border: 1px solid var(--muted); border-radius: .45rem; }

.expertise-card {
  padding: 0;
  overflow: hidden;
}
.expertise-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.expertise-copy { padding: 1.15rem; }
.quote-email { font-weight: 700; text-underline-offset: .18em; }

.expertise-gallery { margin-top: 1.15rem; }
.expertise-slides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}
.expertise-gallery[data-ready] {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(14rem, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.expertise-gallery[data-ready] .expertise-slides { grid-template-columns: minmax(0, 1fr); }
.expertise-gallery[data-ready] .expertise-photo { max-height: 26rem; }
.expertise-copy a { display: inline-block; margin-top: .65rem; font-weight: 700; }
.expertise-controls {
  padding: 1rem;
  background: white;
  border: 1px solid var(--muted);
  border-radius: .8rem;
}
.expertise-choices { display: grid; gap: .55rem; }
.expertise-choices button {
  min-height: 2.8rem;
  padding: .65rem .8rem;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--muted);
  border-inline-start: .25rem solid transparent;
  border-radius: .45rem;
}
.expertise-choices button:hover { background: #e5edfc; }
.expertise-choices button[aria-pressed="true"] {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
  border-inline-start-color: var(--gold);
}
.expertise-play { margin-top: .9rem; }
.expertise-play[hidden] { display: none; }
.status-tag[data-status="quotation"] { background: #e7f4ed; color: #145832; }
.status-tag[data-status="study"], .status-tag[data-status="compatibility"], .status-tag[data-status="capacity"] {
  background: #fff5ce;
  color: #654800;
  flex-shrink: 1;
}

@media (max-width: 720px) {
  .expertise-gallery[data-ready] { grid-template-columns: minmax(0, 1fr); }
  .expertise-choices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.4rem), 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .expertise-gallery[data-ready] .expertise-card:not([hidden]) .expertise-photo {
    animation: expertise-reveal .55s ease-out both;
  }
  @keyframes expertise-reveal {
    from { opacity: .66; transform: scale(1.025); }
    to { opacity: 1; transform: scale(1); }
  }
}

.contact-location { margin-top: .9rem; font-style: normal; font-weight: 700; }
