#s08 { background: var(--bg-2); border-top: 1px solid var(--line); padding-bottom: clamp(120px, 19vh, 240px); }
#s08 .mod-head { max-width: 800px; margin-bottom: clamp(48px, 8vh, 96px); }
#s08 .s08-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
#s08 .s08-card { min-width: 0; perspective: 1000px; }
#s08 .s08-surface { height: 100%; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 42px rgba(0,0,0,.12); transition: border-color .3s var(--ease); }
#s08 .s08-card:focus-within .s08-surface { border-color: var(--bronze); }
#s08 .s08-image { position: relative; overflow: hidden; border-radius: 13px 13px 0 0; aspect-ratio: 16 / 9; background: var(--bg); }
#s08 .s08-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
#s08 .s08-content { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 2.2vw, 32px); }
#s08 .s08-floor { margin: 0 0 15px; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; color: var(--bronze-soft); }
#s08 h3 { margin: 0; font: 400 clamp(25px, 2.5vw, 34px)/1.15 var(--serif); letter-spacing: -.02em; }
#s08 .s08-description { margin: 14px 0 32px; font-size: 15px; color: var(--muted); }
#s08 .s08-content .btn { margin-top: auto; width: 100%; justify-content: space-between; }
#s08 .s08-note { max-width: 720px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #s08 .s08-card:hover .s08-image img { transform: scale(1.045); }
  #s08 .s08-card:hover .s08-surface { border-color: rgba(217,187,145,.4); }
}
@media (min-width: 701px) and (max-width: 1000px) {
  #s08 .s08-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #s08 .s08-card:last-child { grid-column: 1 / -1; width: calc((100% - clamp(16px, 2vw, 28px)) / 2); justify-self: center; }
}
@media (max-width: 700px) {
  #s08 .s08-grid { grid-template-columns: 1fr; gap: 28px; }
  #s08 .s08-content { padding: 26px; }
  #s08 h3 { font-size: 32px; }
  #s08 .s08-note { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  #s08 .s08-surface, #s08 .s08-image img { transition: none; }
}

/* Full-screen 3D viewer: a modal <dialog> in the top layer, iframe created on click. */
#s08 .s08-dialog { position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #0c0a08; color: var(--ink); opacity: 0; transition: opacity .35s var(--ease); }
#s08 .s08-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
#s08 .s08-dialog.is-open { opacity: 1; }
#s08 .s08-dialog::backdrop { background: rgba(12, 10, 8, .9); }
#s08 .s08-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(env(safe-area-inset-top, 0px) + 10px) calc(env(safe-area-inset-right, 0px) + 14px) 10px calc(env(safe-area-inset-left, 0px) + 22px); border-bottom: 1px solid var(--line); background: var(--bg); }
#s08 .s08-dialog-title { min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 clamp(17px, 1.5vw, 21px)/1.2 var(--serif); letter-spacing: -.01em; }
#s08 .s08-close { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 20px; border: 1px solid rgba(217,187,145,.5); border-radius: 999px; background: rgba(241,231,214,.06); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); }
#s08 .s08-close span { font-size: 22px; line-height: 1; font-weight: 400; }
#s08 .s08-close:hover { background: var(--bronze); border-color: var(--bronze); color: #1a130c; }
#s08 .s08-stage { position: relative; min-height: 0; margin: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); background: #0c0a08; }
#s08 .s08-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s var(--ease); }
#s08 .s08-dialog.is-loaded .s08-stage iframe { opacity: 1; }
#s08 .s08-loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
#s08 .s08-dialog.is-loaded .s08-loader { opacity: 0; visibility: hidden; }
#s08 .s08-loader-text { margin: 0; font: 400 clamp(24px, 2.6vw, 36px)/1.2 var(--serif); letter-spacing: -.015em; }
#s08 .s08-loader-line { position: relative; width: 180px; height: 1px; overflow: hidden; background: var(--line); }
#s08 .s08-loader-line::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--bronze-soft); animation: s08-loading 1.4s var(--ease) infinite; }
#s08 .s08-loader-link { font-size: 13px; color: var(--muted); text-underline-offset: 3px; }
#s08 .s08-loader-link:hover { color: var(--bronze-soft); }
@keyframes s08-loading { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (max-width: 700px) {
  #s08 .s08-bar { padding-left: calc(env(safe-area-inset-left, 0px) + 16px); padding-right: calc(env(safe-area-inset-right, 0px) + 10px); }
  #s08 .s08-close { padding: 0 12px 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #s08 .s08-dialog, #s08 .s08-stage iframe, #s08 .s08-loader { transition: none; }
  #s08 .s08-loader-line::after { animation: none; left: 30%; }
}
