@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg: #070707;
    --bg-elevated: rgba(15, 15, 15, 0.84);
    --bg-soft: rgba(255, 255, 255, 0.04);
    --surface: #111111;
    --surface-2: #161616;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f6f1ef;
    --muted: #b1a9a7;
    --muted-2: #817b7a;
    --red: #e1061b;
    --red-2: #ff3550;
    --red-soft: rgba(225, 6, 27, 0.14);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(225, 6, 27, 0.24), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 53, 80, 0.12), transparent 28%),
        linear-gradient(180deg, #060606 0%, #0b0b0b 45%, #050505 100%);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: auto -12vw -20vh auto;
    width: 42vw;
    height: 42vw;
    background: radial-gradient(circle, rgba(225, 6, 27, 0.12), transparent 68%);
    filter: blur(30px);
    pointer-events: none;
    z-index: -3;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

::selection {
    background: rgba(225, 6, 27, 0.45);
    color: #fff;
}

.site-header {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 20px auto 0;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(12, 12, 12, 0.68);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 16px;
    z-index: 30;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(8, 8, 8, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    font-weight: 700;
    white-space: nowrap;
}

.brand span {
    color: var(--red-2);
}

.brand-mark {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #050505;
    border: 1px solid rgba(225, 6, 27, 0.5);
    box-shadow: 0 0 20px rgba(225, 6, 27, 0.2);
    overflow: hidden;
    flex: 0 0 auto;
}

.brand-mark img {
    position: absolute;
    width: 325px;
    max-width: none;
    transform: translate(-142px, -57px);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav a {
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
}

.menu-toggle #bar {
    transition: transform 0.35s ease;
}

.menu-toggle.is-open #bar {
    animation: menu-spin 0.35s ease both;
}

@keyframes menu-spin {
    from {
        transform: rotate(-180deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.page-shell {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
}

.hero {
    padding: 80px 0 36px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hero-copy {
    padding: 22px 0;
}

.eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.section-title,
.page-title {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.hero h1 {
    margin-top: 18px;
    font-size: clamp(3rem, 7vw, 6.25rem);
    max-width: 11ch;
}

.hero p.lead {
    margin-top: 18px;
    max-width: 60ch;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.04rem;
}

.hero-actions,
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-2));
    color: white;
    box-shadow: 0 18px 36px rgba(225, 6, 27, 0.22);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-points span,
.tag-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-panel {
    position: relative;
    min-height: 520px;
    padding: 26px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(12, 12, 12, 0.95), rgba(7, 7, 7, 0.92));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.logo-lockup {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(225, 6, 27, 0.38);
    border-radius: 22px;
    background: #090909;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.logo-lockup img {
    width: 100%;
    aspect-ratio: 1.588 / 1;
    object-fit: cover;
    opacity: 0.92;
}

.website-count-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    margin: 16px auto;
    padding: 10px 16px;
    border: 1px solid rgba(225, 6, 27, 0.46);
    border-radius: 999px;
    background: rgba(225, 6, 27, 0.16);
    box-shadow: 0 0 28px rgba(225, 6, 27, 0.2);
}

.count-number {
    color: var(--red-2);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.count-label {
    color: var(--muted);
    font-size: 0.86rem;
}

.panel-stack {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    height: 100%;
}

.panel-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.panel-card strong,
.panel-card h3,
.section-title,
.page-title {
    font-family: 'Space Grotesk', sans-serif;
}

.panel-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.panel-card p {
    color: var(--muted);
    line-height: 1.7;
}

.panel-card.highlight {
    background: linear-gradient(135deg, rgba(225, 6, 27, 0.18), rgba(255, 255, 255, 0.04));
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mini-metric {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.mini-metric .value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    color: var(--text);
}

.mini-metric .label {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.section {
    padding: 30px 0 14px;
}

.section.card-section {
    padding: 40px 0 12px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-title,
.page-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin-top: 14px;
}

.section-copy {
    max-width: 60ch;
    color: var(--muted);
    line-height: 1.8;
}

.grid-3,
.grid-4 {
    display: grid;
    gap: 18px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.025);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.card h3 {
    margin-top: 16px;
    font-size: 1.18rem;
}

.card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.75;
}

.icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(225, 6, 27, 0.2), rgba(255, 53, 80, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
}

.feature-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.feature-list li {
    list-style: none;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.feature-list li strong {
    color: var(--text);
}

.timeline {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.timeline-step {
    width: 84px;
    padding: 12px 14px;
    border-radius: 999px;
    text-align: center;
    background: rgba(225, 6, 27, 0.16);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
}

.timeline-item h3 {
    margin-bottom: 8px;
}

.timeline-item p {
    color: var(--muted);
    line-height: 1.75;
}

.timeline-intro {
    margin-bottom: 22px;
}

.timeline-intro .section-title {
    max-width: 34ch;
    line-height: 1.08;
}

.service-addons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1020px;
    margin-inline: auto;
}

.service-addons .card {
    text-align: center;
}

.service-addons .icon-badge {
    margin-inline: auto;
}

.page-hero {
    padding: 54px 0 26px;
}

.page-banner {
    padding: 34px;
    border-radius: calc(var(--radius-xl) + 6px);
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.025);
    box-shadow: var(--shadow);
}

.page-banner p {
    margin-top: 14px;
    max-width: 66ch;
    color: var(--muted);
    line-height: 1.8;
}

.project-title-row {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 16px 22px;
}

.project-title-row .page-title {
    margin-top: 14px;
}

.project-title-rating {
    margin: 0 0 4px;
}

.service-pricing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.revision-card {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    border-color: rgba(225, 6, 27, 0.28);
    background: linear-gradient(135deg, rgba(225, 6, 27, 0.1), rgba(255, 255, 255, 0.03));
}

.revision-card .price-note {
    max-width: 62ch;
    margin-top: 10px;
    line-height: 1.7;
}

.revision-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

.service-addon-price {
    display: block;
    margin-top: 18px;
    color: var(--red-2);
    font-size: 0.82rem;
    font-weight: 700;
}

.service-maintenance {
    display: block;
    margin-top: 8px;
    color: var(--red-2);
    font-size: 0.82rem;
    font-weight: 700;
}

.work-toolbar {
    display: grid;
    grid-template-columns: auto minmax(220px, 420px) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.work-toolbar label {
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.work-toolbar input {
    margin: 0;
    padding: 12px 14px;
}

.work-toolbar span {
    justify-self: end;
    color: var(--muted-2);
    font-size: 0.9rem;
}

.work-card[hidden] {
    display: none;
}

#work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 1180px);
    justify-content: center;
    justify-items: center;
    align-items: stretch;
    margin-inline: auto;
}

#work-grid[data-visible-count="1"] {
    grid-template-columns: minmax(0, 380px);
}

#work-grid[data-visible-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 380px));
}

#work-grid[data-visible-count="1"] [data-row-size="1"],
#work-grid[data-visible-count="2"] [data-row-size="2"] {
    grid-column: auto;
}

#work-grid[data-visible-count="2"] [data-row-size="2"][data-row-position="1"] {
    grid-column: 1;
}

#work-grid[data-visible-count="2"] [data-row-size="2"][data-row-position="2"] {
    grid-column: 2;
}

#work-grid [data-row-size="1"] {
    grid-column: 2;
}

#work-grid [data-row-size="2"][data-row-position="1"] {
    grid-column: 1;
}

#work-grid [data-row-size="2"][data-row-position="2"] {
    grid-column: 3;
}

.work-card {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.work-card .btn {
    margin-top: 20px;
}

.project-link {
    width: 100%;
    justify-content: space-between;
    text-align: left;
}

.project-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: #ff6f7d;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
}

.project-delete:hover {
    color: #ffb0b8;
}

.project-delete[hidden] {
    display: none;
}

.work-card .btn i {
    font-size: 0.8em;
}

.work-card-link {
    display: block;
    color: inherit;
}

.work-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.work-card-heading {
    min-width: 0;
}

.work-card-heading .rating-summary {
    margin-top: 0;
    gap: 7px;
}

.work-card-heading .work-card-link h3 {
    margin-top: 9px;
}

.work-card-description {
    margin-top: 18px !important;
}

.work-card {
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover {
    transform: translateY(-6px);
    border-color: rgba(225, 6, 27, 0.45);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.34);
}

.work-card:hover h3 {
    color: var(--text);
}

.rating-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.stars {
    display: inline-flex;
    gap: 3px;
    color: var(--red-2);
}

.stars .muted-star {
    color: rgba(255, 255, 255, 0.22);
}

.rating-summary small {
    color: var(--muted-2);
}

.work-card .hero-points,
.work-card .rating-summary,
.work-card .project-link {
    flex: 0 0 auto;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    align-items: start;
    max-width: 1000px;
    margin-inline: auto;
}

.project-feedback-section {
    position: relative;
    overflow: hidden;
}

.project-feedback-section::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 8%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(225, 6, 27, 0.1);
    filter: blur(50px);
    pointer-events: none;
}

.feedback-heading {
    position: relative;
    max-width: 650px;
    margin: 0 auto 30px;
    text-align: center;
}

.feedback-heading .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.feedback-heading > p:last-child {
    max-width: 55ch;
    margin: 14px auto 0;
    color: var(--muted);
    line-height: 1.7;
}

.project-feedback-section .project-detail-grid {
    position: relative;
    max-width: 1120px;
    gap: 18px;
}

.detail-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.project-feedback-section .detail-card {
    min-height: 100%;
    padding: clamp(22px, 4vw, 34px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.rating-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feedback-card-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted-2);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feedback-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(225, 6, 27, 0.35);
    border-radius: 12px;
    background: rgba(225, 6, 27, 0.12);
    color: var(--red-2);
}

.project-feedback-section .detail-card h3 {
    margin-top: 22px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.project-feedback-section .detail-card > p {
    margin-top: 12px;
}

.rating-intro {
    max-width: 38ch;
}

.detail-card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.detail-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    width: 100%;
    text-align: left;
}

.detail-list li {
    list-style: none;
    padding: 14px 16px;
    border-left: 2px solid var(--red);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.detail-list strong {
    color: var(--text);
}

.rating-widget {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.rating-buttons {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.rating-button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    font-size: 1.45rem;
    padding: 5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.rating-button:hover,
.rating-button.is-selected {
    color: var(--red-2);
    transform: translateY(-2px) scale(1.08);
}

.comment-form {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
    text-align: left;
}

.comments-card .comment-list {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-comments-section {
    padding-top: 0;
}

.comments-feed-card {
    max-width: 1120px;
    margin-inline: auto;
    text-align: left;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.comments-feed-intro {
    max-width: 55ch;
}

.comments-feed-card .comment-list {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.comment-expand {
    display: inline-grid;
    width: 30px;
    height: 30px;
    margin-top: 8px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.comment-message.comment-message-collapsed {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.comment-expand:hover,
.comment-expand:focus-visible {
    background: rgba(225, 6, 27, 0.14);
    color: var(--text);
}

.comment-expand:focus-visible {
    outline: 2px solid rgba(225, 6, 27, 0.7);
    outline-offset: 2px;
}

.comment-expand[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.comments-view-more {
    display: block;
    margin: 24px auto 0;
}

.comment-form .btn {
    width: 100%;
}

.comment-form textarea {
    min-height: 220px;
    width: 100%;
}

.comment-form .comment-note {
    text-align: center;
}

.comment-list + .btn {
    margin-top: 26px;
    align-self: center;
}

.signup-modal[hidden],
.portal-preview[hidden] {
    display: none;
}

.signup-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
}

.signup-modal-card {
    width: min(100%, 430px);
    padding: 28px;
    border: 1px solid rgba(225, 6, 27, 0.45);
    border-radius: var(--radius-lg);
    background: #111;
    box-shadow: var(--shadow);
}

.signup-modal-card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.signup-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.comment-note {
    color: var(--muted-2);
    font-size: 0.88rem;
}

.comment-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    width: 100%;
    text-align: left;
}

.comment-item {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
}

.comment-item.comment-owner {
    border-color: rgba(225, 6, 27, 0.42);
    background: rgba(225, 6, 27, 0.08);
}

.comment-item strong {
    color: var(--text);
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.comment-owner-tag {
    margin-left: auto;
    padding: 5px 9px;
    border: 1px solid rgba(225, 6, 27, 0.38);
    border-radius: 999px;
    color: var(--red-2);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.comment-stars {
    font-size: 0.82rem;
}

.comment-item h4 {
    margin-top: 12px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
}

.comment-item p {
    margin-top: 6px;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.comment-delete {
    border: 0;
    background: transparent;
    color: var(--red-2);
    cursor: pointer;
    font-size: 0.82rem;
    padding: 4px 0;
}

.comment-delete:hover {
    color: #ff8c9a;
}

.work-empty {
    margin-top: 18px;
    padding: 22px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    color: var(--muted);
    text-align: center;
}

.price-card {
    position: relative;
    padding: 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.price-card.featured {
    border-color: rgba(225, 6, 27, 0.34);
    background: linear-gradient(180deg, rgba(225, 6, 27, 0.12), rgba(255, 255, 255, 0.03));
}

.price-card h3 {
    font-size: 1.25rem;
}

.price {
    margin-top: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    letter-spacing: -0.04em;
}

.price-note {
    color: var(--muted-2);
    font-size: 0.95rem;
}

.price-card ul {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.price-card li {
    list-style: none;
    color: var(--muted);
}

.quote-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 860px;
    margin: 24px auto 0;
    padding: 18px 20px;
    border: 1px solid rgba(225, 6, 27, 0.28);
    border-radius: var(--radius-md);
    background: rgba(225, 6, 27, 0.08);
    color: var(--muted);
    line-height: 1.7;
}

.quote-note i {
    margin-top: 4px;
    color: var(--red-2);
}

.quote-note strong {
    color: var(--text);
}

.price-card .btn {
    margin-top: 22px;
    width: 100%;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 22px;
    align-items: start;
}

.contact-stack {
    display: grid;
    gap: 16px;
}

.contact-card,
.form-card {
    padding: 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.contact-card p,
.form-card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.contact-list {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.contact-item {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.contact-item .label {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-2);
    margin-bottom: 6px;
}

.contact-item strong {
    font-size: 1.02rem;
}

.cursor-glow {
    position: fixed;
    z-index: 0;
    top: 0;
    left: 0;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate3d(calc(var(--cursor-x, 50vw) - 50%), calc(var(--cursor-y, 40vh) - 50%), 0);
    background: radial-gradient(circle, rgba(225, 6, 27, 0.2), rgba(225, 6, 27, 0) 68%);
    filter: blur(18px);
    opacity: 0.95;
    transition: transform 0.28s ease-out;
}

body > *:not(.cursor-glow) {
    position: relative;
    z-index: 1;
}

.guidance-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.guidance-tab {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.guidance-tab:hover,
.guidance-tab.is-active {
    border-color: rgba(225, 6, 27, 0.5);
    background: rgba(225, 6, 27, 0.16);
    color: var(--text);
    transform: translateY(-1px);
}

.guidance-copy {
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.8;
}

.guidance-fields {
    margin-top: 16px;
}

.guidance-fields textarea {
    margin-top: 8px;
}

.guidance-label {
    display: block;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.portal-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 22px;
    align-items: start;
    max-width: 1080px;
    margin-inline: auto;
}

.portal-layout.signed-out {
    grid-template-columns: minmax(320px, 500px);
    justify-content: center;
}

.portal-layout:not(.signed-out) {
    grid-template-columns: 1fr;
    max-width: none;
}

.portal-layout:not(.signed-out) .portal-preview {
    width: 100%;
}

.portal-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
}

.portal-card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.portal-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.portal-form .btn {
    margin-top: 4px;
}

.portal-signup-card[hidden] {
    display: none;
}

.portal-signup-card {
    max-width: 520px;
    margin-inline: auto;
}

.portal-signup-card .form-grid {
    margin-top: 22px;
}

.portal-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.portal-setting {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
}

.portal-setting span {
    display: block;
    color: var(--muted-2);
    font-size: 0.82rem;
}

.portal-setting strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 0.92rem;
}

.admin-panel {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid rgba(225, 6, 27, 0.34);
    border-radius: var(--radius-md);
    background: rgba(225, 6, 27, 0.08);
}

.admin-panel h3 {
    margin-top: 14px;
    font-family: 'Space Grotesk', sans-serif;
}

.admin-panel > p:not(.eyebrow) {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.admin-tool-section {
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.16);
    overflow: visible;
}

.admin-tool-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 18px;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.admin-tool-section > summary::-webkit-details-marker {
    display: none;
}

.admin-tool-section > summary > span {
    display: grid;
    gap: 4px;
}

.admin-tool-section > summary strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
}

.admin-tool-section > summary small {
    color: var(--muted-2);
    font-size: 0.82rem;
}

.admin-tool-section > summary > i {
    color: var(--red-2);
    transition: transform 0.2s ease;
}

.admin-tool-section[open] > summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-tool-section[open] > summary > i {
    transform: rotate(180deg);
}

.admin-tool-content {
    padding: 0 18px 18px;
}

.admin-tool-content > p:first-child {
    margin-top: 16px;
}

.custom-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.custom-select {
    position: relative;
}

.custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: #151515;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.custom-select-trigger:hover,
.custom-select-trigger[aria-expanded="true"],
.custom-select-trigger:focus-visible {
    border-color: rgba(225, 6, 27, 0.65);
    background: #1b1b1b;
}

.custom-select-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(225, 6, 27, 0.14);
}

.custom-select-trigger i {
    color: var(--red-2);
    transition: transform 0.2s ease;
}

.custom-select-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: absolute;
    z-index: 10;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    max-height: 240px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid rgba(225, 6, 27, 0.35);
    border-radius: 16px;
    background: #111;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.custom-select-menu[hidden] {
    display: none;
}

.custom-select-option {
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    text-align: left;
}

.custom-select-option:hover,
.custom-select-option:focus-visible,
.custom-select-option[aria-selected="true"] {
    background: rgba(225, 6, 27, 0.16);
    color: var(--text);
}

.custom-select-option:focus-visible {
    outline: 2px solid rgba(225, 6, 27, 0.65);
    outline-offset: -2px;
}

.admin-capacity {
    color: var(--red-2) !important;
    font-size: 0.86rem;
    font-weight: 700;
}

.admin-project-form button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.admin-project-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.admin-detail-fields {
    display: grid;
    gap: 14px;
    margin-top: 8px;
    padding: 18px;
    border: 1px solid rgba(225, 6, 27, 0.26);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.16);
}

.admin-detail-fields > div:first-child p:last-child {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.6;
}

.admin-management-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.admin-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.admin-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
}

.admin-list-identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-list-item > span {
    grid-column: 1 / -1;
}

.admin-role {
    padding: 4px 8px;
    border: 1px solid rgba(225, 6, 27, 0.35);
    border-radius: 999px;
    color: var(--red-2) !important;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-delete {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    padding: 8px 11px;
    border: 1px solid rgba(225, 6, 27, 0.35);
    border-radius: 10px;
    background: transparent;
    color: #ffb4bd;
    cursor: pointer;
}

.admin-delete:hover,
.admin-delete:focus-visible {
    background: rgba(225, 6, 27, 0.14);
    border-color: rgba(225, 6, 27, 0.7);
    color: #fff;
}

.admin-delete:focus-visible {
    outline: 2px solid rgba(225, 6, 27, 0.65);
    outline-offset: 2px;
}

.request-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.request-tab {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    cursor: pointer;
}

.request-tab:hover,
.request-tab[aria-selected="true"] {
    border-color: rgba(225, 6, 27, 0.5);
    background: rgba(225, 6, 27, 0.16);
    color: var(--text);
}

.request-tab span {
    color: var(--red-2);
    font-weight: 700;
}

.request-search-field {
    margin-top: 18px;
}

.request-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.request-item {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.request-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.request-item > summary::-webkit-details-marker {
    display: none;
}

.request-item > summary::after {
    content: '\f078';
    margin-left: auto;
    color: var(--red-2);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.2s ease;
}

.request-item[open] > summary::after {
    transform: rotate(180deg);
}

.request-item > summary time {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 0.82rem;
    white-space: nowrap;
}

.request-summary-progress {
    color: var(--red-2);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.request-delete-button {
    display: inline-grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-2);
    cursor: pointer;
}

.request-delete-button:hover {
    border-color: rgba(225, 6, 27, 0.55);
    background: rgba(225, 6, 27, 0.14);
    color: #ff9ca7;
}

.request-item-details {
    padding: 0 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.request-item-details p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.6;
    white-space: pre-wrap;
}

.request-item-details p strong {
    color: var(--text);
}

.request-status-button {
    margin-top: 16px;
}

.request-update-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(225, 6, 27, 0.18);
    border-radius: 14px;
    background: rgba(225, 6, 27, 0.06);
}

.request-update-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.request-update-form output {
    color: var(--red-2);
}

.request-progress-control {
    padding: 14px 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
}

.request-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.request-progress-heading output {
    color: var(--red-2);
    font-size: 1rem;
}

.request-progress-slider {
    position: relative;
    z-index: 1;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    appearance: none;
    background: transparent !important;
    border: 0;
    outline: none;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
}

.request-progress-slider:focus {
    background: transparent !important;
}

.request-progress-visual {
    position: relative;
    width: calc(100% - 30px);
    height: 34px;
    margin: 10px 15px 0;
}

.request-progress-visual::before,
.request-progress-fill {
    position: absolute;
    top: 12px;
    left: 0;
    height: 10px;
    border-radius: 999px;
}

.request-progress-visual::before {
    right: 0;
    content: '';
    background: rgba(255, 255, 255, 0.1);
}

.request-progress-fill {
    width: var(--progress);
    background: linear-gradient(90deg, var(--red), var(--red-2));
}

.request-progress-thumb {
    position: absolute;
    top: 1px;
    left: var(--progress);
    width: 30px;
    height: 30px;
    border: 4px solid #ffd7dc;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(225, 6, 27, 0.18);
    transform: translateX(-50%);
    pointer-events: none;
}

.request-progress-visual:focus-within .request-progress-thumb {
    outline: 2px solid rgba(255, 215, 220, 0.7);
    outline-offset: 5px;
}

.request-update-form textarea {
    width: 100%;
    resize: vertical;
}

.workspace-updates {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.16);
}

.workspace-updates-heading,
.workspace-notification-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.workspace-updates h3 {
    margin-top: 4px;
}

.workspace-notification-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.workspace-notification {
    position: relative;
    padding: 15px 52px 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.workspace-notification p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.55;
}

.workspace-notification time {
    color: var(--muted-2);
    font-size: 0.78rem;
}

.workspace-notification .request-delete-button {
    position: absolute;
    top: 14px;
    right: 14px;
}

.admin-list-item span,
.admin-access-note {
    color: var(--muted);
}

.portal-signout {
    margin-top: 22px;
}

.portal-status {
    min-height: 24px;
    color: #ffd0d6;
}

.portal-preview {
    background:
        linear-gradient(135deg, rgba(225, 6, 27, 0.16), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.03);
}

.portal-topline,
.portal-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.portal-topline-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.portal-topline-actions .portal-signout {
    margin-top: 0;
}

.admin-project-form select {
    color-scheme: dark;
    background-color: #151515;
    border-color: rgba(255, 255, 255, 0.12);
}

.admin-project-form select:hover,
.admin-project-form select:focus {
    border-color: rgba(225, 6, 27, 0.65);
    background-color: #1b1b1b;
}

.admin-project-form select option {
    background: #151515;
    color: var(--text);
}

.portal-profile {
    justify-content: start;
    margin-top: 26px;
}

.portal-role {
    display: inline-block;
    margin-top: 5px;
    color: var(--red-2);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--red);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
}

.portal-kicker {
    color: var(--muted-2);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.portal-stat {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
}

.portal-stat strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
}

.portal-stat span {
    display: block;
    margin-top: 6px;
    color: var(--muted-2);
    font-size: 0.82rem;
}

.portal-progress {
    margin-top: 24px;
}

.portal-progress-track {
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.portal-progress-track span {
    display: block;
    width: 35%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--red), var(--red-2));
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field.full {
    grid-column: 1 / -1;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(225, 6, 27, 0.7);
    outline-offset: 2px;
}

label {
    color: var(--muted);
    font-size: 0.93rem;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 15px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
    resize: vertical;
    min-height: 160px;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-2);
}

select {
    background-color: #171717;
    color: var(--text);
}

select option {
    background: #171717;
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(225, 6, 27, 0.6);
    box-shadow: 0 0 0 4px rgba(225, 6, 27, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.estimate-status {
    margin-top: 14px;
    min-height: 24px;
    color: #ffd0d6;
}

.request-account-island {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(225, 6, 27, 0.3);
    border-radius: 16px;
    background: rgba(225, 6, 27, 0.08);
    color: var(--muted);
    font-size: 0.9rem;
    justify-content: center;
    text-align: center;
}

.request-account-island i {
    color: var(--red-2);
}

.request-account-island span {
    flex: 1;
}

.request-account-island strong {
    display: block;
    color: var(--text);
}

.request-account-island a {
    color: var(--red-2);
    font-weight: 700;
    white-space: nowrap;
}

.form-submit-button {
    width: 100%;
    margin-top: 12px;
}

.footer {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 60px auto 28px;
    padding: 28px;
    border-radius: calc(var(--radius-xl) + 4px);
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(16px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 22px;
}

.footer h4 {
    margin-bottom: 14px;
    font-family: 'Space Grotesk', sans-serif;
}

.footer p,
.footer a {
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.success-page {
    background: #000;
    overflow: hidden;
}

.success-scene {
    min-height: 100svh;
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
    background: #000;
}

.success-scene::before,
.success-scene::after {
    display: none;
}

.success-scene::before {
    top: 20%;
    transform: rotate(-13deg);
}

.success-scene::after {
    bottom: 22%;
    transform: rotate(13deg);
}

.success-atmosphere {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.dragon-shadow {
    position: absolute;
    left: 50%;
    top: 66%;
    width: 640px;
    height: 1120px;
    filter: blur(7px) saturate(1.55);
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1.35);
    animation: none;
}

.dragon-shadow span {
    position: absolute;
    display: block;
    background: #b20d2d;
    box-shadow: 0 0 34px rgba(214, 18, 53, 0.75);
}

.dragon-body {
    left: 164px;
    top: 164px;
    width: 310px;
    height: 900px;
    background: transparent !important;
    border: 58px solid #b20d2d;
    border-left-color: transparent;
    border-radius: 54% 46% 48% 52%;
    transform: rotate(8deg);
}

.dragon-head {
    left: 76px;
    top: 22px;
    width: 470px;
    height: 330px;
    border-radius: 58% 46% 48% 52%;
    transform: rotate(-8deg);
}

.dragon-head::before,
.dragon-head::after {
    content: '';
    position: absolute;
    display: block;
}

.dragon-head::before {
    left: 92px;
    top: 92px;
    width: 48px;
    height: 20px;
    border-radius: 50%;
    background: #ffb0b7;
    box-shadow: 0 0 24px #ff203e, 238px 5px 0 -1px #ffb0b7, 238px 5px 24px #ff203e;
}

.dragon-head::after {
    left: 44px;
    top: 190px;
    width: 385px;
    height: 92px;
    border-bottom: 14px solid #4a0616;
    border-radius: 0 0 70% 60%;
    box-shadow: 0 18px 0 -8px #ff203e;
    transform: rotate(7deg);
}

.dragon-tail {
    left: 72px;
    top: 1005px;
    width: 380px;
    height: 52px;
    border-radius: 100% 0 0 100%;
    transform: rotate(-24deg);
    clip-path: polygon(100% 10%, 100% 90%, 0 100%, 30% 50%, 0 0);
}

.dragon-wing {
    top: 300px;
    width: 72px;
    height: 520px;
    opacity: 0.48;
    clip-path: polygon(50% 100%, 0 0, 100% 22%, 20% 38%, 100% 55%, 28% 72%, 82% 100%);
}

.dragon-wing-left {
    left: 84px;
    transform: rotate(-12deg);
    transform-origin: 80% 90%;
    animation: none;
}

.dragon-wing-right {
    left: 478px;
    transform: scaleX(-1) rotate(-12deg);
    transform-origin: 20% 90%;
    animation: none;
}

.dragon-horn {
    top: -32px;
    width: 72px;
    height: 148px;
    clip-path: polygon(50% 0, 100% 100%, 0 70%);
}

.dragon-horn-left {
    left: 122px;
    transform: rotate(-35deg);
}

.dragon-horn-right {
    left: 428px;
    transform: rotate(35deg);
}

.success-content {
    position: relative;
    z-index: 2;
    width: min(620px, calc(100% - 40px));
    padding: 48px 32px;
    text-align: center;
    animation: none;
}

.success-content .section-eyebrow {
    margin-bottom: 22px;
}

.success-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    border: 1px solid rgba(255, 77, 97, 0.72);
    border-radius: 50%;
    color: #ff7183;
    box-shadow: 0 0 34px rgba(213, 22, 54, 0.34);
    animation: none;
}

.success-content h1 {
    max-width: 12ch;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.success-content > p:not(.section-eyebrow):not(.success-countdown) {
    max-width: 46ch;
    margin: 24px auto 30px;
    color: rgba(255, 255, 255, 0.68);
}

.success-countdown {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.success-countdown strong {
    color: #ff7183;
}

@keyframes dragon-flight {
    0% { opacity: 0; transform: translate(-50%, 22vh) rotate(3deg) scale(1.18); }
    12% { opacity: 0.94; }
    64% { opacity: 0.86; transform: translate(-50%, -18vh) rotate(-4deg) scale(1.18); }
    100% { opacity: 0; transform: translate(-50%, -148vh) rotate(-7deg) scale(1.18); }
}

@keyframes wing-beat-left {
    from { transform: rotate(-17deg) scaleY(1); }
    to { transform: rotate(-6deg) scaleY(0.72); }
}

@keyframes wing-beat-right {
    from { transform: scaleX(-1) rotate(-12deg) scaleY(1); }
    to { transform: scaleX(-1) rotate(-1deg) scaleY(0.72); }
}

@keyframes success-rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes success-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); box-shadow: 0 0 45px rgba(213, 22, 54, 0.58); }
}

@media (max-width: 560px) {
    .dragon-shadow {
        left: 42%;
        transform: translate(-50%, -50%) scale(0.8);
    }

    .success-content {
        padding: 32px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dragon-shadow,
    .dragon-wing-left,
    .dragon-wing-right,
    .success-content,
    .success-mark {
        animation: none;
    }

    .dragon-shadow {
        opacity: 0.2;
    }
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    line-height: 1;
    flex: 0 0 42px;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(225, 6, 27, 0.5);
    color: #fff;
}

.mini-metric .value [data-counter] {
    color: var(--red-2);
}

.reveal-on-scroll {
    --reveal-delay: 0ms;
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.985);
    filter: blur(2px);
    transition:
        opacity 0.7s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.7s ease;
    transition-delay: var(--reveal-delay);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.work-card.reveal-on-scroll.is-visible:hover {
    transform: translate3d(0, -6px, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal-on-scroll,
    .btn,
    .site-nav a,
    .site-header {
        transition: none !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (max-width: 1120px) {
    .grid-4,
    .footer-grid,
    .service-pricing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero,
    .contact-layout,
    .portal-layout,
    .project-detail-grid,
    .admin-management-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 480px;
    }

    #work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #work-grid[data-visible-count="1"] {
        grid-template-columns: minmax(0, 380px);
    }

    #work-grid[data-visible-count="2"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #work-grid [data-row-size="1"],
    #work-grid [data-row-size="2"][data-row-position="1"],
    #work-grid [data-row-size="2"][data-row-position="2"] {
        grid-column: auto;
    }
}

@media (max-width: 820px) {
    .site-header {
        border-radius: 26px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        display: grid;
        gap: 8px;
        padding: 14px;
        border-radius: 24px;
        border: 1px solid var(--border);
        background: #080808;
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .site-nav.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        width: 100%;
    }

    .hero {
        padding-top: 46px;
    }

    .project-detail-grid {
        grid-template-columns: 1fr;
    }

    #work-grid {
        grid-template-columns: 1fr;
    }

    #work-grid[data-visible-count="1"],
    #work-grid[data-visible-count="2"] {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 420px;
    }

    .mini-grid,
    .grid-3,
    .grid-4,
    .service-pricing,
    .footer-grid,
    .form-grid,
    .portal-stats {
        grid-template-columns: 1fr;
    }

    .revision-card {
        display: grid;
    }

    .revision-options,
    .revision-options .btn {
        width: 100%;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .work-toolbar {
        grid-template-columns: 1fr;
    }

    .cursor-glow {
        display: none;
    }

    .work-toolbar span {
        justify-self: start;
    }

    .timeline-step {
        width: fit-content;
    }

    .section-header {
        flex-direction: column;
        align-items: start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 560px) {
    .portal-topline {
        align-items: flex-start;
    }

    .portal-topline-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .page-shell {
        width: min(calc(100% - 20px), var(--max-width));
    }

    .site-header {
        width: min(calc(100% - 20px), var(--max-width));
        padding: 14px 16px;
        top: 10px;
    }

    .hero h1 {
        max-width: 100%;
    }

    .panel-stack {
        gap: 12px;
    }

    .hero-panel {
        padding: 18px;
        min-height: 380px;
    }

    .card,
    .contact-card,
    .form-card,
    .price-card,
    .page-banner {
        padding: 20px;
    }
}
