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

:root {
    --bg: #100F0D;
    --bg-soft: #1C1A17;
    --surface: #1C1A17;
    --surface-strong: #2E2A24;
    --surface-soft: #100F0D;
    --border: rgba(237, 234, 228, 0.22);
    --border-soft: rgba(237, 234, 228, 0.12);
    --border-strong: rgba(245, 158, 11, 0.48);
    --text: #EDEAE4;
    --text-muted: rgba(237, 234, 228, 0.72);
    --text-subtle: rgba(237, 234, 228, 0.48);
    --accent: #F59E0B;
    --accent-teal: #5EAAA8;
    --accent-gold: #F59E0B;
    --accent-mauve: #EDEAE4;
    --danger: #ff5f57;
    --success: #5EAAA8;
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--accent) var(--bg);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    border: 3px solid var(--bg);
    border-radius: 999px;
    background: var(--accent);
}

::-webkit-scrollbar-thumb:hover {
    background: #5EAAA8;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0;
    transition: background-color 220ms ease, color 220ms ease;
}

body:not(.dark) {
    --bg: #EDEAE4;
    --bg-soft: #EDEAE4;
    --surface: #EDEAE4;
    --surface-strong: #2E2A24;
    --surface-soft: #EDEAE4;
    --border: rgba(46, 42, 36, 0.34);
    --border-soft: rgba(46, 42, 36, 0.18);
    --border-strong: rgba(245, 158, 11, 0.55);
    --text: #100F0D;
    --text-muted: #2E2A24;
    --text-subtle: rgba(46, 42, 36, 0.68);
    --shadow: 0 18px 52px rgba(16, 15, 13, 0.13);
    background: var(--bg);
}

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

button {
    touch-action: manipulation;
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 8px;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(16, 15, 13, 0.88);
    backdrop-filter: blur(18px);
}

body:not(.dark) .site-header {
    background: rgba(237, 234, 228, 0.9);
    border-bottom-color: var(--border-soft);
}

.site-nav {
    width: min(100%, 1700px);
    min-width: 0;
    min-height: 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-lockup {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-frame {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.68);
    border-radius: 8px;
    background: var(--surface-soft);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.09), 0 0 22px rgba(245, 158, 11, 0.2);
}

.brand-logo-frame {
    width: 34px;
    height: 34px;
}

.logo-symbol {
    width: 19px;
    height: 19px;
    color: var(--accent);
    margin: 0;
}

.logo-symbol path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo-symbol circle {
    fill: var(--accent-teal);
}

.brand-lockup > span:not(.logo-frame) {
    display: grid;
    gap: 1px;
    line-height: 1.05;
}

.brand-lockup strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.brand-lockup small {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.nav-links a {
    transition: color 180ms ease;
}

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

.nav-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.theme-toggle-btn:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.theme-icon {
    width: 20px;
    height: 20px;
    color: var(--text);
}

.theme-icon path,
.theme-icon circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-icon#theme-icon-moon path {
    fill: currentColor;
    stroke: none;
}

.site-main {
    width: calc(100% - 32px);
    max-width: 1440px;
    margin: 0 auto;
}

.problem-section {
    min-width: 0;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    padding: 72px 0 84px;
    scroll-margin-top: 88px;
}

.section-kicker {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.problem-section h2 {
    width: 100%;
    overflow-wrap: break-word;
    max-width: 540px;
    margin: 0;
    color: var(--text);
    font-size: 54px;
    line-height: 1.08;
    font-weight: 800;
}

.problem-copy {
    width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    margin: 34px 0 0;
    color: var(--text-muted);
    font-size: 19px;
    line-height: 1.65;
}

.insight-grid {
    min-width: 0;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 16px;
}

.insight-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 172px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-muted);
    box-shadow: inset 0 1px 0 rgba(237, 234, 228, 0.04), 0 16px 42px rgba(0, 0, 0, 0.16);
}

.insight-card-large {
    grid-row: span 2;
    min-height: 330px;
}

.insight-card h3 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.insight-card p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    margin: 0;
    max-width: 680px;
    font-size: 16px;
    line-height: 1.65;
}

.insight-card strong {
    display: block;
    margin-top: 72px;
    color: var(--text);
    font-size: 72px;
    line-height: 0.9;
    font-weight: 800;
}

.insight-card span {
    overflow-wrap: anywhere;
    display: block;
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.45;
}

.studio-shell {
    min-width: 0;
    padding: 34px 0 84px;
    scroll-margin-top: 88px;
}

.code-section {
    padding: 0 0 84px;
    scroll-margin-top: 88px;
}

.team-section {
    min-width: 0;
    padding: 6px 0 92px;
    scroll-margin-top: 88px;
}

.team-section h2 {
    width: 100%;
    max-width: 620px;
    margin: 0 0 34px;
    color: var(--text);
    font-size: 54px;
    line-height: 1.08;
    font-weight: 800;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.team-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(237, 234, 228, 0.04), 0 16px 42px rgba(0, 0, 0, 0.18);
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.team-card:hover,
.team-card:focus-visible {
    border-color: var(--accent);
    background: rgba(46, 42, 36, 0.78);
    box-shadow: inset 0 1px 0 rgba(237, 234, 228, 0.06), 0 20px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(245, 158, 11, 0.22);
    transform: translateY(-3px);
    outline: none;
}

.team-photo-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(237, 234, 228, 0.16);
    border-radius: 6px;
    background: #fff;
}

.team-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 38%;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.team-card .team-photo-turki {
    object-fit: contain;
    object-position: center center;
    transform: scale(1.12);
    transform-origin: center center;
}

.team-card .team-photo-hamza {
    object-position: center 38%;
}

.team-card .team-photo-ahmad {
    object-position: center 39%;
}

.team-card .team-photo-aseel {
    object-position: center top;
}

.team-card .team-photo-anas {
    object-position: center center;
}

.team-card .team-photo-khalid {
    object-position: center 31%;
}

.team-card-body {
    display: block;
    padding: 14px 2px 4px;
}

.team-card strong {
    display: block;
    overflow-wrap: anywhere;
}

.team-card strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.28;
    font-weight: 800;
}

.tabs {
    width: min(100%, 1080px);
    margin-inline: auto;
    border-bottom: 1px solid var(--border-soft);
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px 12px;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease;
}

.tab:hover,
.tab.active {
    color: var(--text);
    border-color: var(--accent);
}

.section {
    min-width: 0;
    animation: sectionIn 240ms ease both;
}

@keyframes sectionIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(28, 26, 23, 0.94);
    box-shadow: inset 0 1px 0 rgba(237, 234, 228, 0.045), var(--shadow);
    color: var(--text);
}

body:not(.dark) .card {
    background: rgba(237, 234, 228, 0.96);
}

.card h2,
.card h3,
.card h4 {
    color: var(--text);
}

.text-primary,
.text-secondary,
body.dark .text-secondary {
    color: var(--text) !important;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.input-field,
.file-input,
textarea.input-field,
select.input-field {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body:not(.dark) .input-field,
body:not(.dark) .file-input,
body:not(.dark) textarea.input-field,
body:not(.dark) select.input-field {
    background: #EDEAE4;
}

.input-field:focus,
.file-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.file-input::file-selector-button {
    min-height: 36px;
    margin-right: 12px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    background: var(--text);
    color: var(--bg);
    font-weight: 800;
    cursor: pointer;
}

fieldset {
    border-color: var(--border) !important;
    border-radius: 8px !important;
}

legend {
    color: var(--text-muted) !important;
}

.btn-primary,
.btn-secondary,
.btn-accent,
.btn-tab,
.btn-tab-secondary,
.position-btn,
.copy-btn {
    border-radius: 6px;
    font-weight: 800;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.btn-primary {
    min-height: 48px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #5EAAA8;
}

.btn-secondary {
    min-height: 48px;
    border: 1px solid var(--border);
    background: rgba(237, 234, 228, 0.09);
    color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.14);
}

.btn-accent {
    min-height: 48px;
    border: 1px solid rgba(245, 158, 11, 0.62);
    background: rgba(245, 158, 11, 0.18);
    color: var(--text);
}

.btn-accent:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(245, 158, 11, 0.28);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-tab,
.btn-tab-secondary {
    min-height: 44px;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid var(--border);
    background: rgba(237, 234, 228, 0.025);
    color: var(--text-muted);
    cursor: pointer;
}

.watermark-mode-grid,
#position-controls .grid,
#visible-watermark-options,
#invisible-watermark-options,
fieldset {
    min-width: 0;
}

.watermark-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.watermark-mode-grid .btn-tab:last-child {
    grid-column: 1 / -1;
}

.btn-tab:hover,
.btn-tab-secondary:hover,
.btn-tab.active,
.btn-tab-secondary.active {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.16);
    color: var(--text);
}

.position-btn {
    min-height: 42px;
    border: 1px solid var(--border);
    background: rgba(237, 234, 228, 0.025);
    color: var(--text-muted);
    cursor: pointer;
}

.position-btn:hover,
.position-btn.active {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.16);
    color: var(--text);
}

.range-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--accent);
    appearance: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--text);
    appearance: none;
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--text);
}

input[type="color"] {
    min-height: 44px;
    padding: 4px;
    border-color: var(--border) !important;
    border-radius: 6px !important;
    background: var(--surface-soft);
}

.watermark-container,
.dropzone-panel,
#extracted-content {
    border-color: var(--border) !important;
    background: var(--bg) !important;
    background-position: 0 0, 14px 14px;
    background-size: 28px 28px;
    box-shadow: inset 0 0 0 1px var(--border-soft);
}

.dropzone-panel {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 32px;
    border: 2px dashed var(--border-strong);
    border-radius: 8px;
    color: var(--text-muted);
    text-align: center;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, background-color 180ms ease;
}

.dropzone-panel.compact {
    min-height: 190px;
    padding: 24px;
}

.dropzone-panel span {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.dropzone-panel small {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.cleanup-method {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.08);
    box-shadow: inset 0 1px 0 rgba(237, 234, 228, 0.04);
}

.cleanup-method-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 158, 11, 0.48);
    border-radius: 8px;
    color: var(--accent);
    background: rgba(16, 15, 13, 0.62);
}

.cleanup-method strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.cleanup-method p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.watermark-container {
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.watermark-container.is-drag-over,
.dropzone-panel.is-drag-over {
    border-color: var(--accent) !important;
    box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.32), 0 0 34px rgba(245, 158, 11, 0.16);
}

body:not(.dark) .watermark-container,
body:not(.dark) .dropzone-panel,
body:not(.dark) #extracted-content {
    background: #EDEAE4 !important;
}

#watermark-preview-wrapper img {
    max-width: 100%;
    max-height: 560px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

#remove-preview-image {
    max-width: 100%;
    max-height: 560px;
    object-fit: contain;
    user-select: none;
}

.comparison-view {
    --compare-position: 50%;
    position: relative;
    width: 100%;
    min-height: 400px;
    max-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #100F0D;
    touch-action: none;
    user-select: none;
}

.comparison-image {
    display: block;
    width: 100%;
    max-height: 640px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.comparison-after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    clip-path: inset(0 calc(100% - var(--compare-position)) 0 0);
}

.comparison-after .comparison-image {
    width: 100%;
}

.comparison-label {
    position: absolute;
    top: 18px;
    z-index: 3;
    padding: 3px 14px;
    border-radius: 8px;
    background: rgba(16, 15, 13, 0.78);
    color: #EDEAE4;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.comparison-label-before {
    left: 20px;
}

.comparison-label-after {
    right: 20px;
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: var(--compare-position);
    z-index: 4;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 2px solid rgba(237, 234, 228, 0.8);
    border-radius: 50%;
    background: rgba(237, 234, 228, 0.22);
    color: #EDEAE4;
    cursor: ew-resize;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 9999px transparent;
    touch-action: none;
}

.comparison-handle::before {
    content: "";
    position: absolute;
    top: -400px;
    bottom: -400px;
    left: 50%;
    width: 2px;
    background: rgba(237, 234, 228, 0.78);
    transform: translateX(-50%);
    z-index: -1;
}

.comparison-handle:hover,
.comparison-handle:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.24);
    outline: none;
}

.visual-watermark-overlay {
    position: absolute;
    pointer-events: none;
    user-select: none;
    visibility: hidden;
}

.progress-bar-container {
    height: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--surface-strong);
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: var(--accent);
    transition: width 260ms ease-in-out;
}

.progress-bar-fill.success {
    background: var(--success) !important;
}

.progress-bar-fill.error {
    background: var(--danger) !important;
}

.code-inline {
    padding: 0.12em 0.35em;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    background: rgba(237, 234, 228, 0.07);
    color: var(--text);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.lsb-bit-highlight {
    color: var(--accent-teal);
    font-weight: 800;
}

.code-block {
    position: relative;
    max-height: 520px;
    overflow: auto;
    padding: 46px 18px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    box-shadow: inset 0 1px 0 rgba(237, 234, 228, 0.04);
}

body:not(.dark) .code-block {
    background: #EDEAE4;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: var(--text);
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--text);
    cursor: pointer;
}

.copy-btn:hover,
.copy-btn.copied {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.16);
}

#apply-status,
#extract-status,
#remove-status {
    color: var(--text-muted);
    font-weight: 700;
}

#apply-status.success,
#extract-status.success,
#remove-status.success {
    color: var(--success);
}

#apply-status.error,
#extract-status.error,
#remove-status.error,
#extracted-error {
    color: var(--danger);
}

#apply-status.processing,
#extract-status.processing,
#remove-status.processing {
    color: var(--accent);
}

#extraction-result {
    border-color: var(--border) !important;
    background: var(--surface-soft) !important;
}

#extracted-content {
    min-height: 118px;
    word-break: break-word;
}

.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 30px 16px;
    color: var(--text-subtle);
    background: rgba(16, 15, 13, 0.34);
}

.footer-inner {
    width: min(100%, 1440px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    font-weight: 700;
}

.footer-inner p {
    margin: 0;
}

.footer-version {
    color: var(--accent);
    font-weight: 800;
}

.fa,
.fas,
.far,
.fab {
    line-height: inherit;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 1024px) {
    .problem-section h2,
    .team-section h2 {
        font-size: 42px;
    }

    .problem-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .problem-copy {
        margin-top: 0;
    }

    .insight-grid {
        grid-template-columns: 1fr;
    }

    .insight-card-large {
        min-height: 260px;
    }

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

@media (max-width: 780px) {
    .site-nav {
        align-items: flex-start;
        gap: 14px;
    }

    .nav-links {
        display: none;
    }

    .problem-section h2,
    .team-section h2 {
        font-size: 32px;
        line-height: 1.12;
    }

    .problem-section h2,
    .problem-copy,
    .team-section h2 {
        max-width: 340px;
    }

    .problem-section,
    .team-section {
        padding: 54px 0 64px;
    }

    .insight-card {
        padding: 20px;
    }

    .insight-card p,
    .insight-card span {
        font-size: 14px;
        line-height: 1.55;
    }

    .tabs {
        justify-content: flex-start !important;
        overflow-x: auto;
    }

    .tab {
        flex: 0 0 auto;
        padding-inline: 14px;
        white-space: nowrap;
    }

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

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

@media (max-width: 520px) {
    .site-main {
        width: calc(100% - 20px);
    }

    .brand-lockup small {
        display: none;
    }

    .problem-section h2,
    .team-section h2 {
        font-size: 26px;
    }

    .tab,
    .btn-tab,
    .btn-tab-secondary {
        font-size: 12px;
    }

    .studio-shell {
        padding-top: 24px;
        padding-bottom: 64px;
    }

    .card {
        padding: 18px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        padding: 10px;
    }

    .team-card img {
        max-height: 340px;
    }

    .btn-tab,
    .btn-tab-secondary {
        padding-inline: 8px;
    }

    .file-input {
        padding: 8px;
        font-size: 13px;
    }

    .file-input::file-selector-button {
        margin-right: 8px;
        padding-inline: 10px;
    }
}
