/* Home sections reserve the actual floating header's space, then fill the viewport. */
html.home-pages {
  --home-header-space: 112px;
  --home-panel-bottom: clamp(28px, 5dvh, 56px);
  scroll-padding-top: 0;
  scroll-snap-type: y mandatory;
}
.studio-home .home-panel,
.studio-home > .site-footer {
  min-height: 100svh;
  min-height: 100dvh;
  padding-block: var(--home-header-space) var(--home-panel-bottom);
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.studio-home .home-panel > .site-wrap { flex-shrink: 0; }
.studio-home :is(a, button, summary, [tabindex], h1, h2) {
  scroll-margin-top: var(--home-header-space);
}
/* Artwork fills the first screen; copy still reserves the floating header's space. */
.studio-home .classroom-home-hero {
  padding-bottom: 80px;
  background: #fcfbff;
}
.studio-home .classroom-home-art,
.studio-home .classroom-home-hero::before {
  top: 0;
  height: 100%;
}
.studio-home .classroom-home-hero .hero-copy { padding-block: 0; }
.studio-home .classroom-home-hero::before {
  background: linear-gradient(270deg, #fff 0%, #fffffff5 43%, #ffffffd9 51%, transparent 65%);
}
/* Only explanatory prose is justified. Titles, labels and the final line stay natural. */
.studio-home .home-panel p:not(.studio-kicker),
.studio-home .footer-intro p {
  text-align: justify;
  text-align-last: start;
  text-justify: inter-word;
  overflow-wrap: break-word;
}
.studio-home .home-panel :is(h1, h2, h3) { text-wrap: balance; }
.studio-home .classroom-home-hero .lead { max-width: 100%; color: #535167; }
.studio-home .page-section:not(#product) { justify-content: flex-start; }
.studio-home .section-heading { margin-bottom: 28px; }
.studio-home .section-heading p { max-width: 62ch; }
.studio-home .studio-heading-row { align-items: center; gap: 24px; margin-bottom: 28px; }
.studio-home .studio-heading-row .section-heading { margin-bottom: 0; min-width: 0; }
.studio-home .studio-heading-row > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  margin: 0;
  border: 1px solid #e2d9f5;
  border-radius: 12px;
  background: #fff;
}
.studio-home .studio-home-highlights {
  padding: 20px 18px;
  margin-bottom: 32px;
  border: 1px solid #e9e2f3;
  border-radius: 20px;
}
.studio-home .studio-home-highlights .studio-strip { margin: 0; padding: 0; }
.studio-home .studio-strip small { display: block; margin-top: 4px; color: #6b627a; }
.studio-home .studio-solutions .audience-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
}
.studio-home .studio-solutions svg { flex-shrink: 0; align-self: flex-start; margin: 0 0 16px; }
.studio-home .studio-solutions h3 { margin: 0 0 12px; }
.studio-home .studio-solutions p { margin: 0 0 18px; font-size: 14px; line-height: 2; }
.studio-home .studio-solutions a {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin-top: auto;
  font-size: 13px;
}
.studio-home .studio-capabilities > a { line-height: 1.6; padding-block: 14px; }
.studio-home .studio-capabilities small { line-height: 1.9; margin-top: 5px; color: #696278; }
.studio-home .studio-capabilities > a > div { min-width: 0; }
.studio-home #workflow > .site-wrap {
  min-height: calc(100dvh - var(--home-header-space) - var(--home-panel-bottom));
  display: flex;
  flex-direction: column;
}
.studio-home .studio-workflow { margin-block: auto; }
.studio-home .studio-step { padding: 26px; }
.studio-home .studio-step > span {
  width: fit-content;
  padding: 6px 12px;
  margin-bottom: 24px;
  border: 1px solid #e7def5;
  border-radius: 12px;
  background: #f8f5fd;
  color: #7955ac;
  font-size: 25px;
  line-height: 1.5;
}
.studio-home .studio-step h3 { line-height: 1.8; }
.studio-home .studio-step p { font-size: 14px; line-height: 2; color: #696278; }
.studio-home #faq > .site-wrap { width: min(960px, calc(100% - 64px)); }
.studio-home #faq .section-heading { max-width: none; }
.studio-home #faq .faq-list { display: grid; gap: 14px; max-width: none; }
.studio-home #faq details { margin: 0; }
.studio-home #faq summary { line-height: 1.9; }
.studio-home #faq details p { line-height: 2.1; color: #59536b; }
.studio-home .studio-guide { padding: 0; }
.studio-home .studio-guide .blog-cover {
  aspect-ratio: auto;
  height: clamp(160px, 25dvh, 240px);
  flex-shrink: 0;
}
.studio-home .studio-guide .blog-cover img { object-fit: contain; transform: none; }
.studio-home .studio-guide .blog-card-copy { display: flex; flex-direction: column; padding: 22px; }
.studio-home .studio-guide .eyebrow { align-self: flex-start; }
.studio-home .studio-guide h3 { font-size: 19px; line-height: 1.7; margin: 14px 0; min-height: 3.4em; }
.studio-home .studio-guide p { font-size: 14px; line-height: 2; margin: 0 0 18px; }
.studio-home .studio-guide .card-link { margin-top: auto; min-height: 44px; align-self: flex-start; }
.studio-home > .site-footer { gap: 32px; }
.studio-home .footer-grid { padding-bottom: 0; align-items: start; }
.studio-home .footer-intro p { max-width: none; font-size: 14px; line-height: 2.1; color: #d5cede; }
.studio-home .footer-contact { justify-items: start; gap: 8px; color: #d0c6df; }
.studio-home .footer-contact a { max-width: 100%; overflow-wrap: anywhere; unicode-bidi: isolate; }
.studio-home .site-footer nav { gap: 9px; }
.studio-home .site-footer nav h2 { font-size: 15px; margin-bottom: 8px; }
.studio-home .site-footer nav a { font-size: 13px; min-height: 30px; margin-bottom: 0; color: #d5cede; }
.studio-home .site-footer .footer-subtitle { margin-top: 16px; }
.studio-home > .site-footer .footer-bottom { margin-top: 0; }
/* A full-screen invitation, with the action directly beneath the explanation. */
.studio-home #home-demo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 75%, #e8dfff 0%, transparent 55%),
    radial-gradient(ellipse at 90% 20%, #edf8f7 0%, transparent 50%),
    #faf8ff;
}
.studio-home #home-demo::before,
.studio-home #home-demo::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(360px, 48vw, 760px);
  aspect-ratio: 1;
  border: 1px solid #9d84db20;
  border-radius: 50%;
  pointer-events: none;
}
.studio-home #home-demo::before { left: -25%; bottom: -35%; }
.studio-home #home-demo::after { right: -25%; top: -35%; }
.studio-home .home-demo-content {
  min-height: calc(100dvh - var(--home-header-space) - var(--home-panel-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 960px;
  margin-inline: auto;
  padding-block: 32px;
  text-align: center;
}
.studio-home .home-demo-eyebrow {
  color: #57359b;
  background: #ffffffd9;
  border: 1px solid #ddd2f3;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
}
.studio-home #home-demo-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.6;
  font-weight: 800;
  color: #29213d;
}
.studio-home .home-demo-content p {
  width: min(640px, 100%);
  margin: 0;
  color: #5e566e;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 2.1;
}
.studio-home .home-demo-button {
  min-height: 58px;
  min-width: 200px;
  padding: 16px 32px;
  font-size: 16px;
  margin-top: 4px;
}
@media (min-width: 981px) and (max-height: 800px) {
  .studio-home .section-heading h2 { font-size: 30px; line-height: 1.5; }
  .studio-home .section-heading, .studio-home .studio-heading-row { margin-bottom: 24px; }
  .studio-home .studio-heading-row .section-heading { margin-bottom: 0; }
  .studio-home .studio-home-highlights { margin-bottom: 24px; padding-block: 16px; }
  .studio-home .studio-solutions .audience-card { padding: 22px; }
  .studio-home .studio-solutions p, .studio-home .studio-step p { font-size: 13px; }
  .studio-home .studio-capabilities > a { padding-block: 7px; }
  .studio-home .studio-capabilities small { line-height: 1.8; margin-top: 3px; }
  .studio-home .studio-product-copy .section-heading h2 { font-size: 28px; line-height: 1.45; }
  .studio-home .studio-solutions svg { width: 30px; height: 30px; margin-bottom: 8px; }
  .studio-home .studio-solutions h3 { margin: 0 0 10px; }
  .studio-home .studio-guide .blog-card-copy { padding: 18px; }
  .studio-home .studio-guide .blog-cover { height: clamp(140px, 22dvh, 180px); }
  .studio-home .studio-guide h3 { font-size: 17px; line-height: 1.6; }
  .studio-home .studio-guide p { margin-bottom: 10px; font-size: 13px; }
  .studio-home .studio-guide .card-link { margin-top: auto; }
  .studio-home .classroom-home-hero h1 { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.5; }
  .studio-home .classroom-home-hero .studio-kicker { margin-bottom: 16px; }
}
@media (max-width: 980px) {
  html.home-pages { --home-header-space: 108px; }
  .studio-home .classroom-home-art { top: auto; height: calc(clamp(230px, 62vw, 470px) + var(--home-header-space)); margin-top: calc(-1 * var(--home-header-space)); }
  .studio-home .classroom-home-hero { padding-bottom: var(--home-panel-bottom); justify-content: flex-start; }
  .studio-home .classroom-home-hero .hero-layout { margin-top: 14px; }
  .studio-home .classroom-scroll-cue { flex-shrink: 0; }
  .studio-home .studio-solutions p, .studio-home .studio-step p { font-size: 14px; }
  .studio-home #faq > .site-wrap { width: calc(100% - 48px); }
}
@media (min-width: 981px) and (max-width: 1200px) {
  .studio-home .studio-guide h3 { min-height: 5.1em; }
}
@media (max-width: 760px) {
  .studio-home .home-demo-content { gap: 24px; padding-block: 24px; }
  .studio-home .home-demo-button { width: min(320px, 100%); }
  .studio-home #faq > .site-wrap { width: calc(100% - 36px); }
  .studio-home .studio-heading-row > a { margin-top: 12px; }
  .studio-home .studio-guide h3 { min-height: 0; }
  .studio-home .studio-guide .blog-cover { height: clamp(180px, 56vw, 280px); }
  .studio-home .studio-solutions a { font-size: 12px; }
}
@media (max-width: 480px) {
  html.home-pages { --home-header-space: 91px; }
  .studio-home .classroom-home-art { height: calc(clamp(210px, 66vw, 300px) + var(--home-header-space)); }
  .studio-home .studio-home-highlights { padding: 20px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html.home-pages { scroll-behavior: auto; }
}
/* Solutions: balance the section label and action in the same top row. */
.studio-home #solutions .studio-heading-row {
  justify-content: flex-start;
  align-items: flex-end;
  gap: 32px;
}
.studio-home #solutions .studio-heading-row > a { flex-shrink: 0; margin-bottom: 4px; gap: 10px; }
.studio-home #solutions .section-heading { max-width: none; width: 100%; }
.studio-home #solutions .solutions-heading-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.studio-home #solutions .solutions-heading-top > a { flex-shrink: 0; min-height: 44px; padding: 9px 16px; font-size: 13px; font-weight: 400; color: var(--primary); gap: 10px; }
.studio-home #solutions .studio-strip > div { gap: 12px; padding-inline: 16px; }
.studio-home #solutions .studio-strip b { font-size: 14px; }
.studio-home #solutions .studio-strip small { font-size: 12px; line-height: 1.8; }
.studio-home #solutions .studio-solutions { gap: 20px; }
.studio-home #solutions .audience-card > svg {
  box-sizing: content-box;
  width: 28px;
  height: 28px;
  padding: 10px;
  border: 1px solid #dcd1ee;
  border-radius: 14px;
  background: #ffffffb3;
  margin-bottom: 16px;
}
.studio-home #solutions .audience-card h3 { font-size: 21px; line-height: 1.6; }
.studio-home #solutions .audience-card p { font-size: 14px; line-height: 2; color: #5f586e; }
.studio-home #solutions .audience-card > a { font-size: 13px; color: #57349c; }
@media (min-width: 981px) and (max-height: 800px) {
  .studio-home #solutions .studio-home-highlights { padding-block: 14px; margin-bottom: 20px; }
  .studio-home #solutions .studio-heading-row { margin-bottom: 22px; }
  .studio-home #solutions .audience-card { padding: 20px; }
  .studio-home #solutions .audience-card > svg { padding: 8px; margin-bottom: 12px; }
  .studio-home #solutions .audience-card p { margin-bottom: 12px; }
}
@media (max-width: 980px) {
  .studio-home #solutions .studio-strip > div { padding-inline: 8px; }
  .studio-home #solutions .studio-strip b { font-size: 13px; }
  .studio-home #solutions .studio-strip small { font-size: 11px; }
}
@media (max-width: 760px) {
  .studio-home #solutions .solutions-heading-top { gap: 12px; }
  .studio-home #solutions .solutions-heading-top > .eyebrow { font-size: 11px; }
  .studio-home #solutions .solutions-heading-top > a { font-size: 11px; padding-inline: 10px; }
  .studio-home #solutions .studio-heading-row > a { margin-top: 16px; margin-bottom: 0; }
  .studio-home #solutions .studio-strip > div { align-items: flex-start; gap: 8px; }
  .studio-home #solutions .studio-strip svg { width: 22px; height: 22px; }
  .studio-home #solutions .studio-strip b { font-size: 12px; }
  .studio-home #solutions .studio-strip small { font-size: 11px; }
}
/* Home-only glass surfaces share a tint, translucent edge and static backdrop blur. */
.studio-home {
  --home-glass-fill: #ffffff70;
  --home-glass-edge: #ffffffb8;
  --home-glass-shadow: 0 14px 36px #4c308912, inset 0 1px 0 #ffffffd9, inset 0 -1px 0 #ffffff40;
}
.studio-home .page-section {
  background:
    radial-gradient(ellipse at 12% 65%, #e7dffa90, transparent 52%),
    radial-gradient(ellipse at 90% 15%, #def1ed80, transparent 48%),
    #f8f6fd;
}
.studio-home :is(.site-header, .studio-home-highlights, .studio-step, .studio-guide,
  .studio-visual, .visual-chip, .studio-capabilities > a, .home-demo-eyebrow,
  .studio-audiences > a, .classroom-scroll-cue, .solutions-heading-top > .eyebrow,
  .button-secondary, .back-top, .eyebrow, .nav-toggle, .studio-heading-row > a),
.studio-home #solutions .studio-solutions .audience-card,
.studio-home #faq .faq-list details {
  background: var(--home-glass-fill);
  border: 1px solid var(--home-glass-edge);
  box-shadow: var(--home-glass-shadow);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}
.studio-home .site-header { background: #ffffffb3; }
.studio-home .studio-guide .blog-cover { background: #ffffff20; }
.studio-home .studio-guide .blog-cover img { mix-blend-mode: multiply; }
.studio-home .studio-visual { border-radius: 28px; }
.studio-home .studio-capabilities { gap: 8px; }
.studio-home .studio-capabilities > a { border-radius: 14px; padding-inline: 16px; }
.studio-home #solutions .audience-card > svg,
.studio-home .studio-step > span {
  background: #ffffff60;
  border-color: #ffffffb8;
  box-shadow: inset 0 1px 0 #ffffffd9;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.studio-home .button-primary {
  background: linear-gradient(120deg, #7346edf0, #5734cfef);
  border-color: #ffffff60;
  box-shadow: 0 10px 28px #6740e726, inset 0 1px 0 #ffffff60;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.studio-home .footer-grid > :is(div, nav) {
  background: #ffffff09;
  border: 1px solid #ffffff24;
  border-radius: 20px;
  padding: 18px;
  box-shadow: inset 0 1px 0 #ffffff18;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.studio-home #solutions .section-heading .solutions-lead {
  max-width: 900px;
  margin: 18px auto 0;
  text-align: center;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.9;
  color: #514863;
}
.studio-home #solutions .studio-heading-row { margin-bottom: 22px; }
@media (min-width: 981px) and (max-height: 800px) {
  .studio-home .studio-capabilities { gap: 6px; }
  .studio-home .studio-capabilities > a { padding-block: 5px; }
}
@media (max-width: 760px) {
  .studio-home #solutions .section-heading .solutions-lead { margin-top: 16px; font-size: 18px; }
}
/* Vivid glass: distinct accents and stronger, static color pools. */
.studio-home .page-section {
  background:
    radial-gradient(ellipse at 5% 70%, #a887f35c, transparent 52%),
    radial-gradient(ellipse at 95% 10%, #49cbd54d, transparent 48%),
    radial-gradient(ellipse at 50% 100%, #ffbd762b, transparent 55%),
    #f5f5ff;
}
.studio-home #product { background: radial-gradient(ellipse at 12% 40%, #65b9ff4d, transparent 55%), radial-gradient(ellipse at 95% 85%, #bc93f654, transparent 55%), #f3f6ff; }
.studio-home #workflow { background: radial-gradient(ellipse at 8% 80%, #65d7c14d, transparent 55%), radial-gradient(ellipse at 90% 10%, #ffbc7645, transparent 50%), #f5faf9; }
.studio-home #faq { background: radial-gradient(ellipse at 15% 20%, #ac81ef59, transparent 55%), radial-gradient(ellipse at 90% 90%, #73b9f54a, transparent 55%), #f6f3ff; }
.studio-home #guides { background: radial-gradient(ellipse at 5% 75%, #ffba7952, transparent 50%), radial-gradient(ellipse at 90% 10%, #809bfd52, transparent 55%), #f8f5ff; }
.studio-home #home-demo { background: radial-gradient(ellipse at 12% 80%, #a981f77a, transparent 60%), radial-gradient(ellipse at 95% 15%, #51cbd95e, transparent 55%), #f3f0ff; }
.studio-home .studio-solutions > :nth-child(1), .studio-home .studio-workflow > :nth-child(1), .studio-home .studio-guides > :nth-child(1) { --card-tone: #2868c8; --card-rgb: 40 104 200; }
.studio-home .studio-solutions > :nth-child(2), .studio-home .studio-workflow > :nth-child(2), .studio-home .studio-guides > :nth-child(2) { --card-tone: #7344ce; --card-rgb: 115 68 206; }
.studio-home .studio-solutions > :nth-child(3), .studio-home .studio-workflow > :nth-child(3), .studio-home .studio-guides > :nth-child(3) { --card-tone: #087e71; --card-rgb: 8 126 113; }
.studio-home .studio-solutions > :nth-child(4), .studio-home .studio-workflow > :nth-child(4) { --card-tone: #a65d16; --card-rgb: 166 93 22; }
.studio-home #solutions .studio-solutions .audience-card,
.studio-home .studio-workflow .studio-step,
.studio-home .studio-guides .studio-guide {
  background: linear-gradient(145deg, rgb(var(--card-rgb) / .19), #ffffff73 80%);
  border-color: rgb(var(--card-rgb) / .26);
  box-shadow: 0 16px 38px rgb(var(--card-rgb) / .13), inset 0 1px 0 #ffffffed;
}
.studio-home #solutions .audience-card > svg,
.studio-home .studio-workflow .studio-step > span {
  background: rgb(var(--card-rgb) / .13);
  border-color: rgb(var(--card-rgb) / .30);
  color: var(--card-tone);
  stroke: var(--card-tone);
}
.studio-home #solutions .audience-card > a,
.studio-home .studio-guide .card-link { color: var(--card-tone); }
.studio-home .studio-guide .eyebrow { color: var(--card-tone); background: rgb(var(--card-rgb) / .10); border-color: rgb(var(--card-rgb) / .25); }
.studio-home #solutions .audience-card:focus-within,
.studio-home .studio-guide:focus-within { border-color: var(--card-tone); }
.studio-home .studio-strip > div:nth-child(1) svg { color: #2868c8; }
.studio-home .studio-strip > div:nth-child(2) svg { color: #7344ce; }
.studio-home .studio-strip > div:nth-child(3) svg { color: #087e71; }
.studio-home .studio-strip > div:nth-child(4) svg { color: #a65d16; }
.studio-home .studio-capabilities > a:nth-child(odd) { background: linear-gradient(110deg, #7743db20, #ffffff87); border-color: #865ee134; }
.studio-home .studio-capabilities > a:nth-child(even) { background: linear-gradient(110deg, #008f9630, #ffffff87); border-color: #008f9634; }
.studio-home .button-primary { background: linear-gradient(125deg, #7535e9f5, #345be1f5); box-shadow: 0 10px 26px #6239d944, inset 0 1px 0 #ffffff73; }
.studio-home .classroom-home-hero h1 span { background: linear-gradient(105deg, #7934ea, #3266e7 65%, #078b91); background-clip: text; -webkit-background-clip: text; color: transparent; }
.studio-home > .site-footer { background: linear-gradient(135deg, #17172e, #28234c 58%, #133443); }
.studio-home .site-footer nav { border-top-color: #76cce963; }
/* Phones and touch devices use ordinary document flow, never section snapping. */
@media (max-width: 980px), (pointer: coarse) {
  html.home-pages { --home-panel-bottom: 32px; scroll-snap-type: none; scroll-behavior: auto; scroll-padding-top: var(--home-header-space); }
  .studio-home .home-panel,
  .studio-home > .site-footer {
    min-height: 0;
    padding-block: 44px;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    justify-content: flex-start;
  }
  .studio-home #home { min-height: 100svh; padding-top: var(--home-header-space); padding-bottom: 32px; }
  .studio-home #workflow > .site-wrap,
  .studio-home .home-demo-content { min-height: 0; }
  .studio-home .studio-workflow { margin-block: 0; }
  .studio-home #home-demo { padding-block: 48px; }
  .studio-home :is(.studio-step, .studio-guide),
  .studio-home #solutions .studio-solutions .audience-card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

/* Product keeps the same proportions as the available desktop viewport changes. */
.studio-home #product .studio-product-layout { min-width: 0; }
.studio-home #product .studio-product-copy { min-width: 0; }
.studio-home #product .section-heading { margin: 0 0 clamp(18px, 2.5dvh, 28px); }
.studio-home #product #product-title {
  margin: 0;
  font-size: clamp(16px, 1.65vw, 34px);
  line-height: 1.6;
  white-space: nowrap;
  text-wrap: nowrap;
}
@media (min-width: 981px) {
  .studio-home #product .studio-product-layout {
    width: min(86vw, calc((100dvh - var(--home-header-space) - var(--home-panel-bottom)) * 2.45));
    max-width: none;
    gap: clamp(24px, 3.4vw, 70px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .studio-home #product .studio-capabilities { gap: clamp(5px, .8dvh, 10px); }
  .studio-home #product .studio-capabilities > a { padding: clamp(7px, 1.5dvh, 18px) clamp(12px, 1.2vw, 24px); }
  .studio-home #product .studio-capabilities strong { font-size: clamp(13px, 1vw, 19px); }
  .studio-home #product .studio-capabilities small { font-size: clamp(11px, .8vw, 15px); line-height: 1.8; margin-top: clamp(3px, .4dvh, 5px); }
}
@media (max-width: 760px) {
  .studio-home #product #product-title { font-size: clamp(14px, 4.05vw, 28px); letter-spacing: -.5px; }
}

/* Centered title, followed by equal-height artwork and capabilities. */
.studio-home #product .product-section-heading { max-width: none; text-align: center; margin: 0 0 clamp(28px, 4dvh, 48px); }
.studio-home #product .studio-product-layout { width: 100%; align-items: stretch; }
.studio-home #product .studio-product-copy { display: flex; }
.studio-home #product .studio-capabilities { width: 100%; grid-template-rows: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.7dvh, 20px); }
@media (min-width: 981px) {
  .studio-home #product .product-section-content {
    width: min(86vw, calc((100dvh - var(--home-header-space) - var(--home-panel-bottom) - 80px) * 2.45));
    max-width: none;
  }
  .studio-home #product .studio-capabilities > a { padding-block: 6px; }
}
@media (max-width: 760px) {
  .studio-home #product .product-section-heading { margin-bottom: 28px; }
  .studio-home #product .studio-capabilities { grid-template-rows: none; }
}

/* Give the workflow title a centered, balanced position below the header. */
.studio-home #workflow .section-heading {
  max-width: none;
  width: 100%;
  text-align: center;
  padding-top: clamp(24px, 5dvh, 60px);
}
.studio-home #workflow #workflow-title { margin-top: 0; }
@media (max-width: 980px), (pointer: coarse) {
  .studio-home #workflow .section-heading { padding-top: 12px; }
}

/* A connected RTL learning journey instead of isolated cards. */
.studio-home #workflow > .site-wrap { justify-content: center; gap: clamp(24px, 4dvh, 48px); }
.studio-home #workflow .section-heading { padding-top: 0; margin: 0; }
.studio-home #workflow .studio-workflow { margin: 0; position: relative; }
.studio-home .workflow-path {
  position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px; padding: 28px 0; isolation: isolate;
}
.studio-home .workflow-path::before {
  content: ''; position: absolute; top: 50%; right: 12.5%; left: 12.5%; height: 3px;
  background: linear-gradient(to left,#2868c8,#7344ce,#087e71,#a65d16); z-index: -1;
}
.studio-home .workflow-path > span {
  justify-self: center; padding: 12px 18px; border-radius: 999px;
  background: #ffffffc9; border: 1px solid #ffffff; box-shadow: 0 8px 26px #30336d12;
  color: #2868c8; font-size: 13px; font-weight: 700;
}
.studio-home .workflow-path > span:nth-child(2) { color: #7344ce; }
.studio-home .workflow-path > span:nth-child(3) { color: #087e71; }
.studio-home .workflow-path > span:nth-child(4) { color: #a65d16; }
.studio-home .workflow-pulse {
  position: absolute; top: calc(50% - 5px); right: 12.5%; width: 10px; height: 10px;
  border-radius: 50%; background: #7344ce; box-shadow: 0 0 0 6px #7344ce20, 0 0 22px #7344ce88;
  animation: workflow-travel 8s ease-in-out infinite; pointer-events: none;
}
@keyframes workflow-travel { 0%,10% {right:12.5%;opacity:0} 15% {opacity:1} 85% {right:87.5%;opacity:1} 100% {right:87.5%;opacity:0} }
.studio-home #workflow .studio-step { position: relative; overflow: hidden; min-height: clamp(230px,29dvh,310px); }
.studio-home #workflow .studio-step::after {
  content: ''; position: absolute; width: 130px; height: 130px; left: -55px; top: -55px;
  border: 1px solid rgb(var(--card-rgb) / .2); border-radius: 50%;
  box-shadow: 0 0 0 20px rgb(var(--card-rgb) / .04),0 0 0 40px rgb(var(--card-rgb) / .03); pointer-events:none;
}
@media (max-width: 1100px) {
  .studio-home .workflow-path { gap: 8px; }
  .studio-home .workflow-path > span { padding: 10px; font-size: 11px; }
}
@media (max-width: 980px), (pointer: coarse) {
  .studio-home #workflow > .site-wrap { gap: 24px; }
  .studio-home .workflow-pulse { animation: none; display: none; }
}
@media (max-width: 480px) {
  .studio-home .workflow-path { display: none; }
  .studio-home #workflow .studio-workflow { gap: 28px; padding-inline-start: 20px; }
  .studio-home #workflow .studio-workflow::before {
    content: ''; position: absolute; top: 40px; bottom: 40px; right: 4px; width: 3px;
    background: linear-gradient(#2868c8,#7344ce,#087e71,#a65d16); border-radius: 3px;
  }
  .studio-home #workflow .studio-step { min-height: 0; overflow: visible; }
  .studio-home #workflow .studio-step::after { display:none; }
  .studio-home #workflow .studio-step::before {
    content: ''; position:absolute; right:-23px; top:35px; width:12px; height:12px;
    border-radius:50%; background:var(--card-tone); box-shadow:0 0 0 4px #ffffffab;
  }
}
@media (prefers-reduced-motion: reduce) { .studio-home .workflow-pulse { animation:none; display:none; } }
.motion-paused .workflow-pulse { animation:none; display:none; }

/* Feature constellation around the demo invitation. */
.studio-home #home-demo > .site-wrap { position: relative; }
.studio-home #home-demo-title { max-width: 660px; }
.studio-home .home-demo-content p { max-width: 580px; }
.studio-home .demo-feature-cloud > a {
  --feature-color: #2868c8; display: grid; gap: 5px; padding: 18px;
  border: 1px solid #ffffffc9; border-radius: 22px;
  background: linear-gradient(135deg,#ffffffba,#d5e7ff70); backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px #29265d12, inset 0 1px #fff; color: #29213d;
  text-align: right; transition: box-shadow .2s;
}
.studio-home .demo-feature-cloud > a:nth-child(even) { --feature-color: #7344ce; background: linear-gradient(135deg,#ffffffba,#ded0ff80); }
.studio-home .demo-feature-cloud > a:nth-child(3n) { --feature-color: #087e71; background: linear-gradient(135deg,#ffffffba,#bcece180); }
.studio-home .demo-feature-cloud strong { font-size: 14px; color: var(--feature-color); }
.studio-home .demo-feature-cloud small { font-size: 11px; color: #5e566e; }
.studio-home .demo-feature-cloud a > span { font-size: 24px; color: var(--feature-color); line-height: 1.2; }
.studio-home .demo-feature-cloud a:hover, .studio-home .demo-feature-cloud a:focus-visible { box-shadow: 0 18px 38px #4439a12b; }
@media (min-width: 1201px) {
  .studio-home .demo-feature-cloud > a { position: absolute; width: 190px; animation: demo-float 6s ease-in-out infinite; }
  .studio-home .demo-feature-cloud > a:nth-child(odd) { right: 0; }
  .studio-home .demo-feature-cloud > a:nth-child(even) { left: 0; }
  .studio-home .demo-feature-cloud > a:nth-child(1), .studio-home .demo-feature-cloud > a:nth-child(2) { top: 12%; }
  .studio-home .demo-feature-cloud > a:nth-child(3), .studio-home .demo-feature-cloud > a:nth-child(4) { top: 43%; animation-delay: -2s; }
  .studio-home .demo-feature-cloud > a:nth-child(5), .studio-home .demo-feature-cloud > a:nth-child(6) { top: 74%; animation-delay: -4s; }
  .studio-home .home-demo-content { padding-inline: 220px; }
}
@keyframes demo-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@media (max-width: 1200px) {
  .studio-home .demo-feature-cloud { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 28px; }
  .studio-home .home-demo-content { min-height: 0; }
}
@media (max-width: 600px) {
  .studio-home .demo-feature-cloud { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .studio-home .demo-feature-cloud > a { padding: 14px; }
  .studio-home .demo-feature-cloud strong { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) { .studio-home .demo-feature-cloud > a { animation: none; } }
.motion-paused .demo-feature-cloud > a { animation: none; }

/* Stretch footer cards to the tallest card in each grid row. */
.studio-home .footer-grid { align-items: stretch; }
.studio-home .footer-grid > :is(div, nav) { align-self: stretch; }

/* Readable dark glass when the floating navigation reaches the footer. */
.studio-home .site-header.on-dark-section {
  background: linear-gradient(120deg,#151c38db,#302457d9);
  border-color: #bec5ff40;
  box-shadow: 0 16px 45px #080d2b50,inset 0 1px #ffffff1f;
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}
.studio-home .site-header.on-dark-section .site-brand b,
.studio-home .site-header.on-dark-section .site-links a { color: #f5f3ff; }
.studio-home .site-header.on-dark-section .site-brand small { color: #c9c5e7; }
.studio-home .site-header.on-dark-section .site-links a:hover,
.studio-home .site-header.on-dark-section .site-links a:focus-visible { color: #bceaff; background: #ffffff12; }
.studio-home .site-header.on-dark-section .button-secondary,
.studio-home .site-header.on-dark-section .nav-toggle { color: #f5f3ff; background: #ffffff12; border-color: #ffffff3b; }
.studio-home .site-header.on-dark-section .brand-mark { background: #ffffff; border-radius: 14px; }
.studio-home .site-header.on-dark-section .site-links.open { background: #20233eee; border-color: #ffffff30; }
