/* Astra — final art direction. Loaded after page styles.
   Pinned scenes retain their original geometry and animation ownership. */
:root {
    --text-dim: #aaaab5;
    --text-mute: #9e9eaa;
    --line: rgba(220, 219, 255, .09);
    --section-padding: clamp(88px, 10vw, 150px) 24px;
}
html { scroll-padding-top: 108px; }
body { -webkit-font-smoothing: antialiased; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #b9a0ff; outline-offset: 6px; }
.section-title, .step-role, .process-step h3 { text-wrap: balance; }
.section-intro, .subtitle, .contact-subtitle { text-wrap: pretty; }
.section-eyebrow { color: #b99bea; letter-spacing: .2em; font-size: .72rem; }
.section-intro { line-height: 1.8; }
.main-nav { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.nav-links a { transition: color .2s ease; }

/* A luminous horizon frames the title without competing with the copy. */
.hero-section {
    height: auto;
    min-height: max(790px, 100svh);
    padding: 150px 24px 115px;
    isolation: isolate;
    background: radial-gradient(ellipse 65% 65% at 50% 43%, #151027 0%, #0a0911 48%, #050505 85%);
}
.hero-section::before {
    content: '';
    position: absolute;
    width: min(1050px, 110vw);
    aspect-ratio: 1;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, transparent 57%, rgba(133, 107, 251, .10) 64%, rgba(119, 164, 255, .18) 65%, transparent 66%);
    pointer-events: none;
    z-index: -1;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(172, 151, 241, .3), transparent);
    pointer-events: none;
}
.hero-glow { opacity: .7; filter: blur(40px); }
.hero-halo-a { border-color: rgba(183, 163, 255, .16); }
.hero-halo-b { border-style: dashed; border-color: rgba(164, 181, 234, .15); }
.hero-halo-a::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 13%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d3c2ff;
    box-shadow: 0 0 14px 4px rgba(165, 119, 255, .5);
}
.hero-tag { color: #c1bdce; font-size: .72rem; letter-spacing: .055em; padding: 10px 18px; margin-bottom: 34px; }
.hero-title { font-size: clamp(4.6rem, 10.7vw, 10rem); line-height: .95; letter-spacing: -.065em; }
.hero-line:not(.is-iris) > span { background: none; -webkit-text-fill-color: #f6f3ff; animation: none; }
.hero-line.is-iris > span { background-image: linear-gradient(110deg, #e5bef9 6%, #b983f4 32%, #88a9fa 65%, #88e1e0 94%); }
.hero-section .subtitle { max-width: 550px; margin: 28px 0 0; font-size: clamp(1rem, 1.45vw, 1.16rem); line-height: 1.75; color: #b7b2c5; }
.hero-actions { display: flex; position: relative; z-index: 2; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-actions .cta-button { margin: 0; padding: 18px 27px; font-size: .91rem; display: inline-flex; align-items: center; gap: 24px; background: #f4f0ff; color: #171022; box-shadow: 0 8px 36px rgba(176, 132, 247, .13); }
.button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 54px; padding: 16px 24px; border: 1px solid rgba(218, 206, 255, .18); border-radius: 40px; background: rgba(255,255,255,.025); font-size: .88rem; color: #d5cfdf; transition: background .25s ease, border-color .25s ease; }
.button-secondary:hover { background: rgba(166, 130, 229, .12); border-color: #9074b9; }
.hero-services { position: relative; z-index: 1; margin: 23px 0 0; color: #a29aad; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-services span { margin-inline: 12px; color: #79668d; }
.hero-scroll { bottom: 23px; gap: 7px; font-size: .61rem; letter-spacing: .17em; }
.hero-scroll::after { height: 24px; }
.hero-scroll i { display: none; }

/* Consistent glass surfaces, more breathing room, and a clear reading order. */
.pipeline-step { background: linear-gradient(150deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border-color: rgba(221, 211, 255, .1); }
.pipeline-step .step-desc { line-height: 1.75; }
.step-deliverables { line-height: 1.65; }
.portfolio-section .section-title, .process-section .section-title, .pricing-section .section-title { max-width: 960px; margin-inline: auto; }
.portfolio-item { border-color: rgba(224, 216, 255, .13); }
.portfolio-screen { border-color: rgba(255,255,255,.2); }
.process-grid { gap: 18px; }
.process-step { display: flex; flex-direction: column; padding: 32px 25px; background: linear-gradient(155deg, #13121a, #09090d); border-color: rgba(223,213,255,.11); }
.process-num { font-size: 3.5rem; font-weight: 500; margin-bottom: 38px; }
.process-step p { line-height: 1.75; }
.process-meta { margin-top: auto; font-size: .64rem; letter-spacing: .12em; line-height: 1.8; }
.pricing-grid { align-items: stretch; }
.pricing-card { min-width: 0; padding: 38px 30px; background: linear-gradient(145deg, #111016, #0a090d); border-color: rgba(225,212,255,.12); }
.pricing-card.is-featured { background: radial-gradient(ellipse at top, rgba(152, 101, 237, .16), transparent 75%), #100d18; border-color: rgba(182,141,255,.5); box-shadow: 0 20px 70px -35px rgba(156,105,248,.3); }
.pricing-features { padding-inline-start: 0; margin-block: 0; }
.pricing-desc { min-height: 4.9em; }
.pricing-cta { min-height: 50px; }
.pricing-badge { color: #c7a7ff; }
.pricing-footnote { max-width: 730px; margin: 27px auto 0; text-align: center; font-size: .8rem; line-height: 1.75; color: #a7a0b2; text-wrap: pretty; }
.price-amount { font-size: clamp(1.9rem, 2.9vw, 2.4rem); }
.faq-list { border: 1px solid rgba(219,207,255,.1); border-radius: 22px; padding: 0 28px; background: linear-gradient(145deg, rgba(130,104,189,.04), transparent); }
.faq-item:first-child { border-top: 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-question { gap: 16px; line-height: 1.45; }
.faq-question[aria-expanded="true"] { color: #c7b1ef; }
.faq-answer p { padding-right: 24px; }
.contact-section { min-height: 680px; }
.contact-section .section-title { font-size: clamp(3.1rem, 7.5vw, 7rem); max-width: 1050px; margin-inline: auto; }
.contact-subtitle { line-height: 1.8; }
.form-field label, .modal-sub, .essential-banner-copy p, .bridge-copy p { color: #aaa6b5; }
.modal-dialog { overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #544466 transparent; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: 2px solid #ae8ee8; outline-offset: 3px; }

@media (min-width: 1100px) { .process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 701px) and (max-width: 1099px) { .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
    .hero-section { min-height: 790px; min-height: max(740px, 100svh); padding: 136px 24px 54px; }
    .hero-title { font-size: clamp(4.1rem, 12.5vw, 7rem); }
    .hero-halo-a { width: 88vw; }
    .hero-halo-b { width: 112vw; }
    .hero-section::before { width: 140vw; }
    .hero-scroll { position: static; transform: none; margin-top: 34px; }
    .hero-tag { margin-bottom: 32px; font-size: .66rem; }
    .hero-section .subtitle { max-width: 440px; }
    .section-title { font-size: clamp(2.5rem, 7vw, 4.3rem); }
    .section-intro { font-size: 1rem; }
    .contact-section { min-height: 580px; }
}
@media (max-width: 700px) {
    .process-grid { grid-template-columns: 1fr; gap: 14px; }
    .process-step { padding: 27px; }
    .process-num { font-size: 2.6rem; margin-bottom: 22px; }
    .process-meta { padding-top: 16px; }
    .faq-list { padding: 0 20px; }
    .faq-question { font-size: 1.02rem; padding-block: 23px; }
    .faq-answer p { padding-right: 0; font-size: .94rem; }
    .pricing-desc { min-height: 0; }
}
@media (max-width: 480px) {
    :root { --section-padding: 82px 20px; }
    .hero-section { min-height: 760px; min-height: max(760px, 100svh); padding: 122px 20px 40px; }
    .hero-title { font-size: clamp(3.7rem, 14.2vw, 4.9rem); }
    .hero-tag { max-width: 100%; padding: 10px 13px; letter-spacing: .01em; }
    .hero-actions { flex-direction: column; align-items: stretch; width: min(100%, 310px); gap: 10px; }
    .hero-actions .cta-button, .button-secondary { justify-content: center; min-height: 52px; font-size: .84rem; }
    .hero-section .subtitle { font-size: .95rem; margin-top: 25px; }
    .hero-services { font-size: .57rem; letter-spacing: .08em; }
    .hero-services span { margin-inline: 7px; }
    .hero-scroll { margin-top: 28px; }
    .hero-glow { filter: blur(25px); }
    .hero-grid { opacity: .2; }
    .pricing-card { padding: 32px 25px; }
    .section-eyebrow { font-size: .64rem; letter-spacing: .15em; }
    .contact-section .section-title { font-size: clamp(2.7rem, 12vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .hero-glow, .hero-pulse, .hero-line > span, .hero-scroll::after { animation: none !important; }
    .hero-grid, .hero-halo, .hero-line > span { will-change: auto; }
    .button-secondary, .process-step, .pricing-card, .faq-answer, .faq-question i { transition: none; }
    .process-step:hover, .pricing-card:hover { transform: none; }
}

/* The same readable layout serves the manual calm mode and JS fallbacks. */
.motion-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; border: 1px solid rgba(211,194,241,.18); border-radius: 24px; padding: 9px 15px; color: #c2b9d0; font-size: .73rem; line-height: 1.35; }
.motion-toggle:hover, .motion-toggle[aria-pressed="true"] { border-color: #9b80c4; background: rgba(158,115,217,.1); }
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation: none !important; transition-duration: .01ms !important; }
html.motion-off .showcase-section { height: auto; }
html.motion-off .showcase-sticky { position: relative; height: auto; min-height: 0; padding: 90px 20px; }
html.motion-off .stack-container { height: auto; display: flex; flex-direction: column; gap: 24px; }
html.motion-off .stack-card { position: relative; inset: auto; height: auto; min-height: 360px; opacity: 1 !important; transform: none !important; visibility: visible !important; }
html.motion-off .horizontal-pin { height: auto; overflow: visible; }
html.motion-off .horizontal-track { position: relative; height: auto; width: 100%; flex-direction: column; transform: none !important; }
html.motion-off .horizontal-panel { flex: none; width: 100%; height: auto; min-height: 450px; padding: 80px 8vw; }
html.motion-off .horizontal-meter { display: none; }
html.motion-off .manifesto-text .word { opacity: 1; color: var(--text-main); }
html.motion-off .hero-line > span { transform: none; }
@media (max-width: 700px) {
    html.motion-off .stack-card { grid-template-columns: 1fr; }
    html.motion-off .horizontal-panel { min-height: 370px; }
}
