/* AR Shopfronts: Shopfronts service page. Tokens and decisions: _work/design-plan.md */

/* ================= 1. opener: split screen + before/after ================= */
.sfo { position: relative; background: var(--glass); padding: clamp(28px, 5vh, 60px) 0 clamp(40px, 6vh, 70px); overflow: clip; }
.sfo::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(37, 44, 80, .05) 0 1px, transparent 1px 96px); animation: sfDrift 32s linear infinite; pointer-events: none; }
.sfo::after { content: ''; position: absolute; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; right: -18vw; top: -30vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); animation: sfGlow 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes sfDrift { to { background-position: 96px 0; } }
@keyframes sfGlow { to { transform: translate(-24vw, 16vw); } }
.sfo { --h: min(62vh, 660px); }
.sfo__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--h) * .75 + 22px); gap: clamp(56px, 5vw, 88px); align-items: start; }
.sfo__copy { padding-top: clamp(8px, 4vh, 44px); }
.sfo__title { font-family: var(--display); font-stretch: var(--fs, 112%); font-weight: 790; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.02em; color: var(--navy); margin: 0 0 .42em; }
.sfo__lede { font-size: clamp(1.05rem, 1.15vw, 1.2rem); line-height: 1.6; color: var(--muted); margin: 0 0 clamp(18px, 3vh, 28px); }
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin: 0 0 clamp(20px, 3.2vh, 30px); }
.fact { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: 15.5px; line-height: 1.3; }
.fact__icon { flex: none; width: 48px; height: 48px; padding: 9px; border-radius: var(--r); background: #fff; box-shadow: inset 0 -3px 0 var(--hivis), 0 6px 16px rgba(37, 44, 80, .08); fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.fact:hover .fact__icon { transform: translateY(-3px) rotate(-4deg); }
.sfo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.sfo__tel { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.35rem; color: var(--navy); text-decoration: none; border-bottom: 3px solid var(--hivis); transition: border-color .3s; }
.sfo__tel:hover { border-color: var(--navy); }

.sfo__media { display: flex; justify-content: flex-start; padding-right: 22px; }
.ba { position: relative; width: min(100%, calc(var(--h) * .75)); }
.ba__win { position: relative; }
.ba__outline { position: absolute; left: 22px; top: 38px; right: -22px; bottom: -22px; border: 2px solid var(--navy); border-radius: var(--r); pointer-events: none; }
.ba__dim { position: absolute; left: -40px; top: 0; width: 24px; height: 100%; overflow: visible; }
.ba__dim path { fill: none; stroke: var(--navy); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ba__box { position: relative; z-index: 4; height: 16px; border-radius: 3px 3px 0 0; background: linear-gradient(#e3e7ed, #9aa3b1 70%, #6f7887); box-shadow: 0 3px 6px rgba(0, 0, 0, .25); }
.ba__frame { position: relative; aspect-ratio: 3 / 4; border-radius: 0 0 var(--r) var(--r); overflow: hidden; background: #0c0f1f; box-shadow: 0 30px 70px rgba(20, 24, 48, .25); cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba__layers { position: absolute; inset: 0; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba__track { position: absolute; inset: 0; z-index: 3; transform: translateX(var(--pos)); pointer-events: none; }
.ba__line { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px; background: var(--hivis); box-shadow: 0 0 14px rgba(221, 242, 60, .75); pointer-events: none; }
.ba__handle { position: absolute; top: 50%; left: 0; pointer-events: auto; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: var(--hivis); color: var(--navy); cursor: grab; touch-action: none; box-shadow: 0 10px 26px rgba(0, 0, 0, .35), 0 0 0 0 rgba(221, 242, 60, .6); animation: baGlow 2.4s ease-out infinite; }
.ba__handle:active { cursor: grabbing; }
@keyframes baGlow { 0% { box-shadow: 0 10px 26px rgba(0, 0, 0, .35), 0 0 0 0 rgba(221, 242, 60, .6); } 70%, 100% { box-shadow: 0 10px 26px rgba(0, 0, 0, .35), 0 0 0 18px rgba(221, 242, 60, 0); } }
.ba__tag { position: absolute; top: 14px; z-index: 2; padding: 8px 14px; border-radius: var(--pill); font-size: 14px; font-weight: 600; line-height: 1.2; background: rgba(20, 24, 48, .84); color: #fff; pointer-events: none; }
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; background: var(--hivis); color: var(--navy); }
.ba__cover { position: absolute; inset: 0; z-index: 6; background: var(--slats); transform: translateY(-101%); pointer-events: none; }
.ba__cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 18%, transparent 82%, rgba(0, 0, 0, .25)); }
.ba__rail { position: absolute; left: 0; right: 0; bottom: 0; height: 13px; background: linear-gradient(#eef1f4, #a3abb8 55%, #6b7383); box-shadow: 0 3px 8px rgba(0, 0, 0, .45); }
.js .ba__cover { transform: translateY(0); }
.rm .ba__cover, .js-failed .ba__cover { transform: translateY(-101%) !important; }
.ba__cap { margin: 34px 0 0; font-size: 14.5px; color: var(--muted); }

@media (max-width: 1100px) { .facts { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .sfo__in { grid-template-columns: 1fr; gap: 0; }
  .sfo__copy { display: contents; }
  .sfo__title { order: 1; } .sfo__lede { order: 2; } .sfo__actions { order: 3; margin-bottom: 26px; } .sfo__media { order: 4; } .facts { order: 5; margin: 40px 0 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .sfo { --h: min(60vh, 520px); }
  .sfo__media { padding-right: 0; justify-content: center; }
  .sfo__copy { padding-top: 0; }
}
@media (max-width: 700px) {
  .sfo { padding-top: 22px; }
  .sfo__title { font-size: clamp(2rem, 8.6vw, 2.4rem); }
  .sfo__lede { font-size: 15.5px; margin-bottom: 16px; }
  .sfo__actions { gap: 10px 18px; }
  .sfo__tel { font-size: 1.15rem; }
  .facts { column-gap: 14px; }
  .fact { gap: 10px; font-size: 14px; padding: 10px 0; }
  .fact__icon { width: 40px; height: 40px; padding: 7px; }
  .sfo { --h: min(58vh, 480px); }
  .ba { width: calc(100% - 22px); margin-right: 22px; }
  .ba__outline { left: 14px; top: 30px; right: -14px; bottom: -14px; }
  .ba__dim { display: none; }
  .ba__handle { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
}

/* ================= 2. one team ================= */
.team { background: #fff; padding: clamp(80px, 11vh, 130px) 0; overflow: clip; }
.team__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.team__copy .lede { margin-bottom: 0; }
.checks { display: grid; margin-top: clamp(20px, 3vh, 30px); border-top: 1px solid var(--line); }
.check { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: 1.05rem; line-height: 1.35; }
.tick { flex: none; }
.tick__ring { fill: var(--hivis); }
.tick__mark { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.team__media { position: relative; height: min(70vh, 640px); }
.team__outline { position: absolute; left: 22px; top: 22px; width: 60%; height: 86%; border: 2px solid var(--navy); border-radius: var(--r); }
.team__frame { position: absolute; margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 60px rgba(20, 24, 48, .2); background: var(--glass); }
.team__frame img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.team__frame--a { left: 0; top: 0; width: 60%; height: 86%; z-index: 1; }
.team__frame--b { right: 0; bottom: 0; width: 54%; height: 42%; z-index: 2; border: 6px solid #fff; }
.team__cap { position: absolute; left: 12px; bottom: 12px; z-index: 4; padding: 7px 13px; border-radius: var(--pill); background: rgba(20, 24, 48, .84); color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.check { position: relative; }
.check::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--hivis); transform: scaleX(0); transform-origin: left; animation: checkSweep 10s ease-in-out infinite; }
.check:nth-child(2)::after { animation-delay: 2s; } .check:nth-child(3)::after { animation-delay: 4s; } .check:nth-child(4)::after { animation-delay: 6s; } .check:nth-child(5)::after { animation-delay: 8s; }
.check .tick { animation: tickPop 10s ease-in-out infinite; }
.check:nth-child(2) .tick { animation-delay: 2s; } .check:nth-child(3) .tick { animation-delay: 4s; } .check:nth-child(4) .tick { animation-delay: 6s; } .check:nth-child(5) .tick { animation-delay: 8s; }
@keyframes tickPop { 0%, 12%, 100% { transform: none; } 4% { transform: scale(1.28) rotate(-10deg); } }
@keyframes checkSweep { 0% { transform: scaleX(0); transform-origin: left; } 10% { transform: scaleX(1); transform-origin: left; } 10.01% { transform-origin: right; } 20%, 100% { transform: scaleX(0); transform-origin: right; } }
.team__dim { position: absolute; left: calc(60% + 40px); top: 0; width: 20px; height: 52%; overflow: visible; }
.team__dim path { fill: none; stroke: var(--navy); stroke-width: 2; vector-effect: non-scaling-stroke; }
@media (max-width: 900px) {
  .team__in { grid-template-columns: 1fr; }
  .team__media { height: min(62vh, 480px); }
}
@media (max-width: 700px) {
  .check { font-size: 1rem; gap: 12px; }
  .team__media { height: 420px; }
  .team__frame--a { width: 70%; }
  .team__outline { width: 70%; left: 14px; top: 14px; }
  .team__frame--b { width: 62%; height: 38%; }
  .team__dim { left: calc(70% + 22px); }
}

/* ================= 3. types switcher ================= */
.types { position: relative; background: var(--navy); color: #fff; padding: clamp(80px, 11vh, 130px) 0; overflow: clip; }
.types::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 80px); animation: sfDrift 40s linear infinite reverse; pointer-events: none; }
.types__head { position: relative; }
.types__head .h2 { margin-bottom: clamp(24px, 4vh, 44px); }
.types__grid { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.types__tabs { position: relative; display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .14); }
.types__tab { position: relative; display: block; width: 100%; padding: clamp(14px, 2.2vh, 22px) 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); background: none; text-align: left; color: rgba(255, 255, 255, .55); font-family: var(--display); font-stretch: 112%; font-weight: 720; font-size: clamp(1.25rem, 1.8vw, 1.85rem); line-height: 1.15; transition: color .35s, padding .5s var(--ease); }
.types__tab::before { content: ''; position: absolute; left: 0; top: 50%; width: 4px; height: 1.1em; margin-top: -.55em; border-radius: 2px; background: var(--hivis); transform: scaleY(0); transition: transform .45s var(--ease); }
.types__tab:hover { color: #fff; }
.types__tab.is-on { color: var(--hivis); padding-left: 20px; }
.types__tab.is-on::before { transform: scaleY(1); }
.types__side, .types__stage { min-width: 0; }
.types__name { display: block; }
.types__note { margin: 22px 0 0; color: #C6CCDA; font-size: 15.5px; display: grid; justify-items: start; gap: 4px; }
.types__timer { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.types__timer i { display: block; height: 100%; background: var(--hivis); transform-origin: left; transform: scaleX(0); }
.types__stage { --fh: min(62vh, 560px); position: relative; display: grid; gap: 40px; }
.tpanel { position: relative; }
.tpanel__frame { position: relative; height: var(--fh); border-radius: var(--r); overflow: hidden; background: #10142a; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.tpanel__img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.tpanel__info { position: absolute; z-index: 6; left: 20px; bottom: 20px; width: min(62%, 500px); padding: 22px 24px 24px; border-radius: var(--r); background: rgba(20, 24, 48, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12); }
.tpanel__name { font-family: var(--display); font-stretch: 112%; font-weight: 740; font-size: 1.3rem; line-height: 1.2; margin: 0 0 8px; color: #fff; }
.tpanel__line { color: #D3D8E4; font-size: 16px; line-height: 1.5; margin: 0 0 14px; }
.tpanel__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tpanel__list li { padding: 6px 12px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .28); font-size: 14px; font-weight: 600; line-height: 1.3; color: #fff; }
.types__cover { position: absolute; left: 0; right: 0; top: 0; height: var(--fh); z-index: 5; border-radius: var(--r); overflow: hidden; pointer-events: none; visibility: hidden; }
.types__slats { position: absolute; inset: 0; background: var(--slats); transform: translateY(-102%); }
.types__slats::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 18%, transparent 82%, rgba(0, 0, 0, .25)); }
.types__rail { position: absolute; left: 0; right: 0; bottom: 0; height: 13px; background: linear-gradient(#eef1f4, #a3abb8 55%, #6b7383); box-shadow: 0 3px 8px rgba(0, 0, 0, .45); }
/* with scripts: one panel at a time */
.js .types__stage { gap: 0; }
.js .tpanel { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.js .tpanel.is-on { visibility: visible; opacity: 1; }
.tpanel.is-on .tpanel__img { animation: tpBreathe 9s ease-in-out infinite alternate; }
@keyframes tpBreathe { from { scale: 1; } to { scale: 1.06; } }
.js .types__cover { visibility: visible; }
.no-js .types__tabs, .js-failed .types__tabs { display: none; }
.no-js .types__grid, .js-failed .types__grid { grid-template-columns: 1fr; }
.js-failed .types__stage { gap: 40px; }
.js-failed .tpanel { grid-area: auto; visibility: visible; opacity: 1; }
@media (max-width: 900px) {
  .types__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .types__stage { --fh: min(42vh, 340px); }
  .tpanel__info { position: relative; left: auto; bottom: auto; width: auto; margin: -36px 12px 0; }
}
@media (max-width: 700px) {
  .types__head .h2 { margin-bottom: 20px; }
  .types__tabs { flex-direction: row; gap: 8px; overflow-x: auto; border: 0; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .types__tabs::-webkit-scrollbar { display: none; }
  .types__tab, .types__tab.is-on { flex: none; width: auto; min-height: 46px; padding: 11px 18px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: var(--pill); font-size: 15px; scroll-snap-align: start; overflow: hidden; }
  .types__tab.is-on { background: var(--hivis); border-color: var(--hivis); color: var(--navy); }
  .types__tab::before { display: none; }
  .types__timer { left: 14px; right: 14px; bottom: 6px; }
  .types__tab.is-on .types__timer i { background: var(--navy); }
  .types__note { order: 2; margin-top: 14px; }
  .tpanel__info { margin: -28px 8px 0; padding: 18px; }
  .tpanel__line { font-size: 15px; }
}

/* ================= 4. anatomy: the pinned drawing ================= */
.anat { position: relative; background: var(--brick); }
.anat::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(150, 90, 60, .05) 0 1px, transparent 1px 28px); pointer-events: none; }
.anat__pin { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr-solid) + 20px) 0 32px; }
.anat__in { position: relative; display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.36fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.anat__list { display: grid; border-top: 1px solid var(--line); }
.anat__item { border-bottom: 1px solid var(--line); opacity: .5; transition: opacity .4s; }
.anat__item.is-on { opacity: 1; }
.anat__btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 6px 0; border: 0; background: none; text-align: left; font-family: var(--display); font-stretch: 112%; font-weight: 720; font-size: clamp(1.1rem, 1.4vw, 1.35rem); line-height: 1.2; color: var(--navy); }
.anat__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--navy); transition: background .35s, box-shadow .35s; }
.anat__item.is-on .anat__dot { background: var(--hivis); box-shadow: 0 0 0 5px rgba(221, 242, 60, .45); animation: dotPulse 1.6s ease-out infinite; }
@keyframes dotPulse { 0% { box-shadow: 0 0 0 0 rgba(221, 242, 60, .9); } 100% { box-shadow: 0 0 0 12px rgba(221, 242, 60, 0); } }
.anat__sheet::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(221, 242, 60, 0), rgba(221, 242, 60, .22) 80%, rgba(37, 44, 80, .35) 80.5%, rgba(37, 44, 80, 0) 82%); animation: scan 7s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes scan { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(560%); } }
.anat__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.anat__item.is-on .anat__more { grid-template-rows: 1fr; }
.anat__line { min-height: 0; overflow: hidden; margin: 0; padding-left: 28px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.anat__item.is-on .anat__line { padding-bottom: 14px; }
.anat__rail { height: 4px; border-radius: 2px; background: rgba(37, 44, 80, .14); margin-top: 18px; overflow: hidden; }
.anat__rail span { display: block; height: 100%; background: var(--navy); transform-origin: left; transform: scaleX(1); }

.anat__sheet { position: relative; margin: 0; justify-self: end; width: min(100%, calc(min(72vh, 660px) * 1.5625)); aspect-ratio: 1000 / 640; border-radius: var(--r); overflow: hidden; background-color: #FFFDF9;
  background-image: linear-gradient(rgba(37, 44, 80, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 44, 80, .045) 1px, transparent 1px); background-size: 24px 24px;
  box-shadow: 0 30px 70px rgba(110, 60, 30, .16), 0 0 0 1px rgba(37, 44, 80, .08); animation: sheetGrid 24s linear infinite; }
@keyframes sheetGrid { to { background-position: 24px 24px; } }
.anat__svg { display: block; width: 100%; height: 100%; }
.anat__svg .an-ln { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.anat__svg .an-ln--thin { stroke-width: 1.2; }
.anat__svg .an-ln--bold { stroke-width: 5; }
.anat__svg .an-glass { fill: none; stroke: rgba(37, 44, 80, .32); stroke-width: 1.3; stroke-linecap: round; }
.anat__svg .an-dim { fill: none; stroke: #7F889C; stroke-width: 1.4; }
.anat__svg .an-sign { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 34px; letter-spacing: .05em; fill: var(--navy); }
.anat__svg .an-tb { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 15px; fill: var(--navy); }
.anat__svg .an-tb--s { font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.anat__svg .pt__fill { fill: var(--hivis); opacity: .22; stroke: none; }
.anat__svg .pt__tone { stroke: none; fill: #D5E4F0; }
.anat__svg [data-pt="fascia"] .pt__tone { fill: #E6EBF2; }
.anat__svg [data-pt="box"] .pt__tone, .anat__svg [data-pt="riser"] .pt__tone { fill: #C9D0DA; }
.anat__svg [data-pt="transom"] .pt__tone { fill: #E2ECF4; }
.anat__svg .lb__lead { fill: none; stroke: var(--navy); stroke-width: 1.5; }
.anat__svg .lb__dot { fill: var(--navy); }
.anat__svg .lb__ring { fill: none; stroke: var(--navy); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: lbRing 1.6s ease-out infinite; }
.anat__svg .lb__ring-g { opacity: 0; }
.anat__svg .lb__pill { fill: var(--hivis); opacity: 0; }
.anat__svg .lb__text { font-family: var(--body); font-weight: 700; font-size: 14px; letter-spacing: .04em; fill: var(--navy); }
@keyframes lbRing { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.anat__cross { position: absolute; z-index: 2; background: rgba(37, 44, 80, .4); pointer-events: none; opacity: 0; transition: opacity .3s; }
.anat__cross--x { left: 0; right: 0; top: 0; height: 1px; }
.anat__cross--y { top: 0; bottom: 0; left: 0; width: 1px; }
.anat__sheet.is-aim .anat__cross { opacity: 1; }
.anat__sheet.is-aim { cursor: crosshair; }
@media (max-width: 900px) {
  .anat__pin { padding: calc(var(--hdr-solid) + 10px) 0 20px; }
  .anat__in { grid-template-columns: 1fr; gap: 14px; }
  .anat__copy .h2 { margin-bottom: .35em; }
  .anat__list { grid-template-areas: 'stack'; border-top: 0; }
  .anat__item { grid-area: stack; border: 0; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .anat__item.is-on { opacity: 1; visibility: visible; }
  .anat__more { grid-template-rows: 1fr; }
  .anat__btn { min-height: 44px; }
  .anat__line { padding-bottom: 0; }
  .anat__item.is-on .anat__line { padding-bottom: 0; }
  .anat__rail { margin-top: 10px; }
  .anat__sheet { justify-self: stretch; width: 100%; aspect-ratio: 680 / 590; max-height: 46svh; }
  .anat__svg .an-title { display: none; }
  .anat__svg .lb__pill, .anat__svg .lb__text { display: none; }
  .rm .anat__list, .no-js .anat__list, .js-failed .anat__list { grid-template-areas: none; }
  .rm .anat__item, .no-js .anat__item, .js-failed .anat__item { grid-area: auto; opacity: 1; visibility: visible; }
}

/* ================= 5. gallery: expanding panels ================= */
.gal { background: #fff; padding: clamp(80px, 11vh, 130px) 0; overflow: clip; }
.gal__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(20px, 3vh, 32px); }
.gal__head .h2 { margin: 0; flex: 1 1 auto; }
.gal__meta { flex: none; display: grid; justify-items: end; gap: 2px; }
.gal__count { margin: 0; font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 1.6rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.pnls { display: flex; gap: 12px; height: min(64vh, 600px); }
.pnl { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r); overflow: hidden; background: var(--night); color: #fff; transition: flex-grow .85s var(--ease); }
.pnl.is-open { flex-grow: 5.4; }
.pnl__media { position: absolute; inset: 0; }
.pnl__img { width: 100%; height: 100%; object-fit: cover; scale: 1.04; transition: filter .6s; }
.pnl:not(.is-open) .pnl__img { filter: saturate(.55) brightness(.62); }
.pnl.is-open .pnl__img { animation: pnlZoom 9s ease-in-out infinite alternate; }
@keyframes pnlZoom { from { scale: 1.02; } to { scale: 1.12; } }
.pnl::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 24, 48, 0) 45%, rgba(20, 24, 48, .85)); pointer-events: none; }
.pnl__spine { position: absolute; left: 50%; bottom: 24px; z-index: 2; max-height: calc(100% - 48px); overflow: hidden; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); white-space: nowrap; font-family: var(--display); font-stretch: 112%; font-weight: 720; font-size: 1.05rem; line-height: 1.2; transition: opacity .4s; }
.pnl.is-open .pnl__spine { opacity: 0; }
.pnl__cap { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; display: none; }
.pnl.is-open .pnl__cap { display: block; }
.pnl__biz { margin: 0 0 4px; font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.1; white-space: nowrap; }
.pnl__work { margin: 0; color: #D3D8E4; white-space: nowrap; }
.pnl__btn { position: absolute; inset: 0; z-index: 3; border: 0; background: none; border-radius: var(--r); }
.pnl__btn:focus-visible { outline-offset: -6px; }
.pnl__timer { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 4px; opacity: 0; transition: opacity .3s; }
.pnl.is-open .pnl__timer { opacity: 1; }
.pnl__timer i { display: block; height: 100%; background: var(--hivis); transform-origin: left; transform: scaleX(0); }
@media (max-width: 700px) {
  .gal__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .gal__meta { justify-items: start; grid-auto-flow: column; align-items: center; gap: 20px; }
  .pnls { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .pnls::-webkit-scrollbar { display: none; }
  .pnl, .pnl.is-open { flex: 0 0 80vw; height: min(58vh, 460px); scroll-snap-align: center; }
  .pnl:not(.is-open) .pnl__img { filter: none; }
  .pnl__img { animation: pnlZoom 9s ease-in-out infinite alternate; }
  .pnl__spine { display: none; }
  .pnl__cap, .pnl.is-open .pnl__cap { display: block; left: 18px; right: 18px; bottom: 18px; }
  .pnl__biz, .pnl__work { white-space: normal; }
  .pnl__btn, .pnl__timer { display: none; }
}

/* ================= 6. prices and questions ================= */
.pq { position: relative; background: var(--glass); padding: clamp(80px, 11vh, 130px) 0; overflow: clip; }
.pq::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(37, 44, 80, .04) 0 1px, transparent 1px 96px); animation: sfDrift 36s linear infinite; pointer-events: none; }
.pq__in { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.price { position: relative; overflow: hidden; border-radius: var(--r); background: var(--navy); color: #fff; padding: clamp(28px, 3vw, 44px); box-shadow: 0 30px 70px rgba(20, 24, 48, .25); }
.price__slats { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: var(--slats-dark); background-size: 100% 18px; opacity: .5; -webkit-mask: linear-gradient(transparent, #000); mask: linear-gradient(transparent, #000); animation: slats 5s linear infinite; pointer-events: none; }
.price__sheen { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .1) 47%, rgba(221, 242, 60, .08) 52%, transparent 60%); background-size: 260% 100%; animation: priceSheen 7s ease-in-out infinite; pointer-events: none; }
@keyframes priceSheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
.price__label { position: relative; margin: 0 0 12px; font-weight: 600; color: var(--hivis); }
.price__big { position: relative; margin: 0 0 18px; font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price__num { display: block; white-space: nowrap; }
.price__to { font-size: .42em; font-weight: 600; color: #C6CCDA; vertical-align: .35em; margin-right: .15em; }
.price__text { position: relative; margin: 0; color: #D3D8E4; font-size: clamp(1rem, 1.1vw, 1.1rem); }
.life { margin-top: 26px; padding-top: 22px; border-top: 3px solid var(--navy); }
.life__big { margin: 0 0 6px; font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.05; color: var(--navy); font-variant-numeric: tabular-nums; }
.life__text { margin: 0 0 16px; color: var(--muted); }
.life__bar { position: relative; display: block; height: 8px; border-radius: 4px; background: rgba(37, 44, 80, .12); overflow: hidden; }
.life__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, var(--navy) 0 62.5%, var(--hivis) 62.5%); }
.life__bar::after { content: ''; position: absolute; top: 0; bottom: 0; left: 62.5%; width: 37.5%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent) no-repeat; background-size: 40% 100%; animation: lifeShine 3.6s ease-in-out infinite; }
@keyframes lifeShine { 0% { background-position: -80% 0; } 70%, 100% { background-position: 180% 0; } }
.life__scale { position: relative; display: block; height: 22px; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.life__scale span { position: absolute; top: 0; left: 0; transform: translateX(-50%); white-space: nowrap; }
.life__scale span:first-child { transform: none; }
.life__scale span:last-child { transform: translateX(-100%); }
.pq__main .h2 { margin-bottom: .45em; }
@media (max-width: 900px) { .pq__in { grid-template-columns: 1fr; } }

/* ================= motion fallbacks ================= */
.rm .check .tick, .rm .life__bar::after, .rm .anat__sheet::after, .rm .anat__item.is-on .anat__dot, .rm .check::after, .rm .sfo::before, .rm .sfo::after, .rm .ba__handle, .rm .types::before, .rm .anat__sheet, .rm .anat__svg .lb__ring, .rm .pnl__img, .rm .pq::before, .rm .price__slats, .rm .price__sheen { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .check .tick, .life__bar::after, .anat__sheet::after, .anat__item.is-on .anat__dot, .check::after, .sfo::before, .sfo::after, .ba__handle, .types::before, .anat__sheet, .anat__svg .lb__ring, .pnl__img, .pq::before, .price__slats, .price__sheen { animation: none !important; }
  .pnl, .anat__more { transition: none; }
}
