/* ==========================================================================
   GODZLY — STUDIO SECTIONS
   --------------------------------------------------------------------------
   Chapters 5 → 12 of the public page: the studio panel, numbers band, vouches,
   perks and purchase flow, FAQ, contact, footer and the existing dialogs.

   Loaded after studio.css. Like the rest of the studio layer this only ships
   appearance: every id, data attribute, form field and handler is untouched.
   ========================================================================== */

/* ==========================================================================
   1. THE STUDIO
   ========================================================================== */
body.studio .why-me-section {
    padding-top: calc(var(--st-section) * 0.55);
    padding-bottom: calc(var(--st-section) * 0.55);
}

body.studio .large-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(1.75rem, 4.5vw, 4rem);
    border-radius: 32px;
    background:
        radial-gradient(620px 420px at 92% 4%, rgba(15, 161, 116, 0.28), transparent 66%),
        linear-gradient(155deg, #0A3527 0%, #041A13 76%);
    color: #EEF7F1;
    box-shadow: 0 60px 110px -78px rgba(4, 26, 19, 0.9);
}

body.studio .large-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(231, 245, 237, 0.16) 0.7px, transparent 0.7px);
    background-size: 22px 22px;
    opacity: 0.28;
    mask-image: linear-gradient(135deg, transparent 25%, #000 100%);
    -webkit-mask-image: linear-gradient(135deg, transparent 25%, #000 100%);
    pointer-events: none;
}

body.studio .why-content {
    position: relative;
    z-index: 1;
    display: block;
    max-width: none;
    padding: 0;
}

body.studio .why-content .section-kicker {
    color: rgba(231, 245, 237, 0.55);
}

body.studio .why-content .kicker-index {
    background: rgba(111, 227, 180, 0.12);
    color: var(--st-emerald-light);
}

body.studio .why-content .kicker-rule {
    background: rgba(231, 245, 237, 0.2);
}

body.studio .why-content .section-title {
    max-width: 18ch;
    color: #F6FCF8;
}

body.studio .why-content .section-title .neon-text-cyan {
    color: var(--st-emerald-light);
}

body.studio .why-content .section-subtitle {
    max-width: 52ch;
    color: rgba(231, 245, 237, 0.62);
}

body.studio .why-content .features-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    border-top: 1px solid rgba(231, 245, 237, 0.14);
    counter-reset: promise;
}

body.studio .feature-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.5rem 1.75rem 1.5rem 0;
    border-bottom: 1px solid rgba(231, 245, 237, 0.11);
}

body.studio .feature-item:nth-child(odd) {
    padding-right: clamp(1.5rem, 4vw, 3.5rem);
    border-right: 1px solid rgba(231, 245, 237, 0.11);
}

body.studio .feature-item:nth-child(even) {
    padding-left: clamp(1.5rem, 4vw, 3.5rem);
}

body.studio .feature-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(111, 227, 180, 0.22);
    border-radius: 12px;
    background: rgba(111, 227, 180, 0.08);
    color: var(--st-emerald-light);
    font-size: 1.15rem;
}

body.studio .feature-text h4 {
    margin: 0 0 0.3rem;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F2FAF4;
}

body.studio .feature-text p {
    max-width: 38ch;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.62;
    color: rgba(231, 245, 237, 0.58);
}

/* ── Process ────────────────────────────────────────────────────────────── */
body.studio .studio-process {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(231, 245, 237, 0.14);
}

body.studio .process-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--st-emerald-light);
}

body.studio .process-head h3 {
    max-width: 12ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.4vw, 2.7rem);
    font-weight: 780;
    letter-spacing: -0.045em;
    line-height: 1.02;
    color: #F6FCF8;
}

body.studio .process-head p {
    max-width: 34ch;
    margin: 1rem 0 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(231, 245, 237, 0.56);
}

body.studio .process-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

body.studio .process-list li {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(231, 245, 237, 0.11);
}

body.studio .process-list li:first-child {
    padding-top: 0;
}

body.studio .process-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

body.studio .process-index {
    padding-top: 0.15rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--st-emerald-light);
}

body.studio .process-list h4 {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F2FAF4;
}

body.studio .process-list p {
    max-width: 52ch;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(231, 245, 237, 0.56);
}

/* ==========================================================================
   2. NUMBERS
   ========================================================================== */
body.studio .numbers-band {
    position: relative;
    padding: clamp(3.25rem, 6vw, 5rem) 0;
    background:
        radial-gradient(620px 300px at 82% 10%, rgba(111, 227, 180, 0.22), transparent 70%),
        linear-gradient(115deg, #0A7C58 0%, #075B42 58%, #064A36 100%);
    color: #F3FBF6;
    overflow: hidden;
}

body.studio .numbers-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 100% 84px;
    pointer-events: none;
}

body.studio .numbers-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: end;
    gap: clamp(2rem, 5vw, 5rem);
}

body.studio .numbers-intro .section-kicker {
    color: rgba(243, 251, 246, 0.62);
}

body.studio .numbers-intro .kicker-index {
    background: rgba(255, 255, 255, 0.12);
    color: #D8FBEA;
}

body.studio .numbers-intro .kicker-rule {
    background: rgba(243, 251, 246, 0.28);
}

body.studio .numbers-intro h2 {
    max-width: 18ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: #F5FCF7;
}

body.studio .numbers-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
}

body.studio .numbers-list > div {
    padding: 0 1.25rem;
    border-left: 1px solid rgba(243, 251, 246, 0.2);
}

body.studio .numbers-list > div:first-child {
    padding-left: 0;
    border-left: 0;
}

body.studio .numbers-list dt {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(243, 251, 246, 0.62);
}

body.studio .numbers-list dd {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
    margin: 0.4rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.95;
    color: #FFFFFF;
}

body.studio .numbers-list .num-suffix {
    font-size: 0.5em;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: rgba(243, 251, 246, 0.62);
}

/* ==========================================================================
   3. VOUCHES
   ========================================================================== */
body.studio .vouches-section {
    padding-top: var(--st-section);
    padding-bottom: calc(var(--st-section) * 0.72);
}

body.studio .vouch-dashboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0 0 1.75rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--st-line);
    border-bottom: 1px solid var(--st-line-soft);
}

body.studio .vouch-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

body.studio .vouch-stats .stat-box {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

body.studio .vouch-stats .stat-value {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.045em;
    color: var(--st-ink);
}

body.studio .vouch-stats .stat-stars {
    display: inline-flex;
    gap: 0.05rem;
    color: #C9912E;
    font-size: 0.68rem;
}

body.studio .vouch-stats .stat-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--st-muted);
}

body.studio .vouch-action {
    margin-left: auto;
}

body.studio .vouch-action .btn {
    min-height: 2.7rem;
    padding: 0.7rem 1.05rem;
    font-size: 0.8rem;
}

body.studio .vouch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

body.studio .vouch-card {
    position: relative;
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.35rem;
    overflow: hidden;
    border: 1px solid var(--st-line-soft);
    border-radius: 20px;
    background: var(--st-white);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transform:
        translate3d(0, var(--lift, 0px), 0)
        rotateX(var(--rx, 0deg))
        rotateY(var(--ry, 0deg));
    transition:
        transform 180ms var(--ease),
        border-color 280ms var(--ease),
        box-shadow 280ms var(--ease);
}

body.studio .vouch-card::before {
    content: '\201C';
    position: absolute;
    top: -1.2rem;
    right: 0.6rem;
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(8, 125, 89, 0.07);
    pointer-events: none;
}

body.studio .vouch-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        280px circle at var(--mx, 50%) var(--my, 0%),
        rgba(8, 125, 89, 0.09),
        transparent 68%
    );
    opacity: 0;
    transition: opacity 300ms var(--ease);
    pointer-events: none;
}

body.studio .vouch-card:hover {
    border-color: rgba(8, 125, 89, 0.22);
    box-shadow: 0 26px 50px -38px rgba(6, 37, 28, 0.4);
}

body.studio .vouch-card:hover::after {
    opacity: 1;
}

body.studio .vouch-card > * {
    position: relative;
    z-index: 1;
}

body.studio .vouch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

body.studio .vouch-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

body.studio .vouch-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #0A7C58, #064E3B);
    color: #EAFAF1;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

body.studio .vouch-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

body.studio .vouch-username {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 650;
    color: var(--st-ink);
}

body.studio .vouch-date {
    font-size: 0.65rem;
    color: var(--st-muted-light);
}

body.studio .vouch-service-tag-wrapper {
    display: flex;
    flex-wrap: wrap;
}

body.studio .vouch-service-tag {
    display: inline-flex;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: var(--st-sage);
    font-size: 0.6rem;
    font-weight: 550;
    letter-spacing: 0.01em;
    color: var(--st-emerald);
}

body.studio .vouch-rating {
    display: inline-flex;
    gap: 0.08rem;
    color: #C9912E;
    font-size: 0.7rem;
}

body.studio .vouch-feedback {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.66;
    color: var(--st-ink-soft);
}

body.studio .vouch-grid .empty-state {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    gap: 0.6rem;
    min-height: 180px;
    padding: 2rem;
    border: 1px dashed var(--st-line);
    border-radius: 20px;
    color: var(--st-muted);
    text-align: center;
}

body.studio .empty-state i {
    font-size: 1.6rem;
    color: var(--st-emerald);
}

body.studio .empty-state p {
    margin: 0;
    font-size: 0.86rem;
}

/* ==========================================================================
   4. PERKS
   ========================================================================== */
body.studio .perks-section {
    padding-top: calc(var(--st-section) * 0.72);
    padding-bottom: var(--st-section);
}

body.studio .perks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

body.studio .perk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.65rem;
    overflow: hidden;
    border: 1px solid var(--st-line-soft);
    border-radius: 24px;
    background: var(--st-white);
    box-shadow: var(--st-shadow-sm);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

body.studio .perk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 55px -40px rgba(6, 37, 28, 0.42);
}

body.studio .perk-card.most-popular {
    border-color: transparent;
    background:
        radial-gradient(360px 240px at 88% 0%, rgba(15, 161, 116, 0.34), transparent 68%),
        linear-gradient(155deg, #0A3527 0%, #041A13 80%);
    color: #F1FAF4;
    box-shadow: 0 34px 70px -46px rgba(4, 26, 19, 0.8);
}

body.studio .popular-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: var(--st-emerald-light);
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #05130D;
}

body.studio .perk-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.55rem;
    border: 1px solid rgba(8, 125, 89, 0.16);
    border-radius: 13px;
    background: var(--st-sage);
    color: var(--st-emerald);
    font-size: 1.3rem;
}

body.studio .most-popular .perk-icon {
    border-color: rgba(111, 227, 180, 0.24);
    background: rgba(111, 227, 180, 0.1);
    color: var(--st-emerald-light);
}

body.studio .perk-card h3 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--st-ink);
}

body.studio .perk-price {
    margin: 0 0 0.35rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--st-line-soft);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    color: var(--st-ink);
}

body.studio .most-popular h3,
body.studio .most-popular .perk-price {
    color: #F6FCF8;
}

body.studio .perk-features {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1.15rem;
    padding: 0.9rem 0 0;
    border-top: 1px solid var(--st-line-soft);
}

body.studio .most-popular .perk-features {
    border-top-color: rgba(231, 245, 237, 0.14);
}

body.studio .perk-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0;
    border: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--st-muted);
}

body.studio .most-popular .perk-features li {
    color: rgba(231, 245, 237, 0.72);
}

body.studio .perk-features i {
    margin-top: 0.15rem;
    color: var(--st-emerald);
    font-size: 0.9rem;
}

body.studio .most-popular .perk-features i {
    color: var(--st-emerald-light);
}

body.studio .perk-card .btn {
    width: 100%;
    margin-top: auto;
}

body.studio .most-popular .btn-primary {
    background: var(--st-emerald-light);
    border-color: var(--st-emerald-light);
    color: #05130D;
    box-shadow: none;
}

body.studio .most-popular .btn-primary:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #05130D;
}

body.studio .perks-footer {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--st-line-soft);
    border-radius: 16px;
    background: var(--st-white);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--st-muted);
}

body.studio .perks-footer i {
    margin-top: 0.1rem;
    color: var(--st-emerald);
}

/* ── How to buy, as a timeline ──────────────────────────────────────────── */
body.studio .how-to-buy-section {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--st-line);
}

body.studio .how-to-buy-section .section-header {
    margin-bottom: 1.75rem;
}

body.studio .how-to-buy-section h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 760;
    letter-spacing: -0.04em;
    color: var(--st-ink);
}

body.studio .steps-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    position: relative;
}

body.studio .steps-container::before {
    content: '';
    position: absolute;
    top: 1.4rem;
    left: 1.4rem;
    right: 1.4rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(8, 125, 89, 0.28), rgba(8, 125, 89, 0.06));
    z-index: 0;
}

body.studio .step-item {
    position: relative;
    z-index: 1;
    padding: 0 0.6rem;
}

body.studio .step-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 0.9rem;
    border: 1px solid var(--st-line);
    border-radius: 50%;
    background: var(--st-white);
    color: var(--st-emerald);
    font-size: 1.05rem;
    box-shadow: var(--st-shadow-sm);
}

body.studio .step-num {
    position: absolute;
    top: -0.2rem;
    right: -0.3rem;
    display: grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--st-emerald);
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 0.55rem;
}

body.studio .step-item h4 {
    margin: 0 0 0.3rem;
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--st-ink);
}

body.studio .step-item p {
    max-width: 30ch;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.58;
    color: var(--st-muted);
}

body.studio .step-arrow {
    display: none;
}

/* ==========================================================================
   5. FAQ
   ========================================================================== */
body.studio .faq-section {
    padding-top: calc(var(--st-section) * 0.72);
    padding-bottom: var(--st-section);
}

body.studio .faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

body.studio .faq-layout .section-header {
    position: sticky;
    top: 6.5rem;
    margin-bottom: 0;
}

body.studio .faq-accordion {
    display: grid;
    gap: 0.55rem;
    border-top: 0;
}

body.studio .faq-item {
    border: 1px solid var(--st-line-soft);
    border-radius: 16px;
    background: var(--st-white);
    overflow: hidden;
    transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

body.studio .faq-item.active {
    border-color: rgba(8, 125, 89, 0.28);
    box-shadow: 0 18px 36px -30px rgba(6, 37, 28, 0.35);
}

body.studio .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.05rem 1.15rem;
    border: 0;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    color: var(--st-ink);
    cursor: pointer;
}

body.studio .faq-question i {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    border: 1px solid var(--st-line);
    border-radius: 50%;
    font-size: 0;
    color: var(--st-emerald);
    transition: background-color 280ms var(--ease);
}

/* A drawn plus that becomes a minus when the panel opens. Clearer than a
   caret at this size, and independent of the icon font's metrics. */
body.studio .faq-question i::before,
body.studio .faq-question i::after {
    content: '';
    position: absolute;
    width: 0.58rem;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 280ms var(--ease);
}

body.studio .faq-question i::after {
    transform: rotate(90deg);
}

body.studio .faq-item.active .faq-question i {
    background: var(--st-sage);
}

body.studio .faq-item.active .faq-question i::after {
    transform: rotate(0deg);
}

body.studio .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    padding: 0;
    margin: 0;
    overflow: hidden;
    transition: grid-template-rows 320ms var(--ease);
}

body.studio .faq-answer > p {
    overflow: hidden;
    margin: 0;
    padding: 0 1.15rem;
    font-size: 0.86rem;
    line-height: 1.68;
    color: var(--st-muted);
    transition: padding-bottom 320ms var(--ease);
}

body.studio .faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

body.studio .faq-item.active .faq-answer > p {
    padding-bottom: 1.15rem;
}

/* ==========================================================================
   6. CONTACT
   ========================================================================== */
body.studio .contact-section {
    padding-top: calc(var(--st-section) * 0.78);
    padding-bottom: calc(var(--st-section) * 0.78);
}

body.studio .contact-container {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(1.4rem, 4vw, 3.5rem);
    border-radius: 32px;
    background:
        radial-gradient(560px 420px at 4% 0%, rgba(15, 161, 116, 0.28), transparent 66%),
        linear-gradient(150deg, #0A3527 0%, #041A13 82%);
    color: #EFF8F2;
    box-shadow: 0 60px 110px -80px rgba(4, 26, 19, 0.9);
}

body.studio .contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
    border: 0;
    background: transparent;
}

body.studio .contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--st-emerald-light);
}

body.studio .contact-info h3 {
    max-width: 12ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.6vw, 2.85rem);
    font-weight: 780;
    letter-spacing: -0.045em;
    line-height: 1.02;
    color: #F7FCF9;
}

body.studio .contact-info > p {
    max-width: 38ch;
    margin: 1rem 0 0;
    font-size: 0.9rem;
    line-height: 1.68;
    color: rgba(231, 245, 237, 0.6);
}

body.studio .info-blocks {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    max-width: 340px;
    margin: 1.75rem 0 0;
}

body.studio .info-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(231, 245, 237, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
}

body.studio .info-block i {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    background: rgba(111, 227, 180, 0.1);
    color: var(--st-emerald-light);
    font-size: 1rem;
}

body.studio .info-block .label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(231, 245, 237, 0.46);
}

body.studio .info-block .value {
    display: block;
    font-size: 0.82rem;
    font-weight: 550;
    color: #EFF8F2;
}

body.studio .contact-info .helper-text {
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(231, 245, 237, 0.5);
}

body.studio .contact-info .helper-text .neon-text-cyan {
    color: var(--st-emerald-light);
}

body.studio #contact-form.glass-form {
    display: grid;
    /* The form is a single-column grid, and its implicit track used to size
       itself to the widest item — the Turnstile widget, which is a fixed
       300px iframe. On a 320px phone that made the track 300px wide inside a
       245px card, pushing every field past the card and the viewport. An
       explicit minmax(0, 1fr) track follows the card instead. */
    grid-template-columns: minmax(0, 1fr);
    gap: 0.95rem;
    padding: clamp(1.1rem, 2.6vw, 1.8rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow: 0 30px 70px -50px rgba(0, 0, 0, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--st-ink);
}

body.studio #contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

body.studio #contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

body.studio #contact-form label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--st-ink-soft);
}

body.studio #contact-form input,
body.studio #contact-form select,
body.studio #contact-form textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--st-line);
    border-radius: 11px;
    background: var(--st-paper);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    color: var(--st-ink);
    transition: border-color 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

body.studio #contact-form input:focus,
body.studio #contact-form select:focus,
body.studio #contact-form textarea:focus {
    outline: none;
    border-color: var(--st-emerald);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(8, 125, 89, 0.12);
}

body.studio #contact-form input[readonly] {
    color: var(--st-muted);
    background: #EEF2ED;
}

body.studio #contact-form textarea {
    min-height: 108px;
    resize: vertical;
}

body.studio #contact-form .input-glow {
    display: none;
}

body.studio #contact-form .helper-text {
    margin: 0.1rem 0 0;
    font-size: 0.64rem;
    color: var(--st-muted-light);
}

body.studio #contact-form .form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

body.studio #contact-form .captcha-container {
    min-height: 0;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    transition: height 160ms var(--ease);
}

body.studio #contact-form .captcha-container:empty {
    display: none;
}

body.studio #contact-form .btn[type="submit"] {
    width: 100%;
    min-height: 3rem;
    margin-top: 0.15rem;
}

body.studio .contact-auth-gate {
    padding: 1rem;
    border: 1px solid var(--st-line-soft);
    border-radius: 14px;
    background: linear-gradient(160deg, #F4F8F4 0%, #EDF3EE 100%);
}

body.studio .contact-auth-head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

body.studio .contact-auth-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--st-ink);
    box-shadow: var(--st-shadow-sm);
}

body.studio .contact-auth-copy h4 {
    margin: 0 0 0.2rem;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--st-ink);
}

body.studio .contact-auth-copy p {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.55;
    color: var(--st-muted);
}

body.studio .contact-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

body.studio .contact-auth-actions .btn {
    min-height: 2.4rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.75rem;
}

body.studio .contact-auth-status {
    margin: 0.5rem 0 0;
    font-size: 0.7rem;
    color: var(--st-muted);
}

body.studio .contact-auth-account {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(8, 125, 89, 0.18);
    border-radius: 12px;
    background: var(--st-sage);
}

body.studio .contact-auth-account > i {
    color: var(--st-emerald);
    font-size: 1.1rem;
}

body.studio .contact-auth-account-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

body.studio .contact-auth-account-text .label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--st-muted);
}

body.studio .contact-auth-account-text .value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--st-ink);
}

body.studio .contact-auth-account .btn {
    margin-left: auto;
    min-height: 2rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.68rem;
}

body.studio #form-status {
    min-height: 0;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
}

body.studio #form-status:not(:empty) {
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    background: var(--st-sage);
    color: var(--st-forest);
}

body.studio #form-status.status-error {
    background: #FBEDEB;
    color: #8E241B;
}

body.studio #form-status.status-success {
    background: #E8F6EE;
    color: #066345;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
body.studio .glass-footer {
    position: relative;
    margin-top: 0;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 1.5rem;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(700px 360px at 88% 0%, rgba(8, 125, 89, 0.28), transparent 68%),
        linear-gradient(180deg, #08130F 0%, #050D09 100%);
    color: rgba(238, 247, 241, 0.74);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.studio .footer-container {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--st-gutter);
}

body.studio .footer-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1.5rem;
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(238, 247, 241, 0.1);
}

body.studio .footer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(238, 247, 241, 0.5);
}

body.studio .footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--st-emerald-light);
    box-shadow: 0 0 0 3px rgba(111, 227, 180, 0.12);
}

body.studio .footer-wordmark {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.92;
    color: #F4FBF7;
    text-decoration: none;
}

body.studio .footer-wordmark em {
    font-style: normal;
    color: var(--st-emerald-light);
}

body.studio .social-links {
    display: flex;
    gap: 0.5rem;
}

body.studio .social-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(238, 247, 241, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: #EAF6EE;
    font-size: 1.05rem;
    transition: background-color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}

body.studio .social-btn:hover {
    background: var(--st-emerald);
    border-color: var(--st-emerald);
    color: #FFFFFF;
    transform: translateY(-2px);
}

body.studio .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-bottom: 1px solid rgba(238, 247, 241, 0.1);
}

body.studio .footer-grid h4 {
    margin: 0 0 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(238, 247, 241, 0.42);
}

body.studio .footer-grid nav {
    display: grid;
    gap: 0.45rem;
}

body.studio .footer-grid a {
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(238, 247, 241, 0.78);
    text-decoration: none;
    transition: color 180ms var(--ease);
}

body.studio .footer-grid a:hover {
    color: var(--st-emerald-light);
}

body.studio .footer-contact-note {
    max-width: 30ch;
    margin: 0.9rem 0 0;
    font-size: 0.74rem;
    line-height: 1.6;
    color: rgba(238, 247, 241, 0.42);
}

body.studio .footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.1rem;
    padding: 1.2rem 0;
}

body.studio .footer-legal a,
body.studio .footer-legal button {
    border: 0;
    background: transparent;
    /* These read as quiet text links but are real destinations; the vertical
       padding gives them a 24px+ target without changing their size. */
    padding: 0.25rem 0;
    line-height: 1.5;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: rgba(238, 247, 241, 0.44);
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms var(--ease);
}

body.studio .footer-legal a:hover,
body.studio .footer-legal button:hover {
    color: #EAF6EE;
}

/* The rating stars are glyph buttons roughly 21px square; the padding takes
   the target past the 24px minimum without changing how they read. */
body.studio .star-rating-input {
    gap: 0.15rem;
}

body.studio .star-rating-input .star-btn {
    padding: 0.15rem 0.2rem;
}

body.studio .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(238, 247, 241, 0.07);
}

body.studio .footer-bottom p {
    margin: 0;
    font-size: 0.68rem;
    color: rgba(238, 247, 241, 0.36);
}

/* ==========================================================================
   8. DIALOGS (portfolio, vouch, login, tickets, payment)
   ========================================================================== */
body.studio .portfolio-modal {
    background: rgba(4, 16, 11, 0.66);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.studio .portfolio-modal-content {
    border: 1px solid var(--st-line-soft);
    border-radius: 24px;
    background: var(--st-white);
    box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

body.studio .portfolio-modal-close {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--st-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--st-ink);
    z-index: 4;
}

body.studio .portfolio-modal-gallery {
    background: #06251C;
}

body.studio .portfolio-modal-gallery img {
    /* Fill the gallery column. `contain` fitted the tall capture by width and
       left the rest of the column as an empty 250px dark block on every
       desktop width; covering from the top shows the hero of the capture
       instead. */
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: top center;
}

body.studio .portfolio-modal-body {
    padding: clamp(1.2rem, 3vw, 2rem);
}

body.studio .portfolio-modal-body h3 {
    margin: 0.7rem 0 0.4rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 780;
    letter-spacing: -0.04em;
    color: var(--st-ink);
}

body.studio .portfolio-modal-body h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--st-ink);
}

body.studio .portfolio-modal-body p,
body.studio .portfolio-modal-body li {
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--st-muted);
}

body.studio .portfolio-modal .tech-tag {
    border-color: var(--st-line);
    background: var(--st-paper);
    color: var(--st-ink-soft);
}

body.studio .portfolio-modal-nav {
    padding: 0.9rem clamp(1.2rem, 3vw, 2rem);
    border-top: 1px solid var(--st-line-soft);
}

body.studio .portfolio-modal-nav-btn {
    border: 1px solid var(--st-line);
    border-radius: 999px;
    background: var(--st-white);
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
    color: var(--st-ink);
    cursor: pointer;
}

body.studio .modal-overlay {
    background: rgba(4, 16, 11, 0.66);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.studio .modal-container {
    border: 1px solid var(--st-line-soft);
    border-radius: 24px;
    background: var(--st-white);
    box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.7);
}

body.studio .modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 780;
    letter-spacing: -0.04em;
    color: var(--st-ink);
}

body.studio .modal-header p {
    color: var(--st-muted);
    font-size: 0.86rem;
}

body.studio .modal-close-btn {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--st-line);
    border-radius: 50%;
    background: var(--st-white);
    color: var(--st-ink);
}

body.studio .modal-container .form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--st-ink-soft);
}

body.studio .modal-container input,
body.studio .modal-container select,
body.studio .modal-container textarea {
    border: 1px solid var(--st-line);
    border-radius: 11px;
    background: var(--st-paper);
    color: var(--st-ink);
    font-family: var(--font-sans);
    font-size: 0.86rem;
}

body.studio .modal-container input:focus,
body.studio .modal-container select:focus,
body.studio .modal-container textarea:focus {
    outline: none;
    border-color: var(--st-emerald);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(8, 125, 89, 0.12);
}

body.studio .payment-modal-container {
    overflow: hidden;
}

body.studio .payment-sidebar {
    background: var(--st-forest-deep);
    color: #EFF8F2;
}

body.studio .payment-tab {
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #EFF8F2;
}

body.studio .payment-tab.active {
    border-color: var(--st-emerald-light);
    background: rgba(111, 227, 180, 0.1);
}

body.studio .payment-content {
    background: var(--st-white);
}

/* ==========================================================================
   9. APPLICATION SURFACES
   --------------------------------------------------------------------------
   The client dashboard and designer inherit the studio palette and display
   face, but they are product screens: heading scale, control radius and
   spacing stay compact instead of borrowing the marketing composition.
   ========================================================================== */
body.studio #dashboard-view .section-title,
body.studio #designer-view .section-title {
    max-width: none;
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 1.8vw, 1.65rem);
    font-weight: 730;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

body.studio #dashboard-view .btn,
body.studio #designer-view .btn {
    min-height: 2.45rem;
    padding: 0.6rem 0.95rem;
    border-radius: 9px;
    font-size: 0.79rem;
    box-shadow: none;
}

body.studio #dashboard-view .btn-icon,
body.studio #designer-view .btn-icon {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 9px;
}

body.studio #dashboard-view .dashboard-main {
    border-radius: 16px;
}

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    body.studio .why-content .features-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.studio .studio-process {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    body.studio .process-head h3 {
        max-width: none;
    }

    body.studio .numbers-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
    }

    body.studio .vouch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.studio .perks-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.7rem;
    }

    body.studio .perk-card {
        padding: 1.25rem;
    }

    body.studio .perk-card.most-popular {
        order: 0;
    }

    body.studio .steps-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
    }

    body.studio .steps-container::before {
        display: none;
    }

    body.studio .faq-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }

    body.studio .faq-layout .section-header {
        position: static;
    }

    body.studio .contact-container {
        grid-template-columns: minmax(0, 1fr);
    }

    body.studio .contact-info .helper-text {
        padding-top: 1rem;
    }
}

@media (max-width: 860px) {
    body.studio .perks-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    body.studio .perk-card {
        padding: 1.5rem;
    }
}

@media (max-width: 720px) {
    body.studio .large-panel {
        padding: 1.35rem;
        border-radius: 24px;
    }

    body.studio .why-content .features-list {
        grid-template-columns: minmax(0, 1fr);
    }

    body.studio .feature-item,
    body.studio .feature-item:nth-child(odd),
    body.studio .feature-item:nth-child(even) {
        padding: 1.15rem 0;
        border-right: 0;
    }

    body.studio .feature-item:first-child {
        padding-top: 1.35rem;
    }

    body.studio .numbers-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    body.studio .numbers-list > div,
    body.studio .numbers-list > div:first-child {
        padding: 0 0 1.1rem;
        border-left: 0;
        border-bottom: 1px solid rgba(243, 251, 246, 0.16);
    }

    body.studio .numbers-list > div:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    body.studio .vouch-dashboard {
        align-items: flex-start;
        flex-direction: column;
    }

    body.studio .vouch-action {
        margin-left: 0;
    }

    body.studio .vouch-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.studio .perks-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.studio .steps-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.1rem;
    }

    body.studio .step-item {
        display: grid;
        grid-template-columns: 2.8rem minmax(0, 1fr);
        column-gap: 0.85rem;
        padding: 0;
    }

    body.studio .step-icon {
        grid-row: span 2;
        margin-bottom: 0;
    }

    body.studio .step-item h4 {
        align-self: end;
    }

    body.studio .contact-container {
        padding: 1.1rem;
        border-radius: 24px;
    }

    body.studio .contact-info {
        padding: 0.35rem 0.25rem;
    }

    body.studio #contact-form .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    body.studio .footer-lead {
        grid-template-columns: minmax(0, 1fr);
    }

    body.studio .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.4rem;
    }

    body.studio .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* The case-study dialog was a two-column grid whose columns could not shrink
   below the body text's min-content width, so on phones the panel grew wider
   than the screen. Below the desktop split — where the image column would
   only be a 240px sliver anyway — it becomes one column: image, story, then
   the project navigation. */
@media (max-width: 860px) {
    body.studio .portfolio-modal {
        padding: 1rem;
        align-items: flex-start;
    }

    body.studio .portfolio-modal-content {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        max-height: calc(100vh - 2rem);
        max-height: calc(100dvh - 2rem);
        border-radius: 20px;
    }

    body.studio .portfolio-modal-gallery {
        grid-row: 1;
        grid-column: 1;
        border-radius: 20px 20px 0 0;
    }

    body.studio .portfolio-modal-gallery img,
    body.studio .portfolio-modal-gallery .portfolio-placeholder {
        height: clamp(160px, 26vh, 260px);
        min-height: 0;
        object-fit: cover;
    }

    body.studio .portfolio-modal-body {
        grid-row: 2;
        grid-column: 1;
        min-width: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.studio .portfolio-modal-nav {
        grid-row: 3;
        grid-column: 1;
    }

    body.studio .portfolio-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 2.3rem;
        height: 2.3rem;
    }
}

/* Turnstile renders a fixed 300 x 65 widget. Below ~410px the form's usable
   width is narrower than that, so the widget is scaled to fit rather than
   allowed to widen the form. Scaling keeps the whole challenge visible and
   its hit area proportional, instead of clipping it. */
@media (max-width: 410px) {
    body.studio #contact-form .captcha-container {
        height: 52px;
    }

    body.studio #contact-form #contact-turnstile {
        transform: scale(0.76);
        transform-origin: top left;
    }
}

@media (max-width: 355px) {
    body.studio #contact-form .captcha-container {
        height: 46px;
    }

    body.studio #contact-form #contact-turnstile {
        transform: scale(0.66);
    }
}

@media (max-width: 420px) {
    body.studio .vouch-stats {
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }

    body.studio .numbers-list dd {
        font-size: 2.4rem;
    }

    body.studio .contact-auth-account {
        flex-wrap: wrap;
    }

    body.studio .contact-auth-account .btn {
        margin-left: 0;
    }
}

@media (hover: none), (pointer: coarse) {
    body.studio .vouch-card,
    body.studio .perk-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.studio .service-card,
    body.studio .portfolio-card,
    body.studio .vouch-card,
    body.studio .perk-card,
    body.studio .faq-answer,
    body.studio .faq-question i {
        transition: none;
    }
}

/* ==========================================================================
   11. APPLICATION SURFACES — studio polish
   --------------------------------------------------------------------------
   Product screens keep the studio palette without borrowing the marketing
   composition. The dashboard gets a forest sidebar for orientation, while the
   designer keeps white tool panels and gains readable server-type cards.
   ========================================================================== */
body.studio #dashboard-view .dashboard-sidebar {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background:
        radial-gradient(360px 220px at 10% 0%, rgba(15, 161, 116, 0.20), transparent 70%),
        linear-gradient(165deg, #0C2A20 0%, #071510 100%);
    box-shadow: 0 26px 60px -48px rgba(4, 20, 14, 0.8);
}

body.studio #dashboard-view .sidebar-user {
    border-bottom-color: rgba(238, 247, 241, 0.12);
}

body.studio #dashboard-view .sidebar-user-info h4 {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: #F2F9F4;
}

body.studio #dashboard-view .user-role {
    color: #8FEBC6;
}

body.studio #dashboard-view .avatar-glow {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

body.studio #dashboard-view .sidebar-link {
    border-left: 2px solid transparent;
    border-radius: 8px;
    color: rgba(238, 247, 241, 0.66);
    font-size: 0.79rem;
    font-weight: 500;
}

body.studio #dashboard-view .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #FFFFFF;
}

body.studio #dashboard-view .sidebar-link.active {
    border-left-color: #6FE3B4;
    background: rgba(111, 227, 180, 0.12);
    color: #C6F7E2;
}

body.studio #dashboard-view .sidebar-link i {
    color: #6FE3B4;
    opacity: 0.8;
}

body.studio #dashboard-view .dashboard-main {
    border-color: var(--st-line-soft);
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 24px 60px -52px rgba(6, 37, 28, 0.4);
}

body.studio #dashboard-view .dashboard-section > .section-title {
    border-bottom: 0;
    font-weight: 780;
    letter-spacing: -0.035em;
}

body.studio #dashboard-view .section-title span {
    margin-left: 0.24em;
    font-style: normal;
    color: var(--st-emerald);
}

/* Designer type cards: description is content, not an ellipsis. */
body.studio #designer-view .designer-brand {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.studio #designer-view .designer-type-card {
    align-items: flex-start;
    padding: 0.7rem;
    border-color: var(--st-line-soft);
    border-radius: 11px;
    background: #F7F8F4;
}

body.studio #designer-view .designer-type-card.selected {
    border-color: var(--st-emerald);
    background: rgba(8, 125, 89, 0.07);
}

body.studio #designer-view .designer-type-desc {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 0.62rem;
    line-height: 1.4;
    color: var(--st-muted);
}

body.studio #designer-view .designer-type-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

body.studio #designer-view .designer-preview-empty h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 780;
    letter-spacing: -0.03em;
}

body.studio #designer-view .designer-sidebar-title,
body.studio #designer-view .designer-summary-title {
    color: var(--st-muted);
}

body.studio #designer-view .designer-preview,
body.studio #designer-view .designer-sidebar,
body.studio #designer-view .designer-summary {
    border-color: var(--st-line-soft);
}

@media (max-width: 900px) {
    body.studio #dashboard-view .dashboard-sidebar {
        border-radius: 16px;
    }
}

/* The designer's server-type cards sit in a 292px tool rail from 761px up.
   The two-column row layout left roughly 53px for the label there, so names
   like "Community" overflowed their own card. Stack the icon over the text;
   only the full-width mobile column keeps the compact row layout. */
@media (min-width: 761px) {
    body.studio #designer-view .designer-type-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    body.studio #designer-view .designer-type-info {
        width: 100%;
    }

    body.studio #designer-view .designer-type-label,
    body.studio #designer-view .designer-type-desc {
        overflow-wrap: anywhere;
    }
}
