:root {
    color-scheme: light;
    --bg: #f8fafc;
    --bg-elevated: rgba(255, 255, 255, 0.88);
    --surface: #ffffff;
    --surface-2: #fbfcfe;
    --surface-3: #f1f5f9;
    --border: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(79, 70, 229, 0.18);
    --text: #0f172a;
    --muted: #64748b;
    --accent: #4f46e5;
    --accent-2: #60a5fa;
    --accent-soft: rgba(79, 70, 229, 0.10);
    --success: #059669;
    --warning: #d97706;
    --shadow-lg: 0 22px 58px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 14px 32px rgba(15, 23, 42, 0.06);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --max-width: 1240px;
}

body[data-theme="dark"] {
    color-scheme: dark;
    --bg: #08101d;
    --bg-elevated: rgba(10, 17, 31, 0.82);
    --surface: #101a2f;
    --surface-2: #13203a;
    --surface-3: #192846;
    --border: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(96, 165, 250, 0.28);
    --text: #eef4ff;
    --muted: #98a7c4;
    --accent: #60a5fa;
    --accent-2: #22d3ee;
    --accent-soft: rgba(96, 165, 250, 0.14);
    --success: #34d399;
    --warning: #fbbf24;
    --shadow-lg: 0 28px 70px rgba(2, 6, 23, 0.34);
    --shadow-md: 0 18px 40px rgba(2, 6, 23, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.10), transparent 28%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, #111827 12%), var(--bg));
    color: var(--text);
    min-height: 100vh;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

::selection {
    background: color-mix(in srgb, var(--accent) 28%, white 72%);
}

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 4px;
    z-index: 80;
    background: rgba(79, 70, 229, 0.08);
}

.scroll-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.12s linear;
}

.page-shell {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 70;
    padding-top: 20px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-elevated);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-md);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand strong {
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand span {
    color: var(--muted);
    font-size: 13px;
}

.topbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.topbar-nav a,
.theme-toggle,
.icon-button,
.filter-chip,
.control-select,
.search-input,
.modal-link,
.primary-link,
.secondary-link,
.to-top,
.faq-trigger {
    transition: 0.2s ease;
}

.topbar-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible {
    color: var(--text);
    background: var(--surface-3);
}

.theme-toggle,
.icon-button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover,
.icon-button:hover,
.filter-chip:hover,
.filter-chip.is-active,
.faq-trigger:hover,
.faq-item[open] .faq-trigger {
    border-color: var(--border-strong);
    background: var(--surface-3);
}

.section {
    margin-top: 42px;
}

.hero {
    padding-top: 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: stretch;
}

.panel,
.hero-card,
.focus-card,
.metric-card,
.catalog-shell,
.timeline-card,
.testimonials-shell,
.faq-shell,
.contact-shell,
.footer-shell,
.modal-panel {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-xl);
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero-card::before {
    width: 280px;
    height: 280px;
    right: -90px;
    bottom: -130px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.28), rgba(14, 165, 233, 0));
}

.hero-card::after {
    width: 220px;
    height: 220px;
    left: -100px;
    top: -80px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0));
}

.hero-kicker,
.section-kicker,
.metric-card span,
.project-status,
.meta-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-card h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    max-width: 10ch;
}

.hero-card p,
.section-intro,
.metric-card p,
.timeline-copy p,
.testimonial-card p,
.faq-copy,
.contact-copy p,
.footer-copy p,
.empty-state p,
.project-copy,
.modal-body p,
.about-copy p {
    color: var(--muted);
    line-height: 1.75;
}

.hero-actions,
.contact-actions,
.modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.primary-link,
.secondary-link,
.modal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.primary-link,
.modal-link.is-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.secondary-link,
.modal-link {
    background: var(--surface);
    border-color: var(--border);
}

.primary-link:hover,
.secondary-link:hover,
.modal-link:hover {
    transform: translateY(-2px);
}

.hero-tags,
.project-tags,
.contact-tags,
.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag,
.project-tag,
.meta-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 13px;
}

.hero-side {
    display: grid;
    gap: 20px;
}

.focus-card,
.about-card,
.metric-card,
.timeline-card,
.testimonials-shell,
.faq-shell,
.contact-shell,
.footer-shell {
    padding: 24px;
}

.focus-list,
.metric-grid,
.timeline-list,
.testimonials-grid,
.footer-grid {
    display: grid;
    gap: 14px;
}

.focus-item,
.metric-card,
.timeline-step,
.testimonial-card,
.contact-panel,
.footer-panel {
    padding: 18px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 92%, transparent));
    border: 1px solid var(--border);
}

.focus-item strong,
.timeline-step h3,
.testimonial-card h3,
.about-card h2,
.catalog-header h2,
.section-head h2,
.contact-panel h3,
.footer-panel h3 {
    display: block;
    margin: 0 0 8px;
    font-size: 18px;
}

.focus-item p,
.timeline-step p,
.testimonial-card span,
.contact-panel p,
.footer-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.about-card,
.about-copy {
    height: 100%;
}

.about-copy {
    display: grid;
    gap: 14px;
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card strong {
    display: block;
    margin-top: 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.06em;
}

.catalog-shell {
    padding: 28px;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 24px;
}

.catalog-header p,
.section-head p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 68ch;
    line-height: 1.7;
}

.control-stack {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.search-row,
.sort-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.search-input,
.control-select {
    min-height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.search-input {
    flex: 1 1 300px;
}

.control-select {
    min-width: 180px;
    cursor: pointer;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.catalog-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--muted);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.project-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-2) 96%, transparent));
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    min-height: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-3);
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-status {
    position: absolute;
    top: 14px;
    left: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.72);
    color: white;
}

.project-content {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.project-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.project-title {
    margin: 0;
    font-size: 20px;
}

.project-category {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.icon-button,
.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
}

.card-button.is-primary {
    background: var(--accent);
    border-color: transparent;
    color: white;
}

.card-button:hover,
.icon-button:hover {
    transform: translateY(-2px);
}

.empty-state {
    display: none;
    padding: 34px;
    border: 1px dashed var(--border-strong);
    border-radius: 22px;
    text-align: center;
    background: var(--surface-2);
}

.empty-state.is-visible {
    display: block;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.timeline-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-step strong {
    margin-bottom: 10px;
}

.testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card {
    display: grid;
    gap: 10px;
}

.testimonial-card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
}

.testimonial-note {
    color: var(--warning);
    font-size: 13px;
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 22px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.faq-trigger span:last-child {
    color: var(--muted);
}

.faq-item[open] .faq-trigger span:last-child {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 20px 20px;
}

.contact-shell {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
}

.contact-panel form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.report-form {
    gap: 16px;
}

.contact-panel label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
}

.contact-panel input,
.contact-panel textarea,
.contact-panel select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 14px 16px;
}

.contact-panel textarea {
    min-height: 136px;
    resize: vertical;
}

.logo {
    margin: 10px 0 8px;
    font-size: 32px;
    letter-spacing: -0.04em;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--accent-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.btn {
    border: 0;
}

.form-notice {
    min-height: 24px;
    margin: 2px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.form-notice.is-success {
    color: var(--success);
}

.form-notice.is-error {
    color: #ef4444;
}

.form-notice.is-pending {
    color: var(--warning);
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.footer-shell {
    margin: 42px 0 48px;
}

.footer-grid {
    grid-template-columns: 1.2fr repeat(3, minmax(0, 0.7fr));
}

.footer-panel ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 10px;
}

.footer-panel a {
    text-decoration: none;
    color: var(--muted);
}

.footer-panel a:hover {
    color: var(--text);
}

.footer-copy {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 15, 30, 0.68);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    z-index: 100;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-panel {
    width: min(1080px, 100%);
    max-height: min(88vh, 940px);
    overflow: auto;
    padding: 24px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.modal-title-wrap h2 {
    margin: 8px 0 0;
    font-size: 30px;
}

.modal-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
}

.modal-gallery {
    display: grid;
    gap: 14px;
}

.modal-hero {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    aspect-ratio: 16 / 10;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.modal-thumb {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
}

.modal-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.modal-thumb.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}

.modal-meta {
    display: grid;
    gap: 16px;
}

.modal-body {
    display: grid;
    gap: 12px;
}

.modal-body h3 {
    margin: 0 0 4px;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.54s ease, transform 0.54s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    z-index: 60;
}

.to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(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;
}

@media (max-width: 1080px) {
    .hero-grid,
    .about-grid,
    .faq-layout,
    .contact-shell,
    .modal-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .project-grid,
    .timeline-list,
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(calc(100% - 20px), var(--max-width));
    }

    .topbar-inner,
    .catalog-header,
    .section-head,
    .footer-copy {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar {
        top: 10px;
    }

    .topbar-nav {
        justify-content: flex-start;
    }

    .hero-card,
    .focus-card,
    .catalog-shell,
    .timeline-card,
    .testimonials-shell,
    .faq-shell,
    .contact-shell,
    .footer-shell,
    .modal-panel {
        padding: 20px;
    }

    .project-grid,
    .timeline-list,
    .testimonials-grid,
    .metric-grid,
    .modal-thumbs {
        grid-template-columns: 1fr;
    }

    .hero-card h1 {
        max-width: none;
    }

    .search-row,
    .sort-row,
    .catalog-meta,
    .footer-copy {
        align-items: stretch;
    }

    .search-input,
    .control-select {
        width: 100%;
    }

    .to-top {
        right: 16px;
        bottom: 16px;
    }
}
