/* Shared alignment for the public site and its admin shell. */
:root {
    --studio-frame: min(100% - 36px, 76rem);
    --studio-rhythm: clamp(2.75rem, 6vw, 5.75rem);
    --studio-panel-radius: 12px;
}

.mataan-v2 header > nav {
    width: var(--studio-frame);
    max-width: none;
    padding-inline: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
}
.mataan-v2 header > nav > a { grid-column: 2; justify-self: center; }
.mataan-v2 header [data-v2-menu-toggle] { grid-column: 3; justify-self: end; }
.mataan-v2 header [data-v2-menu] { text-align: center; }
.mataan-v2 header [data-v2-menu] a,
.mataan-v2 header [data-v2-menu] > div > div { justify-content: center; }
.mataan-v2 header .v2-desktop-nav { justify-content: center; gap: clamp(12px, 1.45vw, 24px); }

/* The same page frame, type scale and spacing on every public route. */
.mataan-v2 #main-content > section {
    padding-block: var(--studio-rhythm);
    background: var(--studio-ink);
    text-align: center;
}
.mataan-v2 #main-content > section:first-of-type {
    background: radial-gradient(ellipse at top center, #263e33 0, var(--studio-ink) 35rem);
}
.mataan-v2 #main-content > section:first-of-type > .absolute { opacity: .22; }
.mataan-v2 #main-content > section + section { border-top: 1px solid var(--studio-line); }
.mataan-v2 #main-content > section:nth-of-type(odd):not(:first-of-type) { background: #111b19; }
.mataan-v2 #main-content > section > div:not(.absolute), .studio-section {
    width: var(--studio-frame);
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
}
.mataan-v2 #main-content > section :is(h1,h2,h3) {
    font-family: 'Space Grotesk', Manrope, sans-serif;
    text-wrap: balance;
}
.mataan-v2 #main-content > section h1 {
    max-width: 20ch;
    margin-inline: auto;
    font-size: clamp(2.45rem, 6.4vw, 5.15rem);
    line-height: 1.01;
    letter-spacing: -.065em;
}
.mataan-v2 #main-content > section > div > :is(h2,p),
.mataan-v2 #main-content > section .max-w-3xl,
.mataan-v2 #leave-review p { margin-inline: auto; }
.mataan-v2 #main-content > section > div > p,
.mataan-v2 #leave-review p { max-width: 62ch; text-wrap: pretty; }
.mataan-v2 #main-content > section > div > .grid:has(> :is(.v2-project,.v2-package)),
.studio-grid--projects {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 22rem));
    justify-content: center;
}

/* Homepage sections share a centered axis from the hero through contact. */
.studio-home { background: radial-gradient(ellipse at 50% 0%, #263e33 0, transparent 35rem), var(--studio-ink); }
.studio-section { padding-block: var(--studio-rhythm); text-align: center; }
.studio-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(24px, 4.5vw, 52px); }
.studio-hero__copy { width: min(100%, 56rem); }
.studio-home h1 { max-width: 18ch; margin-inline: auto; font-size: clamp(2.45rem, 7vw, 5.9rem); }
.studio-home h1 em { display: block; }
.studio-kicker, .studio-actions { justify-content: center; }
.studio-intro, .studio-case p { margin-inline: auto; }
.studio-actions { width: min(100%, 34rem); margin-inline: auto; }
.studio-showcase { width: min(100%, 45rem); }
.studio-showcase__art { min-height: clamp(145px, 27vw, 250px); }
.studio-book { width: clamp(68px, 14vw, 137px); }
.studio-section__head { flex-direction: column; align-items: center; gap: 8px; margin-bottom: 24px; }
.studio-case { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.studio-case, .studio-showcase, .studio-service { border-radius: var(--studio-panel-radius); }
.studio-process { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.studio-steps { width: 100%; display: grid; gap: 12px; }
.studio-steps li { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 20px 16px; border: 1px solid var(--studio-line); border-radius: var(--studio-panel-radius); background: var(--studio-panel); }
.studio-steps p { max-width: 38ch; }
.studio-final { flex-direction: column; align-items: center; gap: 14px; }

/* Card groups and contact actions align while field labels stay easy to scan. */
.mataan-v2 .v2-project, .mataan-v2 .v2-package { border-radius: var(--studio-panel-radius); text-align: center; }
.mataan-v2 .v2-project .flex { justify-content: center; flex-wrap: wrap; }
.mataan-v2 .v2-price-badge { align-self: center; }
.mataan-v2 .v2-price-amount { justify-content: center; }
.mataan-v2 .v2-package ul { align-self: center; text-align: left; }
.mataan-v2 .v2-package > a { align-self: center; }
.mataan-v2 :is([data-contact-form] button,.v2-package > a) {
    background: var(--studio-lime);
    color: #152419;
    border-color: var(--studio-lime);
    border-radius: 8px;
    box-shadow: none;
}
.mataan-v2 :is([data-contact-form] button,.v2-package > a):hover { background: #ebffc4; }
.mataan-v2[data-page='contact'] #main-content > section:first-of-type > div {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: clamp(18px, 3vw, 34px);
}
.mataan-v2[data-page='contact'] #main-content > section:first-of-type > div > div { width: min(100%, 43rem); }
.mataan-v2[data-page='contact'] #main-content > section:first-of-type > div > div > .flex { justify-content: center; }
.mataan-v2 [data-contact-form] {
    width: min(100%, 46rem);
    text-align: left;
    border-radius: var(--studio-panel-radius);
}
.mataan-v2 #leave-review > div > div { width: min(100%, 46rem); margin-inline: auto; border-radius: var(--studio-panel-radius); }

.mataan-v2 footer { text-align: center; }
.mataan-v2 footer > div.max-w-7xl { width: var(--studio-frame); max-width: none; padding-inline: 0; justify-content: center; }
.mataan-v2 footer img, .mataan-v2 footer p { margin-inline: auto; }
.mataan-v2 footer p { max-width: 33ch; }
.mataan-admin-v2 .v2-admin-header { justify-content: center; justify-items: center; text-align: center; }
.mataan-admin-v2 .v2-admin-nav, .mataan-admin-v2 .v2-inbox-actions { justify-content: center; }
.mataan-admin-v2 main { width: var(--studio-frame); max-width: none; padding-inline: 0; }
.mataan-admin-v2 main h1 { text-align: center; }
.mataan-admin-v2 main > article { margin-inline: auto; }

@media (min-width: 640px) {
    :root { --studio-frame: min(100% - 60px, 76rem); }
    .studio-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .mataan-v2 header > nav { grid-template-columns: auto minmax(0, 1fr); }
    .mataan-v2 header > nav > a { grid-column: 1; }
    .mataan-v2 header .v2-desktop-nav { grid-column: 2; }
}

/* Mataan Tech's own palette and a shared visual rhythm across public pages. */
.mataan-v2 {
    --studio-ink: #0b1220;
    --studio-panel: #121e32;
    --studio-line: #2a3d5d;
    --studio-text: #f3f6ff;
    --studio-muted: #b9c8df;
    --studio-accent: #a9c4ff;
    --studio-action: #9fbbff;
    --studio-mint: var(--studio-accent);
    --studio-lime: var(--studio-action);
}
.mataan-v2 header, .mataan-v2 footer { background: #0a1120; }
.mataan-v2 header [data-v2-menu] { background: #0e182a; }
.mataan-v2 .studio-home, .mataan-v2 #main-content > section:first-of-type {
    background: radial-gradient(ellipse at 50% 0%, #213760 0, transparent 46rem), var(--studio-ink);
}
.mataan-v2 #main-content > section:nth-of-type(odd):not(:first-of-type) { background: #101a2c; }
.mataan-v2 #main-content > section:first-of-type > .absolute { opacity: 0; }
.mataan-v2 :is(.text-emerald-200,.text-emerald-300,.text-emerald-400) { color: var(--studio-accent); }
.mataan-v2 :focus-visible { outline-color: #91b5ff; }
.mataan-v2 header .v2-desktop-nav > a:last-child,
.mataan-v2 header [data-v2-menu] > div > a:last-of-type,
.mataan-v2 :is(.studio-button--primary,[data-contact-form] button,.v2-package > a,#leave-review a) {
    background: var(--studio-action);
    border-color: var(--studio-action);
    color: #08152e;
    box-shadow: none;
    border-radius: 8px;
    font-weight: 800;
}
.mataan-v2 header .v2-desktop-nav > a:last-child:hover,
.mataan-v2 header [data-v2-menu] > div > a:last-of-type:hover,
.mataan-v2 :is(.studio-button--primary,[data-contact-form] button,.v2-package > a,#leave-review a):hover { background: #c4d5ff; }
.mataan-v2 :is(.v2-project,.v2-package,.studio-service,#main-content > section article) {
    background: var(--studio-panel);
    border-color: var(--studio-line);
    border-radius: var(--studio-panel-radius);
    box-shadow: none;
}
.mataan-v2 .v2-package:has(.v2-price-badge) { border-color: #7296e0; }
.mataan-v2 .v2-price-badge { background: var(--studio-action); color: #08152e; }
.mataan-v2 .v2-project [class~="ring-emerald-400/20"] { background: #203453; color: #dce7ff; box-shadow: none; }
.mataan-v2 :is([data-contact-form],#leave-review > div > div) { background: var(--studio-panel); border-color: var(--studio-line); box-shadow: none; }
.mataan-v2 [data-contact-form] :is(input,textarea) { background: #0d1729; border-color: #425579; }
.mataan-v2 [data-contact-form] :is(input,textarea):focus { border-color: var(--studio-accent); }
.studio-hero--brand { position: relative; isolation: isolate; min-height: clamp(24rem, 62vh, 37rem); padding-block: clamp(48px, 8vw, 104px); }
.studio-hero--brand::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: '';
    pointer-events: none;
    background-image: linear-gradient(#9fbbff24 1px, transparent 1px), linear-gradient(90deg, #9fbbff24 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at 50% 44%, #000 0, transparent 69%);
    opacity: .55;
}
.studio-hero--brand h1 { max-width: 21ch; font-size: clamp(2.45rem, 6.8vw, 5.9rem); }
.studio-hero--brand .studio-actions { margin-top: 28px; }
.mataan-v2 .studio-band { background: #101a2c; }
.mataan-v2 .studio-page-intro { max-width: 60ch; margin: 18px auto 0; color: var(--studio-muted); font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.65; text-wrap: pretty; }
.mataan-v2 .studio-price-heading { margin-bottom: 22px; }
.mataan-v2 .studio-price-heading h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.08; font-weight: 700; letter-spacing: -.045em; }
.mataan-v2 .studio-price-heading .studio-kicker { margin-bottom: 9px; }
