/* Finesse Media — Digital studio panel (Dark C: top tabs + large showcase).
   Sits inside the laptop portal; app.js still controls reveal and tab switching. */

.digital-stage .studio-hud {
  --ink: #eef0f2;
  --muted: #a9b0b8;
  --gold: #ddc5a0;
  --line: rgba(238, 240, 242, .1);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  position: relative;
  width: min(89%, 1240px);
  max-height: calc(100svh - 120px);
  margin-top: 40px;
  overflow: hidden auto;
  border-radius: 22px;
  border: 1px solid rgba(221, 197, 160, .3);
  background: rgba(15, 17, 21, .9);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 120px rgba(159, 184, 196, .07);
  backdrop-filter: blur(6px);
}
/* The sticky stage must never be taller than the screen, or the bottom of the
   panel (its buttons) sits below the fold and gets covered by the next section. */
.digital-stage { min-height: 0; }
.digital-stage .studio-hud { min-height: 0; }
.reduced-motion .digital-stage { min-height: 0; }

.digital-stage .studio-hud::before, .digital-stage .studio-hud::after { display: none; }
.studio-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.studio-hud > :not(.studio-backdrop) { position: relative; z-index: 1; }

.digital-stage .studio-hud .hud-top {
  padding: 18px 30px;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.studio-hud .hud-brand span { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: none; }
.studio-hud .hud-meta { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.studio-hud .hud-meta i { width: 7px; height: 7px; border-radius: 50%; background: #7fd18b; box-shadow: 0 0 10px #7fd18b; }
.studio-hud .hud-top > a:last-child { font-size: 12px; color: var(--gold); min-height: 44px; display: flex; align-items: center; }

.studio-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 30px 0; }
.studio-tabs button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(221, 197, 160, .35);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  transition: background .2s, color .2s, border-color .2s;
}
.studio-tabs button:hover { border-color: var(--gold); }
.studio-tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #111317; }

.studio-panels { padding: 26px 30px 30px; }
.studio-panels > section:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 40px;
  align-items: center;
  animation: studioIn .4s ease both;
}
@keyframes studioIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Browser-framed screenshots: whole page fits, nothing cropped */
.studio-browser { border-radius: 14px; overflow: hidden; border: 1px solid rgba(221, 197, 160, .3); background: #0d0f12; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.studio-browser-bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #1b1e23; }
.studio-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e0613c; }
.studio-browser-bar i:nth-child(2) { background: #e0b43c; }
.studio-browser-bar i:nth-child(3) { background: #5cb86a; }
.studio-browser-bar span { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-browser img { width: 100%; height: auto; max-height: clamp(220px, 44svh, 430px); object-fit: contain; display: block; }

/* Brand board */
.studio-brandboard { border-radius: 14px; background: #f5f1e9; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); color: #292720; }
.bb-logo, .bb-mark { border-radius: 10px; height: clamp(110px, 15svh, 150px); display: flex; align-items: center; justify-content: center; }
.bb-logo { background: #090a0b; flex-direction: column; gap: 8px; }
.bb-word { font-family: var(--serif); font-size: 32px; letter-spacing: .17em; color: #f0eeea; line-height: 1; }
.bb-sub { font-size: 9px; letter-spacing: .48em; color: #c9b48c; }
.bb-mark { background: #ece4d5; gap: 22px; }
.bb-f { font-family: var(--serif); font-style: italic; font-size: 70px; line-height: 1; color: #846333; }
.bb-card { width: 86px; height: 52px; border-radius: 5px; background: #090a0b; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); font-family: var(--serif); font-size: 11px; letter-spacing: .17em; color: #c9b48c; }
.bb-swatches { grid-column: 1 / -1; border-radius: 10px; background: #1b1814; padding: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.bb-swatches div { display: flex; flex-direction: column; gap: 4px; }
.bb-chip { height: 48px; border-radius: 8px; border: 1px solid rgba(238, 240, 242, .15); }
.bb-swatches b { font-family: var(--mono); font-weight: 400; font-size: 10px; color: #eef0f2; }
.bb-swatches small { font-family: var(--mono); font-size: 9px; color: #a9b0b8; }
.bb-type { border-radius: 10px; background: #fff; border: 1px solid #e3d9c8; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.bb-type span { font-size: 40px; line-height: 1.05; }
.bb-serif span { font-family: var(--serif); }
.bb-sans span { font-family: var(--sans); font-weight: 600; }
.bb-type b { font-weight: 500; font-size: 12px; }
.bb-type small { font-family: var(--mono); font-size: 9px; color: #6b655b; }

/* Logo gallery */
.studio-logos { border-radius: 14px; border: 1px solid rgba(221, 197, 160, .3); background: rgba(17, 19, 23, .6); padding: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.studio-logos div { aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid rgba(238, 240, 242, .12); display: flex; align-items: center; justify-content: center; }
.studio-logos img { width: 100%; height: 100%; object-fit: contain; }

/* Tap card phones */
.studio-phones { border-radius: 14px; border: 1px solid rgba(221, 197, 160, .3); background: rgba(17, 19, 23, .6); padding: 22px 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.studio-phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.studio-phone { width: 100%; max-width: 140px; aspect-ratio: 700 / 1266; border-radius: 22px; border: 4px solid #2a2e35; overflow: hidden; background: #15181c; box-shadow: 0 18px 36px rgba(0, 0, 0, .55); }
.studio-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.studio-phones figcaption { font-family: var(--mono); font-size: 9px; color: var(--muted); text-align: center; max-width: 100%; overflow-wrap: anywhere; }

/* Copy column */
.studio-copy { display: flex; flex-direction: column; gap: 14px; }
.studio-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.studio-copy h3 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.04; letter-spacing: -.02em; color: var(--ink); }
.studio-copy > p:not(.studio-eyebrow):not(.studio-price) { font-size: 15px; line-height: 1.75; color: var(--muted); }
.studio-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.studio-tags li { font-family: var(--mono); font-size: 11px; padding: 7px 11px; border-radius: 6px; background: rgba(159, 184, 196, .12); color: #cfe0e6; }
.studio-price { font-family: var(--serif); font-size: 26px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 2px; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.studio-btn { min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; border: 1px solid var(--gold); color: var(--ink); font-size: 13px; transition: background .2s, color .2s; }
.studio-btn:hover { background: rgba(221, 197, 160, .12); }
.studio-btn-primary { background: var(--gold); color: #111317; }
.studio-btn-primary:hover { background: #ebd8b6; }

/* Reduced motion: panel shows statically */
.reduced-motion .digital-stage .studio-hud { max-height: none; overflow: visible; }

@media (max-width: 1050px) {
  .studio-panels > section:not([hidden]) { grid-template-columns: 1fr; gap: 26px; }
  .studio-hud .hud-meta { display: none; }
}
@media (max-width: 700px) {
  /* Panel sits just under the site header and fits the screen height. */
  .digital-stage { align-items: flex-start; padding-top: 104px; box-sizing: border-box; }
  .digital-stage .studio-hud { width: 94%; margin-top: 0; max-height: calc(100svh - 118px); border-radius: 18px; overscroll-behavior: contain; }
  /* Compact copy: headline, price and buttons first so nothing important is ever cut off. */
  .studio-copy { gap: 10px; }
  .studio-eyebrow, .studio-tags { display: none; }
  .studio-copy h3 { order: 1; }
  .studio-price { order: 2; font-size: 20px; padding-top: 10px; }
  .studio-actions { order: 3; }
  .studio-copy > p:not(.studio-eyebrow):not(.studio-price) { order: 4; font-size: 14px; line-height: 1.6; }
  .studio-btn { min-height: 44px; padding: 0 16px; }
  .studio-panels > section:not([hidden]) { gap: 16px; }
  .studio-browser img { max-height: 24svh; }
  .studio-phone { border-radius: 14px; border-width: 3px; }
  .studio-phones figcaption { display: none; }
  .studio-phones { padding: 12px 10px; }
  .digital-stage .studio-hud .hud-top { padding: 12px 18px; position: sticky; top: 0; z-index: 3; background: rgba(15, 17, 21, .97); }
  .studio-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 14px 18px 0; scrollbar-width: none; }
  .studio-tabs::-webkit-scrollbar { display: none; }
  .studio-tabs button { flex-shrink: 0; }
  .studio-panels { padding: 18px; }
  .studio-browser img { max-height: 30svh; }
  .studio-logos, .studio-phones { gap: 8px; padding: 10px; }
  .studio-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bb-word { font-size: 22px; }
  .bb-f { font-size: 48px; }
  .bb-card { display: none; }
  .bb-type span { font-size: 30px; }
  .studio-copy h3 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-panels > section:not([hidden]) { animation: none; }
}

/* ---------- Build 20260928-26: multi-site picker + Deltona two-view case study ---------- */
/* Fixed 16:9 screen so switching sites or views never makes the frame jump */
.studio-shot { aspect-ratio: 16 / 9; background: #0d0f12; display: flex; align-items: center; justify-content: center; }
.studio-browser .studio-shot img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.studio-shot img[hidden] { display: none; }
.sx-web, .sx-case { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.site-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; font-size: 14px; color: var(--muted); }
.site-caption b { font-weight: 600; color: var(--ink); margin-right: 8px; }
.site-caption a { flex-shrink: 0; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.sx-case-caption { min-height: 44px; }

/* The picker wraps into rows (3 across), never scrolls sideways */
.site-picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.site-pick {
  display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none;
  color: var(--muted); font: inherit; font-size: 11px; line-height: 1.3; text-align: left; cursor: pointer; min-width: 0;
}
.site-pick img { width: 100%; height: auto; flex: none; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 2px solid transparent; opacity: .72; transition: opacity .2s, border-color .2s; }
.site-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-pick:hover img { opacity: 1; }
.site-pick[aria-pressed="true"] { color: var(--ink); }
.site-pick[aria-pressed="true"] img { opacity: 1; border-color: var(--gold); }
.site-pick:focus-visible { outline: none; }
.site-pick:focus-visible img { outline: 2px solid var(--gold); outline-offset: 2px; }

/* "What your clients see" / "What you see" toggle */
.sx-views { display: flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid rgba(221, 197, 160, .35); background: rgba(17, 19, 23, .7); align-self: flex-start; max-width: 100%; }
.sx-views button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.sx-views button[aria-pressed="true"] { background: var(--gold); color: #111317; }
.sx-views button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 1050px) {
  .site-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .studio-browser .studio-shot img { max-height: none; }
  .site-picker { gap: 8px; }
  .site-pick { font-size: 10px; }
  .sx-views { align-self: stretch; }
  .sx-views button { flex: 1 1 0; padding: 0 8px; font-size: 13px; }
  .site-caption { font-size: 13px; }
}
