/* Public website theme. Load after page styles; logo sizing and artwork stay in
   their existing brand rules. Add studio-theme to #psc-studio to opt a page in. */
body:has(#psc-studio.studio-theme) { background: #15110e; }

#psc-studio.studio-theme {
  --studio-bg: #15110e;
  --studio-surface: #201a15;
  --studio-ink: #f6eddd;
  --studio-muted: #b6a893;
  --studio-line: rgba(246,237,221,.10);
  --studio-blue: #e8bf6e;
  --studio-coral: #f19482;
  --theme-on-primary: #2b140f;
  --theme-accent: #e0b25c;
  --theme-border: rgba(224,178,92,.25);
  --theme-tint: rgba(224,178,92,.12);
  --theme-card: linear-gradient(145deg, #211a15, #18130f);
  --theme-primary: linear-gradient(135deg, #f5a28f, #ea8270);
  --theme-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --theme-sans: Mulish, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --theme-shadow: 0 16px 44px rgba(0,0,0,.28);
  --theme-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8bf6e' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
  --theme-window: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8bf6e' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18M7 6.5h.01M10 6.5h.01'/%3E%3C/svg%3E");
  --theme-game: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8bf6e' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10c2 0 3 2 3.5 4l1 6c.4 2-2 3-3.5 1l-2-2H8l-2 2c-1.5 2-4 1-3.5-1l1-6C4 9 5 7 7 7Z M6 11h4M8 9v4M15 11h.01M18 13h.01'/%3E%3C/svg%3E");
  --theme-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8bf6e' stroke-width='1.75' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M10 5h4M11 19h2'/%3E%3C/svg%3E");
  --theme-icon: var(--theme-check);
  background:
    radial-gradient(ellipse 850px 570px at 95% -80px, rgba(224,178,92,.10), transparent 72%),
    radial-gradient(ellipse 700px 500px at -10% 300px, rgba(241,148,130,.06), transparent 70%),
    var(--studio-bg);
  font-family: var(--theme-sans);
  font-size: 15px;
  line-height: 1.7;
}

/* Type: the original words stay intact, including CMS-edited headings. */
#psc-studio.studio-theme .studio-page :is(h1,h2) {
  font-family: var(--theme-serif);
  font-weight: 500;
  letter-spacing: -.015em;
  text-transform: none;
  text-wrap: balance;
  line-height: 1.12;
}
#psc-studio.studio-theme .studio-page h1 { font-size: clamp(38px,5.2cqw,68px); }
#psc-studio.studio-theme .studio-page h2 { font-size: clamp(30px,3.3cqw,42px); }
#psc-studio.studio-theme .studio-page h3 {
  font-family: var(--theme-sans);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--studio-ink);
}
#psc-studio.studio-theme .studio-emphasis,
#psc-studio.studio-theme :is(.studio-price,.studio-local-price,.studio-care-price) strong {
  color: #f0cc85;
  background: linear-gradient(90deg, #f3d593, #d9a64c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#psc-studio.studio-theme .studio-emphasis { font-style: normal; background: none; color: inherit; -webkit-text-fill-color: currentColor; }
#psc-studio.studio-theme .studio-local-offer .studio-local-label,
#psc-studio.studio-theme .studio-price-inclusions h3 {
  color: var(--studio-blue);
  font: 700 13px/1.5 var(--theme-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
#psc-studio.studio-theme :is(.studio-lead,.studio-price-description) {
  color: var(--studio-muted);
  font-size: 16px;
  line-height: 1.75;
}
#psc-studio.studio-theme .studio-masthead { border-bottom: 1px solid var(--studio-line); }
#psc-studio.studio-theme .studio-nav a { font-weight: 500; }
#psc-studio.studio-theme .studio-nav a[aria-current='page'] {
  color: var(--studio-blue);
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: var(--theme-accent);
}
/* In the phone menu Contact is a plain row; it becomes a pill in the desktop bar. */
@container (min-width:851px) {
#psc-studio.studio-theme .studio-nav .studio-contact-link {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding-inline: 14px;
  background: rgba(255,255,255,.04);
}
}
#psc-studio.studio-theme :is(.studio-page-hero,[data-page='company'] .studio-page-hero) { padding-block: 32px 36px; }
#psc-studio.studio-theme :is([data-page='pricing'],[data-page='websites']) .studio-page-hero h1,
#psc-studio.studio-theme [data-page='company'] .studio-page-hero h1 {
  font-size: clamp(42px,5.2cqw,68px);
}
#psc-studio.studio-theme .studio-page-end {
  margin-top: 28px;
  padding: clamp(24px,3cqw,36px);
  background: var(--theme-card);
  border: 1px solid var(--studio-line);
  border-radius: 16px;
}
#psc-studio.studio-theme .studio-footer { padding-block: 28px; }

/* Shared interaction styles. Decorative arrows follow the pointer; logos do not. */
#psc-studio.studio-theme :is(a,button,input,select,textarea,summary):focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 4px;
}
#psc-studio.studio-theme :is(.studio-action,.launch-button,.portfolio-button,.launch-secondary,.studio-open-site,.studio-hero-links .studio-text-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--studio-ink);
  font: 600 14px/1.5 var(--theme-sans);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
#psc-studio.studio-theme .studio-page :is(.studio-action,.launch-button),
#psc-studio.studio-theme [data-page='company'] .studio-page-end .studio-action,
#psc-studio.studio-theme .inquiry-form .portfolio-button {
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(241,148,130,.22);
}
#psc-studio.studio-theme :is(.studio-text-link,.studio-email) { color: var(--studio-blue); }
#psc-studio.studio-theme .studio-text-link { border-bottom-color: var(--theme-border); }
#psc-studio.studio-theme .studio-email { overflow-wrap: anywhere; }
#psc-studio.studio-theme [data-lucide='arrow-up-right'] { transition: transform .2s ease; }
@media (hover:hover) {
  #psc-studio.studio-theme :is(.studio-action,.launch-button,.portfolio-button):not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(241,148,130,.34);
  }
  #psc-studio.studio-theme :is(.launch-secondary,.studio-open-site,.studio-hero-links .studio-text-link):not(.studio-action):hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.28);
    transform: translateY(-2px);
  }
  #psc-studio.studio-theme :is(a,button):hover [data-lucide='arrow-up-right'] { transform: translate(2px,-2px); }
}

/* Line SVGs are decorative CSS images, so CMS copy and accessible names survive. */
#psc-studio.studio-theme [data-icon='game'] { --theme-icon: var(--theme-game); }
#psc-studio.studio-theme [data-icon='website'] { --theme-icon: var(--theme-window); }
#psc-studio.studio-theme [data-icon='app'] { --theme-icon: var(--theme-phone); }
#psc-studio.studio-theme [data-icon] { position: relative; padding-left: 56px; min-height: 40px; }
#psc-studio.studio-theme [data-icon]::before,
#psc-studio.studio-theme .studio-price-inclusions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: var(--theme-tint) var(--theme-icon) center / 21px no-repeat;
}

/* Discount callouts retain all existing terms and links. */
#psc-studio.studio-theme :is(.studio-local-note,.studio-local-offer) {
  background: linear-gradient(135deg, rgba(224,178,92,.10), transparent);
  border: 1px solid var(--theme-border);
  border-left: 3px solid var(--theme-accent);
  border-radius: 10px;
  padding: 24px 26px;
}
#psc-studio.studio-theme .studio-local-note strong { font-weight: 600; }

/* Demo selectors keep their native button behavior and aria-pressed state. */
#psc-studio.studio-theme .studio-web-gallery { grid-template-columns: minmax(0,1fr); gap: 28px; }
#psc-studio.studio-theme .studio-website-list { flex-direction: row; flex-wrap: wrap; gap: 10px; }
#psc-studio.studio-theme .studio-website-list button {
  justify-content: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  color: var(--studio-muted);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
#psc-studio.studio-theme .studio-website-list button::after { content: none; }
#psc-studio.studio-theme .studio-website-list button::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  mask: var(--theme-icon) center / contain no-repeat;
}
#psc-studio.studio-theme [data-site='services'] { --theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10H3ZM9 20v-7h6v7'/%3E%3C/svg%3E"); }
#psc-studio.studio-theme [data-site='retail'] { --theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h14l1 14H4ZM8 8V6a4 4 0 0 1 8 0v2'/%3E%3C/svg%3E"); }
#psc-studio.studio-theme [data-site='venue'] { --theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M9 10h.01M15 10h.01M9 14h.01M15 14h.01M10 21v-4h4v4'/%3E%3C/svg%3E"); }
#psc-studio.studio-theme [data-site='manufacturing'] { --theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21V3h4v10l7-4v4l7-4v12ZM7 17h1M12 17h1M17 17h1'/%3E%3C/svg%3E"); }
#psc-studio.studio-theme .studio-website-list button:hover { background: rgba(255,255,255,.06); color: var(--studio-ink); }
#psc-studio.studio-theme .studio-website-list button[aria-pressed='true'] {
  border-color: transparent;
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  box-shadow: 0 4px 16px rgba(241,148,130,.26);
}

/* Only screenshots and the founder photo get frames; no logo selectors here. */
#psc-studio.studio-theme :is(.studio-site-image,.studio-home-browser,.launch-screens img,.studio-bio-photo) {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: var(--theme-card);
  box-shadow: var(--theme-shadow);
}
#psc-studio.studio-theme .studio-site-caption { margin-top: 22px; gap: 24px; }
#psc-studio.studio-theme .studio-site-caption strong { font-size: 16px; font-weight: 600; }
#psc-studio.studio-theme .studio-site-caption p { font-size: 14px; }

/* Price tiers preserve their existing order and two-column scope layout. */
#psc-studio.studio-theme .studio-price-list { display: grid; gap: 24px; border: 0; }
#psc-studio.studio-theme .studio-price-row {
  padding: clamp(24px,3.5cqw,44px);
  background: var(--theme-card);
  border: 1px solid var(--studio-line);
  border-radius: 16px;
}
#psc-studio.studio-theme :is(.studio-price,.studio-care-price) strong {
  font-family: var(--theme-serif);
  font-weight: 400;
}
#psc-studio.studio-theme .studio-price-inclusions ul { list-style: none; padding: 0; }
#psc-studio.studio-theme .studio-price-inclusions li { position: relative; padding: 7px 0 7px 36px; margin-block: 5px; }
#psc-studio.studio-theme .studio-price-inclusions li::before { top: 7px; width: 26px; height: 26px; border-radius: 8px; background-size: 17px; }
#psc-studio.studio-theme .studio-care-options { gap: 24px; }
#psc-studio.studio-theme .studio-care-options > article,
#psc-studio.studio-theme .studio-care-options > article + article {
  padding: 24px;
  border: 1px solid var(--studio-line);
  border-radius: 16px;
  background: var(--theme-card);
}
#psc-studio.studio-theme .studio-care-options h3 { display: flex; align-items: center; font-size: 18px; }

/* Company and contact use the same card material and icon vocabulary. */
#psc-studio.studio-theme .studio-company-person { display: flex; flex-wrap: wrap; align-items: flex-start; padding: 20px; border: 1px solid var(--studio-line); border-radius: 16px; background: var(--theme-card); }
#psc-studio.studio-theme .studio-company-person .studio-bio-role { font-family: var(--theme-sans); }
#psc-studio.studio-theme [data-page='company'] :is(.studio-lead,.studio-company-work p,.studio-company-bio > div + div p) { text-align: left; hyphens: none; }
#psc-studio.studio-theme .studio-contact-grid { gap: 24px; border: 0; padding-block: 0; }
#psc-studio.studio-theme .studio-contact-grid > section { min-width: 0; padding: 24px; border: 1px solid var(--studio-line); border-radius: 16px; background: var(--theme-card); }
#psc-studio.studio-theme .studio-contact-grid h2 { font-size: 30px; }
#psc-studio.studio-theme .studio-contact-grid p { margin-top: 18px; }

/* Form groups are visual wrappers; field names, validation, and submission stay native. */
#psc-studio.studio-theme .inquiry-form { max-width: none; gap: 24px; }
#psc-studio.studio-theme .studio-form-section,
#psc-studio.studio-theme .feature-fieldset {
  grid-column: 1 / -1;
  min-width: 0;
  padding: clamp(20px,3cqw,32px);
  border: 1px solid var(--studio-line);
  border-radius: 16px;
  background: var(--theme-card);
}
#psc-studio.studio-theme .studio-form-section { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
#psc-studio.studio-theme .portfolio-field label { color: var(--studio-ink); font-size: 14px; font-weight: 500; }
#psc-studio.studio-theme .inquiry-form :is(input:not([type='checkbox']),textarea,select) {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background-color: #201a15;
  color: var(--studio-ink);
  font: 16px/1.5 var(--theme-sans);
  transition: border-color .2s ease, box-shadow .2s ease;
}
#psc-studio.studio-theme .inquiry-form :is(input,textarea,select):focus {
  outline: none;
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px rgba(224,178,92,.16), 0 4px 20px rgba(224,178,92,.10);
}
#psc-studio.studio-theme .inquiry-form select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8bf6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: right 14px center;
}
#psc-studio.studio-theme .inquiry-form select option { background: #201a15; color: #f6eddd; }
#psc-studio.studio-theme .feature-fieldset legend { float: left; width: 100%; padding: 0; margin-bottom: 20px; font-size: 16px; font-weight: 600; }
#psc-studio.studio-theme .feature-options { clear: both; gap: 10px 20px; margin: 0; }
#psc-studio.studio-theme .feature-options label { gap: 12px; min-height: 46px; cursor: pointer; line-height: 1.5; }
#psc-studio.studio-theme .feature-options input {
  appearance: none;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1px solid var(--theme-border);
  border-radius: 6px;
  background: var(--theme-tint);
  cursor: pointer;
}
#psc-studio.studio-theme .feature-options input:checked { background: var(--theme-tint) var(--theme-check) center / 20px no-repeat; border-color: var(--theme-accent); }
#psc-studio.studio-theme .feature-options label:has(:checked) { color: var(--studio-ink); }
#psc-studio.studio-theme .inquiry-form .portfolio-button { justify-self: stretch; width: 100%; min-height: 54px; font: 600 15px/1.5 var(--theme-sans); }
#psc-studio.studio-theme .inquiry-form .portfolio-button:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; transform: none; }
#psc-studio.studio-theme .form-status { padding: 18px 22px; border: 1px solid var(--theme-border); border-radius: 10px; background: var(--theme-card); }
#psc-studio.studio-theme .form-status.form-error { color: #ffc2c2; border-color: rgba(255,194,194,.3); }
#psc-studio.studio-theme .form-status a { text-decoration: underline; text-underline-offset: 3px; }

/* Centuries keeps its artwork, logo rules, section order, and game screenshots. */
#psc-studio.studio-theme .launch-intro { padding-block: 36px 48px; }
#psc-studio.studio-theme .launch-intro h1 { font-size: clamp(40px,4.7cqw,64px); }
#psc-studio.studio-theme .launch-screens h3 { font-family: var(--theme-serif); font-size: 28px; font-weight: 400; }
#psc-studio.studio-theme .launch-close { background: radial-gradient(ellipse at 50% 0,rgba(224,178,92,.12),transparent 70%),var(--theme-card); border-color: var(--studio-line); }
#psc-studio.studio-theme .launch-close p { color: var(--studio-muted); }
#psc-studio.studio-theme .centuries-faq details { margin-top: 12px; padding: 0 18px; border: 1px solid var(--studio-line); border-radius: 16px; background: var(--theme-card); }
#psc-studio.studio-theme .centuries-faq summary { position: relative; padding: 22px 30px 22px 0; list-style: none; font-size: 16px; }
#psc-studio.studio-theme .centuries-faq summary::-webkit-details-marker { display: none; }
#psc-studio.studio-theme .centuries-faq summary::after { content: ''; position: absolute; top: 28px; right: 2px; width: 8px; height: 8px; border-right: 1.5px solid var(--studio-blue); border-bottom: 1.5px solid var(--studio-blue); transform: rotate(45deg); }
#psc-studio.studio-theme .centuries-faq details[open] summary::after { transform: rotate(225deg); }
#psc-studio.studio-theme .centuries-faq details p { margin-top: 0; }

/* Phone defaults for the themed components above; wider layouts follow. */
#psc-studio.studio-theme .studio-company-person > div { min-width: 0; }
#psc-studio.studio-theme .studio-company-person h2 { font-size: 28px; }
#psc-studio.studio-theme .studio-website-list { gap: 8px; }
#psc-studio.studio-theme .studio-website-list button { padding: 10px 16px; }
#psc-studio.studio-theme .launch-actions > a { width: 100%; max-width: 340px; }

@container (min-width:651px) {
  #psc-studio.studio-theme .studio-form-section { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  #psc-studio.studio-theme .studio-contact-grid > section { padding: 30px; }
  #psc-studio.studio-theme .studio-company-person { align-items: center; flex-wrap: nowrap; }
  #psc-studio.studio-theme .studio-company-person h2 { font-size: 30px; }
  #psc-studio.studio-theme .studio-website-list { gap: 10px; }
  #psc-studio.studio-theme .studio-website-list button { padding: 10px 20px; }
  #psc-studio.studio-theme .studio-price-inclusions li { padding-left: 40px; }
  #psc-studio.studio-theme .studio-care-options > article,
  #psc-studio.studio-theme .studio-care-options > article + article { padding: 30px; }
  #psc-studio.studio-theme .studio-page-end { margin-top: 36px; }
  #psc-studio.studio-theme .launch-actions > a { width: auto; max-width: none; }
  #psc-studio.studio-theme .launch-intro { padding-block: 52px 72px; }
  #psc-studio.studio-theme .centuries-faq details { padding: 0 24px; }
  #psc-studio.studio-theme :is(.studio-page-hero,[data-page='company'] .studio-page-hero) { padding-block: 40px; }
}
@container (min-width:751px) {
  #psc-studio.studio-theme .studio-company-person { padding: 24px; }
  #psc-studio.studio-theme .studio-company-person h2 { font-size: 40px; }
  #psc-studio.studio-theme :is(.studio-page-hero,[data-page='company'] .studio-page-hero) { padding-block: clamp(48px,6cqw,80px); }
}
@media (prefers-reduced-motion:reduce) {
  #psc-studio.studio-theme :is(a,button,input,select,textarea,[data-lucide]) { transition: none; }
  #psc-studio.studio-theme :is(a,button):hover,
  #psc-studio.studio-theme :is(a,button):hover [data-lucide='arrow-up-right'] { transform: none; }
}
@media (forced-colors:active) {
  #psc-studio.studio-theme .studio-emphasis,
  #psc-studio.studio-theme :is(.studio-price,.studio-local-price,.studio-care-price) strong { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; }
  #psc-studio.studio-theme .feature-options input { appearance: auto; }
  #psc-studio.studio-theme .inquiry-form select { appearance: auto; }
  #psc-studio.studio-theme .studio-website-list button[aria-pressed='true'] { border: 2px solid Highlight; }
}

/* Contact card with a primary action and a quieter secondary link. */
#psc-studio.studio-theme .studio-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 22px; }
#psc-studio.studio-theme .studio-card-actions > * { margin-top: 0; }
