:root {
    color-scheme: light dark;
    --bg: #f5f7fb;
    --bg-elevated: rgba(255, 255, 255, 0.82);
    --surface: #ffffff;
    --surface-soft: #edf1f7;
    --text: #101522;
    --text-soft: #596273;
    --line: #dbe1ea;
    --line-strong: #c5ceda;
    --accent: #0a6e5d;
    --accent-bright: #28c4a8;
    --accent-soft: #d9f5ee;
    --coral: #e95f43;
    --ink: #07111f;
    --shadow: 0 24px 70px rgba(25, 38, 61, 0.11);
    --radius-lg: 28px;
    --radius-md: 18px;
    --max-width: 1200px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #090d17;
        --bg-elevated: rgba(13, 19, 32, 0.84);
        --surface: #101726;
        --surface-soft: #151e30;
        --text: #f1f5fb;
        --text-soft: #9aa7ba;
        --line: #263247;
        --line-strong: #36445c;
        --accent: #52d8c0;
        --accent-bright: #63e2cb;
        --accent-soft: #123b37;
        --coral: #ff846d;
        --ink: #050810;
        --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: radial-gradient(circle at 18% 5%, color-mix(in srgb, var(--accent-bright) 10%, transparent), transparent 28rem), var(--bg);
    color: var(--text);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
.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: 1rem; left: 1rem; z-index: 20; padding: 0.65rem 1rem; border-radius: 8px; background: var(--text); color: var(--bg); transform: translateY(-180%); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 4px; }
.site-header, main, .site-footer { width: min(calc(100% - 3rem), var(--max-width)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 1rem;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 64px;
    margin-top: 1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 18px;
    background: var(--bg-elevated);
    box-shadow: 0 8px 32px rgba(20, 31, 49, 0.08);
    backdrop-filter: blur(18px);
}
.wordmark { display: inline-flex; align-items: center; width: max-content; gap: 0.7rem; font-weight: 700; text-decoration: none; }
.wordmark-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--text); color: var(--bg); font-family: "Manrope", sans-serif; font-size: 0.78rem; letter-spacing: 0.05em; }
.site-nav { display: flex; gap: 0.2rem; }
.site-nav a, .header-link { padding: 0.55rem 0.8rem; border-radius: 10px; color: var(--text-soft); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: color 160ms ease, background 160ms ease; }
.site-nav a:hover, .header-link:hover { background: var(--surface-soft); color: var(--text); }
.header-link { justify-self: end; color: var(--text); }

.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: 760px; padding: 7rem 0; }
.eyebrow { margin: 0 0 1rem; color: var(--accent); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 0.55rem; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-bright) 16%, transparent); }
h1, h2, h3 { margin-top: 0; font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: -0.045em; }
h1 { max-width: 850px; margin-bottom: 1.5rem; font-size: clamp(3.3rem, 7.3vw, 6.5rem); font-weight: 800; line-height: 0.98; }
h1 span { color: var(--text-soft); }
.hero-intro { max-width: 680px; margin: 0; color: var(--text-soft); font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 50px; padding: 0.7rem 1.15rem; border: 1px solid var(--line); border-radius: 13px; font-weight: 700; text-decoration: none; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--text); background: var(--text); color: var(--bg); }
.button-secondary { background: var(--bg-elevated); }

.hero-panel { position: relative; overflow: hidden; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.signal { display: flex; align-items: end; gap: 7px; height: 160px; margin: -0.2rem -0.2rem 1.8rem; padding: 1.5rem; border-radius: 20px; background: var(--ink); }
.signal span { flex: 1; height: 45%; border-radius: 999px; background: linear-gradient(to top, #35d6b8, #b7ffe8); transform-origin: bottom; animation: signal 3.8s ease-in-out infinite alternate; }
.signal span:nth-child(2) { height: 72%; animation-delay: -1.5s; }
.signal span:nth-child(3) { height: 38%; animation-delay: -0.7s; }
.signal span:nth-child(4) { height: 88%; animation-delay: -2.1s; }
.signal span:nth-child(5) { height: 56%; animation-delay: -1.1s; }
.signal span:nth-child(6) { height: 95%; animation-delay: -2.8s; }
@keyframes signal { to { transform: scaleY(0.58); opacity: 0.72; } }
.panel-label { margin: 0 0 0.2rem; color: var(--text-soft); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.panel-value { margin: 0 0 1.7rem; font-family: "Manrope", sans-serif; font-size: 1.45rem; font-weight: 700; line-height: 1.3; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0; }
.hero-stats div { min-width: 0; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.hero-stats dt { color: var(--text-soft); font-size: 0.7rem; line-height: 1.3; }
.hero-stats dd { margin: 0.3rem 0 0; font-family: "Manrope", sans-serif; font-size: 1.08rem; font-weight: 700; }

.section { padding: 7rem 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr); gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section-heading.compact { margin-bottom: 2rem; }
.section-heading h2, .about-section h2 { margin-bottom: 0; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.03; }
.section-heading > p { margin: 0; color: var(--text-soft); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: transform 200ms ease, box-shadow 200ms ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-visual { position: relative; display: flex; align-items: end; justify-content: center; min-height: 280px; padding: 1.5rem; overflow: hidden; color: white; }
.product-card-shade .product-visual { background: linear-gradient(145deg, #101a2d 0%, #193e46 58%, #31c9ad 160%); }
.product-card-curtain .product-visual { background: linear-gradient(145deg, #3a1d21 0%, #943e42 60%, #ff9b71 150%); }
.product-card-vaani .product-visual { background: linear-gradient(145deg, #24173f 0%, #5f3c86 55%, #f29f4b 150%); }
.product-card-hero .product-visual { background: linear-gradient(145deg, #0d2845 0%, #255c91 58%, #68c9f2 150%); }
.product-visual::before { content: ""; position: absolute; inset: 1.4rem; border: 1px solid rgba(255,255,255,0.26); border-radius: 20px; }
.product-index { position: absolute; top: 2.5rem; left: 2.5rem; color: rgba(255,255,255,0.7); font-size: 0.8rem; font-weight: 700; }
.visual-word { font-family: "Manrope", sans-serif; font-size: clamp(3.5rem, 8vw, 7.2rem); font-weight: 800; letter-spacing: -0.09em; line-height: 0.7; opacity: 0.9; transform: translateY(0.1em); }
.product-body { padding: 2rem; }
.card-kicker { margin: 0 0 0.5rem; color: var(--text-soft); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.product-body h3 { margin-bottom: 0.6rem; font-size: 1.9rem; }
.product-body > p:not(.card-kicker) { min-height: 3.2em; margin: 0 0 1.5rem; color: var(--text-soft); }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; }
.store-link { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 44px; padding: 0.6rem 0.9rem; border-radius: 11px; background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none; transition: transform 180ms ease, background 180ms ease; }
.store-link:hover { transform: translateY(-2px); background: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.latest-section { padding-bottom: 4rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.loading-state { grid-column: 1 / -1; min-height: 160px; margin: 0; padding: 2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--text-soft); }
.project-card { display: flex; flex-direction: column; min-height: 310px; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.project-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 48px rgba(20, 31, 49, 0.09); }
.project-card-latest { min-height: 330px; background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--accent-soft) 32%, var(--surface))); }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; margin-bottom: 1.35rem; color: var(--text-soft); font-size: 0.72rem; font-weight: 600; }
.project-language { display: inline-flex; align-items: center; min-width: 0; gap: 0.42rem; }
.language-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; }
.project-date { white-space: nowrap; }
.project-card h3 { margin-bottom: 0.55rem; font-size: 1.25rem; line-height: 1.2; }
.project-description { display: -webkit-box; margin: 0 0 1rem; overflow: hidden; color: var(--text-soft); font-size: 0.9rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.project-topics { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.project-topics span { padding: 0.2rem 0.48rem; border-radius: 999px; background: var(--surface-soft); color: var(--text-soft); font-size: 0.67rem; }
.project-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.project-action { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.46rem 0.62rem; border-radius: 8px; color: var(--text-soft); font-size: 0.78rem; font-weight: 700; text-decoration: none; }
.project-action:hover { background: var(--surface-soft); color: var(--text); }
.project-action-primary { background: var(--text); color: var(--bg); }
.project-action-primary:hover { background: var(--accent); color: var(--bg); }
.external-arrow { font-size: 0.85em; }
.empty-state { grid-column: 1 / -1; padding: 3rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--text-soft); text-align: center; }
.empty-state h3 { margin-bottom: 0.4rem; color: var(--text); font-size: 1.2rem; }
.empty-state p { margin: 0; }
.inline-link { color: var(--accent); font-weight: 700; }
.catalog-section { padding-top: 7rem; }
.project-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; }
.search-field { display: flex; align-items: center; gap: 0.75rem; min-height: 54px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.search-field svg { width: 20px; fill: none; stroke: var(--text-soft); stroke-width: 1.8; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-field input::placeholder { color: var(--text-soft); }
.filter-toggle, .language-filter, .clear-filters { border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.filter-toggle { display: flex; align-items: center; gap: 0.6rem; min-height: 54px; padding: 0 1rem; border-radius: 14px; font-weight: 600; }
.filter-toggle[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.toggle-indicator { width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; }
.filter-toggle[aria-pressed="true"] .toggle-indicator { background: currentColor; }
.language-filters { display: flex; gap: 0.5rem; margin-top: 1rem; padding-bottom: 0.25rem; overflow-x: auto; scrollbar-width: thin; }
.language-filter { flex: 0 0 auto; padding: 0.45rem 0.8rem; border-radius: 999px; color: var(--text-soft); font-size: 0.82rem; font-weight: 600; }
.language-filter:hover { border-color: var(--line-strong); color: var(--text); }
.language-filter[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.results-bar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin: 1.2rem 0 0.7rem; }
.results-bar p { margin: 0; color: var(--text-soft); font-size: 0.9rem; }
.clear-filters { padding: 0.35rem 0.65rem; border-radius: 8px; color: var(--accent); font-size: 0.82rem; font-weight: 700; }

.about-section { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr); gap: clamp(2rem, 7vw, 7rem); padding: 8rem 0; border-top: 1px solid var(--line); }
.about-copy { color: var(--text-soft); font-size: 1.08rem; }
.about-copy > p { margin-top: 0; }
.about-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; }
.about-links a { color: var(--text); font-weight: 700; text-decoration: none; }
.about-links a:hover { color: var(--accent); }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0 4rem; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 0.88rem; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.noscript-message { position: fixed; right: 1rem; bottom: 1rem; left: 1rem; z-index: 30; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding: 7rem 0 5rem; }
    .hero-panel { max-width: 580px; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .site-header, main, .site-footer { width: min(calc(100% - 2rem), var(--max-width)); }
    .site-header { grid-template-columns: 1fr auto; }
    .site-nav { display: none; }
    .wordmark > span:last-child { display: none; }
    .hero { padding-top: 5.5rem; }
    h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
    .section, .catalog-section { padding: 5rem 0; }
    .section-heading, .about-section { grid-template-columns: 1fr; gap: 1rem; }
    .product-grid, .project-grid { grid-template-columns: 1fr; }
    .product-visual { min-height: 220px; }
    .product-body > p:not(.card-kicker) { min-height: 0; }
    .project-controls { grid-template-columns: 1fr; }
    .filter-toggle { justify-content: center; }
    .about-section { padding: 5rem 0; }
}
@media (max-width: 420px) {
    .hero-actions { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
    .hero-stats { grid-template-columns: 1fr; }
    .hero-stats div { display: flex; align-items: baseline; justify-content: space-between; }
    .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
