/* Approved typographic hero. Keep the shared workbench root for service events. */
.hero-typographic .hero-workbench {
  background: var(--white);
}

.hero-typographic .hero-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-typographic .hero-surface::before {
  position: absolute;
  z-index: 0;
  content: "";
  right: 0;
  bottom: 0;
  width: clamp(440px, 48vw, 860px);
  height: 82%;
  background: #23262a;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-typographic .hero-surface::after {
  position: absolute;
  z-index: 0;
  content: "";
  right: 0;
  bottom: 48px;
  width: clamp(45px, 4vw, 74px);
  height: 4px;
  background: var(--orange);
  pointer-events: none;
}

.hero-typographic .hero-grid {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 552px;
  padding-block: 44px 38px;
}

.hero-typographic .hero-copy {
  position: relative;
  padding: 0;
  z-index: 2;
}

.hero-typographic .hero-copy > .eyebrow {
  margin-bottom: 20px;
  color: var(--dark-muted);
}

.hero-typographic .hero-title {
  max-width: 1080px;
  color: var(--white);
  font-size: clamp(70px, 6.2vw, 90px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-typographic .hero-title span {
  color: var(--orange);
  text-decoration: none;
}

.hero-typographic .hero-description {
  max-width: 490px;
  margin-top: 25px;
  color: var(--dark-muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-typographic .hero-description strong {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero-typographic .hero-actions {
  gap: 14px;
  margin-top: 25px;
}

.hero-typographic .hero-actions .button {
  min-height: 52px;
  font-size: 16px;
}

.hero-typographic .button-plain {
  color: var(--white);
}

.hero-typographic .button-plain:hover {
  background: #ffffff10;
}

.hero-typographic .hero-location {
  margin-top: 15px;
  color: var(--dark-muted);
  font-size: 13px;
}

.hero-typographic .hero-location .icon {
  color: var(--dark-muted);
  width: 17px;
  height: 17px;
}

.hero-typographic .hero-location:hover {
  color: var(--orange);
}

.hero-typographic .hero-device-panel {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: 44%;
  max-width: 530px;
  isolation: isolate;
}

.hero-typographic .workbench-stage {
  aspect-ratio: 1.5;
}

.hero-typographic .workbench-noscript {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* The legacy poster has a white matte. Show the transparent 3D frame or fallback. */
.hero-typographic .hero-workbench:not([data-fallback-ready="true"]) .workbench-visual {
  opacity: 0;
  visibility: hidden;
}

.hero-typographic .hero-workbench[data-fallback-ready="true"] .workbench-visual {
  opacity: 1;
  visibility: visible;
}

.hero-typographic .workbench-meta {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 44px;
  margin: 0;
}

.hero-typographic .workbench-replay,
.hero-typographic .workbench-reset {
  min-height: 40px;
  padding: 8px;
  color: var(--dark-muted);
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 400;
}

.hero-typographic .workbench-reset .icon {
  width: 15px;
  height: 15px;
}

.hero-typographic .workbench-replay:hover,
.hero-typographic .workbench-reset:hover {
  color: var(--white);
  border-color: var(--dark-line);
  background: #ffffff08;
}

.hero-typographic .workbench-reset[aria-pressed="true"] {
  color: var(--orange);
  border-color: var(--orange);
}

.hero-typographic .component-label {
  max-width: 140px;
  padding: 7px 9px;
  color: var(--white);
  background: #181a1deb;
  box-shadow: none;
}

.hero-typographic .component-label-name {
  font-size: 12px;
}

.hero-typographic .component-label-note {
  margin-top: 3px;
  font-size: 11px;
  color: var(--dark-muted);
}

.hero-typographic .workbench-status {
  top: 14px;
  left: 12px;
  color: var(--dark-muted);
  background: #181a1de8;
  font-size: 12px;
}

.hero-typographic .hero-surface :focus-visible {
  outline-color: var(--orange);
}

.hero-typographic .hero-service-strip {
  background: var(--white);
  padding-top: 20px;
}

.hero-typographic .workbench-caption {
  margin: 0 0 17px;
  color: var(--muted);
  text-align: left;
  font-size: 11px;
  font-family: var(--body);
}

.hero-typographic .hero-service-controls {
  gap: 12px;
  border: 0;
  background: transparent;
}

.hero-typographic .hero-service-button {
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-typographic .hero-service-button + .hero-service-button {
  border: 1px solid var(--line);
}

.hero-typographic .hero-service-button > .icon {
  grid-column: auto;
  width: 22px;
  height: 22px;
  color: var(--orange-dark);
}

.hero-typographic .hero-service-button[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
}

.hero-typographic .hero-service-button[aria-pressed="true"] > .icon {
  color: var(--ink);
}

.hero-typographic .hero-service-controls[data-selector-motion] > .hero-service-button {
  background: transparent;
}

.hero-typographic .hero-service-detail {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  min-height: 89px;
  padding: 18px 0 23px;
  border: 0;
}

.hero-typographic #hero-service-description {
  max-width: 810px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.hero-typographic #hero-service-link {
  flex-shrink: 0;
  margin-top: 0;
}

@media (min-width: 1600px) {
  .hero-typographic .hero-grid {
    min-height: 566px;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .hero-typographic .hero-grid {
    min-height: 506px;
    padding-block: 38px 29px;
  }
  .hero-typographic .hero-title {
    font-size: clamp(60px, 7.1vw, 78px);
  }
  .hero-typographic .hero-description {
    max-width: 51%;
    font-size: 17px;
  }
  .hero-typographic .hero-device-panel {
    width: 44%;
    max-width: 430px;
    bottom: 0;
  }
  .hero-typographic .hero-service-button {
    gap: 10px;
    padding-inline: 14px;
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .hero-typographic .hero-grid {
    min-height: 0;
    padding-block: 33px 17px;
  }
  .hero-typographic .hero-copy > .eyebrow {
    margin-bottom: 19px;
  }
  .hero-typographic .hero-title {
    font-size: clamp(49px, 9.1vw, 67px);
    line-height: 1.02;
  }
  .hero-typographic .hero-description {
    max-width: 470px;
    margin-top: 21px;
    font-size: 17px;
    line-height: 1.6;
  }
  .hero-typographic .hero-actions {
    margin-top: 23px;
    gap: 8px;
  }
  .hero-typographic .hero-actions .button {
    min-height: 50px;
  }
  .hero-typographic .hero-location {
    margin-top: 12px;
    min-height: 40px;
  }
  .hero-typographic .hero-device-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(calc(100% + 24px), 420px);
    max-width: none;
    margin: 12px -12px 0 auto;
  }
  .hero-typographic .hero-surface::before {
    width: min(100%, 540px);
    height: 40%;
    max-height: 390px;
  }
  .hero-typographic .workbench-meta {
    min-height: 40px;
    gap: 8px;
  }
  .hero-typographic .hero-service-strip {
    padding-top: 21px;
  }
  .hero-typographic .workbench-caption {
    margin-bottom: 14px;
    font-size: 12px;
  }
  .hero-typographic .hero-service-controls {
    gap: 8px;
  }
  .hero-typographic .hero-service-button {
    min-height: 60px;
    padding: 14px 17px;
    gap: 12px;
    font-size: 16px;
  }
  .hero-typographic .hero-service-detail {
    display: block;
    min-height: 143px;
    padding-block: 17px 22px;
  }
  .hero-typographic #hero-service-description {
    margin-bottom: 10px;
  }
}

@media (max-width: 359px) {
  .hero-typographic .hero-title {
    font-size: 48px;
  }
  .hero-typographic .hero-description {
    font-size: 16px;
  }
  .hero-typographic .hero-actions .button {
    gap: 16px;
    padding-inline: 16px;
    font-size: 15px;
  }
  .hero-typographic .hero-actions .button-plain {
    gap: 10px;
    padding-inline: 11px;
  }
}

/* Macro inspection uses the dark hero itself as the viewport. The existing
   surface clips every 3D layer before the white service strip begins. */
.hero-typographic .hero-workbench[data-scene-expanded="true"] .hero-device-panel {
  z-index: 1;
  pointer-events: none;
}

.hero-typographic .hero-workbench[data-scene-expanded="true"] .hero-copy {
  z-index: 2;
}

.hero-typographic .hero-workbench[data-scene-expanded="true"] .workbench-meta {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .hero-typographic .hero-workbench[data-scene-expanded="true"] .hero-grid {
    position: static;
  }

  .hero-typographic .hero-workbench[data-scene-expanded="true"] .hero-device-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .hero-typographic .hero-workbench[data-scene-expanded="true"] .workbench-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .hero-typographic .hero-workbench[data-scene-expanded="true"] .workbench-canvas {
    -webkit-mask-image: linear-gradient(to right, transparent 45%, #000 65%);
    mask-image: linear-gradient(to right, transparent 45%, #000 65%);
  }

  .hero-typographic .hero-workbench[data-scene-expanded="true"] .workbench-meta {
    position: absolute;
    right: max(48px, calc((100% - 1320px) / 2));
    bottom: 0;
    width: max-content;
    max-width: calc(100% - 96px);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-typographic .hero-workbench[data-scene-expanded="true"] .workbench-meta {
    right: 32px;
    max-width: calc(100% - 64px);
  }
}

@media (max-width: 767px) {
  .hero-typographic .hero-workbench[data-scene-expanded="true"] .hero-device-panel {
    width: calc(100% + 40px);
    max-width: none;
    margin: 12px -20px 0;
  }

  .hero-typographic .hero-workbench[data-scene-expanded="true"] .workbench-stage {
    aspect-ratio: 1.25;
  }

  .hero-typographic .hero-workbench[data-scene-expanded="true"] .workbench-canvas {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent);
  }

  .hero-typographic .hero-workbench[data-scene-expanded="true"] .workbench-meta {
    padding-inline: 20px;
  }
}

@media (max-width: 359px) {
  .hero-typographic .hero-workbench[data-scene-expanded="true"] .hero-device-panel {
    width: calc(100% + 32px);
    margin-inline: -16px;
  }

  .hero-typographic .hero-workbench[data-scene-expanded="true"] .workbench-meta {
    padding-inline: 16px;
  }
}

/* Keep secondary actions as usable as the primary buttons on a phone. */
@media (max-width: 767px) {
  .hero-typographic .workbench-meta {
    min-height: 48px;
  }

  .hero-typographic .workbench-replay,
  .hero-typographic .workbench-reset {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .hero-typographic #hero-service-link {
    min-height: 44px;
    font-size: 16px;
  }

  .hero-typographic .hero-location {
    min-height: 44px;
    font-size: 14px;
  }

  .opening-hours {
    font-size: 14px;
  }

  .opening-hours td {
    white-space: normal;
    overflow-wrap: normal;
  }

  .opening-hours .hours-interval {
    white-space: nowrap;
  }
}
