/* AnswerWell Workspace — temporary stub page served under /workspace/.
   Built from the main site (main_web_interface): the 404 page hero (src/pages/404.astro)
   and the "Let's connect" QR panel under the service page gallery
   (src/components/ContactChannels.astro, variant "panel" + inline).
   Values come from src/styles/global.css, fonts.css, redesign/system.css and redesign/pages-a.css
   of the main site; the QR panel rules below are copied verbatim from pages-a.css
   (without the "grid" variant of the contacts page). No build step, no CDN. */

/* ── fonts (self-hosted, latin subset) ── */
@font-face { font-family: 'Fira Sans Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/fira-sans-condensed-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Sans Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/fira-sans-condensed-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Sans Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/fira-sans-condensed-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/mulish-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── design tokens (main site default palette: Solar Obsidian) ── */
:root {
  --color-base: #070b1c;
  --color-ink: #f2f5ff;
  --font-display: 'Fira Sans Condensed', system-ui, sans-serif;
  --font-sans: 'Fira Sans Condensed', system-ui, sans-serif;
  --font-heading: 'Mulish', system-ui, sans-serif;
  --a1: #ffa31a;
  --orb1: rgba(88, 60, 200, 0.2);
  --orb2: rgba(40, 90, 220, 0.16);
}

/* ── reset: the part of Tailwind's preflight this page relies on ── */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; overflow-x: clip; }
body { position: relative; min-height: 100vh; background: var(--color-base); color: var(--color-ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
ul { list-style: none; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button { font: inherit; letter-spacing: inherit; color: inherit; background-color: transparent; border-radius: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.ico { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
.font-df { font-family: var(--font-display); }
.font-heading { font-family: var(--font-heading); }

/* ── ambient glow orbs (main site layout), clipped so they never widen the mobile layout ── */
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; opacity: 0.6; }
.ambient-orb-1 { left: 33.333%; top: 0; width: 600px; height: 600px; background: var(--orb1); }
.ambient-orb-2 { right: 25%; top: 384px; width: 500px; height: 500px; background: var(--orb2); }

/* ── design system primitives (main site redesign/system.css) ── */
.aw-container { width: 100%; max-width: 1660px; margin-inline: auto; padding-inline: 22px; }
.aw-page-bg { position: absolute; inset: 0 0 auto 0; height: 900px; z-index: 0; pointer-events: none; overflow: hidden; }
.aw-page-bg img { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: max(100%, 1200px); height: auto; max-width: none; opacity: .95;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%); }
.aw-h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.05; letter-spacing: -0.01em; color: #e2e9fa; }
.aw-c-amber { color: #f5b301; }
.aw-emblem { display: block; overflow: hidden; border-radius: 13.5%; box-shadow: 0 0 18px rgba(252, 122, 19, .4); }
.aw-emblem img { display: block; width: 100%; height: 100%; }
.aw-well { color: #fc7a13; }

/* ── the stub: the 404 hero (background, emblem, headline), centred in the viewport, QR panel below ── */
.ws-hero { position: relative; overflow: hidden; }
.ws-inner {
  position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100svh; padding-block: 80px; text-align: center;
}
@media (min-width: 640px) { .ws-inner { padding-block: 96px; } }
.ws-emblem { width: 46px; height: 46px; margin-bottom: 24px; transition: box-shadow .2s; }
.ws-emblem:hover { box-shadow: 0 0 26px rgba(252, 122, 19, .65); }
/* the headline takes the place of the 404 number + "Page not found": larger than .aw-h1, amber accent like the 404 */
.ws-title { max-width: 22ch; font-size: clamp(32px, 4.4vw, 62px); line-height: 1.08; text-wrap: balance; }
.ws-connect { width: min(100%, 980px); margin-top: 48px; text-align: left; }
@media (min-width: 640px) { .ws-connect { margin-top: 56px; } }

/* ── "Let's connect" QR panel — verbatim from main site redesign/pages-a.css ──
   Used full width on /contacts and inside the gallery column of service pages, so the
   layout follows the panel's own width (container queries), not the viewport. */
.cc-scope { --cc-cyan: #22d3ee; --cc-gap: 14px; container: cc / inline-size; }
.cc-panel {
  display: grid; gap: 22px; padding: 22px; border-radius: 24px; border: 1.5px solid transparent;
  background:
    radial-gradient(ellipse 34% 90% at 8% 55%, rgba(150, 60, 230, .34), transparent 70%) padding-box,
    linear-gradient(180deg, rgba(17, 22, 54, .92), rgba(9, 12, 34, .95)) padding-box,
    linear-gradient(#070b1c, #070b1c) padding-box,
    linear-gradient(100deg, #22d3ee 0%, #5b8cff 30%, #8b5cf6 62%, #c04dff 82%, #ff4fb0 100%) border-box;
  box-shadow: 0 0 30px -8px rgba(34, 211, 238, .5), 0 0 42px -12px rgba(192, 77, 255, .55);
}
.cc-intro { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.cc-brand { display: flex; align-items: center; gap: 12px; font-size: clamp(30px, 3.4cqi, 56px); font-weight: 800; line-height: .98; letter-spacing: -.01em; color: #fff; }
/* the wordmark is the same size as "Let's connect"; the emblem scales with it */
.cc-emblem { width: 1.2em; height: 1.2em; flex: none; }
.cc-title { font-size: clamp(30px, 3.4cqi, 56px); font-weight: 800; line-height: .98; letter-spacing: -.01em; color: #eef2ff; }
.cc-sub { font-family: var(--font-sans); font-size: 18px; line-height: 1.3; color: #9fb2ff; }

.cc-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cc-gap); }
.cc-card {
  --cc-n: 2; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex: 0 0 calc((100% - (var(--cc-n) - 1) * var(--cc-gap)) / var(--cc-n)); min-width: 0;
  padding: 38px 14px 20px; border-radius: 18px; border: 1.5px solid rgba(148, 163, 255, .2);
  background: rgba(10, 14, 38, .55); text-align: center;
  transition: border-color .2s, box-shadow .2s, opacity .2s;
}
.cc-card:hover, .cc-card:focus-within, .cc-card.is-open {
  border-color: var(--cc-cyan); box-shadow: 0 0 0 1px rgba(34, 211, 238, .25), 0 0 24px -4px rgba(34, 211, 238, .6);
}
.cc-arrow { position: absolute; top: 12px; right: 12px; display: inline-flex; font-size: 20px; color: #e6ebf7; pointer-events: none; transition: color .2s, transform .2s; }
.cc-card:hover .cc-arrow { color: var(--cc-cyan); transform: translate(2px, -2px); }

/* the whole card opens the channel; the QR code and Collapse sit above that link */
.cc-link { display: flex; flex-direction: column; align-items: center; margin-top: 12px; outline: none; }
.cc-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cc-link:focus-visible::after { outline: 2px solid var(--cc-cyan); outline-offset: 3px; }
.cc-name { font-size: clamp(15px, 2.2cqi, 22px); font-weight: 700; line-height: 1.2; color: #fff; }
.cc-action { font-family: var(--font-sans); font-size: clamp(13px, 1.7cqi, 17px); line-height: 1.3; color: #9fb2ff; }

.cc-qr {
  position: relative; z-index: 2; display: block; width: min(160px, 82%); aspect-ratio: 1; padding: 8px;
  border-radius: 14px; background: #fff; cursor: zoom-in;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .7);
  transform-origin: 0 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, filter .25s;
}
.cc-qr:hover { box-shadow: 0 0 0 3px rgba(34, 211, 238, .55), 0 6px 18px -8px rgba(0, 0, 0, .7); }
.cc-qr:focus-visible { outline: 2px solid var(--cc-cyan); outline-offset: 3px; }
.cc-qr-code { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.cc-qr-icon {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; padding: 1%; transform: translate(-50%, -50%);
  border-radius: 22%; background: #fff;
}
.cc-qr-icon img { display: block; width: 100%; height: 100%; }

/* enlarged code: grows to the panel's height over its card (offset and scale come from the
   component script as --cc-tx/--cc-ty/--cc-k); the card rises above its neighbours, the rest dims */
.cc-card.is-open { z-index: 5; }
.cc-card.is-open .cc-qr {
  transform: translate(var(--cc-tx, 0px), var(--cc-ty, 0px)) scale(var(--cc-k, 1.4)); cursor: zoom-out;
  box-shadow: 0 0 0 3px var(--cc-cyan), 0 22px 50px -10px rgba(0, 0, 0, .85), 0 0 40px -6px rgba(34, 211, 238, .55);
}
/* the other codes are darkened and blurred so a camera locks onto the enlarged one only */
[data-cc].has-open .cc-card:not(.is-open) { opacity: .45; }
[data-cc].has-open .cc-card:not(.is-open) .cc-qr { filter: brightness(.2) blur(4px); }
.cc-link > span { transition: opacity .2s; }
.cc-card.is-open .cc-link > span { opacity: 0; }
.cc-close {
  position: absolute; left: var(--cc-close-x, 50%); top: var(--cc-close-y, calc(100% - 19px)); z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--cc-cyan);
  background: #0b1030; color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .8), 0 0 18px -4px rgba(34, 211, 238, .6);
  transform: translateX(-50%) scale(.85); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility 0s .2s, background .15s;
}
.cc-close:hover { background: #142056; }
.cc-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cc-card.is-open .cc-close { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1); transition-delay: 0s; }

/* cards per row: 2 → 3 → 5; the intro moves beside the cards on wide panels */
@container cc (min-width: 420px) { .cc-card { --cc-n: 3; } }
@container cc (min-width: 600px) { .cc-card { --cc-n: 5; } }
@container cc (max-width: 599.98px) {
  .cc-panel { padding: 18px 16px 26px; }
  .cc-card { padding: 34px 10px 18px; }
  .cc-name { font-size: 19px; }
  .cc-action { font-size: 15px; }
}
/* narrow five-card row (service page gallery column): tighter cards, larger zoom */
@container cc (min-width: 600px) and (max-width: 999.98px) {
  .cc-panel { padding: 18px; }
  .cc-cards { --cc-gap: 10px; }
  .cc-card { padding: 30px 6px 14px; border-radius: 14px; }
  .cc-arrow { top: 8px; right: 8px; font-size: 16px; }
  .cc-qr { width: 86%; padding: 5px; border-radius: 10px; }
  .cc-link { margin-top: 10px; }
  .cc-close { height: 34px; padding: 0 14px; font-size: 14px; }
}
@container cc (min-width: 1200px) {
  .cc-panel { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 0; padding: 26px; }
  .cc-intro { padding: 4px 30px 4px 14px; margin-right: 26px; border-right: 1px solid rgba(255, 255, 255, .16); }
  .cc-title span { display: block; }
}
@container cc (max-width: 1199.98px) { .cc-intro { padding: 2px 4px 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); } }
/* compact intro row (service pages): brand | title, with the hint pushed to the right edge */
.cc-row-head.cc-panel { grid-template-columns: none; gap: 18px; }
.cc-row-head .cc-intro { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 8px; margin: 0; padding: 0 4px 16px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
/* brand and title use the header logo wordmark type (.hdr-word: 21px / 800 / 1.15); the emblem keeps its size */
.cc-row-head .cc-brand { gap: 10px; font-size: 21px; line-height: 1.15; }
.cc-row-head .cc-emblem { width: 34px; height: 34px; }
.cc-row-head .cc-title { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .18); font-size: 21px; line-height: 1.15; }
.cc-row-head .cc-title span { display: inline; }
.cc-row-head .cc-sub { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 15px; }
.cc-row-head .cc-sub .ico, .cc-row-head .cc-sub svg { width: 18px; height: 18px; flex: none; color: var(--cc-cyan); }
/* tighter cards under the service gallery, so the sticky gallery column stays shorter than the info column */
/* top inset matches the Service profile panel (.svc-profile: 14px padding + 1px border); the bottom one
   is the same thin 6px as between the Service profile rows */
.cc-row-head.cc-panel { padding: 14px 16px 6px; gap: 6px; }
/* thin 6px gaps around the divider line, as between the Service profile rows (.svc-profile-grid) */
.cc-row-head .cc-intro { padding-bottom: 6px; }
.cc-row-head .cc-card { padding-top: 26px; padding-bottom: 12px; }
.cc-row-head .cc-arrow { top: 6px; right: 7px; }
.cc-row-head .cc-link { margin-top: 8px; }
@container cc (max-width: 679.98px) { .cc-row-head .cc-sub { flex-basis: 100%; margin-left: 0; } }
@container cc (max-width: 459.98px) { .cc-row-head .cc-title { flex-basis: 100%; padding-left: 0; border-left: 0; } }
/* card brand row (icon + name): shown only in the touch list of the panel variant */
.cc-head { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: clamp(16px, 1.45cqi, 21px); font-weight: 600; line-height: 1.2; color: #fff; }
.cc-head img { width: 30px; height: 30px; flex: none; }
@container cc (max-width: 999.98px) {
  .cc-head { gap: 7px; }
  .cc-head img { width: 24px; height: 24px; }
}
@container cc (max-width: 599.98px) { .cc-head { font-size: 17px; } }

.cc-panel .cc-head { display: none; }
.cc-hint-touch { display: none; }

/* touch screens: a phone can't scan its own screen, so the QR codes give way to a compact
   tap list on narrow layouts — brand, then the action, one full-width row per channel */
@media (hover: none) and (pointer: coarse) {
  .cc-hint-pointer { display: none; }
  .cc-hint-touch { display: inline; }
  .cc-sub svg { display: none; }
  @container cc (max-width: 599.98px) {
    .cc-cards { --cc-gap: 8px; }
    .cc-scope .cc-card { --cc-n: 1; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 14px; border-radius: 14px; }
    .cc-scope .cc-qr, .cc-scope .cc-close { display: none; }
    .cc-scope .cc-head { display: flex; font-size: 17px; }
    .cc-scope .cc-head img { width: 28px; height: 28px; }
    .cc-scope .cc-link { flex-direction: row; margin: 0; }
    .cc-scope .cc-name { display: none; }
    .cc-scope .cc-action { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: #e6ebf7; }
    .cc-panel .cc-card { padding-right: 40px; }
    .cc-panel .cc-arrow { top: 50%; right: 14px; transform: translateY(-50%); }
    .cc-row-head .cc-card { padding-top: 10px; padding-bottom: 10px; }
  }
}
@media (prefers-reduced-motion: reduce) { .cc-qr, .cc-close, .cc-card, .cc-arrow { transition: none; } }
