:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #111111;
  --border-subtle: color-mix(in srgb, var(--fg) 12%, transparent);
  --studio-width: 1120px;
  --studio-gutter: clamp(1.5rem, 4vw, 3rem);
  --studio-muted: color-mix(in srgb, var(--fg) 64%, transparent);
  --studio-soft: #f5f6f5;
  --studio-accent: #258b68;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
    --bg: #ffffff;
    --fg: #111111;
    --border-subtle: color-mix(in srgb, var(--fg) 12%, transparent);
  }
}

html { width: 100%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 96px; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); }
body.studio-page { min-height: 100svh; margin: 0; display: block; overflow-x: hidden; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); color: var(--fg); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 1rem; text-align: left; }
:root:not([data-theme]) body.studio-page,
:root[data-theme="light"] body.studio-page,
:root[data-theme="dark"] body.studio-page { background: color-mix(in srgb, var(--fg) 8%, var(--bg)); }
.studio-page a { color: inherit; }
.studio-wrap { width: min(var(--studio-width), calc(100% - (2 * var(--studio-gutter)))); margin-inline: auto; }

.studio-topbar { position: fixed; inset: 0 0 auto; z-index: 2000; height: 75px; border-bottom: 1px solid var(--border-subtle); background: color-mix(in srgb, #fff 88%, transparent); backdrop-filter: blur(12px); }
.studio-topbar-inner { height: 100%; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.studio-page .studio-topbar-brand { display: flex; align-items: center; gap: 1.25rem; color: color-mix(in srgb, var(--fg) 70%, transparent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; }
.studio-topbar-brand:hover { opacity: 0.9; }
.studio-topbar-logo { width: auto; height: 52px; content: url("/static/img/logo-unatomo-studio-round-v1.0.svg"); opacity: 0.9; }
.studio-topbar-name { display: inline-flex; align-items: center; gap: 0.34rem; color: color-mix(in srgb, var(--fg) 70%, transparent); white-space: nowrap; }
.studio-topbar-parent-name { font-weight: inherit; }
.studio-topbar-divider { color: color-mix(in srgb, var(--fg) 42%, transparent); }

.utility-controls { height: 100%; display: flex; align-items: center; gap: 0.5rem; }
.icon-button { width: 44px; height: 36px; margin: 0; padding: 0; border: 1px solid var(--border-subtle); border-radius: 0.75rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; background: color-mix(in srgb, #fff 85%, transparent); color: var(--fg); font: inherit; font-size: 0.9rem; line-height: 1; box-shadow: none; cursor: pointer; opacity: 0.9; appearance: none; backdrop-filter: blur(8px); }
#lang-toggle { width: auto; min-width: 66px; padding: 0 0.65rem; justify-content: space-between; gap: 0.5rem; }
.icon-button:hover,
.icon-button[aria-expanded="true"] { opacity: 1; border-color: color-mix(in srgb, var(--fg) 32%, transparent); }
.icon-button .icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.icon-button svg { width: 18px; height: 18px; display: block; fill: none; }
.lang-picker { position: relative; height: 100%; margin: 0; display: flex; align-items: center; }
.lang-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1100; min-width: 160px; padding: 0.6rem; border: 1px solid var(--border-subtle); border-radius: 0.75rem; display: grid; gap: 0.4rem; background: #fff; box-shadow: 0 16px 40px color-mix(in srgb, var(--fg) 12%, transparent); }
.lang-menu[hidden] { display: none; }
.lang-option { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid transparent; border-radius: 0.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: transparent; color: var(--fg); font: inherit; font-size: 0.95rem; text-align: left; text-decoration: none; }
.lang-option:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); text-decoration: none; }
.lang-option-check { flex: 0 0 1em; visibility: hidden; font-size: 0.95rem; font-weight: 700; line-height: 1; text-align: center; }
.lang-option[aria-current="page"] .lang-option-check,
.lang-option[aria-checked="true"] .lang-option-check { visibility: visible; }

.studio-page > main { padding-top: 75px; }
.studio-hero { min-height: min(760px, calc(100svh - 75px)); padding: clamp(4.5rem, 8vw, 7rem) 0; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr); gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.studio-eyebrow { margin: 0 0 1.4rem; color: var(--studio-accent); font-size: 0.72rem; font-weight: 720; letter-spacing: 0.12em; text-transform: uppercase; }
.studio-hero h1 { max-width: 760px; margin: 0; color: var(--fg); font-size: clamp(3.15rem, 7vw, 6.7rem); font-weight: 560; line-height: 0.95; letter-spacing: -0.065em; text-wrap: balance; }
.studio-hero-lead { max-width: 610px; margin: 2rem 0 0; color: var(--studio-muted); font-size: clamp(1.03rem, 1.7vw, 1.22rem); line-height: 1.65; }
.studio-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.studio-button { min-height: 44px; padding: 0.7rem 1.1rem; border: 1px solid var(--fg); border-radius: 0.75rem; display: inline-flex; align-items: center; justify-content: center; background: var(--fg); color: #fff !important; font-size: 0.92rem; font-weight: 650; line-height: 1; text-decoration: none; }
.studio-text-link { min-height: 44px; padding: 0.7rem 0.3rem; display: inline-flex; align-items: center; gap: 0.45rem; color: var(--studio-muted); font-size: 0.9rem; font-weight: 620; text-decoration: none; }
.studio-text-link::after { content: "↓"; }
.studio-text-link:hover { color: var(--fg); }

.studio-system { position: relative; min-height: 430px; border: 1px solid var(--border-subtle); border-radius: 1.25rem; overflow: hidden; background: linear-gradient(var(--border-subtle) 1px, transparent 1px), linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px), var(--studio-soft); background-size: 42px 42px; }
.studio-system::before,
.studio-system::after { content: ""; position: absolute; background: var(--studio-accent); opacity: 0.7; }
.studio-system::before { top: 24%; bottom: 24%; left: 50%; width: 1px; }
.studio-system::after { top: 50%; left: 18%; right: 18%; height: 1px; }
.system-core,
.system-node { position: absolute; z-index: 1; border: 1px solid var(--border-subtle); background: color-mix(in srgb, #fff 94%, transparent); box-shadow: 0 14px 34px color-mix(in srgb, #000 8%, transparent); backdrop-filter: blur(8px); }
.system-core { top: 50%; left: 50%; width: 128px; height: 128px; border-color: color-mix(in srgb, var(--studio-accent) 52%, var(--border-subtle)); border-radius: 50%; display: grid; place-items: center; transform: translate(-50%, -50%); color: var(--fg); font-size: 0.7rem; font-weight: 750; letter-spacing: 0.11em; }
.system-core::before { content: ""; position: absolute; inset: 13px; border: 1px dashed var(--studio-accent); border-radius: inherit; opacity: 0.55; }
.system-node { min-width: 116px; padding: 0.72rem 0.85rem; border-radius: 0.75rem; color: var(--studio-muted); font-size: 0.68rem; font-weight: 650; line-height: 1.25; }
.system-node::before { content: ""; width: 6px; height: 6px; margin-right: 0.5rem; display: inline-block; border-radius: 50%; background: var(--studio-accent); }
.system-node:nth-of-type(2) { top: 13%; left: 8%; }
.system-node:nth-of-type(3) { top: 12%; right: 7%; }
.system-node:nth-of-type(4) { bottom: 12%; left: 7%; }
.system-node:nth-of-type(5) { right: 7%; bottom: 13%; }

.studio-section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; border-top: 1px solid var(--border-subtle); }
.studio-section-heading { max-width: 720px; }
.studio-kicker { margin: 0 0 0.85rem; color: var(--studio-muted); font-size: 0.72rem; font-weight: 650; }
.studio-section h2 { margin: 0; color: var(--fg); font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 560; line-height: 1.08; letter-spacing: -0.045em; text-wrap: balance; }
.capability-list { margin-top: clamp(2.75rem, 6vw, 5rem); border-top: 1px solid var(--border-subtle); }
.capability { padding: clamp(2rem, 4vw, 3.25rem) 0; display: grid; grid-template-columns: 72px minmax(210px, 0.68fr) minmax(0, 1.32fr); gap: clamp(1.5rem, 4vw, 4rem); border-bottom: 1px solid var(--border-subtle); align-items: start; }
.capability-number { color: var(--studio-accent); font-size: 0.74rem; font-weight: 760; letter-spacing: 0.12em; }
.capability h3 { margin: 0; color: var(--fg); font-size: clamp(1.35rem, 2.3vw, 1.85rem); font-weight: 590; letter-spacing: -0.025em; }
.capability-copy > p { max-width: 650px; margin: 0; color: var(--studio-muted); font-size: 0.95rem; line-height: 1.7; }
.capability-examples { margin: 1.35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; }
.capability-examples li { padding: 0.42rem 0.65rem; border: 1px solid var(--border-subtle); border-radius: 99px; color: var(--studio-muted); font-size: 0.72rem; line-height: 1.25; }

.studio-cta { padding: clamp(5rem, 11vw, 9rem) 0; border-top: 1px solid var(--border-subtle); text-align: center; }
.studio-cta h2 { max-width: 800px; margin: 0 auto; color: var(--fg); font-size: clamp(2.5rem, 5.5vw, 5rem); font-weight: 560; line-height: 1.02; letter-spacing: -0.055em; text-wrap: balance; }
.studio-cta p:not(.studio-eyebrow) { max-width: 580px; margin: 1.4rem auto 0; color: var(--studio-muted); line-height: 1.7; }
.studio-cta .studio-actions { justify-content: center; }

.studio-shoe { width: 100%; margin: 2.5rem 0 0.5rem; display: flex; justify-content: center; align-items: center; font-size: 0.7rem; }
.studio-shoe-control { position: relative; width: 3rem; min-height: 2.75rem; max-height: 2.75rem; max-width: calc(100vw - 2rem); border: 0; border-radius: 1rem; display: inline-flex; flex-direction: column; align-items: center; background: transparent; padding: 0; transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1), max-height 320ms cubic-bezier(0.22, 1, 0.36, 1), padding 320ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease, box-shadow 220ms ease; }
.studio-shoe-control.is-open { width: min(42rem, calc(100vw - 2rem)); max-height: 30rem; padding: 1rem 1.25rem 1.15rem; background: color-mix(in srgb, var(--bg) 96%, var(--fg) 4%); box-shadow: 0 16px 38px color-mix(in srgb, #000 10%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.studio-shoe-control.is-open,
.studio-shoe-control.is-closing { overflow: hidden; }
.studio-shoe-toggle { position: absolute; top: 0; left: 50%; z-index: 2; width: 3rem; height: 2.75rem; padding: 0.35rem; border: 1px solid transparent; border-radius: 0.75rem; display: inline-flex; align-items: center; justify-content: center; transform: translateX(-50%); background: transparent; color: color-mix(in srgb, var(--fg) 70%, transparent); cursor: pointer; transition: top 320ms cubic-bezier(0.22, 1, 0.36, 1), left 320ms cubic-bezier(0.22, 1, 0.36, 1), transform 320ms cubic-bezier(0.22, 1, 0.36, 1), color 160ms ease, background-color 160ms ease; }
.studio-shoe-control.is-open .studio-shoe-toggle { top: 0.75rem; left: 0.75rem; transform: translateX(0); }
.studio-shoe-icon { width: 2.35rem; height: 2.15rem; display: block; background: currentColor; -webkit-mask: url("/static/img/winged-shoe.png") center / contain no-repeat; mask: url("/static/img/winged-shoe.png") center / contain no-repeat; }
.studio-shoe-toggle:hover,
.studio-shoe-toggle:focus-visible { background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg); outline: none; }
.studio-shoe-toggle[aria-expanded="true"] { background: transparent; color: var(--fg); }
.studio-shoe-panel { width: auto; margin: 0 0 0 4.5rem; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 2rem; row-gap: 1rem; color: var(--fg); text-align: left; opacity: 0; transform: translateX(0.5rem); transition: opacity 180ms ease 90ms, transform 220ms cubic-bezier(0.22, 1, 0.36, 1) 70ms; }
.studio-shoe-panel[hidden] { display: none; }
.studio-shoe-control.is-open .studio-shoe-panel { opacity: 1; transform: translateX(0); }
.studio-shoe-control.is-closing .studio-shoe-panel { opacity: 0; transform: translateX(0.35rem); transition: opacity 120ms ease, transform 140ms ease; }
.studio-shoe-panel p { margin: 0; }
.studio-shoe-label { color: color-mix(in srgb, var(--fg) 58%, transparent); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.studio-shoe-tagline { font-size: 1rem; line-height: 1.4; color: var(--fg); }
.studio-shoe-powered,
.studio-shoe-legal { margin-top: 0.45rem !important; color: color-mix(in srgb, var(--fg) 66%, transparent); font-size: 0.7rem; line-height: 1.45; }
.studio-shoe-powered { margin-top: 1rem !important; }
.studio-shoe-links { margin-top: 0.55rem; display: grid; gap: 0.45rem; }
.studio-shoe-links a { color: var(--studio-muted); font-size: 0.74rem; text-decoration: none; }
.studio-shoe-links a:hover { color: var(--fg); text-decoration: underline; }

.studio-page-nav {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  gap: 0.38rem;
}
.studio-page-nav-button {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--fg) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: color-mix(in srgb, var(--fg) 78%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.18rem 0.65rem color-mix(in srgb, #000 12%, transparent);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
}
.studio-page-nav-button[hidden] { display: none; }
.studio-page-nav-button svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.studio-page-nav-button:hover { border-color: color-mix(in srgb, var(--fg) 42%, transparent); color: var(--fg); }
.studio-page-nav-button:focus-visible { outline: 2px solid color-mix(in srgb, var(--fg) 52%, transparent); outline-offset: 2px; }

.studio-contact { width: min(760px, calc(100% - (2 * var(--studio-gutter)))); min-height: calc(100svh - 75px); margin: 75px auto 0; padding: clamp(4rem, 9vw, 7rem) 0; }
.studio-contact h1 { margin: 0; color: var(--fg); font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 560; letter-spacing: -0.055em; line-height: 1; }
.studio-contact-lead { max-width: 580px; margin: 1.3rem 0 2.5rem; color: var(--studio-muted); font-size: 1.05rem; line-height: 1.7; }
.studio-contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.studio-form-field { display: grid; gap: 0.45rem; }
.studio-form-field--full { grid-column: 1 / -1; }
.studio-form-field label { color: color-mix(in srgb, var(--fg) 72%, transparent); font-size: 0.78rem; }
.studio-form-field input,
.studio-form-field textarea { width: 100%; padding: 0.85rem 0.95rem; border: 1px solid var(--border-subtle); border-radius: 0.75rem; background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--fg); font: inherit; }
.studio-form-field textarea { min-height: 150px; resize: vertical; }
.studio-form-field input:focus,
.studio-form-field textarea:focus { border-color: color-mix(in srgb, var(--fg) 42%, transparent); outline: none; }
.studio-form-status { grid-column: 1 / -1; margin: 0; color: var(--studio-muted); font-size: 0.85rem; }
.studio-form-status[data-state="success"] { color: #167658; }
.studio-form-status[data-state="error"] { color: #a12b2b; }
.studio-contact-form .studio-button { grid-column: 1 / -1; justify-self: start; border: 0; cursor: pointer; }

@media (max-width: 900px) {
  .studio-hero { min-height: auto; grid-template-columns: 1fr; }
  .studio-system { min-height: 390px; }
}
@media (max-width: 680px) {
  :root { --studio-gutter: 1.25rem; }
  .studio-hero { padding: 4.5rem 0; gap: 3.5rem; }
  .studio-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .studio-system { min-height: 340px; }
  .system-core { width: 108px; height: 108px; }
  .system-node { min-width: 100px; padding: 0.62rem 0.7rem; font-size: 0.62rem; }
  .capability { grid-template-columns: 42px minmax(0, 1fr); gap: 1rem; }
  .capability-copy { grid-column: 2; }
  .studio-contact-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .studio-shoe-control.is-open { max-height: 44rem; padding: 1rem 1.1rem 1.15rem; }
  .studio-shoe-panel { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; margin: 3.45rem 0 0; }
}
@media (max-width: 600px) {
  .studio-topbar-parent-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .studio-shoe-control,
  .studio-shoe-toggle,
  .studio-shoe-panel { transition: none; }
}
