/* STUDIO websites page (next/websites.html): the live site's websites page in the V5
   product-showcase language. Loaded after tokens.css, studio.css and showcase.css; reuses the
   case-page pieces (.lnav, .phero, .stage, .csec, .specsheet, .web) and adds the browser stage,
   the live-sites strip, the four steps and the inquiry drawer. The catalog of sample sites (#studies)
   is in catalog.css. */

mark.flag { background: none; color: inherit; border-bottom: 1px dotted var(--signal-ink); cursor: help; }
.top__nav a[aria-current="page"]::before { transform: scale(1); }
.menu__panel nav a[aria-current="page"] { color: var(--signal); }

/* ------------------------------------------------------------ hero */
/* one face, one size for the whole title; the line break sits after "Websites" */
.wphero__name { font-size: clamp(42px, 7.2vw, 132px); line-height: .86; }
.wstage { aspect-ratio: 16 / 8.6; background: var(--tile); }
.browser { position: absolute; left: 8%; right: 18%; top: 11%; bottom: 13%; display: flex; flex-direction: column; border-radius: var(--radius-tile-s); background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow-tile); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px; flex: none; border-bottom: var(--hairline); background: var(--tile); font-family: var(--mono); font-size: var(--text-mono-m); font-stretch: var(--mono-stretch); letter-spacing: var(--mono-tracking); color: var(--muted); }
.browser__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser__dots { display: inline-flex; gap: 6px; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-3); }
.browser__dots i:first-child { background: var(--signal); }
.browser__screen { position: relative; flex: 1; overflow: hidden; }
.browser__name { position: absolute; left: 5%; bottom: 6%; z-index: 1; font-family: var(--display); font-weight: 780; font-stretch: var(--display-stretch); text-transform: uppercase; font-size: clamp(44px, 8.4vw, 150px); line-height: .82; letter-spacing: -.045em; }
.browser__rocket { position: absolute; z-index: 2; right: -6%; top: -6%; width: 82%; max-width: none; transform: rotate(-4deg); }
.photo-tile { position: absolute; right: 5%; bottom: 9%; width: 26%; aspect-ratio: 3 / 2; border-radius: var(--radius-tile-s); overflow: hidden; background: var(--paper-3); box-shadow: 0 0 0 6px var(--tile), var(--shadow-tile-hi); transform: rotate(3deg); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------ live sites */
.live { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--bento-gap); }
.live__item { border-radius: var(--radius-tile); background: var(--tile); box-shadow: var(--shadow-tile); transition: transform var(--dur-700) var(--ease), box-shadow var(--dur-700) var(--ease); }
.live__item a { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: clamp(240px, 19vw, 300px); padding: clamp(20px, 2vw, 30px); border-radius: inherit; }
.live__name { font-family: var(--display); font-weight: 720; font-stretch: 106%; font-size: clamp(24px, 2.2vw, 36px); line-height: 1; letter-spacing: -.03em; }
.live__line { font-size: var(--text-s); line-height: 1.45; color: var(--ink-soft); max-width: 30ch; }
.live__go { margin-top: auto; display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: var(--text-mono-l); font-stretch: var(--mono-stretch); letter-spacing: var(--mono-tracking); text-transform: uppercase; }
.live__go .arrow { width: 16px; transition: transform var(--dur-600) var(--ease); }
.live__go .arrow::after { width: 8px; height: 8px; top: -3.5px; }
.live__item--dark { background: var(--ink); color: var(--paper); }
.live__item--dark .label { color: var(--paper-muted); }
.live__item--dark .live__line { color: var(--paper-soft-hi); }
@media (hover: hover) {
  .live__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-tile-hi); }
  .live__item:hover .live__go .arrow { transform: translateX(6px); }
  .live__item:hover .live__go { color: var(--signal-ink); }
  .live__item--dark:hover .live__go { color: var(--signal); }
}
.live__item:has(a:focus-visible) { transform: translateY(-4px); box-shadow: var(--shadow-tile-hi); }
.live__item a:focus-visible { outline-offset: -3px; border-radius: var(--radius-tile); }

/* ------------------------------------------------------- four steps */
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--bento-gap); counter-reset: s; }
.steps4 li { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: clamp(200px, 16vw, 250px); padding: clamp(20px, 2vw, 30px); border-radius: var(--radius-tile); background: var(--tile); box-shadow: var(--shadow-tile); }
.steps4__n { font-family: var(--display); font-weight: 720; font-stretch: var(--display-stretch); font-size: var(--text-stat); line-height: .9; letter-spacing: -.045em; color: var(--paper-3); }
.steps4 li:first-child .steps4__n { color: var(--signal); }
.steps4 h3 { font-size: clamp(20px, 1.7vw, 28px); font-weight: 680; letter-spacing: -.02em; line-height: 1.1; }
.steps4 li + li::before { content: ""; position: absolute; left: calc(var(--bento-gap) * -1); top: 50%; width: var(--bento-gap); height: 1px; background: var(--ink); opacity: .3; }

/* --------------------------------------------------- spec sheet bits */
.wspec__lead { font-size: var(--text-s); line-height: 1.5; color: var(--ink-soft); max-width: 40ch; }
/* run-in leads ("A conversation.", "First view") sit on their own line, a whole element, not a bold word inside the sentence */
.webpage .specsheet dd b { display: block; margin-bottom: 2px; }
.webpage .specsheet dd ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.webpage .specsheet dd ul li + li { margin-top: 0; }

/* ---------------------------------------------------- closing CTA */
.wcta { margin-top: var(--space-70-140); }
.wcta .web__grid { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-40-70); }
.webpage .foot { margin-top: var(--space-70-140); }
.noscript { padding: 16px var(--gutter); text-align: center; font-size: var(--text-s); }
.noscript a { text-decoration: underline; }

/* ------------------------------------------------- inquiry drawer */
#inquiry { position: fixed; inset: 10px 10px 10px auto; margin: 0; padding: 0; border: 0; width: min(640px, calc(100vw - 20px)); max-width: none; height: calc(100dvh - 20px); max-height: none; border-radius: var(--radius-tile); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-stage); overflow-y: auto; overscroll-behavior: contain; font-family: var(--display); }
#inquiry::backdrop { background: var(--scrim); }
#inquiry[open] { animation: drawer-in var(--dur-700) var(--ease) both; }
#inquiry[open]::backdrop { animation: fade-in var(--dur-300) linear both; }
#inquiry.is-closing { animation: drawer-out var(--dur-300) var(--ease-io) both; }
#inquiry.is-closing::backdrop { animation: fade-in var(--dur-300) linear reverse both; }
@keyframes drawer-in { from { transform: translateX(104%); } }
@keyframes drawer-out { to { transform: translateX(104%); } }
@keyframes fade-in { from { opacity: 0; } }
#inquiry button { font: inherit; }
.inquiry-topbar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 12px 28px; background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--glass-line); }
#inquiry .close { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 24px; line-height: 1; display: grid; place-items: center; transition: background var(--dur-300); }
@media (hover: hover) { #inquiry .close:hover { background: var(--signal); color: var(--ink); } }
#inquiry .invitation { margin: 14px 14px 0; padding: 26px 22px 24px; border-radius: var(--radius-tile-s); background: var(--ink); color: var(--paper); }
#inquiry h2 { font-weight: 760; font-stretch: var(--display-stretch); text-transform: uppercase; font-size: clamp(34px, 4vw, 52px); line-height: .9; letter-spacing: -.035em; margin-bottom: 14px; }
#invitation-body { font-size: var(--text-s); line-height: 1.5; color: var(--paper-soft-hi); max-width: 40ch; }
#inquiry .booking-top { padding: 22px 28px 0; }
#inquiry .steps { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: var(--text-mono-m); font-stretch: var(--mono-stretch); letter-spacing: var(--mono-tracking); text-transform: uppercase; color: var(--muted); }
#inquiry .steps span.active { color: var(--ink); }
#inquiry .steps i { flex: 1; height: 1px; background: var(--line); }
#inquiry .booking-content { padding: 22px 28px 12px; }
#inquiry .step-panel:not([hidden]) { animation: step-in var(--dur-400) var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }
#inquiry h3 { font-weight: 720; font-stretch: 106%; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; }
#inquiry h3:focus { outline: none; }
#inquiry .subcopy { font-size: var(--text-s); line-height: 1.5; color: var(--ink-soft); margin-bottom: 18px; }
#inquiry .calendar { padding: 16px; border-radius: var(--radius-tile-s); background: var(--tile); box-shadow: var(--shadow-tile); }
#inquiry .calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
#inquiry .calendar-head h4 { margin: 0; font-size: var(--text-l); font-weight: 640; letter-spacing: -.01em; }
#inquiry .calendar-head div { display: flex; gap: 6px; }
#prev-month, #next-month { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--tile); transition: background var(--dur-300), color var(--dur-300); }
#prev-month:disabled, #next-month:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { #prev-month:not(:disabled):hover, #next-month:not(:disabled):hover { background: var(--ink); color: var(--paper); } }
#inquiry .weekdays, #inquiry .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
#inquiry .weekdays span { text-align: center; padding: 4px 0 8px; font-family: var(--mono); font-size: var(--text-mono-s); color: var(--muted); }
#inquiry .days button { height: 46px; border-radius: var(--radius-tile-xs); font-size: var(--text-s); font-weight: 520; background: var(--tile-2); transition: background var(--dur-300), color var(--dur-300); }
#inquiry .days button:disabled { background: none; color: var(--paper-3); cursor: default; }
#inquiry .days button.today { box-shadow: inset 0 0 0 1px var(--ink); }
#inquiry .days button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) { #inquiry .days button:not(:disabled):not([aria-pressed="true"]):hover { background: var(--paper-3); } }
#inquiry .timezone { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-family: var(--mono); font-size: var(--text-mono-m); font-stretch: var(--mono-stretch); text-transform: uppercase; letter-spacing: var(--mono-tracking); color: var(--muted); }
#inquiry select, #inquiry input, #inquiry textarea { font: inherit; font-family: var(--display); color: var(--ink); background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius-tile-xs); }
#inquiry select { height: 42px; padding: 0 12px; font-size: var(--text-xs); text-transform: none; letter-spacing: 0; max-width: 60%; }
#inquiry .time-block { margin-top: 16px; }
#inquiry .eyebrow { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: var(--text-mono-m); font-stretch: var(--mono-stretch); text-transform: uppercase; letter-spacing: var(--mono-tracking); color: var(--muted); }
#inquiry .time-options { display: flex; flex-wrap: wrap; gap: 6px; }
#inquiry .time-options button { height: 38px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--tile); font-size: var(--text-xs); transition: background var(--dur-300), color var(--dur-300); }
#inquiry .time-options button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
#inquiry .panel-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: var(--hairline); }
#chosen-date { font-family: var(--mono); font-size: var(--text-mono-l); font-stretch: var(--mono-stretch); text-transform: uppercase; color: var(--ink-soft); }
#inquiry .primary { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font-size: var(--text-s); font-weight: 560; transition: background var(--dur-400), color var(--dur-400); }
#inquiry .primary:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { #inquiry .primary:not(:disabled):hover { background: var(--signal); color: var(--ink); } }
#inquiry .back { font-family: var(--mono); font-size: var(--text-mono-l); font-stretch: var(--mono-stretch); text-transform: uppercase; letter-spacing: var(--mono-tracking); color: var(--ink-soft); padding: 8px 0; }
#inquiry .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#inquiry .fields label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: var(--text-mono-m); font-stretch: var(--mono-stretch); text-transform: uppercase; letter-spacing: var(--mono-tracking); color: var(--muted); }
#inquiry .fields .full { grid-column: 1 / -1; }
#inquiry input, #inquiry textarea { width: 100%; padding: 12px 14px; font-size: var(--text-m); text-transform: none; letter-spacing: 0; }
#inquiry textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
#inquiry input:focus-visible, #inquiry textarea:focus-visible, #inquiry select:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
#inquiry .inquiry-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#inquiry .privacy-note, #inquiry .send-note { margin-top: 12px; font-size: var(--text-xs); color: var(--muted); }
#inquiry .privacy-note a { text-decoration: underline; text-underline-offset: 3px; }
#inquiry .review { border-radius: var(--radius-tile-s); background: var(--tile); box-shadow: var(--shadow-tile); padding: 4px 18px; }
#inquiry .review div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: var(--hairline); }
#inquiry .review div:first-child { border-top: 0; }
#inquiry .review dt { font-family: var(--mono); font-size: var(--text-mono-m); font-stretch: var(--mono-stretch); text-transform: uppercase; color: var(--muted); padding-top: 2px; }
#inquiry .review dd { font-size: var(--text-s); white-space: pre-line; overflow-wrap: anywhere; }
#send-status { margin-top: 10px; font-size: var(--text-s); }
#send-status.is-error { color: var(--signal-ink); }
#send-status .status-fallback { text-decoration: underline; color: var(--ink); }
#inquiry .complete-mark svg { width: 72px; height: 72px; fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
#inquiry .request-stub { margin: 8px 0 20px; padding: 16px 18px; border-radius: var(--radius-tile-s); background: var(--tile); font-size: var(--text-s); line-height: 1.5; color: var(--ink-soft); }
#inquiry .booking-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 28px 26px; font-family: var(--mono); font-size: var(--text-mono-l); font-stretch: var(--mono-stretch); text-transform: uppercase; letter-spacing: var(--mono-tracking); color: var(--muted); }
#inquiry .booking-foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

/* ------------------------------------------------------------ tablet */
@media (max-width: 1100px) {
  .live, .steps4 { grid-template-columns: 1fr 1fr; }
  .steps4 li + li::before { display: none; }
}

/* ------------------------------------------------------------- phone */
@media (max-width: 760px) {
  .wphero__name { font-size: 11.4vw; }
  .wstage { aspect-ratio: 4 / 4.6; }
  .browser { left: 5%; right: 5%; top: 12%; bottom: 33%; }
  .browser__bar { height: 32px; padding: 0 12px; gap: 10px; font-size: var(--text-mono-xs); }
  .browser__name { font-size: 12.5vw; bottom: 8%; }
  .browser__rocket { width: 120%; right: -24%; top: -4%; }
  .photo-tile { width: 40%; right: 7%; bottom: 13%; box-shadow: 0 0 0 4px var(--tile), var(--shadow-tile-hi); }
  .live { grid-template-columns: 1fr; gap: 10px; }
  .live__item a { min-height: 0; }
  .live__go { margin-top: 10px; }
  .steps4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .steps4 li { min-height: 160px; padding: 18px; gap: 24px; }
  .steps4__n { font-size: 38px; }
  .steps4 h3 { font-size: 19px; }
  #inquiry { inset: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .inquiry-topbar { padding: 10px 12px 10px 18px; }
  #inquiry .invitation { margin: 10px 10px 0; padding: 22px 18px; }
  #inquiry .booking-top, #inquiry .booking-content { padding-left: 18px; padding-right: 18px; }
  #inquiry .booking-foot { padding: 14px 18px 24px; flex-direction: column; align-items: flex-start; }
  #inquiry .fields { grid-template-columns: 1fr; }
  #inquiry .steps b { display: none; }
  #inquiry .timezone { flex-direction: column; align-items: stretch; }
  #inquiry select { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .live__item:hover { transform: none; }
}

/* names shared with other Studio components (.close is the home closing CTA, .steps the home
   websites steps): reset them inside the drawer */
#inquiry .close { padding: 0; flex: none; }
#inquiry .steps { border-top: 0; }
#inquiry .steps span, #inquiry .steps span:last-child { display: inline; padding: 0; border: 0; font-size: inherit; color: inherit; line-height: inherit; }
#inquiry .steps span:not(.active) { color: var(--muted); }
#inquiry .steps span[aria-current="step"] { color: var(--signal-ink); }
#inquiry .steps b { font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
