:root {
    --bg: #0d0f0e;
    --bg-soft: #101211;
    --surface: #141615;
    --surface-2: #181a18;
    --line: #292c28;
    --line-soft: #1e211e;
    --text: #efeedf;
    --muted: #999c92;
    --accent: #e9e7d2;
    --purple: #8050a8;
    --purple-bright: #ad72df;
    --purple-glow: rgba(173, 114, 223, .72);
    --orbit-duration: 36s;
    --marquee-duration: 55s;
    --danger: #ff7770;
    --success: #91d7ad;
    --radius: 14px;
    --container: 1160px;
    --shadow: 0 24px 80px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
::selection { background: rgba(128, 80, 168, .72); color: #fff; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 76% 6%, rgba(128, 80, 168, .11), transparent 22%), radial-gradient(circle at 4% 32%, rgba(173, 114, 223, .025), transparent 18%);
    z-index: -1;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 480; letter-spacing: -.045em; line-height: 1.08; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 112px 0; }
.section-small { padding: 96px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-160%); background: var(--accent); color: #111; padding: 10px 16px; border-radius: 99px; z-index: 100; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-header.scrolled { background: rgba(13, 15, 14, .88); border-color: var(--line-soft); backdrop-filter: blur(18px); }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 14px; letter-spacing: -.02em; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #131411; font-weight: 800; font-size: 13px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; color: #c2c4bb; }
.main-nav > a:not(.button) { position: relative; }
.main-nav > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--accent); transition: right .2s; }
.main-nav > a:not(.button):hover::after { right: 0; }
.menu-toggle { display: none; border: 0; background: none; padding: 10px; }
.menu-toggle span:not(.sr-only) { width: 23px; height: 1px; background: var(--text); display: block; margin: 5px 0; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 23px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #141510; font-weight: 650; font-size: 13px; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); background: #fffef0; }
.button-small { min-height: 38px; padding-inline: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #c7c8c0; }
.text-link span { font-size: 16px; }
.text-button { display: inline-flex; align-items: center; gap: 11px; padding-bottom: 7px; border-bottom: 1px solid #454940; font-size: 14px; }
.text-button span { transition: transform .2s; }
.text-button:hover span { transform: translate(3px, -3px); }

.hero { padding-top: 78px; min-height: calc(100vh - 76px); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .76fr); align-items: center; gap: clamp(60px, 9vw, 130px); }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 9px; color: #aeb0a6; font-size: 12px; letter-spacing: .02em; }
.eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--purple-bright);
    box-shadow: 0 0 0 0 rgba(173, 114, 223, .5), 0 0 18px var(--purple-glow);
    animation: purple-pulse 2s ease-out infinite;
}
.hero h1 { margin-top: 18px; font-size: clamp(54px, 6.1vw, 88px); max-width: 740px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p { max-width: 610px; margin-top: 26px; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.hero-portrait { position: relative; width: min(100%, 410px); justify-self: center; isolation: isolate; }
.hero-portrait::before { content: ""; position: absolute; inset: 10% -9% -4%; background: radial-gradient(circle, rgba(128, 80, 168, .24), transparent 65%); z-index: -2; }
.hero-portrait img { width: 100%; aspect-ratio: .88; object-fit: cover; border-radius: 48% 48% 46% 46%; }
.portrait-orbit { position: absolute; inset: -17px; border: 1px solid rgba(173, 114, 223, .2); border-radius: 50%; z-index: -1; box-shadow: 0 0 50px rgba(128, 80, 168, .08); }
.portrait-orbit-labels {
    position: absolute;
    inset: -30px -22px;
    z-index: 2;
    pointer-events: none;
    animation: portrait-orbit var(--orbit-duration) linear infinite;
    will-change: transform;
}
.orbit-node { position: absolute; top: 50%; width: 0; height: 0; }
.orbit-node-designer { left: 0; }
.orbit-node-developer { right: 0; }
.portrait-label {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    padding: 7px 10px;
    background: var(--accent);
    color: #1b1b18;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid rgba(173, 114, 223, .26);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(68, 32, 94, .26);
    transform: translate(-50%, -50%);
    animation: portrait-orbit-counter var(--orbit-duration) linear infinite;
    will-change: transform;
}
@keyframes purple-pulse {
    0% { box-shadow: 0 0 0 0 rgba(173, 114, 223, .55), 0 0 14px var(--purple-glow); }
    65% { box-shadow: 0 0 0 9px rgba(173, 114, 223, 0), 0 0 24px var(--purple-glow); }
    100% { box-shadow: 0 0 0 0 rgba(173, 114, 223, 0), 0 0 14px var(--purple-glow); }
}
@keyframes portrait-orbit { to { transform: rotate(360deg); } }
@keyframes portrait-orbit-counter { to { transform: translate(-50%, -50%) rotate(-360deg); } }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-heading h2 { margin-top: 8px; font-size: clamp(36px, 4vw, 54px); }
.section-heading > p { max-width: 430px; color: var(--muted); font-size: 14px; }
.services { background: linear-gradient(180deg, rgba(16,18,17,.15), rgba(16,18,17,.65)); border-top: 1px solid var(--line-soft); }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-card { min-height: 225px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(145deg, #151716, #111311); transition: transform .25s, border-color .25s, background .25s; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(173, 114, 223, .38); background: #171917; }
.service-top { display: flex; justify-content: space-between; align-items: center; color: #b8baaf; }
.service-top span { display: inline-flex; padding: 3px 6px; border: 1px solid #42463e; border-radius: 4px; font-size: 10px; }
.service-top i { font-style: normal; font-size: 16px; transition: transform .2s; }
.service-card:hover .service-top i { transform: translate(3px, -3px); }
.service-card h3 { margin-top: auto; font-size: 25px; }
.service-card p { margin-top: 13px; max-width: 520px; color: var(--muted); font-size: 13px; }

.work { border-top: 1px solid var(--line-soft); }
.work-heading { align-items: center; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.filter-left { justify-content: flex-start; margin-bottom: 34px; }
.filter-button { min-height: 34px; padding: 0 17px; border: 1px solid #373b36; border-radius: 999px; background: transparent; color: #b8bab0; font-size: 11px; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.filter-button:hover { border-color: rgba(173, 114, 223, .62); color: var(--text); }
.filter-button.active { border-color: var(--purple-bright); background: var(--purple); color: #fff; box-shadow: 0 0 22px rgba(128, 80, 168, .2); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { min-width: 0; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: opacity .25s, transform .25s, border-color .25s; }
.project-card.is-hidden { display: none; }
.project-card:hover { transform: translateY(-5px); border-color: #373b35; }
.project-media { position: relative; aspect-ratio: 1.38; overflow: hidden; background: #111; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.75,.2,1); }
.project-card:hover .project-media img { transform: scale(1.035); }
.project-category { position: absolute; left: 14px; top: 14px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; background: rgba(13,15,14,.72); backdrop-filter: blur(8px); color: #e6e6dc; font-size: 9px; }
.media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, rgba(128,80,168,.45), transparent 35%), linear-gradient(145deg, #1c1f1b, #101210); }
.media-placeholder span { font-size: clamp(70px, 11vw, 150px); font-weight: 800; color: rgba(239,238,223,.09); }
.project-copy { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 18px 20px; }
.project-copy h3 { font-size: 22px; }
.project-copy p { margin-top: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; max-width: min(40vw, 430px); overflow: hidden; text-overflow: ellipsis; }
.project-copy .arrow { align-self: flex-start; color: #bfc1b5; transition: transform .2s; }
.project-card:hover .arrow { transform: translate(3px, -3px); }
.section-cta { display: flex; justify-content: center; margin-top: 36px; }
.empty-state { padding: 80px 30px; border: 1px dashed #343833; border-radius: var(--radius); text-align: center; background: rgba(20,22,21,.65); }
.empty-state span { color: #adafa4; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.empty-state h3 { margin-top: 13px; font-size: 30px; }
.empty-state p { margin: 12px auto 0; max-width: 520px; color: var(--muted); }
.empty-state.compact { padding-block: 55px; }

.prompts-catalog { border-top: 1px solid var(--line-soft); background: radial-gradient(circle at 12% 8%, rgba(128,80,168,.08), transparent 24%), #0c0e0d; }
.prompts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.prompt-card { min-width: 0; min-height: 338px; display: flex; flex-direction: column; padding: 17px; border: 1px solid #2a2d29; border-radius: 10px; background: linear-gradient(145deg, #151715, #111311); transition: transform .25s, border-color .25s, box-shadow .25s; }
.prompt-card:hover { transform: translateY(-4px); border-color: rgba(173,114,223,.42); box-shadow: 0 20px 55px rgba(0,0,0,.22); }
.prompt-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prompt-category { display: inline-flex; align-items: center; width: fit-content; min-height: 21px; padding: 3px 8px; border: 1px solid rgba(173,114,223,.22); border-radius: 999px; background: rgba(128,80,168,.16); color: #c99bed; font-size: 8px; font-weight: 650; letter-spacing: .02em; }
.prompt-category-tone-1 { border-color: rgba(77,166,198,.24); background: rgba(45,126,157,.17); color: #8bcce4; }
.prompt-category-tone-2 { border-color: rgba(220,169,75,.24); background: rgba(168,117,35,.16); color: #e1bd75; }
.prompt-category-tone-3 { border-color: rgba(84,185,145,.23); background: rgba(43,137,101,.16); color: #8bd5b7; }
.prompt-category-tone-4 { border-color: rgba(206,94,104,.24); background: rgba(157,54,65,.16); color: #e19ba1; }
.prompt-copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid #383c36; border-radius: 999px; background: transparent; color: #aeb0a7; font-size: 9px; cursor: pointer; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.prompt-copy-button:hover { border-color: var(--purple-bright); color: var(--text); }
.prompt-copy-button.copied { border-color: var(--purple-bright); background: var(--purple); color: #fff; box-shadow: 0 0 20px rgba(128,80,168,.22); }
.prompt-copy-button.prominent { min-height: 38px; padding-inline: 15px; background: var(--purple); border-color: var(--purple-bright); color: #fff; }
.prompt-card h3 { margin-top: 22px; font-size: 18px; line-height: 1.14; letter-spacing: -.035em; }
.prompt-card h3 a { transition: color .2s; }
.prompt-card h3 a:hover { color: #d0a7ef; }
.prompt-excerpt { margin-top: 10px; color: #8e9188; font-size: 11px; line-height: 1.55; }
.prompt-snippet { min-height: 86px; max-height: 104px; overflow: hidden; margin-top: 18px; padding: 13px; border: 1px solid #1b1e1b; border-radius: 7px; background: #0b0d0c; color: #9ea198; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; line-height: 1.55; white-space: pre-line; }
.prompt-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 17px; color: #777a72; font-size: 9px; }
.prompt-card-actions a { transition: color .2s; }
.prompt-card-actions a:hover { color: var(--text); }
.prompt-card-actions a:last-child { color: #b991d7; }
.prompts-page-hero h1 { max-width: 960px; }
.prompts-page-hero p { max-width: 720px; }
.prompts-catalog { padding-top: 64px; }
.prompts-toolbar { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 28px; margin-bottom: 34px; }
.prompt-search { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid #30342f; border-radius: 999px; background: #111311; color: #777b72; transition: border-color .2s, box-shadow .2s; }
.prompt-search:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(128,80,168,.1); }
.prompt-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.prompt-search input::placeholder { color: #676a63; }
.prompt-filters { justify-content: flex-end; margin: 6px 0 0; }
.prompt-no-results { margin-top: 16px; }
.prompt-no-results[hidden] { display: none; }
.prompt-detail-header { background: radial-gradient(circle at 80% 20%, rgba(128,80,168,.12), transparent 28%); }
.prompt-detail-heading { display: flex; flex-direction: column; align-items: flex-start; }
.prompt-detail-heading .prompt-category { margin-bottom: 18px; }
.prompt-detail-heading h1 { max-width: 900px; }
.prompt-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(40px, 7vw, 90px); align-items: start; }
.prompt-detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 13px; color: #888b82; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.prompt-full-text { margin: 0; padding: clamp(22px, 4vw, 38px); border: 1px solid #292c28; border-radius: var(--radius); background: #0a0c0b; color: #d1d3ca; box-shadow: var(--shadow); white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt-full-text code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.85; }
.prompt-guide { position: sticky; top: 110px; padding: 24px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.prompt-guide h2 { margin-top: 10px; font-size: 27px; }
.prompt-guide ol { display: grid; gap: 11px; margin: 22px 0 26px; padding-left: 20px; color: var(--muted); font-size: 12px; }
.prompt-guide .button { width: 100%; }

.blog-section { background: #0f1110; border-top: 1px solid var(--line-soft); }
.blog-heading { align-items: center; }
.posts-track { display: flex; gap: 15px; overflow: hidden; scroll-behavior: smooth; scroll-snap-type: x mandatory; }
.posts-track .post-card { flex: 0 0 calc((100% - 30px) / 3); }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { min-width: 0; scroll-snap-align: start; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: transform .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); border-color: #373b35; }
.post-media { aspect-ratio: 1.48; overflow: hidden; background: #111; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-placeholder { background: radial-gradient(circle at 20% 25%, rgba(173,114,223,.2), transparent 25%), linear-gradient(135deg, #23251f, #121311); }
.post-placeholder span { font-size: 64px; }
.post-copy { min-height: 220px; display: flex; flex-direction: column; padding: 18px; }
.tag { align-self: flex-start; display: inline-flex; padding: 4px 8px; border: 1px solid #3b3f39; border-radius: 4px; color: #c0c2b7; font-size: 9px; letter-spacing: .03em; }
.post-copy h3 { margin-top: 18px; font-size: 21px; line-height: 1.16; }
.post-copy > p { margin-top: 11px; color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 22px; color: #83867d; font-size: 9px; }
.slider-controls { display: flex; gap: 7px; }
.slider-controls button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.slider-controls button:hover { border-color: var(--purple-bright); background: var(--purple); color: #fff; }

.contact-strip { overflow: hidden; border-block: 1px solid var(--line-soft); background: #121412; color: #b3b5aa; white-space: nowrap; }
.contact-strip-track { display: flex; width: max-content; font-size: 13px; animation: marquee var(--marquee-duration) linear infinite; will-change: transform; }
.contact-strip-group { min-width: 100vw; flex: none; display: flex; align-items: center; justify-content: space-around; gap: clamp(24px, 3vw, 56px); padding: 18px clamp(12px, 2vw, 32px); }
.contact-strip-group span { flex: none; }
.contact-strip-group i { flex: none; color: var(--purple-bright); font-style: normal; text-shadow: 0 0 16px var(--purple-glow); }
@keyframes marquee { to { transform: translateX(-50%); } }
.contact { background: radial-gradient(circle at 82% 50%, rgba(128,80,168,.08), transparent 27%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1fr); gap: clamp(60px, 9vw, 130px); align-items: center; }
.contact-copy h2 { margin-top: 12px; font-size: clamp(39px, 4.6vw, 63px); }
.contact-copy > p { max-width: 520px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.contact-list { display: grid; gap: 18px; list-style: none; padding: 0; margin: 36px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list li > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); color: #d1d2c7; }
.contact-list div { display: grid; }
.contact-list small { color: #7f8279; font-size: 9px; }
.contact-list a, .contact-list strong { font-size: 13px; font-weight: 560; }
.contact-form { display: grid; gap: 13px; padding: 30px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.contact-form label, .install-form label { display: grid; gap: 7px; }
.contact-form label > span, .install-form label > span { font-size: 11px; color: #a8aaa0; }
.contact-form input, .contact-form textarea, .install-form input { width: 100%; border: 1px solid #1d211d; border-radius: 8px; outline: 0; background: #0f1110; color: var(--text); padding: 14px 15px; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { min-height: 155px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .install-form input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(128,80,168,.12); }
.contact-form input::placeholder, .contact-form textarea::placeholder, .install-form input::placeholder { color: #5f625b; }
.form-footer { display: flex; align-items: center; gap: 18px; margin-top: 5px; }
.form-status { color: var(--muted); font-size: 12px; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.page-hero { padding-top: 130px; border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { max-width: 850px; margin-top: 14px; font-size: clamp(52px, 7vw, 90px); }
.page-hero p { max-width: 660px; margin-top: 24px; color: var(--muted); }
.page-projects, .page-blog { padding-top: 70px; }
.detail-header-grid { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.detail-header-grid > div { max-width: 760px; }
.back-link { display: inline-block; margin-bottom: 28px; color: #9ea097; font-size: 12px; }
.detail-header-grid .tag, .article-header .tag { margin-bottom: 18px; }
.detail-header-grid h1, .article-header h1 { font-size: clamp(48px, 7vw, 92px); }
.detail-header-grid p, .article-header p { max-width: 720px; margin-top: 18px; color: var(--muted); font-size: 17px; }
.detail-cover, .article-cover { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.detail-cover img, .article-cover img { width: 100%; max-height: 760px; object-fit: cover; }
.detail-content-grid { display: grid; grid-template-columns: 230px minmax(0, 720px); justify-content: center; gap: 90px; }
.detail-content-grid aside { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding-top: 7px; }
.detail-content-grid aside span { color: #777b72; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.detail-content-grid aside strong { font-size: 15px; }
.detail-content-grid aside small { color: #8a8d84; font-size: 11px; }
.rich-content { color: #c5c7bd; font-size: 17px; line-height: 1.85; }
.rich-content > *:first-child { margin-top: 0; }
.rich-content h2, .rich-content h3, .rich-content h4 { color: var(--text); margin: 1.8em 0 .7em; }
.rich-content h2 { font-size: 34px; }
.rich-content h3 { font-size: 25px; }
.rich-content p, .rich-content ul, .rich-content ol { margin: 1em 0; }
.rich-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.rich-content blockquote { margin: 2em 0; padding: 22px 26px; border-left: 2px solid var(--purple-bright); background: var(--surface); color: var(--text); }
.project-gallery { display: grid; gap: 20px; padding-bottom: 110px; }
.project-gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.project-gallery img { width: 100%; }
.article-header-inner { max-width: 900px; text-align: center; }
.article-header .tag { align-self: center; }
.article-header p { margin-inline: auto; }
.article-meta { display: flex; justify-content: center; gap: 20px; margin-top: 24px; color: #8f9288; font-size: 11px; }
.article-content { max-width: 780px; }

.install-page { min-height: 82vh; display: flex; align-items: center; }
.install-shell { display: grid; grid-template-columns: .85fr 1fr; gap: 80px; align-items: center; max-width: 970px; }
.install-copy h1 { margin-top: 12px; font-size: clamp(42px, 6vw, 70px); }
.install-copy p { margin-top: 20px; color: var(--muted); }
.install-copy code { color: var(--text); }
.install-form { display: grid; gap: 20px; padding: 30px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.install-group { display: grid; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.install-group h2 { font-size: 17px; letter-spacing: -.02em; }
.install-fields.two { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.install-form label small { color: #75786f; font-size: 9px; }
.form-alert { padding: 12px 14px; border-radius: 8px; font-size: 12px; }
.form-alert.error { background: rgba(255,119,112,.08); color: #ffaaa5; }
.error-page { min-height: 75vh; display: grid; place-items: center; text-align: center; }
.error-inner { max-width: 680px; }
.error-code { display: block; color: #555950; font-size: 72px; font-weight: 750; }
.error-inner h1 { margin-top: 5px; font-size: 48px; }
.error-inner p { margin: 18px 0 28px; color: var(--muted); }

.site-footer { padding: 56px 0 24px; border-top: 1px solid var(--line-soft); background: #0a0c0b; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; }
.footer-grid p { margin-top: 14px; color: #797c74; font-size: 12px; }
.footer-links { display: flex; align-items: center; gap: 28px; color: #aeb0a7; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 22px; border-top: 1px solid #171a17; color: #60635c; font-size: 10px; }

@media (max-width: 960px) {
    .hero { min-height: auto; padding-block: 86px 110px; }
    .hero-grid { grid-template-columns: 1fr .68fr; gap: 45px; }
    .hero h1 { font-size: clamp(48px, 7vw, 70px); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .posts-track .post-card { flex-basis: calc((100% - 15px) / 2); }
    .contact-grid { grid-template-columns: .8fr 1fr; gap: 48px; }
    .detail-content-grid { grid-template-columns: 180px 1fr; gap: 45px; }
    .prompts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .prompts-toolbar { grid-template-columns: 1fr; }
    .prompt-filters { justify-content: flex-start; }
}

@media (max-width: 760px) {
    .section { padding: 78px 0; }
    .section-small { padding: 72px 0; }
    .menu-toggle { display: block; z-index: 2; }
    .main-nav { position: fixed; inset: 0 0 auto; min-height: 100vh; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 95px 32px 40px; background: #0d0f0e; transform: translateY(-105%); transition: transform .35s; }
    .main-nav.open { transform: none; }
    .main-nav > a { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 21px; }
    .main-nav .button { margin-top: 22px; border: 0; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { order: 2; }
    .hero-portrait { order: 1; width: min(78vw, 370px); }
    .portrait-orbit-labels { inset: -18px 28px; }
    .hero h1 { font-size: clamp(48px, 14vw, 72px); }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
    .section-heading, .work-heading { align-items: flex-start; flex-direction: column; }
    .filter-bar { justify-content: flex-start; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
    .filter-button { flex: 0 0 auto; }
    .projects-grid, .posts-grid { grid-template-columns: 1fr; }
    .posts-track { overflow-x: auto; }
    .posts-track .post-card { flex-basis: 84%; }
    .contact-grid, .install-shell { grid-template-columns: 1fr; }
    .prompts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prompt-detail-grid { grid-template-columns: 1fr; }
    .prompt-guide { position: static; }
    .contact-form { padding: 22px; }
    .detail-header-grid { align-items: flex-start; flex-direction: column; }
    .detail-content-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid, .footer-bottom { align-items: flex-start; flex-direction: column; }
    .footer-links { flex-wrap: wrap; }
}

@media (max-width: 520px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .hero { padding-top: 48px; }
    .hero h1 { font-size: 48px; }
    .portrait-label { padding: 6px 8px; font-size: 9px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 195px; }
    .project-copy p { max-width: 65vw; }
    .post-meta { align-items: flex-start; flex-direction: column; }
    .contact-copy h2 { font-size: 42px; }
    .form-footer { align-items: stretch; flex-direction: column; }
    .install-fields.two { grid-template-columns: 1fr; }
    .footer-links { display: grid; grid-template-columns: repeat(2, 1fr); }
    .prompts-grid { grid-template-columns: 1fr; }
    .prompt-card { min-height: 310px; }
    .prompt-card-actions { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .portrait-orbit-labels, .portrait-label, .eyebrow i, .contact-strip-track { animation: none !important; }
}
