/* Second edition: an instrument panel, a useful conversation, a considered touch. */
.hero-photo-open {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; margin: 0 auto 0 32px; padding: 9px 15px;
  color: #ded8cd; background: linear-gradient(140deg,#2c2e30b8,#111214bd);
  border: 1px solid #ffffff35; font-size: 11px; letter-spacing: .04em;
  box-shadow: 0 3px 0 #08090a, inset 0 1px 0 #ffffff12;
}
.hero-photo-open svg { width: 17px; height: 17px; flex-basis: 17px; }
.experience-control { gap: 22px; align-items: center; }
.ignition-display {
  width: 204px; padding: 12px 14px 10px; position: relative; overflow: hidden;
  background: linear-gradient(135deg,#3b3b3c80,#101112e6 60%);
  border: 1px solid #ffffff28; border-bottom: 2px solid #b8a06a66;
  box-shadow: inset 0 1px 0 #ffffff0a,0 8px 30px #0004;
}
.engine-top { display: flex; justify-content: space-between; gap: 10px; font: 400 8px/1.4 var(--display); letter-spacing: .12em; color: #9b958a; }
.engine-top span:last-child { color: #d6c6a3; }
.engine-level { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
.engine-level b { font: 400 36px/.95 var(--display); color: #f6f1e7; font-variant-numeric: tabular-nums; min-width: 46px; }
.engine-level > span { font: 400 7px/1.65 var(--display); color: #a39e95; letter-spacing: .05em; }
.engine-bars { display: flex; gap: 3px; height: 29px; flex: 1; align-items: flex-end; overflow: hidden; position: relative; }
.engine-bars i { display: block; flex: 1; height: 100%; background: #56524c66; transform: skew(-12deg); }
.engine-bars i:nth-child(-n+3) { height: 45%; }
.engine-bars i:nth-child(n+4):nth-child(-n+6) { height: 65%; }
.engine-bars i:nth-child(n+7):nth-child(-n+9) { height: 82%; }
.engine-bars:after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#b8a06a 20%,#e8c780 60%,#c8102e 90%); clip-path: inset(calc(100% - var(--engine-power)*100%) 0 0); opacity: .8; transition: clip-path .22s linear; mix-blend-mode: screen; }
.ignition-action { display: grid; justify-items: center; gap: 11px; }
.experience-control .ignition-action p { max-width: 114px; font-size: 9px; line-height: 1.7; text-align: center; min-height: 16px; }
.experience-on .ignition-display { border-color: #e8546b88; box-shadow: inset 0 0 20px #c8102e10,0 0 28px #c8102e30; }
.experience-on .engine-top span:last-child { color: #f07886; }
.experience-ready .engine-top span:last-child { color: #e6c989; }
.hero-workshop { bottom: 163px; }
.hero-bottom { bottom: 25px; align-items: center; }
.experience-on .hero-redline { animation: redline-run 1.8s var(--ease); }
.hero-kicker,.hero-cert { animation: detail-in .8s var(--ease) both; animation-delay: .28s; }
.hero-cert { animation-delay: .8s; }
.is-visible h2 { animation: title-uncover .85s var(--ease) both; }

/* All choices share a light stroke and a short, physical return. */
a.is-rebounding,button.is-rebounding,summary.is-rebounding,.check-item.is-rebounding { animation: control-return .36s var(--ease); }
a.is-activated,button.is-activated,summary.is-activated,.check-item.is-activated {
  background-image: radial-gradient(circle at var(--tap-x,50%) var(--tap-y,50%),#ffffff1c 0%,transparent 72%);
  box-shadow: inset 0 0 0 1px #d8b98670,0 0 18px #c8102e18;
}
.button-red.is-activated,.header-contact.is-activated { color: #fff; background-image: linear-gradient(160deg,#c8102e,#a70725); }
.button-light.is-activated { background-image: radial-gradient(circle at var(--tap-x,50%) var(--tap-y,50%),#fff,transparent 72%),linear-gradient(160deg,#fff8ee,#e8dfce); }
.price-note { color: #6c6156; }
.service-panel.panel-enter .service-image img { animation: panel-photo .6s var(--ease) both; }
.service-panel.panel-enter .service-content { animation: panel-copy .6s var(--ease) both; }
.service-panels.is-switching { border-color: #b8a06a; }

/* Selected concerns lead to a concrete next conversation and matching menus. */
.concern-response { display: block; margin-top: 10px; padding: 8px 0 0; border-top: 1px solid #d8b9863b; color: #e2cba2; font-size: 11px; line-height: 1.8; animation: result-in .4s var(--ease); }
.concern-response:before { content: '→'; color: #e95870; margin-right: 7px; }
.check-item.is-selected { box-shadow: 0 4px 0 #260710,inset 3px 0 0 #dc2947,inset 0 1px 0 #f1657c22; }
.check-complete { position: relative; margin-top: 24px; border: 1px solid #b8a06a66; background: radial-gradient(ellipse at 50% 100%,#b8a06a20,transparent 65%),linear-gradient(110deg,#191919,#302720,#191919); overflow: hidden; }
.check-complete:before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg,transparent 35%,#ebd3a32e 50%,transparent 65%); transform: translateX(-110%); }
.check-completed .check-complete:before { animation: ignition-sweep 1.2s var(--ease); }
.check-completed .check-gauge { box-shadow: 0 0 0 1px #d3b47d88,inset 0 0 0 4px #101011,0 0 45px #b8a06a44; }
.check-completed .gauge-face strong { color: #f0d197; }
.check-gauge.is-updated .gauge-face strong { animation: gauge-number .44s var(--ease); }
.check-result { align-items: start; gap: 36px; }
.next-step-card { margin-top: 20px; padding: 16px 18px; border-left: 2px solid var(--red); background: linear-gradient(110deg,#b8a06a0f,transparent); }
.next-step-label { font-size: 10px; color: #b8a894; letter-spacing: .05em; }
.next-step-card h4 { margin: 8px 0; font-size: 14px; font-weight: 600; line-height: 1.7; color: #f0e1c7; }
.next-step-card p { font-size: 12px; color: #c2b7a7; line-height: 1.9; }
.recommended-menu { margin-top: 22px; }
.recommended-menu > p { font-size: 11px; color: #ddd0b9; margin-bottom: 10px; }
.recommended-services { display: flex; flex-wrap: wrap; gap: 9px; }
.recommended-service.control-enter,.recommended-service { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 44px; padding: 10px 13px; border: 1px solid #b8a06a62; background: linear-gradient(130deg,#514238,#2b2520); box-shadow: 0 3px 0 #110e0c; font-size: 12px; color: #f3e8d5; }
.recommended-service svg { width: 16px; height: 16px; flex-basis: 16px; color: #d7b97e; }
.result-actions textarea { font-size: 14px; min-height: 160px; }
.result-actions label { font-size: 12px; }
.check-result #advice-text { font-size: 13px; }
.check-result ul { font-size: 12px; }
.reset-link { min-height: 44px; padding-top: 8px; }

/* A visible sequence makes the last invitation easy to act on. */
.contact-route { list-style: none; padding: 0; display: flex; gap: 28px; margin: 0 0 34px; max-width: 700px; }
.contact-route li { position: relative; padding-top: 14px; flex: 1; border-top: 1px solid #c8b38a5c; }
.contact-route li:before { content: ''; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #dc2947; box-shadow: 0 0 12px #dc294766; }
.contact-route span { display: block; font: 400 11px var(--display); color: #c4ac7b; letter-spacing: .1em; margin-bottom: 5px; }
.contact-route strong { font-size: 12px; font-weight: 500; color: #e4ddd1; }

@keyframes control-return { 0% { transform: translateY(3px) scale(.978); } 58% { transform: translateY(-1px) scale(1.007); } 100% { transform: translateY(0) scale(1); } }
@keyframes panel-photo { from { transform: scale(1.075); filter: brightness(.7); } to { transform: scale(1); filter: brightness(1); } }
@keyframes panel-copy { from { opacity: .3; transform: translateX(13px); } to { opacity: 1; transform: translateX(0); } }
@keyframes title-uncover { from { clip-path: inset(0 0 100% 0); transform: translateY(12px); } to { clip-path: inset(0 0 0 0); transform: translateY(0); } }
@keyframes detail-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes redline-run { 0%,100% { filter: brightness(1); } 50% { filter: brightness(2); box-shadow: 0 -4px 45px #d3214a80; } }
@keyframes gauge-number { 0% { opacity: .5; transform: translateY(5px); } 100% { opacity: 1; transform: translateY(0); } }

@media(max-width:1080px) and (min-width:761px) {
  .hero-photo-open { margin-left: 20px; }
  .ignition-display { width: 170px; }
  .experience-control { gap: 14px; }
}
@media(max-width:760px) {
  .hero { min-height: 0; }
  .hero-content { padding-bottom: 266px; }
  .hero-workshop { bottom: 68px; width: 190px; }
  .workshop-caption { margin-top: 8px; gap: 5px; }
  .workshop-caption a.control-enter { min-width: 44px; min-height: 44px; }
  .workshop-caption > span { max-width: 130px; font-size: 9px; line-height: 1.8; }
  .hero-bottom { bottom: 48px; align-items: flex-end; }
  .hero-bottom .scroll-cue { display: none; }
  .hero-photo-open { position: absolute; left: 0; bottom: -38px; margin: 0; min-height: 44px; padding: 7px 10px; font-size: 10px; pointer-events: auto; }
  .experience-control { max-width: 110px; flex-direction: column; gap: 14px; }
  .ignition-display { width: 110px; padding: 8px; }
  .engine-top { font-size: 7px; gap: 4px; letter-spacing: .05em; }
  .engine-top > span:first-child { max-width: 57px; line-height: 1.6; }
  .engine-top > span:last-child { font-size: 6px; }
  .engine-level { margin-top: 5px; gap: 5px; }
  .engine-level b { font-size: 28px; min-width: 34px; }
  .engine-level > span { font-size: 6px; }
  .engine-bars { height: 22px; gap: 2px; }
  .engine-bars i:nth-child(2n) { display: none; }
  .ignition-action { gap: 10px; }
  .experience-control .ignition-action p { font-size: 8px; max-width: 110px; }
  .ignition { width: 62px; height: 62px; }
  .sound-toggle { min-width: 44px; min-height: 44px; }
  .sound-label { font-size: 10px; }
  .menu-toggle { width: 44px; height: 44px; min-width: 44px; }
  .header-actions { gap: 9px; }
  .round-button { width: 46px; height: 46px; }
  .review-dots { gap: 3px; }
  .review-dots button { width: 44px; height: 44px; }
  .review-dots button:before { width: 26px; left: 9px; }
  .back-top.control-enter { width: 44px; height: 44px; }
  .footer-top { grid-template-columns: 1fr 44px; }
  .check-fields { gap: 12px; }
  .check-gauge { grid-row: 2 / 4; }
  .check-note { grid-column: 1 / -1; grid-row: 4; margin-top: 12px; font-size: 11px; line-height: 1.8; }
  .check-copy strong { font-size: 13px; line-height: 1.75; }
  .check-copy small { font-size: 11px; line-height: 1.8; }
  .check-item { padding-block: 17px; }
  .concern-response { font-size: 11px; margin-top: 9px; }
  .check-result { padding: 25px 20px; gap: 28px; }
  .check-result h3 { font-size: 20px; }
  .check-result #advice-text,.check-result ul,.next-step-card p { font-size: 13px; }
  .next-step-card { padding: 13px 14px; margin-top: 17px; }
  .next-step-label { font-size: 10px; }
  .next-step-card h4 { font-size: 14px; }
  .recommended-menu > p { font-size: 11px; }
  .recommended-service { font-size: 12px; flex: 1 1 auto; }
  .result-actions textarea { font-size: 16px; line-height: 1.8; min-height: 190px; padding: 12px; }
  .result-button-row { gap: 10px; }
  .result-button-row .button { font-size: 12px; min-height: 52px; padding-inline: 10px; }
  .result-button-row .button svg { display: none; }
  .check-complete { padding: 24px 15px; gap: 8px 12px; }
  .check-complete strong { font-size: 16px; line-height: 1.9; }
  .check-complete > span:not(.complete-line) { font-size: 10px; }
  .contact-route { margin-top: 0; margin-bottom: 28px; gap: 12px; }
  .contact-route li { padding-top: 11px; }
  .contact-route strong { display: block; font-size: 10px; line-height: 1.85; max-width: 84px; }
  .contact-route span { font-size: 11px; }
  .contact-section { padding-bottom: 58px; }
  .contact-content > p:last-of-type { font-size: 12px; }
  .price-note { font-size: 12px; }
  .mobile-dock a:last-child,
  .mobile-dock a:last-child.is-activated {
    color: var(--ivory);
    background-image: linear-gradient(150deg,#057933,#035b28);
  }
}
@media(max-width:370px) {
  .hero-content { padding-bottom: 264px; }
  .hero-workshop { width: 164px; left: 16px; }
  .workshop-caption > span { font-size: 8px; }
  .experience-control,.ignition-display { max-width: 96px; width: 96px; }
  .engine-top > span:first-child { max-width: 48px; }
  .engine-level { gap: 4px; }
  .engine-bars { gap: 1px; }
  .header-actions { gap: 4px; }
  .check-copy strong { font-size: 12px; }
  .check-copy small,.concern-response { font-size: 10px; }
  .check-result { padding-inline: 16px; }
  .recommended-service { font-size: 11px; padding-inline: 10px; }
  .review-controls { gap: 8px; }
  .review-pagination { gap: 6px; }
  .review-pagination > span { font-size: 11px; margin-right: 2px; }
  .review-dots button { width: 44px; }
  .review-dots button:before { left: 9px; }
}
@media(prefers-reduced-motion:reduce) {
  .hero-kicker,.hero-cert,.is-visible h2,.panel-enter .service-content,.panel-enter .service-image img { animation: none!important; clip-path: none!important; transform: none!important; }
  .engine-bars:after { transition: none; }
  .check-complete:before { display: none; }
}

/* Round two: choose the work by its photograph, then see its details. */
.service-tabs { gap: 12px; border-bottom: 0; }
.service-tabs button {
  isolation: isolate; overflow: hidden; min-height: 142px; padding: 17px 19px 19px;
  border: 1px solid #b8a06a65; color: var(--ivory); background: #181615;
  box-shadow: 0 4px 0 #cfc4b3, inset 0 1px 0 #ffffff1c;
}
.service-tabs .service-tab-photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(.6); transition: transform .65s var(--ease), filter .4s;
}
.service-tabs button:before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,#14141445,#141414c4 55%,#141414f2),linear-gradient(90deg,#14141455,transparent);
}
.service-tabs button > .service-tab-number {
  display: block; margin: 0 0 27px; color: #f0d6a8; font: 400 13px/1 var(--display);
}
.service-tabs button > strong { display: block; font-size: 16px; line-height: 1.5; font-weight: 600; }
.service-tabs button > small { margin: 7px 0 0; color: #d9cab4; font-size: 9px; letter-spacing: .1em; }
.service-tabs button > .service-tab-selected {
  position: absolute; top: 13px; right: 13px; width: 23px; height: 23px;
  padding: 3px; border: 1px solid #f2cfb778; color: #f9ead8; background: #c8102e;
  opacity: 0; transform: scale(.65); transition: opacity .2s, transform .3s var(--ease);
}
.service-tabs button[aria-selected=true] {
  color: var(--ivory); border-color: #c8102e; background: #181615;
  box-shadow: 0 4px 0 #601323, 0 6px 20px #c8102e1f;
}
.service-tabs button[aria-selected=true] > .service-tab-number { color: #f0d6a8; }
.service-tabs button[aria-selected=true] > small { color: #e6d5bb; }
.service-tabs button[aria-selected=true] > .service-tab-selected { opacity: 1; transform: scale(1); }
.service-tabs button[aria-selected=true] .service-tab-photo { filter: saturate(.9); }
.service-tabs button:after { bottom: 0; }
.service-tabs button:focus-visible { outline-offset: 4px; }
@media(hover:hover) {
  .service-tabs button:hover .service-tab-photo { transform: scale(1.065); filter: saturate(.95); }
}

/* The last invitation shows the same three steps in pictures. */
.contact-route { gap: 18px; max-width: 660px; }
.contact-route li { padding-top: 0; border-top: 0; min-width: 0; }
.contact-route li:before { display: none; }
.route-photo { height: 100px; position: relative; overflow: hidden; margin-bottom: 11px; border: 1px solid #c8b38a6b; background: #161515; }
.route-photo:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 20%,#090909b3); pointer-events: none; }
.route-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.contact-route .route-photo > span { position: absolute; left: 12px; bottom: 9px; z-index: 1; margin: 0; font-size: 17px; color: #f4dbac; }
.contact-route strong { display: block; font-size: 13px; line-height: 1.8; }

@media(max-width:1000px) and (min-width:761px) {
  .service-tabs button { padding-inline: 13px; }
  .service-tabs button > strong { font-size: 14px; }
  .service-tabs button > small { font-size: 8px; letter-spacing: .07em; }
}
@media(max-width:760px) {
  .service-tabs { gap: 11px; }
  .service-tabs button { min-height: 120px; padding: 13px 13px 15px; }
  .service-tabs button > .service-tab-number { font-size: 12px; margin-bottom: 23px; }
  .service-tabs button > strong { font-size: 14px; }
  .service-tabs button > small { margin-left: 0; font-size: 8px; letter-spacing: .07em; }
  .service-tabs button > .service-tab-selected { width: 21px; height: 21px; top: 10px; right: 10px; }
  .experience-control .ignition-action p { font-size: 10px; line-height: 1.6; min-height: 32px; }
  .workshop-caption > span { font-size: 10px; line-height: 1.7; }
  .contact-route { gap: 10px; }
  .contact-route li { padding-top: 0; }
  .route-photo { height: 69px; margin-bottom: 8px; }
  .contact-route .route-photo > span { left: 8px; bottom: 5px; font-size: 15px; }
  .contact-route strong { max-width: none; font-size: 11px; line-height: 1.8; }
}
@media(max-width:370px) {
  .service-tabs button { padding-inline: 11px; }
  .service-tabs button > strong { font-size: 13px; }
  .service-tabs button > small { font-size: 7px; letter-spacing: .05em; }
  .workshop-caption > span { font-size: 10px; }
  .route-photo { height: 61px; }
}
@media(prefers-reduced-motion:reduce) {
  .service-tabs .service-tab-photo,.service-tabs button > .service-tab-selected { transition: none; }
  .service-tabs button:hover .service-tab-photo { transform: none; }
}

/* Keyboard focus must be visible before the asynchronous reveal observer runs. */
.js-ready [data-reveal]:focus-within,
.control-enter:not(.is-entered):focus-visible,
.control-enter:not(.is-entered):focus-within {
  opacity: 1;
  transform: none;
  transition-duration: 0s;
}
